diff --git a/src/evidently/nbextension/static/index.js b/src/evidently/nbextension/static/index.js index a70db055c0..099d600475 100644 --- a/src/evidently/nbextension/static/index.js +++ b/src/evidently/nbextension/static/index.js @@ -1,4 +1,4 @@ -var AK=Object.defineProperty;var DK=(e,t,n)=>t in e?AK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var $g=(e,t,n)=>(DK(e,typeof t!="symbol"?t+"":t,n),n);function EK(e,t){for(var n=0;nr[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();var Oo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Qn(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var l=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,l.get?l:{enumerable:!0,get:function(){return e[r]}})}),n}var h$={exports:{}},Jy={},m$={exports:{}},ar={};/** +var pZ=Object.defineProperty;var hZ=(e,t,n)=>t in e?pZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Cs=(e,t,n)=>(hZ(e,typeof t!="symbol"?t+"":t,n),n);function mZ(e,t){for(var n=0;nr[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();var $o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function er(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var l=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,l.get?l:{enumerable:!0,get:function(){return e[r]}})}),n}var z$={exports:{}},_1={},B$={exports:{}},sr={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var AK=Object.defineProperty;var DK=(e,t,n)=>t in e?AK(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var jm=Symbol.for("react.element"),RK=Symbol.for("react.portal"),LK=Symbol.for("react.fragment"),IK=Symbol.for("react.strict_mode"),$K=Symbol.for("react.profiler"),NK=Symbol.for("react.provider"),FK=Symbol.for("react.context"),jK=Symbol.for("react.forward_ref"),zK=Symbol.for("react.suspense"),BK=Symbol.for("react.memo"),WK=Symbol.for("react.lazy"),t6=Symbol.iterator;function qK(e){return e===null||typeof e!="object"?null:(e=t6&&e[t6]||e["@@iterator"],typeof e=="function"?e:null)}var g$={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v$=Object.assign,y$={};function nf(e,t,n){this.props=e,this.context=t,this.refs=y$,this.updater=n||g$}nf.prototype.isReactComponent={};nf.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};nf.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function b$(){}b$.prototype=nf.prototype;function WS(e,t,n){this.props=e,this.context=t,this.refs=y$,this.updater=n||g$}var qS=WS.prototype=new b$;qS.constructor=WS;v$(qS,nf.prototype);qS.isPureReactComponent=!0;var n6=Array.isArray,x$=Object.prototype.hasOwnProperty,US={current:null},w$={key:!0,ref:!0,__self:!0,__source:!0};function _$(e,t,n){var r,l={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)x$.call(t,r)&&!w$.hasOwnProperty(r)&&(l[r]=t[r]);var a=arguments.length-2;if(a===1)l.children=n;else if(1t in e?AK(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var YK=ge,XK=Symbol.for("react.element"),KK=Symbol.for("react.fragment"),ZK=Object.prototype.hasOwnProperty,QK=YK.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,JK={key:!0,ref:!0,__self:!0,__source:!0};function T$(e,t,n){var r,l={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)ZK.call(t,r)&&!JK.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:XK,type:e,key:i,ref:o,props:l,_owner:QK.current}}Jy.Fragment=KK;Jy.jsx=T$;Jy.jsxs=T$;h$.exports=Jy;var ke=h$.exports,UT={},k$={exports:{}},ni={},S$={exports:{}},C$={};/** + */var DZ=ge,EZ=Symbol.for("react.element"),RZ=Symbol.for("react.fragment"),LZ=Object.prototype.hasOwnProperty,IZ=DZ.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$Z={key:!0,ref:!0,__self:!0,__source:!0};function X$(e,t,n){var r,l={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)LZ.call(t,r)&&!$Z.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:EZ,type:e,key:i,ref:o,props:l,_owner:IZ.current}}_1.Fragment=RZ;_1.jsx=X$;_1.jsxs=X$;z$.exports=_1;var Se=z$.exports,_T={},K$={exports:{}},ci={},Z$={exports:{}},Q$={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var AK=Object.defineProperty;var DK=(e,t,n)=>t in e?AK(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(F,j){var z=F.length;F.push(j);e:for(;0>>1,N=F[B];if(0>>1;Bl(Y,z))Ll(W,Y)?(F[B]=W,F[L]=z,B=L):(F[B]=Y,F[q]=z,B=q);else if(Ll(W,z))F[B]=W,F[L]=z,B=L;else break e}}return j}function l(F,j){var z=F.sortIndex-j.sortIndex;return z!==0?z:F.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var s=[],u=[],c=1,d=null,f=3,p=!1,m=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(F){for(var j=n(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=F)r(u),j.sortIndex=j.expirationTime,t(s,j);else break;j=n(u)}}function w(F){if(g=!1,y(F),!m)if(n(s)!==null)m=!0,I(_);else{var j=n(u);j!==null&&A(w,j.startTime-F)}}function _(F,j){m=!1,g&&(g=!1,v(k),k=-1),p=!0;var z=f;try{for(y(j),d=n(s);d!==null&&(!(d.expirationTime>j)||F&&!M());){var B=d.callback;if(typeof B=="function"){d.callback=null,f=d.priorityLevel;var N=B(d.expirationTime<=j);j=e.unstable_now(),typeof N=="function"?d.callback=N:d===n(s)&&r(s),y(j)}else r(s);d=n(s)}if(d!==null)var R=!0;else{var q=n(u);q!==null&&A(w,q.startTime-j),R=!1}return R}finally{d=null,f=z,p=!1}}var x=!1,T=null,k=-1,S=5,C=-1;function M(){return!(e.unstable_now()-CF||125B?(F.sortIndex=z,t(u,F),n(s)===null&&F===n(u)&&(g?(v(k),k=-1):g=!0,A(w,z-B))):(F.sortIndex=N,t(s,F),m||p||(m=!0,I(_))),F},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(F){var j=f;return function(){var z=f;f=j;try{return F.apply(this,arguments)}finally{f=z}}}})(C$);S$.exports=C$;var eZ=S$.exports;/** + */(function(e){function t(F,j){var B=F.length;F.push(j);e:for(;0>>1,N=F[z];if(0>>1;zl(Y,B))Ll(W,Y)?(F[z]=W,F[L]=B,z=L):(F[z]=Y,F[q]=B,z=q);else if(Ll(W,B))F[z]=W,F[L]=B,z=L;else break e}}return j}function l(F,j){var B=F.sortIndex-j.sortIndex;return B!==0?B:F.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var s=[],u=[],c=1,d=null,f=3,p=!1,h=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(F){for(var j=n(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=F)r(u),j.sortIndex=j.expirationTime,t(s,j);else break;j=n(u)}}function x(F){if(g=!1,y(F),!h)if(n(s)!==null)h=!0,I(_);else{var j=n(u);j!==null&&A(x,j.startTime-F)}}function _(F,j){h=!1,g&&(g=!1,v(k),k=-1),p=!0;var B=f;try{for(y(j),d=n(s);d!==null&&(!(d.expirationTime>j)||F&&!M());){var z=d.callback;if(typeof z=="function"){d.callback=null,f=d.priorityLevel;var N=z(d.expirationTime<=j);j=e.unstable_now(),typeof N=="function"?d.callback=N:d===n(s)&&r(s),y(j)}else r(s);d=n(s)}if(d!==null)var R=!0;else{var q=n(u);q!==null&&A(x,q.startTime-j),R=!1}return R}finally{d=null,f=B,p=!1}}var w=!1,S=null,k=-1,C=5,T=-1;function M(){return!(e.unstable_now()-TF||125z?(F.sortIndex=B,t(u,F),n(s)===null&&F===n(u)&&(g?(v(k),k=-1):g=!0,A(x,B-z))):(F.sortIndex=N,t(s,F),h||p||(h=!0,I(_))),F},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(F){var j=f;return function(){var B=f;f=j;try{return F.apply(this,arguments)}finally{f=B}}}})(Q$);Z$.exports=Q$;var NZ=Z$.exports;/** * @license React * react-dom.production.min.js * @@ -30,53 +30,73 @@ var AK=Object.defineProperty;var DK=(e,t,n)=>t in e?AK(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var M$=ge,ei=eZ;function ln(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),HT=Object.prototype.hasOwnProperty,tZ=/^[: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]*$/,a6={},o6={};function nZ(e){return HT.call(o6,e)?!0:HT.call(a6,e)?!1:tZ.test(e)?o6[e]=!0:(a6[e]=!0,!1)}function rZ(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function aZ(e,t,n,r){if(t===null||typeof t>"u"||rZ(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function wo(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var to={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){to[e]=new wo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];to[t]=new wo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){to[e]=new wo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){to[e]=new wo(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){to[e]=new wo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){to[e]=new wo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){to[e]=new wo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){to[e]=new wo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){to[e]=new wo(e,5,!1,e.toLowerCase(),null,!1,!1)});var VS=/[\-:]([a-z])/g;function GS(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(VS,GS);to[t]=new wo(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(VS,GS);to[t]=new wo(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(VS,GS);to[t]=new wo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){to[e]=new wo(e,1,!1,e.toLowerCase(),null,!1,!1)});to.xlinkHref=new wo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){to[e]=new wo(e,1,!1,e.toLowerCase(),null,!0,!0)});function YS(e,t,n,r){var l=to.hasOwnProperty(t)?to[t]:null;(l!==null?l.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),TT=Object.prototype.hasOwnProperty,FZ=/^[: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]*$/,UO={},HO={};function jZ(e){return TT.call(HO,e)?!0:TT.call(UO,e)?!1:FZ.test(e)?HO[e]=!0:(UO[e]=!0,!1)}function zZ(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function BZ(e,t,n,r){if(t===null||typeof t>"u"||zZ(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Mo(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var io={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){io[e]=new Mo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];io[t]=new Mo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){io[e]=new Mo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){io[e]=new Mo(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){io[e]=new Mo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){io[e]=new Mo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){io[e]=new Mo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){io[e]=new Mo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){io[e]=new Mo(e,5,!1,e.toLowerCase(),null,!1,!1)});var AC=/[\-:]([a-z])/g;function DC(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(AC,DC);io[t]=new Mo(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(AC,DC);io[t]=new Mo(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(AC,DC);io[t]=new Mo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){io[e]=new Mo(e,1,!1,e.toLowerCase(),null,!1,!1)});io.xlinkHref=new Mo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){io[e]=new Mo(e,1,!1,e.toLowerCase(),null,!0,!0)});function EC(e,t,n,r){var l=io.hasOwnProperty(t)?io[t]:null;(l!==null?l.type!==0:r||!(2a||l[o]!==i[a]){var s=` -`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=o&&0<=a);break}}}finally{q2=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ah(e):""}function oZ(e){switch(e.tag){case 5:return ah(e.type);case 16:return ah("Lazy");case 13:return ah("Suspense");case 19:return ah("SuspenseList");case 0:case 2:case 15:return e=U2(e.type,!1),e;case 11:return e=U2(e.type.render,!1),e;case 1:return e=U2(e.type,!0),e;default:return""}}function XT(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Qc:return"Fragment";case Zc:return"Portal";case VT:return"Profiler";case XS:return"StrictMode";case GT:return"Suspense";case YT:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case A$:return(e.displayName||"Context")+".Consumer";case O$:return(e._context.displayName||"Context")+".Provider";case KS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ZS:return t=e.displayName||null,t!==null?t:XT(e.type)||"Memo";case Ms:t=e._payload,e=e._init;try{return XT(e(t))}catch{}}return null}function iZ(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return XT(t);case 8:return t===XS?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Gs(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function E$(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lZ(e){var t=E$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function jg(e){e._valueTracker||(e._valueTracker=lZ(e))}function R$(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=E$(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function _v(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function KT(e,t){var n=t.checked;return oa({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function l6(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Gs(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function L$(e,t){t=t.checked,t!=null&&YS(e,"checked",t,!1)}function ZT(e,t){L$(e,t);var n=Gs(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?QT(e,t.type,n):t.hasOwnProperty("defaultValue")&&QT(e,t.type,Gs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function s6(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function QT(e,t,n){(t!=="number"||_v(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var oh=Array.isArray;function fd(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=zg.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Bh(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var yh={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},sZ=["Webkit","ms","Moz","O"];Object.keys(yh).forEach(function(e){sZ.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),yh[t]=yh[e]})});function F$(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||yh.hasOwnProperty(e)&&yh[e]?(""+t).trim():t+"px"}function j$(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=F$(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var uZ=oa({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function t3(e,t){if(t){if(uZ[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ln(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ln(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ln(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ln(62))}}function n3(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var r3=null;function QS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var a3=null,pd=null,hd=null;function d6(e){if(e=Wm(e)){if(typeof a3!="function")throw Error(ln(280));var t=e.stateNode;t&&(t=a1(t),a3(e.stateNode,e.type,t))}}function z$(e){pd?hd?hd.push(e):hd=[e]:pd=e}function B$(){if(pd){var e=pd,t=hd;if(hd=pd=null,d6(e),t)for(e=0;e>>=0,e===0?32:31-(xZ(e)/wZ|0)|0}var Bg=64,Wg=4194304;function ih(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Cv(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~l;a!==0?r=ih(a):(i&=o,i!==0&&(r=ih(i)))}else o=n&~l,o!==0?r=ih(o):i!==0&&(r=ih(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function zm(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Bi(t),e[t]=n}function SZ(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=xh),x6=" ",w6=!1;function lN(e,t){switch(e){case"keyup":return JZ.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sN(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Jc=!1;function tQ(e,t){switch(e){case"compositionend":return sN(t);case"keypress":return t.which!==32?null:(w6=!0,x6);case"textInput":return e=t.data,e===x6&&w6?null:e;default:return null}}function nQ(e,t){if(Jc)return e==="compositionend"||!iC&&lN(e,t)?(e=oN(),F0=rC=Ds=null,Jc=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=S6(n)}}function fN(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?fN(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function pN(){for(var e=window,t=_v();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=_v(e.document)}return t}function lC(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function dQ(e){var t=pN(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fN(n.ownerDocument.documentElement,n)){if(r!==null&&lC(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=C6(n,i);var o=C6(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ed=null,c3=null,_h=null,d3=!1;function M6(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;d3||ed==null||ed!==_v(r)||(r=ed,"selectionStart"in r&&lC(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}),_h&&Gh(_h,r)||(_h=r,r=Ov(c3,"onSelect"),0rd||(e.current=v3[rd],v3[rd]=null,rd--)}function jr(e,t){rd++,v3[rd]=e.current,e.current=t}var Ys={},fo=eu(Ys),Do=eu(!1),Wu=Ys;function Pd(e,t){var n=e.type.contextTypes;if(!n)return Ys;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Eo(e){return e=e.childContextTypes,e!=null}function Dv(){Hr(Do),Hr(fo)}function L6(e,t,n){if(fo.current!==Ys)throw Error(ln(168));jr(fo,t),jr(Do,n)}function _N(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(ln(108,iZ(e)||"Unknown",l));return oa({},n,r)}function Ev(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ys,Wu=fo.current,jr(fo,e),jr(Do,Do.current),!0}function I6(e,t,n){var r=e.stateNode;if(!r)throw Error(ln(169));n?(e=_N(e,t,Wu),r.__reactInternalMemoizedMergedChildContext=e,Hr(Do),Hr(fo),jr(fo,e)):Hr(Do),jr(Do,n)}var Nl=null,o1=!1,aw=!1;function TN(e){Nl===null?Nl=[e]:Nl.push(e)}function TQ(e){o1=!0,TN(e)}function tu(){if(!aw&&Nl!==null){aw=!0;var e=0,t=Pr;try{var n=Nl;for(Pr=1;e>=o,l-=o,jl=1<<32-Bi(t)+l|n<k?(S=T,T=null):S=T.sibling;var C=f(v,T,y[k],w);if(C===null){T===null&&(T=S);break}e&&T&&C.alternate===null&&t(v,T),h=i(C,h,k),x===null?_=C:x.sibling=C,x=C,T=S}if(k===y.length)return n(v,T),Zr&&vu(v,k),_;if(T===null){for(;kk?(S=T,T=null):S=T.sibling;var M=f(v,T,C.value,w);if(M===null){T===null&&(T=S);break}e&&T&&M.alternate===null&&t(v,T),h=i(M,h,k),x===null?_=M:x.sibling=M,x=M,T=S}if(C.done)return n(v,T),Zr&&vu(v,k),_;if(T===null){for(;!C.done;k++,C=y.next())C=d(v,C.value,w),C!==null&&(h=i(C,h,k),x===null?_=C:x.sibling=C,x=C);return Zr&&vu(v,k),_}for(T=r(v,T);!C.done;k++,C=y.next())C=p(T,v,k,C.value,w),C!==null&&(e&&C.alternate!==null&&T.delete(C.key===null?k:C.key),h=i(C,h,k),x===null?_=C:x.sibling=C,x=C);return e&&T.forEach(function(O){return t(v,O)}),Zr&&vu(v,k),_}function b(v,h,y,w){if(typeof y=="object"&&y!==null&&y.type===Qc&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Fg:e:{for(var _=y.key,x=h;x!==null;){if(x.key===_){if(_=y.type,_===Qc){if(x.tag===7){n(v,x.sibling),h=l(x,y.props.children),h.return=v,v=h;break e}}else if(x.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Ms&&W6(_)===x.type){n(v,x.sibling),h=l(x,y.props),h.ref=Hf(v,x,y),h.return=v,v=h;break e}n(v,x);break}else t(v,x);x=x.sibling}y.type===Qc?(h=ju(y.props.children,v.mode,w,y.key),h.return=v,v=h):(w=V0(y.type,y.key,y.props,null,v.mode,w),w.ref=Hf(v,h,y),w.return=v,v=w)}return o(v);case Zc:e:{for(x=y.key;h!==null;){if(h.key===x)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){n(v,h.sibling),h=l(h,y.children||[]),h.return=v,v=h;break e}else{n(v,h);break}else t(v,h);h=h.sibling}h=fw(y,v.mode,w),h.return=v,v=h}return o(v);case Ms:return x=y._init,b(v,h,x(y._payload),w)}if(oh(y))return m(v,h,y,w);if(zf(y))return g(v,h,y,w);Xg(v,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,h!==null&&h.tag===6?(n(v,h.sibling),h=l(h,y),h.return=v,v=h):(n(v,h),h=dw(y,v.mode,w),h.return=v,v=h),o(v)):n(v,h)}return b}var Ad=DN(!0),EN=DN(!1),qm={},ml=eu(qm),Zh=eu(qm),Qh=eu(qm);function Au(e){if(e===qm)throw Error(ln(174));return e}function gC(e,t){switch(jr(Qh,t),jr(Zh,e),jr(ml,qm),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:e3(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=e3(t,e)}Hr(ml),jr(ml,t)}function Dd(){Hr(ml),Hr(Zh),Hr(Qh)}function RN(e){Au(Qh.current);var t=Au(ml.current),n=e3(t,e.type);t!==n&&(jr(Zh,e),jr(ml,n))}function vC(e){Zh.current===e&&(Hr(ml),Hr(Zh))}var na=eu(0);function Fv(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ow=[];function yC(){for(var e=0;en?n:4,e(!0);var r=iw.transition;iw.transition={};try{e(!1),t()}finally{Pr=n,iw.transition=r}}function XN(){return Ti().memoizedState}function MQ(e,t,n){var r=zs(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},KN(e))ZN(t,n);else if(n=MN(e,t,n,r),n!==null){var l=bo();Wi(n,e,r,l),QN(n,t,r)}}function PQ(e,t,n){var r=zs(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(KN(e))ZN(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,a=i(o,n);if(l.hasEagerState=!0,l.eagerState=a,qi(a,o)){var s=t.interleaved;s===null?(l.next=l,hC(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=MN(e,t,l,r),n!==null&&(l=bo(),Wi(n,e,r,l),QN(n,t,r))}}function KN(e){var t=e.alternate;return e===aa||t!==null&&t===aa}function ZN(e,t){Th=jv=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function QN(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,eC(e,n)}}var zv={readContext:_i,useCallback:oo,useContext:oo,useEffect:oo,useImperativeHandle:oo,useInsertionEffect:oo,useLayoutEffect:oo,useMemo:oo,useReducer:oo,useRef:oo,useState:oo,useDebugValue:oo,useDeferredValue:oo,useTransition:oo,useMutableSource:oo,useSyncExternalStore:oo,useId:oo,unstable_isNewReconciler:!1},OQ={readContext:_i,useCallback:function(e,t){return rl().memoizedState=[e,t===void 0?null:t],e},useContext:_i,useEffect:U6,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,W0(4194308,4,UN.bind(null,t,e),n)},useLayoutEffect:function(e,t){return W0(4194308,4,e,t)},useInsertionEffect:function(e,t){return W0(4,2,e,t)},useMemo:function(e,t){var n=rl();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=rl();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=MQ.bind(null,aa,e),[r.memoizedState,e]},useRef:function(e){var t=rl();return e={current:e},t.memoizedState=e},useState:q6,useDebugValue:TC,useDeferredValue:function(e){return rl().memoizedState=e},useTransition:function(){var e=q6(!1),t=e[0];return e=CQ.bind(null,e[1]),rl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=aa,l=rl();if(Zr){if(n===void 0)throw Error(ln(407));n=n()}else{if(n=t(),Fa===null)throw Error(ln(349));Uu&30||$N(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,U6(FN.bind(null,r,i,e),[e]),r.flags|=2048,tm(9,NN.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=rl(),t=Fa.identifierPrefix;if(Zr){var n=zl,r=jl;n=(r&~(1<<32-Bi(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Jh++,0")&&(s=s.replace("",e.displayName)),s}while(1<=o&&0<=a);break}}}finally{ww=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?xh(e):""}function WZ(e){switch(e.tag){case 5:return xh(e.type);case 16:return xh("Lazy");case 13:return xh("Suspense");case 19:return xh("SuspenseList");case 0:case 2:case 15:return e=_w(e.type,!1),e;case 11:return e=_w(e.type.render,!1),e;case 1:return e=_w(e.type,!0),e;default:return""}}function MT(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case cd:return"Fragment";case ud:return"Portal";case ST:return"Profiler";case RC:return"StrictMode";case kT:return"Suspense";case CT:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case nN:return(e.displayName||"Context")+".Consumer";case tN:return(e._context.displayName||"Context")+".Provider";case LC:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case IC:return t=e.displayName||null,t!==null?t:MT(e.type)||"Memo";case Ls:t=e._payload,e=e._init;try{return MT(e(t))}catch{}}return null}function qZ(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return MT(t);case 8:return t===RC?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function tu(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function aN(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function UZ(e){var t=aN(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Jg(e){e._valueTracker||(e._valueTracker=UZ(e))}function oN(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=aN(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function zv(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function PT(e,t){var n=t.checked;return da({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function GO(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=tu(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function iN(e,t){t=t.checked,t!=null&&EC(e,"checked",t,!1)}function OT(e,t){iN(e,t);var n=tu(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?AT(e,t.type,n):t.hasOwnProperty("defaultValue")&&AT(e,t.type,tu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function YO(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function AT(e,t,n){(t!=="number"||zv(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var wh=Array.isArray;function kd(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=e0.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function nm(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Eh={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},HZ=["Webkit","ms","Moz","O"];Object.keys(Eh).forEach(function(e){HZ.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Eh[t]=Eh[e]})});function cN(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Eh.hasOwnProperty(e)&&Eh[e]?(""+t).trim():t+"px"}function dN(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=cN(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var VZ=da({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function RT(e,t){if(t){if(VZ[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(an(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(an(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(an(61))}if(t.style!=null&&typeof t.style!="object")throw Error(an(62))}}function LT(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var IT=null;function $C(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $T=null,Cd=null,Md=null;function ZO(e){if(e=tg(e)){if(typeof $T!="function")throw Error(an(280));var t=e.stateNode;t&&(t=M1(t),$T(e.stateNode,e.type,t))}}function fN(e){Cd?Md?Md.push(e):Md=[e]:Cd=e}function pN(){if(Cd){var e=Cd,t=Md;if(Md=Cd=null,ZO(e),t)for(e=0;e>>=0,e===0?32:31-(rQ(e)/aQ|0)|0}var t0=64,n0=4194304;function _h(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Uv(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~l;a!==0?r=_h(a):(i&=o,i!==0&&(r=_h(i)))}else o=n&~l,o!==0?r=_h(o):i!==0&&(r=_h(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Jm(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-rl(t),e[t]=n}function sQ(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Lh),i8=" ",l8=!1;function RN(e,t){switch(e){case"keyup":return $Q.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function LN(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var dd=!1;function FQ(e,t){switch(e){case"compositionend":return LN(t);case"keypress":return t.which!==32?null:(l8=!0,i8);case"textInput":return e=t.data,e===i8&&l8?null:e;default:return null}}function jQ(e,t){if(dd)return e==="compositionend"||!UC&&RN(e,t)?(e=DN(),tv=BC=Fs=null,dd=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=d8(n)}}function FN(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?FN(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jN(){for(var e=window,t=zv();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=zv(e.document)}return t}function HC(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function YQ(e){var t=jN(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&FN(n.ownerDocument.documentElement,n)){if(r!==null&&HC(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=f8(n,i);var o=f8(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,fd=null,WT=null,$h=null,qT=!1;function p8(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;qT||fd==null||fd!==zv(r)||(r=fd,"selectionStart"in r&&HC(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}),$h&&sm($h,r)||($h=r,r=Gv(WT,"onSelect"),0md||(e.current=XT[md],XT[md]=null,md--)}function qr(e,t){md++,XT[md]=e.current,e.current=t}var nu={},go=du(nu),jo=du(!1),ec=nu;function zd(e,t){var n=e.type.contextTypes;if(!n)return nu;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function zo(e){return e=e.childContextTypes,e!=null}function Xv(){Xr(jo),Xr(go)}function x8(e,t,n){if(go.current!==nu)throw Error(an(168));qr(go,t),qr(jo,n)}function YN(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(an(108,qZ(e)||"Unknown",l));return da({},n,r)}function Kv(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||nu,ec=go.current,qr(go,e),qr(jo,jo.current),!0}function w8(e,t,n){var r=e.stateNode;if(!r)throw Error(an(169));n?(e=YN(e,t,ec),r.__reactInternalMemoizedMergedChildContext=e,Xr(jo),Xr(go),qr(go,e)):Xr(jo),qr(jo,n)}var Kl=null,P1=!1,$w=!1;function XN(e){Kl===null?Kl=[e]:Kl.push(e)}function iJ(e){P1=!0,XN(e)}function fu(){if(!$w&&Kl!==null){$w=!0;var e=0,t=Dr;try{var n=Kl;for(Dr=1;e>=o,l-=o,Zl=1<<32-rl(t)+l|n<k?(C=S,S=null):C=S.sibling;var T=f(v,S,y[k],x);if(T===null){S===null&&(S=C);break}e&&S&&T.alternate===null&&t(v,S),m=i(T,m,k),w===null?_=T:w.sibling=T,w=T,S=C}if(k===y.length)return n(v,S),na&&Mu(v,k),_;if(S===null){for(;kk?(C=S,S=null):C=S.sibling;var M=f(v,S,T.value,x);if(M===null){S===null&&(S=C);break}e&&S&&M.alternate===null&&t(v,S),m=i(M,m,k),w===null?_=M:w.sibling=M,w=M,S=C}if(T.done)return n(v,S),na&&Mu(v,k),_;if(S===null){for(;!T.done;k++,T=y.next())T=d(v,T.value,x),T!==null&&(m=i(T,m,k),w===null?_=T:w.sibling=T,w=T);return na&&Mu(v,k),_}for(S=r(v,S);!T.done;k++,T=y.next())T=p(S,v,k,T.value,x),T!==null&&(e&&T.alternate!==null&&S.delete(T.key===null?k:T.key),m=i(T,m,k),w===null?_=T:w.sibling=T,w=T);return e&&S.forEach(function(O){return t(v,O)}),na&&Mu(v,k),_}function b(v,m,y,x){if(typeof y=="object"&&y!==null&&y.type===cd&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Qg:e:{for(var _=y.key,w=m;w!==null;){if(w.key===_){if(_=y.type,_===cd){if(w.tag===7){n(v,w.sibling),m=l(w,y.props.children),m.return=v,v=m;break e}}else if(w.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Ls&&P8(_)===w.type){n(v,w.sibling),m=l(w,y.props),m.ref=lp(v,w,y),m.return=v,v=m;break e}n(v,w);break}else t(v,w);w=w.sibling}y.type===cd?(m=Qu(y.props.children,v.mode,x,y.key),m.return=v,v=m):(x=uv(y.type,y.key,y.props,null,v.mode,x),x.ref=lp(v,m,y),x.return=v,v=x)}return o(v);case ud:e:{for(w=y.key;m!==null;){if(m.key===w)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){n(v,m.sibling),m=l(m,y.children||[]),m.return=v,v=m;break e}else{n(v,m);break}else t(v,m);m=m.sibling}m=Uw(y,v.mode,x),m.return=v,v=m}return o(v);case Ls:return w=y._init,b(v,m,w(y._payload),x)}if(wh(y))return h(v,m,y,x);if(np(y))return g(v,m,y,x);u0(v,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(n(v,m.sibling),m=l(m,y),m.return=v,v=m):(n(v,m),m=qw(y,v.mode,x),m.return=v,v=m),o(v)):n(v,m)}return b}var Wd=rF(!0),aF=rF(!1),ng={},Al=du(ng),fm=du(ng),pm=du(ng);function Bu(e){if(e===ng)throw Error(an(174));return e}function eM(e,t){switch(qr(pm,t),qr(fm,e),qr(Al,ng),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ET(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ET(t,e)}Xr(Al),qr(Al,t)}function qd(){Xr(Al),Xr(fm),Xr(pm)}function oF(e){Bu(pm.current);var t=Bu(Al.current),n=ET(t,e.type);t!==n&&(qr(fm,e),qr(Al,n))}function tM(e){fm.current===e&&(Xr(Al),Xr(fm))}var sa=du(0);function ny(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Nw=[];function nM(){for(var e=0;en?n:4,e(!0);var r=Fw.transition;Fw.transition={};try{e(!1),t()}finally{Dr=n,Fw.transition=r}}function wF(){return Ii().memoizedState}function cJ(e,t,n){var r=Ys(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},_F(e))TF(t,n);else if(n=JN(e,t,n,r),n!==null){var l=So();al(n,e,r,l),SF(n,t,r)}}function dJ(e,t,n){var r=Ys(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(_F(e))TF(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,a=i(o,n);if(l.hasEagerState=!0,l.eagerState=a,ol(a,o)){var s=t.interleaved;s===null?(l.next=l,QC(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=JN(e,t,l,r),n!==null&&(l=So(),al(n,e,r,l),SF(n,t,r))}}function _F(e){var t=e.alternate;return e===ca||t!==null&&t===ca}function TF(e,t){Nh=ry=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function SF(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,FC(e,n)}}var ay={readContext:Li,useCallback:uo,useContext:uo,useEffect:uo,useImperativeHandle:uo,useInsertionEffect:uo,useLayoutEffect:uo,useMemo:uo,useReducer:uo,useRef:uo,useState:uo,useDebugValue:uo,useDeferredValue:uo,useTransition:uo,useMutableSource:uo,useSyncExternalStore:uo,useId:uo,unstable_isNewReconciler:!1},fJ={readContext:Li,useCallback:function(e,t){return yl().memoizedState=[e,t===void 0?null:t],e},useContext:Li,useEffect:A8,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ov(4194308,4,gF.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ov(4194308,4,e,t)},useInsertionEffect:function(e,t){return ov(4,2,e,t)},useMemo:function(e,t){var n=yl();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=yl();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=cJ.bind(null,ca,e),[r.memoizedState,e]},useRef:function(e){var t=yl();return e={current:e},t.memoizedState=e},useState:O8,useDebugValue:lM,useDeferredValue:function(e){return yl().memoizedState=e},useTransition:function(){var e=O8(!1),t=e[0];return e=uJ.bind(null,e[1]),yl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ca,l=yl();if(na){if(n===void 0)throw Error(an(407));n=n()}else{if(n=t(),Wa===null)throw Error(an(349));nc&30||sF(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,A8(cF.bind(null,r,i,e),[e]),r.flags|=2048,gm(9,uF.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=yl(),t=Wa.identifierPrefix;if(na){var n=Ql,r=Zl;n=(r&~(1<<32-rl(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=hm++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[ll]=t,e[Kh]=r,lF(e,t,!1,!1),t.stateNode=e;e:{switch(o=n3(n,r),n){case"dialog":qr("cancel",e),qr("close",e),l=r;break;case"iframe":case"object":case"embed":qr("load",e),l=r;break;case"video":case"audio":for(l=0;lRd&&(t.flags|=128,r=!0,Vf(i,!1),t.lanes=4194304)}else{if(!r)if(e=Fv(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Vf(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Zr)return io(t),null}else 2*ba()-i.renderingStartTime>Rd&&n!==1073741824&&(t.flags|=128,r=!0,Vf(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ba(),t.sibling=null,n=na.current,jr(na,r?n&1|2:n&1),t):(io(t),null);case 22:case 23:return OC(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Uo&1073741824&&(io(t),t.subtreeFlags&6&&(t.flags|=8192)):io(t),null;case 24:return null;case 25:return null}throw Error(ln(156,t.tag))}function NQ(e,t){switch(uC(t),t.tag){case 1:return Eo(t.type)&&Dv(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Dd(),Hr(Do),Hr(fo),yC(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return vC(t),null;case 13:if(Hr(na),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ln(340));Od()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Hr(na),null;case 4:return Dd(),null;case 10:return pC(t.type._context),null;case 22:case 23:return OC(),null;case 24:return null;default:return null}}var Zg=!1,uo=!1,FQ=typeof WeakSet=="function"?WeakSet:Set,Dn=null;function ld(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){pa(e,t,r)}else n.current=null}function O3(e,t,n){try{n()}catch(r){pa(e,t,r)}}var J6=!1;function jQ(e,t){if(f3=Mv,e=pN(),lC(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,a=-1,s=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==n||l!==0&&d.nodeType!==3||(a=o+l),d!==i||r!==0&&d.nodeType!==3||(s=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++u===l&&(a=o),f===i&&++c===r&&(s=o),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=a===-1||s===-1?null:{start:a,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(p3={focusedElem:e,selectionRange:n},Mv=!1,Dn=t;Dn!==null;)if(t=Dn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Dn=e;else for(;Dn!==null;){t=Dn;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,b=m.memoizedState,v=t.stateNode,h=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:$i(t.type,g),b);v.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ln(163))}}catch(w){pa(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,Dn=e;break}Dn=t.return}return m=J6,J6=!1,m}function kh(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&O3(t,n,i)}l=l.next}while(l!==r)}}function s1(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function A3(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function cF(e){var t=e.alternate;t!==null&&(e.alternate=null,cF(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ll],delete t[Kh],delete t[g3],delete t[wQ],delete t[_Q])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function dF(e){return e.tag===5||e.tag===3||e.tag===4}function eA(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dF(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function D3(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Av));else if(r!==4&&(e=e.child,e!==null))for(D3(e,t,n),e=e.sibling;e!==null;)D3(e,t,n),e=e.sibling}function E3(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(E3(e,t,n),e=e.sibling;e!==null;)E3(e,t,n),e=e.sibling}var Xa=null,Ni=!1;function ys(e,t,n){for(n=n.child;n!==null;)fF(e,t,n),n=n.sibling}function fF(e,t,n){if(hl&&typeof hl.onCommitFiberUnmount=="function")try{hl.onCommitFiberUnmount(e1,n)}catch{}switch(n.tag){case 5:uo||ld(n,t);case 6:var r=Xa,l=Ni;Xa=null,ys(e,t,n),Xa=r,Ni=l,Xa!==null&&(Ni?(e=Xa,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Xa.removeChild(n.stateNode));break;case 18:Xa!==null&&(Ni?(e=Xa,n=n.stateNode,e.nodeType===8?rw(e.parentNode,n):e.nodeType===1&&rw(e,n),Hh(e)):rw(Xa,n.stateNode));break;case 4:r=Xa,l=Ni,Xa=n.stateNode.containerInfo,Ni=!0,ys(e,t,n),Xa=r,Ni=l;break;case 0:case 11:case 14:case 15:if(!uo&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&O3(n,t,o),l=l.next}while(l!==r)}ys(e,t,n);break;case 1:if(!uo&&(ld(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){pa(n,t,a)}ys(e,t,n);break;case 21:ys(e,t,n);break;case 22:n.mode&1?(uo=(r=uo)||n.memoizedState!==null,ys(e,t,n),uo=r):ys(e,t,n);break;default:ys(e,t,n)}}function tA(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new FQ),t.forEach(function(r){var l=YQ.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Li(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=ba()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*BQ(r/1960))-r,10e?16:e,Es===null)var r=!1;else{if(e=Es,Es=null,qv=0,pr&6)throw Error(ln(331));var l=pr;for(pr|=4,Dn=e.current;Dn!==null;){var i=Dn,o=i.child;if(Dn.flags&16){var a=i.deletions;if(a!==null){for(var s=0;sba()-MC?Fu(e,0):CC|=n),Ro(e,t)}function xF(e,t){t===0&&(e.mode&1?(t=Wg,Wg<<=1,!(Wg&130023424)&&(Wg=4194304)):t=1);var n=bo();e=Yl(e,t),e!==null&&(zm(e,t,n),Ro(e,n))}function GQ(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),xF(e,n)}function YQ(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ln(314))}r!==null&&r.delete(t),xF(e,n)}var wF;wF=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Do.current)Ao=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ao=!1,IQ(e,t,n);Ao=!!(e.flags&131072)}else Ao=!1,Zr&&t.flags&1048576&&kN(t,Lv,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;q0(e,t),e=t.pendingProps;var l=Pd(t,fo.current);gd(t,n),l=xC(null,t,r,e,l,n);var i=wC();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Eo(r)?(i=!0,Ev(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,mC(t),l.updater=i1,t.stateNode=l,l._reactInternals=t,_3(t,r,e,n),t=S3(null,t,r,!0,i,n)):(t.tag=0,Zr&&i&&sC(t),vo(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(q0(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=KQ(r),e=$i(r,e),l){case 0:t=k3(null,t,r,e,n);break e;case 1:t=K6(null,t,r,e,n);break e;case 11:t=Y6(null,t,r,e,n);break e;case 14:t=X6(null,t,r,$i(r.type,e),n);break e}throw Error(ln(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:$i(r,l),k3(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:$i(r,l),K6(e,t,r,l,n);case 3:e:{if(aF(t),e===null)throw Error(ln(387));r=t.pendingProps,i=t.memoizedState,l=i.element,PN(e,t),Nv(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=Ed(Error(ln(423)),t),t=Z6(e,t,r,n,l);break e}else if(r!==l){l=Ed(Error(ln(424)),t),t=Z6(e,t,r,n,l);break e}else for(Vo=Ns(t.stateNode.containerInfo.firstChild),Ko=t,Zr=!0,Fi=null,n=EN(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Od(),r===l){t=Xl(e,t,n);break e}vo(e,t,r,n)}t=t.child}return t;case 5:return RN(t),e===null&&b3(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,h3(r,l)?o=null:i!==null&&h3(r,i)&&(t.flags|=32),rF(e,t),vo(e,t,o,n),t.child;case 6:return e===null&&b3(t),null;case 13:return oF(e,t,n);case 4:return gC(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ad(t,null,r,n):vo(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:$i(r,l),Y6(e,t,r,l,n);case 7:return vo(e,t,t.pendingProps,n),t.child;case 8:return vo(e,t,t.pendingProps.children,n),t.child;case 12:return vo(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,jr(Iv,r._currentValue),r._currentValue=o,i!==null)if(qi(i.value,o)){if(i.children===l.children&&!Do.current){t=Xl(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var s=a.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Ul(-1,n&-n),s.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),x3(i.return,n,t),a.lanes|=n;break}s=s.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(ln(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),x3(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}vo(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,gd(t,n),l=_i(l),r=r(l),t.flags|=1,vo(e,t,r,n),t.child;case 14:return r=t.type,l=$i(r,t.pendingProps),l=$i(r.type,l),X6(e,t,r,l,n);case 15:return tF(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:$i(r,l),q0(e,t),t.tag=1,Eo(r)?(e=!0,Ev(t)):e=!1,gd(t,n),AN(t,r,l),_3(t,r,l,n),S3(null,t,r,!0,e,n);case 19:return iF(e,t,n);case 22:return nF(e,t,n)}throw Error(ln(156,t.tag))};function _F(e,t){return Y$(e,t)}function XQ(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function hi(e,t,n,r){return new XQ(e,t,n,r)}function DC(e){return e=e.prototype,!(!e||!e.isReactComponent)}function KQ(e){if(typeof e=="function")return DC(e)?1:0;if(e!=null){if(e=e.$$typeof,e===KS)return 11;if(e===ZS)return 14}return 2}function Bs(e,t){var n=e.alternate;return n===null?(n=hi(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function V0(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")DC(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Qc:return ju(n.children,l,i,t);case XS:o=8,l|=8;break;case VT:return e=hi(12,n,t,l|2),e.elementType=VT,e.lanes=i,e;case GT:return e=hi(13,n,t,l),e.elementType=GT,e.lanes=i,e;case YT:return e=hi(19,n,t,l),e.elementType=YT,e.lanes=i,e;case D$:return c1(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case O$:o=10;break e;case A$:o=9;break e;case KS:o=11;break e;case ZS:o=14;break e;case Ms:o=16,r=null;break e}throw Error(ln(130,e==null?e:typeof e,""))}return t=hi(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function ju(e,t,n,r){return e=hi(7,e,r,t),e.lanes=n,e}function c1(e,t,n,r){return e=hi(22,e,r,t),e.elementType=D$,e.lanes=n,e.stateNode={isHidden:!1},e}function dw(e,t,n){return e=hi(6,e,null,t),e.lanes=n,e}function fw(e,t,n){return t=hi(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ZQ(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=V2(0),this.expirationTimes=V2(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=V2(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function EC(e,t,n,r,l,i,o,a,s){return e=new ZQ(e,t,n,a,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=hi(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},mC(i),e}function QQ(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(CF)}catch(e){console.error(e)}}CF(),k$.exports=ni;var cc=k$.exports;const sh=lr(cc);var uA=cc;UT.createRoot=uA.createRoot,UT.hydrateRoot=uA.hydrateRoot;const rm={black:"#000",white:"#fff"},Dc={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Ec={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Rc={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Lc={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Ic={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Yf={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Rl={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Ie(){return Ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t[n]=MF(e[n])}),t}function ha(e,t,n={clone:!0}){const r=n.clone?Ie({},e):e;return Fl(e)&&Fl(t)&&Object.keys(t).forEach(l=>{l!=="__proto__"&&(Fl(t[l])&&l in e&&Fl(e[l])?r[l]=ha(e[l],t[l],n):n.clone?r[l]=Fl(t[l])?MF(t[l]):t[l]:r[l]=t[l])}),r}var PF={exports:{}},rJ="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",aJ=rJ,oJ=aJ;function OF(){}function AF(){}AF.resetWarningCache=OF;var iJ=function(){function e(r,l,i,o,a,s){if(s!==oJ){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:AF,resetWarningCache:OF};return n.PropTypes=n,n};PF.exports=iJ();var Vr=PF.exports;const le=lr(Vr);function No(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[wl]=t,e[dm]=r,RF(e,t,!1,!1),t.stateNode=e;e:{switch(o=LT(n,r),n){case"dialog":Gr("cancel",e),Gr("close",e),l=r;break;case"iframe":case"object":case"embed":Gr("load",e),l=r;break;case"video":case"audio":for(l=0;lHd&&(t.flags|=128,r=!0,sp(i,!1),t.lanes=4194304)}else{if(!r)if(e=ny(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),sp(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!na)return co(t),null}else 2*Sa()-i.renderingStartTime>Hd&&n!==1073741824&&(t.flags|=128,r=!0,sp(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Sa(),t.sibling=null,n=sa.current,qr(sa,r?n&1|2:n&1),t):(co(t),null);case 22:case 23:return pM(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Qo&1073741824&&(co(t),t.subtreeFlags&6&&(t.flags|=8192)):co(t),null;case 24:return null;case 25:return null}throw Error(an(156,t.tag))}function xJ(e,t){switch(GC(t),t.tag){case 1:return zo(t.type)&&Xv(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qd(),Xr(jo),Xr(go),nM(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return tM(t),null;case 13:if(Xr(sa),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(an(340));Bd()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Xr(sa),null;case 4:return qd(),null;case 10:return ZC(t.type._context),null;case 22:case 23:return pM(),null;case 24:return null;default:return null}}var d0=!1,po=!1,wJ=typeof WeakSet=="function"?WeakSet:Set,Pn=null;function bd(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ba(e,t,r)}else n.current=null}function lS(e,t,n){try{n()}catch(r){ba(e,t,r)}}var j8=!1;function _J(e,t){if(UT=Hv,e=jN(),HC(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,a=-1,s=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==n||l!==0&&d.nodeType!==3||(a=o+l),d!==i||r!==0&&d.nodeType!==3||(s=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++u===l&&(a=o),f===i&&++c===r&&(s=o),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=a===-1||s===-1?null:{start:a,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(HT={focusedElem:e,selectionRange:n},Hv=!1,Pn=t;Pn!==null;)if(t=Pn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Pn=e;else for(;Pn!==null;){t=Pn;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,b=h.memoizedState,v=t.stateNode,m=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:Qi(t.type,g),b);v.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(an(163))}}catch(x){ba(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,Pn=e;break}Pn=t.return}return h=j8,j8=!1,h}function Fh(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&lS(t,n,i)}l=l.next}while(l!==r)}}function D1(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function sS(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function $F(e){var t=e.alternate;t!==null&&(e.alternate=null,$F(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[wl],delete t[dm],delete t[YT],delete t[aJ],delete t[oJ])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function NF(e){return e.tag===5||e.tag===3||e.tag===4}function z8(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||NF(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function uS(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Yv));else if(r!==4&&(e=e.child,e!==null))for(uS(e,t,n),e=e.sibling;e!==null;)uS(e,t,n),e=e.sibling}function cS(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(cS(e,t,n),e=e.sibling;e!==null;)cS(e,t,n),e=e.sibling}var eo=null,Ji=!1;function Ms(e,t,n){for(n=n.child;n!==null;)FF(e,t,n),n=n.sibling}function FF(e,t,n){if(Ol&&typeof Ol.onCommitFiberUnmount=="function")try{Ol.onCommitFiberUnmount(T1,n)}catch{}switch(n.tag){case 5:po||bd(n,t);case 6:var r=eo,l=Ji;eo=null,Ms(e,t,n),eo=r,Ji=l,eo!==null&&(Ji?(e=eo,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):eo.removeChild(n.stateNode));break;case 18:eo!==null&&(Ji?(e=eo,n=n.stateNode,e.nodeType===8?Iw(e.parentNode,n):e.nodeType===1&&Iw(e,n),im(e)):Iw(eo,n.stateNode));break;case 4:r=eo,l=Ji,eo=n.stateNode.containerInfo,Ji=!0,Ms(e,t,n),eo=r,Ji=l;break;case 0:case 11:case 14:case 15:if(!po&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&lS(n,t,o),l=l.next}while(l!==r)}Ms(e,t,n);break;case 1:if(!po&&(bd(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ba(n,t,a)}Ms(e,t,n);break;case 21:Ms(e,t,n);break;case 22:n.mode&1?(po=(r=po)||n.memoizedState!==null,Ms(e,t,n),po=r):Ms(e,t,n);break;default:Ms(e,t,n)}}function B8(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new wJ),t.forEach(function(r){var l=DJ.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Ki(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=Sa()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*SJ(r/1960))-r,10e?16:e,js===null)var r=!1;else{if(e=js,js=null,ly=0,gr&6)throw Error(an(331));var l=gr;for(gr|=4,Pn=e.current;Pn!==null;){var i=Pn,o=i.child;if(Pn.flags&16){var a=i.deletions;if(a!==null){for(var s=0;sSa()-dM?Zu(e,0):cM|=n),Bo(e,t)}function VF(e,t){t===0&&(e.mode&1?(t=n0,n0<<=1,!(n0&130023424)&&(n0=4194304)):t=1);var n=So();e=os(e,t),e!==null&&(Jm(e,t,n),Bo(e,n))}function AJ(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),VF(e,n)}function DJ(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(an(314))}r!==null&&r.delete(t),VF(e,n)}var GF;GF=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||jo.current)No=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return No=!1,yJ(e,t,n);No=!!(e.flags&131072)}else No=!1,na&&t.flags&1048576&&KN(t,Qv,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;iv(e,t),e=t.pendingProps;var l=zd(t,go.current);Od(t,n),l=aM(null,t,r,e,l,n);var i=oM();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,zo(r)?(i=!0,Kv(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,JC(t),l.updater=O1,t.stateNode=l,l._reactInternals=t,eS(t,r,e,n),t=rS(null,t,r,!0,i,n)):(t.tag=0,na&&i&&VC(t),To(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(iv(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=RJ(r),e=Qi(r,e),l){case 0:t=nS(null,t,r,e,n);break e;case 1:t=$8(null,t,r,e,n);break e;case 11:t=L8(null,t,r,e,n);break e;case 14:t=I8(null,t,r,Qi(r.type,e),n);break e}throw Error(an(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Qi(r,l),nS(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Qi(r,l),$8(e,t,r,l,n);case 3:e:{if(AF(t),e===null)throw Error(an(387));r=t.pendingProps,i=t.memoizedState,l=i.element,eF(e,t),ty(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=Ud(Error(an(423)),t),t=N8(e,t,r,n,l);break e}else if(r!==l){l=Ud(Error(an(424)),t),t=N8(e,t,r,n,l);break e}else for(ei=Hs(t.stateNode.containerInfo.firstChild),ai=t,na=!0,el=null,n=aF(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Bd(),r===l){t=is(e,t,n);break e}To(e,t,r,n)}t=t.child}return t;case 5:return oF(t),e===null&&ZT(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,VT(r,l)?o=null:i!==null&&VT(r,i)&&(t.flags|=32),OF(e,t),To(e,t,o,n),t.child;case 6:return e===null&&ZT(t),null;case 13:return DF(e,t,n);case 4:return eM(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Wd(t,null,r,n):To(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Qi(r,l),L8(e,t,r,l,n);case 7:return To(e,t,t.pendingProps,n),t.child;case 8:return To(e,t,t.pendingProps.children,n),t.child;case 12:return To(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,qr(Jv,r._currentValue),r._currentValue=o,i!==null)if(ol(i.value,o)){if(i.children===l.children&&!jo.current){t=is(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var s=a.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=ts(-1,n&-n),s.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),QT(i.return,n,t),a.lanes|=n;break}s=s.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(an(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),QT(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}To(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Od(t,n),l=Li(l),r=r(l),t.flags|=1,To(e,t,r,n),t.child;case 14:return r=t.type,l=Qi(r,t.pendingProps),l=Qi(r.type,l),I8(e,t,r,l,n);case 15:return MF(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Qi(r,l),iv(e,t),t.tag=1,zo(r)?(e=!0,Kv(t)):e=!1,Od(t,n),nF(t,r,l),eS(t,r,l,n),rS(null,t,r,!0,e,n);case 19:return EF(e,t,n);case 22:return PF(e,t,n)}throw Error(an(156,t.tag))};function YF(e,t){return xN(e,t)}function EJ(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ci(e,t,n,r){return new EJ(e,t,n,r)}function mM(e){return e=e.prototype,!(!e||!e.isReactComponent)}function RJ(e){if(typeof e=="function")return mM(e)?1:0;if(e!=null){if(e=e.$$typeof,e===LC)return 11;if(e===IC)return 14}return 2}function Xs(e,t){var n=e.alternate;return n===null?(n=Ci(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function uv(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")mM(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case cd:return Qu(n.children,l,i,t);case RC:o=8,l|=8;break;case ST:return e=Ci(12,n,t,l|2),e.elementType=ST,e.lanes=i,e;case kT:return e=Ci(13,n,t,l),e.elementType=kT,e.lanes=i,e;case CT:return e=Ci(19,n,t,l),e.elementType=CT,e.lanes=i,e;case rN:return R1(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case tN:o=10;break e;case nN:o=9;break e;case LC:o=11;break e;case IC:o=14;break e;case Ls:o=16,r=null;break e}throw Error(an(130,e==null?e:typeof e,""))}return t=Ci(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function Qu(e,t,n,r){return e=Ci(7,e,r,t),e.lanes=n,e}function R1(e,t,n,r){return e=Ci(22,e,r,t),e.elementType=rN,e.lanes=n,e.stateNode={isHidden:!1},e}function qw(e,t,n){return e=Ci(6,e,null,t),e.lanes=n,e}function Uw(e,t,n){return t=Ci(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function LJ(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Sw(0),this.expirationTimes=Sw(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Sw(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function gM(e,t,n,r,l,i,o,a,s){return e=new LJ(e,t,n,a,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ci(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},JC(i),e}function IJ(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(QF)}catch(e){console.error(e)}}QF(),K$.exports=ci;var bf=K$.exports;const Sh=dr(bf);var X8=bf;_T.createRoot=X8.createRoot,_T.hydrateRoot=X8.hydrateRoot;const ym={black:"#000",white:"#fff"},Uc={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Hc={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Vc={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Gc={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Yc={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},cp={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},cv={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Ho(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const Di="$$material";function Yt(){return Yt=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?ta(xf,--vo):0,Vd--,Ra===10&&(Vd=1,z1--),Ra}function ko(){return Ra=vo2||oc(Ra)>3?"":" "}function QJ(e,t){for(;--t&&ko()&&!(Ra<48||Ra>102||Ra>57&&Ra<65||Ra>70&&Ra<97););return wf(e,dv()+(t<6&&oi()==32&&ko()==32))}function mS(e){for(;ko();)switch(Ra){case e:return vo;case 34:case 39:e!==34&&e!==39&&mS(Ra);break;case 40:e===41&&mS(e);break;case 92:ko();break}return vo}function JJ(e,t){for(;ko()&&e+Ra!==57;)if(e+Ra===84&&oi()===47)break;return"/*"+wf(t,vo-1)+"*"+rg(e===47?e:ko())}function eee(e){for(;!oc(oi());)ko();return wf(e,vo)}function ij(e){return TM(fv("",null,null,null,[""],e=_M(e),0,[0],e))}function fv(e,t,n,r,l,i,o,a,s){for(var u=0,c=0,d=o,f=0,p=0,h=0,g=1,b=1,v=1,m=0,y="",x=l,_=i,w=r,S=y;b;)switch(h=m,m=ko()){case 40:if(h!=108&&ta(S,d-1)==58){bm(S+=Ln(Bh(m),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:S+=Bh(m);break;case 9:case 10:case 13:case 32:S+=ZJ(h);break;case 92:S+=QJ(dv()-1,7);continue;case 47:switch(oi()){case 42:case 47:h0(tee(JJ(ko(),dv()),t,n),s);break;default:S+="/"}break;case 123*g:a[u++]=Ti(S)*v;case 125*g:case 59:case 0:switch(m){case 0:case 125:b=0;case 59+c:v==-1&&(S=Ln(S,/\f/g,"")),p>0&&Ti(S)-d&&h0(p>32?Z8(S+";",r,n,d-1):Z8(Ln(S," ","")+";",r,n,d-2),s);break;case 59:S+=";";default:if(h0(w=K8(S,t,n,u,c,l,a,y,x=[],_=[],d),i),m===123)if(c===0)fv(S,t,w,w,x,i,d,a,_);else switch(f===99&&ta(S,3)===110?100:f){case 100:case 108:case 109:case 115:fv(e,w,w,r&&h0(K8(e,w,w,0,0,l,a,y,l,x=[],d),_),l,_,d,a,r?x:_);break;default:fv(S,w,w,w,[""],_,0,a,_)}}u=c=p=0,g=v=1,y=S="",d=o;break;case 58:d=1+Ti(S),p=h;default:if(g<1){if(m==123)--g;else if(m==125&&g++==0&&KJ()==125)continue}switch(S+=rg(m),m*g){case 38:v=c>0?1:(S+="\f",-1);break;case 44:a[u++]=(Ti(S)-1)*v,v=1;break;case 64:oi()===45&&(S+=Bh(ko())),f=oi(),c=d=Ti(y=S+=eee(dv())),m++;break;case 45:h===45&&Ti(S)==2&&(g=0)}}return i}function K8(e,t,n,r,l,i,o,a,s,u,c){for(var d=l-1,f=l===0?i:[""],p=wM(f),h=0,g=0,b=0;h0?f[v]+" "+m:Ln(m,/&\f/g,f[v])))&&(s[b++]=y);return B1(e,t,n,l===0?F1:a,s,u,c)}function tee(e,t,n){return B1(e,t,n,ej,rg(XJ()),xm(e,2,-2),0)}function Z8(e,t,n,r){return B1(e,t,n,j1,xm(e,0,r),xm(e,r+1,-1),r)}function Dl(e,t){for(var n="",r=wM(e),l=0;l6)switch(ta(e,t+1)){case 109:if(ta(e,t+4)!==45)break;case 102:return Ln(e,/(.+:)(.+)-([^]+)/,"$1"+En+"$2-$3$1"+ru+(ta(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~bm(e,"stretch")?cj(Ln(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ta(e,t+1)!==115)break;case 6444:switch(ta(e,Ti(e)-3-(~bm(e,"!important")&&10))){case 107:return Ln(e,":",":"+En)+e;case 101:return Ln(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+En+(ta(e,14)===45?"inline-":"")+"box$3$1"+En+"$2$3$1"+xr+"$2box$3")+e}break;case 5936:switch(ta(e,t+11)){case 114:return En+e+xr+Ln(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return En+e+xr+Ln(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return En+e+xr+Ln(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return En+e+xr+e+e}return e}var lee=function(t,n,r,l){if(t.length>-1&&!t.return)switch(t.type){case j1:t.return=cj(t.value,t.length);break;case xM:return Dl([_l(t,{value:Ln(t.value,"@","@"+En)})],l);case F1:if(t.length)return aj(t.props,function(i){switch(rj(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Dl([_l(t,{props:[Ln(i,/:(read-\w+)/,":"+ru+"$1")]})],l);case"::placeholder":return Dl([_l(t,{props:[Ln(i,/:(plac\w+)/,":"+En+"input-$1")]}),_l(t,{props:[Ln(i,/:(plac\w+)/,":"+ru+"$1")]}),_l(t,{props:[Ln(i,/:(plac\w+)/,xr+"input-$1")]})],l)}return""})}},see=[lee],uee=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var b=g.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var l=t.stylisPlugins||see,i={},o,a=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var b=g.getAttribute("data-emotion").split(" "),v=1;vn==null?t:function(...l){t.apply(this,l),n.apply(this,l)},()=>{})}function Um(e,t=166){let n;function r(...l){const i=()=>{e.apply(this,l)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function cJ(e,t){return()=>null}function G0(e,t){var n,r;return ge.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Aa(e){return e&&e.ownerDocument||document}function bl(e){return Aa(e).defaultView||window}function dJ(e,t){return()=>null}function Vv(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const no=typeof window<"u"?ge.useLayoutEffect:ge.useEffect;let cA=0;function fJ(e){const[t,n]=ge.useState(e),r=e||t;return ge.useEffect(()=>{t==null&&(cA+=1,n(`mui-${cA}`))},[t]),r}const dA=qT.useId;function Kl(e){if(dA!==void 0){const t=dA();return e??t}return fJ(e)}function pJ(e,t,n,r,l){return null}function Zl({controlled:e,default:t,name:n,state:r="value"}){const{current:l}=ge.useRef(e!==void 0),[i,o]=ge.useState(t),a=l?e:i,s=ge.useCallback(u=>{l||o(u)},[]);return[a,s]}function yo(e){const t=ge.useRef(e);return no(()=>{t.current=e}),ge.useCallback((...n)=>(0,t.current)(...n),[])}function Lr(...e){return ge.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Vv(n,t)})},e)}let S1=!0,F3=!1,fA;const hJ={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function mJ(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&hJ[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function gJ(e){e.metaKey||e.altKey||e.ctrlKey||(S1=!0)}function pw(){S1=!1}function vJ(){this.visibilityState==="hidden"&&F3&&(S1=!0)}function yJ(e){e.addEventListener("keydown",gJ,!0),e.addEventListener("mousedown",pw,!0),e.addEventListener("pointerdown",pw,!0),e.addEventListener("touchstart",pw,!0),e.addEventListener("visibilitychange",vJ,!0)}function bJ(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return S1||mJ(t)}function FC(){const e=ge.useCallback(l=>{l!=null&&yJ(l.ownerDocument)},[]),t=ge.useRef(!1);function n(){return t.current?(F3=!0,window.clearTimeout(fA),fA=window.setTimeout(()=>{F3=!1},100),t.current=!1,!0):!1}function r(l){return bJ(l)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function RF(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let $c;function LF(){if($c)return $c;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),$c="reverse",e.scrollLeft>0?$c="default":(e.scrollLeft=1,e.scrollLeft===0&&($c="negative")),document.body.removeChild(e),$c}function xJ(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(LF()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function jC(e,t){const n=Ie({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Ie({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const l=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=l:!l||!Object.keys(l)?n[r]=i:(n[r]=Ie({},i),Object.keys(l).forEach(o=>{n[r][o]=jC(l[o],i[o])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function vn(e,t,n=void 0){const r={};return Object.keys(e).forEach(l=>{r[l]=e[l].reduce((i,o)=>{if(o){const a=t(o);a!==""&&i.push(a),n&&n[o]&&i.push(n[o])}return i},[]).join(" ")}),r}const pA=e=>e,wJ=()=>{let e=pA;return{configure(t){e=t},generate(t){return e(t)},reset(){e=pA}}},zC=wJ(),_J={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function yn(e,t,n="Mui"){const r=_J[t];return r?`${n}-${r}`:`${zC.generate(e)}-${t}`}function hn(e,t,n="Mui"){const r={};return t.forEach(l=>{r[l]=yn(e,l,n)}),r}const Ql="$$material";function Kt(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,i;for(i=0;i=0)&&(n[l]=e[l]);return n}function IF(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var TJ=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,kJ=IF(function(e){return TJ.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function SJ(e){if(e.sheet)return e.sheet;for(var t=0;t0?Qa(of,--Fo):0,Ld--,Pa===10&&(Ld=1,M1--),Pa}function Zo(){return Pa=Fo2||om(Pa)>3?"":" "}function FJ(e,t){for(;--t&&Zo()&&!(Pa<48||Pa>102||Pa>57&&Pa<65||Pa>70&&Pa<97););return Hm(e,Y0()+(t<6&&gl()==32&&Zo()==32))}function z3(e){for(;Zo();)switch(Pa){case e:return Fo;case 34:case 39:e!==34&&e!==39&&z3(Pa);break;case 40:e===41&&z3(e);break;case 92:Zo();break}return Fo}function jJ(e,t){for(;Zo()&&e+Pa!==57;)if(e+Pa===84&&gl()===47)break;return"/*"+Hm(t,Fo-1)+"*"+C1(e===47?e:Zo())}function zJ(e){for(;!om(gl());)Zo();return Hm(e,Fo)}function BJ(e){return BF(K0("",null,null,null,[""],e=zF(e),0,[0],e))}function K0(e,t,n,r,l,i,o,a,s){for(var u=0,c=0,d=o,f=0,p=0,m=0,g=1,b=1,v=1,h=0,y="",w=l,_=i,x=r,T=y;b;)switch(m=h,h=Zo()){case 40:if(m!=108&&Qa(T,d-1)==58){j3(T+=xr(X0(h),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:T+=X0(h);break;case 9:case 10:case 13:case 32:T+=NJ(m);break;case 92:T+=FJ(Y0()-1,7);continue;case 47:switch(gl()){case 42:case 47:e0(WJ(jJ(Zo(),Y0()),t,n),s);break;default:T+="/"}break;case 123*g:a[u++]=ol(T)*v;case 125*g:case 59:case 0:switch(h){case 0:case 125:b=0;case 59+c:v==-1&&(T=xr(T,/\f/g,"")),p>0&&ol(T)-d&&e0(p>32?mA(T+";",r,n,d-1):mA(xr(T," ","")+";",r,n,d-2),s);break;case 59:T+=";";default:if(e0(x=hA(T,t,n,u,c,l,a,y,w=[],_=[],d),i),h===123)if(c===0)K0(T,t,x,x,w,i,d,a,_);else switch(f===99&&Qa(T,3)===110?100:f){case 100:case 108:case 109:case 115:K0(e,x,x,r&&e0(hA(e,x,x,0,0,l,a,y,l,w=[],d),_),l,_,d,a,r?w:_);break;default:K0(T,x,x,x,[""],_,0,a,_)}}u=c=p=0,g=v=1,y=T="",d=o;break;case 58:d=1+ol(T),p=m;default:if(g<1){if(h==123)--g;else if(h==125&&g++==0&&$J()==125)continue}switch(T+=C1(h),h*g){case 38:v=c>0?1:(T+="\f",-1);break;case 44:a[u++]=(ol(T)-1)*v,v=1;break;case 64:gl()===45&&(T+=X0(Zo())),f=gl(),c=d=ol(y=T+=zJ(Y0())),h++;break;case 45:m===45&&ol(T)==2&&(g=0)}}return i}function hA(e,t,n,r,l,i,o,a,s,u,c){for(var d=l-1,f=l===0?i:[""],p=qC(f),m=0,g=0,b=0;m0?f[v]+" "+h:xr(h,/&\f/g,f[v])))&&(s[b++]=y);return P1(e,t,n,l===0?BC:a,s,u,c)}function WJ(e,t,n){return P1(e,t,n,$F,C1(IJ()),am(e,2,-2),0)}function mA(e,t,n,r){return P1(e,t,n,WC,am(e,0,r),am(e,r+1,-1),r)}function yd(e,t){for(var n="",r=qC(e),l=0;l6)switch(Qa(e,t+1)){case 109:if(Qa(e,t+4)!==45)break;case 102:return xr(e,/(.+:)(.+)-([^]+)/,"$1"+br+"$2-$3$1"+Gv+(Qa(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~j3(e,"stretch")?WF(xr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Qa(e,t+1)!==115)break;case 6444:switch(Qa(e,ol(e)-3-(~j3(e,"!important")&&10))){case 107:return xr(e,":",":"+br)+e;case 101:return xr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+br+(Qa(e,14)===45?"inline-":"")+"box$3$1"+br+"$2$3$1"+lo+"$2box$3")+e}break;case 5936:switch(Qa(e,t+11)){case 114:return br+e+lo+xr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return br+e+lo+xr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return br+e+lo+xr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return br+e+lo+e+e}return e}var ZJ=function(t,n,r,l){if(t.length>-1&&!t.return)switch(t.type){case WC:t.return=WF(t.value,t.length);break;case NF:return yd([Xf(t,{value:xr(t.value,"@","@"+br)})],l);case BC:if(t.length)return LJ(t.props,function(i){switch(RJ(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return yd([Xf(t,{props:[xr(i,/:(read-\w+)/,":"+Gv+"$1")]})],l);case"::placeholder":return yd([Xf(t,{props:[xr(i,/:(plac\w+)/,":"+br+"input-$1")]}),Xf(t,{props:[xr(i,/:(plac\w+)/,":"+Gv+"$1")]}),Xf(t,{props:[xr(i,/:(plac\w+)/,lo+"input-$1")]})],l)}return""})}},QJ=[ZJ],qF=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var b=g.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var l=t.stylisPlugins||QJ,i={},o,a=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var b=g.getAttribute("data-emotion").split(" "),v=1;v=4;++r,l-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(l){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Mee={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Pee=/[A-Z]|^ms/g,Oee=/_EMO_([^_]+?)_([^]*?)_EMO_/g,vj=function(t){return t.charCodeAt(1)===45},rA=function(t){return t!=null&&typeof t!="boolean"},Hw=JF(function(e){return vj(e)?e:e.replace(Pee,"-$&").toLowerCase()}),aA=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Oee,function(r,l,i){return xl={name:l,styles:i,next:xl},l})}return Mee[t]!==1&&!vj(t)&&typeof n=="number"&&n!==0?n+"px":n};function wm(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return xl={name:n.name,styles:n.styles,next:xl},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)xl={name:r.name,styles:r.styles,next:xl},r=r.next;var l=n.styles+";";return l}return Aee(e,t,n)}case"function":{if(e!==void 0){var i=xl,o=n(e);return xl=i,wm(e,t,o)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function Aee(e,t,n){var r="";if(Array.isArray(n))for(var l=0;l96?Iee:$ee},sA=function(t,n,r){var l;if(n){var i=n.shouldForwardProp;l=t.__emotion_forwardProp&&i?function(o){return t.__emotion_forwardProp(o)&&i(o)}:i}return typeof l!="function"&&r&&(l=t.__emotion_forwardProp),l},Nee=function(t){var n=t.cache,r=t.serialized,l=t.isStringTag;return mj(n,r,l),Eee(function(){return gj(n,r,l)}),null},Fee=function e(t,n){var r=t.__emotion_real===t,l=r&&t.__emotion_base||t,i,o;n!==void 0&&(i=n.label,o=n.target);var a=sA(t,n,r),s=a||lA(l),u=!s("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,p=1;p=4;++r,l-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(l){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Bee={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Wee(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var qee=!1,Uee=/[A-Z]|^ms/g,Hee=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wj=function(t){return t.charCodeAt(1)===45},uA=function(t){return t!=null&&typeof t!="boolean"},Vw=Wee(function(e){return wj(e)?e:e.replace(Uee,"-$&").toLowerCase()}),cA=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Hee,function(r,l,i){return zs={name:l,styles:i,next:zs},l})}return Bee[t]!==1&&!wj(t)&&typeof n=="number"&&n!==0?n+"px":n},Vee="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function cy(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var l=n;if(l.anim===1)return zs={name:l.name,styles:l.styles,next:zs},l.name;var i=n;if(i.styles!==void 0){var o=i.next;if(o!==void 0)for(;o!==void 0;)zs={name:o.name,styles:o.styles,next:zs},o=o.next;var a=i.styles+";";return a}return Gee(e,t,n)}}var s=n;return s}function Gee(e,t,n){var r="";if(Array.isArray(n))for(var l=0;l6)switch(ta(e,t+1)){case 109:if(ta(e,t+4)!==45)break;case 102:return Ln(e,/(.+:)(.+)-([^]+)/,"$1"+En+"$2-$3$1"+ru+(ta(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~bm(e,"stretch")?Cj(Ln(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ta(e,t+1)!==115)break;case 6444:switch(ta(e,Ti(e)-3-(~bm(e,"!important")&&10))){case 107:return Ln(e,":",":"+En)+e;case 101:return Ln(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+En+(ta(e,14)===45?"inline-":"")+"box$3$1"+En+"$2$3$1"+xr+"$2box$3")+e}break;case 5936:switch(ta(e,t+11)){case 114:return En+e+xr+Ln(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return En+e+xr+Ln(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return En+e+xr+Ln(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return En+e+xr+e+e}return e}var lte=function(t,n,r,l){if(t.length>-1&&!t.return)switch(t.type){case j1:t.return=Cj(t.value,t.length);break;case xM:return Dl([_l(t,{value:Ln(t.value,"@","@"+En)})],l);case F1:if(t.length)return aj(t.props,function(i){switch(rj(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Dl([_l(t,{props:[Ln(i,/:(read-\w+)/,":"+ru+"$1")]})],l);case"::placeholder":return Dl([_l(t,{props:[Ln(i,/:(plac\w+)/,":"+En+"input-$1")]}),_l(t,{props:[Ln(i,/:(plac\w+)/,":"+ru+"$1")]}),_l(t,{props:[Ln(i,/:(plac\w+)/,xr+"input-$1")]})],l)}return""})}},ste=[lte],ute=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var b=g.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var l=t.stylisPlugins||ste,i={},o,a=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var b=g.getAttribute("data-emotion").split(" "),v=1;v{const t=ute(e);class n extends kj{constructor(l){super(l),this.prepend=t.sheet.prepend}}return t.sheet=new n({key:t.key,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy,prepend:t.sheet.prepend,insertionPoint:t.sheet.insertionPoint}),t};let vS;typeof document=="object"&&(vS=cte({key:"css",prepend:!0}));function dte(e){const{injectFirst:t,children:n}=e;return t&&vS?Se.jsx(Ree,{value:vS,children:n}):n}function fte(e){return e==null||Object.keys(e).length===0}function Mj(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?l=>t(fte(l)?n:l):t;return Se.jsx(Lee,{styles:r})}/** + * @mui/styled-engine v6.1.5 + * + * @license MIT + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */function Pj(e,t){return gS(e,t)}function pte(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const pA=[];function hA(e){return pA[0]=e,Yee(pA)}function Tl(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Oj(e){if(!Tl(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Oj(e[n])}),t}function oo(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Tl(e)&&Tl(t)&&Object.keys(t).forEach(l=>{Tl(t[l])&&Object.prototype.hasOwnProperty.call(e,l)&&Tl(e[l])?r[l]=oo(e[l],t[l],n):n.clone?r[l]=Tl(t[l])?Oj(t[l]):t[l]:r[l]=t[l]}),r}const hte=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function AM(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...l}=e,i=hte(t),o=Object.keys(i);function a(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function s(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,p){const h=o.indexOf(p);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(h!==-1&&typeof t[o[h]]=="number"?t[o[h]]:p)-r/100}${n})`}function c(f){return o.indexOf(f)+1r.startsWith("@container")).sort((r,l)=>{var o,a;const i=/min-width:\s*([0-9.]+)/;return+(((o=r.match(i))==null?void 0:o[1])||0)-+(((a=l.match(i))==null?void 0:a[1])||0)});return n.length?n.reduce((r,l)=>{const i=t[l];return delete r[l],r[l]=i,r},{...t}):t}function gte(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function vte(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,l]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(l).up(i)}function yte(e){const t=(i,o)=>i.replace("@media",o?`@container ${o}`:"@container");function n(i,o){i.up=(...a)=>t(e.breakpoints.up(...a),o),i.down=(...a)=>t(e.breakpoints.down(...a),o),i.between=(...a)=>t(e.breakpoints.between(...a),o),i.only=(...a)=>t(e.breakpoints.only(...a),o),i.not=(...a)=>{const s=t(e.breakpoints.not(...a),o);return s.includes("not all and")?s.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):s}}const r={},l=i=>(n(r,i),r);return n(l),{...e,containerQueries:l}}const bte={borderRadius:4};function Wh(e,t){return t?oo(e,t,{clone:!1}):e}const J1={xs:0,sm:600,md:900,lg:1200,xl:1536},mA={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${J1[e]}px)`},xte={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:J1[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function $i(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||mA;return t.reduce((o,a,s)=>(o[i.up(i.keys[s])]=n(t[s]),o),{})}if(typeof t=="object"){const i=r.breakpoints||mA;return Object.keys(t).reduce((o,a)=>{if(gte(i.keys,a)){const s=vte(r.containerQueries?r:xte,a);s&&(o[s]=n(t[a],a))}else if(Object.keys(i.values||J1).includes(a)){const s=i.up(a);o[s]=n(t[a],a)}else{const s=a;o[s]=t[s]}return o},{})}return n(t)}function wte(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,l)=>{const i=e.up(l);return r[i]={},r},{}))||{}}function _te(e,t){return e.reduce((n,r)=>{const l=n[r];return(!l||Object.keys(l).length===0)&&delete n[r],n},t)}function Tte(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((l,i)=>{i{e[l]!=null&&(n[l]=!0)}),n}function eb({values:e,breakpoints:t,base:n}){const r=n||Tte(e,t),l=Object.keys(r);if(l.length===0)return e;let i;return l.reduce((o,a,s)=>(Array.isArray(e)?(o[a]=e[s]!=null?e[s]:e[i],i=s):typeof e=="object"?(o[a]=e[a]!=null?e[a]:e[i],i=a):o[a]=e,o),{})}function Qt(e){if(typeof e!="string")throw new Error(Ho(7));return e.charAt(0).toUpperCase()+e.slice(1)}function tb(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((l,i)=>l&&l[i]?l[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,l)=>r&&r[l]!=null?r[l]:null,e)}function dy(e,t,n,r=n){let l;return typeof e=="function"?l=e(n):Array.isArray(e)?l=e[n]||r:l=tb(e,n)||r,t&&(l=t(l,r,e)),l}function Pa(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:l}=e,i=o=>{if(o[t]==null)return null;const a=o[t],s=o.theme,u=tb(s,r)||{};return $i(o,a,d=>{let f=dy(u,l,d);return d===f&&typeof d=="string"&&(f=dy(u,l,`${t}${d==="default"?"":Qt(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function Ste(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const kte={m:"margin",p:"padding"},Cte={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},gA={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Mte=Ste(e=>{if(e.length>2)if(gA[e])e=gA[e];else return[e];const[t,n]=e.split(""),r=kte[t],l=Cte[n]||"";return Array.isArray(l)?l.map(i=>r+i):[r+l]}),DM=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],EM=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...DM,...EM];function ag(e,t,n,r){const l=tb(e,t,!0)??n;return typeof l=="number"||typeof l=="string"?i=>typeof i=="string"?i:typeof l=="string"?`calc(${i} * ${l})`:l*i:Array.isArray(l)?i=>{if(typeof i=="string")return i;const o=Math.abs(i),a=l[o];return i>=0?a:typeof a=="number"?-a:`-${a}`}:typeof l=="function"?l:()=>{}}function RM(e){return ag(e,"spacing",8)}function og(e,t){return typeof t=="string"||t==null?t:e(t)}function Pte(e,t){return n=>e.reduce((r,l)=>(r[l]=og(t,n),r),{})}function Ote(e,t,n,r){if(!t.includes(n))return null;const l=Mte(n),i=Pte(l,r),o=e[n];return $i(e,o,i)}function Aj(e,t){const n=RM(e.theme);return Object.keys(e).map(r=>Ote(e,t,r,n)).reduce(Wh,{})}function va(e){return Aj(e,DM)}va.propTypes={};va.filterProps=DM;function ya(e){return Aj(e,EM)}ya.propTypes={};ya.filterProps=EM;function LM(e=8,t=RM({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(i=>{const o=t(i);return typeof o=="number"?`${o}px`:o}).join(" ");return n.mui=!0,n}function nb(...e){const t=e.reduce((r,l)=>(l.filterProps.forEach(i=>{r[i]=l}),r),{}),n=r=>Object.keys(r).reduce((l,i)=>t[i]?Wh(l,t[i](r)):l,{});return n.propTypes={},n.filterProps=e.reduce((r,l)=>r.concat(l.filterProps),[]),n}function Si(e){return typeof e!="number"?e:`${e}px solid`}function Bi(e,t){return Pa({prop:e,themeKey:"borders",transform:t})}const Ate=Bi("border",Si),Dte=Bi("borderTop",Si),Ete=Bi("borderRight",Si),Rte=Bi("borderBottom",Si),Lte=Bi("borderLeft",Si),Ite=Bi("borderColor"),$te=Bi("borderTopColor"),Nte=Bi("borderRightColor"),Fte=Bi("borderBottomColor"),jte=Bi("borderLeftColor"),zte=Bi("outline",Si),Bte=Bi("outlineColor"),rb=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ag(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:og(t,r)});return $i(e,e.borderRadius,n)}return null};rb.propTypes={};rb.filterProps=["borderRadius"];nb(Ate,Dte,Ete,Rte,Lte,Ite,$te,Nte,Fte,jte,rb,zte,Bte);const ab=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ag(e.theme,"spacing",8),n=r=>({gap:og(t,r)});return $i(e,e.gap,n)}return null};ab.propTypes={};ab.filterProps=["gap"];const ob=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ag(e.theme,"spacing",8),n=r=>({columnGap:og(t,r)});return $i(e,e.columnGap,n)}return null};ob.propTypes={};ob.filterProps=["columnGap"];const ib=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ag(e.theme,"spacing",8),n=r=>({rowGap:og(t,r)});return $i(e,e.rowGap,n)}return null};ib.propTypes={};ib.filterProps=["rowGap"];const Wte=Pa({prop:"gridColumn"}),qte=Pa({prop:"gridRow"}),Ute=Pa({prop:"gridAutoFlow"}),Hte=Pa({prop:"gridAutoColumns"}),Vte=Pa({prop:"gridAutoRows"}),Gte=Pa({prop:"gridTemplateColumns"}),Yte=Pa({prop:"gridTemplateRows"}),Xte=Pa({prop:"gridTemplateAreas"}),Kte=Pa({prop:"gridArea"});nb(ab,ob,ib,Wte,qte,Ute,Hte,Vte,Gte,Yte,Xte,Kte);function Dd(e,t){return t==="grey"?t:e}const Zte=Pa({prop:"color",themeKey:"palette",transform:Dd}),Qte=Pa({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Dd}),Jte=Pa({prop:"backgroundColor",themeKey:"palette",transform:Dd});nb(Zte,Qte,Jte);function Jo(e){return e<=1&&e!==0?`${e*100}%`:e}const ene=Pa({prop:"width",transform:Jo}),IM=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var l,i,o,a,s;const r=((o=(i=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:i.values)==null?void 0:o[n])||J1[n];return r?((s=(a=e.theme)==null?void 0:a.breakpoints)==null?void 0:s.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Jo(n)}};return $i(e,e.maxWidth,t)}return null};IM.filterProps=["maxWidth"];const tne=Pa({prop:"minWidth",transform:Jo}),nne=Pa({prop:"height",transform:Jo}),rne=Pa({prop:"maxHeight",transform:Jo}),ane=Pa({prop:"minHeight",transform:Jo});Pa({prop:"size",cssProperty:"width",transform:Jo});Pa({prop:"size",cssProperty:"height",transform:Jo});const one=Pa({prop:"boxSizing"});nb(ene,IM,tne,nne,rne,ane,one);const ig={border:{themeKey:"borders",transform:Si},borderTop:{themeKey:"borders",transform:Si},borderRight:{themeKey:"borders",transform:Si},borderBottom:{themeKey:"borders",transform:Si},borderLeft:{themeKey:"borders",transform:Si},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Si},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:rb},color:{themeKey:"palette",transform:Dd},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Dd},backgroundColor:{themeKey:"palette",transform:Dd},p:{style:ya},pt:{style:ya},pr:{style:ya},pb:{style:ya},pl:{style:ya},px:{style:ya},py:{style:ya},padding:{style:ya},paddingTop:{style:ya},paddingRight:{style:ya},paddingBottom:{style:ya},paddingLeft:{style:ya},paddingX:{style:ya},paddingY:{style:ya},paddingInline:{style:ya},paddingInlineStart:{style:ya},paddingInlineEnd:{style:ya},paddingBlock:{style:ya},paddingBlockStart:{style:ya},paddingBlockEnd:{style:ya},m:{style:va},mt:{style:va},mr:{style:va},mb:{style:va},ml:{style:va},mx:{style:va},my:{style:va},margin:{style:va},marginTop:{style:va},marginRight:{style:va},marginBottom:{style:va},marginLeft:{style:va},marginX:{style:va},marginY:{style:va},marginInline:{style:va},marginInlineStart:{style:va},marginInlineEnd:{style:va},marginBlock:{style:va},marginBlockStart:{style:va},marginBlockEnd:{style:va},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ab},rowGap:{style:ib},columnGap:{style:ob},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Jo},maxWidth:{style:IM},minWidth:{transform:Jo},height:{transform:Jo},maxHeight:{transform:Jo},minHeight:{transform:Jo},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function ine(...e){const t=e.reduce((r,l)=>r.concat(Object.keys(l)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function lne(e,t){return typeof e=="function"?e(t):e}function sne(){function e(n,r,l,i){const o={[n]:r,theme:l},a=i[n];if(!a)return{[n]:r};const{cssProperty:s=n,themeKey:u,transform:c,style:d}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=tb(l,u)||{};return d?d(o):$i(o,r,h=>{let g=dy(f,c,h);return h===g&&typeof h=="string"&&(g=dy(f,c,`${n}${h==="default"?"":Qt(h)}`,h)),s===!1?g:{[s]:g}})}function t(n){const{sx:r,theme:l={}}=n||{};if(!r)return null;const i=l.unstable_sxConfig??ig;function o(a){let s=a;if(typeof a=="function")s=a(l);else if(typeof a!="object")return a;if(!s)return null;const u=wte(l.breakpoints),c=Object.keys(u);let d=u;return Object.keys(s).forEach(f=>{const p=lne(s[f],l);if(p!=null)if(typeof p=="object")if(i[f])d=Wh(d,e(f,p,l,i));else{const h=$i({theme:l},p,g=>({[f]:g}));ine(h,p)?d[f]=t({sx:p,theme:l}):d=Wh(d,h)}else d=Wh(d,e(f,p,l,i))}),mte(l,_te(c,d))}return Array.isArray(r)?r.map(o):o(r)}return t}const au=sne();au.filterProps=["sx"];function une(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let l=n.getColorSchemeSelector(e);return l==="&"?t:((l.includes("data-")||l.includes("."))&&(l=`*:where(${l.replace(/\s*&$/,"")}) &`),{[l]:t})}return n.palette.mode===e?t:{}}function $M(e={},...t){const{breakpoints:n={},palette:r={},spacing:l,shape:i={},...o}=e,a=AM(n),s=LM(l);let u=oo({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:s,shape:{...bte,...i}},o);return u=yte(u),u.applyStyles=une,u=t.reduce((c,d)=>oo(c,d),u),u.unstable_sxConfig={...ig,...o==null?void 0:o.unstable_sxConfig},u.unstable_sx=function(d){return au({sx:d,theme:this})},u}function cne(e){return Object.keys(e).length===0}function NM(e=null){const t=ge.useContext(Q1);return!t||cne(t)?e:t}const dne=$M();function lg(e=dne){return NM(e)}function fne({styles:e,themeId:t,defaultTheme:n={}}){const r=lg(n),l=typeof e=="function"?e(t&&r[t]||r):e;return Se.jsx(Mj,{styles:l})}const pne=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??ig;return Object.keys(e).forEach(l=>{n[l]?t.systemProps[l]=e[l]:t.otherProps[l]=e[l]}),t};function FM(e){const{sx:t,...n}=e,{systemProps:r,otherProps:l}=pne(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...o)=>{const a=t(...o);return Tl(a)?{...r,...a}:r}:i={...r,...t},{...l,sx:i}}const vA=e=>e,hne=()=>{let e=vA;return{configure(t){e=t},generate(t){return e(t)},reset(){e=vA}}},jM=hne();function Dj(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;ta!=="theme"&&a!=="sx"&&a!=="as"})(au);return ge.forwardRef(function(s,u){const c=lg(n),{className:d,component:f="div",...p}=FM(s);return Se.jsx(i,{as:f,ref:u,className:ln(d,l?l(r):r),theme:t&&c[t]||c,...p})})}const gne={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function gn(e,t,n="Mui"){const r=gne[t];return r?`${n}-${r}`:`${jM.generate(e)}-${t}`}function fn(e,t,n="Mui"){const r={};return t.forEach(l=>{r[l]=gn(e,l,n)}),r}var Ir={};/** + * @license React * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Ba=typeof Symbol=="function"&&Symbol.for,UC=Ba?Symbol.for("react.element"):60103,HC=Ba?Symbol.for("react.portal"):60106,O1=Ba?Symbol.for("react.fragment"):60107,A1=Ba?Symbol.for("react.strict_mode"):60108,D1=Ba?Symbol.for("react.profiler"):60114,E1=Ba?Symbol.for("react.provider"):60109,R1=Ba?Symbol.for("react.context"):60110,VC=Ba?Symbol.for("react.async_mode"):60111,L1=Ba?Symbol.for("react.concurrent_mode"):60111,I1=Ba?Symbol.for("react.forward_ref"):60112,$1=Ba?Symbol.for("react.suspense"):60113,JJ=Ba?Symbol.for("react.suspense_list"):60120,N1=Ba?Symbol.for("react.memo"):60115,F1=Ba?Symbol.for("react.lazy"):60116,eee=Ba?Symbol.for("react.block"):60121,tee=Ba?Symbol.for("react.fundamental"):60117,nee=Ba?Symbol.for("react.responder"):60118,ree=Ba?Symbol.for("react.scope"):60119;function ai(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case UC:switch(e=e.type,e){case VC:case L1:case O1:case D1:case A1:case $1:return e;default:switch(e=e&&e.$$typeof,e){case R1:case I1:case F1:case N1:case E1:return e;default:return t}}case HC:return t}}}function HF(e){return ai(e)===L1}Ar.AsyncMode=VC;Ar.ConcurrentMode=L1;Ar.ContextConsumer=R1;Ar.ContextProvider=E1;Ar.Element=UC;Ar.ForwardRef=I1;Ar.Fragment=O1;Ar.Lazy=F1;Ar.Memo=N1;Ar.Portal=HC;Ar.Profiler=D1;Ar.StrictMode=A1;Ar.Suspense=$1;Ar.isAsyncMode=function(e){return HF(e)||ai(e)===VC};Ar.isConcurrentMode=HF;Ar.isContextConsumer=function(e){return ai(e)===R1};Ar.isContextProvider=function(e){return ai(e)===E1};Ar.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===UC};Ar.isForwardRef=function(e){return ai(e)===I1};Ar.isFragment=function(e){return ai(e)===O1};Ar.isLazy=function(e){return ai(e)===F1};Ar.isMemo=function(e){return ai(e)===N1};Ar.isPortal=function(e){return ai(e)===HC};Ar.isProfiler=function(e){return ai(e)===D1};Ar.isStrictMode=function(e){return ai(e)===A1};Ar.isSuspense=function(e){return ai(e)===$1};Ar.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===O1||e===L1||e===D1||e===A1||e===$1||e===JJ||typeof e=="object"&&e!==null&&(e.$$typeof===F1||e.$$typeof===N1||e.$$typeof===E1||e.$$typeof===R1||e.$$typeof===I1||e.$$typeof===tee||e.$$typeof===nee||e.$$typeof===ree||e.$$typeof===eee)};Ar.typeOf=ai;UF.exports=Ar;var aee=UF.exports,GC=aee,oee={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},iee={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},lee={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},VF={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},YC={};YC[GC.ForwardRef]=lee;YC[GC.Memo]=VF;function vA(e){return GC.isMemo(e)?VF:YC[e.$$typeof]||oee}var see=Object.defineProperty,uee=Object.getOwnPropertyNames,yA=Object.getOwnPropertySymbols,cee=Object.getOwnPropertyDescriptor,dee=Object.getPrototypeOf,bA=Object.prototype;function GF(e,t,n){if(typeof t!="string"){if(bA){var r=dee(t);r&&r!==bA&&GF(e,r,n)}var l=uee(t);yA&&(l=l.concat(yA(t)));for(var i=vA(e),o=vA(t),a=0;a=4;++r,l-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(l){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var gee={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},vee=/[A-Z]|^ms/g,yee=/_EMO_([^_]+?)_([^]*?)_EMO_/g,KF=function(t){return t.charCodeAt(1)===45},wA=function(t){return t!=null&&typeof t!="boolean"},hw=IF(function(e){return KF(e)?e:e.replace(vee,"-$&").toLowerCase()}),_A=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(yee,function(r,l,i){return il={name:l,styles:i,next:il},l})}return gee[t]!==1&&!KF(t)&&typeof n=="number"&&n!==0?n+"px":n};function im(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return il={name:n.name,styles:n.styles,next:il},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)il={name:r.name,styles:r.styles,next:il},r=r.next;var l=n.styles+";";return l}return bee(e,t,n)}case"function":{if(e!==void 0){var i=il,o=n(e);return il=i,im(e,t,o)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function bee(e,t,n){var r="";if(Array.isArray(n))for(var l=0;l96?kee:See},CA=function(t,n,r){var l;if(n){var i=n.shouldForwardProp;l=t.__emotion_forwardProp&&i?function(o){return t.__emotion_forwardProp(o)&&i(o)}:i}return typeof l!="function"&&r&&(l=t.__emotion_forwardProp),l},Cee=function(t){var n=t.cache,r=t.serialized,l=t.isStringTag;return YF(n,r,l),wee(function(){return XF(n,r,l)}),null},Mee=function e(t,n){var r=t.__emotion_real===t,l=r&&t.__emotion_base||t,i,o;n!==void 0&&(i=n.label,o=n.target);var a=CA(t,n,r),s=a||SA(l),u=!s("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,p=1;pt(Aee(l)?n:l):t;return ke.jsx(Tee,{styles:r})}function ej(e,t){return B3(e,t)}const Dee=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Eee=["values","unit","step"],Ree=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>Ie({},n,{[r.key]:r.val}),{})};function tj(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,l=Kt(e,Eee),i=Ree(t),o=Object.keys(i);function a(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function s(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,p){const m=o.indexOf(p);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(m!==-1&&typeof t[o[m]]=="number"?t[o[m]]:p)-r/100}${n})`}function c(f){return o.indexOf(f)+1`@media (min-width:${KC[e]}px)`};function jo(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||MA;return t.reduce((o,a,s)=>(o[i.up(i.keys[s])]=n(t[s]),o),{})}if(typeof t=="object"){const i=r.breakpoints||MA;return Object.keys(t).reduce((o,a)=>{if(Object.keys(i.values||KC).indexOf(a)!==-1){const s=i.up(a);o[s]=n(t[a],a)}else{const s=a;o[s]=t[s]}return o},{})}return n(t)}function nj(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,l)=>{const i=e.up(l);return r[i]={},r},{}))||{}}function rj(e,t){return e.reduce((n,r)=>{const l=n[r];return(!l||Object.keys(l).length===0)&&delete n[r],n},t)}function Iee(e,...t){const n=nj(e),r=[n,...t].reduce((l,i)=>ha(l,i),{});return rj(Object.keys(n),r)}function $ee(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((l,i)=>{i{e[l]!=null&&(n[l]=!0)}),n}function zu({values:e,breakpoints:t,base:n}){const r=n||$ee(e,t),l=Object.keys(r);if(l.length===0)return e;let i;return l.reduce((o,a,s)=>(Array.isArray(e)?(o[a]=e[s]!=null?e[s]:e[i],i=s):typeof e=="object"?(o[a]=e[a]!=null?e[a]:e[i],i=a):o[a]=e,o),{})}function z1(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((l,i)=>l&&l[i]?l[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,l)=>r&&r[l]!=null?r[l]:null,e)}function Yv(e,t,n,r=n){let l;return typeof e=="function"?l=e(n):Array.isArray(e)?l=e[n]||r:l=z1(e,n)||r,t&&(l=t(l,r,e)),l}function Sr(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:l}=e,i=o=>{if(o[t]==null)return null;const a=o[t],s=o.theme,u=z1(s,r)||{};return jo(o,a,d=>{let f=Yv(u,l,d);return d===f&&typeof d=="string"&&(f=Yv(u,l,`${t}${d==="default"?"":Jt(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function Nee(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Fee={m:"margin",p:"padding"},jee={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},PA={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},zee=Nee(e=>{if(e.length>2)if(PA[e])e=PA[e];else return[e];const[t,n]=e.split(""),r=Fee[t],l=jee[n]||"";return Array.isArray(l)?l.map(i=>r+i):[r+l]}),ZC=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],QC=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...ZC,...QC];function Vm(e,t,n,r){var l;const i=(l=z1(e,t,!1))!=null?l:n;return typeof i=="number"?o=>typeof o=="string"?o:i*o:Array.isArray(i)?o=>typeof o=="string"?o:i[o]:typeof i=="function"?i:()=>{}}function JC(e){return Vm(e,"spacing",8)}function Gu(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function Bee(e,t){return n=>e.reduce((r,l)=>(r[l]=Gu(t,n),r),{})}function Wee(e,t,n,r){if(t.indexOf(n)===-1)return null;const l=zee(n),i=Bee(l,r),o=e[n];return jo(e,o,i)}function aj(e,t){const n=JC(e.theme);return Object.keys(e).map(r=>Wee(e,t,r,n)).reduce(Mh,{})}function da(e){return aj(e,ZC)}da.propTypes={};da.filterProps=ZC;function fa(e){return aj(e,QC)}fa.propTypes={};fa.filterProps=QC;function oj(e=8){if(e.mui)return e;const t=JC({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const o=t(i);return typeof o=="number"?`${o}px`:o}).join(" ");return n.mui=!0,n}function B1(...e){const t=e.reduce((r,l)=>(l.filterProps.forEach(i=>{r[i]=l}),r),{}),n=r=>Object.keys(r).reduce((l,i)=>t[i]?Mh(l,t[i](r)):l,{});return n.propTypes={},n.filterProps=e.reduce((r,l)=>r.concat(l.filterProps),[]),n}function sl(e){return typeof e!="number"?e:`${e}px solid`}const qee=Sr({prop:"border",themeKey:"borders",transform:sl}),Uee=Sr({prop:"borderTop",themeKey:"borders",transform:sl}),Hee=Sr({prop:"borderRight",themeKey:"borders",transform:sl}),Vee=Sr({prop:"borderBottom",themeKey:"borders",transform:sl}),Gee=Sr({prop:"borderLeft",themeKey:"borders",transform:sl}),Yee=Sr({prop:"borderColor",themeKey:"palette"}),Xee=Sr({prop:"borderTopColor",themeKey:"palette"}),Kee=Sr({prop:"borderRightColor",themeKey:"palette"}),Zee=Sr({prop:"borderBottomColor",themeKey:"palette"}),Qee=Sr({prop:"borderLeftColor",themeKey:"palette"}),W1=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Vm(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Gu(t,r)});return jo(e,e.borderRadius,n)}return null};W1.propTypes={};W1.filterProps=["borderRadius"];B1(qee,Uee,Hee,Vee,Gee,Yee,Xee,Kee,Zee,Qee,W1);const q1=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Vm(e.theme,"spacing",8),n=r=>({gap:Gu(t,r)});return jo(e,e.gap,n)}return null};q1.propTypes={};q1.filterProps=["gap"];const U1=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Vm(e.theme,"spacing",8),n=r=>({columnGap:Gu(t,r)});return jo(e,e.columnGap,n)}return null};U1.propTypes={};U1.filterProps=["columnGap"];const H1=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Vm(e.theme,"spacing",8),n=r=>({rowGap:Gu(t,r)});return jo(e,e.rowGap,n)}return null};H1.propTypes={};H1.filterProps=["rowGap"];const Jee=Sr({prop:"gridColumn"}),ete=Sr({prop:"gridRow"}),tte=Sr({prop:"gridAutoFlow"}),nte=Sr({prop:"gridAutoColumns"}),rte=Sr({prop:"gridAutoRows"}),ate=Sr({prop:"gridTemplateColumns"}),ote=Sr({prop:"gridTemplateRows"}),ite=Sr({prop:"gridTemplateAreas"}),lte=Sr({prop:"gridArea"});B1(q1,U1,H1,Jee,ete,tte,nte,rte,ate,ote,ite,lte);function bd(e,t){return t==="grey"?t:e}const ste=Sr({prop:"color",themeKey:"palette",transform:bd}),ute=Sr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:bd}),cte=Sr({prop:"backgroundColor",themeKey:"palette",transform:bd});B1(ste,ute,cte);function Ho(e){return e<=1&&e!==0?`${e*100}%`:e}const dte=Sr({prop:"width",transform:Ho}),eM=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,l;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||KC[n];return i?((l=e.theme)==null||(l=l.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Ho(n)}};return jo(e,e.maxWidth,t)}return null};eM.filterProps=["maxWidth"];const fte=Sr({prop:"minWidth",transform:Ho}),pte=Sr({prop:"height",transform:Ho}),hte=Sr({prop:"maxHeight",transform:Ho}),mte=Sr({prop:"minHeight",transform:Ho});Sr({prop:"size",cssProperty:"width",transform:Ho});Sr({prop:"size",cssProperty:"height",transform:Ho});const gte=Sr({prop:"boxSizing"});B1(dte,eM,fte,pte,hte,mte,gte);const Gm={border:{themeKey:"borders",transform:sl},borderTop:{themeKey:"borders",transform:sl},borderRight:{themeKey:"borders",transform:sl},borderBottom:{themeKey:"borders",transform:sl},borderLeft:{themeKey:"borders",transform:sl},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:W1},color:{themeKey:"palette",transform:bd},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:bd},backgroundColor:{themeKey:"palette",transform:bd},p:{style:fa},pt:{style:fa},pr:{style:fa},pb:{style:fa},pl:{style:fa},px:{style:fa},py:{style:fa},padding:{style:fa},paddingTop:{style:fa},paddingRight:{style:fa},paddingBottom:{style:fa},paddingLeft:{style:fa},paddingX:{style:fa},paddingY:{style:fa},paddingInline:{style:fa},paddingInlineStart:{style:fa},paddingInlineEnd:{style:fa},paddingBlock:{style:fa},paddingBlockStart:{style:fa},paddingBlockEnd:{style:fa},m:{style:da},mt:{style:da},mr:{style:da},mb:{style:da},ml:{style:da},mx:{style:da},my:{style:da},margin:{style:da},marginTop:{style:da},marginRight:{style:da},marginBottom:{style:da},marginLeft:{style:da},marginX:{style:da},marginY:{style:da},marginInline:{style:da},marginInlineStart:{style:da},marginInlineEnd:{style:da},marginBlock:{style:da},marginBlockStart:{style:da},marginBlockEnd:{style:da},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:q1},rowGap:{style:H1},columnGap:{style:U1},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ho},maxWidth:{style:eM},minWidth:{transform:Ho},height:{transform:Ho},maxHeight:{transform:Ho},minHeight:{transform:Ho},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function vte(...e){const t=e.reduce((r,l)=>r.concat(Object.keys(l)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function yte(e,t){return typeof e=="function"?e(t):e}function bte(){function e(n,r,l,i){const o={[n]:r,theme:l},a=i[n];if(!a)return{[n]:r};const{cssProperty:s=n,themeKey:u,transform:c,style:d}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=z1(l,u)||{};return d?d(o):jo(o,r,m=>{let g=Yv(f,c,m);return m===g&&typeof m=="string"&&(g=Yv(f,c,`${n}${m==="default"?"":Jt(m)}`,m)),s===!1?g:{[s]:g}})}function t(n){var r;const{sx:l,theme:i={}}=n||{};if(!l)return null;const o=(r=i.unstable_sxConfig)!=null?r:Gm;function a(s){let u=s;if(typeof s=="function")u=s(i);else if(typeof s!="object")return s;if(!u)return null;const c=nj(i.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(p=>{const m=yte(u[p],i);if(m!=null)if(typeof m=="object")if(o[p])f=Mh(f,e(p,m,i,o));else{const g=jo({theme:i},m,b=>({[p]:b}));vte(g,m)?f[p]=t({sx:m,theme:i}):f=Mh(f,g)}else f=Mh(f,e(p,m,i,o))}),rj(d,f)}return Array.isArray(l)?l.map(a):a(l)}return t}const dc=bte();dc.filterProps=["sx"];const xte=["breakpoints","palette","spacing","shape"];function V1(e={},...t){const{breakpoints:n={},palette:r={},spacing:l,shape:i={}}=e,o=Kt(e,xte),a=tj(n),s=oj(l);let u=ha({breakpoints:a,direction:"ltr",components:{},palette:Ie({mode:"light"},r),spacing:s,shape:Ie({},Lee,i)},o);return u=t.reduce((c,d)=>ha(c,d),u),u.unstable_sxConfig=Ie({},Gm,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(d){return dc({sx:d,theme:this})},u}function wte(e){return Object.keys(e).length===0}function G1(e=null){const t=ge.useContext(j1);return!t||wte(t)?e:t}const _te=V1();function Ym(e=_te){return G1(e)}function Tte({styles:e,themeId:t,defaultTheme:n={}}){const r=Ym(n),l=typeof e=="function"?e(t&&r[t]||r):e;return ke.jsx(Z0,{styles:l})}const kte=["sx"],Ste=e=>{var t,n;const r={systemProps:{},otherProps:{}},l=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Gm;return Object.keys(e).forEach(i=>{l[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function Y1(e){const{sx:t}=e,n=Kt(e,kte),{systemProps:r,otherProps:l}=Ste(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...o)=>{const a=t(...o);return Fl(a)?Ie({},r,a):r}:i=Ie({},r,t),Ie({},l,{sx:i})}function ij(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ta!=="theme"&&a!=="sx"&&a!=="as"})(dc);return ge.forwardRef(function(s,u){const c=Ym(n),d=Y1(s),{className:f,component:p="div"}=d,m=Kt(d,Cte);return ke.jsx(i,Ie({as:p,ref:u,className:on(f,l?l(r):r),theme:t&&c[t]||c},m))})}const Pte=["variant"];function OA(e){return e.length===0}function lj(e){const{variant:t}=e,n=Kt(e,Pte);let r=t||"";return Object.keys(n).sort().forEach(l=>{l==="color"?r+=OA(r)?e[l]:Jt(e[l]):r+=`${OA(r)?l:Jt(l)}${Jt(e[l].toString())}`}),r}const Ote=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Ate(e){return Object.keys(e).length===0}function Dte(e){return typeof e=="string"&&e.charCodeAt(0)>96}const Ete=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,Xv=e=>{const t={};return e&&e.forEach(n=>{const r=lj(n.props);t[r]=n.style}),t},Rte=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),Xv(n)},Kv=(e,t,n)=>{const{ownerState:r={}}=e,l=[];return n&&n.forEach(i=>{let o=!0;Object.keys(i.props).forEach(a=>{r[a]!==i.props[a]&&e[a]!==i.props[a]&&(o=!1)}),o&&l.push(t[lj(i.props)])}),l},Lte=(e,t,n,r)=>{var l;const i=n==null||(l=n.components)==null||(l=l[r])==null?void 0:l.variants;return Kv(e,t,i)};function Ph(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ite=V1(),$te=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Q0({defaultTheme:e,theme:t,themeId:n}){return Ate(t)?e:t[n]||t}function Nte(e){return e?(t,n)=>n[e]:null}const AA=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const l=e(Ie({},t,{theme:Q0(Ie({},t,{defaultTheme:n,themeId:r}))}));let i;if(l&&l.variants&&(i=l.variants,delete l.variants),i){const o=Kv(t,Xv(i),i);return[l,...o]}return l};function sj(e={}){const{themeId:t,defaultTheme:n=Ite,rootShouldForwardProp:r=Ph,slotShouldForwardProp:l=Ph}=e,i=o=>dc(Ie({},o,{theme:Q0(Ie({},o,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(o,a={})=>{Dee(o,w=>w.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:s,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f=Nte($te(u))}=a,p=Kt(a,Ote),m=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,g=d||!1;let b,v=Ph;u==="Root"||u==="root"?v=r:u?v=l:Dte(o)&&(v=void 0);const h=ej(o,Ie({shouldForwardProp:v,label:b},p)),y=(w,..._)=>{const x=_?_.map(C=>{if(typeof C=="function"&&C.__emotion_real!==C)return M=>AA({styledArg:C,props:M,defaultTheme:n,themeId:t});if(Fl(C)){let M=C,O;return C&&C.variants&&(O=C.variants,delete M.variants,M=D=>{let P=C;return Kv(D,Xv(O),O).forEach(I=>{P=ha(P,I)}),P}),M}return C}):[];let T=w;if(Fl(w)){let C;w&&w.variants&&(C=w.variants,delete T.variants,T=M=>{let O=w;return Kv(M,Xv(C),C).forEach(P=>{O=ha(O,P)}),O})}else typeof w=="function"&&w.__emotion_real!==w&&(T=C=>AA({styledArg:w,props:C,defaultTheme:n,themeId:t}));s&&f&&x.push(C=>{const M=Q0(Ie({},C,{defaultTheme:n,themeId:t})),O=Ete(s,M);if(O){const D={};return Object.entries(O).forEach(([P,E])=>{D[P]=typeof E=="function"?E(Ie({},C,{theme:M})):E}),f(C,D)}return null}),s&&!m&&x.push(C=>{const M=Q0(Ie({},C,{defaultTheme:n,themeId:t}));return Lte(C,Rte(s,M),M,s)}),g||x.push(i);const k=x.length-_.length;if(Array.isArray(w)&&k>0){const C=new Array(k).fill("");T=[...w,...C],T.raw=[...w.raw,...C]}const S=h(T,...x);return o.muiName&&(S.muiName=o.muiName),S};return h.withConfig&&(y.withConfig=h.withConfig),y}}const Fte=sj();function uj(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:jC(t.components[n].defaultProps,r)}function cj({props:e,name:t,defaultTheme:n,themeId:r}){let l=Ym(n);return r&&(l=l[r]||l),uj({theme:l,name:t,props:e})}function tM(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function dj(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,l)=>l<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function jte(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function xl(e){if(e.type)return e;if(e.charAt(0)==="#")return xl(dj(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(No(9,e));let r=e.substring(t+1,e.length-1),l;if(n==="color"){if(r=r.split(" "),l=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(l)===-1)throw new Error(No(10,l))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:l}}const zte=e=>{const t=xl(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")},uh=(e,t)=>{try{return zte(e)}catch{return e}};function Xm(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((l,i)=>i<3?parseInt(l,10):l):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Bte(e){if(e.indexOf("#")===0)return e;const{values:t}=xl(e);return`#${t.map((n,r)=>jte(r===3?Math.round(255*n):n)).join("")}`}function fj(e){e=xl(e);const{values:t}=e,n=t[0],r=t[1]/100,l=t[2]/100,i=r*Math.min(l,1-l),o=(u,c=(u+n/30)%12)=>l-i*Math.max(Math.min(c-3,9-c,1),-1);let a="rgb";const s=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(a+="a",s.push(t[3])),Xm({type:a,values:s})}function Zv(e){e=xl(e);let t=e.type==="hsl"||e.type==="hsla"?xl(fj(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function pj(e,t){const n=Zv(e),r=Zv(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function rr(e,t){return e=xl(e),t=tM(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Xm(e)}function t0(e,t,n){try{return rr(e,t)}catch{return e}}function wl(e,t){if(e=xl(e),t=tM(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Xm(e)}function Er(e,t,n){try{return wl(e,t)}catch{return e}}function _l(e,t){if(e=xl(e),t=tM(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Xm(e)}function Rr(e,t,n){try{return _l(e,t)}catch{return e}}function Wte(e,t=.15){return Zv(e)>.5?wl(e,t):_l(e,t)}function ch(e,t,n){try{return ch(e,t)}catch{return e}}const hj=ge.createContext(null);function nM(){return ge.useContext(hj)}const qte=typeof Symbol=="function"&&Symbol.for,Ute=qte?Symbol.for("mui.nested"):"__THEME_NESTED__";function Hte(e,t){return typeof t=="function"?t(e):Ie({},e,t)}function Vte(e){const{children:t,theme:n}=e,r=nM(),l=ge.useMemo(()=>{const i=r===null?n:Hte(r,n);return i!=null&&(i[Ute]=r!==null),i},[n,r]);return ke.jsx(hj.Provider,{value:l,children:t})}const DA={};function EA(e,t,n,r=!1){return ge.useMemo(()=>{const l=e&&t[e]||t;if(typeof n=="function"){const i=n(l),o=e?Ie({},t,{[e]:i}):i;return r?()=>o:o}return e?Ie({},t,{[e]:n}):Ie({},t,n)},[e,t,n,r])}function mj(e){const{children:t,theme:n,themeId:r}=e,l=G1(DA),i=nM()||DA,o=EA(r,l,n),a=EA(r,i,n,!0);return ke.jsx(Vte,{theme:a,children:ke.jsx(j1.Provider,{value:o,children:t})})}const rM="mode",aM="color-scheme",gj="data-color-scheme";function Gte(e){const{defaultMode:t="light",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:l=rM,colorSchemeStorageKey:i=aM,attribute:o=gj,colorSchemeNode:a="document.documentElement"}=e||{};return ke.jsx("script",{dangerouslySetInnerHTML:{__html:`(function() { + */var zM=Symbol.for("react.element"),BM=Symbol.for("react.portal"),lb=Symbol.for("react.fragment"),sb=Symbol.for("react.strict_mode"),ub=Symbol.for("react.profiler"),cb=Symbol.for("react.provider"),db=Symbol.for("react.context"),vne=Symbol.for("react.server_context"),fb=Symbol.for("react.forward_ref"),pb=Symbol.for("react.suspense"),hb=Symbol.for("react.suspense_list"),mb=Symbol.for("react.memo"),gb=Symbol.for("react.lazy"),yne=Symbol.for("react.offscreen"),Ej;Ej=Symbol.for("react.module.reference");function Wi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case zM:switch(e=e.type,e){case lb:case ub:case sb:case pb:case hb:return e;default:switch(e=e&&e.$$typeof,e){case vne:case db:case fb:case gb:case mb:case cb:return e;default:return t}}case BM:return t}}}Ir.ContextConsumer=db;Ir.ContextProvider=cb;Ir.Element=zM;Ir.ForwardRef=fb;Ir.Fragment=lb;Ir.Lazy=gb;Ir.Memo=mb;Ir.Portal=BM;Ir.Profiler=ub;Ir.StrictMode=sb;Ir.Suspense=pb;Ir.SuspenseList=hb;Ir.isAsyncMode=function(){return!1};Ir.isConcurrentMode=function(){return!1};Ir.isContextConsumer=function(e){return Wi(e)===db};Ir.isContextProvider=function(e){return Wi(e)===cb};Ir.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===zM};Ir.isForwardRef=function(e){return Wi(e)===fb};Ir.isFragment=function(e){return Wi(e)===lb};Ir.isLazy=function(e){return Wi(e)===gb};Ir.isMemo=function(e){return Wi(e)===mb};Ir.isPortal=function(e){return Wi(e)===BM};Ir.isProfiler=function(e){return Wi(e)===ub};Ir.isStrictMode=function(e){return Wi(e)===sb};Ir.isSuspense=function(e){return Wi(e)===pb};Ir.isSuspenseList=function(e){return Wi(e)===hb};Ir.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===lb||e===ub||e===sb||e===pb||e===hb||e===yne||typeof e=="object"&&e!==null&&(e.$$typeof===gb||e.$$typeof===mb||e.$$typeof===cb||e.$$typeof===db||e.$$typeof===fb||e.$$typeof===Ej||e.getModuleId!==void 0)};Ir.typeOf=Wi;function Rj(e){const{variants:t,...n}=e,r={variants:t,style:hA(n),isProcessed:!0};return r.style===n||t&&t.forEach(l=>{typeof l.style!="function"&&(l.style=hA(l.style))}),r}const bne=$M();function Gw(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function xne(e){return e?(t,n)=>n[e]:null}function wne(e,t,n){e.theme=Sne(e.theme)?n:e.theme[t]||e.theme}function pv(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>pv(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:l,...i}=n;r=i}return Lj(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function Lj(e,t,n=[]){var l;let r;e:for(let i=0;i{pte(a,_=>_.filter(w=>w!==au));const{name:u,slot:c,skipVariantsResolver:d,skipSx:f,overridesResolver:p=xne(Cne(c)),...h}=s,g=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,b=f||!1;let v=Gw;c==="Root"||c==="root"?v=r:c?v=l:kne(a)&&(v=void 0);const m=Pj(a,{shouldForwardProp:v,label:Tne(),...h}),y=_=>{if(typeof _=="function"&&_.__emotion_real!==_)return function(S){return pv(S,_)};if(Tl(_)){const w=Rj(_);return w.variants?function(k){return pv(k,w)}:w.style}return _},x=(..._)=>{const w=[],S=_.map(y),k=[];if(w.push(i),u&&p&&k.push(function(O){var I,A;const P=(A=(I=O.theme.components)==null?void 0:I[u])==null?void 0:A.styleOverrides;if(!P)return null;const E={};for(const F in P)E[F]=pv(O,P[F]);return p(O,E)}),u&&!g&&k.push(function(O){var E,I;const D=O.theme,P=(I=(E=D==null?void 0:D.components)==null?void 0:E[u])==null?void 0:I.variants;return P?Lj(O,P):null}),b||k.push(au),Array.isArray(S[0])){const M=S.shift(),O=new Array(w.length).fill(""),D=new Array(k.length).fill("");let P;P=[...O,...M,...D],P.raw=[...O,...M.raw,...D],w.unshift(P)}const C=[...w,...S,...k],T=m(...C);return a.muiName&&(T.muiName=a.muiName),T};return m.withConfig&&(x.withConfig=m.withConfig),x}}function Tne(e,t){return void 0}function Sne(e){for(const t in e)return!1;return!0}function kne(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Cne(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function _m(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const l=r;if(l==="components"||l==="slots")n[l]={...e[l],...n[l]};else if(l==="componentsProps"||l==="slotProps"){const i=e[l],o=t[l];if(!o)n[l]=i||{};else if(!i)n[l]=o;else{n[l]={...o};for(const a in i)if(Object.prototype.hasOwnProperty.call(i,a)){const s=a;n[l][s]=_m(i[s],o[s])}}}else n[l]===void 0&&(n[l]=e[l])}return n}function Ij(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:_m(t.components[n].defaultProps,r)}function Mne({props:e,name:t,defaultTheme:n,themeId:r}){let l=lg(n);return r&&(l=l[r]||l),Ij({theme:l,name:t,props:e})}const Vo=typeof window<"u"?ge.useLayoutEffect:ge.useEffect;function Pne(e,t,n,r,l){const[i,o]=ge.useState(()=>l&&n?n(e).matches:r?r(e).matches:t);return Vo(()=>{if(!n)return;const a=n(e),s=()=>{o(a.matches)};return s(),a.addEventListener("change",s),()=>{a.removeEventListener("change",s)}},[e,n]),i}const One={...jv},$j=One.useSyncExternalStore;function Ane(e,t,n,r,l){const i=ge.useCallback(()=>t,[t]),o=ge.useMemo(()=>{if(l&&n)return()=>n(e).matches;if(r!==null){const{matches:c}=r(e);return()=>c}return i},[i,e,r,l,n]),[a,s]=ge.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const c=n(e);return[()=>c.matches,d=>(c.addEventListener("change",d),()=>{c.removeEventListener("change",d)})]},[i,n,e]);return $j(s,a,o)}function vb(e,t={}){const n=NM(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:i=r?window.matchMedia:null,ssrMatchMedia:o=null,noSsr:a=!1}=Ij({name:"MuiUseMediaQuery",props:t,theme:n});let s=typeof e=="function"?e(n):e;return s=s.replace(/^@media( ?)/m,""),($j!==void 0?Ane:Pne)(s,l,i,o,a)}function Dne(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function WM(e,t=0,n=1){return Dne(e,t,n)}function Nj(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,l)=>l<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Ene(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Ll(e){if(e.type)return e;if(e.charAt(0)==="#")return Ll(Nj(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Ho(9,e));let r=e.substring(t+1,e.length-1),l;if(n==="color"){if(r=r.split(" "),l=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(l))throw new Error(Ho(10,l))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:l}}const Rne=e=>{const t=Ll(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},kh=(e,t)=>{try{return Rne(e)}catch{return e}};function sg(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((l,i)=>i<3?parseInt(l,10):l):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Lne(e){if(e.startsWith("#"))return e;const{values:t}=Ll(e);return`#${t.map((n,r)=>Ene(r===3?Math.round(255*n):n)).join("")}`}function qM(e){e=Ll(e);const{values:t}=e,n=t[0],r=t[1]/100,l=t[2]/100,i=r*Math.min(l,1-l),o=(u,c=(u+n/30)%12)=>l-i*Math.max(Math.min(c-3,9-c,1),-1);let a="rgb";const s=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(a+="a",s.push(t[3])),sg({type:a,values:s})}function fy(e){e=Ll(e);let t=e.type==="hsl"||e.type==="hsla"?Ll(qM(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Fj(e,t){const n=fy(e),r=fy(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function ar(e,t){return e=Ll(e),t=WM(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,sg(e)}function m0(e,t,n){try{return ar(e,t)}catch{return e}}function Il(e,t){if(e=Ll(e),t=WM(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return sg(e)}function Nr(e,t,n){try{return Il(e,t)}catch{return e}}function $l(e,t){if(e=Ll(e),t=WM(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return sg(e)}function Fr(e,t,n){try{return $l(e,t)}catch{return e}}function jj(e,t=.15){return fy(e)>.5?Il(e,t):$l(e,t)}function g0(e,t,n){try{return jj(e,t)}catch{return e}}function yS(...e){return e.reduce((t,n)=>n==null?t:function(...l){t.apply(this,l),n.apply(this,l)},()=>{})}function ug(e,t=166){let n;function r(...l){const i=()=>{e.apply(this,l)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function Ine(e,t){return()=>null}function hv(e,t){var n,r,l;return ge.isValidElement(e)&&t.indexOf(e.type.muiName??((l=(r=(n=e.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:l.muiName))!==-1}function qa(e){return e&&e.ownerDocument||document}function Ni(e){return qa(e).defaultView||window}function $ne(e,t){return()=>null}function py(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let yA=0;function Nne(e){const[t,n]=ge.useState(e),r=e||t;return ge.useEffect(()=>{t==null&&(yA+=1,n(`mui-${yA}`))},[t]),r}const Fne={...jv},bA=Fne.useId;function ls(e){if(bA!==void 0){const t=bA();return e??t}return Nne(e)}function jne(e,t,n,r,l){return null}function ou({controlled:e,default:t,name:n,state:r="value"}){const{current:l}=ge.useRef(e!==void 0),[i,o]=ge.useState(t),a=l?e:i,s=ge.useCallback(u=>{l||o(u)},[]);return[a,s]}function ho(e){const t=ge.useRef(e);return Vo(()=>{t.current=e}),ge.useRef((...n)=>(0,t.current)(...n)).current}function Er(...e){return ge.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{py(n,t)})},e)}const xA={};function zj(e,t){const n=ge.useRef(xA);return n.current===xA&&(n.current=e(t)),n}const zne=[];function Bne(e){ge.useEffect(e,zne)}class yb{constructor(){Cs(this,"currentId",null);Cs(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Cs(this,"disposeEffect",()=>this.clear)}static create(){return new yb}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Wu(){const e=zj(yb.create).current;return Bne(e.disposeEffect),e}function hy(e){try{return e.matches(":focus-visible")}catch{}return!1}function Bj(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function vn(e,t,n=void 0){const r={};for(const l in e){const i=e[l];let o="",a=!0;for(let s=0;sr.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function wA(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function qj(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:l,className:i}=e;if(!t){const p=ln(n==null?void 0:n.className,i,l==null?void 0:l.className,r==null?void 0:r.className),h={...n==null?void 0:n.style,...l==null?void 0:l.style,...r==null?void 0:r.style},g={...n,...l,...r};return p.length>0&&(g.className=p),Object.keys(h).length>0&&(g.style=h),{props:g,internalRef:void 0}}const o=Wj({...l,...r}),a=wA(r),s=wA(l),u=t(o),c=ln(u==null?void 0:u.className,n==null?void 0:n.className,i,l==null?void 0:l.className,r==null?void 0:r.className),d={...u==null?void 0:u.style,...n==null?void 0:n.style,...l==null?void 0:l.style,...r==null?void 0:r.style},f={...u,...n,...s,...a};return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}function Uj(e,t,n){return typeof e=="function"?e(t,n):e}function ic(e){var d;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:l=!1,...i}=e,o=l?{}:Uj(n,r),{props:a,internalRef:s}=qj({...i,externalSlotProps:o}),u=Er(s,o==null?void 0:o.ref,(d=e.additionalProps)==null?void 0:d.ref);return wd(t,{...a,ref:u},r)}function _f(e){var t;return parseInt(ge.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const Hj=ge.createContext(null);function UM(){return ge.useContext(Hj)}const qne=typeof Symbol=="function"&&Symbol.for,Une=qne?Symbol.for("mui.nested"):"__THEME_NESTED__";function Hne(e,t){return typeof t=="function"?t(e):{...e,...t}}function Vne(e){const{children:t,theme:n}=e,r=UM(),l=ge.useMemo(()=>{const i=r===null?{...n}:Hne(r,n);return i!=null&&(i[Une]=r!==null),i},[n,r]);return Se.jsx(Hj.Provider,{value:l,children:t})}const Vj=ge.createContext();function Gne({value:e,...t}){return Se.jsx(Vj.Provider,{value:e??!0,...t})}const Tc=()=>ge.useContext(Vj)??!1,Gj=ge.createContext(void 0);function Yne({value:e,children:t}){return Se.jsx(Gj.Provider,{value:e,children:t})}function Xne(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const l=t.components[n];return l.defaultProps?_m(l.defaultProps,r):!l.styleOverrides&&!l.variants?_m(l,r):r}function Kne({props:e,name:t}){const n=ge.useContext(Gj);return Xne({props:e,name:t,theme:{components:n}})}const _A={};function TA(e,t,n,r=!1){return ge.useMemo(()=>{const l=e&&t[e]||t;if(typeof n=="function"){const i=n(l),o=e?{...t,[e]:i}:i;return r?()=>o:o}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function Yj(e){const{children:t,theme:n,themeId:r}=e,l=NM(_A),i=UM()||_A,o=TA(r,l,n),a=TA(r,i,n,!0),s=o.direction==="rtl";return Se.jsx(Vne,{theme:a,children:Se.jsx(Q1.Provider,{value:o,children:Se.jsx(Gne,{value:s,children:Se.jsx(Yne,{value:o==null?void 0:o.components,children:t})})})})}const SA={theme:void 0};function Zne(e){let t,n;return function(l){let i=t;return(i===void 0||l.theme!==n)&&(SA.theme=l.theme,i=Rj(e(SA)),t=i,n=l.theme),i}}const HM="mode",VM="color-scheme",Qne="data-color-scheme";function Jne(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:l=HM,colorSchemeStorageKey:i=VM,attribute:o=Qne,colorSchemeNode:a="document.documentElement",nonce:s}=e||{};let u="",c=o;if(o==="class"&&(c=".%s"),o==="data"&&(c="[data-%s]"),c.startsWith(".")){const f=c.substring(1);u+=`${a}.classList.remove('${f}'.replace('%s', light), '${f}'.replace('%s', dark)); + ${a}.classList.add('${f}'.replace('%s', colorScheme));`}const d=c.match(/\[([^\]]+)\]/);if(d){const[f,p]=d[1].split("=");p||(u+=`${a}.removeAttribute('${f}'.replace('%s', light)); + ${a}.removeAttribute('${f}'.replace('%s', dark));`),u+=` + ${a}.setAttribute('${f}'.replace('%s', colorScheme), ${p?`${p}.replace('%s', colorScheme)`:'""'});`}else u+=`${a}.setAttribute('${c}', colorScheme);`;return Se.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?s:"",dangerouslySetInnerHTML:{__html:`(function() { try { - var mode = localStorage.getItem('${l}') || '${t}'; - var colorScheme = ''; + let colorScheme = ''; + const mode = localStorage.getItem('${l}') || '${t}'; + const dark = localStorage.getItem('${i}-dark') || '${r}'; + const light = localStorage.getItem('${i}-light') || '${n}'; if (mode === 'system') { // handle system mode - var mql = window.matchMedia('(prefers-color-scheme: dark)'); + const mql = window.matchMedia('(prefers-color-scheme: dark)'); if (mql.matches) { - colorScheme = localStorage.getItem('${i}-dark') || '${r}'; + colorScheme = dark } else { - colorScheme = localStorage.getItem('${i}-light') || '${n}'; + colorScheme = light } } if (mode === 'light') { - colorScheme = localStorage.getItem('${i}-light') || '${n}'; + colorScheme = light; } if (mode === 'dark') { - colorScheme = localStorage.getItem('${i}-dark') || '${r}'; + colorScheme = dark; } if (colorScheme) { - ${a}.setAttribute('${o}', colorScheme); + ${u} } -} catch(e){}})();`}},"mui-color-scheme-init")}function RA(e){if(typeof window<"u"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function vj(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function Yte(e){return vj(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function mw(e,t){if(typeof window>"u")return;let n;try{n=localStorage.getItem(e)||void 0,n||localStorage.setItem(e,t)}catch{}return n||t}function Xte(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:l=[],modeStorageKey:i=rM,colorSchemeStorageKey:o=aM,storageWindow:a=typeof window>"u"?void 0:window}=e,s=l.join(","),[u,c]=ge.useState(()=>{const b=mw(i,t),v=mw(`${o}-light`,n),h=mw(`${o}-dark`,r);return{mode:b,systemMode:RA(b),lightColorScheme:v,darkColorScheme:h}}),d=Yte(u),f=ge.useCallback(b=>{c(v=>{if(b===v.mode)return v;const h=b||t;try{localStorage.setItem(i,h)}catch{}return Ie({},v,{mode:h,systemMode:RA(h)})})},[i,t]),p=ge.useCallback(b=>{b?typeof b=="string"?b&&!s.includes(b)?console.error(`\`${b}\` does not exist in \`theme.colorSchemes\`.`):c(v=>{const h=Ie({},v);return vj(v,y=>{try{localStorage.setItem(`${o}-${y}`,b)}catch{}y==="light"&&(h.lightColorScheme=b),y==="dark"&&(h.darkColorScheme=b)}),h}):c(v=>{const h=Ie({},v),y=b.light===null?n:b.light,w=b.dark===null?r:b.dark;if(y)if(!s.includes(y))console.error(`\`${y}\` does not exist in \`theme.colorSchemes\`.`);else{h.lightColorScheme=y;try{localStorage.setItem(`${o}-light`,y)}catch{}}if(w)if(!s.includes(w))console.error(`\`${w}\` does not exist in \`theme.colorSchemes\`.`);else{h.darkColorScheme=w;try{localStorage.setItem(`${o}-dark`,w)}catch{}}return h}):c(v=>{try{localStorage.setItem(`${o}-light`,n),localStorage.setItem(`${o}-dark`,r)}catch{}return Ie({},v,{lightColorScheme:n,darkColorScheme:r})})},[s,o,n,r]),m=ge.useCallback(b=>{u.mode==="system"&&c(v=>Ie({},v,{systemMode:b!=null&&b.matches?"dark":"light"}))},[u.mode]),g=ge.useRef(m);return g.current=m,ge.useEffect(()=>{const b=(...h)=>g.current(...h),v=window.matchMedia("(prefers-color-scheme: dark)");return v.addListener(b),b(v),()=>v.removeListener(b)},[]),ge.useEffect(()=>{const b=v=>{const h=v.newValue;typeof v.key=="string"&&v.key.startsWith(o)&&(!h||s.match(h))&&(v.key.endsWith("light")&&p({light:h}),v.key.endsWith("dark")&&p({dark:h})),v.key===i&&(!h||["light","dark","system"].includes(h))&&f(h||t)};if(a)return a.addEventListener("storage",b),()=>a.removeEventListener("storage",b)},[p,f,i,o,s,t,a]),Ie({},u,{colorScheme:d,setMode:f,setColorScheme:p})}const Kte=["colorSchemes","components","generateCssVars","cssVarPrefix"],Zte="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Qte(e){const{themeId:t,theme:n={},attribute:r=gj,modeStorageKey:l=rM,colorSchemeStorageKey:i=aM,defaultMode:o="light",defaultColorScheme:a,disableTransitionOnChange:s=!1,resolveTheme:u,excludeVariablesFromRoot:c}=e;(!n.colorSchemes||typeof a=="string"&&!n.colorSchemes[a]||typeof a=="object"&&!n.colorSchemes[a==null?void 0:a.light]||typeof a=="object"&&!n.colorSchemes[a==null?void 0:a.dark])&&console.error(`MUI: \`${a}\` does not exist in \`theme.colorSchemes\`.`);const d=ge.createContext(void 0),f=()=>{const v=ge.useContext(d);if(!v)throw new Error(No(19));return v};function p({children:v,theme:h=n,modeStorageKey:y=l,colorSchemeStorageKey:w=i,attribute:_=r,defaultMode:x=o,defaultColorScheme:T=a,disableTransitionOnChange:k=s,storageWindow:S=typeof window>"u"?void 0:window,documentNode:C=typeof document>"u"?void 0:document,colorSchemeNode:M=typeof document>"u"?void 0:document.documentElement,colorSchemeSelector:O=":root",disableNestedContext:D=!1,disableStyleSheetGeneration:P=!1}){const E=ge.useRef(!1),I=nM(),A=ge.useContext(d),F=!!A&&!D,j=h[t],z=j||h,{colorSchemes:B={},components:N={},generateCssVars:R=()=>({vars:{},css:{}}),cssVarPrefix:q}=z,Y=Kt(z,Kte),L=Object.keys(B),W=typeof T=="string"?T:T.light,U=typeof T=="string"?T:T.dark,{mode:V,setMode:te,systemMode:ee,lightColorScheme:H,darkColorScheme:Z,colorScheme:G,setColorScheme:X}=Xte({supportedColorSchemes:L,defaultLightColorScheme:W,defaultDarkColorScheme:U,modeStorageKey:y,colorSchemeStorageKey:w,defaultMode:x,storageWindow:S});let Q=V,re=G;F&&(Q=A.mode,re=A.colorScheme);const ae=Q||(x==="system"?o:x),ie=re||(ae==="dark"?U:W),{css:se,vars:he}=R(),Se=Ie({},Y,{components:N,colorSchemes:B,cssVarPrefix:q,vars:he,getColorSchemeSelector:K=>`[${_}="${K}"] &`}),Oe={},Pe={};Object.entries(B).forEach(([K,ne])=>{const{css:de,vars:_e}=R(K);Se.vars=ha(Se.vars,_e),K===ie&&(Object.keys(ne).forEach(pe=>{ne[pe]&&typeof ne[pe]=="object"?Se[pe]=Ie({},Se[pe],ne[pe]):Se[pe]=ne[pe]}),Se.palette&&(Se.palette.colorScheme=K));const ue=typeof T=="string"?T:x==="dark"?T.dark:T.light;if(K===ue){if(c){const pe={};c(q).forEach(xe=>{pe[xe]=de[xe],delete de[xe]}),Oe[`[${_}="${K}"]`]=pe}Oe[`${O}, [${_}="${K}"]`]=de}else Pe[`${O===":root"?"":O}[${_}="${K}"]`]=de}),Se.vars=ha(Se.vars,he),ge.useEffect(()=>{re&&M&&M.setAttribute(_,re)},[re,_,M]),ge.useEffect(()=>{let K;if(k&&E.current&&C){const ne=C.createElement("style");ne.appendChild(C.createTextNode(Zte)),C.head.appendChild(ne),window.getComputedStyle(C.body),K=setTimeout(()=>{C.head.removeChild(ne)},1)}return()=>{clearTimeout(K)}},[re,k,C]),ge.useEffect(()=>(E.current=!0,()=>{E.current=!1}),[]);const Me=ge.useMemo(()=>({mode:Q,systemMode:ee,setMode:te,lightColorScheme:H,darkColorScheme:Z,colorScheme:re,setColorScheme:X,allColorSchemes:L}),[L,re,Z,H,Q,X,te,ee]);let ce=!0;(P||F&&(I==null?void 0:I.cssVarPrefix)===q)&&(ce=!1);const we=ke.jsxs(ge.Fragment,{children:[ce&&ke.jsxs(ge.Fragment,{children:[ke.jsx(Z0,{styles:{[O]:se}}),ke.jsx(Z0,{styles:Oe}),ke.jsx(Z0,{styles:Pe})]}),ke.jsx(mj,{themeId:j?t:void 0,theme:u?u(Se):Se,children:v})]});return F?we:ke.jsx(d.Provider,{value:Me,children:we})}const m=typeof a=="string"?a:a.light,g=typeof a=="string"?a:a.dark;return{CssVarsProvider:p,useColorScheme:f,getInitColorSchemeScript:v=>Gte(Ie({attribute:r,colorSchemeStorageKey:i,defaultMode:o,defaultLightColorScheme:m,defaultDarkColorScheme:g,modeStorageKey:l},v))}}function Jte(e=""){function t(...r){if(!r.length)return"";const l=r[0];return typeof l=="string"&&!l.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${l}${t(...r.slice(1))})`:`, ${l}`}return(r,...l)=>`var(--${e?`${e}-`:""}${r}${t(...l)})`}const LA=(e,t,n,r=[])=>{let l=e;t.forEach((i,o)=>{o===t.length-1?Array.isArray(l)?l[Number(i)]=n:l&&typeof l=="object"&&(l[i]=n):l&&typeof l=="object"&&(l[i]||(l[i]=r.includes(i)?[]:{}),l=l[i])})},ene=(e,t,n)=>{function r(l,i=[],o=[]){Object.entries(l).forEach(([a,s])=>{(!n||n&&!n([...i,a]))&&s!=null&&(typeof s=="object"&&Object.keys(s).length>0?r(s,[...i,a],Array.isArray(s)?[...o,a]:o):t([...i,a],s,o))})}r(e)},tne=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().indexOf("opacity")>=0?t:`${t}px`:t;function gw(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},l={},i={},o={};return ene(e,(a,s,u)=>{if((typeof s=="string"||typeof s=="number")&&(!r||!r(a,s))){const c=`--${n?`${n}-`:""}${a.join("-")}`;Object.assign(l,{[c]:tne(a,s)}),LA(i,a,`var(${c})`,u),LA(o,a,`var(${c}, ${s})`,u)}},a=>a[0]==="vars"),{css:l,vars:i,varsWithDefaults:o}}const nne=["colorSchemes","components"],rne=["light"];function ane(e,t){const{colorSchemes:n={}}=e,r=Kt(e,nne),{vars:l,css:i,varsWithDefaults:o}=gw(r,t);let a=o;const s={},{light:u}=n,c=Kt(n,rne);if(Object.entries(c||{}).forEach(([f,p])=>{const{vars:m,css:g,varsWithDefaults:b}=gw(p,t);a=ha(a,b),s[f]={css:g,vars:m}}),u){const{css:f,vars:p,varsWithDefaults:m}=gw(u,t);a=ha(a,m),s.light={css:f,vars:p}}return{vars:a,generateCssVars:f=>f?{css:Ie({},s[f].css),vars:s[f].vars}:{css:Ie({},i),vars:l}}}const one=["component","direction","spacing","divider","children","className","useFlexGap"],ine=V1(),lne=Fte("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function sne(e){return cj({props:e,name:"MuiStack",defaultTheme:ine})}function une(e,t){const n=ge.Children.toArray(e).filter(Boolean);return n.reduce((r,l,i)=>(r.push(l),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],dne=({ownerState:e,theme:t})=>{let n=Ie({display:"flex",flexDirection:"column"},jo({theme:t},zu({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=JC(t),l=Object.keys(t.breakpoints.values).reduce((s,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(s[u]=!0),s),{}),i=zu({values:e.direction,base:l}),o=zu({values:e.spacing,base:l});typeof i=="object"&&Object.keys(i).forEach((s,u,c)=>{if(!i[s]){const f=u>0?i[c[u-1]]:"column";i[s]=f}}),n=ha(n,jo({theme:t},o,(s,u)=>e.useFlexGap?{gap:Gu(r,s)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${cne(u?i[u]:e.direction)}`]:Gu(r,s)}}))}return n=Iee(t.breakpoints,n),n};function fne(e={}){const{createStyledComponent:t=lne,useThemeProps:n=sne,componentName:r="MuiStack"}=e,l=()=>vn({root:["root"]},s=>yn(r,s),{}),i=t(dne);return ge.forwardRef(function(s,u){const c=n(s),d=Y1(c),{component:f="div",direction:p="column",spacing:m=0,divider:g,children:b,className:v,useFlexGap:h=!1}=d,y=Kt(d,one),w={direction:p,spacing:m,useFlexGap:h},_=l();return ke.jsx(i,Ie({as:f,ownerState:w,ref:u,className:on(_.root,v)},y,{children:g?une(b,g):b}))})}const pne=["defaultProps","mixins","overrides","palette","props","styleOverrides"],hne=["type","mode"];function mne(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:l={},props:i={},styleOverrides:o={}}=e,a=Kt(e,pne),s=Ie({},a,{components:{}});Object.keys(t).forEach(g=>{const b=s.components[g]||{};b.defaultProps=t[g],s.components[g]=b}),Object.keys(i).forEach(g=>{const b=s.components[g]||{};b.defaultProps=i[g],s.components[g]=b}),Object.keys(o).forEach(g=>{const b=s.components[g]||{};b.styleOverrides=o[g],s.components[g]=b}),Object.keys(r).forEach(g=>{const b=s.components[g]||{};b.styleOverrides=r[g],s.components[g]=b}),s.spacing=oj(e.spacing);const u=tj(e.breakpoints||{}),c=s.spacing;s.mixins=Ie({gutters:(g={})=>Ie({paddingLeft:c(2),paddingRight:c(2)},g,{[u.up("sm")]:Ie({paddingLeft:c(3),paddingRight:c(3)},g[u.up("sm")])})},n);const{type:d,mode:f}=l,p=Kt(l,hne),m=f||d||"light";return s.palette=Ie({text:{hint:m==="dark"?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:m,type:m},p),s}function gne(e,t){return Ie({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const vne=["mode","contrastThreshold","tonalOffset"],IA={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:rm.white,default:rm.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},vw={text:{primary:rm.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:rm.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function $A(e,t,n,r){const l=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=_l(e.main,l):t==="dark"&&(e.dark=wl(e.main,i)))}function yne(e="light"){return e==="dark"?{main:Rc[200],light:Rc[50],dark:Rc[400]}:{main:Rc[700],light:Rc[400],dark:Rc[800]}}function bne(e="light"){return e==="dark"?{main:Ec[200],light:Ec[50],dark:Ec[400]}:{main:Ec[500],light:Ec[300],dark:Ec[700]}}function xne(e="light"){return e==="dark"?{main:Dc[500],light:Dc[300],dark:Dc[700]}:{main:Dc[700],light:Dc[400],dark:Dc[800]}}function wne(e="light"){return e==="dark"?{main:Lc[400],light:Lc[300],dark:Lc[700]}:{main:Lc[700],light:Lc[500],dark:Lc[900]}}function _ne(e="light"){return e==="dark"?{main:Ic[400],light:Ic[300],dark:Ic[700]}:{main:Ic[800],light:Ic[500],dark:Ic[900]}}function Tne(e="light"){return e==="dark"?{main:Yf[400],light:Yf[300],dark:Yf[700]}:{main:"#ed6c02",light:Yf[500],dark:Yf[900]}}function kne(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,l=Kt(e,vne),i=e.primary||yne(t),o=e.secondary||bne(t),a=e.error||xne(t),s=e.info||wne(t),u=e.success||_ne(t),c=e.warning||Tne(t);function d(g){return pj(g,vw.text.primary)>=n?vw.text.primary:IA.text.primary}const f=({color:g,name:b,mainShade:v=500,lightShade:h=300,darkShade:y=700})=>{if(g=Ie({},g),!g.main&&g[v]&&(g.main=g[v]),!g.hasOwnProperty("main"))throw new Error(No(11,b?` (${b})`:"",v));if(typeof g.main!="string")throw new Error(No(12,b?` (${b})`:"",JSON.stringify(g.main)));return $A(g,"light",h,r),$A(g,"dark",y,r),g.contrastText||(g.contrastText=d(g.main)),g},p={dark:vw,light:IA};return ha(Ie({common:Ie({},rm),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:s,name:"info"}),success:f({color:u,name:"success"}),grey:Rl,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},p[t]),l)}const Sne=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Cne(e){return Math.round(e*1e5)/1e5}const NA={textTransform:"uppercase"},FA='"Roboto", "Helvetica", "Arial", sans-serif';function oM(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=FA,fontSize:l=14,fontWeightLight:i=300,fontWeightRegular:o=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=Kt(n,Sne),p=l/14,m=d||(v=>`${v/u*p}rem`),g=(v,h,y,w,_)=>Ie({fontFamily:r,fontWeight:v,fontSize:m(h),lineHeight:y},r===FA?{letterSpacing:`${Cne(w/h)}em`}:{},_,c),b={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(o,48,1.167,0),h4:g(o,34,1.235,.25),h5:g(o,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(o,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(o,16,1.5,.15),body2:g(o,14,1.43,.15),button:g(a,14,1.75,.4,NA),caption:g(o,12,1.66,.4),overline:g(o,12,2.66,1,NA),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ha(Ie({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:l,fontWeightLight:i,fontWeightRegular:o,fontWeightMedium:a,fontWeightBold:s},b),f,{clone:!1})}const Mne=.2,Pne=.14,One=.12;function Kr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Mne})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Pne})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${One})`].join(",")}const Ane=["none",Kr(0,2,1,-1,0,1,1,0,0,1,3,0),Kr(0,3,1,-2,0,2,2,0,0,1,5,0),Kr(0,3,3,-2,0,3,4,0,0,1,8,0),Kr(0,2,4,-1,0,4,5,0,0,1,10,0),Kr(0,3,5,-1,0,5,8,0,0,1,14,0),Kr(0,3,5,-1,0,6,10,0,0,1,18,0),Kr(0,4,5,-2,0,7,10,1,0,2,16,1),Kr(0,5,5,-3,0,8,10,1,0,3,14,2),Kr(0,5,6,-3,0,9,12,1,0,3,16,2),Kr(0,6,6,-3,0,10,14,1,0,4,18,3),Kr(0,6,7,-4,0,11,15,1,0,4,20,3),Kr(0,7,8,-4,0,12,17,2,0,5,22,4),Kr(0,7,8,-4,0,13,19,2,0,5,24,4),Kr(0,7,9,-4,0,14,21,2,0,5,26,4),Kr(0,8,9,-5,0,15,22,2,0,6,28,5),Kr(0,8,10,-5,0,16,24,2,0,6,30,5),Kr(0,8,11,-5,0,17,26,2,0,6,32,5),Kr(0,9,11,-5,0,18,28,2,0,7,34,6),Kr(0,9,12,-6,0,19,29,2,0,7,36,6),Kr(0,10,13,-6,0,20,31,3,0,8,38,7),Kr(0,10,13,-6,0,21,33,3,0,8,40,7),Kr(0,10,14,-6,0,22,35,3,0,8,42,7),Kr(0,11,14,-7,0,23,36,3,0,9,44,8),Kr(0,11,15,-7,0,24,38,3,0,9,46,8)],Dne=["duration","easing","delay"],yj={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},iM={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function jA(e){return`${Math.round(e)}ms`}function Ene(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Rne(e){const t=Ie({},yj,e.easing),n=Ie({},iM,e.duration);return Ie({getAutoHeightDuration:Ene,create:(l=["all"],i={})=>{const{duration:o=n.standard,easing:a=t.easeInOut,delay:s=0}=i;return Kt(i,Dne),(Array.isArray(l)?l:[l]).map(u=>`${u} ${typeof o=="string"?o:jA(o)} ${a} ${typeof s=="string"?s:jA(s)}`).join(",")}},e,{easing:t,duration:n})}const Lne={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Ine=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function es(e={},...t){const{mixins:n={},palette:r={},transitions:l={},typography:i={}}=e,o=Kt(e,Ine);if(e.vars)throw new Error(No(18));const a=kne(r),s=V1(e);let u=ha(s,{mixins:gne(s.breakpoints,n),palette:a,shadows:Ane.slice(),typography:oM(a,i),transitions:Rne(l),zIndex:Ie({},Lne)});return u=ha(u,o),u=t.reduce((c,d)=>ha(c,d),u),u.unstable_sxConfig=Ie({},Gm,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(d){return dc({sx:d,theme:this})},u}function $ne(...e){return es(...e)}function Nne(e,...t){return es(ha({unstable_strictMode:!0},e),...t)}let zA=!1;function Fne(e){return zA||(console.warn(["MUI: createStyles from @mui/material/styles is deprecated.","Please use @mui/styles/createStyles"].join(` -`)),zA=!0),e}function BA(e){return String(parseFloat(e)).length===String(e).length}function lM(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function $l(e){return parseFloat(e)}function jne(e){return(t,n)=>{const r=lM(t);if(r===n)return t;let l=$l(t);r!=="px"&&(r==="em"||r==="rem")&&(l=$l(t)*$l(e));let i=l;if(n!=="px")if(n==="em")i=l/$l(e);else if(n==="rem")i=l/$l(e);else return t;return parseFloat(i.toFixed(5))+n}}function zne({size:e,grid:t}){const n=e-e%t,r=n+t;return e-n{let u=t+a*s;i!==null&&(u=i(u)),o[`@media (min-width:${s}px)`]={[e]:`${Math.round(u*1e4)/1e4}${r}`}}),o}function qne(e,t={}){const{breakpoints:n=["sm","md","lg"],disableAlign:r=!1,factor:l=2,variants:i=["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]}=t,o=Ie({},e);o.typography=Ie({},o.typography);const a=o.typography,s=jne(a.htmlFontSize),u=n.map(c=>o.breakpoints.values[c]);return i.forEach(c=>{const d=a[c],f=parseFloat(s(d.fontSize,"rem"));if(f<=1)return;const p=f,m=1+(p-1)/l;let{lineHeight:g}=d;if(!BA(g)&&!r)throw new Error(No(6));BA(g)||(g=parseFloat(s(g,"rem"))/parseFloat(f));let b=null;r||(b=v=>zne({size:v,grid:Bne({pixels:4,lineHeight:g,htmlFontSize:a.htmlFontSize})})),a[c]=Ie({},d,Wne({cssProperty:"fontSize",min:m,max:p,unit:"rem",breakpoints:u,transform:b}))}),o}const X1=es();function po(){const e=Ym(X1);return e[Ql]||e}function pn({props:e,name:t}){return cj({props:e,name:t,defaultTheme:X1,themeId:Ql})}const Vi=e=>Ph(e)&&e!=="classes",Une=Ph,Et=sj({themeId:Ql,defaultTheme:X1,rootShouldForwardProp:Vi}),Hne=["theme"];function bj(e){let{theme:t}=e,n=Kt(e,Hne);const r=t[Ql];return ke.jsx(mj,Ie({},n,{themeId:r?Ql:void 0,theme:r||t}))}function Vne(){throw new Error(No(14))}function Gne(){throw new Error(No(15))}function Yne(){throw new Error(No(16))}function xj(e){var t;return!!e[0].match(/(cssVarPrefix|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const Xne=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Qv=Xne,Kne=["colorSchemes","cssVarPrefix","shouldSkipGeneratingVar"],Zne=["palette"],Qne=[...Array(25)].map((e,t)=>{if(t===0)return;const n=Qv(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Jne(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Qt(e,t,n){!e[t]&&n&&(e[t]=n)}function bs(e,t){`${t}Channel`in e||(e[`${t}Channel`]=uh(e[t],`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). -To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, e.g. "12 12 12") or undefined if you want to remove the channel token.`))}const nl=e=>{try{return e()}catch{}},ere=(e="mui")=>Jte(e);function wj(e={},...t){var n,r,l,i,o,a;const{colorSchemes:s={},cssVarPrefix:u="mui",shouldSkipGeneratingVar:c=xj}=e,d=Kt(e,Kne),f=ere(u),p=es(Ie({},d,s.light&&{palette:(n=s.light)==null?void 0:n.palette})),{palette:m}=p,g=Kt(p,Zne),{palette:b}=es({palette:Ie({mode:"dark"},(r=s.dark)==null?void 0:r.palette)});let v=Ie({},g,{cssVarPrefix:u,getCssVar:f,colorSchemes:Ie({},s,{light:Ie({},s.light,{palette:m,opacity:Ie({inputPlaceholder:.42,inputUnderline:.42,switchTrackDisabled:.12,switchTrack:.38},(l=s.light)==null?void 0:l.opacity),overlays:((i=s.light)==null?void 0:i.overlays)||[]}),dark:Ie({},s.dark,{palette:b,opacity:Ie({inputPlaceholder:.5,inputUnderline:.7,switchTrackDisabled:.2,switchTrack:.3},(o=s.dark)==null?void 0:o.opacity),overlays:((a=s.dark)==null?void 0:a.overlays)||Qne})})});Object.keys(v.colorSchemes).forEach(_=>{const x=v.colorSchemes[_].palette,T=k=>{const S=k.split("-"),C=S[1],M=S[2];return f(k,x[C][M])};if(_==="light"?(Qt(x.common,"background","#fff"),Qt(x.common,"onBackground","#000")):(Qt(x.common,"background","#000"),Qt(x.common,"onBackground","#fff")),Jne(x,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),_==="light"){Qt(x.Alert,"errorColor",Er(x.error.light,.6)),Qt(x.Alert,"infoColor",Er(x.info.light,.6)),Qt(x.Alert,"successColor",Er(x.success.light,.6)),Qt(x.Alert,"warningColor",Er(x.warning.light,.6)),Qt(x.Alert,"errorFilledBg",T("palette-error-main")),Qt(x.Alert,"infoFilledBg",T("palette-info-main")),Qt(x.Alert,"successFilledBg",T("palette-success-main")),Qt(x.Alert,"warningFilledBg",T("palette-warning-main")),Qt(x.Alert,"errorFilledColor",nl(()=>m.getContrastText(x.error.main))),Qt(x.Alert,"infoFilledColor",nl(()=>m.getContrastText(x.info.main))),Qt(x.Alert,"successFilledColor",nl(()=>m.getContrastText(x.success.main))),Qt(x.Alert,"warningFilledColor",nl(()=>m.getContrastText(x.warning.main))),Qt(x.Alert,"errorStandardBg",Rr(x.error.light,.9)),Qt(x.Alert,"infoStandardBg",Rr(x.info.light,.9)),Qt(x.Alert,"successStandardBg",Rr(x.success.light,.9)),Qt(x.Alert,"warningStandardBg",Rr(x.warning.light,.9)),Qt(x.Alert,"errorIconColor",T("palette-error-main")),Qt(x.Alert,"infoIconColor",T("palette-info-main")),Qt(x.Alert,"successIconColor",T("palette-success-main")),Qt(x.Alert,"warningIconColor",T("palette-warning-main")),Qt(x.AppBar,"defaultBg",T("palette-grey-100")),Qt(x.Avatar,"defaultBg",T("palette-grey-400")),Qt(x.Button,"inheritContainedBg",T("palette-grey-300")),Qt(x.Button,"inheritContainedHoverBg",T("palette-grey-A100")),Qt(x.Chip,"defaultBorder",T("palette-grey-400")),Qt(x.Chip,"defaultAvatarColor",T("palette-grey-700")),Qt(x.Chip,"defaultIconColor",T("palette-grey-700")),Qt(x.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Qt(x.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Qt(x.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Qt(x.LinearProgress,"primaryBg",Rr(x.primary.main,.62)),Qt(x.LinearProgress,"secondaryBg",Rr(x.secondary.main,.62)),Qt(x.LinearProgress,"errorBg",Rr(x.error.main,.62)),Qt(x.LinearProgress,"infoBg",Rr(x.info.main,.62)),Qt(x.LinearProgress,"successBg",Rr(x.success.main,.62)),Qt(x.LinearProgress,"warningBg",Rr(x.warning.main,.62)),Qt(x.Skeleton,"bg",`rgba(${T("palette-text-primaryChannel")} / 0.11)`),Qt(x.Slider,"primaryTrack",Rr(x.primary.main,.62)),Qt(x.Slider,"secondaryTrack",Rr(x.secondary.main,.62)),Qt(x.Slider,"errorTrack",Rr(x.error.main,.62)),Qt(x.Slider,"infoTrack",Rr(x.info.main,.62)),Qt(x.Slider,"successTrack",Rr(x.success.main,.62)),Qt(x.Slider,"warningTrack",Rr(x.warning.main,.62));const k=ch(x.background.default,.8);Qt(x.SnackbarContent,"bg",k),Qt(x.SnackbarContent,"color",nl(()=>m.getContrastText(k))),Qt(x.SpeedDialAction,"fabHoverBg",ch(x.background.paper,.15)),Qt(x.StepConnector,"border",T("palette-grey-400")),Qt(x.StepContent,"border",T("palette-grey-400")),Qt(x.Switch,"defaultColor",T("palette-common-white")),Qt(x.Switch,"defaultDisabledColor",T("palette-grey-100")),Qt(x.Switch,"primaryDisabledColor",Rr(x.primary.main,.62)),Qt(x.Switch,"secondaryDisabledColor",Rr(x.secondary.main,.62)),Qt(x.Switch,"errorDisabledColor",Rr(x.error.main,.62)),Qt(x.Switch,"infoDisabledColor",Rr(x.info.main,.62)),Qt(x.Switch,"successDisabledColor",Rr(x.success.main,.62)),Qt(x.Switch,"warningDisabledColor",Rr(x.warning.main,.62)),Qt(x.TableCell,"border",Rr(t0(x.divider,1),.88)),Qt(x.Tooltip,"bg",t0(x.grey[700],.92))}else{Qt(x.Alert,"errorColor",Rr(x.error.light,.6)),Qt(x.Alert,"infoColor",Rr(x.info.light,.6)),Qt(x.Alert,"successColor",Rr(x.success.light,.6)),Qt(x.Alert,"warningColor",Rr(x.warning.light,.6)),Qt(x.Alert,"errorFilledBg",T("palette-error-dark")),Qt(x.Alert,"infoFilledBg",T("palette-info-dark")),Qt(x.Alert,"successFilledBg",T("palette-success-dark")),Qt(x.Alert,"warningFilledBg",T("palette-warning-dark")),Qt(x.Alert,"errorFilledColor",nl(()=>b.getContrastText(x.error.dark))),Qt(x.Alert,"infoFilledColor",nl(()=>b.getContrastText(x.info.dark))),Qt(x.Alert,"successFilledColor",nl(()=>b.getContrastText(x.success.dark))),Qt(x.Alert,"warningFilledColor",nl(()=>b.getContrastText(x.warning.dark))),Qt(x.Alert,"errorStandardBg",Er(x.error.light,.9)),Qt(x.Alert,"infoStandardBg",Er(x.info.light,.9)),Qt(x.Alert,"successStandardBg",Er(x.success.light,.9)),Qt(x.Alert,"warningStandardBg",Er(x.warning.light,.9)),Qt(x.Alert,"errorIconColor",T("palette-error-main")),Qt(x.Alert,"infoIconColor",T("palette-info-main")),Qt(x.Alert,"successIconColor",T("palette-success-main")),Qt(x.Alert,"warningIconColor",T("palette-warning-main")),Qt(x.AppBar,"defaultBg",T("palette-grey-900")),Qt(x.AppBar,"darkBg",T("palette-background-paper")),Qt(x.AppBar,"darkColor",T("palette-text-primary")),Qt(x.Avatar,"defaultBg",T("palette-grey-600")),Qt(x.Button,"inheritContainedBg",T("palette-grey-800")),Qt(x.Button,"inheritContainedHoverBg",T("palette-grey-700")),Qt(x.Chip,"defaultBorder",T("palette-grey-700")),Qt(x.Chip,"defaultAvatarColor",T("palette-grey-300")),Qt(x.Chip,"defaultIconColor",T("palette-grey-300")),Qt(x.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Qt(x.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Qt(x.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Qt(x.LinearProgress,"primaryBg",Er(x.primary.main,.5)),Qt(x.LinearProgress,"secondaryBg",Er(x.secondary.main,.5)),Qt(x.LinearProgress,"errorBg",Er(x.error.main,.5)),Qt(x.LinearProgress,"infoBg",Er(x.info.main,.5)),Qt(x.LinearProgress,"successBg",Er(x.success.main,.5)),Qt(x.LinearProgress,"warningBg",Er(x.warning.main,.5)),Qt(x.Skeleton,"bg",`rgba(${T("palette-text-primaryChannel")} / 0.13)`),Qt(x.Slider,"primaryTrack",Er(x.primary.main,.5)),Qt(x.Slider,"secondaryTrack",Er(x.secondary.main,.5)),Qt(x.Slider,"errorTrack",Er(x.error.main,.5)),Qt(x.Slider,"infoTrack",Er(x.info.main,.5)),Qt(x.Slider,"successTrack",Er(x.success.main,.5)),Qt(x.Slider,"warningTrack",Er(x.warning.main,.5));const k=ch(x.background.default,.98);Qt(x.SnackbarContent,"bg",k),Qt(x.SnackbarContent,"color",nl(()=>b.getContrastText(k))),Qt(x.SpeedDialAction,"fabHoverBg",ch(x.background.paper,.15)),Qt(x.StepConnector,"border",T("palette-grey-600")),Qt(x.StepContent,"border",T("palette-grey-600")),Qt(x.Switch,"defaultColor",T("palette-grey-300")),Qt(x.Switch,"defaultDisabledColor",T("palette-grey-600")),Qt(x.Switch,"primaryDisabledColor",Er(x.primary.main,.55)),Qt(x.Switch,"secondaryDisabledColor",Er(x.secondary.main,.55)),Qt(x.Switch,"errorDisabledColor",Er(x.error.main,.55)),Qt(x.Switch,"infoDisabledColor",Er(x.info.main,.55)),Qt(x.Switch,"successDisabledColor",Er(x.success.main,.55)),Qt(x.Switch,"warningDisabledColor",Er(x.warning.main,.55)),Qt(x.TableCell,"border",Er(t0(x.divider,1),.68)),Qt(x.Tooltip,"bg",t0(x.grey[700],.92))}bs(x.background,"default"),bs(x.common,"background"),bs(x.common,"onBackground"),bs(x,"divider"),Object.keys(x).forEach(k=>{const S=x[k];S&&typeof S=="object"&&(S.main&&Qt(x[k],"mainChannel",uh(S.main)),S.light&&Qt(x[k],"lightChannel",uh(S.light)),S.dark&&Qt(x[k],"darkChannel",uh(S.dark)),S.contrastText&&Qt(x[k],"contrastTextChannel",uh(S.contrastText)),k==="text"&&(bs(x[k],"primary"),bs(x[k],"secondary")),k==="action"&&(S.active&&bs(x[k],"active"),S.selected&&bs(x[k],"selected")))})}),v=t.reduce((_,x)=>ha(_,x),v);const h={prefix:u,shouldSkipGeneratingVar:c},{vars:y,generateCssVars:w}=ane(v,h);return v.vars=y,v.generateCssVars=w,v.shouldSkipGeneratingVar=c,v.unstable_sxConfig=Ie({},Gm,d==null?void 0:d.unstable_sxConfig),v.unstable_sx=function(x){return dc({sx:x,theme:this})},v}const tre=e=>[...[...Array(24)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n+1}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],_j=tre,nre=wj(),{CssVarsProvider:rre,useColorScheme:are,getInitColorSchemeScript:ore}=Qte({themeId:Ql,theme:nre,attribute:"data-mui-color-scheme",modeStorageKey:"mui-mode",colorSchemeStorageKey:"mui-color-scheme",defaultColorScheme:{light:"light",dark:"dark"},resolveTheme:e=>{const t=Ie({},e,{typography:oM(e.palette,e.typography)});return t.unstable_sx=function(r){return dc({sx:r,theme:this})},t},excludeVariablesFromRoot:_j});function ire(){throw new Error(No(20))}const lre=Object.freeze(Object.defineProperty({__proto__:null,Experimental_CssVarsProvider:rre,StyledEngineProvider:Oee,THEME_ID:Ql,ThemeProvider:bj,adaptV4Theme:mne,alpha:rr,createMuiTheme:$ne,createStyles:Fne,createTheme:es,css:Jl,darken:wl,decomposeColor:xl,duration:iM,easing:yj,emphasize:Wte,experimentalStyled:Et,experimental_extendTheme:wj,experimental_sx:ire,getContrastRatio:pj,getInitColorSchemeScript:ore,getLuminance:Zv,getOverlayAlpha:Qv,hexToRgb:dj,hslToRgb:fj,keyframes:Hi,lighten:_l,makeStyles:Vne,private_createTypography:oM,private_excludeVariablesFromRoot:_j,recomposeColor:Xm,responsiveFontSizes:qne,rgbToHex:Bte,shouldSkipGeneratingVar:xj,styled:Et,unstable_createMuiStrictModeTheme:Nne,unstable_getUnit:lM,unstable_toUnitless:$l,useColorScheme:are,useTheme:po,useThemeProps:pn,withStyles:Gne,withTheme:Yne},Symbol.toStringTag,{value:"Module"}));function sre(e){return yn("MuiSvgIcon",e)}hn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ure=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],cre=e=>{const{color:t,fontSize:n,classes:r}=e,l={root:["root",t!=="inherit"&&`color${Jt(t)}`,`fontSize${Jt(n)}`]};return vn(l,sre,r)},dre=Et("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Jt(n.color)}`],t[`fontSize${Jt(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,l,i,o,a,s,u,c,d,f,p,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(l=e.transitions)==null||(l=l.duration)==null?void 0:l.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(o=i.pxToRem)==null?void 0:o.call(i,20))||"1.25rem",medium:((a=e.typography)==null||(s=a.pxToRem)==null?void 0:s.call(a,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(d=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?d:{action:(p=(e.vars||e).palette)==null||(p=p.action)==null?void 0:p.active,disabled:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.disabled,inherit:void 0}[t.color]}}),q3=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiSvgIcon"}),{children:l,className:i,color:o="inherit",component:a="svg",fontSize:s="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:f="0 0 24 24"}=r,p=Kt(r,ure),m=ge.isValidElement(l)&&l.type==="svg",g=Ie({},r,{color:o,component:a,fontSize:s,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:f,hasSvgAsChild:m}),b={};c||(b.viewBox=f);const v=cre(g);return ke.jsxs(dre,Ie({as:a,className:on(v.root,i),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},b,p,m&&l.props,{ownerState:g,children:[m?l.props.children:l,d?ke.jsx("title",{children:d}):null]}))});q3.muiName="SvgIcon";function Qr(e,t){function n(r,l){return ke.jsx(q3,Ie({"data-testid":`${t}Icon`,ref:l},r,{children:e}))}return n.muiName=q3.muiName,ge.memo(ge.forwardRef(n))}const fre={configure:e=>{zC.configure(e)}},pre=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Jt,createChainedFunction:N3,createSvgIcon:Qr,debounce:Um,deprecatedPropType:cJ,isMuiElement:G0,ownerDocument:Aa,ownerWindow:bl,requirePropFactory:dJ,setRef:Vv,unstable_ClassNameGenerator:fre,unstable_useEnhancedEffect:no,unstable_useId:Kl,unsupportedProp:pJ,useControlled:Zl,useEventCallback:yo,useForkRef:Lr,useIsFocusVisible:FC},Symbol.toStringTag,{value:"Module"}));function Jv(e,t){return Jv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,l){return r.__proto__=l,r},Jv(e,t)}function K1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Jv(e,t)}function hre(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function mre(e,t){e.classList?e.classList.add(t):hre(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function WA(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function gre(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=WA(e.className,t):e.setAttribute("class",WA(e.className&&e.className.baseVal||"",t))}const qA={disabled:!1},ey=Je.createContext(null);var Tj=function(t){return t.scrollTop},dh="unmounted",bu="exited",xu="entering",Gc="entered",U3="exiting",Pi=function(e){K1(t,e);function t(r,l){var i;i=e.call(this,r,l)||this;var o=l,a=o&&!o.isMounting?r.enter:r.appear,s;return i.appearStatus=null,r.in?a?(s=bu,i.appearStatus=xu):s=Gc:r.unmountOnExit||r.mountOnEnter?s=dh:s=bu,i.state={status:s},i.nextCallback=null,i}t.getDerivedStateFromProps=function(l,i){var o=l.in;return o&&i.status===dh?{status:bu}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(l){var i=null;if(l!==this.props){var o=this.state.status;this.props.in?o!==xu&&o!==Gc&&(i=xu):(o===xu||o===Gc)&&(i=U3)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var l=this.props.timeout,i,o,a;return i=o=a=l,l!=null&&typeof l!="number"&&(i=l.exit,o=l.enter,a=l.appear!==void 0?l.appear:o),{exit:i,enter:o,appear:a}},n.updateStatus=function(l,i){if(l===void 0&&(l=!1),i!==null)if(this.cancelNextCallback(),i===xu){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:sh.findDOMNode(this);o&&Tj(o)}this.performEnter(l)}else this.performExit();else this.props.unmountOnExit&&this.state.status===bu&&this.setState({status:dh})},n.performEnter=function(l){var i=this,o=this.props.enter,a=this.context?this.context.isMounting:l,s=this.props.nodeRef?[a]:[sh.findDOMNode(this),a],u=s[0],c=s[1],d=this.getTimeouts(),f=a?d.appear:d.enter;if(!l&&!o||qA.disabled){this.safeSetState({status:Gc},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:xu},function(){i.props.onEntering(u,c),i.onTransitionEnd(f,function(){i.safeSetState({status:Gc},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var l=this,i=this.props.exit,o=this.getTimeouts(),a=this.props.nodeRef?void 0:sh.findDOMNode(this);if(!i||qA.disabled){this.safeSetState({status:bu},function(){l.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:U3},function(){l.props.onExiting(a),l.onTransitionEnd(o.exit,function(){l.safeSetState({status:bu},function(){l.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(l,i){i=this.setNextCallback(i),this.setState(l,i)},n.setNextCallback=function(l){var i=this,o=!0;return this.nextCallback=function(a){o&&(o=!1,i.nextCallback=null,l(a))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(l,i){this.setNextCallback(i);var o=this.props.nodeRef?this.props.nodeRef.current:sh.findDOMNode(this),a=l==null&&!this.props.addEndListener;if(!o||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],u=s[0],c=s[1];this.props.addEndListener(u,c)}l!=null&&setTimeout(this.nextCallback,l)},n.render=function(){var l=this.state.status;if(l===dh)return null;var i=this.props,o=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=Kt(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Je.createElement(ey.Provider,{value:null},typeof o=="function"?o(l,a):Je.cloneElement(Je.Children.only(o),a))},t}(Je.Component);Pi.contextType=ey;Pi.propTypes={};function Nc(){}Pi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Nc,onEntering:Nc,onEntered:Nc,onExit:Nc,onExiting:Nc,onExited:Nc};Pi.UNMOUNTED=dh;Pi.EXITED=bu;Pi.ENTERING=xu;Pi.ENTERED=Gc;Pi.EXITING=U3;var vre=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return mre(t,r)})},yw=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return gre(t,r)})},sM=function(e){K1(t,e);function t(){for(var r,l=arguments.length,i=new Array(l),o=0;oe.scrollTop;function Id(e,t){var n,r;const{timeout:l,easing:i,style:o={}}=e;return{duration:(n=o.transitionDuration)!=null?n:typeof l=="number"?l:l[t.mode]||0,easing:(r=o.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:o.transitionDelay}}function Sj(e){return yn("MuiCollapse",e)}const Tre=hn("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]),kre=Tre,Sre=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],Cre=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return vn(r,Sj,n)},Mre=Et("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>Ie({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&Ie({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),Pre=Et("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>Ie({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),Ore=Et("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>Ie({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),Cj=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiCollapse"}),{addEndListener:l,children:i,className:o,collapsedSize:a="0px",component:s,easing:u,in:c,onEnter:d,onEntered:f,onEntering:p,onExit:m,onExited:g,onExiting:b,orientation:v="vertical",style:h,timeout:y=iM.standard,TransitionComponent:w=Pi}=r,_=Kt(r,Sre),x=Ie({},r,{orientation:v,collapsedSize:a}),T=Cre(x),k=po(),S=ge.useRef(),C=ge.useRef(null),M=ge.useRef(),O=typeof a=="number"?`${a}px`:a,D=v==="horizontal",P=D?"width":"height";ge.useEffect(()=>()=>{clearTimeout(S.current)},[]);const E=ge.useRef(null),I=Lr(n,E),A=L=>W=>{if(L){const U=E.current;W===void 0?L(U):L(U,W)}},F=()=>C.current?C.current[D?"clientWidth":"clientHeight"]:0,j=A((L,W)=>{C.current&&D&&(C.current.style.position="absolute"),L.style[P]=O,d&&d(L,W)}),z=A((L,W)=>{const U=F();C.current&&D&&(C.current.style.position="");const{duration:V,easing:te}=Id({style:h,timeout:y,easing:u},{mode:"enter"});if(y==="auto"){const ee=k.transitions.getAutoHeightDuration(U);L.style.transitionDuration=`${ee}ms`,M.current=ee}else L.style.transitionDuration=typeof V=="string"?V:`${V}ms`;L.style[P]=`${U}px`,L.style.transitionTimingFunction=te,p&&p(L,W)}),B=A((L,W)=>{L.style[P]="auto",f&&f(L,W)}),N=A(L=>{L.style[P]=`${F()}px`,m&&m(L)}),R=A(g),q=A(L=>{const W=F(),{duration:U,easing:V}=Id({style:h,timeout:y,easing:u},{mode:"exit"});if(y==="auto"){const te=k.transitions.getAutoHeightDuration(W);L.style.transitionDuration=`${te}ms`,M.current=te}else L.style.transitionDuration=typeof U=="string"?U:`${U}ms`;L.style[P]=O,L.style.transitionTimingFunction=V,b&&b(L)}),Y=L=>{y==="auto"&&(S.current=setTimeout(L,M.current||0)),l&&l(E.current,L)};return ke.jsx(w,Ie({in:c,onEnter:j,onEntered:B,onEntering:z,onExit:N,onExited:R,onExiting:q,addEndListener:Y,nodeRef:E,timeout:y==="auto"?null:y},_,{children:(L,W)=>ke.jsx(Mre,Ie({as:s,className:on(T.root,o,{entered:T.entered,exited:!c&&O==="0px"&&T.hidden}[L]),style:Ie({[D?"minWidth":"minHeight"]:O},h),ownerState:Ie({},x,{state:L}),ref:I},W,{children:ke.jsx(Pre,{ownerState:Ie({},x,{state:L}),className:T.wrapper,ref:C,children:ke.jsx(Ore,{ownerState:Ie({},x,{state:L}),className:T.wrapperInner,children:i})})}))}))});Cj.muiSupportAuto=!0;const Z1=Cj,Are=Object.freeze(Object.defineProperty({__proto__:null,collapseClasses:kre,default:Z1,getCollapseUtilityClass:Sj},Symbol.toStringTag,{value:"Module"}));function Mj(e){return yn("MuiPaper",e)}const Dre=hn("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]),Ere=Dre,Rre=["className","component","elevation","square","variant"],Lre=e=>{const{square:t,elevation:n,variant:r,classes:l}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return vn(i,Mj,l)},Ire=Et("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return Ie({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&Ie({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${rr("#fff",Qv(t.elevation))}, ${rr("#fff",Qv(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),$re=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiPaper"}),{className:l,component:i="div",elevation:o=1,square:a=!1,variant:s="elevation"}=r,u=Kt(r,Rre),c=Ie({},r,{component:i,elevation:o,square:a,variant:s}),d=Lre(c);return ke.jsx(Ire,Ie({as:i,ownerState:c,className:on(d.root,l),ref:n},u))}),nu=$re,Nre=Object.freeze(Object.defineProperty({__proto__:null,default:nu,getPaperUtilityClass:Mj,paperClasses:Ere},Symbol.toStringTag,{value:"Module"}));function Fre(e){const{className:t,classes:n,pulsate:r=!1,rippleX:l,rippleY:i,rippleSize:o,in:a,onExited:s,timeout:u}=e,[c,d]=ge.useState(!1),f=on(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+i,left:-(o/2)+l},m=on(n.child,c&&n.childLeaving,r&&n.childPulsate);return!a&&!c&&d(!0),ge.useEffect(()=>{if(!a&&s!=null){const g=setTimeout(s,u);return()=>{clearTimeout(g)}}},[s,a,u]),ke.jsx("span",{className:f,style:p,children:ke.jsx("span",{className:m})})}const ci=hn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),jre=["center","classes","className"];let Q1=e=>e,UA,HA,VA,GA;const H3=550,zre=80,Bre=Hi(UA||(UA=Q1` +} catch(e){}})();`}},"mui-color-scheme-init")}function kA(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Xj(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function ere(e){return Xj(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function Yw(e,t){if(typeof window>"u")return;let n;try{n=localStorage.getItem(e)||void 0,n||localStorage.setItem(e,t)}catch{}return n||t}function tre(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:l=[],modeStorageKey:i=HM,colorSchemeStorageKey:o=VM,storageWindow:a=typeof window>"u"?void 0:window}=e,s=l.join(","),u=l.length>1,[c,d]=ge.useState(()=>{const y=Yw(i,t),x=Yw(`${o}-light`,n),_=Yw(`${o}-dark`,r);return{mode:y,systemMode:kA(y),lightColorScheme:x,darkColorScheme:_}}),[,f]=ge.useState(!1),p=ge.useRef(!1);ge.useEffect(()=>{u&&f(!0),p.current=!0},[u]);const h=ere(c),g=ge.useCallback(y=>{d(x=>{if(y===x.mode)return x;const _=y??t;try{localStorage.setItem(i,_)}catch{}return{...x,mode:_,systemMode:kA(_)}})},[i,t]),b=ge.useCallback(y=>{y?typeof y=="string"?y&&!s.includes(y)?console.error(`\`${y}\` does not exist in \`theme.colorSchemes\`.`):d(x=>{const _={...x};return Xj(x,w=>{try{localStorage.setItem(`${o}-${w}`,y)}catch{}w==="light"&&(_.lightColorScheme=y),w==="dark"&&(_.darkColorScheme=y)}),_}):d(x=>{const _={...x},w=y.light===null?n:y.light,S=y.dark===null?r:y.dark;if(w)if(!s.includes(w))console.error(`\`${w}\` does not exist in \`theme.colorSchemes\`.`);else{_.lightColorScheme=w;try{localStorage.setItem(`${o}-light`,w)}catch{}}if(S)if(!s.includes(S))console.error(`\`${S}\` does not exist in \`theme.colorSchemes\`.`);else{_.darkColorScheme=S;try{localStorage.setItem(`${o}-dark`,S)}catch{}}return _}):d(x=>{try{localStorage.setItem(`${o}-light`,n),localStorage.setItem(`${o}-dark`,r)}catch{}return{...x,lightColorScheme:n,darkColorScheme:r}})},[s,o,n,r]),v=ge.useCallback(y=>{c.mode==="system"&&d(x=>{const _=y!=null&&y.matches?"dark":"light";return x.systemMode===_?x:{...x,systemMode:_}})},[c.mode]),m=ge.useRef(v);return m.current=v,ge.useEffect(()=>{if(typeof window.matchMedia!="function"||!u)return;const y=(..._)=>m.current(..._),x=window.matchMedia("(prefers-color-scheme: dark)");return x.addListener(y),y(x),()=>{x.removeListener(y)}},[u]),ge.useEffect(()=>{if(a&&u){const y=x=>{const _=x.newValue;typeof x.key=="string"&&x.key.startsWith(o)&&(!_||s.match(_))&&(x.key.endsWith("light")&&b({light:_}),x.key.endsWith("dark")&&b({dark:_})),x.key===i&&(!_||["light","dark","system"].includes(_))&&g(_||t)};return a.addEventListener("storage",y),()=>{a.removeEventListener("storage",y)}}},[b,g,i,o,s,t,a,u]),{...c,mode:p.current||!u?c.mode:void 0,systemMode:p.current||!u?c.systemMode:void 0,colorScheme:p.current||!u?h:void 0,setMode:g,setColorScheme:b}}const nre="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function rre(e){const{themeId:t,theme:n={},modeStorageKey:r=HM,colorSchemeStorageKey:l=VM,disableTransitionOnChange:i=!1,defaultColorScheme:o,resolveTheme:a}=e,s={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},u=ge.createContext(void 0),c=()=>ge.useContext(u)||s;function d(g){var ke,Ce,Oe,Pe,ce;const{children:b,theme:v,modeStorageKey:m=r,colorSchemeStorageKey:y=l,disableTransitionOnChange:x=i,storageWindow:_=typeof window>"u"?void 0:window,documentNode:w=typeof document>"u"?void 0:document,colorSchemeNode:S=typeof document>"u"?void 0:document.documentElement,disableNestedContext:k=!1,disableStyleSheetGeneration:C=!1,defaultMode:T="system"}=g,M=ge.useRef(!1),O=UM(),D=ge.useContext(u),P=!!D&&!k,E=ge.useMemo(()=>v||(typeof n=="function"?n():n),[v]),I=E[t],{colorSchemes:A={},components:F={},cssVarPrefix:j,...B}=I||E,z=Object.keys(A).filter(we=>!!A[we]).join(","),N=ge.useMemo(()=>z.split(","),[z]),R=typeof o=="string"?o:o.light,q=typeof o=="string"?o:o.dark,Y=A[R]&&A[q]?T:((Ce=(ke=A[B.defaultColorScheme])==null?void 0:ke.palette)==null?void 0:Ce.mode)||((Oe=B.palette)==null?void 0:Oe.mode),{mode:L,setMode:W,systemMode:H,lightColorScheme:G,darkColorScheme:te,colorScheme:ee,setColorScheme:U}=tre({supportedColorSchemes:N,defaultLightColorScheme:R,defaultDarkColorScheme:q,modeStorageKey:m,colorSchemeStorageKey:y,defaultMode:Y,storageWindow:_});let Q=L,V=ee;P&&(Q=D.mode,V=D.colorScheme);const X=V||B.defaultColorScheme,K=((Pe=B.generateThemeVars)==null?void 0:Pe.call(B))||B.vars,ne={...B,components:F,colorSchemes:A,cssVarPrefix:j,vars:K};if(typeof ne.generateSpacing=="function"&&(ne.spacing=ne.generateSpacing()),X){const we=A[X];we&&typeof we=="object"&&Object.keys(we).forEach(Z=>{we[Z]&&typeof we[Z]=="object"?ne[Z]={...ne[Z],...we[Z]}:ne[Z]=we[Z]})}const ae=B.colorSchemeSelector;ge.useEffect(()=>{if(V&&S&&ae&&ae!=="media"){const we=ae;let Z=ae;if(we==="class"&&(Z=".%s"),we==="data"&&(Z="[data-%s]"),we!=null&&we.startsWith("data-")&&!we.includes("%s")&&(Z=`[${we}="%s"]`),Z.startsWith("."))S.classList.remove(...N.map(re=>Z.substring(1).replace("%s",re))),S.classList.add(Z.substring(1).replace("%s",V));else{const re=Z.replace("%s",V).match(/\[([^\]]+)\]/);if(re){const[de,_e]=re[1].split("=");_e||N.forEach(ue=>{S.removeAttribute(de.replace(V,ue))}),S.setAttribute(de,_e?_e.replace(/"|'/g,""):"")}else S.setAttribute(Z,V)}}},[V,ae,S,N]),ge.useEffect(()=>{let we;if(x&&M.current&&w){const Z=w.createElement("style");Z.appendChild(w.createTextNode(nre)),w.head.appendChild(Z),window.getComputedStyle(w.body),we=setTimeout(()=>{w.head.removeChild(Z)},1)}return()=>{clearTimeout(we)}},[V,x,w]),ge.useEffect(()=>(M.current=!0,()=>{M.current=!1}),[]);const ie=ge.useMemo(()=>({allColorSchemes:N,colorScheme:V,darkColorScheme:te,lightColorScheme:G,mode:Q,setColorScheme:U,setMode:W,systemMode:H}),[N,V,te,G,Q,U,W,H]);let se=!0;(C||B.cssVariables===!1||P&&(O==null?void 0:O.cssVarPrefix)===j)&&(se=!1);const pe=Se.jsxs(ge.Fragment,{children:[Se.jsx(Yj,{themeId:I?t:void 0,theme:a?a(ne):ne,children:b}),se&&Se.jsx(Mj,{styles:((ce=ne.generateStyleSheets)==null?void 0:ce.call(ne))||[]})]});return P?pe:Se.jsx(u.Provider,{value:ie,children:pe})}const f=typeof o=="string"?o:o.light,p=typeof o=="string"?o:o.dark;return{CssVarsProvider:d,useColorScheme:c,getInitColorSchemeScript:g=>Jne({colorSchemeStorageKey:l,defaultLightColorScheme:f,defaultDarkColorScheme:p,modeStorageKey:r,...g})}}function are(e=""){function t(...r){if(!r.length)return"";const l=r[0];return typeof l=="string"&&!l.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${l}${t(...r.slice(1))})`:`, ${l}`}return(r,...l)=>`var(--${e?`${e}-`:""}${r}${t(...l)})`}const CA=(e,t,n,r=[])=>{let l=e;t.forEach((i,o)=>{o===t.length-1?Array.isArray(l)?l[Number(i)]=n:l&&typeof l=="object"&&(l[i]=n):l&&typeof l=="object"&&(l[i]||(l[i]=r.includes(i)?[]:{}),l=l[i])})},ore=(e,t,n)=>{function r(l,i=[],o=[]){Object.entries(l).forEach(([a,s])=>{(!n||n&&!n([...i,a]))&&s!=null&&(typeof s=="object"&&Object.keys(s).length>0?r(s,[...i,a],Array.isArray(s)?[...o,a]:o):t([...i,a],s,o))})}r(e)},ire=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Xw(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},l={},i={},o={};return ore(e,(a,s,u)=>{if((typeof s=="string"||typeof s=="number")&&(!r||!r(a,s))){const c=`--${n?`${n}-`:""}${a.join("-")}`,d=ire(a,s);Object.assign(l,{[c]:d}),CA(i,a,`var(${c})`,u),CA(o,a,`var(${c}, ${d})`,u)}},a=>a[0]==="vars"),{css:l,vars:i,varsWithDefaults:o}}function lre(e,t={}){const{getSelector:n=b,disableCssColorScheme:r,colorSchemeSelector:l}=t,{colorSchemes:i={},components:o,defaultColorScheme:a="light",...s}=e,{vars:u,css:c,varsWithDefaults:d}=Xw(s,t);let f=d;const p={},{[a]:h,...g}=i;if(Object.entries(g||{}).forEach(([y,x])=>{const{vars:_,css:w,varsWithDefaults:S}=Xw(x,t);f=oo(f,S),p[y]={css:w,vars:_}}),h){const{css:y,vars:x,varsWithDefaults:_}=Xw(h,t);f=oo(f,_),p[a]={css:y,vars:x}}function b(y,x){var w,S;let _=l;if(l==="class"&&(_=".%s"),l==="data"&&(_="[data-%s]"),l!=null&&l.startsWith("data-")&&!l.includes("%s")&&(_=`[${l}="%s"]`),y){if(_==="media")return e.defaultColorScheme===y?":root":{[`@media (prefers-color-scheme: ${((S=(w=i[y])==null?void 0:w.palette)==null?void 0:S.mode)||y})`]:{":root":x}};if(_)return e.defaultColorScheme===y?`:root, ${_.replace("%s",String(y))}`:_.replace("%s",String(y))}return":root"}return{vars:f,generateThemeVars:()=>{let y={...u};return Object.entries(p).forEach(([,{vars:x}])=>{y=oo(y,x)}),y},generateStyleSheets:()=>{var k,C;const y=[],x=e.defaultColorScheme||"light";function _(T,M){Object.keys(M).length&&y.push(typeof T=="string"?{[T]:{...M}}:T)}_(n(void 0,{...c}),c);const{[x]:w,...S}=p;if(w){const{css:T}=w,M=(C=(k=i[x])==null?void 0:k.palette)==null?void 0:C.mode,O=!r&&M?{colorScheme:M,...T}:{...T};_(n(x,{...O}),O)}return Object.entries(S).forEach(([T,{css:M}])=>{var P,E;const O=(E=(P=i[T])==null?void 0:P.palette)==null?void 0:E.mode,D=!r&&O?{colorScheme:O,...M}:{...M};_(n(T,{...D}),D)}),y}}}function sre(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function ure(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:l={},props:i={},styleOverrides:o={},...a}=e,s={...a,components:{}};Object.keys(t).forEach(g=>{const b=s.components[g]||{};b.defaultProps=t[g],s.components[g]=b}),Object.keys(i).forEach(g=>{const b=s.components[g]||{};b.defaultProps=i[g],s.components[g]=b}),Object.keys(o).forEach(g=>{const b=s.components[g]||{};b.styleOverrides=o[g],s.components[g]=b}),Object.keys(r).forEach(g=>{const b=s.components[g]||{};b.styleOverrides=r[g],s.components[g]=b}),s.spacing=LM(e.spacing);const u=AM(e.breakpoints||{}),c=s.spacing;s.mixins={gutters:(g={})=>({paddingLeft:c(2),paddingRight:c(2),...g,[u.up("sm")]:{paddingLeft:c(3),paddingRight:c(3),...g[u.up("sm")]}}),...n};const{type:d,mode:f,...p}=l,h=f||d||"light";return s.palette={text:{hint:h==="dark"?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:h,type:h,...p},s}function Kj(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ym.white,default:ym.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const cre=Kj();function Zj(){return{text:{primary:ym.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:ym.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const MA=Zj();function PA(e,t,n,r){const l=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=$l(e.main,l):t==="dark"&&(e.dark=Il(e.main,i)))}function dre(e="light"){return e==="dark"?{main:Vc[200],light:Vc[50],dark:Vc[400]}:{main:Vc[700],light:Vc[400],dark:Vc[800]}}function fre(e="light"){return e==="dark"?{main:Hc[200],light:Hc[50],dark:Hc[400]}:{main:Hc[500],light:Hc[300],dark:Hc[700]}}function pre(e="light"){return e==="dark"?{main:Uc[500],light:Uc[300],dark:Uc[700]}:{main:Uc[700],light:Uc[400],dark:Uc[800]}}function hre(e="light"){return e==="dark"?{main:Gc[400],light:Gc[300],dark:Gc[700]}:{main:Gc[700],light:Gc[500],dark:Gc[900]}}function mre(e="light"){return e==="dark"?{main:Yc[400],light:Yc[300],dark:Yc[700]}:{main:Yc[800],light:Yc[500],dark:Yc[900]}}function gre(e="light"){return e==="dark"?{main:cp[400],light:cp[300],dark:cp[700]}:{main:"#ed6c02",light:cp[500],dark:cp[900]}}function GM(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...l}=e,i=e.primary||dre(t),o=e.secondary||fre(t),a=e.error||pre(t),s=e.info||hre(t),u=e.success||mre(t),c=e.warning||gre(t);function d(g){return Fj(g,MA.text.primary)>=n?MA.text.primary:cre.text.primary}const f=({color:g,name:b,mainShade:v=500,lightShade:m=300,darkShade:y=700})=>{if(g={...g},!g.main&&g[v]&&(g.main=g[v]),!g.hasOwnProperty("main"))throw new Error(Ho(11,b?` (${b})`:"",v));if(typeof g.main!="string")throw new Error(Ho(12,b?` (${b})`:"",JSON.stringify(g.main)));return PA(g,"light",m,r),PA(g,"dark",y,r),g.contrastText||(g.contrastText=d(g.main)),g};let p;return t==="light"?p=Kj():t==="dark"&&(p=Zj()),oo({common:{...ym},mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:s,name:"info"}),success:f({color:u,name:"success"}),grey:cv,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r,...p},l)}function vre(e){const t={};return Object.entries(e).forEach(r=>{const[l,i]=r;typeof i=="object"&&(t[l]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function Qj(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function yre(e){return Math.round(e*1e5)/1e5}const OA={textTransform:"uppercase"},AA='"Roboto", "Helvetica", "Arial", sans-serif';function YM(e,t){const{fontFamily:n=AA,fontSize:r=14,fontWeightLight:l=300,fontWeightRegular:i=400,fontWeightMedium:o=500,fontWeightBold:a=700,htmlFontSize:s=16,allVariants:u,pxToRem:c,...d}=typeof t=="function"?t(e):t,f=r/14,p=c||(b=>`${b/s*f}rem`),h=(b,v,m,y,x)=>({fontFamily:n,fontWeight:b,fontSize:p(v),lineHeight:m,...n===AA?{letterSpacing:`${yre(y/v)}em`}:{},...x,...u}),g={h1:h(l,96,1.167,-1.5),h2:h(l,60,1.2,-.5),h3:h(i,48,1.167,0),h4:h(i,34,1.235,.25),h5:h(i,24,1.334,0),h6:h(o,20,1.6,.15),subtitle1:h(i,16,1.75,.15),subtitle2:h(o,14,1.57,.1),body1:h(i,16,1.5,.15),body2:h(i,14,1.43,.15),button:h(o,14,1.75,.4,OA),caption:h(i,12,1.66,.4),overline:h(i,12,2.66,1,OA),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return oo({htmlFontSize:s,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:l,fontWeightRegular:i,fontWeightMedium:o,fontWeightBold:a,...g},d,{clone:!1})}const bre=.2,xre=.14,wre=.12;function ea(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${bre})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${xre})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${wre})`].join(",")}const _re=["none",ea(0,2,1,-1,0,1,1,0,0,1,3,0),ea(0,3,1,-2,0,2,2,0,0,1,5,0),ea(0,3,3,-2,0,3,4,0,0,1,8,0),ea(0,2,4,-1,0,4,5,0,0,1,10,0),ea(0,3,5,-1,0,5,8,0,0,1,14,0),ea(0,3,5,-1,0,6,10,0,0,1,18,0),ea(0,4,5,-2,0,7,10,1,0,2,16,1),ea(0,5,5,-3,0,8,10,1,0,3,14,2),ea(0,5,6,-3,0,9,12,1,0,3,16,2),ea(0,6,6,-3,0,10,14,1,0,4,18,3),ea(0,6,7,-4,0,11,15,1,0,4,20,3),ea(0,7,8,-4,0,12,17,2,0,5,22,4),ea(0,7,8,-4,0,13,19,2,0,5,24,4),ea(0,7,9,-4,0,14,21,2,0,5,26,4),ea(0,8,9,-5,0,15,22,2,0,6,28,5),ea(0,8,10,-5,0,16,24,2,0,6,30,5),ea(0,8,11,-5,0,17,26,2,0,6,32,5),ea(0,9,11,-5,0,18,28,2,0,7,34,6),ea(0,9,12,-6,0,19,29,2,0,7,36,6),ea(0,10,13,-6,0,20,31,3,0,8,38,7),ea(0,10,13,-6,0,21,33,3,0,8,40,7),ea(0,10,14,-6,0,22,35,3,0,8,42,7),ea(0,11,14,-7,0,23,36,3,0,9,44,8),ea(0,11,15,-7,0,24,38,3,0,9,46,8)],Jj={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},XM={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function DA(e){return`${Math.round(e)}ms`}function Tre(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function ez(e){const t={...Jj,...e.easing},n={...XM,...e.duration};return{getAutoHeightDuration:Tre,create:(l=["all"],i={})=>{const{duration:o=n.standard,easing:a=t.easeInOut,delay:s=0,...u}=i;return(Array.isArray(l)?l:[l]).map(c=>`${c} ${typeof o=="string"?o:DA(o)} ${a} ${typeof s=="string"?s:DA(s)}`).join(",")},...e,easing:t,duration:n}}const Sre={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function kre(e){return Tl(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function tz(e={}){const t={...e};function n(r){const l=Object.entries(r);for(let i=0;ioo(p,h),f),f.unstable_sxConfig={...ig,...u==null?void 0:u.unstable_sxConfig},f.unstable_sx=function(h){return au({sx:h,theme:this})},f.toRuntimeSource=tz,f}function Cre(...e){return my(...e)}function gy(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const Mre=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=gy(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function nz(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function rz(e){return e==="dark"?Mre:[]}function az(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...l}=e,i=GM(t);return{palette:i,opacity:{...nz(i.mode),...n},overlays:r||rz(i.mode),...l}}function oz(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const iz=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Pre=e=>(t,n)=>{const r=e.rootSelector||":root",l=e.colorSchemeSelector;let i=l;if(l==="class"&&(i=".%s"),l==="data"&&(i="[data-%s]"),l!=null&&l.startsWith("data-")&&!l.includes("%s")&&(i=`[${l}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const o={};return iz(e.cssVarPrefix).forEach(a=>{o[a]=n[a],delete n[a]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:o}}:i?{[i.replace("%s",t)]:o,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...o}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function Ore(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Zt(e,t,n){!e[t]&&n&&(e[t]=n)}function Ch(e){return!e||!e.startsWith("hsl")?e:qM(e)}function Hl(e,t){`${t}Channel`in e||(e[`${t}Channel`]=kh(Ch(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). +To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Are(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const gl=e=>{try{return e()}catch{}},Dre=(e="mui")=>are(e);function Kw(e,t,n,r){if(!t)return;t=t===!0?{}:t;const l=r==="dark"?"dark":"light";if(!n){e[r]=az({...t,palette:{mode:l,...t==null?void 0:t.palette}});return}const{palette:i,...o}=my({...n,palette:{mode:l,...t==null?void 0:t.palette}});return e[r]={...t,palette:i,opacity:{...nz(l),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||rz(l)},o}function KM(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:l=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:o=oz,colorSchemeSelector:a=n.light&&n.dark?"media":void 0,rootSelector:s=":root",...u}=e,c=Object.keys(n)[0],d=r||(n.light&&c!=="light"?"light":c),f=Dre(i),{[d]:p,light:h,dark:g,...b}=n,v={...b};let m=p;if((d==="dark"&&!("dark"in n)||d==="light"&&!("light"in n))&&(m=!0),!m)throw new Error(Ho(21,d));const y=Kw(v,m,u,d);h&&!v.light&&Kw(v,h,void 0,"light"),g&&!v.dark&&Kw(v,g,void 0,"dark");let x={defaultColorScheme:d,...y,cssVarPrefix:i,colorSchemeSelector:a,rootSelector:s,getCssVar:f,colorSchemes:v,font:{...vre(y.typography),...y.font},spacing:Are(u.spacing)};Object.keys(x.colorSchemes).forEach(C=>{const T=x.colorSchemes[C].palette,M=O=>{const D=O.split("-"),P=D[1],E=D[2];return f(O,T[P][E])};if(T.mode==="light"&&(Zt(T.common,"background","#fff"),Zt(T.common,"onBackground","#000")),T.mode==="dark"&&(Zt(T.common,"background","#000"),Zt(T.common,"onBackground","#fff")),Ore(T,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),T.mode==="light"){Zt(T.Alert,"errorColor",Nr(T.error.light,.6)),Zt(T.Alert,"infoColor",Nr(T.info.light,.6)),Zt(T.Alert,"successColor",Nr(T.success.light,.6)),Zt(T.Alert,"warningColor",Nr(T.warning.light,.6)),Zt(T.Alert,"errorFilledBg",M("palette-error-main")),Zt(T.Alert,"infoFilledBg",M("palette-info-main")),Zt(T.Alert,"successFilledBg",M("palette-success-main")),Zt(T.Alert,"warningFilledBg",M("palette-warning-main")),Zt(T.Alert,"errorFilledColor",gl(()=>T.getContrastText(T.error.main))),Zt(T.Alert,"infoFilledColor",gl(()=>T.getContrastText(T.info.main))),Zt(T.Alert,"successFilledColor",gl(()=>T.getContrastText(T.success.main))),Zt(T.Alert,"warningFilledColor",gl(()=>T.getContrastText(T.warning.main))),Zt(T.Alert,"errorStandardBg",Fr(T.error.light,.9)),Zt(T.Alert,"infoStandardBg",Fr(T.info.light,.9)),Zt(T.Alert,"successStandardBg",Fr(T.success.light,.9)),Zt(T.Alert,"warningStandardBg",Fr(T.warning.light,.9)),Zt(T.Alert,"errorIconColor",M("palette-error-main")),Zt(T.Alert,"infoIconColor",M("palette-info-main")),Zt(T.Alert,"successIconColor",M("palette-success-main")),Zt(T.Alert,"warningIconColor",M("palette-warning-main")),Zt(T.AppBar,"defaultBg",M("palette-grey-100")),Zt(T.Avatar,"defaultBg",M("palette-grey-400")),Zt(T.Button,"inheritContainedBg",M("palette-grey-300")),Zt(T.Button,"inheritContainedHoverBg",M("palette-grey-A100")),Zt(T.Chip,"defaultBorder",M("palette-grey-400")),Zt(T.Chip,"defaultAvatarColor",M("palette-grey-700")),Zt(T.Chip,"defaultIconColor",M("palette-grey-700")),Zt(T.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Zt(T.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Zt(T.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Zt(T.LinearProgress,"primaryBg",Fr(T.primary.main,.62)),Zt(T.LinearProgress,"secondaryBg",Fr(T.secondary.main,.62)),Zt(T.LinearProgress,"errorBg",Fr(T.error.main,.62)),Zt(T.LinearProgress,"infoBg",Fr(T.info.main,.62)),Zt(T.LinearProgress,"successBg",Fr(T.success.main,.62)),Zt(T.LinearProgress,"warningBg",Fr(T.warning.main,.62)),Zt(T.Skeleton,"bg",`rgba(${M("palette-text-primaryChannel")} / 0.11)`),Zt(T.Slider,"primaryTrack",Fr(T.primary.main,.62)),Zt(T.Slider,"secondaryTrack",Fr(T.secondary.main,.62)),Zt(T.Slider,"errorTrack",Fr(T.error.main,.62)),Zt(T.Slider,"infoTrack",Fr(T.info.main,.62)),Zt(T.Slider,"successTrack",Fr(T.success.main,.62)),Zt(T.Slider,"warningTrack",Fr(T.warning.main,.62));const O=g0(T.background.default,.8);Zt(T.SnackbarContent,"bg",O),Zt(T.SnackbarContent,"color",gl(()=>T.getContrastText(O))),Zt(T.SpeedDialAction,"fabHoverBg",g0(T.background.paper,.15)),Zt(T.StepConnector,"border",M("palette-grey-400")),Zt(T.StepContent,"border",M("palette-grey-400")),Zt(T.Switch,"defaultColor",M("palette-common-white")),Zt(T.Switch,"defaultDisabledColor",M("palette-grey-100")),Zt(T.Switch,"primaryDisabledColor",Fr(T.primary.main,.62)),Zt(T.Switch,"secondaryDisabledColor",Fr(T.secondary.main,.62)),Zt(T.Switch,"errorDisabledColor",Fr(T.error.main,.62)),Zt(T.Switch,"infoDisabledColor",Fr(T.info.main,.62)),Zt(T.Switch,"successDisabledColor",Fr(T.success.main,.62)),Zt(T.Switch,"warningDisabledColor",Fr(T.warning.main,.62)),Zt(T.TableCell,"border",Fr(m0(T.divider,1),.88)),Zt(T.Tooltip,"bg",m0(T.grey[700],.92))}if(T.mode==="dark"){Zt(T.Alert,"errorColor",Fr(T.error.light,.6)),Zt(T.Alert,"infoColor",Fr(T.info.light,.6)),Zt(T.Alert,"successColor",Fr(T.success.light,.6)),Zt(T.Alert,"warningColor",Fr(T.warning.light,.6)),Zt(T.Alert,"errorFilledBg",M("palette-error-dark")),Zt(T.Alert,"infoFilledBg",M("palette-info-dark")),Zt(T.Alert,"successFilledBg",M("palette-success-dark")),Zt(T.Alert,"warningFilledBg",M("palette-warning-dark")),Zt(T.Alert,"errorFilledColor",gl(()=>T.getContrastText(T.error.dark))),Zt(T.Alert,"infoFilledColor",gl(()=>T.getContrastText(T.info.dark))),Zt(T.Alert,"successFilledColor",gl(()=>T.getContrastText(T.success.dark))),Zt(T.Alert,"warningFilledColor",gl(()=>T.getContrastText(T.warning.dark))),Zt(T.Alert,"errorStandardBg",Nr(T.error.light,.9)),Zt(T.Alert,"infoStandardBg",Nr(T.info.light,.9)),Zt(T.Alert,"successStandardBg",Nr(T.success.light,.9)),Zt(T.Alert,"warningStandardBg",Nr(T.warning.light,.9)),Zt(T.Alert,"errorIconColor",M("palette-error-main")),Zt(T.Alert,"infoIconColor",M("palette-info-main")),Zt(T.Alert,"successIconColor",M("palette-success-main")),Zt(T.Alert,"warningIconColor",M("palette-warning-main")),Zt(T.AppBar,"defaultBg",M("palette-grey-900")),Zt(T.AppBar,"darkBg",M("palette-background-paper")),Zt(T.AppBar,"darkColor",M("palette-text-primary")),Zt(T.Avatar,"defaultBg",M("palette-grey-600")),Zt(T.Button,"inheritContainedBg",M("palette-grey-800")),Zt(T.Button,"inheritContainedHoverBg",M("palette-grey-700")),Zt(T.Chip,"defaultBorder",M("palette-grey-700")),Zt(T.Chip,"defaultAvatarColor",M("palette-grey-300")),Zt(T.Chip,"defaultIconColor",M("palette-grey-300")),Zt(T.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Zt(T.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Zt(T.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Zt(T.LinearProgress,"primaryBg",Nr(T.primary.main,.5)),Zt(T.LinearProgress,"secondaryBg",Nr(T.secondary.main,.5)),Zt(T.LinearProgress,"errorBg",Nr(T.error.main,.5)),Zt(T.LinearProgress,"infoBg",Nr(T.info.main,.5)),Zt(T.LinearProgress,"successBg",Nr(T.success.main,.5)),Zt(T.LinearProgress,"warningBg",Nr(T.warning.main,.5)),Zt(T.Skeleton,"bg",`rgba(${M("palette-text-primaryChannel")} / 0.13)`),Zt(T.Slider,"primaryTrack",Nr(T.primary.main,.5)),Zt(T.Slider,"secondaryTrack",Nr(T.secondary.main,.5)),Zt(T.Slider,"errorTrack",Nr(T.error.main,.5)),Zt(T.Slider,"infoTrack",Nr(T.info.main,.5)),Zt(T.Slider,"successTrack",Nr(T.success.main,.5)),Zt(T.Slider,"warningTrack",Nr(T.warning.main,.5));const O=g0(T.background.default,.98);Zt(T.SnackbarContent,"bg",O),Zt(T.SnackbarContent,"color",gl(()=>T.getContrastText(O))),Zt(T.SpeedDialAction,"fabHoverBg",g0(T.background.paper,.15)),Zt(T.StepConnector,"border",M("palette-grey-600")),Zt(T.StepContent,"border",M("palette-grey-600")),Zt(T.Switch,"defaultColor",M("palette-grey-300")),Zt(T.Switch,"defaultDisabledColor",M("palette-grey-600")),Zt(T.Switch,"primaryDisabledColor",Nr(T.primary.main,.55)),Zt(T.Switch,"secondaryDisabledColor",Nr(T.secondary.main,.55)),Zt(T.Switch,"errorDisabledColor",Nr(T.error.main,.55)),Zt(T.Switch,"infoDisabledColor",Nr(T.info.main,.55)),Zt(T.Switch,"successDisabledColor",Nr(T.success.main,.55)),Zt(T.Switch,"warningDisabledColor",Nr(T.warning.main,.55)),Zt(T.TableCell,"border",Nr(m0(T.divider,1),.68)),Zt(T.Tooltip,"bg",m0(T.grey[700],.92))}Hl(T.background,"default"),Hl(T.background,"paper"),Hl(T.common,"background"),Hl(T.common,"onBackground"),Hl(T,"divider"),Object.keys(T).forEach(O=>{const D=T[O];D&&typeof D=="object"&&(D.main&&Zt(T[O],"mainChannel",kh(Ch(D.main))),D.light&&Zt(T[O],"lightChannel",kh(Ch(D.light))),D.dark&&Zt(T[O],"darkChannel",kh(Ch(D.dark))),D.contrastText&&Zt(T[O],"contrastTextChannel",kh(Ch(D.contrastText))),O==="text"&&(Hl(T[O],"primary"),Hl(T[O],"secondary")),O==="action"&&(D.active&&Hl(T[O],"active"),D.selected&&Hl(T[O],"selected")))})}),x=t.reduce((C,T)=>oo(C,T),x);const _={prefix:i,disableCssColorScheme:l,shouldSkipGeneratingVar:o,getSelector:Pre(x)},{vars:w,generateThemeVars:S,generateStyleSheets:k}=lre(x,_);return x.vars=w,Object.entries(x.colorSchemes[x.defaultColorScheme]).forEach(([C,T])=>{x[C]=T}),x.generateThemeVars=S,x.generateStyleSheets=k,x.generateSpacing=function(){return LM(u.spacing,RM(this))},x.getColorSchemeSelector=sre(a),x.spacing=x.generateSpacing(),x.shouldSkipGeneratingVar=o,x.unstable_sxConfig={...ig,...u==null?void 0:u.unstable_sxConfig},x.unstable_sx=function(T){return au({sx:T,theme:this})},x.toRuntimeSource=tz,x}function EA(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:GM({...n===!0?{}:n.palette,mode:t})})}function Sc(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:l=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...o}=e,a=i||"light",s=l==null?void 0:l[a],u={...l,...n?{[a]:{...typeof s!="boolean"&&s,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return my(e,...t);let c=n;"palette"in e||u[a]&&(u[a]!==!0?c=u[a].palette:a==="dark"&&(c={mode:"dark"}));const d=my({...e,palette:c},...t);return d.defaultColorScheme=a,d.colorSchemes=u,d.palette.mode==="light"&&(d.colorSchemes.light={...u.light!==!0&&u.light,palette:d.palette},EA(d,"dark",u.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:d.palette},EA(d,"light",u.light)),d}return!n&&!("light"in u)&&a==="light"&&(u.light=!0),KM({...o,colorSchemes:u,defaultColorScheme:a,...typeof r!="boolean"&&r},...t)}function Ere(e,...t){return Sc(oo({unstable_strictMode:!0},e),...t)}let RA=!1;function Rre(e){return RA||(console.warn(["MUI: createStyles from @mui/material/styles is deprecated.","Please use @mui/styles/createStyles"].join(` +`)),RA=!0),e}function LA(e){return String(parseFloat(e)).length===String(e).length}function ZM(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function Xl(e){return parseFloat(e)}function Lre(e){return(t,n)=>{const r=ZM(t);if(r===n)return t;let l=Xl(t);r!=="px"&&(r==="em"||r==="rem")&&(l=Xl(t)*Xl(e));let i=l;if(n!=="px")if(n==="em")i=l/Xl(e);else if(n==="rem")i=l/Xl(e);else return t;return parseFloat(i.toFixed(5))+n}}function Ire({size:e,grid:t}){const n=e-e%t,r=n+t;return e-n{let u=t+a*s;i!==null&&(u=i(u)),o[`@media (min-width:${s}px)`]={[e]:`${Math.round(u*1e4)/1e4}${r}`}}),o}function Fre(e,t={}){const{breakpoints:n=["sm","md","lg"],disableAlign:r=!1,factor:l=2,variants:i=["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]}=t,o={...e};o.typography={...o.typography};const a=o.typography,s=Lre(a.htmlFontSize),u=n.map(c=>o.breakpoints.values[c]);return i.forEach(c=>{const d=a[c];if(!d)return;const f=parseFloat(s(d.fontSize,"rem"));if(f<=1)return;const p=f,h=1+(p-1)/l;let{lineHeight:g}=d;if(!LA(g)&&!r)throw new Error(Ho(6));LA(g)||(g=parseFloat(s(g,"rem"))/parseFloat(f));let b=null;r||(b=v=>Ire({size:v,grid:$re({pixels:4,lineHeight:g,htmlFontSize:a.htmlFontSize})})),a[c]={...d,...Nre({cssProperty:"fontSize",min:h,max:p,unit:"rem",breakpoints:u,transform:b})}}),o}const bb=Sc();function pi(){const e=lg(bb);return e[Di]||e}function Tr({props:e,name:t}){return Mne({props:e,name:t,defaultTheme:bb,themeId:Di})}function lz(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Go=e=>lz(e)&&e!=="classes",Dt=_ne({themeId:Di,defaultTheme:bb,rootShouldForwardProp:Go});function IA({theme:e,...t}){const n=Di in e?e[Di]:void 0;return Se.jsx(Yj,{...t,themeId:n?Di:void 0,theme:n||e})}const v0={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:sz,useColorScheme:QM,getInitColorSchemeScript:jre}=rre({themeId:Di,theme:()=>Sc({cssVariables:!0}),colorSchemeStorageKey:v0.colorSchemeStorageKey,modeStorageKey:v0.modeStorageKey,defaultColorScheme:{light:v0.defaultLightColorScheme,dark:v0.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:YM(e.palette,e.typography)};return t.unstable_sx=function(r){return au({sx:r,theme:this})},t}});function zre(e){return Se.jsx(sz,{...e})}let $A=!1;const Bre=e=>($A||(console.warn(["MUI: The getInitColorSchemeScript function has been deprecated.","","You should use `import InitColorSchemeScript from '@mui/material/InitColorSchemeScript'`","and replace the function call with `` instead."].join(` +`)),$A=!0),jre(e)),uz=sz;function cz({theme:e,...t}){return typeof e=="function"?Se.jsx(IA,{theme:e,...t}):"colorSchemes"in(Di in e?e[Di]:e)?Se.jsx(uz,{theme:e,...t}):Se.jsx(IA,{theme:e,...t})}function Wre(){throw new Error(Ho(14))}function qre(){throw new Error(Ho(15))}function Ure(){throw new Error(Ho(16))}let NA=!1;function Hre(...e){return NA||(console.warn(["MUI: The `experimental_extendTheme` has been stabilized.","","You should use `import { extendTheme } from '@mui/material/styles'`"].join(` +`)),NA=!0),KM(...e)}function Vre(){throw new Error(Ho(19))}const Gre=Object.freeze(Object.defineProperty({__proto__:null,CssVarsProvider:uz,Experimental_CssVarsProvider:zre,StyledEngineProvider:dte,THEME_ID:Di,ThemeProvider:cz,adaptV4Theme:ure,alpha:ar,createColorScheme:az,createMuiTheme:Cre,createStyles:Rre,createTheme:Sc,createTransitions:ez,css:hs,darken:Il,decomposeColor:Ll,duration:XM,easing:Jj,emphasize:jj,experimentalStyled:Dt,experimental_extendTheme:Hre,experimental_sx:Vre,extendTheme:KM,getContrastRatio:Fj,getInitColorSchemeScript:Bre,getLuminance:fy,getOverlayAlpha:gy,hexToRgb:Nj,hslToRgb:qM,keyframes:il,lighten:$l,makeStyles:Wre,private_createMixins:Qj,private_createTypography:YM,private_excludeVariablesFromRoot:iz,recomposeColor:sg,responsiveFontSizes:Fre,rgbToHex:Lne,shouldSkipGeneratingVar:oz,styled:Dt,unstable_createBreakpoints:AM,unstable_createMuiStrictModeTheme:Ere,unstable_getUnit:ZM,unstable_toUnitless:Xl,useColorScheme:QM,useTheme:pi,useThemeProps:Tr,withStyles:qre,withTheme:Ure},Symbol.toStringTag,{value:"Module"}));function Yre(e){return Se.jsx(fne,{...e,defaultTheme:bb,themeId:Di})}function JM(e){return function(n){return Se.jsx(Yre,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function Xre(){return FM}const Fn=Zne;function jn(e){return Kne(e)}function Kre(e){return gn("MuiSvgIcon",e)}fn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Zre=e=>{const{color:t,fontSize:n,classes:r}=e,l={root:["root",t!=="inherit"&&`color${Qt(t)}`,`fontSize${Qt(n)}`]};return vn(l,Kre,r)},Qre=Dt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Qt(n.color)}`],t[`fontSize${Qt(n.fontSize)}`]]}})(Fn(({theme:e})=>{var t,n,r,l,i,o,a,s,u,c,d,f,p,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(l=(t=e.transitions)==null?void 0:t.create)==null?void 0:l.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:g=>!g.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((o=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:o.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((s=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:s.call(a,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((c=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,g])=>g&&g.main).map(([g])=>{var b,v;return{props:{color:g},style:{color:(v=(b=(e.vars??e).palette)==null?void 0:b[g])==null?void 0:v.main}}}),{props:{color:"action"},style:{color:(f=(d=(e.vars??e).palette)==null?void 0:d.action)==null?void 0:f.active}},{props:{color:"disabled"},style:{color:(h=(p=(e.vars??e).palette)==null?void 0:p.action)==null?void 0:h.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),vy=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiSvgIcon"}),{children:l,className:i,color:o="inherit",component:a="svg",fontSize:s="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:f="0 0 24 24",...p}=r,h=ge.isValidElement(l)&&l.type==="svg",g={...r,color:o,component:a,fontSize:s,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:f,hasSvgAsChild:h},b={};c||(b.viewBox=f);const v=Zre(g);return Se.jsxs(Qre,{as:a,className:ln(v.root,i),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...b,...p,...h&&l.props,ownerState:g,children:[h?l.props.children:l,d?Se.jsx("title",{children:d}):null]})});vy&&(vy.muiName="SvgIcon");function kr(e,t){function n(r,l){return Se.jsx(vy,{"data-testid":`${t}Icon`,ref:l,...r,children:e})}return n.muiName=vy.muiName,ge.memo(ge.forwardRef(n))}const Jre={configure:e=>{jM.configure(e)}},eae=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Qt,createChainedFunction:yS,createSvgIcon:kr,debounce:ug,deprecatedPropType:Ine,isMuiElement:hv,ownerDocument:qa,ownerWindow:Ni,requirePropFactory:$ne,setRef:py,unstable_ClassNameGenerator:Jre,unstable_memoTheme:Fn,unstable_useEnhancedEffect:Vo,unstable_useId:ls,unsupportedProp:jne,useControlled:ou,useEventCallback:ho,useForkRef:Er},Symbol.toStringTag,{value:"Module"}));function tr(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,i;for(i=0;i=0)&&(n[l]=e[l]);return n}function yy(e,t){return yy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,l){return r.__proto__=l,r},yy(e,t)}function xb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,yy(e,t)}function tae(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function nae(e,t){e.classList?e.classList.add(t):tae(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function FA(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function rae(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=FA(e.className,t):e.setAttribute("class",FA(e.className&&e.className.baseVal||"",t))}const jA={disabled:!1},by=Ke.createContext(null);var dz=function(t){return t.scrollTop},Mh="unmounted",Ou="exited",Au="entering",od="entered",bS="exiting",qi=function(e){xb(t,e);function t(r,l){var i;i=e.call(this,r,l)||this;var o=l,a=o&&!o.isMounting?r.enter:r.appear,s;return i.appearStatus=null,r.in?a?(s=Ou,i.appearStatus=Au):s=od:r.unmountOnExit||r.mountOnEnter?s=Mh:s=Ou,i.state={status:s},i.nextCallback=null,i}t.getDerivedStateFromProps=function(l,i){var o=l.in;return o&&i.status===Mh?{status:Ou}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(l){var i=null;if(l!==this.props){var o=this.state.status;this.props.in?o!==Au&&o!==od&&(i=Au):(o===Au||o===od)&&(i=bS)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var l=this.props.timeout,i,o,a;return i=o=a=l,l!=null&&typeof l!="number"&&(i=l.exit,o=l.enter,a=l.appear!==void 0?l.appear:o),{exit:i,enter:o,appear:a}},n.updateStatus=function(l,i){if(l===void 0&&(l=!1),i!==null)if(this.cancelNextCallback(),i===Au){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Sh.findDOMNode(this);o&&dz(o)}this.performEnter(l)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ou&&this.setState({status:Mh})},n.performEnter=function(l){var i=this,o=this.props.enter,a=this.context?this.context.isMounting:l,s=this.props.nodeRef?[a]:[Sh.findDOMNode(this),a],u=s[0],c=s[1],d=this.getTimeouts(),f=a?d.appear:d.enter;if(!l&&!o||jA.disabled){this.safeSetState({status:od},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Au},function(){i.props.onEntering(u,c),i.onTransitionEnd(f,function(){i.safeSetState({status:od},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var l=this,i=this.props.exit,o=this.getTimeouts(),a=this.props.nodeRef?void 0:Sh.findDOMNode(this);if(!i||jA.disabled){this.safeSetState({status:Ou},function(){l.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:bS},function(){l.props.onExiting(a),l.onTransitionEnd(o.exit,function(){l.safeSetState({status:Ou},function(){l.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(l,i){i=this.setNextCallback(i),this.setState(l,i)},n.setNextCallback=function(l){var i=this,o=!0;return this.nextCallback=function(a){o&&(o=!1,i.nextCallback=null,l(a))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(l,i){this.setNextCallback(i);var o=this.props.nodeRef?this.props.nodeRef.current:Sh.findDOMNode(this),a=l==null&&!this.props.addEndListener;if(!o||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],u=s[0],c=s[1];this.props.addEndListener(u,c)}l!=null&&setTimeout(this.nextCallback,l)},n.render=function(){var l=this.state.status;if(l===Mh)return null;var i=this.props,o=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=tr(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ke.createElement(by.Provider,{value:null},typeof o=="function"?o(l,a):Ke.cloneElement(Ke.Children.only(o),a))},t}(Ke.Component);qi.contextType=by;qi.propTypes={};function Xc(){}qi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Xc,onEntering:Xc,onEntered:Xc,onExit:Xc,onExiting:Xc,onExited:Xc};qi.UNMOUNTED=Mh;qi.EXITED=Ou;qi.ENTERING=Au;qi.ENTERED=od;qi.EXITING=bS;var aae=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return nae(t,r)})},Zw=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return rae(t,r)})},e5=function(e){xb(t,e);function t(){for(var r,l=arguments.length,i=new Array(l),o=0;oe.scrollTop;function Gd(e,t){const{timeout:n,easing:r,style:l={}}=e;return{duration:l.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:l.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:l.transitionDelay}}function pz(e){return gn("MuiCollapse",e)}const cae=fn("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]),dae=cae,fae=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return vn(r,pz,n)},pae=Dt("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(Fn(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),hae=Dt("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),mae=Dt("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),xS=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiCollapse"}),{addEndListener:l,children:i,className:o,collapsedSize:a="0px",component:s,easing:u,in:c,onEnter:d,onEntered:f,onEntering:p,onExit:h,onExited:g,onExiting:b,orientation:v="vertical",style:m,timeout:y=XM.standard,TransitionComponent:x=qi,..._}=r,w={...r,orientation:v,collapsedSize:a},S=fae(w),k=pi(),C=Wu(),T=ge.useRef(null),M=ge.useRef(),O=typeof a=="number"?`${a}px`:a,D=v==="horizontal",P=D?"width":"height",E=ge.useRef(null),I=Er(n,E),A=L=>W=>{if(L){const H=E.current;W===void 0?L(H):L(H,W)}},F=()=>T.current?T.current[D?"clientWidth":"clientHeight"]:0,j=A((L,W)=>{T.current&&D&&(T.current.style.position="absolute"),L.style[P]=O,d&&d(L,W)}),B=A((L,W)=>{const H=F();T.current&&D&&(T.current.style.position="");const{duration:G,easing:te}=Gd({style:m,timeout:y,easing:u},{mode:"enter"});if(y==="auto"){const ee=k.transitions.getAutoHeightDuration(H);L.style.transitionDuration=`${ee}ms`,M.current=ee}else L.style.transitionDuration=typeof G=="string"?G:`${G}ms`;L.style[P]=`${H}px`,L.style.transitionTimingFunction=te,p&&p(L,W)}),z=A((L,W)=>{L.style[P]="auto",f&&f(L,W)}),N=A(L=>{L.style[P]=`${F()}px`,h&&h(L)}),R=A(g),q=A(L=>{const W=F(),{duration:H,easing:G}=Gd({style:m,timeout:y,easing:u},{mode:"exit"});if(y==="auto"){const te=k.transitions.getAutoHeightDuration(W);L.style.transitionDuration=`${te}ms`,M.current=te}else L.style.transitionDuration=typeof H=="string"?H:`${H}ms`;L.style[P]=O,L.style.transitionTimingFunction=G,b&&b(L)}),Y=L=>{y==="auto"&&C.start(M.current||0,L),l&&l(E.current,L)};return Se.jsx(x,{in:c,onEnter:j,onEntered:z,onEntering:B,onExit:N,onExited:R,onExiting:q,addEndListener:Y,nodeRef:E,timeout:y==="auto"?null:y,..._,children:(L,W)=>Se.jsx(pae,{as:s,className:ln(S.root,o,{entered:S.entered,exited:!c&&O==="0px"&&S.hidden}[L]),style:{[D?"minWidth":"minHeight"]:O,...m},ref:I,...W,ownerState:{...w,state:L},children:Se.jsx(hae,{ownerState:{...w,state:L},className:S.wrapper,ref:T,children:Se.jsx(mae,{ownerState:{...w,state:L},className:S.wrapperInner,children:i})})})})});xS&&(xS.muiSupportAuto=!0);const wb=xS,gae=Object.freeze(Object.defineProperty({__proto__:null,collapseClasses:dae,default:wb,getCollapseUtilityClass:pz},Symbol.toStringTag,{value:"Module"}));function hz(e){return gn("MuiPaper",e)}const vae=fn("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]),yae=vae,bae=e=>{const{square:t,elevation:n,variant:r,classes:l}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return vn(i,hz,l)},xae=Dt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Fn(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),wae=ge.forwardRef(function(t,n){var p;const r=jn({props:t,name:"MuiPaper"}),l=pi(),{className:i,component:o="div",elevation:a=1,square:s=!1,variant:u="elevation",...c}=r,d={...r,component:o,elevation:a,square:s,variant:u},f=bae(d);return Se.jsx(xae,{as:o,ownerState:d,className:ln(f.root,i),ref:n,...c,style:{...u==="elevation"&&{"--Paper-shadow":(l.vars||l).shadows[a],...l.vars&&{"--Paper-overlay":(p=l.vars.overlays)==null?void 0:p[a]},...!l.vars&&l.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${ar("#fff",gy(a))}, ${ar("#fff",gy(a))})`}},...c.style}})}),pu=wae,_ae=Object.freeze(Object.defineProperty({__proto__:null,default:pu,getPaperUtilityClass:hz,paperClasses:yae},Symbol.toStringTag,{value:"Module"}));function Io(e,t){const{className:n,elementType:r,ownerState:l,externalForwardedProps:i,getSlotOwnerState:o,internalForwardedProps:a,...s}=t,{component:u,slots:c={[e]:void 0},slotProps:d={[e]:void 0},...f}=i,p=c[e]||r,h=Uj(d[e],l),{props:{component:g,...b},internalRef:v}=qj({className:n,...s,externalForwardedProps:e==="root"?f:void 0,externalSlotProps:h}),m=Er(v,h==null?void 0:h.ref,t.ref),y=o?o(b):{},x={...l,...y},_=e==="root"?g||u:g,w=wd(p,{...e==="root"&&!u&&!c[e]&&a,...e!=="root"&&!c[e]&&a,...b,..._&&{as:_},ref:m},x);return Object.keys(y).forEach(S=>{delete w[S]}),[p,w]}class xy{constructor(){Cs(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new xy}static use(){const t=zj(xy.create).current,[n,r]=ge.useState(!1);return t.shouldMount=n,t.setShouldMount=r,ge.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=Sae(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function Tae(){return xy.use()}function Sae(){let e,t;const n=new Promise((r,l)=>{e=r,t=l});return n.resolve=e,n.reject=t,n}function kae(e){const{className:t,classes:n,pulsate:r=!1,rippleX:l,rippleY:i,rippleSize:o,in:a,onExited:s,timeout:u}=e,[c,d]=ge.useState(!1),f=ln(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+i,left:-(o/2)+l},h=ln(n.child,c&&n.childLeaving,r&&n.childPulsate);return!a&&!c&&d(!0),ge.useEffect(()=>{if(!a&&s!=null){const g=setTimeout(s,u);return()=>{clearTimeout(g)}}},[s,a,u]),Se.jsx("span",{className:f,style:p,children:Se.jsx("span",{className:h})})}const xi=fn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),wS=550,Cae=80,Mae=il` 0% { transform: scale(0); opacity: 0.1; @@ -86,7 +106,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann transform: scale(1); opacity: 0.3; } -`)),Wre=Hi(HA||(HA=Q1` +`,Pae=il` 0% { opacity: 1; } @@ -94,7 +114,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann 100% { opacity: 0; } -`)),qre=Hi(VA||(VA=Q1` +`,Oae=il` 0% { transform: scale(1); } @@ -106,23 +126,23 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann 100% { transform: scale(1); } -`)),Ure=Et("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Hre=Et(Fre,{name:"MuiTouchRipple",slot:"Ripple"})(GA||(GA=Q1` +`,Aae=Dt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Dae=Dt(kae,{name:"MuiTouchRipple",slot:"Ripple"})` opacity: 0; position: absolute; - &.${0} { + &.${xi.rippleVisible} { opacity: 0.3; transform: scale(1); - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; + animation-name: ${Mae}; + animation-duration: ${wS}ms; + animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; } - &.${0} { - animation-duration: ${0}ms; + &.${xi.ripplePulsate} { + animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms; } - & .${0} { + & .${xi.child} { opacity: 1; display: block; width: 100%; @@ -131,26 +151,26 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann background-color: currentColor; } - & .${0} { + & .${xi.childLeaving} { opacity: 0; - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; + animation-name: ${Pae}; + animation-duration: ${wS}ms; + animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; } - & .${0} { + & .${xi.childPulsate} { position: absolute; /* @noflip */ left: 0px; top: 0; - animation-name: ${0}; + animation-name: ${Oae}; animation-duration: 2500ms; - animation-timing-function: ${0}; + animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; animation-iteration-count: infinite; animation-delay: 200ms; } -`),ci.rippleVisible,Bre,H3,({theme:e})=>e.transitions.easing.easeInOut,ci.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ci.child,ci.childLeaving,Wre,H3,({theme:e})=>e.transitions.easing.easeInOut,ci.childPulsate,qre,({theme:e})=>e.transitions.easing.easeInOut),Vre=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTouchRipple"}),{center:l=!1,classes:i={},className:o}=r,a=Kt(r,jre),[s,u]=ge.useState([]),c=ge.useRef(0),d=ge.useRef(null);ge.useEffect(()=>{d.current&&(d.current(),d.current=null)},[s]);const f=ge.useRef(!1),p=ge.useRef(0),m=ge.useRef(null),g=ge.useRef(null);ge.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const b=ge.useCallback(w=>{const{pulsate:_,rippleX:x,rippleY:T,rippleSize:k,cb:S}=w;u(C=>[...C,ke.jsx(Hre,{classes:{ripple:on(i.ripple,ci.ripple),rippleVisible:on(i.rippleVisible,ci.rippleVisible),ripplePulsate:on(i.ripplePulsate,ci.ripplePulsate),child:on(i.child,ci.child),childLeaving:on(i.childLeaving,ci.childLeaving),childPulsate:on(i.childPulsate,ci.childPulsate)},timeout:H3,pulsate:_,rippleX:x,rippleY:T,rippleSize:k},c.current)]),c.current+=1,d.current=S},[i]),v=ge.useCallback((w={},_={},x=()=>{})=>{const{pulsate:T=!1,center:k=l||_.pulsate,fakeElement:S=!1}=_;if((w==null?void 0:w.type)==="mousedown"&&f.current){f.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(f.current=!0);const C=S?null:g.current,M=C?C.getBoundingClientRect():{width:0,height:0,left:0,top:0};let O,D,P;if(k||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)O=Math.round(M.width/2),D=Math.round(M.height/2);else{const{clientX:E,clientY:I}=w.touches&&w.touches.length>0?w.touches[0]:w;O=Math.round(E-M.left),D=Math.round(I-M.top)}if(k)P=Math.sqrt((2*M.width**2+M.height**2)/3),P%2===0&&(P+=1);else{const E=Math.max(Math.abs((C?C.clientWidth:0)-O),O)*2+2,I=Math.max(Math.abs((C?C.clientHeight:0)-D),D)*2+2;P=Math.sqrt(E**2+I**2)}w!=null&&w.touches?m.current===null&&(m.current=()=>{b({pulsate:T,rippleX:O,rippleY:D,rippleSize:P,cb:x})},p.current=setTimeout(()=>{m.current&&(m.current(),m.current=null)},zre)):b({pulsate:T,rippleX:O,rippleY:D,rippleSize:P,cb:x})},[l,b]),h=ge.useCallback(()=>{v({},{pulsate:!0})},[v]),y=ge.useCallback((w,_)=>{if(clearTimeout(p.current),(w==null?void 0:w.type)==="touchend"&&m.current){m.current(),m.current=null,p.current=setTimeout(()=>{y(w,_)});return}m.current=null,u(x=>x.length>0?x.slice(1):x),d.current=_},[]);return ge.useImperativeHandle(n,()=>({pulsate:h,start:v,stop:y}),[h,v,y]),ke.jsx(Ure,Ie({className:on(ci.root,i.root,o),ref:g},a,{children:ke.jsx(Km,{component:null,exit:!0,children:s})}))});function Gre(e){return yn("MuiButtonBase",e)}const Yre=hn("MuiButtonBase",["root","disabled","focusVisible"]),Xre=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Kre=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:l}=e,o=vn({root:["root",t&&"disabled",n&&"focusVisible"]},Gre,l);return n&&r&&(o.root+=` ${r}`),o},Zre=Et("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Yre.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Tl=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiButtonBase"}),{action:l,centerRipple:i=!1,children:o,className:a,component:s="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:f=!1,LinkComponent:p="a",onBlur:m,onClick:g,onContextMenu:b,onDragLeave:v,onFocus:h,onFocusVisible:y,onKeyDown:w,onKeyUp:_,onMouseDown:x,onMouseLeave:T,onMouseUp:k,onTouchEnd:S,onTouchMove:C,onTouchStart:M,tabIndex:O=0,TouchRippleProps:D,touchRippleRef:P,type:E}=r,I=Kt(r,Xre),A=ge.useRef(null),F=ge.useRef(null),j=Lr(F,P),{isFocusVisibleRef:z,onFocus:B,onBlur:N,ref:R}=FC(),[q,Y]=ge.useState(!1);u&&q&&Y(!1),ge.useImperativeHandle(l,()=>({focusVisible:()=>{Y(!0),A.current.focus()}}),[]);const[L,W]=ge.useState(!1);ge.useEffect(()=>{W(!0)},[]);const U=L&&!c&&!u;ge.useEffect(()=>{q&&f&&!c&&L&&F.current.pulsate()},[c,f,q,L]);function V(ne,de,_e=d){return yo(ue=>(de&&de(ue),!_e&&F.current&&F.current[ne](ue),!0))}const te=V("start",x),ee=V("stop",b),H=V("stop",v),Z=V("stop",k),G=V("stop",ne=>{q&&ne.preventDefault(),T&&T(ne)}),X=V("start",M),Q=V("stop",S),re=V("stop",C),ae=V("stop",ne=>{N(ne),z.current===!1&&Y(!1),m&&m(ne)},!1),ie=yo(ne=>{A.current||(A.current=ne.currentTarget),B(ne),z.current===!0&&(Y(!0),y&&y(ne)),h&&h(ne)}),se=()=>{const ne=A.current;return s&&s!=="button"&&!(ne.tagName==="A"&&ne.href)},he=ge.useRef(!1),Se=yo(ne=>{f&&!he.current&&q&&F.current&&ne.key===" "&&(he.current=!0,F.current.stop(ne,()=>{F.current.start(ne)})),ne.target===ne.currentTarget&&se()&&ne.key===" "&&ne.preventDefault(),w&&w(ne),ne.target===ne.currentTarget&&se()&&ne.key==="Enter"&&!u&&(ne.preventDefault(),g&&g(ne))}),Oe=yo(ne=>{f&&ne.key===" "&&F.current&&q&&!ne.defaultPrevented&&(he.current=!1,F.current.stop(ne,()=>{F.current.pulsate(ne)})),_&&_(ne),g&&ne.target===ne.currentTarget&&se()&&ne.key===" "&&!ne.defaultPrevented&&g(ne)});let Pe=s;Pe==="button"&&(I.href||I.to)&&(Pe=p);const Me={};Pe==="button"?(Me.type=E===void 0?"button":E,Me.disabled=u):(!I.href&&!I.to&&(Me.role="button"),u&&(Me["aria-disabled"]=u));const ce=Lr(n,R,A),we=Ie({},r,{centerRipple:i,component:s,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:f,tabIndex:O,focusVisible:q}),K=Kre(we);return ke.jsxs(Zre,Ie({as:Pe,className:on(K.root,a),ownerState:we,onBlur:ae,onClick:g,onContextMenu:ee,onFocus:ie,onKeyDown:Se,onKeyUp:Oe,onMouseDown:te,onMouseLeave:G,onMouseUp:Z,onDragLeave:H,onTouchEnd:Q,onTouchMove:re,onTouchStart:X,ref:ce,tabIndex:u?-1:O,type:E},Me,I,{children:[o,U?ke.jsx(Vre,Ie({ref:j,center:i},D)):null]}))});function Qre(e){return yn("MuiAlert",e)}const YA=hn("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function Pj(e){return yn("MuiIconButton",e)}const Jre=hn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Oj=Jre,eae=["edge","children","className","color","disabled","disableFocusRipple","size"],tae=e=>{const{classes:t,disabled:n,color:r,edge:l,size:i}=e,o={root:["root",n&&"disabled",r!=="default"&&`color${Jt(r)}`,l&&`edge${Jt(l)}`,`size${Jt(i)}`]};return vn(o,Pj,t)},nae=Et(Tl,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Jt(n.color)}`],n.edge&&t[`edge${Jt(n.edge)}`],t[`size${Jt(n.size)}`]]}})(({theme:e,ownerState:t})=>Ie({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:rr(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return Ie({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&Ie({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":Ie({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rr(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Oj.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),rae=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiIconButton"}),{edge:l=!1,children:i,className:o,color:a="default",disabled:s=!1,disableFocusRipple:u=!1,size:c="medium"}=r,d=Kt(r,eae),f=Ie({},r,{edge:l,color:a,disabled:s,disableFocusRipple:u,size:c}),p=tae(f);return ke.jsx(nae,Ie({className:on(p.root,o),centerRipple:!0,focusRipple:!u,disabled:s,ref:n,ownerState:f},d,{children:i}))}),mi=rae,aae=Object.freeze(Object.defineProperty({__proto__:null,default:mi,getIconButtonUtilityClass:Pj,iconButtonClasses:Oj},Symbol.toStringTag,{value:"Module"})),oae=Qr(ke.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),iae=Qr(ke.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),lae=Qr(ke.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),sae=Qr(ke.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),uae=Qr(ke.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),cae=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],dae=e=>{const{variant:t,color:n,severity:r,classes:l}=e,i={root:["root",`${t}${Jt(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return vn(i,Qre,l)},fae=Et(nu,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Jt(n.color||n.severity)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?wl:_l,r=e.palette.mode==="light"?_l:wl,l=t.color||t.severity;return Ie({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},l&&t.variant==="standard"&&{color:e.vars?e.vars.palette.Alert[`${l}Color`]:n(e.palette[l].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${l}StandardBg`]:r(e.palette[l].light,.9),[`& .${YA.icon}`]:e.vars?{color:e.vars.palette.Alert[`${l}IconColor`]}:{color:e.palette[l].main}},l&&t.variant==="outlined"&&{color:e.vars?e.vars.palette.Alert[`${l}Color`]:n(e.palette[l].light,.6),border:`1px solid ${(e.vars||e).palette[l].light}`,[`& .${YA.icon}`]:e.vars?{color:e.vars.palette.Alert[`${l}IconColor`]}:{color:e.palette[l].main}},l&&t.variant==="filled"&&Ie({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${l}FilledColor`],backgroundColor:e.vars.palette.Alert[`${l}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[l].dark:e.palette[l].main,color:e.palette.getContrastText(e.palette[l].main)}))}),pae=Et("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),hae=Et("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),XA=Et("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),KA={success:ke.jsx(oae,{fontSize:"inherit"}),warning:ke.jsx(iae,{fontSize:"inherit"}),error:ke.jsx(lae,{fontSize:"inherit"}),info:ke.jsx(sae,{fontSize:"inherit"})},cM=ge.forwardRef(function(t,n){var r,l,i,o,a,s;const u=pn({props:t,name:"MuiAlert"}),{action:c,children:d,className:f,closeText:p="Close",color:m,components:g={},componentsProps:b={},icon:v,iconMapping:h=KA,onClose:y,role:w="alert",severity:_="success",slotProps:x={},slots:T={},variant:k="standard"}=u,S=Kt(u,cae),C=Ie({},u,{color:m,severity:_,variant:k}),M=dae(C),O=(r=(l=T.closeButton)!=null?l:g.CloseButton)!=null?r:mi,D=(i=(o=T.closeIcon)!=null?o:g.CloseIcon)!=null?i:uae,P=(a=x.closeButton)!=null?a:b.closeButton,E=(s=x.closeIcon)!=null?s:b.closeIcon;return ke.jsxs(fae,Ie({role:w,elevation:0,ownerState:C,className:on(M.root,f),ref:n},S,{children:[v!==!1?ke.jsx(pae,{ownerState:C,className:M.icon,children:v||h[_]||KA[_]}):null,ke.jsx(hae,{ownerState:C,className:M.message,children:d}),c!=null?ke.jsx(XA,{ownerState:C,className:M.action,children:c}):null,c==null&&y?ke.jsx(XA,{ownerState:C,className:M.action,children:ke.jsx(O,Ie({size:"small","aria-label":p,title:p,color:"inherit",onClick:y},P,{children:ke.jsx(D,Ie({fontSize:"small"},E))}))}):null]}))});function Aj(e){return yn("MuiTypography",e)}const mae=hn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),gae=mae,vae=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],yae=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:l,variant:i,classes:o}=e,a={root:["root",i,e.align!=="inherit"&&`align${Jt(t)}`,n&&"gutterBottom",r&&"noWrap",l&&"paragraph"]};return vn(a,Aj,o)},bae=Et("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Jt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>Ie({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),ZA={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},xae={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},wae=e=>xae[e]||e,_ae=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTypography"}),l=wae(r.color),i=Y1(Ie({},r,{color:l})),{align:o="inherit",className:a,component:s,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:f="body1",variantMapping:p=ZA}=i,m=Kt(i,vae),g=Ie({},i,{align:o,color:l,className:a,component:s,gutterBottom:u,noWrap:c,paragraph:d,variant:f,variantMapping:p}),b=s||(d?"p":p[f]||ZA[f])||"span",v=yae(g);return ke.jsx(bae,Ie({as:b,ref:n,ownerState:g,className:on(v.root,a)},m))}),dr=_ae,Tae=Object.freeze(Object.defineProperty({__proto__:null,default:dr,getTypographyUtilityClass:Aj,typographyClasses:gae},Symbol.toStringTag,{value:"Module"}));function kae(e){return yn("MuiAlertTitle",e)}hn("MuiAlertTitle",["root"]);const Sae=["className"],Cae=e=>{const{classes:t}=e;return vn({root:["root"]},kae,t)},Mae=Et(dr,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2})),dM=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiAlertTitle"}),{className:l}=r,i=Kt(r,Sae),o=r,a=Cae(o);return ke.jsx(Mae,Ie({gutterBottom:!0,component:"div",ownerState:o,ref:n,className:on(a.root,l)},i))});function lm(e){return typeof e=="string"}function fh(e,t,n){return e===void 0||lm(e)?t:Ie({},t,{ownerState:Ie({},t.ownerState,n)})}const Pae={disableDefaultClasses:!1},Oae=ge.createContext(Pae);function Aae(e){const{disableDefaultClasses:t}=ge.useContext(Oae);return n=>t?"":e(n)}function Dj(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Dae(e,t,n){return typeof e=="function"?e(t,n):e}function QA(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Eae(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:l,className:i}=e;if(!t){const p=on(l==null?void 0:l.className,r==null?void 0:r.className,i,n==null?void 0:n.className),m=Ie({},n==null?void 0:n.style,l==null?void 0:l.style,r==null?void 0:r.style),g=Ie({},n,l,r);return p.length>0&&(g.className=p),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:void 0}}const o=Dj(Ie({},l,r)),a=QA(r),s=QA(l),u=t(o),c=on(u==null?void 0:u.className,n==null?void 0:n.className,i,l==null?void 0:l.className,r==null?void 0:r.className),d=Ie({},u==null?void 0:u.style,n==null?void 0:n.style,l==null?void 0:l.style,r==null?void 0:r.style),f=Ie({},u,n,s,a);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}const Rae=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ui(e){var t;const{elementType:n,externalSlotProps:r,ownerState:l,skipResolvingSlotProps:i=!1}=e,o=Kt(e,Rae),a=i?{}:Dae(r,l),{props:s,internalRef:u}=Eae(Ie({},o,{externalSlotProps:a})),c=Lr(u,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return fh(n,Ie({},s,{ref:c}),l)}const Lae=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Iae(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function $ae(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Nae(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||$ae(e))}function Fae(e){const t=[],n=[];return Array.from(e.querySelectorAll(Lae)).forEach((r,l)=>{const i=Iae(r);i===-1||!Nae(r)||(i===0?t.push(r):n.push({documentOrder:l,tabIndex:i,node:r}))}),n.sort((r,l)=>r.tabIndex===l.tabIndex?r.documentOrder-l.documentOrder:r.tabIndex-l.tabIndex).map(r=>r.node).concat(t)}function jae(){return!0}function Ej(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:l=!1,getTabbable:i=Fae,isEnabled:o=jae,open:a}=e,s=ge.useRef(!1),u=ge.useRef(null),c=ge.useRef(null),d=ge.useRef(null),f=ge.useRef(null),p=ge.useRef(!1),m=ge.useRef(null),g=Lr(t.ref,m),b=ge.useRef(null);ge.useEffect(()=>{!a||!m.current||(p.current=!n)},[n,a]),ge.useEffect(()=>{if(!a||!m.current)return;const y=Aa(m.current);return m.current.contains(y.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),p.current&&m.current.focus()),()=>{l||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}},[a]),ge.useEffect(()=>{if(!a||!m.current)return;const y=Aa(m.current),w=T=>{b.current=T,!(r||!o()||T.key!=="Tab")&&y.activeElement===m.current&&T.shiftKey&&(s.current=!0,c.current&&c.current.focus())},_=()=>{const T=m.current;if(T===null)return;if(!y.hasFocus()||!o()||s.current){s.current=!1;return}if(T.contains(y.activeElement)||r&&y.activeElement!==u.current&&y.activeElement!==c.current)return;if(y.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let k=[];if((y.activeElement===u.current||y.activeElement===c.current)&&(k=i(m.current)),k.length>0){var S,C;const M=!!((S=b.current)!=null&&S.shiftKey&&((C=b.current)==null?void 0:C.key)==="Tab"),O=k[0],D=k[k.length-1];typeof O!="string"&&typeof D!="string"&&(M?D.focus():O.focus())}else T.focus()};y.addEventListener("focusin",_),y.addEventListener("keydown",w,!0);const x=setInterval(()=>{y.activeElement&&y.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval(x),y.removeEventListener("focusin",_),y.removeEventListener("keydown",w,!0)}},[n,r,l,o,a,i]);const v=y=>{d.current===null&&(d.current=y.relatedTarget),p.current=!0,f.current=y.target;const w=t.props.onFocus;w&&w(y)},h=y=>{d.current===null&&(d.current=y.relatedTarget),p.current=!0};return ke.jsxs(ge.Fragment,{children:[ke.jsx("div",{tabIndex:a?0:-1,onFocus:h,ref:u,"data-testid":"sentinelStart"}),ge.cloneElement(t,{ref:g,onFocus:v}),ke.jsx("div",{tabIndex:a?0:-1,onFocus:h,ref:c,"data-testid":"sentinelEnd"})]})}var Lo="top",ki="bottom",Si="right",Io="left",fM="auto",Zm=[Lo,ki,Si,Io],$d="start",sm="end",zae="clippingParents",Rj="viewport",Kf="popper",Bae="reference",JA=Zm.reduce(function(e,t){return e.concat([t+"-"+$d,t+"-"+sm])},[]),Lj=[].concat(Zm,[fM]).reduce(function(e,t){return e.concat([t,t+"-"+$d,t+"-"+sm])},[]),Wae="beforeRead",qae="read",Uae="afterRead",Hae="beforeMain",Vae="main",Gae="afterMain",Yae="beforeWrite",Xae="write",Kae="afterWrite",Zae=[Wae,qae,Uae,Hae,Vae,Gae,Yae,Xae,Kae];function kl(e){return e?(e.nodeName||"").toLowerCase():null}function ti(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Yu(e){var t=ti(e).Element;return e instanceof t||e instanceof Element}function xi(e){var t=ti(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function pM(e){if(typeof ShadowRoot>"u")return!1;var t=ti(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Qae(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},l=t.attributes[n]||{},i=t.elements[n];!xi(i)||!kl(i)||(Object.assign(i.style,r),Object.keys(l).forEach(function(o){var a=l[o];a===!1?i.removeAttribute(o):i.setAttribute(o,a===!0?"":a)}))})}function Jae(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var l=t.elements[r],i=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=o.reduce(function(s,u){return s[u]="",s},{});!xi(l)||!kl(l)||(Object.assign(l.style,a),Object.keys(i).forEach(function(s){l.removeAttribute(s)}))})}}const eoe={name:"applyStyles",enabled:!0,phase:"write",fn:Qae,effect:Jae,requires:["computeStyles"]};function vl(e){return e.split("-")[0]}var Bu=Math.max,ty=Math.min,Nd=Math.round;function V3(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Ij(){return!/^((?!chrome|android).)*safari/i.test(V3())}function Fd(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),l=1,i=1;t&&xi(e)&&(l=e.offsetWidth>0&&Nd(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Nd(r.height)/e.offsetHeight||1);var o=Yu(e)?ti(e):window,a=o.visualViewport,s=!Ij()&&n,u=(r.left+(s&&a?a.offsetLeft:0))/l,c=(r.top+(s&&a?a.offsetTop:0))/i,d=r.width/l,f=r.height/i;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function hM(e){var t=Fd(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function $j(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&pM(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ts(e){return ti(e).getComputedStyle(e)}function toe(e){return["table","td","th"].indexOf(kl(e))>=0}function ru(e){return((Yu(e)?e.ownerDocument:e.document)||window.document).documentElement}function J1(e){return kl(e)==="html"?e:e.assignedSlot||e.parentNode||(pM(e)?e.host:null)||ru(e)}function e8(e){return!xi(e)||ts(e).position==="fixed"?null:e.offsetParent}function noe(e){var t=/firefox/i.test(V3()),n=/Trident/i.test(V3());if(n&&xi(e)){var r=ts(e);if(r.position==="fixed")return null}var l=J1(e);for(pM(l)&&(l=l.host);xi(l)&&["html","body"].indexOf(kl(l))<0;){var i=ts(l);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return l;l=l.parentNode}return null}function Qm(e){for(var t=ti(e),n=e8(e);n&&toe(n)&&ts(n).position==="static";)n=e8(n);return n&&(kl(n)==="html"||kl(n)==="body"&&ts(n).position==="static")?t:n||noe(e)||t}function mM(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Oh(e,t,n){return Bu(e,ty(t,n))}function roe(e,t,n){var r=Oh(e,t,n);return r>n?n:r}function Nj(){return{top:0,right:0,bottom:0,left:0}}function Fj(e){return Object.assign({},Nj(),e)}function jj(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var aoe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Fj(typeof t!="number"?t:jj(t,Zm))};function ooe(e){var t,n=e.state,r=e.name,l=e.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,a=vl(n.placement),s=mM(a),u=[Io,Si].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!o)){var d=aoe(l.padding,n),f=hM(i),p=s==="y"?Lo:Io,m=s==="y"?ki:Si,g=n.rects.reference[c]+n.rects.reference[s]-o[s]-n.rects.popper[c],b=o[s]-n.rects.reference[s],v=Qm(i),h=v?s==="y"?v.clientHeight||0:v.clientWidth||0:0,y=g/2-b/2,w=d[p],_=h-f[c]-d[m],x=h/2-f[c]/2+y,T=Oh(w,x,_),k=s;n.modifiersData[r]=(t={},t[k]=T,t.centerOffset=T-x,t)}}function ioe(e){var t=e.state,n=e.options,r=n.element,l=r===void 0?"[data-popper-arrow]":r;l!=null&&(typeof l=="string"&&(l=t.elements.popper.querySelector(l),!l)||$j(t.elements.popper,l)&&(t.elements.arrow=l))}const loe={name:"arrow",enabled:!0,phase:"main",fn:ooe,effect:ioe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function jd(e){return e.split("-")[1]}var soe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function uoe(e,t){var n=e.x,r=e.y,l=t.devicePixelRatio||1;return{x:Nd(n*l)/l||0,y:Nd(r*l)/l||0}}function t8(e){var t,n=e.popper,r=e.popperRect,l=e.placement,i=e.variation,o=e.offsets,a=e.position,s=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,g=m===void 0?0:m,b=typeof c=="function"?c({x:p,y:g}):{x:p,y:g};p=b.x,g=b.y;var v=o.hasOwnProperty("x"),h=o.hasOwnProperty("y"),y=Io,w=Lo,_=window;if(u){var x=Qm(n),T="clientHeight",k="clientWidth";if(x===ti(n)&&(x=ru(n),ts(x).position!=="static"&&a==="absolute"&&(T="scrollHeight",k="scrollWidth")),x=x,l===Lo||(l===Io||l===Si)&&i===sm){w=ki;var S=d&&x===_&&_.visualViewport?_.visualViewport.height:x[T];g-=S-r.height,g*=s?1:-1}if(l===Io||(l===Lo||l===ki)&&i===sm){y=Si;var C=d&&x===_&&_.visualViewport?_.visualViewport.width:x[k];p-=C-r.width,p*=s?1:-1}}var M=Object.assign({position:a},u&&soe),O=c===!0?uoe({x:p,y:g},ti(n)):{x:p,y:g};if(p=O.x,g=O.y,s){var D;return Object.assign({},M,(D={},D[w]=h?"0":"",D[y]=v?"0":"",D.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",D))}return Object.assign({},M,(t={},t[w]=h?g+"px":"",t[y]=v?p+"px":"",t.transform="",t))}function coe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,l=r===void 0?!0:r,i=n.adaptive,o=i===void 0?!0:i,a=n.roundOffsets,s=a===void 0?!0:a,u={placement:vl(t.placement),variation:jd(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:l,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,t8(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,t8(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const doe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:coe,data:{}};var n0={passive:!0};function foe(e){var t=e.state,n=e.instance,r=e.options,l=r.scroll,i=l===void 0?!0:l,o=r.resize,a=o===void 0?!0:o,s=ti(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,n0)}),a&&s.addEventListener("resize",n.update,n0),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,n0)}),a&&s.removeEventListener("resize",n.update,n0)}}const poe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:foe,data:{}};var hoe={left:"right",right:"left",bottom:"top",top:"bottom"};function J0(e){return e.replace(/left|right|bottom|top/g,function(t){return hoe[t]})}var moe={start:"end",end:"start"};function n8(e){return e.replace(/start|end/g,function(t){return moe[t]})}function gM(e){var t=ti(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function vM(e){return Fd(ru(e)).left+gM(e).scrollLeft}function goe(e,t){var n=ti(e),r=ru(e),l=n.visualViewport,i=r.clientWidth,o=r.clientHeight,a=0,s=0;if(l){i=l.width,o=l.height;var u=Ij();(u||!u&&t==="fixed")&&(a=l.offsetLeft,s=l.offsetTop)}return{width:i,height:o,x:a+vM(e),y:s}}function voe(e){var t,n=ru(e),r=gM(e),l=(t=e.ownerDocument)==null?void 0:t.body,i=Bu(n.scrollWidth,n.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),o=Bu(n.scrollHeight,n.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),a=-r.scrollLeft+vM(e),s=-r.scrollTop;return ts(l||n).direction==="rtl"&&(a+=Bu(n.clientWidth,l?l.clientWidth:0)-i),{width:i,height:o,x:a,y:s}}function yM(e){var t=ts(e),n=t.overflow,r=t.overflowX,l=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+l+r)}function zj(e){return["html","body","#document"].indexOf(kl(e))>=0?e.ownerDocument.body:xi(e)&&yM(e)?e:zj(J1(e))}function Ah(e,t){var n;t===void 0&&(t=[]);var r=zj(e),l=r===((n=e.ownerDocument)==null?void 0:n.body),i=ti(r),o=l?[i].concat(i.visualViewport||[],yM(r)?r:[]):r,a=t.concat(o);return l?a:a.concat(Ah(J1(o)))}function G3(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function yoe(e,t){var n=Fd(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function r8(e,t,n){return t===Rj?G3(goe(e,n)):Yu(t)?yoe(t,n):G3(voe(ru(e)))}function boe(e){var t=Ah(J1(e)),n=["absolute","fixed"].indexOf(ts(e).position)>=0,r=n&&xi(e)?Qm(e):e;return Yu(r)?t.filter(function(l){return Yu(l)&&$j(l,r)&&kl(l)!=="body"}):[]}function xoe(e,t,n,r){var l=t==="clippingParents"?boe(e):[].concat(t),i=[].concat(l,[n]),o=i[0],a=i.reduce(function(s,u){var c=r8(e,u,r);return s.top=Bu(c.top,s.top),s.right=ty(c.right,s.right),s.bottom=ty(c.bottom,s.bottom),s.left=Bu(c.left,s.left),s},r8(e,o,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Bj(e){var t=e.reference,n=e.element,r=e.placement,l=r?vl(r):null,i=r?jd(r):null,o=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,s;switch(l){case Lo:s={x:o,y:t.y-n.height};break;case ki:s={x:o,y:t.y+t.height};break;case Si:s={x:t.x+t.width,y:a};break;case Io:s={x:t.x-n.width,y:a};break;default:s={x:t.x,y:t.y}}var u=l?mM(l):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case $d:s[u]=s[u]-(t[c]/2-n[c]/2);break;case sm:s[u]=s[u]+(t[c]/2-n[c]/2);break}}return s}function um(e,t){t===void 0&&(t={});var n=t,r=n.placement,l=r===void 0?e.placement:r,i=n.strategy,o=i===void 0?e.strategy:i,a=n.boundary,s=a===void 0?zae:a,u=n.rootBoundary,c=u===void 0?Rj:u,d=n.elementContext,f=d===void 0?Kf:d,p=n.altBoundary,m=p===void 0?!1:p,g=n.padding,b=g===void 0?0:g,v=Fj(typeof b!="number"?b:jj(b,Zm)),h=f===Kf?Bae:Kf,y=e.rects.popper,w=e.elements[m?h:f],_=xoe(Yu(w)?w:w.contextElement||ru(e.elements.popper),s,c,o),x=Fd(e.elements.reference),T=Bj({reference:x,element:y,strategy:"absolute",placement:l}),k=G3(Object.assign({},y,T)),S=f===Kf?k:x,C={top:_.top-S.top+v.top,bottom:S.bottom-_.bottom+v.bottom,left:_.left-S.left+v.left,right:S.right-_.right+v.right},M=e.modifiersData.offset;if(f===Kf&&M){var O=M[l];Object.keys(C).forEach(function(D){var P=[Si,ki].indexOf(D)>=0?1:-1,E=[Lo,ki].indexOf(D)>=0?"y":"x";C[D]+=O[E]*P})}return C}function woe(e,t){t===void 0&&(t={});var n=t,r=n.placement,l=n.boundary,i=n.rootBoundary,o=n.padding,a=n.flipVariations,s=n.allowedAutoPlacements,u=s===void 0?Lj:s,c=jd(r),d=c?a?JA:JA.filter(function(m){return jd(m)===c}):Zm,f=d.filter(function(m){return u.indexOf(m)>=0});f.length===0&&(f=d);var p=f.reduce(function(m,g){return m[g]=um(e,{placement:g,boundary:l,rootBoundary:i,padding:o})[vl(g)],m},{});return Object.keys(p).sort(function(m,g){return p[m]-p[g]})}function _oe(e){if(vl(e)===fM)return[];var t=J0(e);return[n8(e),t,n8(t)]}function Toe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var l=n.mainAxis,i=l===void 0?!0:l,o=n.altAxis,a=o===void 0?!0:o,s=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,g=n.allowedAutoPlacements,b=t.options.placement,v=vl(b),h=v===b,y=s||(h||!m?[J0(b)]:_oe(b)),w=[b].concat(y).reduce(function(q,Y){return q.concat(vl(Y)===fM?woe(t,{placement:Y,boundary:c,rootBoundary:d,padding:u,flipVariations:m,allowedAutoPlacements:g}):Y)},[]),_=t.rects.reference,x=t.rects.popper,T=new Map,k=!0,S=w[0],C=0;C=0,E=P?"width":"height",I=um(t,{placement:M,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),A=P?D?Si:Io:D?ki:Lo;_[E]>x[E]&&(A=J0(A));var F=J0(A),j=[];if(i&&j.push(I[O]<=0),a&&j.push(I[A]<=0,I[F]<=0),j.every(function(q){return q})){S=M,k=!1;break}T.set(M,j)}if(k)for(var z=m?3:1,B=function(Y){var L=w.find(function(W){var U=T.get(W);if(U)return U.slice(0,Y).every(function(V){return V})});if(L)return S=L,"break"},N=z;N>0;N--){var R=B(N);if(R==="break")break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}}const koe={name:"flip",enabled:!0,phase:"main",fn:Toe,requiresIfExists:["offset"],data:{_skip:!1}};function a8(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function o8(e){return[Lo,Si,ki,Io].some(function(t){return e[t]>=0})}function Soe(e){var t=e.state,n=e.name,r=t.rects.reference,l=t.rects.popper,i=t.modifiersData.preventOverflow,o=um(t,{elementContext:"reference"}),a=um(t,{altBoundary:!0}),s=a8(o,r),u=a8(a,l,i),c=o8(s),d=o8(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const Coe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Soe};function Moe(e,t,n){var r=vl(e),l=[Io,Lo].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=i[0],a=i[1];return o=o||0,a=(a||0)*l,[Io,Si].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function Poe(e){var t=e.state,n=e.options,r=e.name,l=n.offset,i=l===void 0?[0,0]:l,o=Lj.reduce(function(c,d){return c[d]=Moe(d,t.rects,i),c},{}),a=o[t.placement],s=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=o}const Ooe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Poe};function Aoe(e){var t=e.state,n=e.name;t.modifiersData[n]=Bj({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Doe={name:"popperOffsets",enabled:!0,phase:"read",fn:Aoe,data:{}};function Eoe(e){return e==="x"?"y":"x"}function Roe(e){var t=e.state,n=e.options,r=e.name,l=n.mainAxis,i=l===void 0?!0:l,o=n.altAxis,a=o===void 0?!1:o,s=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,m=n.tetherOffset,g=m===void 0?0:m,b=um(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:c}),v=vl(t.placement),h=jd(t.placement),y=!h,w=mM(v),_=Eoe(w),x=t.modifiersData.popperOffsets,T=t.rects.reference,k=t.rects.popper,S=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,C=typeof S=="number"?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(x){if(i){var D,P=w==="y"?Lo:Io,E=w==="y"?ki:Si,I=w==="y"?"height":"width",A=x[w],F=A+b[P],j=A-b[E],z=p?-k[I]/2:0,B=h===$d?T[I]:k[I],N=h===$d?-k[I]:-T[I],R=t.elements.arrow,q=p&&R?hM(R):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Nj(),L=Y[P],W=Y[E],U=Oh(0,T[I],q[I]),V=y?T[I]/2-z-U-L-C.mainAxis:B-U-L-C.mainAxis,te=y?-T[I]/2+z+U+W+C.mainAxis:N+U+W+C.mainAxis,ee=t.elements.arrow&&Qm(t.elements.arrow),H=ee?w==="y"?ee.clientTop||0:ee.clientLeft||0:0,Z=(D=M==null?void 0:M[w])!=null?D:0,G=A+V-Z-H,X=A+te-Z,Q=Oh(p?ty(F,G):F,A,p?Bu(j,X):j);x[w]=Q,O[w]=Q-A}if(a){var re,ae=w==="x"?Lo:Io,ie=w==="x"?ki:Si,se=x[_],he=_==="y"?"height":"width",Se=se+b[ae],Oe=se-b[ie],Pe=[Lo,Io].indexOf(v)!==-1,Me=(re=M==null?void 0:M[_])!=null?re:0,ce=Pe?Se:se-T[he]-k[he]-Me+C.altAxis,we=Pe?se+T[he]+k[he]-Me-C.altAxis:Oe,K=p&&Pe?roe(ce,se,we):Oh(p?ce:Se,se,p?we:Oe);x[_]=K,O[_]=K-se}t.modifiersData[r]=O}}const Loe={name:"preventOverflow",enabled:!0,phase:"main",fn:Roe,requiresIfExists:["offset"]};function Ioe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function $oe(e){return e===ti(e)||!xi(e)?gM(e):Ioe(e)}function Noe(e){var t=e.getBoundingClientRect(),n=Nd(t.width)/e.offsetWidth||1,r=Nd(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Foe(e,t,n){n===void 0&&(n=!1);var r=xi(t),l=xi(t)&&Noe(t),i=ru(t),o=Fd(e,l,n),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&((kl(t)!=="body"||yM(i))&&(a=$oe(t)),xi(t)?(s=Fd(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=vM(i))),{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}function joe(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function l(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(a){if(!n.has(a)){var s=t.get(a);s&&l(s)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||l(i)}),r}function zoe(e){var t=joe(e);return Zae.reduce(function(n,r){return n.concat(t.filter(function(l){return l.phase===r}))},[])}function Boe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Woe(e){var t=e.reduce(function(n,r){var l=n[r.name];return n[r.name]=l?Object.assign({},l,r,{options:Object.assign({},l.options,r.options),data:Object.assign({},l.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var i8={placement:"bottom",modifiers:[],strategy:"absolute"};function l8(){for(var e=arguments.length,t=new Array(e),n=0;n{i||a(Voe(l)||document.body)},[l,i]),no(()=>{if(o&&!i)return Vv(n,o),()=>{Vv(n,null)}},[n,o,i]),i){if(ge.isValidElement(r)){const u={ref:s};return ge.cloneElement(r,u)}return ke.jsx(ge.Fragment,{children:r})}return ke.jsx(ge.Fragment,{children:o&&cc.createPortal(r,o)})});function Goe(e){return yn("MuiPopper",e)}hn("MuiPopper",["root"]);const Yoe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Xoe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Koe(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Y3(e){return typeof e=="function"?e():e}function Zoe(e){return e.nodeType!==void 0}const Qoe=()=>vn({root:["root"]},Aae(Goe)),Joe={},eie=ge.forwardRef(function(t,n){var r;const{anchorEl:l,children:i,direction:o,disablePortal:a,modifiers:s,open:u,placement:c,popperOptions:d,popperRef:f,slotProps:p={},slots:m={},TransitionProps:g}=t,b=Kt(t,Yoe),v=ge.useRef(null),h=Lr(v,n),y=ge.useRef(null),w=Lr(y,f),_=ge.useRef(w);no(()=>{_.current=w},[w]),ge.useImperativeHandle(f,()=>y.current,[]);const x=Koe(c,o),[T,k]=ge.useState(x),[S,C]=ge.useState(Y3(l));ge.useEffect(()=>{y.current&&y.current.forceUpdate()}),ge.useEffect(()=>{l&&C(Y3(l))},[l]),no(()=>{if(!S||!u)return;const E=F=>{k(F.placement)};let I=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:F})=>{E(F)}}];s!=null&&(I=I.concat(s)),d&&d.modifiers!=null&&(I=I.concat(d.modifiers));const A=Hoe(S,v.current,Ie({placement:x},d,{modifiers:I}));return _.current(A),()=>{A.destroy(),_.current(null)}},[S,a,s,u,d,x]);const M={placement:T};g!==null&&(M.TransitionProps=g);const O=Qoe(),D=(r=m.root)!=null?r:"div",P=Ui({elementType:D,externalSlotProps:p.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:h},ownerState:t,className:O.root});return ke.jsx(D,Ie({},P,{children:typeof i=="function"?i(M):i}))}),tie=ge.forwardRef(function(t,n){const{anchorEl:r,children:l,container:i,direction:o="ltr",disablePortal:a=!1,keepMounted:s=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:f=Joe,popperRef:p,style:m,transition:g=!1,slotProps:b={},slots:v={}}=t,h=Kt(t,Xoe),[y,w]=ge.useState(!0),_=()=>{w(!1)},x=()=>{w(!0)};if(!s&&!c&&(!g||y))return null;let T;if(i)T=i;else if(r){const C=Y3(r);T=C&&Zoe(C)?Aa(C).body:Aa(null).body}const k=!c&&s&&(!g||y)?"none":void 0,S=g?{in:c,onEnter:_,onExited:x}:void 0;return ke.jsx(Wj,{disablePortal:a,container:T,children:ke.jsx(eie,Ie({anchorEl:r,direction:o,disablePortal:a,modifiers:u,ref:n,open:g?!y:c,placement:d,popperOptions:f,popperRef:p,slotProps:b,slots:v},h,{style:Ie({position:"fixed",top:0,left:0,display:k},m),TransitionProps:S,children:l}))})});function nie(e){const t=Aa(e);return t.body===e?bl(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Dh(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function s8(e){return parseInt(bl(e).getComputedStyle(e).paddingRight,10)||0}function rie(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function u8(e,t,n,r,l){const i=[t,n,...r];[].forEach.call(e.children,o=>{const a=i.indexOf(o)===-1,s=!rie(o);a&&s&&Dh(o,l)})}function bw(e,t){let n=-1;return e.some((r,l)=>t(r)?(n=l,!0):!1),n}function aie(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(nie(r)){const o=RF(Aa(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${s8(r)+o}px`;const a=Aa(r).querySelectorAll(".mui-fixed");[].forEach.call(a,s=>{n.push({value:s.style.paddingRight,property:"padding-right",el:s}),s.style.paddingRight=`${s8(s)+o}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Aa(r).body;else{const o=r.parentElement,a=bl(r);i=(o==null?void 0:o.nodeName)==="HTML"&&a.getComputedStyle(o).overflowY==="scroll"?o:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:o,property:a})=>{i?o.style.setProperty(a,i):o.style.removeProperty(a)})}}function oie(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class iie{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Dh(t.modalRef,!1);const l=oie(n);u8(n,t.mount,t.modalRef,l,!0);const i=bw(this.containers,o=>o.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:l}),r)}mount(t,n){const r=bw(this.containers,i=>i.modals.indexOf(t)!==-1),l=this.containers[r];l.restore||(l.restore=aie(l,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const l=bw(this.containers,o=>o.modals.indexOf(t)!==-1),i=this.containers[l];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Dh(t.modalRef,n),u8(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(l,1);else{const o=i.modals[i.modals.length-1];o.modalRef&&Dh(o.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function lie(e){return typeof e=="function"?e():e}function sie(e){return e?e.props.hasOwnProperty("in"):!1}const uie=new iie;function cie(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:l=uie,closeAfterTransition:i=!1,onTransitionEnter:o,onTransitionExited:a,children:s,onClose:u,open:c,rootRef:d}=e,f=ge.useRef({}),p=ge.useRef(null),m=ge.useRef(null),g=Lr(m,d),[b,v]=ge.useState(!c),h=sie(s);let y=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(y=!1);const w=()=>Aa(p.current),_=()=>(f.current.modalRef=m.current,f.current.mount=p.current,f.current),x=()=>{l.mount(_(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},T=yo(()=>{const I=lie(t)||w().body;l.add(_(),I),m.current&&x()}),k=ge.useCallback(()=>l.isTopModal(_()),[l]),S=yo(I=>{p.current=I,I&&(c&&k()?x():m.current&&Dh(m.current,y))}),C=ge.useCallback(()=>{l.remove(_(),y)},[y,l]);ge.useEffect(()=>()=>{C()},[C]),ge.useEffect(()=>{c?T():(!h||!i)&&C()},[c,C,h,i,T]);const M=I=>A=>{var F;(F=I.onKeyDown)==null||F.call(I,A),!(A.key!=="Escape"||!k())&&(n||(A.stopPropagation(),u&&u(A,"escapeKeyDown")))},O=I=>A=>{var F;(F=I.onClick)==null||F.call(I,A),A.target===A.currentTarget&&u&&u(A,"backdropClick")};return{getRootProps:(I={})=>{const A=Dj(e);delete A.onTransitionEnter,delete A.onTransitionExited;const F=Ie({},A,I);return Ie({role:"presentation"},F,{onKeyDown:M(F),ref:g})},getBackdropProps:(I={})=>{const A=I;return Ie({"aria-hidden":!0},A,{onClick:O(A),open:c})},getTransitionProps:()=>{const I=()=>{v(!1),o&&o()},A=()=>{v(!0),a&&a(),i&&C()};return{onEnter:N3(I,s==null?void 0:s.props.onEnter),onExited:N3(A,s==null?void 0:s.props.onExited)}},rootRef:g,portalRef:S,isTopModal:k,exited:b,hasTransition:h}}const die=["onChange","maxRows","minRows","style","value"];function r0(e){return parseInt(e,10)||0}const fie={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function c8(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const pie=ge.forwardRef(function(t,n){const{onChange:r,maxRows:l,minRows:i=1,style:o,value:a}=t,s=Kt(t,die),{current:u}=ge.useRef(a!=null),c=ge.useRef(null),d=Lr(n,c),f=ge.useRef(null),p=ge.useRef(0),[m,g]=ge.useState({outerHeightStyle:0}),b=ge.useCallback(()=>{const w=c.current,x=bl(w).getComputedStyle(w);if(x.width==="0px")return{outerHeightStyle:0};const T=f.current;T.style.width=x.width,T.value=w.value||t.placeholder||"x",T.value.slice(-1)===` -`&&(T.value+=" ");const k=x.boxSizing,S=r0(x.paddingBottom)+r0(x.paddingTop),C=r0(x.borderBottomWidth)+r0(x.borderTopWidth),M=T.scrollHeight;T.value="x";const O=T.scrollHeight;let D=M;i&&(D=Math.max(Number(i)*O,D)),l&&(D=Math.min(Number(l)*O,D)),D=Math.max(D,O);const P=D+(k==="border-box"?S+C:0),E=Math.abs(D-M)<=1;return{outerHeightStyle:P,overflow:E}},[l,i,t.placeholder]),v=(w,_)=>{const{outerHeightStyle:x,overflow:T}=_;return p.current<20&&(x>0&&Math.abs((w.outerHeightStyle||0)-x)>1||w.overflow!==T)?(p.current+=1,{overflow:T,outerHeightStyle:x}):w},h=ge.useCallback(()=>{const w=b();c8(w)||g(_=>v(_,w))},[b]);no(()=>{const w=()=>{const M=b();c8(M)||cc.flushSync(()=>{g(O=>v(O,M))})},_=()=>{p.current=0,w()};let x;const T=Um(_),k=c.current,S=bl(k);S.addEventListener("resize",T);let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver(_),C.observe(k)),()=>{T.clear(),cancelAnimationFrame(x),S.removeEventListener("resize",T),C&&C.disconnect()}},[b]),no(()=>{h()}),ge.useEffect(()=>{p.current=0},[a]);const y=w=>{p.current=0,u||h(),r&&r(w)};return ke.jsxs(ge.Fragment,{children:[ke.jsx("textarea",Ie({value:a,onChange:y,ref:d,rows:i,style:Ie({height:m.outerHeightStyle,overflow:m.overflow?"hidden":void 0},o)},s)),ke.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:Ie({},fie.shadow,o,{paddingTop:0,paddingBottom:0})})]})}),hie=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],mie=Et(tie,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),bM=ge.forwardRef(function(t,n){var r;const l=G1(),i=pn({props:t,name:"MuiPopper"}),{anchorEl:o,component:a,components:s,componentsProps:u,container:c,disablePortal:d,keepMounted:f,modifiers:p,open:m,placement:g,popperOptions:b,popperRef:v,transition:h,slots:y,slotProps:w}=i,_=Kt(i,hie),x=(r=y==null?void 0:y.root)!=null?r:s==null?void 0:s.Root,T=Ie({anchorEl:o,container:c,disablePortal:d,keepMounted:f,modifiers:p,open:m,placement:g,popperOptions:b,popperRef:v,transition:h},_);return ke.jsx(mie,Ie({as:a,direction:l==null?void 0:l.direction,slots:{root:x},slotProps:w??u},T,{ref:n}))}),gie=Qr(ke.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function qj(e){return yn("MuiChip",e)}const vie=hn("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),fr=vie,yie=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],bie=e=>{const{classes:t,disabled:n,size:r,color:l,iconColor:i,onDelete:o,clickable:a,variant:s}=e,u={root:["root",s,n&&"disabled",`size${Jt(r)}`,`color${Jt(l)}`,a&&"clickable",a&&`clickableColor${Jt(l)}`,o&&"deletable",o&&`deletableColor${Jt(l)}`,`${s}${Jt(l)}`],label:["label",`label${Jt(r)}`],avatar:["avatar",`avatar${Jt(r)}`,`avatarColor${Jt(l)}`],icon:["icon",`icon${Jt(r)}`,`iconColor${Jt(i)}`],deleteIcon:["deleteIcon",`deleteIcon${Jt(r)}`,`deleteIconColor${Jt(l)}`,`deleteIcon${Jt(s)}Color${Jt(l)}`]};return vn(u,qj,t)},xie=Et("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:l,clickable:i,onDelete:o,size:a,variant:s}=n;return[{[`& .${fr.avatar}`]:t.avatar},{[`& .${fr.avatar}`]:t[`avatar${Jt(a)}`]},{[`& .${fr.avatar}`]:t[`avatarColor${Jt(r)}`]},{[`& .${fr.icon}`]:t.icon},{[`& .${fr.icon}`]:t[`icon${Jt(a)}`]},{[`& .${fr.icon}`]:t[`iconColor${Jt(l)}`]},{[`& .${fr.deleteIcon}`]:t.deleteIcon},{[`& .${fr.deleteIcon}`]:t[`deleteIcon${Jt(a)}`]},{[`& .${fr.deleteIcon}`]:t[`deleteIconColor${Jt(r)}`]},{[`& .${fr.deleteIcon}`]:t[`deleteIcon${Jt(s)}Color${Jt(r)}`]},t.root,t[`size${Jt(a)}`],t[`color${Jt(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${Jt(r)})`],o&&t.deletable,o&&r!=="default"&&t[`deletableColor${Jt(r)}`],t[s],t[`${s}${Jt(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return Ie({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${fr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${fr.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${fr.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${fr.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${fr.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${fr.icon}`]:Ie({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&Ie({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${fr.deleteIcon}`]:Ie({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:rr(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:rr(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:rr(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${fr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rr(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${fr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>Ie({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rr(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${fr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rr(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${fr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>Ie({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${fr.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${fr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${fr.avatar}`]:{marginLeft:4},[`& .${fr.avatarSmall}`]:{marginLeft:2},[`& .${fr.icon}`]:{marginLeft:4},[`& .${fr.iconSmall}`]:{marginLeft:2},[`& .${fr.deleteIcon}`]:{marginRight:5},[`& .${fr.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:rr(e.palette[t.color].main,.7)}`,[`&.${fr.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rr(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${fr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:rr(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${fr.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:rr(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),wie=Et("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Jt(r)}`]]}})(({ownerState:e})=>Ie({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.size==="small"&&{paddingLeft:8,paddingRight:8}));function d8(e){return e.key==="Backspace"||e.key==="Delete"}const _ie=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiChip"}),{avatar:l,className:i,clickable:o,color:a="default",component:s,deleteIcon:u,disabled:c=!1,icon:d,label:f,onClick:p,onDelete:m,onKeyDown:g,onKeyUp:b,size:v="medium",variant:h="filled",tabIndex:y,skipFocusWhenDisabled:w=!1}=r,_=Kt(r,yie),x=ge.useRef(null),T=Lr(x,n),k=j=>{j.stopPropagation(),m&&m(j)},S=j=>{j.currentTarget===j.target&&d8(j)&&j.preventDefault(),g&&g(j)},C=j=>{j.currentTarget===j.target&&(m&&d8(j)?m(j):j.key==="Escape"&&x.current&&x.current.blur()),b&&b(j)},M=o!==!1&&p?!0:o,O=M||m?Tl:s||"div",D=Ie({},r,{component:O,disabled:c,size:v,color:a,iconColor:ge.isValidElement(d)&&d.props.color||a,onDelete:!!m,clickable:M,variant:h}),P=bie(D),E=O===Tl?Ie({component:s||"div",focusVisibleClassName:P.focusVisible},m&&{disableRipple:!0}):{};let I=null;m&&(I=u&&ge.isValidElement(u)?ge.cloneElement(u,{className:on(u.props.className,P.deleteIcon),onClick:k}):ke.jsx(gie,{className:on(P.deleteIcon),onClick:k}));let A=null;l&&ge.isValidElement(l)&&(A=ge.cloneElement(l,{className:on(P.avatar,l.props.className)}));let F=null;return d&&ge.isValidElement(d)&&(F=ge.cloneElement(d,{className:on(P.icon,d.props.className)})),ke.jsxs(xie,Ie({as:O,className:on(P.root,i),disabled:M&&c?!0:void 0,onClick:p,onKeyDown:S,onKeyUp:C,ref:T,tabIndex:w&&c?-1:y,ownerState:D},E,_,{children:[A||F,ke.jsx(wie,{className:on(P.label),ownerState:D,children:f}),I]}))}),Tie=_ie,kie=Object.freeze(Object.defineProperty({__proto__:null,chipClasses:fr,default:Tie,getChipUtilityClass:qj},Symbol.toStringTag,{value:"Module"}));function au({props:e,states:t,muiFormControl:n}){return t.reduce((r,l)=>(r[l]=e[l],n&&typeof e[l]>"u"&&(r[l]=n[l]),r),{})}const eb=ge.createContext(void 0);function Gi(){return ge.useContext(eb)}function Sie(e){return ke.jsx(Tte,Ie({},e,{defaultTheme:X1,themeId:Ql}))}function f8(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ny(e,t=!1){return e&&(f8(e.value)&&e.value!==""||t&&f8(e.defaultValue)&&e.defaultValue!=="")}function Cie(e){return e.startAdornment}function Mie(e){return yn("MuiInputBase",e)}const zd=hn("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Pie=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],tb=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Jt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},nb=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Oie=e=>{const{classes:t,color:n,disabled:r,error:l,endAdornment:i,focused:o,formControl:a,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:f,startAdornment:p,type:m}=e,g={root:["root",`color${Jt(n)}`,r&&"disabled",l&&"error",s&&"fullWidth",o&&"focused",a&&"formControl",f&&f!=="medium"&&`size${Jt(f)}`,c&&"multiline",p&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",m==="search"&&"inputTypeSearch",c&&"inputMultiline",f==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",p&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return vn(g,Mie,t)},rb=Et("div",{name:"MuiInputBase",slot:"Root",overridesResolver:tb})(({theme:e,ownerState:t})=>Ie({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${zd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Ie({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),ab=Et("input",{name:"MuiInputBase",slot:"Input",overridesResolver:nb})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=Ie({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),l={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return Ie({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${zd.formControl} &`]:{"&::-webkit-input-placeholder":l,"&::-moz-placeholder":l,"&:-ms-input-placeholder":l,"&::-ms-input-placeholder":l,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${zd.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),Aie=ke.jsx(Sie,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),ob=ge.forwardRef(function(t,n){var r;const l=pn({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:o,autoFocus:a,className:s,components:u={},componentsProps:c={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:p,endAdornment:m,fullWidth:g=!1,id:b,inputComponent:v="input",inputProps:h={},inputRef:y,maxRows:w,minRows:_,multiline:x=!1,name:T,onBlur:k,onChange:S,onClick:C,onFocus:M,onKeyDown:O,onKeyUp:D,placeholder:P,readOnly:E,renderSuffix:I,rows:A,slotProps:F={},slots:j={},startAdornment:z,type:B="text",value:N}=l,R=Kt(l,Pie),q=h.value!=null?h.value:N,{current:Y}=ge.useRef(q!=null),L=ge.useRef(),W=ge.useCallback(K=>{},[]),U=Lr(L,y,h.ref,W),[V,te]=ge.useState(!1),ee=Gi(),H=au({props:l,muiFormControl:ee,states:["color","disabled","error","hiddenLabel","size","required","filled"]});H.focused=ee?ee.focused:V,ge.useEffect(()=>{!ee&&f&&V&&(te(!1),k&&k())},[ee,f,V,k]);const Z=ee&&ee.onFilled,G=ee&&ee.onEmpty,X=ge.useCallback(K=>{ny(K)?Z&&Z():G&&G()},[Z,G]);no(()=>{Y&&X({value:q})},[q,X,Y]);const Q=K=>{if(H.disabled){K.stopPropagation();return}M&&M(K),h.onFocus&&h.onFocus(K),ee&&ee.onFocus?ee.onFocus(K):te(!0)},re=K=>{k&&k(K),h.onBlur&&h.onBlur(K),ee&&ee.onBlur?ee.onBlur(K):te(!1)},ae=(K,...ne)=>{if(!Y){const de=K.target||L.current;if(de==null)throw new Error(No(1));X({value:de.value})}h.onChange&&h.onChange(K,...ne),S&&S(K,...ne)};ge.useEffect(()=>{X(L.current)},[]);const ie=K=>{L.current&&K.currentTarget===K.target&&L.current.focus(),C&&C(K)};let se=v,he=h;x&&se==="input"&&(A?he=Ie({type:void 0,minRows:A,maxRows:A},he):he=Ie({type:void 0,maxRows:w,minRows:_},he),se=pie);const Se=K=>{X(K.animationName==="mui-auto-fill-cancel"?L.current:{value:"x"})};ge.useEffect(()=>{ee&&ee.setAdornedStart(!!z)},[ee,z]);const Oe=Ie({},l,{color:H.color||"primary",disabled:H.disabled,endAdornment:m,error:H.error,focused:H.focused,formControl:ee,fullWidth:g,hiddenLabel:H.hiddenLabel,multiline:x,size:H.size,startAdornment:z,type:B}),Pe=Oie(Oe),Me=j.root||u.Root||rb,ce=F.root||c.root||{},we=j.input||u.Input||ab;return he=Ie({},he,(r=F.input)!=null?r:c.input),ke.jsxs(ge.Fragment,{children:[!p&&Aie,ke.jsxs(Me,Ie({},ce,!lm(Me)&&{ownerState:Ie({},Oe,ce.ownerState)},{ref:n,onClick:ie},R,{className:on(Pe.root,ce.className,s,E&&"MuiInputBase-readOnly"),children:[z,ke.jsx(eb.Provider,{value:null,children:ke.jsx(we,Ie({ownerState:Oe,"aria-invalid":H.error,"aria-describedby":i,autoComplete:o,autoFocus:a,defaultValue:d,disabled:H.disabled,id:b,onAnimationStart:Se,name:T,placeholder:P,readOnly:E,required:H.required,rows:A,value:q,onKeyDown:O,onKeyUp:D,type:B},he,!lm(we)&&{as:se,ownerState:Ie({},Oe,he.ownerState)},{ref:U,className:on(Pe.input,he.className,E&&"MuiInputBase-readOnly"),onBlur:re,onChange:ae,onFocus:Q}))}),m,I?I(Ie({},H,{startAdornment:z})):null]}))]})});function Die(e){return yn("MuiInput",e)}const Zf=Ie({},zd,hn("MuiInput",["root","underline","input"]));function Eie(e){return yn("MuiOutlinedInput",e)}const xs=Ie({},zd,hn("MuiOutlinedInput",["root","notchedOutline","input"]));function Rie(e){return yn("MuiFilledInput",e)}const du=Ie({},zd,hn("MuiFilledInput",["root","underline","input"])),Lie=Qr(ke.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Iie=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],$ie={entering:{opacity:1},entered:{opacity:1}},ib=ge.forwardRef(function(t,n){const r=po(),l={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:o=!0,children:a,easing:s,in:u,onEnter:c,onEntered:d,onEntering:f,onExit:p,onExited:m,onExiting:g,style:b,timeout:v=l,TransitionComponent:h=Pi}=t,y=Kt(t,Iie),w=ge.useRef(null),_=Lr(w,a.ref,n),x=P=>E=>{if(P){const I=w.current;E===void 0?P(I):P(I,E)}},T=x(f),k=x((P,E)=>{kj(P);const I=Id({style:b,timeout:v,easing:s},{mode:"enter"});P.style.webkitTransition=r.transitions.create("opacity",I),P.style.transition=r.transitions.create("opacity",I),c&&c(P,E)}),S=x(d),C=x(g),M=x(P=>{const E=Id({style:b,timeout:v,easing:s},{mode:"exit"});P.style.webkitTransition=r.transitions.create("opacity",E),P.style.transition=r.transitions.create("opacity",E),p&&p(P)}),O=x(m),D=P=>{i&&i(w.current,P)};return ke.jsx(h,Ie({appear:o,in:u,nodeRef:w,onEnter:k,onEntered:S,onEntering:T,onExit:M,onExited:O,onExiting:C,addEndListener:D,timeout:v},y,{children:(P,E)=>ge.cloneElement(a,Ie({style:Ie({opacity:0,visibility:P==="exited"&&!u?"hidden":void 0},$ie[P],b,a.props.style),ref:_},E))}))});function Nie(e){return yn("MuiBackdrop",e)}hn("MuiBackdrop",["root","invisible"]);const Fie=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],jie=e=>{const{classes:t,invisible:n}=e;return vn({root:["root",n&&"invisible"]},Nie,t)},zie=Et("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>Ie({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Uj=ge.forwardRef(function(t,n){var r,l,i;const o=pn({props:t,name:"MuiBackdrop"}),{children:a,className:s,component:u="div",components:c={},componentsProps:d={},invisible:f=!1,open:p,slotProps:m={},slots:g={},TransitionComponent:b=ib,transitionDuration:v}=o,h=Kt(o,Fie),y=Ie({},o,{component:u,invisible:f}),w=jie(y),_=(r=m.root)!=null?r:d.root;return ke.jsx(b,Ie({in:p,timeout:v},h,{children:ke.jsx(zie,Ie({"aria-hidden":!0},_,{as:(l=(i=g.root)!=null?i:c.Root)!=null?l:u,className:on(w.root,s,_==null?void 0:_.className),ownerState:Ie({},y,_==null?void 0:_.ownerState),classes:w,ref:n,children:a}))}))}),Bie=es(),Wie=Mte({themeId:Ql,defaultTheme:Bie,defaultClassName:"MuiBox-root",generateClassName:zC.generate}),Ia=Wie,qie=Object.freeze(Object.defineProperty({__proto__:null,default:Ia},Symbol.toStringTag,{value:"Module"}));function Hj(e){return yn("MuiButton",e)}const Uie=hn("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),ph=Uie,Hie=ge.createContext({}),Vie=ge.createContext(void 0),Gie=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Yie=e=>{const{color:t,disableElevation:n,fullWidth:r,size:l,variant:i,classes:o}=e,a={root:["root",i,`${i}${Jt(t)}`,`size${Jt(l)}`,`${i}Size${Jt(l)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Jt(l)}`],endIcon:["endIcon",`iconSize${Jt(l)}`]},s=vn(a,Hj,o);return Ie({},o,s)},Vj=e=>Ie({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),Xie=Et(Tl,{shouldForwardProp:e=>Vi(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Jt(n.color)}`],t[`size${Jt(n.size)}`],t[`${n.variant}Size${Jt(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const l=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return Ie({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Ie({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:rr(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Ie({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${ph.focusVisible}`]:Ie({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${ph.disabled}`]:Ie({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${rr(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:l,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ph.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ph.disabled}`]:{boxShadow:"none"}}),Kie=Et("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Jt(n.size)}`]]}})(({ownerState:e})=>Ie({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Vj(e))),Zie=Et("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Jt(n.size)}`]]}})(({ownerState:e})=>Ie({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Vj(e))),Qie=ge.forwardRef(function(t,n){const r=ge.useContext(Hie),l=ge.useContext(Vie),i=jC(r,t),o=pn({props:i,name:"MuiButton"}),{children:a,color:s="primary",component:u="button",className:c,disabled:d=!1,disableElevation:f=!1,disableFocusRipple:p=!1,endIcon:m,focusVisibleClassName:g,fullWidth:b=!1,size:v="medium",startIcon:h,type:y,variant:w="text"}=o,_=Kt(o,Gie),x=Ie({},o,{color:s,component:u,disabled:d,disableElevation:f,disableFocusRipple:p,fullWidth:b,size:v,type:y,variant:w}),T=Yie(x),k=h&&ke.jsx(Kie,{className:T.startIcon,ownerState:x,children:h}),S=m&&ke.jsx(Zie,{className:T.endIcon,ownerState:x,children:m}),C=l||"";return ke.jsxs(Xie,Ie({ownerState:x,className:on(r.className,T.root,c,C),component:u,disabled:d,focusRipple:!p,focusVisibleClassName:on(T.focusVisible,g),ref:n,type:y},_,{classes:T,children:[k,a,S]}))}),ji=Qie,Jie=Object.freeze(Object.defineProperty({__proto__:null,buttonClasses:ph,default:ji,getButtonUtilityClass:Hj},Symbol.toStringTag,{value:"Module"}));function ele(e){return yn("MuiCard",e)}hn("MuiCard",["root"]);const tle=["className","raised"],nle=e=>{const{classes:t}=e;return vn({root:["root"]},ele,t)},rle=Et(nu,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),ale=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiCard"}),{className:l,raised:i=!1}=r,o=Kt(r,tle),a=Ie({},r,{raised:i}),s=nle(a);return ke.jsx(rle,Ie({className:on(s.root,l),elevation:i?8:void 0,ref:n,ownerState:a},o))});function ole(e){return yn("MuiCardContent",e)}hn("MuiCardContent",["root"]);const ile=["className","component"],lle=e=>{const{classes:t}=e;return vn({root:["root"]},ole,t)},sle=Et("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),ule=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiCardContent"}),{className:l,component:i="div"}=r,o=Kt(r,ile),a=Ie({},r,{component:i}),s=lle(a);return ke.jsx(sle,Ie({as:i,className:on(s.root,l),ownerState:a,ref:n},o))});function cle(e){return yn("PrivateSwitchBase",e)}hn("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const dle=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],fle=e=>{const{classes:t,checked:n,disabled:r,edge:l}=e,i={root:["root",n&&"checked",r&&"disabled",l&&`edge${Jt(l)}`],input:["input"]};return vn(i,cle,t)},ple=Et(Tl)(({ownerState:e})=>Ie({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),hle=Et("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),mle=ge.forwardRef(function(t,n){const{autoFocus:r,checked:l,checkedIcon:i,className:o,defaultChecked:a,disabled:s,disableFocusRipple:u=!1,edge:c=!1,icon:d,id:f,inputProps:p,inputRef:m,name:g,onBlur:b,onChange:v,onFocus:h,readOnly:y,required:w=!1,tabIndex:_,type:x,value:T}=t,k=Kt(t,dle),[S,C]=Zl({controlled:l,default:!!a,name:"SwitchBase",state:"checked"}),M=Gi(),O=j=>{h&&h(j),M&&M.onFocus&&M.onFocus(j)},D=j=>{b&&b(j),M&&M.onBlur&&M.onBlur(j)},P=j=>{if(j.nativeEvent.defaultPrevented)return;const z=j.target.checked;C(z),v&&v(j,z)};let E=s;M&&typeof E>"u"&&(E=M.disabled);const I=x==="checkbox"||x==="radio",A=Ie({},t,{checked:S,disabled:E,disableFocusRipple:u,edge:c}),F=fle(A);return ke.jsxs(ple,Ie({component:"span",className:on(F.root,o),centerRipple:!0,focusRipple:!u,disabled:E,tabIndex:null,role:void 0,onFocus:O,onBlur:D,ownerState:A,ref:n},k,{children:[ke.jsx(hle,Ie({autoFocus:r,checked:l,defaultChecked:a,className:F.input,disabled:E,id:I?f:void 0,name:g,onChange:P,readOnly:y,ref:m,required:w,ownerState:A,tabIndex:_,type:x},x==="checkbox"&&T===void 0?{}:{value:T},p)),S?i:d]}))}),gle=Qr(ke.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),vle=Qr(ke.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),yle=Qr(ke.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Gj(e){return yn("MuiCheckbox",e)}const ble=hn("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),ev=ble,xle=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],wle=e=>{const{classes:t,indeterminate:n,color:r,size:l}=e,i={root:["root",n&&"indeterminate",`color${Jt(r)}`,`size${Jt(l)}`]},o=vn(i,Gj,t);return Ie({},t,o)},_le=Et(mle,{shouldForwardProp:e=>Vi(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${Jt(n.color)}`]]}})(({theme:e,ownerState:t})=>Ie({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rr(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${ev.checked}, &.${ev.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${ev.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Tle=ke.jsx(vle,{}),kle=ke.jsx(gle,{}),Sle=ke.jsx(yle,{}),Cle=ge.forwardRef(function(t,n){var r,l;const i=pn({props:t,name:"MuiCheckbox"}),{checkedIcon:o=Tle,color:a="primary",icon:s=kle,indeterminate:u=!1,indeterminateIcon:c=Sle,inputProps:d,size:f="medium",className:p}=i,m=Kt(i,xle),g=u?c:s,b=u?c:o,v=Ie({},i,{color:a,indeterminate:u,size:f}),h=wle(v);return ke.jsx(_le,Ie({type:"checkbox",inputProps:Ie({"data-indeterminate":u},d),icon:ge.cloneElement(g,{fontSize:(r=g.props.fontSize)!=null?r:f}),checkedIcon:ge.cloneElement(b,{fontSize:(l=b.props.fontSize)!=null?l:f}),ownerState:v,ref:n,className:on(h.root,p)},m,{classes:h}))}),Mle=Cle,Ple=Object.freeze(Object.defineProperty({__proto__:null,checkboxClasses:ev,default:Mle,getCheckboxUtilityClass:Gj},Symbol.toStringTag,{value:"Module"}));function Yj(e){return yn("MuiCircularProgress",e)}const Ole=hn("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]),Ale=Ole,Dle=["className","color","disableShrink","size","style","thickness","value","variant"];let lb=e=>e,p8,h8,m8,g8;const ws=44,Ele=Hi(p8||(p8=lb` +`,Eae=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiTouchRipple"}),{center:l=!1,classes:i={},className:o,...a}=r,[s,u]=ge.useState([]),c=ge.useRef(0),d=ge.useRef(null);ge.useEffect(()=>{d.current&&(d.current(),d.current=null)},[s]);const f=ge.useRef(!1),p=Wu(),h=ge.useRef(null),g=ge.useRef(null),b=ge.useCallback(x=>{const{pulsate:_,rippleX:w,rippleY:S,rippleSize:k,cb:C}=x;u(T=>[...T,Se.jsx(Dae,{classes:{ripple:ln(i.ripple,xi.ripple),rippleVisible:ln(i.rippleVisible,xi.rippleVisible),ripplePulsate:ln(i.ripplePulsate,xi.ripplePulsate),child:ln(i.child,xi.child),childLeaving:ln(i.childLeaving,xi.childLeaving),childPulsate:ln(i.childPulsate,xi.childPulsate)},timeout:wS,pulsate:_,rippleX:w,rippleY:S,rippleSize:k},c.current)]),c.current+=1,d.current=C},[i]),v=ge.useCallback((x={},_={},w=()=>{})=>{const{pulsate:S=!1,center:k=l||_.pulsate,fakeElement:C=!1}=_;if((x==null?void 0:x.type)==="mousedown"&&f.current){f.current=!1;return}(x==null?void 0:x.type)==="touchstart"&&(f.current=!0);const T=C?null:g.current,M=T?T.getBoundingClientRect():{width:0,height:0,left:0,top:0};let O,D,P;if(k||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)O=Math.round(M.width/2),D=Math.round(M.height/2);else{const{clientX:E,clientY:I}=x.touches&&x.touches.length>0?x.touches[0]:x;O=Math.round(E-M.left),D=Math.round(I-M.top)}if(k)P=Math.sqrt((2*M.width**2+M.height**2)/3),P%2===0&&(P+=1);else{const E=Math.max(Math.abs((T?T.clientWidth:0)-O),O)*2+2,I=Math.max(Math.abs((T?T.clientHeight:0)-D),D)*2+2;P=Math.sqrt(E**2+I**2)}x!=null&&x.touches?h.current===null&&(h.current=()=>{b({pulsate:S,rippleX:O,rippleY:D,rippleSize:P,cb:w})},p.start(Cae,()=>{h.current&&(h.current(),h.current=null)})):b({pulsate:S,rippleX:O,rippleY:D,rippleSize:P,cb:w})},[l,b,p]),m=ge.useCallback(()=>{v({},{pulsate:!0})},[v]),y=ge.useCallback((x,_)=>{if(p.clear(),(x==null?void 0:x.type)==="touchend"&&h.current){h.current(),h.current=null,p.start(0,()=>{y(x,_)});return}h.current=null,u(w=>w.length>0?w.slice(1):w),d.current=_},[p]);return ge.useImperativeHandle(n,()=>({pulsate:m,start:v,stop:y}),[m,v,y]),Se.jsx(Aae,{className:ln(xi.root,i.root,o),ref:g,...a,children:Se.jsx(cg,{component:null,exit:!0,children:s})})});function Rae(e){return gn("MuiButtonBase",e)}const Lae=fn("MuiButtonBase",["root","disabled","focusVisible"]),Iae=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:l}=e,o=vn({root:["root",t&&"disabled",n&&"focusVisible"]},Rae,l);return n&&r&&(o.root+=` ${r}`),o},$ae=Dt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Lae.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Nl=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiButtonBase"}),{action:l,centerRipple:i=!1,children:o,className:a,component:s="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:f=!1,focusVisibleClassName:p,LinkComponent:h="a",onBlur:g,onClick:b,onContextMenu:v,onDragLeave:m,onFocus:y,onFocusVisible:x,onKeyDown:_,onKeyUp:w,onMouseDown:S,onMouseLeave:k,onMouseUp:C,onTouchEnd:T,onTouchMove:M,onTouchStart:O,tabIndex:D=0,TouchRippleProps:P,touchRippleRef:E,type:I,...A}=r,F=ge.useRef(null),j=Tae(),B=Er(j.ref,E),[z,N]=ge.useState(!1);u&&z&&N(!1),ge.useImperativeHandle(l,()=>({focusVisible:()=>{N(!0),F.current.focus()}}),[]);const R=j.shouldMount&&!c&&!u;ge.useEffect(()=>{z&&f&&!c&&j.pulsate()},[c,f,z,j]);function q(Ce,Oe,Pe=d){return ho(ce=>(Oe&&Oe(ce),Pe||j[Ce](ce),!0))}const Y=q("start",S),L=q("stop",v),W=q("stop",m),H=q("stop",C),G=q("stop",Ce=>{z&&Ce.preventDefault(),k&&k(Ce)}),te=q("start",O),ee=q("stop",T),U=q("stop",M),Q=q("stop",Ce=>{hy(Ce.target)||N(!1),g&&g(Ce)},!1),V=ho(Ce=>{F.current||(F.current=Ce.currentTarget),hy(Ce.target)&&(N(!0),x&&x(Ce)),y&&y(Ce)}),X=()=>{const Ce=F.current;return s&&s!=="button"&&!(Ce.tagName==="A"&&Ce.href)},K=ho(Ce=>{f&&!Ce.repeat&&z&&Ce.key===" "&&j.stop(Ce,()=>{j.start(Ce)}),Ce.target===Ce.currentTarget&&X()&&Ce.key===" "&&Ce.preventDefault(),_&&_(Ce),Ce.target===Ce.currentTarget&&X()&&Ce.key==="Enter"&&!u&&(Ce.preventDefault(),b&&b(Ce))}),ne=ho(Ce=>{f&&Ce.key===" "&&z&&!Ce.defaultPrevented&&j.stop(Ce,()=>{j.pulsate(Ce)}),w&&w(Ce),b&&Ce.target===Ce.currentTarget&&X()&&Ce.key===" "&&!Ce.defaultPrevented&&b(Ce)});let ae=s;ae==="button"&&(A.href||A.to)&&(ae=h);const ie={};ae==="button"?(ie.type=I===void 0?"button":I,ie.disabled=u):(!A.href&&!A.to&&(ie.role="button"),u&&(ie["aria-disabled"]=u));const se=Er(n,F),pe={...r,centerRipple:i,component:s,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:f,tabIndex:D,focusVisible:z},ke=Iae(pe);return Se.jsxs($ae,{as:ae,className:ln(ke.root,a),ownerState:pe,onBlur:Q,onClick:b,onContextMenu:L,onFocus:V,onKeyDown:K,onKeyUp:ne,onMouseDown:Y,onMouseLeave:G,onMouseUp:H,onDragLeave:W,onTouchEnd:ee,onTouchMove:U,onTouchStart:te,ref:se,tabIndex:u?-1:D,type:I,...ie,...A,children:[o,R?Se.jsx(Eae,{ref:B,center:i,...P}):null]})});function Nae(e){return typeof e.main=="string"}function Fae(e,t=[]){if(!Nae(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function ra(e=[]){return([,t])=>t&&Fae(t,e)}function jae(e){return gn("MuiAlert",e)}const zA=fn("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function mz(e){return gn("MuiIconButton",e)}const zae=fn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),gz=zae,Bae=e=>{const{classes:t,disabled:n,color:r,edge:l,size:i}=e,o={root:["root",n&&"disabled",r!=="default"&&`color${Qt(r)}`,l&&`edge${Qt(l)}`,`size${Qt(i)}`]};return vn(o,mz,t)},Wae=Dt(Nl,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Qt(n.color)}`],n.edge&&t[`edge${Qt(n.edge)}`],t[`size${Qt(n.size)}`]]}})(Fn(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ar(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Fn(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(ra()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(ra()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ar((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${gz.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),Fo=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiIconButton"}),{edge:l=!1,children:i,className:o,color:a="default",disabled:s=!1,disableFocusRipple:u=!1,size:c="medium",...d}=r,f={...r,edge:l,color:a,disabled:s,disableFocusRipple:u,size:c},p=Bae(f);return Se.jsx(Wae,{className:ln(p.root,o),centerRipple:!0,focusRipple:!u,disabled:s,ref:n,...d,ownerState:f,children:i})}),qae=Object.freeze(Object.defineProperty({__proto__:null,default:Fo,getIconButtonUtilityClass:mz,iconButtonClasses:gz},Symbol.toStringTag,{value:"Module"})),Uae=kr(Se.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),Hae=kr(Se.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Vae=kr(Se.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),Gae=kr(Se.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),Yae=kr(Se.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Xae=e=>{const{variant:t,color:n,severity:r,classes:l}=e,i={root:["root",`color${Qt(n||r)}`,`${t}${Qt(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return vn(i,jae,l)},Kae=Dt(pu,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Qt(n.color||n.severity)}`]]}})(Fn(({theme:e})=>{const t=e.palette.mode==="light"?Il:$l,n=e.palette.mode==="light"?$l:Il;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(ra(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${zA.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(ra(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${zA.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(ra(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)}}}))]}})),Zae=Dt("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Qae=Dt("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),BA=Dt("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),WA={success:Se.jsx(Uae,{fontSize:"inherit"}),warning:Se.jsx(Hae,{fontSize:"inherit"}),error:Se.jsx(Vae,{fontSize:"inherit"}),info:Se.jsx(Gae,{fontSize:"inherit"})},Jae=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiAlert"}),{action:l,children:i,className:o,closeText:a="Close",color:s,components:u={},componentsProps:c={},icon:d,iconMapping:f=WA,onClose:p,role:h="alert",severity:g="success",slotProps:b={},slots:v={},variant:m="standard",...y}=r,x={...r,color:s,severity:g,variant:m,colorSeverity:s||g},_=Xae(x),w={slots:{closeButton:u.CloseButton,closeIcon:u.CloseIcon,...v},slotProps:{...c,...b}},[S,k]=Io("closeButton",{elementType:Fo,externalForwardedProps:w,ownerState:x}),[C,T]=Io("closeIcon",{elementType:Yae,externalForwardedProps:w,ownerState:x});return Se.jsxs(Kae,{role:h,elevation:0,ownerState:x,className:ln(_.root,o),ref:n,...y,children:[d!==!1?Se.jsx(Zae,{ownerState:x,className:_.icon,children:d||f[g]||WA[g]}):null,Se.jsx(Qae,{ownerState:x,className:_.message,children:i}),l!=null?Se.jsx(BA,{ownerState:x,className:_.action,children:l}):null,l==null&&p?Se.jsx(BA,{ownerState:x,className:_.action,children:Se.jsx(S,{size:"small","aria-label":a,title:a,color:"inherit",onClick:p,...k,children:Se.jsx(C,{fontSize:"small",...T})})}):null]})});function vz(e){return gn("MuiTypography",e)}const eoe=fn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),_S=eoe,toe={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},noe=Xre(),roe=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:l,variant:i,classes:o}=e,a={root:["root",i,e.align!=="inherit"&&`align${Qt(t)}`,n&&"gutterBottom",r&&"noWrap",l&&"paragraph"]};return vn(a,vz,o)},aoe=Dt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Qt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Fn(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(e.palette).filter(ra()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${Qt(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),qA={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ooe=ge.forwardRef(function(t,n){const{color:r,...l}=jn({props:t,name:"MuiTypography"}),i=!toe[r],o=noe({...l,...i&&{color:r}}),{align:a="inherit",className:s,component:u,gutterBottom:c=!1,noWrap:d=!1,paragraph:f=!1,variant:p="body1",variantMapping:h=qA,...g}=o,b={...o,align:a,color:r,className:s,component:u,gutterBottom:c,noWrap:d,paragraph:f,variant:p,variantMapping:h},v=u||(f?"p":h[p]||qA[p])||"span",m=roe(b);return Se.jsx(aoe,{as:v,ref:n,className:ln(m.root,s),...g,ownerState:b,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...g.style}})}),mr=ooe,ioe=Object.freeze(Object.defineProperty({__proto__:null,default:mr,getTypographyUtilityClass:vz,typographyClasses:_S},Symbol.toStringTag,{value:"Module"}));function loe(e){return gn("MuiAlertTitle",e)}fn("MuiAlertTitle",["root"]);const soe=e=>{const{classes:t}=e;return vn({root:["root"]},loe,t)},uoe=Dt(mr,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})(Fn(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),n5=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiAlertTitle"}),{className:l,...i}=r,o=r,a=soe(o);return Se.jsx(uoe,{gutterBottom:!0,component:"div",ownerState:o,ref:n,className:ln(a.root,l),...i})});var Wo="top",Fi="bottom",ji="right",qo="left",r5="auto",dg=[Wo,Fi,ji,qo],Yd="start",Tm="end",coe="clippingParents",yz="viewport",dp="popper",doe="reference",UA=dg.reduce(function(e,t){return e.concat([t+"-"+Yd,t+"-"+Tm])},[]),bz=[].concat(dg,[r5]).reduce(function(e,t){return e.concat([t,t+"-"+Yd,t+"-"+Tm])},[]),foe="beforeRead",poe="read",hoe="afterRead",moe="beforeMain",goe="main",voe="afterMain",yoe="beforeWrite",boe="write",xoe="afterWrite",woe=[foe,poe,hoe,moe,goe,voe,yoe,boe,xoe];function Fl(e){return e?(e.nodeName||"").toLowerCase():null}function ui(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function lc(e){var t=ui(e).Element;return e instanceof t||e instanceof Element}function Ei(e){var t=ui(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function a5(e){if(typeof ShadowRoot>"u")return!1;var t=ui(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function _oe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},l=t.attributes[n]||{},i=t.elements[n];!Ei(i)||!Fl(i)||(Object.assign(i.style,r),Object.keys(l).forEach(function(o){var a=l[o];a===!1?i.removeAttribute(o):i.setAttribute(o,a===!0?"":a)}))})}function Toe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var l=t.elements[r],i=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=o.reduce(function(s,u){return s[u]="",s},{});!Ei(l)||!Fl(l)||(Object.assign(l.style,a),Object.keys(i).forEach(function(s){l.removeAttribute(s)}))})}}const Soe={name:"applyStyles",enabled:!0,phase:"write",fn:_oe,effect:Toe,requires:["computeStyles"]};function El(e){return e.split("-")[0]}var Ju=Math.max,wy=Math.min,Xd=Math.round;function TS(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function xz(){return!/^((?!chrome|android).)*safari/i.test(TS())}function Kd(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),l=1,i=1;t&&Ei(e)&&(l=e.offsetWidth>0&&Xd(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Xd(r.height)/e.offsetHeight||1);var o=lc(e)?ui(e):window,a=o.visualViewport,s=!xz()&&n,u=(r.left+(s&&a?a.offsetLeft:0))/l,c=(r.top+(s&&a?a.offsetTop:0))/i,d=r.width/l,f=r.height/i;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function o5(e){var t=Kd(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function wz(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&a5(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ss(e){return ui(e).getComputedStyle(e)}function koe(e){return["table","td","th"].indexOf(Fl(e))>=0}function hu(e){return((lc(e)?e.ownerDocument:e.document)||window.document).documentElement}function _b(e){return Fl(e)==="html"?e:e.assignedSlot||e.parentNode||(a5(e)?e.host:null)||hu(e)}function HA(e){return!Ei(e)||ss(e).position==="fixed"?null:e.offsetParent}function Coe(e){var t=/firefox/i.test(TS()),n=/Trident/i.test(TS());if(n&&Ei(e)){var r=ss(e);if(r.position==="fixed")return null}var l=_b(e);for(a5(l)&&(l=l.host);Ei(l)&&["html","body"].indexOf(Fl(l))<0;){var i=ss(l);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return l;l=l.parentNode}return null}function fg(e){for(var t=ui(e),n=HA(e);n&&koe(n)&&ss(n).position==="static";)n=HA(n);return n&&(Fl(n)==="html"||Fl(n)==="body"&&ss(n).position==="static")?t:n||Coe(e)||t}function i5(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function qh(e,t,n){return Ju(e,wy(t,n))}function Moe(e,t,n){var r=qh(e,t,n);return r>n?n:r}function _z(){return{top:0,right:0,bottom:0,left:0}}function Tz(e){return Object.assign({},_z(),e)}function Sz(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Poe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Tz(typeof t!="number"?t:Sz(t,dg))};function Ooe(e){var t,n=e.state,r=e.name,l=e.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,a=El(n.placement),s=i5(a),u=[qo,ji].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!o)){var d=Poe(l.padding,n),f=o5(i),p=s==="y"?Wo:qo,h=s==="y"?Fi:ji,g=n.rects.reference[c]+n.rects.reference[s]-o[s]-n.rects.popper[c],b=o[s]-n.rects.reference[s],v=fg(i),m=v?s==="y"?v.clientHeight||0:v.clientWidth||0:0,y=g/2-b/2,x=d[p],_=m-f[c]-d[h],w=m/2-f[c]/2+y,S=qh(x,w,_),k=s;n.modifiersData[r]=(t={},t[k]=S,t.centerOffset=S-w,t)}}function Aoe(e){var t=e.state,n=e.options,r=n.element,l=r===void 0?"[data-popper-arrow]":r;l!=null&&(typeof l=="string"&&(l=t.elements.popper.querySelector(l),!l)||wz(t.elements.popper,l)&&(t.elements.arrow=l))}const Doe={name:"arrow",enabled:!0,phase:"main",fn:Ooe,effect:Aoe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Zd(e){return e.split("-")[1]}var Eoe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Roe(e,t){var n=e.x,r=e.y,l=t.devicePixelRatio||1;return{x:Xd(n*l)/l||0,y:Xd(r*l)/l||0}}function VA(e){var t,n=e.popper,r=e.popperRect,l=e.placement,i=e.variation,o=e.offsets,a=e.position,s=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,h=o.y,g=h===void 0?0:h,b=typeof c=="function"?c({x:p,y:g}):{x:p,y:g};p=b.x,g=b.y;var v=o.hasOwnProperty("x"),m=o.hasOwnProperty("y"),y=qo,x=Wo,_=window;if(u){var w=fg(n),S="clientHeight",k="clientWidth";if(w===ui(n)&&(w=hu(n),ss(w).position!=="static"&&a==="absolute"&&(S="scrollHeight",k="scrollWidth")),w=w,l===Wo||(l===qo||l===ji)&&i===Tm){x=Fi;var C=d&&w===_&&_.visualViewport?_.visualViewport.height:w[S];g-=C-r.height,g*=s?1:-1}if(l===qo||(l===Wo||l===Fi)&&i===Tm){y=ji;var T=d&&w===_&&_.visualViewport?_.visualViewport.width:w[k];p-=T-r.width,p*=s?1:-1}}var M=Object.assign({position:a},u&&Eoe),O=c===!0?Roe({x:p,y:g},ui(n)):{x:p,y:g};if(p=O.x,g=O.y,s){var D;return Object.assign({},M,(D={},D[x]=m?"0":"",D[y]=v?"0":"",D.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",D))}return Object.assign({},M,(t={},t[x]=m?g+"px":"",t[y]=v?p+"px":"",t.transform="",t))}function Loe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,l=r===void 0?!0:r,i=n.adaptive,o=i===void 0?!0:i,a=n.roundOffsets,s=a===void 0?!0:a,u={placement:El(t.placement),variation:Zd(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:l,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,VA(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,VA(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Ioe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Loe,data:{}};var y0={passive:!0};function $oe(e){var t=e.state,n=e.instance,r=e.options,l=r.scroll,i=l===void 0?!0:l,o=r.resize,a=o===void 0?!0:o,s=ui(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,y0)}),a&&s.addEventListener("resize",n.update,y0),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,y0)}),a&&s.removeEventListener("resize",n.update,y0)}}const Noe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:$oe,data:{}};var Foe={left:"right",right:"left",bottom:"top",top:"bottom"};function mv(e){return e.replace(/left|right|bottom|top/g,function(t){return Foe[t]})}var joe={start:"end",end:"start"};function GA(e){return e.replace(/start|end/g,function(t){return joe[t]})}function l5(e){var t=ui(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function s5(e){return Kd(hu(e)).left+l5(e).scrollLeft}function zoe(e,t){var n=ui(e),r=hu(e),l=n.visualViewport,i=r.clientWidth,o=r.clientHeight,a=0,s=0;if(l){i=l.width,o=l.height;var u=xz();(u||!u&&t==="fixed")&&(a=l.offsetLeft,s=l.offsetTop)}return{width:i,height:o,x:a+s5(e),y:s}}function Boe(e){var t,n=hu(e),r=l5(e),l=(t=e.ownerDocument)==null?void 0:t.body,i=Ju(n.scrollWidth,n.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),o=Ju(n.scrollHeight,n.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),a=-r.scrollLeft+s5(e),s=-r.scrollTop;return ss(l||n).direction==="rtl"&&(a+=Ju(n.clientWidth,l?l.clientWidth:0)-i),{width:i,height:o,x:a,y:s}}function u5(e){var t=ss(e),n=t.overflow,r=t.overflowX,l=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+l+r)}function kz(e){return["html","body","#document"].indexOf(Fl(e))>=0?e.ownerDocument.body:Ei(e)&&u5(e)?e:kz(_b(e))}function Uh(e,t){var n;t===void 0&&(t=[]);var r=kz(e),l=r===((n=e.ownerDocument)==null?void 0:n.body),i=ui(r),o=l?[i].concat(i.visualViewport||[],u5(r)?r:[]):r,a=t.concat(o);return l?a:a.concat(Uh(_b(o)))}function SS(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Woe(e,t){var n=Kd(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function YA(e,t,n){return t===yz?SS(zoe(e,n)):lc(t)?Woe(t,n):SS(Boe(hu(e)))}function qoe(e){var t=Uh(_b(e)),n=["absolute","fixed"].indexOf(ss(e).position)>=0,r=n&&Ei(e)?fg(e):e;return lc(r)?t.filter(function(l){return lc(l)&&wz(l,r)&&Fl(l)!=="body"}):[]}function Uoe(e,t,n,r){var l=t==="clippingParents"?qoe(e):[].concat(t),i=[].concat(l,[n]),o=i[0],a=i.reduce(function(s,u){var c=YA(e,u,r);return s.top=Ju(c.top,s.top),s.right=wy(c.right,s.right),s.bottom=wy(c.bottom,s.bottom),s.left=Ju(c.left,s.left),s},YA(e,o,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Cz(e){var t=e.reference,n=e.element,r=e.placement,l=r?El(r):null,i=r?Zd(r):null,o=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,s;switch(l){case Wo:s={x:o,y:t.y-n.height};break;case Fi:s={x:o,y:t.y+t.height};break;case ji:s={x:t.x+t.width,y:a};break;case qo:s={x:t.x-n.width,y:a};break;default:s={x:t.x,y:t.y}}var u=l?i5(l):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Yd:s[u]=s[u]-(t[c]/2-n[c]/2);break;case Tm:s[u]=s[u]+(t[c]/2-n[c]/2);break}}return s}function Sm(e,t){t===void 0&&(t={});var n=t,r=n.placement,l=r===void 0?e.placement:r,i=n.strategy,o=i===void 0?e.strategy:i,a=n.boundary,s=a===void 0?coe:a,u=n.rootBoundary,c=u===void 0?yz:u,d=n.elementContext,f=d===void 0?dp:d,p=n.altBoundary,h=p===void 0?!1:p,g=n.padding,b=g===void 0?0:g,v=Tz(typeof b!="number"?b:Sz(b,dg)),m=f===dp?doe:dp,y=e.rects.popper,x=e.elements[h?m:f],_=Uoe(lc(x)?x:x.contextElement||hu(e.elements.popper),s,c,o),w=Kd(e.elements.reference),S=Cz({reference:w,element:y,strategy:"absolute",placement:l}),k=SS(Object.assign({},y,S)),C=f===dp?k:w,T={top:_.top-C.top+v.top,bottom:C.bottom-_.bottom+v.bottom,left:_.left-C.left+v.left,right:C.right-_.right+v.right},M=e.modifiersData.offset;if(f===dp&&M){var O=M[l];Object.keys(T).forEach(function(D){var P=[ji,Fi].indexOf(D)>=0?1:-1,E=[Wo,Fi].indexOf(D)>=0?"y":"x";T[D]+=O[E]*P})}return T}function Hoe(e,t){t===void 0&&(t={});var n=t,r=n.placement,l=n.boundary,i=n.rootBoundary,o=n.padding,a=n.flipVariations,s=n.allowedAutoPlacements,u=s===void 0?bz:s,c=Zd(r),d=c?a?UA:UA.filter(function(h){return Zd(h)===c}):dg,f=d.filter(function(h){return u.indexOf(h)>=0});f.length===0&&(f=d);var p=f.reduce(function(h,g){return h[g]=Sm(e,{placement:g,boundary:l,rootBoundary:i,padding:o})[El(g)],h},{});return Object.keys(p).sort(function(h,g){return p[h]-p[g]})}function Voe(e){if(El(e)===r5)return[];var t=mv(e);return[GA(e),t,GA(t)]}function Goe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var l=n.mainAxis,i=l===void 0?!0:l,o=n.altAxis,a=o===void 0?!0:o,s=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=p===void 0?!0:p,g=n.allowedAutoPlacements,b=t.options.placement,v=El(b),m=v===b,y=s||(m||!h?[mv(b)]:Voe(b)),x=[b].concat(y).reduce(function(q,Y){return q.concat(El(Y)===r5?Hoe(t,{placement:Y,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:g}):Y)},[]),_=t.rects.reference,w=t.rects.popper,S=new Map,k=!0,C=x[0],T=0;T=0,E=P?"width":"height",I=Sm(t,{placement:M,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),A=P?D?ji:qo:D?Fi:Wo;_[E]>w[E]&&(A=mv(A));var F=mv(A),j=[];if(i&&j.push(I[O]<=0),a&&j.push(I[A]<=0,I[F]<=0),j.every(function(q){return q})){C=M,k=!1;break}S.set(M,j)}if(k)for(var B=h?3:1,z=function(Y){var L=x.find(function(W){var H=S.get(W);if(H)return H.slice(0,Y).every(function(G){return G})});if(L)return C=L,"break"},N=B;N>0;N--){var R=z(N);if(R==="break")break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}}const Yoe={name:"flip",enabled:!0,phase:"main",fn:Goe,requiresIfExists:["offset"],data:{_skip:!1}};function XA(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function KA(e){return[Wo,ji,Fi,qo].some(function(t){return e[t]>=0})}function Xoe(e){var t=e.state,n=e.name,r=t.rects.reference,l=t.rects.popper,i=t.modifiersData.preventOverflow,o=Sm(t,{elementContext:"reference"}),a=Sm(t,{altBoundary:!0}),s=XA(o,r),u=XA(a,l,i),c=KA(s),d=KA(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const Koe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Xoe};function Zoe(e,t,n){var r=El(e),l=[qo,Wo].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=i[0],a=i[1];return o=o||0,a=(a||0)*l,[qo,ji].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function Qoe(e){var t=e.state,n=e.options,r=e.name,l=n.offset,i=l===void 0?[0,0]:l,o=bz.reduce(function(c,d){return c[d]=Zoe(d,t.rects,i),c},{}),a=o[t.placement],s=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=o}const Joe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Qoe};function eie(e){var t=e.state,n=e.name;t.modifiersData[n]=Cz({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const tie={name:"popperOffsets",enabled:!0,phase:"read",fn:eie,data:{}};function nie(e){return e==="x"?"y":"x"}function rie(e){var t=e.state,n=e.options,r=e.name,l=n.mainAxis,i=l===void 0?!0:l,o=n.altAxis,a=o===void 0?!1:o,s=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,h=n.tetherOffset,g=h===void 0?0:h,b=Sm(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:c}),v=El(t.placement),m=Zd(t.placement),y=!m,x=i5(v),_=nie(x),w=t.modifiersData.popperOffsets,S=t.rects.reference,k=t.rects.popper,C=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,T=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(w){if(i){var D,P=x==="y"?Wo:qo,E=x==="y"?Fi:ji,I=x==="y"?"height":"width",A=w[x],F=A+b[P],j=A-b[E],B=p?-k[I]/2:0,z=m===Yd?S[I]:k[I],N=m===Yd?-k[I]:-S[I],R=t.elements.arrow,q=p&&R?o5(R):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:_z(),L=Y[P],W=Y[E],H=qh(0,S[I],q[I]),G=y?S[I]/2-B-H-L-T.mainAxis:z-H-L-T.mainAxis,te=y?-S[I]/2+B+H+W+T.mainAxis:N+H+W+T.mainAxis,ee=t.elements.arrow&&fg(t.elements.arrow),U=ee?x==="y"?ee.clientTop||0:ee.clientLeft||0:0,Q=(D=M==null?void 0:M[x])!=null?D:0,V=A+G-Q-U,X=A+te-Q,K=qh(p?wy(F,V):F,A,p?Ju(j,X):j);w[x]=K,O[x]=K-A}if(a){var ne,ae=x==="x"?Wo:qo,ie=x==="x"?Fi:ji,se=w[_],pe=_==="y"?"height":"width",ke=se+b[ae],Ce=se-b[ie],Oe=[Wo,qo].indexOf(v)!==-1,Pe=(ne=M==null?void 0:M[_])!=null?ne:0,ce=Oe?ke:se-S[pe]-k[pe]-Pe+T.altAxis,we=Oe?se+S[pe]+k[pe]-Pe-T.altAxis:Ce,Z=p&&Oe?Moe(ce,se,we):qh(p?ce:ke,se,p?we:Ce);w[_]=Z,O[_]=Z-se}t.modifiersData[r]=O}}const aie={name:"preventOverflow",enabled:!0,phase:"main",fn:rie,requiresIfExists:["offset"]};function oie(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function iie(e){return e===ui(e)||!Ei(e)?l5(e):oie(e)}function lie(e){var t=e.getBoundingClientRect(),n=Xd(t.width)/e.offsetWidth||1,r=Xd(t.height)/e.offsetHeight||1;return n!==1||r!==1}function sie(e,t,n){n===void 0&&(n=!1);var r=Ei(t),l=Ei(t)&&lie(t),i=hu(t),o=Kd(e,l,n),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&((Fl(t)!=="body"||u5(i))&&(a=iie(t)),Ei(t)?(s=Kd(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=s5(i))),{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}function uie(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function l(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(a){if(!n.has(a)){var s=t.get(a);s&&l(s)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||l(i)}),r}function cie(e){var t=uie(e);return woe.reduce(function(n,r){return n.concat(t.filter(function(l){return l.phase===r}))},[])}function die(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function fie(e){var t=e.reduce(function(n,r){var l=n[r.name];return n[r.name]=l?Object.assign({},l,r,{options:Object.assign({},l.options,r.options),data:Object.assign({},l.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var ZA={placement:"bottom",modifiers:[],strategy:"absolute"};function QA(){for(var e=arguments.length,t=new Array(e),n=0;n{i||a(gie(l)||document.body)},[l,i]),Vo(()=>{if(o&&!i)return py(n,o),()=>{py(n,null)}},[n,o,i]),i){if(ge.isValidElement(r)){const u={ref:s};return ge.cloneElement(r,u)}return Se.jsx(ge.Fragment,{children:r})}return Se.jsx(ge.Fragment,{children:o&&bf.createPortal(r,o)})});function vie(e){return gn("MuiPopper",e)}fn("MuiPopper",["root"]);function yie(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function kS(e){return typeof e=="function"?e():e}function bie(e){return e.nodeType!==void 0}const xie=e=>{const{classes:t}=e;return vn({root:["root"]},vie,t)},wie={},_ie=ge.forwardRef(function(t,n){const{anchorEl:r,children:l,direction:i,disablePortal:o,modifiers:a,open:s,placement:u,popperOptions:c,popperRef:d,slotProps:f={},slots:p={},TransitionProps:h,ownerState:g,...b}=t,v=ge.useRef(null),m=Er(v,n),y=ge.useRef(null),x=Er(y,d),_=ge.useRef(x);Vo(()=>{_.current=x},[x]),ge.useImperativeHandle(d,()=>y.current,[]);const w=yie(u,i),[S,k]=ge.useState(w),[C,T]=ge.useState(kS(r));ge.useEffect(()=>{y.current&&y.current.forceUpdate()}),ge.useEffect(()=>{r&&T(kS(r))},[r]),Vo(()=>{if(!C||!s)return;const E=F=>{k(F.placement)};let I=[{name:"preventOverflow",options:{altBoundary:o}},{name:"flip",options:{altBoundary:o}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:F})=>{E(F)}}];a!=null&&(I=I.concat(a)),c&&c.modifiers!=null&&(I=I.concat(c.modifiers));const A=mie(C,v.current,{placement:w,...c,modifiers:I});return _.current(A),()=>{A.destroy(),_.current(null)}},[C,o,a,s,c,w]);const M={placement:S};h!==null&&(M.TransitionProps=h);const O=xie(t),D=p.root??"div",P=ic({elementType:D,externalSlotProps:f.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:m},ownerState:t,className:O.root});return Se.jsx(D,{...P,children:typeof l=="function"?l(M):l})}),Tie=ge.forwardRef(function(t,n){const{anchorEl:r,children:l,container:i,direction:o="ltr",disablePortal:a=!1,keepMounted:s=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:f=wie,popperRef:p,style:h,transition:g=!1,slotProps:b={},slots:v={},...m}=t,[y,x]=ge.useState(!0),_=()=>{x(!1)},w=()=>{x(!0)};if(!s&&!c&&(!g||y))return null;let S;if(i)S=i;else if(r){const T=kS(r);S=T&&bie(T)?qa(T).body:qa(null).body}const k=!c&&s&&(!g||y)?"none":void 0,C=g?{in:c,onEnter:_,onExited:w}:void 0;return Se.jsx(Mz,{disablePortal:a,container:S,children:Se.jsx(_ie,{anchorEl:r,direction:o,disablePortal:a,modifiers:u,ref:n,open:g?!y:c,placement:d,popperOptions:f,popperRef:p,slotProps:b,slots:v,...m,style:{position:"fixed",top:0,left:0,display:k,...h},TransitionProps:C,children:l})})}),Sie=Dt(Tie,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),c5=ge.forwardRef(function(t,n){const r=Tc(),l=jn({props:t,name:"MuiPopper"}),{anchorEl:i,component:o,components:a,componentsProps:s,container:u,disablePortal:c,keepMounted:d,modifiers:f,open:p,placement:h,popperOptions:g,popperRef:b,transition:v,slots:m,slotProps:y,...x}=l,_=(m==null?void 0:m.root)??(a==null?void 0:a.Root),w={anchorEl:i,container:u,disablePortal:c,keepMounted:d,modifiers:f,open:p,placement:h,popperOptions:g,popperRef:b,transition:v,...x};return Se.jsx(Sie,{as:o,direction:r?"rtl":"ltr",slots:{root:_},slotProps:y??s,...w,ref:n})}),kie=kr(Se.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function Pz(e){return gn("MuiChip",e)}const Cie=fn("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),rr=Cie,Mie=e=>{const{classes:t,disabled:n,size:r,color:l,iconColor:i,onDelete:o,clickable:a,variant:s}=e,u={root:["root",s,n&&"disabled",`size${Qt(r)}`,`color${Qt(l)}`,a&&"clickable",a&&`clickableColor${Qt(l)}`,o&&"deletable",o&&`deletableColor${Qt(l)}`,`${s}${Qt(l)}`],label:["label",`label${Qt(r)}`],avatar:["avatar",`avatar${Qt(r)}`,`avatarColor${Qt(l)}`],icon:["icon",`icon${Qt(r)}`,`iconColor${Qt(i)}`],deleteIcon:["deleteIcon",`deleteIcon${Qt(r)}`,`deleteIconColor${Qt(l)}`,`deleteIcon${Qt(s)}Color${Qt(l)}`]};return vn(u,Pz,t)},Pie=Dt("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:l,clickable:i,onDelete:o,size:a,variant:s}=n;return[{[`& .${rr.avatar}`]:t.avatar},{[`& .${rr.avatar}`]:t[`avatar${Qt(a)}`]},{[`& .${rr.avatar}`]:t[`avatarColor${Qt(r)}`]},{[`& .${rr.icon}`]:t.icon},{[`& .${rr.icon}`]:t[`icon${Qt(a)}`]},{[`& .${rr.icon}`]:t[`iconColor${Qt(l)}`]},{[`& .${rr.deleteIcon}`]:t.deleteIcon},{[`& .${rr.deleteIcon}`]:t[`deleteIcon${Qt(a)}`]},{[`& .${rr.deleteIcon}`]:t[`deleteIconColor${Qt(r)}`]},{[`& .${rr.deleteIcon}`]:t[`deleteIcon${Qt(s)}Color${Qt(r)}`]},t.root,t[`size${Qt(a)}`],t[`color${Qt(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${Qt(r)})`],o&&t.deletable,o&&r!=="default"&&t[`deletableColor${Qt(r)}`],t[s],t[`${s}${Qt(r)}`]]}})(Fn(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${rr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${rr.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${rr.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${rr.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${rr.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${rr.icon}`]:{marginLeft:5,marginRight:-6},[`& .${rr.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:ar(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:ar(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${rr.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${rr.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(ra(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${rr.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:ar(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${rr.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${rr.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${rr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ar(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(ra(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${rr.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ar(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${rr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ar(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(ra(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${rr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${rr.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${rr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${rr.avatar}`]:{marginLeft:4},[`& .${rr.avatarSmall}`]:{marginLeft:2},[`& .${rr.icon}`]:{marginLeft:4},[`& .${rr.iconSmall}`]:{marginLeft:2},[`& .${rr.deleteIcon}`]:{marginRight:5},[`& .${rr.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(ra()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:ar(e.palette[n].main,.7)}`,[`&.${rr.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ar(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${rr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:ar(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${rr.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:ar(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),Oie=Dt("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Qt(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function JA(e){return e.key==="Backspace"||e.key==="Delete"}const Aie=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiChip"}),{avatar:l,className:i,clickable:o,color:a="default",component:s,deleteIcon:u,disabled:c=!1,icon:d,label:f,onClick:p,onDelete:h,onKeyDown:g,onKeyUp:b,size:v="medium",variant:m="filled",tabIndex:y,skipFocusWhenDisabled:x=!1,..._}=r,w=ge.useRef(null),S=Er(w,n),k=j=>{j.stopPropagation(),h&&h(j)},C=j=>{j.currentTarget===j.target&&JA(j)&&j.preventDefault(),g&&g(j)},T=j=>{j.currentTarget===j.target&&h&&JA(j)&&h(j),b&&b(j)},M=o!==!1&&p?!0:o,O=M||h?Nl:s||"div",D={...r,component:O,disabled:c,size:v,color:a,iconColor:ge.isValidElement(d)&&d.props.color||a,onDelete:!!h,clickable:M,variant:m},P=Mie(D),E=O===Nl?{component:s||"div",focusVisibleClassName:P.focusVisible,...h&&{disableRipple:!0}}:{};let I=null;h&&(I=u&&ge.isValidElement(u)?ge.cloneElement(u,{className:ln(u.props.className,P.deleteIcon),onClick:k}):Se.jsx(kie,{className:ln(P.deleteIcon),onClick:k}));let A=null;l&&ge.isValidElement(l)&&(A=ge.cloneElement(l,{className:ln(P.avatar,l.props.className)}));let F=null;return d&&ge.isValidElement(d)&&(F=ge.cloneElement(d,{className:ln(P.icon,d.props.className)})),Se.jsxs(Pie,{as:O,className:ln(P.root,i),disabled:M&&c?!0:void 0,onClick:p,onKeyDown:C,onKeyUp:T,ref:S,tabIndex:x&&c?-1:y,ownerState:D,...E,..._,children:[A||F,Se.jsx(Oie,{className:ln(P.label),ownerState:D,children:f}),I]})}),Die=Aie,Eie=Object.freeze(Object.defineProperty({__proto__:null,chipClasses:rr,default:Die,getChipUtilityClass:Pz},Symbol.toStringTag,{value:"Module"}));function b0(e){return parseInt(e,10)||0}const Rie={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Lie(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const Iie=ge.forwardRef(function(t,n){const{onChange:r,maxRows:l,minRows:i=1,style:o,value:a,...s}=t,{current:u}=ge.useRef(a!=null),c=ge.useRef(null),d=Er(n,c),f=ge.useRef(null),p=ge.useRef(null),h=ge.useCallback(()=>{const v=c.current,y=Ni(v).getComputedStyle(v);if(y.width==="0px")return{outerHeightStyle:0,overflowing:!1};const x=p.current;x.style.width=y.width,x.value=v.value||t.placeholder||"x",x.value.slice(-1)===` +`&&(x.value+=" ");const _=y.boxSizing,w=b0(y.paddingBottom)+b0(y.paddingTop),S=b0(y.borderBottomWidth)+b0(y.borderTopWidth),k=x.scrollHeight;x.value="x";const C=x.scrollHeight;let T=k;i&&(T=Math.max(Number(i)*C,T)),l&&(T=Math.min(Number(l)*C,T)),T=Math.max(T,C);const M=T+(_==="border-box"?w+S:0),O=Math.abs(T-k)<=1;return{outerHeightStyle:M,overflowing:O}},[l,i,t.placeholder]),g=ge.useCallback(()=>{const v=h();if(Lie(v))return;const m=v.outerHeightStyle,y=c.current;f.current!==m&&(f.current=m,y.style.height=`${m}px`),y.style.overflow=v.overflowing?"hidden":""},[h]);Vo(()=>{const v=()=>{g()};let m;const y=ug(v),x=c.current,_=Ni(x);_.addEventListener("resize",y);let w;return typeof ResizeObserver<"u"&&(w=new ResizeObserver(v),w.observe(x)),()=>{y.clear(),cancelAnimationFrame(m),_.removeEventListener("resize",y),w&&w.disconnect()}},[h,g]),Vo(()=>{g()});const b=v=>{u||g(),r&&r(v)};return Se.jsxs(ge.Fragment,{children:[Se.jsx("textarea",{value:a,onChange:b,ref:d,rows:i,style:o,...s}),Se.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:{...Rie.shadow,...o,paddingTop:0,paddingBottom:0}})]})});function _y(e){return typeof e=="string"}function mu({props:e,states:t,muiFormControl:n}){return t.reduce((r,l)=>(r[l]=e[l],n&&typeof e[l]>"u"&&(r[l]=n[l]),r),{})}const Tb=ge.createContext(void 0);function ll(){return ge.useContext(Tb)}function e7(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Ty(e,t=!1){return e&&(e7(e.value)&&e.value!==""||t&&e7(e.defaultValue)&&e.defaultValue!=="")}function $ie(e){return e.startAdornment}function Nie(e){return gn("MuiInputBase",e)}const Qd=fn("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var t7;const Sb=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Qt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},kb=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Fie=e=>{const{classes:t,color:n,disabled:r,error:l,endAdornment:i,focused:o,formControl:a,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:f,startAdornment:p,type:h}=e,g={root:["root",`color${Qt(n)}`,r&&"disabled",l&&"error",s&&"fullWidth",o&&"focused",a&&"formControl",f&&f!=="medium"&&`size${Qt(f)}`,c&&"multiline",p&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",h==="search"&&"inputTypeSearch",c&&"inputMultiline",f==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",p&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return vn(g,Nie,t)},Cb=Dt("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Sb})(Fn(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Qd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Mb=Dt("input",{name:"MuiInputBase",slot:"Input",overridesResolver:kb})(Fn(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},l=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Qd.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":l,"&:focus::-moz-placeholder":l,"&:focus::-ms-input-placeholder":l},[`&.${Qd.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),n7=JM({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Pb=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiInputBase"}),{"aria-describedby":l,autoComplete:i,autoFocus:o,className:a,color:s,components:u={},componentsProps:c={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:p,endAdornment:h,error:g,fullWidth:b=!1,id:v,inputComponent:m="input",inputProps:y={},inputRef:x,margin:_,maxRows:w,minRows:S,multiline:k=!1,name:C,onBlur:T,onChange:M,onClick:O,onFocus:D,onKeyDown:P,onKeyUp:E,placeholder:I,readOnly:A,renderSuffix:F,rows:j,size:B,slotProps:z={},slots:N={},startAdornment:R,type:q="text",value:Y,...L}=r,W=y.value!=null?y.value:Y,{current:H}=ge.useRef(W!=null),G=ge.useRef(),te=ge.useCallback(_e=>{},[]),ee=Er(G,x,y.ref,te),[U,Q]=ge.useState(!1),V=ll(),X=mu({props:r,muiFormControl:V,states:["color","disabled","error","hiddenLabel","size","required","filled"]});X.focused=V?V.focused:U,ge.useEffect(()=>{!V&&f&&U&&(Q(!1),T&&T())},[V,f,U,T]);const K=V&&V.onFilled,ne=V&&V.onEmpty,ae=ge.useCallback(_e=>{Ty(_e)?K&&K():ne&&ne()},[K,ne]);Vo(()=>{H&&ae({value:W})},[W,ae,H]);const ie=_e=>{D&&D(_e),y.onFocus&&y.onFocus(_e),V&&V.onFocus?V.onFocus(_e):Q(!0)},se=_e=>{T&&T(_e),y.onBlur&&y.onBlur(_e),V&&V.onBlur?V.onBlur(_e):Q(!1)},pe=(_e,...ue)=>{if(!H){const me=_e.target||G.current;if(me==null)throw new Error(Ho(1));ae({value:me.value})}y.onChange&&y.onChange(_e,...ue),M&&M(_e,...ue)};ge.useEffect(()=>{ae(G.current)},[]);const ke=_e=>{G.current&&_e.currentTarget===_e.target&&G.current.focus(),O&&O(_e)};let Ce=m,Oe=y;k&&Ce==="input"&&(j?Oe={type:void 0,minRows:j,maxRows:j,...Oe}:Oe={type:void 0,maxRows:w,minRows:S,...Oe},Ce=Iie);const Pe=_e=>{ae(_e.animationName==="mui-auto-fill-cancel"?G.current:{value:"x"})};ge.useEffect(()=>{V&&V.setAdornedStart(!!R)},[V,R]);const ce={...r,color:X.color||"primary",disabled:X.disabled,endAdornment:h,error:X.error,focused:X.focused,formControl:V,fullWidth:b,hiddenLabel:X.hiddenLabel,multiline:k,size:X.size,startAdornment:R,type:q},we=Fie(ce),Z=N.root||u.Root||Cb,re=z.root||c.root||{},de=N.input||u.Input||Mb;return Oe={...Oe,...z.input??c.input},Se.jsxs(ge.Fragment,{children:[!p&&typeof n7=="function"&&(t7||(t7=Se.jsx(n7,{}))),Se.jsxs(Z,{...re,ref:n,onClick:ke,...L,...!_y(Z)&&{ownerState:{...ce,...re.ownerState}},className:ln(we.root,re.className,a,A&&"MuiInputBase-readOnly"),children:[R,Se.jsx(Tb.Provider,{value:null,children:Se.jsx(de,{"aria-invalid":X.error,"aria-describedby":l,autoComplete:i,autoFocus:o,defaultValue:d,disabled:X.disabled,id:v,onAnimationStart:Pe,name:C,placeholder:I,readOnly:A,required:X.required,rows:j,value:W,onKeyDown:P,onKeyUp:E,type:q,...Oe,...!_y(de)&&{as:Ce,ownerState:{...ce,...Oe.ownerState}},ref:ee,className:ln(we.input,Oe.className,A&&"MuiInputBase-readOnly"),onBlur:se,onChange:pe,onFocus:ie})}),h,F?F({...X,startAdornment:R}):null]})]})});function jie(e){return gn("MuiInput",e)}const fp={...Qd,...fn("MuiInput",["root","underline","input"])};function zie(e){return gn("MuiOutlinedInput",e)}const vl={...Qd,...fn("MuiOutlinedInput",["root","notchedOutline","input"])};function Bie(e){return gn("MuiFilledInput",e)}const _u={...Qd,...fn("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},Wie=kr(Se.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),qie={entering:{opacity:1},entered:{opacity:1}},Ob=ge.forwardRef(function(t,n){const r=pi(),l={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:o=!0,children:a,easing:s,in:u,onEnter:c,onEntered:d,onEntering:f,onExit:p,onExited:h,onExiting:g,style:b,timeout:v=l,TransitionComponent:m=qi,...y}=t,x=ge.useRef(null),_=Er(x,_f(a),n),w=P=>E=>{if(P){const I=x.current;E===void 0?P(I):P(I,E)}},S=w(f),k=w((P,E)=>{fz(P);const I=Gd({style:b,timeout:v,easing:s},{mode:"enter"});P.style.webkitTransition=r.transitions.create("opacity",I),P.style.transition=r.transitions.create("opacity",I),c&&c(P,E)}),C=w(d),T=w(g),M=w(P=>{const E=Gd({style:b,timeout:v,easing:s},{mode:"exit"});P.style.webkitTransition=r.transitions.create("opacity",E),P.style.transition=r.transitions.create("opacity",E),p&&p(P)}),O=w(h),D=P=>{i&&i(x.current,P)};return Se.jsx(m,{appear:o,in:u,nodeRef:x,onEnter:k,onEntered:C,onEntering:S,onExit:M,onExited:O,onExiting:T,addEndListener:D,timeout:v,...y,children:(P,E)=>ge.cloneElement(a,{style:{opacity:0,visibility:P==="exited"&&!u?"hidden":void 0,...qie[P],...b,...a.props.style},ref:_,...E})})});function Uie(e){return gn("MuiBackdrop",e)}fn("MuiBackdrop",["root","invisible"]);const Hie=e=>{const{ownerState:t,...n}=e;return n},Vie=e=>{const{classes:t,invisible:n}=e;return vn({root:["root",n&&"invisible"]},Uie,t)},Gie=Dt("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Oz=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiBackdrop"}),{children:l,className:i,component:o="div",invisible:a=!1,open:s,components:u={},componentsProps:c={},slotProps:d={},slots:f={},TransitionComponent:p,transitionDuration:h,...g}=r,b={...r,component:o,invisible:a},v=Vie(b),m={transition:p,root:u.Root,...f},y={...c,...d},x={slots:m,slotProps:y},[_,w]=Io("root",{elementType:Gie,externalForwardedProps:x,className:ln(v.root,i),ownerState:b}),[S,k]=Io("transition",{elementType:Ob,externalForwardedProps:x,ownerState:b}),C=Hie(k);return Se.jsx(S,{in:s,timeout:h,...g,...C,children:Se.jsx(_,{"aria-hidden":!0,...w,classes:v,ref:n,children:l})})}),Az=fn("MuiBox",["root"]),Yie=Sc(),Ia=mne({themeId:Di,defaultTheme:Yie,defaultClassName:Az.root,generateClassName:jM.generate}),Xie=Object.freeze(Object.defineProperty({__proto__:null,boxClasses:Az,default:Ia},Symbol.toStringTag,{value:"Module"}));function Dz(e){return gn("MuiButton",e)}const Kie=fn("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Du=Kie,Zie=ge.createContext({}),Qie=ge.createContext(void 0),Jie=e=>{const{color:t,disableElevation:n,fullWidth:r,size:l,variant:i,classes:o}=e,a={root:["root",i,`${i}${Qt(t)}`,`size${Qt(l)}`,`${i}Size${Qt(l)}`,`color${Qt(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Qt(l)}`],endIcon:["icon","endIcon",`iconSize${Qt(l)}`]},s=vn(a,Dz,o);return{...o,...s}},Ez=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],ele=Dt(Nl,{shouldForwardProp:e=>Go(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Qt(n.color)}`],t[`size${Qt(n.size)}`],t[`${n.variant}Size${Qt(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(Fn(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Du.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Du.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Du.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Du.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(ra()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.5)`:ar(e.palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ar(e.palette[r].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ar(e.palette[r].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ar(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ar(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Du.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Du.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),tle=Dt("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Qt(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...Ez]}),nle=Dt("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Qt(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...Ez]}),rle=ge.forwardRef(function(t,n){const r=ge.useContext(Zie),l=ge.useContext(Qie),i=_m(r,t),o=jn({props:i,name:"MuiButton"}),{children:a,color:s="primary",component:u="button",className:c,disabled:d=!1,disableElevation:f=!1,disableFocusRipple:p=!1,endIcon:h,focusVisibleClassName:g,fullWidth:b=!1,size:v="medium",startIcon:m,type:y,variant:x="text",..._}=o,w={...o,color:s,component:u,disabled:d,disableElevation:f,disableFocusRipple:p,fullWidth:b,size:v,type:y,variant:x},S=Jie(w),k=m&&Se.jsx(tle,{className:S.startIcon,ownerState:w,children:m}),C=h&&Se.jsx(nle,{className:S.endIcon,ownerState:w,children:h}),T=l||"";return Se.jsxs(ele,{ownerState:w,className:ln(r.className,S.root,c,T),component:u,disabled:d,focusRipple:!p,focusVisibleClassName:ln(S.focusVisible,g),ref:n,type:y,..._,classes:S,children:[k,a,C]})}),tl=rle,ale=Object.freeze(Object.defineProperty({__proto__:null,buttonClasses:Du,default:tl,getButtonUtilityClass:Dz},Symbol.toStringTag,{value:"Module"}));function ole(e){return gn("MuiCard",e)}fn("MuiCard",["root"]);const ile=e=>{const{classes:t}=e;return vn({root:["root"]},ole,t)},lle=Dt(pu,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),sle=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiCard"}),{className:l,raised:i=!1,...o}=r,a={...r,raised:i},s=ile(a);return Se.jsx(lle,{className:ln(s.root,l),elevation:i?8:void 0,ref:n,ownerState:a,...o})});function ule(e){return gn("MuiCardContent",e)}fn("MuiCardContent",["root"]);const cle=e=>{const{classes:t}=e;return vn({root:["root"]},ule,t)},dle=Dt("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),fle=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiCardContent"}),{className:l,component:i="div",...o}=r,a={...r,component:i},s=cle(a);return Se.jsx(dle,{as:i,className:ln(s.root,l),ownerState:a,ref:n,...o})});function ple(e){return gn("PrivateSwitchBase",e)}fn("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const hle=e=>{const{classes:t,checked:n,disabled:r,edge:l}=e,i={root:["root",n&&"checked",r&&"disabled",l&&`edge${Qt(l)}`],input:["input"]};return vn(i,ple,t)},mle=Dt(Nl)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),gle=Dt("input",{shouldForwardProp:Go})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),vle=ge.forwardRef(function(t,n){const{autoFocus:r,checked:l,checkedIcon:i,className:o,defaultChecked:a,disabled:s,disableFocusRipple:u=!1,edge:c=!1,icon:d,id:f,inputProps:p,inputRef:h,name:g,onBlur:b,onChange:v,onFocus:m,readOnly:y,required:x=!1,tabIndex:_,type:w,value:S,...k}=t,[C,T]=ou({controlled:l,default:!!a,name:"SwitchBase",state:"checked"}),M=ll(),O=j=>{m&&m(j),M&&M.onFocus&&M.onFocus(j)},D=j=>{b&&b(j),M&&M.onBlur&&M.onBlur(j)},P=j=>{if(j.nativeEvent.defaultPrevented)return;const B=j.target.checked;T(B),v&&v(j,B)};let E=s;M&&typeof E>"u"&&(E=M.disabled);const I=w==="checkbox"||w==="radio",A={...t,checked:C,disabled:E,disableFocusRipple:u,edge:c},F=hle(A);return Se.jsxs(mle,{component:"span",className:ln(F.root,o),centerRipple:!0,focusRipple:!u,disabled:E,tabIndex:null,role:void 0,onFocus:O,onBlur:D,ownerState:A,ref:n,...k,children:[Se.jsx(gle,{autoFocus:r,checked:l,defaultChecked:a,className:F.input,disabled:E,id:I?f:void 0,name:g,onChange:P,readOnly:y,ref:h,required:x,ownerState:A,tabIndex:_,type:w,...w==="checkbox"&&S===void 0?{}:{value:S},...p}),C?i:d]})}),yle=kr(Se.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),ble=kr(Se.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),xle=kr(Se.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Rz(e){return gn("MuiCheckbox",e)}const wle=fn("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),gv=wle,_le=e=>{const{classes:t,indeterminate:n,color:r,size:l}=e,i={root:["root",n&&"indeterminate",`color${Qt(r)}`,`size${Qt(l)}`]},o=vn(i,Rz,t);return{...t,...o}},Tle=Dt(vle,{shouldForwardProp:e=>Go(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Qt(n.size)}`],n.color!=="default"&&t[`color${Qt(n.color)}`]]}})(Fn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ar(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(ra()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ar(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(ra()).map(([t])=>({props:{color:t},style:{[`&.${gv.checked}, &.${gv.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${gv.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),Sle=Se.jsx(ble,{}),kle=Se.jsx(yle,{}),Cle=Se.jsx(xle,{}),Mle=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiCheckbox"}),{checkedIcon:l=Sle,color:i="primary",icon:o=kle,indeterminate:a=!1,indeterminateIcon:s=Cle,inputProps:u,size:c="medium",disableRipple:d=!1,className:f,...p}=r,h=a?s:o,g=a?s:l,b={...r,disableRipple:d,color:i,indeterminate:a,size:c},v=_le(b);return Se.jsx(Tle,{type:"checkbox",inputProps:{"data-indeterminate":a,...u},icon:ge.cloneElement(h,{fontSize:h.props.fontSize??c}),checkedIcon:ge.cloneElement(g,{fontSize:g.props.fontSize??c}),ownerState:b,ref:n,className:ln(v.root,f),disableRipple:d,...p,classes:v})}),Ple=Mle,Ole=Object.freeze(Object.defineProperty({__proto__:null,checkboxClasses:gv,default:Ple,getCheckboxUtilityClass:Rz},Symbol.toStringTag,{value:"Module"}));function Lz(e){return gn("MuiCircularProgress",e)}const Ale=fn("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]),Dle=Ale,Ps=44,CS=il` 0% { transform: rotate(0deg); } @@ -158,7 +178,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann 100% { transform: rotate(360deg); } -`)),Rle=Hi(h8||(h8=lb` +`,MS=il` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -173,11 +193,11 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`)),Lle=e=>{const{classes:t,variant:n,color:r,disableShrink:l}=e,i={root:["root",n,`color${Jt(r)}`],svg:["svg"],circle:["circle",`circle${Jt(n)}`,l&&"circleDisableShrink"]};return vn(i,Yj,t)},Ile=Et("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Jt(n.color)}`]]}})(({ownerState:e,theme:t})=>Ie({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&Jl(m8||(m8=lb` - animation: ${0} 1.4s linear infinite; - `),Ele)),$le=Et("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Nle=Et("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Jt(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>Ie({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Jl(g8||(g8=lb` - animation: ${0} 1.4s ease-in-out infinite; - `),Rle)),Fle=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiCircularProgress"}),{className:l,color:i="primary",disableShrink:o=!1,size:a=40,style:s,thickness:u=3.6,value:c=0,variant:d="indeterminate"}=r,f=Kt(r,Dle),p=Ie({},r,{color:i,disableShrink:o,size:a,thickness:u,value:c,variant:d}),m=Lle(p),g={},b={},v={};if(d==="determinate"){const h=2*Math.PI*((ws-u)/2);g.strokeDasharray=h.toFixed(3),v["aria-valuenow"]=Math.round(c),g.strokeDashoffset=`${((100-c)/100*h).toFixed(3)}px`,b.transform="rotate(-90deg)"}return ke.jsx(Ile,Ie({className:on(m.root,l),style:Ie({width:a,height:a},b,s),ownerState:p,ref:n,role:"progressbar"},v,f,{children:ke.jsx($le,{className:m.svg,ownerState:p,viewBox:`${ws/2} ${ws/2} ${ws} ${ws}`,children:ke.jsx(Nle,{className:m.circle,style:g,ownerState:p,cx:ws,cy:ws,r:(ws-u)/2,fill:"none",strokeWidth:u})})}))}),Xj=Fle,jle=Object.freeze(Object.defineProperty({__proto__:null,circularProgressClasses:Ale,default:Xj,getCircularProgressUtilityClass:Yj},Symbol.toStringTag,{value:"Module"}));function zle(e){return yn("MuiModal",e)}hn("MuiModal",["root","hidden","backdrop"]);const Ble=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Wle=e=>{const{open:t,exited:n,classes:r}=e;return vn({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},zle,r)},qle=Et("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>Ie({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Ule=Et(Uj,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Kj=ge.forwardRef(function(t,n){var r,l,i,o,a,s;const u=pn({name:"MuiModal",props:t}),{BackdropComponent:c=Ule,BackdropProps:d,className:f,closeAfterTransition:p=!1,children:m,container:g,component:b,components:v={},componentsProps:h={},disableAutoFocus:y=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:_=!1,disablePortal:x=!1,disableRestoreFocus:T=!1,disableScrollLock:k=!1,hideBackdrop:S=!1,keepMounted:C=!1,onBackdropClick:M,open:O,slotProps:D,slots:P}=u,E=Kt(u,Ble),I=Ie({},u,{closeAfterTransition:p,disableAutoFocus:y,disableEnforceFocus:w,disableEscapeKeyDown:_,disablePortal:x,disableRestoreFocus:T,disableScrollLock:k,hideBackdrop:S,keepMounted:C}),{getRootProps:A,getBackdropProps:F,getTransitionProps:j,portalRef:z,isTopModal:B,exited:N,hasTransition:R}=cie(Ie({},I,{rootRef:n})),q=Ie({},I,{exited:N}),Y=Wle(q),L={};if(m.props.tabIndex===void 0&&(L.tabIndex="-1"),R){const{onEnter:Z,onExited:G}=j();L.onEnter=Z,L.onExited=G}const W=(r=(l=P==null?void 0:P.root)!=null?l:v.Root)!=null?r:qle,U=(i=(o=P==null?void 0:P.backdrop)!=null?o:v.Backdrop)!=null?i:c,V=(a=D==null?void 0:D.root)!=null?a:h.root,te=(s=D==null?void 0:D.backdrop)!=null?s:h.backdrop,ee=Ui({elementType:W,externalSlotProps:V,externalForwardedProps:E,getSlotProps:A,additionalProps:{ref:n,as:b},ownerState:q,className:on(f,V==null?void 0:V.className,Y==null?void 0:Y.root,!q.open&&q.exited&&(Y==null?void 0:Y.hidden))}),H=Ui({elementType:U,externalSlotProps:te,additionalProps:d,getSlotProps:Z=>F(Ie({},Z,{onClick:G=>{M&&M(G),Z!=null&&Z.onClick&&Z.onClick(G)}})),className:on(te==null?void 0:te.className,d==null?void 0:d.className,Y==null?void 0:Y.backdrop),ownerState:q});return!C&&!O&&(!R||N)?null:ke.jsx(Wj,{ref:z,container:g,disablePortal:x,children:ke.jsxs(W,Ie({},ee,{children:[!S&&c?ke.jsx(U,Ie({},H)):null,ke.jsx(Ej,{disableEnforceFocus:w,disableAutoFocus:y,disableRestoreFocus:T,isEnabled:B,open:O,children:ge.cloneElement(m,L)})]}))})});function Hle(e){return yn("MuiDialog",e)}const Eh=hn("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Vle=ge.createContext({}),Gle=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Yle=Et(Uj,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Xle=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:l,fullScreen:i}=e,o={root:["root"],container:["container",`scroll${Jt(n)}`],paper:["paper",`paperScroll${Jt(n)}`,`paperWidth${Jt(String(r))}`,l&&"paperFullWidth",i&&"paperFullScreen"]};return vn(o,Hle,t)},Kle=Et(Kj,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Zle=Et("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Jt(n.scroll)}`]]}})(({ownerState:e})=>Ie({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),Qle=Et(nu,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Jt(n.scroll)}`],t[`paperWidth${Jt(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>Ie({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Eh.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Eh.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Eh.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Jle=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiDialog"}),l=po(),i={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{"aria-describedby":o,"aria-labelledby":a,BackdropComponent:s,BackdropProps:u,children:c,className:d,disableEscapeKeyDown:f=!1,fullScreen:p=!1,fullWidth:m=!1,maxWidth:g="sm",onBackdropClick:b,onClose:v,open:h,PaperComponent:y=nu,PaperProps:w={},scroll:_="paper",TransitionComponent:x=ib,transitionDuration:T=i,TransitionProps:k}=r,S=Kt(r,Gle),C=Ie({},r,{disableEscapeKeyDown:f,fullScreen:p,fullWidth:m,maxWidth:g,scroll:_}),M=Xle(C),O=ge.useRef(),D=A=>{O.current=A.target===A.currentTarget},P=A=>{O.current&&(O.current=null,b&&b(A),v&&v(A,"backdropClick"))},E=Kl(a),I=ge.useMemo(()=>({titleId:E}),[E]);return ke.jsx(Kle,Ie({className:on(M.root,d),closeAfterTransition:!0,components:{Backdrop:Yle},componentsProps:{backdrop:Ie({transitionDuration:T,as:s},u)},disableEscapeKeyDown:f,onClose:v,open:h,ref:n,onClick:P,ownerState:C},S,{children:ke.jsx(x,Ie({appear:!0,in:h,timeout:T,role:"presentation"},k,{children:ke.jsx(Zle,{className:on(M.container),onMouseDown:D,ownerState:C,children:ke.jsx(Qle,Ie({as:y,elevation:24,role:"dialog","aria-describedby":o,"aria-labelledby":E},w,{className:on(M.paper,w.className),ownerState:C,children:ke.jsx(Vle.Provider,{value:I,children:c})}))})}))}))});function ese(e){return yn("MuiDialogActions",e)}hn("MuiDialogActions",["root","spacing"]);const tse=["className","disableSpacing"],nse=e=>{const{classes:t,disableSpacing:n}=e;return vn({root:["root",!n&&"spacing"]},ese,t)},rse=Et("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>Ie({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),ase=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiDialogActions"}),{className:l,disableSpacing:i=!1}=r,o=Kt(r,tse),a=Ie({},r,{disableSpacing:i}),s=nse(a);return ke.jsx(rse,Ie({className:on(s.root,l),ownerState:a,ref:n},o))});function ose(e){return yn("MuiDialogContent",e)}hn("MuiDialogContent",["root","dividers"]);const ise=hn("MuiDialogTitle",["root"]),lse=["className","dividers"],sse=e=>{const{classes:t,dividers:n}=e;return vn({root:["root",n&&"dividers"]},ose,t)},use=Et("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>Ie({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${ise.root} + &`]:{paddingTop:0}})),cse=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiDialogContent"}),{className:l,dividers:i=!1}=r,o=Kt(r,lse),a=Ie({},r,{dividers:i}),s=sse(a);return ke.jsx(use,Ie({className:on(s.root,l),ownerState:a,ref:n},o))}),v8=hn("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),dse=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],fse=e=>{const{classes:t,disableUnderline:n}=e,l=vn({root:["root",!n&&"underline"],input:["input"]},Rie,t);return Ie({},t,l)},pse=Et(rb,{shouldForwardProp:e=>Vi(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...tb(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",l=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Ie({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${du.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${du.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${du.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${du.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:l}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${du.disabled}, .${du.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${du.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Ie({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),hse=Et(ab,{name:"MuiFilledInput",slot:"Input",overridesResolver:nb})(({theme:e,ownerState:t})=>Ie({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),xM=ge.forwardRef(function(t,n){var r,l,i,o;const a=pn({props:t,name:"MuiFilledInput"}),{components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:f=!1,slotProps:p,slots:m={},type:g="text"}=a,b=Kt(a,dse),v=Ie({},a,{fullWidth:c,inputComponent:d,multiline:f,type:g}),h=fse(a),y={root:{ownerState:v},input:{ownerState:v}},w=p??u?ha(p??u,y):y,_=(r=(l=m.root)!=null?l:s.Root)!=null?r:pse,x=(i=(o=m.input)!=null?o:s.Input)!=null?i:hse;return ke.jsx(ob,Ie({slots:{root:_,input:x},componentsProps:w,fullWidth:c,inputComponent:d,multiline:f,ref:n,type:g},b,{classes:h}))});xM.muiName="Input";function Zj(e){return yn("MuiFormControl",e)}const mse=hn("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]),gse=mse,vse=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],yse=e=>{const{classes:t,margin:n,fullWidth:r}=e,l={root:["root",n!=="none"&&`margin${Jt(n)}`,r&&"fullWidth"]};return vn(l,Zj,t)},bse=Et("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>Ie({},t.root,t[`margin${Jt(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>Ie({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),xse=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiFormControl"}),{children:l,className:i,color:o="primary",component:a="div",disabled:s=!1,error:u=!1,focused:c,fullWidth:d=!1,hiddenLabel:f=!1,margin:p="none",required:m=!1,size:g="medium",variant:b="outlined"}=r,v=Kt(r,vse),h=Ie({},r,{color:o,component:a,disabled:s,error:u,fullWidth:d,hiddenLabel:f,margin:p,required:m,size:g,variant:b}),y=yse(h),[w,_]=ge.useState(()=>{let D=!1;return l&&ge.Children.forEach(l,P=>{if(!G0(P,["Input","Select"]))return;const E=G0(P,["Select"])?P.props.input:P;E&&Cie(E.props)&&(D=!0)}),D}),[x,T]=ge.useState(()=>{let D=!1;return l&&ge.Children.forEach(l,P=>{G0(P,["Input","Select"])&&(ny(P.props,!0)||ny(P.props.inputProps,!0))&&(D=!0)}),D}),[k,S]=ge.useState(!1);s&&k&&S(!1);const C=c!==void 0&&!s?c:k;let M;const O=ge.useMemo(()=>({adornedStart:w,setAdornedStart:_,color:o,disabled:s,error:u,filled:x,focused:C,fullWidth:d,hiddenLabel:f,size:g,onBlur:()=>{S(!1)},onEmpty:()=>{T(!1)},onFilled:()=>{T(!0)},onFocus:()=>{S(!0)},registerEffect:M,required:m,variant:b}),[w,o,s,u,x,C,d,f,M,m,g,b]);return ke.jsx(eb.Provider,{value:O,children:ke.jsx(bse,Ie({as:a,ownerState:h,className:on(y.root,i),ref:n},v,{children:l}))})}),Qj=xse,wse=Object.freeze(Object.defineProperty({__proto__:null,default:Qj,formControlClasses:gse,getFormControlUtilityClasses:Zj,useFormControl:Gi},Symbol.toStringTag,{value:"Module"})),_se=fne({createStyledComponent:Et("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>pn({props:e,name:"MuiStack"})});function Jj(e){return yn("MuiFormControlLabel",e)}const Tse=hn("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),ud=Tse,kse=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Sse=e=>{const{classes:t,disabled:n,labelPlacement:r,error:l,required:i}=e,o={root:["root",n&&"disabled",`labelPlacement${Jt(r)}`,l&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",l&&"error"]};return vn(o,Jj,t)},Cse=Et("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ud.label}`]:t.label},t.root,t[`labelPlacement${Jt(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>Ie({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${ud.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${ud.label}`]:{[`&.${ud.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),Mse=Et("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${ud.error}`]:{color:(e.vars||e).palette.error.main}})),Pse=ge.forwardRef(function(t,n){var r,l;const i=pn({props:t,name:"MuiFormControlLabel"}),{className:o,componentsProps:a={},control:s,disabled:u,disableTypography:c,label:d,labelPlacement:f="end",required:p,slotProps:m={}}=i,g=Kt(i,kse),b=Gi(),v=(r=u??s.props.disabled)!=null?r:b==null?void 0:b.disabled,h=p??s.props.required,y={disabled:v,required:h};["checked","name","onChange","value","inputRef"].forEach(S=>{typeof s.props[S]>"u"&&typeof i[S]<"u"&&(y[S]=i[S])});const w=au({props:i,muiFormControl:b,states:["error"]}),_=Ie({},i,{disabled:v,labelPlacement:f,required:h,error:w.error}),x=Sse(_),T=(l=m.typography)!=null?l:a.typography;let k=d;return k!=null&&k.type!==dr&&!c&&(k=ke.jsx(dr,Ie({component:"span"},T,{className:on(x.label,T==null?void 0:T.className),children:k}))),ke.jsxs(Cse,Ie({className:on(x.root,o),ownerState:_,ref:n},g,{children:[ge.cloneElement(s,y),h?ke.jsxs(_se,{direction:"row",alignItems:"center",children:[k,ke.jsxs(Mse,{ownerState:_,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]}):k]}))}),Ose=Pse,Ase=Object.freeze(Object.defineProperty({__proto__:null,default:Ose,formControlLabelClasses:ud,getFormControlLabelUtilityClasses:Jj},Symbol.toStringTag,{value:"Module"}));function ez(e){return yn("MuiFormGroup",e)}const Dse=hn("MuiFormGroup",["root","row","error"]),Ese=Dse,Rse=["className","row"],Lse=e=>{const{classes:t,row:n,error:r}=e;return vn({root:["root",n&&"row",r&&"error"]},ez,t)},Ise=Et("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>Ie({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),$se=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiFormGroup"}),{className:l,row:i=!1}=r,o=Kt(r,Rse),a=Gi(),s=au({props:r,muiFormControl:a,states:["error"]}),u=Ie({},r,{row:i,error:s.error}),c=Lse(u);return ke.jsx(Ise,Ie({className:on(c.root,l),ownerState:u,ref:n},o))}),Nse=$se,Fse=Object.freeze(Object.defineProperty({__proto__:null,default:Nse,formGroupClasses:Ese,getFormGroupUtilityClass:ez},Symbol.toStringTag,{value:"Module"}));function tz(e){return yn("MuiFormHelperText",e)}const jse=hn("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),X3=jse;var y8;const zse=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Bse=e=>{const{classes:t,contained:n,size:r,disabled:l,error:i,filled:o,focused:a,required:s}=e,u={root:["root",l&&"disabled",i&&"error",r&&`size${Jt(r)}`,n&&"contained",a&&"focused",o&&"filled",s&&"required"]};return vn(u,tz,t)},Wse=Et("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Jt(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>Ie({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${X3.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${X3.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),qse=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiFormHelperText"}),{children:l,className:i,component:o="p"}=r,a=Kt(r,zse),s=Gi(),u=au({props:r,muiFormControl:s,states:["variant","size","disabled","error","filled","focused","required"]}),c=Ie({},r,{component:o,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=Bse(c);return ke.jsx(Wse,Ie({as:o,ownerState:c,className:on(d.root,i),ref:n},a,{children:l===" "?y8||(y8=ke.jsx("span",{className:"notranslate",children:"​"})):l}))}),nz=qse,Use=Object.freeze(Object.defineProperty({__proto__:null,default:nz,formHelperTextClasses:X3,getFormHelperTextUtilityClasses:tz},Symbol.toStringTag,{value:"Module"}));function Hse(e){return yn("MuiFormLabel",e)}const Rh=hn("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Vse=["children","className","color","component","disabled","error","filled","focused","required"],Gse=e=>{const{classes:t,color:n,focused:r,disabled:l,error:i,filled:o,required:a}=e,s={root:["root",`color${Jt(n)}`,l&&"disabled",i&&"error",o&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return vn(s,Hse,t)},Yse=Et("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>Ie({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>Ie({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Rh.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Rh.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Rh.error}`]:{color:(e.vars||e).palette.error.main}})),Xse=Et("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Rh.error}`]:{color:(e.vars||e).palette.error.main}})),Kse=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiFormLabel"}),{children:l,className:i,component:o="label"}=r,a=Kt(r,Vse),s=Gi(),u=au({props:r,muiFormControl:s,states:["color","required","focused","disabled","error","filled"]}),c=Ie({},r,{color:u.color||"primary",component:o,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=Gse(c);return ke.jsxs(Yse,Ie({as:o,ownerState:c,className:on(d.root,i),ref:n},a,{children:[l,u.required&&ke.jsxs(Xse,{ownerState:c,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),b8=ge.createContext();function Zse(e){return yn("MuiGrid",e)}const Qse=[0,1,2,3,4,5,6,7,8,9,10],Jse=["column-reverse","column","row-reverse","row"],eue=["nowrap","wrap-reverse","wrap"],Qf=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],cm=hn("MuiGrid",["root","container","item","zeroMinWidth",...Qse.map(e=>`spacing-xs-${e}`),...Jse.map(e=>`direction-xs-${e}`),...eue.map(e=>`wrap-xs-${e}`),...Qf.map(e=>`grid-xs-${e}`),...Qf.map(e=>`grid-sm-${e}`),...Qf.map(e=>`grid-md-${e}`),...Qf.map(e=>`grid-lg-${e}`),...Qf.map(e=>`grid-xl-${e}`)]),tue=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function xd(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function nue({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,l)=>{let i={};if(t[l]&&(n=t[l]),!n)return r;if(n===!0)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const o=zu({values:t.columns,breakpoints:e.breakpoints.values}),a=typeof o=="object"?o[l]:o;if(a==null)return r;const s=`${Math.round(n/a*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const c=e.spacing(t.columnSpacing);if(c!=="0px"){const d=`calc(${s} + ${xd(c)})`;u={flexBasis:d,maxWidth:d}}}i=Ie({flexBasis:s,flexGrow:0,maxWidth:s},u)}return e.breakpoints.values[l]===0?Object.assign(r,i):r[e.breakpoints.up(l)]=i,r},{})}function rue({theme:e,ownerState:t}){const n=zu({values:t.direction,breakpoints:e.breakpoints.values});return jo({theme:e},n,r=>{const l={flexDirection:r};return r.indexOf("column")===0&&(l[`& > .${cm.item}`]={maxWidth:"none"}),l})}function rz({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(l=>{n===""&&t[l]!==0&&(n=l)});const r=Object.keys(e).sort((l,i)=>e[l]-e[i]);return r.slice(0,r.indexOf(n))}function aue({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let l={};if(n&&r!==0){const i=zu({values:r,breakpoints:e.breakpoints.values});let o;typeof i=="object"&&(o=rz({breakpoints:e.breakpoints.values,values:i})),l=jo({theme:e},i,(a,s)=>{var u;const c=e.spacing(a);return c!=="0px"?{marginTop:`-${xd(c)}`,[`& > .${cm.item}`]:{paddingTop:xd(c)}}:(u=o)!=null&&u.includes(s)?{}:{marginTop:0,[`& > .${cm.item}`]:{paddingTop:0}}})}return l}function oue({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let l={};if(n&&r!==0){const i=zu({values:r,breakpoints:e.breakpoints.values});let o;typeof i=="object"&&(o=rz({breakpoints:e.breakpoints.values,values:i})),l=jo({theme:e},i,(a,s)=>{var u;const c=e.spacing(a);return c!=="0px"?{width:`calc(100% + ${xd(c)})`,marginLeft:`-${xd(c)}`,[`& > .${cm.item}`]:{paddingLeft:xd(c)}}:(u=o)!=null&&u.includes(s)?{}:{width:"100%",marginLeft:0,[`& > .${cm.item}`]:{paddingLeft:0}}})}return l}function iue(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(l=>{const i=e[l];Number(i)>0&&r.push(n[`spacing-${l}-${String(i)}`])}),r}const lue=Et("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:l,item:i,spacing:o,wrap:a,zeroMinWidth:s,breakpoints:u}=n;let c=[];r&&(c=iue(o,u,t));const d=[];return u.forEach(f=>{const p=n[f];p&&d.push(t[`grid-${f}-${String(p)}`])}),[t.root,r&&t.container,i&&t.item,s&&t.zeroMinWidth,...c,l!=="row"&&t[`direction-xs-${String(l)}`],a!=="wrap"&&t[`wrap-xs-${String(a)}`],...d]}})(({ownerState:e})=>Ie({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),rue,aue,oue,nue);function sue(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const l=e[r];if(Number(l)>0){const i=`spacing-${r}-${String(l)}`;n.push(i)}}),n}const uue=e=>{const{classes:t,container:n,direction:r,item:l,spacing:i,wrap:o,zeroMinWidth:a,breakpoints:s}=e;let u=[];n&&(u=sue(i,s));const c=[];s.forEach(f=>{const p=e[f];p&&c.push(`grid-${f}-${String(p)}`)});const d={root:["root",n&&"container",l&&"item",a&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,o!=="wrap"&&`wrap-xs-${String(o)}`,...c]};return vn(d,Zse,t)},cr=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiGrid"}),{breakpoints:l}=po(),i=Y1(r),{className:o,columns:a,columnSpacing:s,component:u="div",container:c=!1,direction:d="row",item:f=!1,rowSpacing:p,spacing:m=0,wrap:g="wrap",zeroMinWidth:b=!1}=i,v=Kt(i,tue),h=p||m,y=s||m,w=ge.useContext(b8),_=c?a||12:w,x={},T=Ie({},v);l.keys.forEach(C=>{v[C]!=null&&(x[C]=v[C],delete T[C])});const k=Ie({},i,{columns:_,container:c,direction:d,item:f,rowSpacing:h,columnSpacing:y,wrap:g,zeroMinWidth:b,spacing:m},x,{breakpoints:l.keys}),S=uue(k);return ke.jsx(b8.Provider,{value:_,children:ke.jsx(lue,Ie({ownerState:k,className:on(S.root,o),as:u,ref:n},T))})}),cue=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function K3(e){return`scale(${e}, ${e**2})`}const due={entering:{opacity:1,transform:K3(1)},entered:{opacity:1,transform:"none"}},xw=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),dm=ge.forwardRef(function(t,n){const{addEndListener:r,appear:l=!0,children:i,easing:o,in:a,onEnter:s,onEntered:u,onEntering:c,onExit:d,onExited:f,onExiting:p,style:m,timeout:g="auto",TransitionComponent:b=Pi}=t,v=Kt(t,cue),h=ge.useRef(),y=ge.useRef(),w=po(),_=ge.useRef(null),x=Lr(_,i.ref,n),T=E=>I=>{if(E){const A=_.current;I===void 0?E(A):E(A,I)}},k=T(c),S=T((E,I)=>{kj(E);const{duration:A,delay:F,easing:j}=Id({style:m,timeout:g,easing:o},{mode:"enter"});let z;g==="auto"?(z=w.transitions.getAutoHeightDuration(E.clientHeight),y.current=z):z=A,E.style.transition=[w.transitions.create("opacity",{duration:z,delay:F}),w.transitions.create("transform",{duration:xw?z:z*.666,delay:F,easing:j})].join(","),s&&s(E,I)}),C=T(u),M=T(p),O=T(E=>{const{duration:I,delay:A,easing:F}=Id({style:m,timeout:g,easing:o},{mode:"exit"});let j;g==="auto"?(j=w.transitions.getAutoHeightDuration(E.clientHeight),y.current=j):j=I,E.style.transition=[w.transitions.create("opacity",{duration:j,delay:A}),w.transitions.create("transform",{duration:xw?j:j*.666,delay:xw?A:A||j*.333,easing:F})].join(","),E.style.opacity=0,E.style.transform=K3(.75),d&&d(E)}),D=T(f),P=E=>{g==="auto"&&(h.current=setTimeout(E,y.current||0)),r&&r(_.current,E)};return ge.useEffect(()=>()=>{clearTimeout(h.current)},[]),ke.jsx(b,Ie({appear:l,in:a,nodeRef:_,onEnter:S,onEntered:C,onEntering:k,onExit:O,onExited:D,onExiting:M,addEndListener:P,timeout:g==="auto"?null:g},v,{children:(E,I)=>ge.cloneElement(i,Ie({style:Ie({opacity:0,transform:K3(.75),visibility:E==="exited"&&!a?"hidden":void 0},due[E],m,i.props.style),ref:x},I))}))});dm.muiSupportAuto=!0;function fue(e,t,n,r,l){const[i,o]=ge.useState(()=>l&&n?n(e).matches:r?r(e).matches:t);return no(()=>{let a=!0;if(!n)return;const s=n(e),u=()=>{a&&o(s.matches)};return u(),s.addListener(u),()=>{a=!1,s.removeListener(u)}},[e,n]),i}const az=ge.useSyncExternalStore;function pue(e,t,n,r,l){const i=ge.useCallback(()=>t,[t]),o=ge.useMemo(()=>{if(l&&n)return()=>n(e).matches;if(r!==null){const{matches:c}=r(e);return()=>c}return i},[i,e,r,l,n]),[a,s]=ge.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const c=n(e);return[()=>c.matches,d=>(c.addListener(d),()=>{c.removeListener(d)})]},[i,n,e]);return az(s,a,o)}function wM(e,t={}){const n=G1(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:i=r?window.matchMedia:null,ssrMatchMedia:o=null,noSsr:a=!1}=uj({name:"MuiUseMediaQuery",props:t,theme:n});let s=typeof e=="function"?e(n):e;return s=s.replace(/^@media( ?)/m,""),(az!==void 0?pue:fue)(s,l,i,o,a)}function oz(e){return yn("MuiIcon",e)}const hue=hn("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]),mue=hue,gue=["baseClassName","className","color","component","fontSize"],vue=e=>{const{color:t,fontSize:n,classes:r}=e,l={root:["root",t!=="inherit"&&`color${Jt(t)}`,`fontSize${Jt(n)}`]};return vn(l,oz,r)},yue=Et("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Jt(n.color)}`],t[`fontSize${Jt(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]})),iz=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiIcon"}),{baseClassName:l="material-icons",className:i,color:o="inherit",component:a="span",fontSize:s="medium"}=r,u=Kt(r,gue),c=Ie({},r,{baseClassName:l,color:o,component:a,fontSize:s}),d=vue(c);return ke.jsx(yue,Ie({as:a,className:on(l,"notranslate",d.root,i),ownerState:c,"aria-hidden":!0,ref:n},u))});iz.muiName="Icon";const bue=iz,xue=Object.freeze(Object.defineProperty({__proto__:null,default:bue,getIconUtilityClass:oz,iconClasses:mue},Symbol.toStringTag,{value:"Module"})),wue=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],_ue=e=>{const{classes:t,disableUnderline:n}=e,l=vn({root:["root",!n&&"underline"],input:["input"]},Die,t);return Ie({},t,l)},Tue=Et(rb,{shouldForwardProp:e=>Vi(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...tb(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Ie({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Zf.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Zf.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Zf.disabled}, .${Zf.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Zf.disabled}:before`]:{borderBottomStyle:"dotted"}})}),kue=Et(ab,{name:"MuiInput",slot:"Input",overridesResolver:nb})({}),_M=ge.forwardRef(function(t,n){var r,l,i,o;const a=pn({props:t,name:"MuiInput"}),{disableUnderline:s,components:u={},componentsProps:c,fullWidth:d=!1,inputComponent:f="input",multiline:p=!1,slotProps:m,slots:g={},type:b="text"}=a,v=Kt(a,wue),h=_ue(a),w={root:{ownerState:{disableUnderline:s}}},_=m??c?ha(m??c,w):w,x=(r=(l=g.root)!=null?l:u.Root)!=null?r:Tue,T=(i=(o=g.input)!=null?o:u.Input)!=null?i:kue;return ke.jsx(ob,Ie({slots:{root:x,input:T},slotProps:_,fullWidth:d,inputComponent:f,multiline:p,ref:n,type:b},v,{classes:h}))});_M.muiName="Input";function lz(e){return yn("MuiInputAdornment",e)}const Sue=hn("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),Z3=Sue;var x8;const Cue=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Mue=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Jt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Pue=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:l,size:i,variant:o}=e,a={root:["root",n&&"disablePointerEvents",l&&`position${Jt(l)}`,o,r&&"hiddenLabel",i&&`size${Jt(i)}`]};return vn(a,lz,t)},Oue=Et("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Mue})(({theme:e,ownerState:t})=>Ie({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${Z3.positionStart}&:not(.${Z3.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Aue=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiInputAdornment"}),{children:l,className:i,component:o="div",disablePointerEvents:a=!1,disableTypography:s=!1,position:u,variant:c}=r,d=Kt(r,Cue),f=Gi()||{};let p=c;c&&f.variant,f&&!p&&(p=f.variant);const m=Ie({},r,{hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:a,position:u,variant:p}),g=Pue(m);return ke.jsx(eb.Provider,{value:null,children:ke.jsx(Oue,Ie({as:o,ownerState:m,className:on(g.root,i),ref:n},d,{children:typeof l=="string"&&!s?ke.jsx(dr,{color:"text.secondary",children:l}):ke.jsxs(ge.Fragment,{children:[u==="start"?x8||(x8=ke.jsx("span",{className:"notranslate",children:"​"})):null,l]})}))})}),sz=Aue,Due=Object.freeze(Object.defineProperty({__proto__:null,default:sz,getInputAdornmentUtilityClass:lz,inputAdornmentClasses:Z3},Symbol.toStringTag,{value:"Module"}));function uz(e){return yn("MuiInputLabel",e)}const Eue=hn("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]),Rue=Eue,Lue=["disableAnimation","margin","shrink","variant","className"],Iue=e=>{const{classes:t,formControl:n,size:r,shrink:l,disableAnimation:i,variant:o,required:a}=e,s={root:["root",n&&"formControl",!i&&"animated",l&&"shrink",r&&r!=="normal"&&`size${Jt(r)}`,o],asterisk:[a&&"asterisk"]},u=vn(s,uz,t);return Ie({},t,u)},$ue=Et(Kse,{shouldForwardProp:e=>Vi(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Rh.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>Ie({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&Ie({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&Ie({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&Ie({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),cz=ge.forwardRef(function(t,n){const r=pn({name:"MuiInputLabel",props:t}),{disableAnimation:l=!1,shrink:i,className:o}=r,a=Kt(r,Lue),s=Gi();let u=i;typeof u>"u"&&s&&(u=s.filled||s.focused||s.adornedStart);const c=au({props:r,muiFormControl:s,states:["size","variant","required"]}),d=Ie({},r,{disableAnimation:l,formControl:s,shrink:u,size:c.size,variant:c.variant,required:c.required}),f=Iue(d);return ke.jsx($ue,Ie({"data-shrink":u,ownerState:d,ref:n,className:on(f.root,o)},a,{classes:f}))}),Nue=Object.freeze(Object.defineProperty({__proto__:null,default:cz,getInputLabelUtilityClasses:uz,inputLabelClasses:Rue},Symbol.toStringTag,{value:"Module"}));function dz(e){return yn("MuiLinearProgress",e)}const Fue=hn("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]),jue=Fue,zue=["className","color","value","valueBuffer","variant"];let lf=e=>e,w8,_8,T8,k8,S8,C8;const Q3=4,Bue=Hi(w8||(w8=lf` +`,Ele=typeof CS!="string"?hs` + animation: ${CS} 1.4s linear infinite; + `:null,Rle=typeof MS!="string"?hs` + animation: ${MS} 1.4s ease-in-out infinite; + `:null,Lle=e=>{const{classes:t,variant:n,color:r,disableShrink:l}=e,i={root:["root",n,`color${Qt(r)}`],svg:["svg"],circle:["circle",`circle${Qt(n)}`,l&&"circleDisableShrink"]};return vn(i,Lz,t)},Ile=Dt("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Qt(n.color)}`]]}})(Fn(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Ele||{animation:`${CS} 1.4s linear infinite`}},...Object.entries(e.palette).filter(ra()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),$le=Dt("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Nle=Dt("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Qt(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Fn(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:Rle||{animation:`${MS} 1.4s ease-in-out infinite`}}]}))),Fle=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiCircularProgress"}),{className:l,color:i="primary",disableShrink:o=!1,size:a=40,style:s,thickness:u=3.6,value:c=0,variant:d="indeterminate",...f}=r,p={...r,color:i,disableShrink:o,size:a,thickness:u,value:c,variant:d},h=Lle(p),g={},b={},v={};if(d==="determinate"){const m=2*Math.PI*((Ps-u)/2);g.strokeDasharray=m.toFixed(3),v["aria-valuenow"]=Math.round(c),g.strokeDashoffset=`${((100-c)/100*m).toFixed(3)}px`,b.transform="rotate(-90deg)"}return Se.jsx(Ile,{className:ln(h.root,l),style:{width:a,height:a,...b,...s},ownerState:p,ref:n,role:"progressbar",...v,...f,children:Se.jsx($le,{className:h.svg,ownerState:p,viewBox:`${Ps/2} ${Ps/2} ${Ps} ${Ps}`,children:Se.jsx(Nle,{className:h.circle,style:g,ownerState:p,cx:Ps,cy:Ps,r:(Ps-u)/2,fill:"none",strokeWidth:u})})})}),Iz=Fle,jle=Object.freeze(Object.defineProperty({__proto__:null,circularProgressClasses:Dle,default:Iz,getCircularProgressUtilityClass:Lz},Symbol.toStringTag,{value:"Module"})),PS=typeof JM({})=="function",zle=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),Ble=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),$z=(e,t=!1)=>{var i,o;const n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([a,s])=>{var c,d;const u=e.getColorSchemeSelector(a);u.startsWith("@")?n[u]={":root":{colorScheme:(c=s.palette)==null?void 0:c.mode}}:n[u.replace(/\s*&/,"")]={colorScheme:(d=s.palette)==null?void 0:d.mode}});let r={html:zle(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...Ble(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const l=(o=(i=e.components)==null?void 0:i.MuiCssBaseline)==null?void 0:o.styleOverrides;return l&&(r=[r,l]),r},vv="mui-ecs",Wle=e=>{const t=$z(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${vv})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([r,l])=>{var o,a;const i=e.getColorSchemeSelector(r);i.startsWith("@")?n[i]={[`:root:not(:has(.${vv}))`]:{colorScheme:(o=l.palette)==null?void 0:o.mode}}:n[i.replace(/\s*&/,"")]={[`&:not(:has(.${vv}))`]:{colorScheme:(a=l.palette)==null?void 0:a.mode}}}),t},qle=JM(PS?({theme:e,enableColorScheme:t})=>$z(e,t):({theme:e})=>Wle(e));function Ule(e){const t=jn({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return Se.jsxs(ge.Fragment,{children:[PS&&Se.jsx(qle,{enableColorScheme:r}),!PS&&!r&&Se.jsx("span",{className:vv,style:{display:"none"}}),n]})}function Hle(e){const t=qa(e);return t.body===e?Ni(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Hh(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function r7(e){return parseInt(Ni(e).getComputedStyle(e).paddingRight,10)||0}function Vle(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function a7(e,t,n,r,l){const i=[t,n,...r];[].forEach.call(e.children,o=>{const a=!i.includes(o),s=!Vle(o);a&&s&&Hh(o,l)})}function Qw(e,t){let n=-1;return e.some((r,l)=>t(r)?(n=l,!0):!1),n}function Gle(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Hle(r)){const o=Bj(Ni(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${r7(r)+o}px`;const a=qa(r).querySelectorAll(".mui-fixed");[].forEach.call(a,s=>{n.push({value:s.style.paddingRight,property:"padding-right",el:s}),s.style.paddingRight=`${r7(s)+o}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=qa(r).body;else{const o=r.parentElement,a=Ni(r);i=(o==null?void 0:o.nodeName)==="HTML"&&a.getComputedStyle(o).overflowY==="scroll"?o:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:o,property:a})=>{i?o.style.setProperty(a,i):o.style.removeProperty(a)})}}function Yle(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Xle{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Hh(t.modalRef,!1);const l=Yle(n);a7(n,t.mount,t.modalRef,l,!0);const i=Qw(this.containers,o=>o.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:l}),r)}mount(t,n){const r=Qw(this.containers,i=>i.modals.includes(t)),l=this.containers[r];l.restore||(l.restore=Gle(l,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const l=Qw(this.containers,o=>o.modals.includes(t)),i=this.containers[l];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Hh(t.modalRef,n),a7(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(l,1);else{const o=i.modals[i.modals.length-1];o.modalRef&&Hh(o.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const Kle=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Zle(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Qle(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Jle(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Qle(e))}function ese(e){const t=[],n=[];return Array.from(e.querySelectorAll(Kle)).forEach((r,l)=>{const i=Zle(r);i===-1||!Jle(r)||(i===0?t.push(r):n.push({documentOrder:l,tabIndex:i,node:r}))}),n.sort((r,l)=>r.tabIndex===l.tabIndex?r.documentOrder-l.documentOrder:r.tabIndex-l.tabIndex).map(r=>r.node).concat(t)}function tse(){return!0}function Nz(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:l=!1,getTabbable:i=ese,isEnabled:o=tse,open:a}=e,s=ge.useRef(!1),u=ge.useRef(null),c=ge.useRef(null),d=ge.useRef(null),f=ge.useRef(null),p=ge.useRef(!1),h=ge.useRef(null),g=Er(_f(t),h),b=ge.useRef(null);ge.useEffect(()=>{!a||!h.current||(p.current=!n)},[n,a]),ge.useEffect(()=>{if(!a||!h.current)return;const y=qa(h.current);return h.current.contains(y.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),p.current&&h.current.focus()),()=>{l||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}},[a]),ge.useEffect(()=>{if(!a||!h.current)return;const y=qa(h.current),x=S=>{b.current=S,!(r||!o()||S.key!=="Tab")&&y.activeElement===h.current&&S.shiftKey&&(s.current=!0,c.current&&c.current.focus())},_=()=>{var C,T;const S=h.current;if(S===null)return;if(!y.hasFocus()||!o()||s.current){s.current=!1;return}if(S.contains(y.activeElement)||r&&y.activeElement!==u.current&&y.activeElement!==c.current)return;if(y.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let k=[];if((y.activeElement===u.current||y.activeElement===c.current)&&(k=i(h.current)),k.length>0){const M=!!((C=b.current)!=null&&C.shiftKey&&((T=b.current)==null?void 0:T.key)==="Tab"),O=k[0],D=k[k.length-1];typeof O!="string"&&typeof D!="string"&&(M?D.focus():O.focus())}else S.focus()};y.addEventListener("focusin",_),y.addEventListener("keydown",x,!0);const w=setInterval(()=>{y.activeElement&&y.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval(w),y.removeEventListener("focusin",_),y.removeEventListener("keydown",x,!0)}},[n,r,l,o,a,i]);const v=y=>{d.current===null&&(d.current=y.relatedTarget),p.current=!0,f.current=y.target;const x=t.props.onFocus;x&&x(y)},m=y=>{d.current===null&&(d.current=y.relatedTarget),p.current=!0};return Se.jsxs(ge.Fragment,{children:[Se.jsx("div",{tabIndex:a?0:-1,onFocus:m,ref:u,"data-testid":"sentinelStart"}),ge.cloneElement(t,{ref:g,onFocus:v}),Se.jsx("div",{tabIndex:a?0:-1,onFocus:m,ref:c,"data-testid":"sentinelEnd"})]})}function nse(e){return typeof e=="function"?e():e}function rse(e){return e?e.props.hasOwnProperty("in"):!1}const x0=new Xle;function ase(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:l=!1,onTransitionEnter:i,onTransitionExited:o,children:a,onClose:s,open:u,rootRef:c}=e,d=ge.useRef({}),f=ge.useRef(null),p=ge.useRef(null),h=Er(p,c),[g,b]=ge.useState(!u),v=rse(a);let m=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(m=!1);const y=()=>qa(f.current),x=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),_=()=>{x0.mount(x(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},w=ho(()=>{const E=nse(t)||y().body;x0.add(x(),E),p.current&&_()}),S=()=>x0.isTopModal(x()),k=ho(E=>{f.current=E,E&&(u&&S()?_():p.current&&Hh(p.current,m))}),C=ge.useCallback(()=>{x0.remove(x(),m)},[m]);ge.useEffect(()=>()=>{C()},[C]),ge.useEffect(()=>{u?w():(!v||!l)&&C()},[u,C,v,l,w]);const T=E=>I=>{var A;(A=E.onKeyDown)==null||A.call(E,I),!(I.key!=="Escape"||I.which===229||!S())&&(n||(I.stopPropagation(),s&&s(I,"escapeKeyDown")))},M=E=>I=>{var A;(A=E.onClick)==null||A.call(E,I),I.target===I.currentTarget&&s&&s(I,"backdropClick")};return{getRootProps:(E={})=>{const I=Wj(e);delete I.onTransitionEnter,delete I.onTransitionExited;const A={...I,...E};return{role:"presentation",...A,onKeyDown:T(A),ref:h}},getBackdropProps:(E={})=>{const I=E;return{"aria-hidden":!0,...I,onClick:M(I),open:u}},getTransitionProps:()=>{const E=()=>{b(!1),i&&i()},I=()=>{b(!0),o&&o(),l&&C()};return{onEnter:yS(E,a==null?void 0:a.props.onEnter),onExited:yS(I,a==null?void 0:a.props.onExited)}},rootRef:h,portalRef:k,isTopModal:S,exited:g,hasTransition:v}}function ose(e){return gn("MuiModal",e)}fn("MuiModal",["root","hidden","backdrop"]);const ise=e=>{const{open:t,exited:n,classes:r}=e;return vn({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},ose,r)},lse=Dt("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Fn(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),sse=Dt(Oz,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Fz=ge.forwardRef(function(t,n){const r=jn({name:"MuiModal",props:t}),{BackdropComponent:l=sse,BackdropProps:i,classes:o,className:a,closeAfterTransition:s=!1,children:u,container:c,component:d,components:f={},componentsProps:p={},disableAutoFocus:h=!1,disableEnforceFocus:g=!1,disableEscapeKeyDown:b=!1,disablePortal:v=!1,disableRestoreFocus:m=!1,disableScrollLock:y=!1,hideBackdrop:x=!1,keepMounted:_=!1,onBackdropClick:w,onClose:S,onTransitionEnter:k,onTransitionExited:C,open:T,slotProps:M={},slots:O={},theme:D,...P}=r,E={...r,closeAfterTransition:s,disableAutoFocus:h,disableEnforceFocus:g,disableEscapeKeyDown:b,disablePortal:v,disableRestoreFocus:m,disableScrollLock:y,hideBackdrop:x,keepMounted:_},{getRootProps:I,getBackdropProps:A,getTransitionProps:F,portalRef:j,isTopModal:B,exited:z,hasTransition:N}=ase({...E,rootRef:n}),R={...E,exited:z},q=ise(R),Y={};if(u.props.tabIndex===void 0&&(Y.tabIndex="-1"),N){const{onEnter:U,onExited:Q}=F();Y.onEnter=U,Y.onExited=Q}const L={...P,slots:{root:f.Root,backdrop:f.Backdrop,...O},slotProps:{...p,...M}},[W,H]=Io("root",{elementType:lse,externalForwardedProps:L,getSlotProps:I,additionalProps:{ref:n,as:d},ownerState:R,className:ln(a,q==null?void 0:q.root,!R.open&&R.exited&&(q==null?void 0:q.hidden))}),[G,te]=Io("backdrop",{elementType:l,externalForwardedProps:L,additionalProps:i,getSlotProps:U=>A({...U,onClick:Q=>{w&&w(Q),U!=null&&U.onClick&&U.onClick(Q)}}),className:ln(i==null?void 0:i.className,q==null?void 0:q.backdrop),ownerState:R}),ee=Er(i==null?void 0:i.ref,te.ref);return!_&&!T&&(!N||z)?null:Se.jsx(Mz,{ref:j,container:c,disablePortal:v,children:Se.jsxs(W,{...H,children:[!x&&l?Se.jsx(G,{...te,ref:ee}):null,Se.jsx(Nz,{disableEnforceFocus:g,disableAutoFocus:h,disableRestoreFocus:m,isEnabled:B,open:T,children:ge.cloneElement(u,Y)})]})})});function use(e){return gn("MuiDialog",e)}const Vh=fn("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),cse=ge.createContext({}),dse=Dt(Oz,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),fse=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:l,fullScreen:i}=e,o={root:["root"],container:["container",`scroll${Qt(n)}`],paper:["paper",`paperScroll${Qt(n)}`,`paperWidth${Qt(String(r))}`,l&&"paperFullWidth",i&&"paperFullScreen"]};return vn(o,use,t)},pse=Dt(Fz,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),hse=Dt("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Qt(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),mse=Dt(pu,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Qt(n.scroll)}`],t[`paperWidth${Qt(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Fn(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Vh.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${Vh.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Vh.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),gse=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiDialog"}),l=pi(),i={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{"aria-describedby":o,"aria-labelledby":a,"aria-modal":s=!0,BackdropComponent:u,BackdropProps:c,children:d,className:f,disableEscapeKeyDown:p=!1,fullScreen:h=!1,fullWidth:g=!1,maxWidth:b="sm",onBackdropClick:v,onClick:m,onClose:y,open:x,PaperComponent:_=pu,PaperProps:w={},scroll:S="paper",TransitionComponent:k=Ob,transitionDuration:C=i,TransitionProps:T,...M}=r,O={...r,disableEscapeKeyDown:p,fullScreen:h,fullWidth:g,maxWidth:b,scroll:S},D=fse(O),P=ge.useRef(),E=j=>{P.current=j.target===j.currentTarget},I=j=>{m&&m(j),P.current&&(P.current=null,v&&v(j),y&&y(j,"backdropClick"))},A=ls(a),F=ge.useMemo(()=>({titleId:A}),[A]);return Se.jsx(pse,{className:ln(D.root,f),closeAfterTransition:!0,components:{Backdrop:dse},componentsProps:{backdrop:{transitionDuration:C,as:u,...c}},disableEscapeKeyDown:p,onClose:y,open:x,ref:n,onClick:I,ownerState:O,...M,children:Se.jsx(k,{appear:!0,in:x,timeout:C,role:"presentation",...T,children:Se.jsx(hse,{className:ln(D.container),onMouseDown:E,ownerState:O,children:Se.jsx(mse,{as:_,elevation:24,role:"dialog","aria-describedby":o,"aria-labelledby":A,"aria-modal":s,...w,className:ln(D.paper,w.className),ownerState:O,children:Se.jsx(cse.Provider,{value:F,children:d})})})})})});function vse(e){return gn("MuiDialogActions",e)}fn("MuiDialogActions",["root","spacing"]);const yse=e=>{const{classes:t,disableSpacing:n}=e;return vn({root:["root",!n&&"spacing"]},vse,t)},bse=Dt("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),xse=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiDialogActions"}),{className:l,disableSpacing:i=!1,...o}=r,a={...r,disableSpacing:i},s=yse(a);return Se.jsx(bse,{className:ln(s.root,l),ownerState:a,ref:n,...o})});function wse(e){return gn("MuiDialogContent",e)}fn("MuiDialogContent",["root","dividers"]);const _se=fn("MuiDialogTitle",["root"]),Tse=e=>{const{classes:t,dividers:n}=e;return vn({root:["root",n&&"dividers"]},wse,t)},Sse=Dt("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Fn(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${_se.root} + &`]:{paddingTop:0}}}]}))),kse=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiDialogContent"}),{className:l,dividers:i=!1,...o}=r,a={...r,dividers:i},s=Tse(a);return Se.jsx(Sse,{className:ln(s.root,l),ownerState:a,ref:n,...o})}),o7=fn("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Cse=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:l,size:i,hiddenLabel:o,multiline:a}=e,s={root:["root",!n&&"underline",r&&"adornedStart",l&&"adornedEnd",i==="small"&&`size${Qt(i)}`,o&&"hiddenLabel",a&&"multiline"],input:["input"]},u=vn(s,Bie,t);return{...t,...u}},Mse=Dt(Cb,{shouldForwardProp:e=>Go(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Sb(e,t),!n.disableUnderline&&t.underline]}})(Fn(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",l=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:l,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${_u.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${_u.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:o})=>!o.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${_u.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${_u.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${_u.disabled}, .${_u.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${_u.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(ra()).map(([o])=>{var a;return{props:{disableUnderline:!1,color:o},style:{"&::after":{borderBottom:`2px solid ${(a=(e.vars||e).palette[o])==null?void 0:a.main}`}}}}),{props:({ownerState:o})=>o.startAdornment,style:{paddingLeft:12}},{props:({ownerState:o})=>o.endAdornment,style:{paddingRight:12}},{props:({ownerState:o})=>o.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:o,size:a})=>o.multiline&&a==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:o})=>o.multiline&&o.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:o})=>o.multiline&&o.hiddenLabel&&o.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),Pse=Dt(Mb,{name:"MuiFilledInput",slot:"Input",overridesResolver:kb})(Fn(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Sy=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiFilledInput"}),{disableUnderline:l=!1,components:i={},componentsProps:o,fullWidth:a=!1,hiddenLabel:s,inputComponent:u="input",multiline:c=!1,slotProps:d,slots:f={},type:p="text",...h}=r,g={...r,disableUnderline:l,fullWidth:a,inputComponent:u,multiline:c,type:p},b=Cse(r),v={root:{ownerState:g},input:{ownerState:g}},m=d??o?oo(v,d??o):v,y=f.root??i.Root??Mse,x=f.input??i.Input??Pse;return Se.jsx(Pb,{slots:{root:y,input:x},componentsProps:m,fullWidth:a,inputComponent:u,multiline:c,ref:n,type:p,...h,classes:b})});Sy&&(Sy.muiName="Input");function jz(e){return gn("MuiFormControl",e)}const Ose=fn("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]),Ase=Ose,Dse=e=>{const{classes:t,margin:n,fullWidth:r}=e,l={root:["root",n!=="none"&&`margin${Qt(n)}`,r&&"fullWidth"]};return vn(l,jz,t)},Ese=Dt("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...t[`margin${Qt(e.margin)}`],...e.fullWidth&&t.fullWidth})})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Rse=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiFormControl"}),{children:l,className:i,color:o="primary",component:a="div",disabled:s=!1,error:u=!1,focused:c,fullWidth:d=!1,hiddenLabel:f=!1,margin:p="none",required:h=!1,size:g="medium",variant:b="outlined",...v}=r,m={...r,color:o,component:a,disabled:s,error:u,fullWidth:d,hiddenLabel:f,margin:p,required:h,size:g,variant:b},y=Dse(m),[x,_]=ge.useState(()=>{let D=!1;return l&&ge.Children.forEach(l,P=>{if(!hv(P,["Input","Select"]))return;const E=hv(P,["Select"])?P.props.input:P;E&&$ie(E.props)&&(D=!0)}),D}),[w,S]=ge.useState(()=>{let D=!1;return l&&ge.Children.forEach(l,P=>{hv(P,["Input","Select"])&&(Ty(P.props,!0)||Ty(P.props.inputProps,!0))&&(D=!0)}),D}),[k,C]=ge.useState(!1);s&&k&&C(!1);const T=c!==void 0&&!s?c:k;let M;ge.useRef(!1);const O=ge.useMemo(()=>({adornedStart:x,setAdornedStart:_,color:o,disabled:s,error:u,filled:w,focused:T,fullWidth:d,hiddenLabel:f,size:g,onBlur:()=>{C(!1)},onEmpty:()=>{S(!1)},onFilled:()=>{S(!0)},onFocus:()=>{C(!0)},registerEffect:M,required:h,variant:b}),[x,o,s,u,w,T,d,f,M,h,g,b]);return Se.jsx(Tb.Provider,{value:O,children:Se.jsx(Ese,{as:a,ownerState:m,className:ln(y.root,i),ref:n,...v,children:l})})}),zz=Rse,Lse=Object.freeze(Object.defineProperty({__proto__:null,default:zz,formControlClasses:Ase,getFormControlUtilityClasses:jz,useFormControl:ll},Symbol.toStringTag,{value:"Module"}));function Bz(e){return gn("MuiFormControlLabel",e)}const Ise=fn("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),_d=Ise,$se=e=>{const{classes:t,disabled:n,labelPlacement:r,error:l,required:i}=e,o={root:["root",n&&"disabled",`labelPlacement${Qt(r)}`,l&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",l&&"error"]};return vn(o,Bz,t)},Nse=Dt("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${_d.label}`]:t.label},t.root,t[`labelPlacement${Qt(n.labelPlacement)}`]]}})(Fn(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${_d.disabled}`]:{cursor:"default"},[`& .${_d.label}`]:{[`&.${_d.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),Fse=Dt("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Fn(({theme:e})=>({[`&.${_d.error}`]:{color:(e.vars||e).palette.error.main}}))),jse=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiFormControlLabel"}),{checked:l,className:i,componentsProps:o={},control:a,disabled:s,disableTypography:u,inputRef:c,label:d,labelPlacement:f="end",name:p,onChange:h,required:g,slots:b={},slotProps:v={},value:m,...y}=r,x=ll(),_=s??a.props.disabled??(x==null?void 0:x.disabled),w=g??a.props.required,S={disabled:_,required:w};["checked","name","onChange","value","inputRef"].forEach(E=>{typeof a.props[E]>"u"&&typeof r[E]<"u"&&(S[E]=r[E])});const k=mu({props:r,muiFormControl:x,states:["error"]}),C={...r,disabled:_,labelPlacement:f,required:w,error:k.error},T=$se(C),M={slots:b,slotProps:{...o,...v}},[O,D]=Io("typography",{elementType:mr,externalForwardedProps:M,ownerState:C});let P=d;return P!=null&&P.type!==mr&&!u&&(P=Se.jsx(O,{component:"span",...D,className:ln(T.label,D==null?void 0:D.className),children:P})),Se.jsxs(Nse,{className:ln(T.root,i),ownerState:C,ref:n,...y,children:[ge.cloneElement(a,S),w?Se.jsxs("div",{children:[P,Se.jsxs(Fse,{ownerState:C,"aria-hidden":!0,className:T.asterisk,children:[" ","*"]})]}):P]})}),zse=jse,Bse=Object.freeze(Object.defineProperty({__proto__:null,default:zse,formControlLabelClasses:_d,getFormControlLabelUtilityClasses:Bz},Symbol.toStringTag,{value:"Module"}));function Wz(e){return gn("MuiFormGroup",e)}const Wse=fn("MuiFormGroup",["root","row","error"]),qse=Wse,Use=e=>{const{classes:t,row:n,error:r}=e;return vn({root:["root",n&&"row",r&&"error"]},Wz,t)},Hse=Dt("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),Vse=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiFormGroup"}),{className:l,row:i=!1,...o}=r,a=ll(),s=mu({props:r,muiFormControl:a,states:["error"]}),u={...r,row:i,error:s.error},c=Use(u);return Se.jsx(Hse,{className:ln(c.root,l),ownerState:u,ref:n,...o})}),Gse=Vse,Yse=Object.freeze(Object.defineProperty({__proto__:null,default:Gse,formGroupClasses:qse,getFormGroupUtilityClass:Wz},Symbol.toStringTag,{value:"Module"}));function qz(e){return gn("MuiFormHelperText",e)}const Xse=fn("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),OS=Xse;var i7;const Kse=e=>{const{classes:t,contained:n,size:r,disabled:l,error:i,filled:o,focused:a,required:s}=e,u={root:["root",l&&"disabled",i&&"error",r&&`size${Qt(r)}`,n&&"contained",a&&"focused",o&&"filled",s&&"required"]};return vn(u,qz,t)},Zse=Dt("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Qt(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Fn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${OS.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${OS.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Qse=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiFormHelperText"}),{children:l,className:i,component:o="p",disabled:a,error:s,filled:u,focused:c,margin:d,required:f,variant:p,...h}=r,g=ll(),b=mu({props:r,muiFormControl:g,states:["variant","size","disabled","error","filled","focused","required"]}),v={...r,component:o,contained:b.variant==="filled"||b.variant==="outlined",variant:b.variant,size:b.size,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required};delete v.ownerState;const m=Kse(v);return Se.jsx(Zse,{as:o,className:ln(m.root,i),ref:n,...h,ownerState:v,children:l===" "?i7||(i7=Se.jsx("span",{className:"notranslate",children:"​"})):l})}),Uz=Qse,Jse=Object.freeze(Object.defineProperty({__proto__:null,default:Uz,formHelperTextClasses:OS,getFormHelperTextUtilityClasses:qz},Symbol.toStringTag,{value:"Module"}));function eue(e){return gn("MuiFormLabel",e)}const Gh=fn("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),tue=e=>{const{classes:t,color:n,focused:r,disabled:l,error:i,filled:o,required:a}=e,s={root:["root",`color${Qt(n)}`,l&&"disabled",i&&"error",o&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return vn(s,eue,t)},nue=Dt("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...e.color==="secondary"&&t.colorSecondary,...e.filled&&t.filled})})(Fn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(ra()).map(([t])=>({props:{color:t},style:{[`&.${Gh.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Gh.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Gh.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),rue=Dt("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(Fn(({theme:e})=>({[`&.${Gh.error}`]:{color:(e.vars||e).palette.error.main}}))),aue=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiFormLabel"}),{children:l,className:i,color:o,component:a="label",disabled:s,error:u,filled:c,focused:d,required:f,...p}=r,h=ll(),g=mu({props:r,muiFormControl:h,states:["color","required","focused","disabled","error","filled"]}),b={...r,color:g.color||"primary",component:a,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required},v=tue(b);return Se.jsxs(nue,{as:a,ownerState:b,className:ln(v.root,i),ref:n,...p,children:[l,g.required&&Se.jsxs(rue,{ownerState:b,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]})}),l7=ge.createContext();function oue(e){return gn("MuiGrid",e)}const iue=[0,1,2,3,4,5,6,7,8,9,10],lue=["column-reverse","column","row-reverse","row"],sue=["nowrap","wrap-reverse","wrap"],pp=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],km=fn("MuiGrid",["root","container","item","zeroMinWidth",...iue.map(e=>`spacing-xs-${e}`),...lue.map(e=>`direction-xs-${e}`),...sue.map(e=>`wrap-xs-${e}`),...pp.map(e=>`grid-xs-${e}`),...pp.map(e=>`grid-sm-${e}`),...pp.map(e=>`grid-md-${e}`),...pp.map(e=>`grid-lg-${e}`),...pp.map(e=>`grid-xl-${e}`)]);function uue({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,l)=>{let i={};if(t[l]&&(n=t[l]),!n)return r;if(n===!0)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const o=eb({values:t.columns,breakpoints:e.breakpoints.values}),a=typeof o=="object"?o[l]:o;if(a==null)return r;const s=`${Math.round(n/a*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const c=e.spacing(t.columnSpacing);if(c!=="0px"){const d=`calc(${s} + ${c})`;u={flexBasis:d,maxWidth:d}}}i={flexBasis:s,flexGrow:0,maxWidth:s,...u}}return e.breakpoints.values[l]===0?Object.assign(r,i):r[e.breakpoints.up(l)]=i,r},{})}function cue({theme:e,ownerState:t}){const n=eb({values:t.direction,breakpoints:e.breakpoints.values});return $i({theme:e},n,r=>{const l={flexDirection:r};return r.startsWith("column")&&(l[`& > .${km.item}`]={maxWidth:"none"}),l})}function Hz({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(l=>{n===""&&t[l]!==0&&(n=l)});const r=Object.keys(e).sort((l,i)=>e[l]-e[i]);return r.slice(0,r.indexOf(n))}function due({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let l={};if(n&&r!==0){const i=eb({values:r,breakpoints:e.breakpoints.values});let o;typeof i=="object"&&(o=Hz({breakpoints:e.breakpoints.values,values:i})),l=$i({theme:e},i,(a,s)=>{const u=e.spacing(a);return u!=="0px"?{marginTop:e.spacing(-a),[`& > .${km.item}`]:{paddingTop:u}}:o!=null&&o.includes(s)?{}:{marginTop:0,[`& > .${km.item}`]:{paddingTop:0}}})}return l}function fue({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let l={};if(n&&r!==0){const i=eb({values:r,breakpoints:e.breakpoints.values});let o;typeof i=="object"&&(o=Hz({breakpoints:e.breakpoints.values,values:i})),l=$i({theme:e},i,(a,s)=>{const u=e.spacing(a);if(u!=="0px"){const c=e.spacing(-a);return{width:`calc(100% + ${u})`,marginLeft:c,[`& > .${km.item}`]:{paddingLeft:u}}}return o!=null&&o.includes(s)?{}:{width:"100%",marginLeft:0,[`& > .${km.item}`]:{paddingLeft:0}}})}return l}function pue(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(l=>{const i=e[l];Number(i)>0&&r.push(n[`spacing-${l}-${String(i)}`])}),r}const hue=Dt("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:l,item:i,spacing:o,wrap:a,zeroMinWidth:s,breakpoints:u}=n;let c=[];r&&(c=pue(o,u,t));const d=[];return u.forEach(f=>{const p=n[f];p&&d.push(t[`grid-${f}-${String(p)}`])}),[t.root,r&&t.container,i&&t.item,s&&t.zeroMinWidth,...c,l!=="row"&&t[`direction-xs-${String(l)}`],a!=="wrap"&&t[`wrap-xs-${String(a)}`],...d]}})(({ownerState:e})=>({boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},...e.item&&{margin:0},...e.zeroMinWidth&&{minWidth:0},...e.wrap!=="wrap"&&{flexWrap:e.wrap}}),cue,due,fue,uue);function mue(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const l=e[r];if(Number(l)>0){const i=`spacing-${r}-${String(l)}`;n.push(i)}}),n}const gue=e=>{const{classes:t,container:n,direction:r,item:l,spacing:i,wrap:o,zeroMinWidth:a,breakpoints:s}=e;let u=[];n&&(u=mue(i,s));const c=[];s.forEach(f=>{const p=e[f];p&&c.push(`grid-${f}-${String(p)}`)});const d={root:["root",n&&"container",l&&"item",a&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,o!=="wrap"&&`wrap-xs-${String(o)}`,...c]};return vn(d,oue,t)},hr=ge.forwardRef(function(t,n){const r=Tr({props:t,name:"MuiGrid"}),{breakpoints:l}=pi(),i=FM(r),{className:o,columns:a,columnSpacing:s,component:u="div",container:c=!1,direction:d="row",item:f=!1,rowSpacing:p,spacing:h=0,wrap:g="wrap",zeroMinWidth:b=!1,...v}=i,m=p||h,y=s||h,x=ge.useContext(l7),_=c?a||12:x,w={},S={...v};l.keys.forEach(T=>{v[T]!=null&&(w[T]=v[T],delete S[T])});const k={...i,columns:_,container:c,direction:d,item:f,rowSpacing:m,columnSpacing:y,wrap:g,zeroMinWidth:b,spacing:h,...w,breakpoints:l.keys},C=gue(k);return Se.jsx(l7.Provider,{value:_,children:Se.jsx(hue,{ownerState:k,className:ln(C.root,o),as:u,ref:n,...S})})});function AS(e){return`scale(${e}, ${e**2})`}const vue={entering:{opacity:1,transform:AS(1)},entered:{opacity:1,transform:"none"}},Jw=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Jd=ge.forwardRef(function(t,n){const{addEndListener:r,appear:l=!0,children:i,easing:o,in:a,onEnter:s,onEntered:u,onEntering:c,onExit:d,onExited:f,onExiting:p,style:h,timeout:g="auto",TransitionComponent:b=qi,...v}=t,m=Wu(),y=ge.useRef(),x=pi(),_=ge.useRef(null),w=Er(_,_f(i),n),S=E=>I=>{if(E){const A=_.current;I===void 0?E(A):E(A,I)}},k=S(c),C=S((E,I)=>{fz(E);const{duration:A,delay:F,easing:j}=Gd({style:h,timeout:g,easing:o},{mode:"enter"});let B;g==="auto"?(B=x.transitions.getAutoHeightDuration(E.clientHeight),y.current=B):B=A,E.style.transition=[x.transitions.create("opacity",{duration:B,delay:F}),x.transitions.create("transform",{duration:Jw?B:B*.666,delay:F,easing:j})].join(","),s&&s(E,I)}),T=S(u),M=S(p),O=S(E=>{const{duration:I,delay:A,easing:F}=Gd({style:h,timeout:g,easing:o},{mode:"exit"});let j;g==="auto"?(j=x.transitions.getAutoHeightDuration(E.clientHeight),y.current=j):j=I,E.style.transition=[x.transitions.create("opacity",{duration:j,delay:A}),x.transitions.create("transform",{duration:Jw?j:j*.666,delay:Jw?A:A||j*.333,easing:F})].join(","),E.style.opacity=0,E.style.transform=AS(.75),d&&d(E)}),D=S(f),P=E=>{g==="auto"&&m.start(y.current||0,E),r&&r(_.current,E)};return Se.jsx(b,{appear:l,in:a,nodeRef:_,onEnter:C,onEntered:T,onEntering:k,onExit:O,onExited:D,onExiting:M,addEndListener:P,timeout:g==="auto"?null:g,...v,children:(E,I)=>ge.cloneElement(i,{style:{opacity:0,transform:AS(.75),visibility:E==="exited"&&!a?"hidden":void 0,...vue[E],...h,...i.props.style},ref:w,...I})})});Jd&&(Jd.muiSupportAuto=!0);function Vz(e){return gn("MuiIcon",e)}const yue=fn("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]),bue=yue,xue=e=>{const{color:t,fontSize:n,classes:r}=e,l={root:["root",t!=="inherit"&&`color${Qt(t)}`,`fontSize${Qt(n)}`]};return vn(l,Vz,r)},wue=Dt("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Qt(n.color)}`],t[`fontSize${Qt(n.fontSize)}`]]}})(Fn(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,variants:[{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography.pxToRem(20)}},{props:{fontSize:"medium"},style:{fontSize:e.typography.pxToRem(24)}},{props:{fontSize:"large"},style:{fontSize:e.typography.pxToRem(36)}},{props:{color:"action"},style:{color:(e.vars||e).palette.action.active}},{props:{color:"disabled"},style:{color:(e.vars||e).palette.action.disabled}},{props:{color:"inherit"},style:{color:void 0}},...Object.entries(e.palette).filter(ra()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),DS=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiIcon"}),{baseClassName:l="material-icons",className:i,color:o="inherit",component:a="span",fontSize:s="medium",...u}=r,c={...r,baseClassName:l,color:o,component:a,fontSize:s},d=xue(c);return Se.jsx(wue,{as:a,className:ln(l,"notranslate",d.root,i),ownerState:c,"aria-hidden":!0,ref:n,...u})});DS&&(DS.muiName="Icon");const _ue=DS,Tue=Object.freeze(Object.defineProperty({__proto__:null,default:_ue,getIconUtilityClass:Vz,iconClasses:bue},Symbol.toStringTag,{value:"Module"})),Sue=e=>{const{classes:t,disableUnderline:n}=e,l=vn({root:["root",!n&&"underline"],input:["input"]},jie,t);return{...t,...l}},kue=Dt(Cb,{shouldForwardProp:e=>Go(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Sb(e,t),!n.disableUnderline&&t.underline]}})(Fn(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${fp.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${fp.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${fp.disabled}, .${fp.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${fp.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(ra()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),Cue=Dt(Mb,{name:"MuiInput",slot:"Input",overridesResolver:kb})({}),ky=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiInput"}),{disableUnderline:l=!1,components:i={},componentsProps:o,fullWidth:a=!1,inputComponent:s="input",multiline:u=!1,slotProps:c,slots:d={},type:f="text",...p}=r,h=Sue(r),b={root:{ownerState:{disableUnderline:l}}},v=c??o?oo(c??o,b):b,m=d.root??i.Root??kue,y=d.input??i.Input??Cue;return Se.jsx(Pb,{slots:{root:m,input:y},slotProps:v,fullWidth:a,inputComponent:s,multiline:u,ref:n,type:f,...p,classes:h})});ky&&(ky.muiName="Input");function Gz(e){return gn("MuiInputAdornment",e)}const Mue=fn("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),ES=Mue;var s7;const Pue=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Qt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Oue=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:l,size:i,variant:o}=e,a={root:["root",n&&"disablePointerEvents",l&&`position${Qt(l)}`,o,r&&"hiddenLabel",i&&`size${Qt(i)}`]};return vn(a,Gz,t)},Aue=Dt("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Pue})(Fn(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${ES.positionStart}&:not(.${ES.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Due=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiInputAdornment"}),{children:l,className:i,component:o="div",disablePointerEvents:a=!1,disableTypography:s=!1,position:u,variant:c,...d}=r,f=ll()||{};let p=c;c&&f.variant,f&&!p&&(p=f.variant);const h={...r,hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:a,position:u,variant:p},g=Oue(h);return Se.jsx(Tb.Provider,{value:null,children:Se.jsx(Aue,{as:o,ownerState:h,className:ln(g.root,i),ref:n,...d,children:typeof l=="string"&&!s?Se.jsx(mr,{color:"textSecondary",children:l}):Se.jsxs(ge.Fragment,{children:[u==="start"?s7||(s7=Se.jsx("span",{className:"notranslate",children:"​"})):null,l]})})})}),Yz=Due,Eue=Object.freeze(Object.defineProperty({__proto__:null,default:Yz,getInputAdornmentUtilityClass:Gz,inputAdornmentClasses:ES},Symbol.toStringTag,{value:"Module"}));function Xz(e){return gn("MuiInputLabel",e)}const Rue=fn("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]),Lue=Rue,Iue=e=>{const{classes:t,formControl:n,size:r,shrink:l,disableAnimation:i,variant:o,required:a}=e,s={root:["root",n&&"formControl",!i&&"animated",l&&"shrink",r&&r!=="normal"&&`size${Qt(r)}`,o],asterisk:[a&&"asterisk"]},u=vn(s,Xz,t);return{...t,...u}},$ue=Dt(aue,{shouldForwardProp:e=>Go(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Gh.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Fn(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Kz=ge.forwardRef(function(t,n){const r=jn({name:"MuiInputLabel",props:t}),{disableAnimation:l=!1,margin:i,shrink:o,variant:a,className:s,...u}=r,c=ll();let d=o;typeof d>"u"&&c&&(d=c.filled||c.focused||c.adornedStart);const f=mu({props:r,muiFormControl:c,states:["size","variant","required","focused"]}),p={...r,disableAnimation:l,formControl:c,shrink:d,size:f.size,variant:f.variant,required:f.required,focused:f.focused},h=Iue(p);return Se.jsx($ue,{"data-shrink":d,ref:n,className:ln(h.root,s),...u,ownerState:p,classes:h})}),Nue=Object.freeze(Object.defineProperty({__proto__:null,default:Kz,getInputLabelUtilityClasses:Xz,inputLabelClasses:Lue},Symbol.toStringTag,{value:"Module"}));function Zz(e){return gn("MuiLinearProgress",e)}const Fue=fn("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]),jue=Fue,RS=4,LS=il` 0% { left: -35%; right: 100%; @@ -192,7 +212,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann left: 100%; right: -90%; } -`)),Wue=Hi(_8||(_8=lf` +`,zue=typeof LS!="string"?hs` + animation: ${LS} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; + `:null,IS=il` 0% { left: -200%; right: 100%; @@ -207,7 +229,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann left: 107%; right: -8%; } -`)),que=Hi(T8||(T8=lf` +`,Bue=typeof IS!="string"?hs` + animation: ${IS} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; + `:null,$S=il` 0% { opacity: 1; background-position: 0 -23px; @@ -222,15 +246,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann opacity: 1; background-position: -200px -23px; } -`)),Uue=e=>{const{classes:t,variant:n,color:r}=e,l={root:["root",`color${Jt(r)}`,n],dashed:["dashed",`dashedColor${Jt(r)}`],bar1:["bar",`barColor${Jt(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${Jt(r)}`,n==="buffer"&&`color${Jt(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return vn(l,dz,t)},TM=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?_l(e.palette[t].main,.62):wl(e.palette[t].main,.5),Hue=Et("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Jt(n.color)}`],t[n.variant]]}})(({ownerState:e,theme:t})=>Ie({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:TM(t,e.color)},e.color==="inherit"&&e.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},e.variant==="buffer"&&{backgroundColor:"transparent"},e.variant==="query"&&{transform:"rotate(180deg)"})),Vue=Et("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${Jt(n.color)}`]]}})(({ownerState:e,theme:t})=>{const n=TM(t,e.color);return Ie({position:"absolute",marginTop:0,height:"100%",width:"100%"},e.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},Jl(k8||(k8=lf` - animation: ${0} 3s infinite linear; - `),que)),Gue=Et("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${Jt(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>Ie({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.variant==="determinate"&&{transition:`transform .${Q3}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${Q3}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Jl(S8||(S8=lf` - width: auto; - animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; - `),Bue)),Yue=Et("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${Jt(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>Ie({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:TM(t,e.color),transition:`transform .${Q3}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Jl(C8||(C8=lf` - width: auto; - animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; - `),Wue)),Xue=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiLinearProgress"}),{className:l,color:i="primary",value:o,valueBuffer:a,variant:s="indeterminate"}=r,u=Kt(r,zue),c=Ie({},r,{color:i,variant:s}),d=Uue(c),f=po(),p={},m={bar1:{},bar2:{}};if((s==="determinate"||s==="buffer")&&o!==void 0){p["aria-valuenow"]=Math.round(o),p["aria-valuemin"]=0,p["aria-valuemax"]=100;let g=o-100;f.direction==="rtl"&&(g=-g),m.bar1.transform=`translateX(${g}%)`}if(s==="buffer"&&a!==void 0){let g=(a||0)-100;f.direction==="rtl"&&(g=-g),m.bar2.transform=`translateX(${g}%)`}return ke.jsxs(Hue,Ie({className:on(d.root,l),ownerState:c,role:"progressbar"},p,{ref:n},u,{children:[s==="buffer"?ke.jsx(Vue,{className:d.dashed,ownerState:c}):null,ke.jsx(Gue,{className:d.bar1,ownerState:c,style:m.bar1}),s==="determinate"?null:ke.jsx(Yue,{className:d.bar2,ownerState:c,style:m.bar2})]}))}),fz=Xue,Kue=Object.freeze(Object.defineProperty({__proto__:null,default:fz,getLinearProgressUtilityClass:dz,linearProgressClasses:jue},Symbol.toStringTag,{value:"Module"})),ry=ge.createContext({});function Zue(e){return yn("MuiList",e)}hn("MuiList",["root","padding","dense","subheader"]);const Que=["children","className","component","dense","disablePadding","subheader"],Jue=e=>{const{classes:t,disablePadding:n,dense:r,subheader:l}=e;return vn({root:["root",!n&&"padding",r&&"dense",l&&"subheader"]},Zue,t)},ece=Et("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>Ie({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),tce=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiList"}),{children:l,className:i,component:o="ul",dense:a=!1,disablePadding:s=!1,subheader:u}=r,c=Kt(r,Que),d=ge.useMemo(()=>({dense:a}),[a]),f=Ie({},r,{component:o,dense:a,disablePadding:s}),p=Jue(f);return ke.jsx(ry.Provider,{value:d,children:ke.jsxs(ece,Ie({as:o,className:on(p.root,i),ref:n,ownerState:f},c,{children:[u,l]}))})}),M8=hn("MuiListItemIcon",["root","alignItemsFlexStart"]);function pz(e){return yn("MuiListItemText",e)}const fm=hn("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),nce=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],rce=e=>{const{classes:t,inset:n,primary:r,secondary:l,dense:i}=e;return vn({root:["root",n&&"inset",i&&"dense",r&&l&&"multiline"],primary:["primary"],secondary:["secondary"]},pz,t)},ace=Et("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${fm.primary}`]:t.primary},{[`& .${fm.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>Ie({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),oce=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiListItemText"}),{children:l,className:i,disableTypography:o=!1,inset:a=!1,primary:s,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:d}=r,f=Kt(r,nce),{dense:p}=ge.useContext(ry);let m=s??l,g=c;const b=Ie({},r,{disableTypography:o,inset:a,primary:!!m,secondary:!!g,dense:p}),v=rce(b);return m!=null&&m.type!==dr&&!o&&(m=ke.jsx(dr,Ie({variant:p?"body2":"body1",className:v.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:m}))),g!=null&&g.type!==dr&&!o&&(g=ke.jsx(dr,Ie({variant:"body2",className:v.secondary,color:"text.secondary",display:"block"},d,{children:g}))),ke.jsxs(ace,Ie({className:on(v.root,i),ownerState:b,ref:n},f,{children:[m,g]}))}),ice=oce,lce=Object.freeze(Object.defineProperty({__proto__:null,default:ice,getListItemTextUtilityClass:pz,listItemTextClasses:fm},Symbol.toStringTag,{value:"Module"})),sce=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function ww(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function P8(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function hz(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function Jf(e,t,n,r,l,i){let o=!1,a=l(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(o)return!1;o=!0}const s=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!hz(a,i)||s)a=l(e,a,n);else return a.focus(),!0}return!1}const uce=ge.forwardRef(function(t,n){const{actions:r,autoFocus:l=!1,autoFocusItem:i=!1,children:o,className:a,disabledItemsFocusable:s=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=t,f=Kt(t,sce),p=ge.useRef(null),m=ge.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});no(()=>{l&&p.current.focus()},[l]),ge.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(y,w)=>{const _=!p.current.style.width;if(y.clientHeight{const w=p.current,_=y.key,x=Aa(w).activeElement;if(_==="ArrowDown")y.preventDefault(),Jf(w,x,u,s,ww);else if(_==="ArrowUp")y.preventDefault(),Jf(w,x,u,s,P8);else if(_==="Home")y.preventDefault(),Jf(w,null,u,s,ww);else if(_==="End")y.preventDefault(),Jf(w,null,u,s,P8);else if(_.length===1){const T=m.current,k=_.toLowerCase(),S=performance.now();T.keys.length>0&&(S-T.lastTime>500?(T.keys=[],T.repeating=!0,T.previousKeyMatched=!0):T.repeating&&k!==T.keys[0]&&(T.repeating=!1)),T.lastTime=S,T.keys.push(k);const C=x&&!T.repeating&&hz(x,T);T.previousKeyMatched&&(C||Jf(w,x,!1,s,ww,T))?y.preventDefault():T.previousKeyMatched=!1}c&&c(y)},b=Lr(p,n);let v=-1;ge.Children.forEach(o,(y,w)=>{if(!ge.isValidElement(y)){v===w&&(v+=1,v>=o.length&&(v=-1));return}y.props.disabled||(d==="selectedMenu"&&y.props.selected||v===-1)&&(v=w),v===w&&(y.props.disabled||y.props.muiSkipListHighlight||y.type.muiSkipListHighlight)&&(v+=1,v>=o.length&&(v=-1))});const h=ge.Children.map(o,(y,w)=>{if(w===v){const _={};return i&&(_.autoFocus=!0),y.props.tabIndex===void 0&&d==="selectedMenu"&&(_.tabIndex=0),ge.cloneElement(y,_)}return y});return ke.jsx(tce,Ie({role:"menu",ref:b,className:a,onKeyDown:g,tabIndex:l?0:-1},f,{children:h}))});function cce(e){return yn("MuiPopover",e)}hn("MuiPopover",["root","paper"]);const dce=["onEntering"],fce=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],pce=["slotProps"];function O8(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function A8(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function D8(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function _w(e){return typeof e=="function"?e():e}const hce=e=>{const{classes:t}=e;return vn({root:["root"],paper:["paper"]},cce,t)},mce=Et(Kj,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),mz=Et(nu,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),kM=ge.forwardRef(function(t,n){var r,l,i;const o=pn({props:t,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:f,className:p,container:m,elevation:g=8,marginThreshold:b=16,open:v,PaperProps:h={},slots:y,slotProps:w,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:x=dm,transitionDuration:T="auto",TransitionProps:{onEntering:k}={},disableScrollLock:S=!1}=o,C=Kt(o.TransitionProps,dce),M=Kt(o,fce),O=(r=w==null?void 0:w.paper)!=null?r:h,D=ge.useRef(),P=Lr(D,O.ref),E=Ie({},o,{anchorOrigin:u,anchorReference:d,elevation:g,marginThreshold:b,externalPaperSlotProps:O,transformOrigin:_,TransitionComponent:x,transitionDuration:T,TransitionProps:C}),I=hce(E),A=ge.useCallback(()=>{if(d==="anchorPosition")return c;const Z=_w(s),X=(Z&&Z.nodeType===1?Z:Aa(D.current).body).getBoundingClientRect();return{top:X.top+O8(X,u.vertical),left:X.left+A8(X,u.horizontal)}},[s,u.horizontal,u.vertical,c,d]),F=ge.useCallback(Z=>({vertical:O8(Z,_.vertical),horizontal:A8(Z,_.horizontal)}),[_.horizontal,_.vertical]),j=ge.useCallback(Z=>{const G={width:Z.offsetWidth,height:Z.offsetHeight},X=F(G);if(d==="none")return{top:null,left:null,transformOrigin:D8(X)};const Q=A();let re=Q.top-X.vertical,ae=Q.left-X.horizontal;const ie=re+G.height,se=ae+G.width,he=bl(_w(s)),Se=he.innerHeight-b,Oe=he.innerWidth-b;if(b!==null&&reSe){const Pe=ie-Se;re-=Pe,X.vertical+=Pe}if(b!==null&&aeOe){const Pe=se-Oe;ae-=Pe,X.horizontal+=Pe}return{top:`${Math.round(re)}px`,left:`${Math.round(ae)}px`,transformOrigin:D8(X)}},[s,d,A,F,b]),[z,B]=ge.useState(v),N=ge.useCallback(()=>{const Z=D.current;if(!Z)return;const G=j(Z);G.top!==null&&(Z.style.top=G.top),G.left!==null&&(Z.style.left=G.left),Z.style.transformOrigin=G.transformOrigin,B(!0)},[j]);ge.useEffect(()=>(S&&window.addEventListener("scroll",N),()=>window.removeEventListener("scroll",N)),[s,S,N]);const R=(Z,G)=>{k&&k(Z,G),N()},q=()=>{B(!1)};ge.useEffect(()=>{v&&N()}),ge.useImperativeHandle(a,()=>v?{updatePosition:()=>{N()}}:null,[v,N]),ge.useEffect(()=>{if(!v)return;const Z=Um(()=>{N()}),G=bl(s);return G.addEventListener("resize",Z),()=>{Z.clear(),G.removeEventListener("resize",Z)}},[s,v,N]);let Y=T;T==="auto"&&!x.muiSupportAuto&&(Y=void 0);const L=m||(s?Aa(_w(s)).body:void 0),W=(l=y==null?void 0:y.root)!=null?l:mce,U=(i=y==null?void 0:y.paper)!=null?i:mz,V=Ui({elementType:U,externalSlotProps:Ie({},O,{style:z?O.style:Ie({},O.style,{opacity:0})}),additionalProps:{elevation:g,ref:P},ownerState:E,className:on(I.paper,O==null?void 0:O.className)}),te=Ui({elementType:W,externalSlotProps:(w==null?void 0:w.root)||{},externalForwardedProps:M,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:L,open:v},ownerState:E,className:on(I.root,p)}),{slotProps:ee}=te,H=Kt(te,pce);return ke.jsx(W,Ie({},H,!lm(W)&&{slotProps:ee,disableScrollLock:S},{children:ke.jsx(x,Ie({appear:!0,in:v,onEntering:R,onExited:q,timeout:Y},C,{children:ke.jsx(U,Ie({},V,{children:f}))}))}))});function gz(e){return yn("MuiMenu",e)}const gce=hn("MuiMenu",["root","paper","list"]),vce=gce,yce=["onEntering"],bce=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],xce={vertical:"top",horizontal:"right"},wce={vertical:"top",horizontal:"left"},_ce=e=>{const{classes:t}=e;return vn({root:["root"],paper:["paper"],list:["list"]},gz,t)},Tce=Et(kM,{shouldForwardProp:e=>Vi(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),kce=Et(mz,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Sce=Et(uce,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Cce=ge.forwardRef(function(t,n){var r,l;const i=pn({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:a,className:s,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:f,PaperProps:p={},PopoverClasses:m,transitionDuration:g="auto",TransitionProps:{onEntering:b}={},variant:v="selectedMenu",slots:h={},slotProps:y={}}=i,w=Kt(i.TransitionProps,yce),_=Kt(i,bce),x=po(),T=x.direction==="rtl",k=Ie({},i,{autoFocus:o,disableAutoFocusItem:u,MenuListProps:c,onEntering:b,PaperProps:p,transitionDuration:g,TransitionProps:w,variant:v}),S=_ce(k),C=o&&!u&&f,M=ge.useRef(null),O=(j,z)=>{M.current&&M.current.adjustStyleForScrollbar(j,x),b&&b(j,z)},D=j=>{j.key==="Tab"&&(j.preventDefault(),d&&d(j,"tabKeyDown"))};let P=-1;ge.Children.map(a,(j,z)=>{ge.isValidElement(j)&&(j.props.disabled||(v==="selectedMenu"&&j.props.selected||P===-1)&&(P=z))});const E=(r=h.paper)!=null?r:kce,I=(l=y.paper)!=null?l:p,A=Ui({elementType:h.root,externalSlotProps:y.root,ownerState:k,className:[S.root,s]}),F=Ui({elementType:E,externalSlotProps:I,ownerState:k,className:S.paper});return ke.jsx(Tce,Ie({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?xce:wce,slots:{paper:E,root:h.root},slotProps:{root:A,paper:F},open:f,ref:n,transitionDuration:g,TransitionProps:Ie({onEntering:O},w),ownerState:k},_,{classes:m,children:ke.jsx(Sce,Ie({onKeyDown:D,actions:M,autoFocus:o&&(P===-1||u),autoFocusItem:C,variant:v},c,{className:on(S.list,c.className),children:a}))}))}),vz=Cce,Mce=Object.freeze(Object.defineProperty({__proto__:null,default:vz,getMenuUtilityClass:gz,menuClasses:vce},Symbol.toStringTag,{value:"Module"}));function yz(e){return yn("MuiMenuItem",e)}const Pce=hn("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Yc=Pce,Oce=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Ace=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Dce=e=>{const{disabled:t,dense:n,divider:r,disableGutters:l,selected:i,classes:o}=e,s=vn({root:["root",n&&"dense",t&&"disabled",!l&&"gutters",r&&"divider",i&&"selected"]},yz,o);return Ie({},o,s)},Ece=Et(Tl,{shouldForwardProp:e=>Vi(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Ace})(({theme:e,ownerState:t})=>Ie({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Yc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Yc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Yc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rr(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Yc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Yc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${v8.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${v8.inset}`]:{marginLeft:52},[`& .${fm.root}`]:{marginTop:0,marginBottom:0},[`& .${fm.inset}`]:{paddingLeft:36},[`& .${M8.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Ie({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${M8.root} svg`]:{fontSize:"1.25rem"}}))),Rce=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiMenuItem"}),{autoFocus:l=!1,component:i="li",dense:o=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:f}=r,p=Kt(r,Oce),m=ge.useContext(ry),g=ge.useMemo(()=>({dense:o||m.dense||!1,disableGutters:s}),[m.dense,o,s]),b=ge.useRef(null);no(()=>{l&&b.current&&b.current.focus()},[l]);const v=Ie({},r,{dense:g.dense,divider:a,disableGutters:s}),h=Dce(r),y=Lr(b,n);let w;return r.disabled||(w=d!==void 0?d:-1),ke.jsx(ry.Provider,{value:g,children:ke.jsx(Ece,Ie({ref:y,role:c,tabIndex:w,component:i,focusVisibleClassName:on(h.focusVisible,u),className:on(h.root,f)},p,{ownerState:v,classes:h}))})}),bz=Rce,Lce=Object.freeze(Object.defineProperty({__proto__:null,default:bz,getMenuItemUtilityClass:yz,menuItemClasses:Yc},Symbol.toStringTag,{value:"Module"}));function Ice(e){return yn("MuiNativeSelect",e)}const SM=hn("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),$ce=["className","disabled","error","IconComponent","inputRef","variant"],Nce=e=>{const{classes:t,variant:n,disabled:r,multiple:l,open:i,error:o}=e,a={select:["select",n,r&&"disabled",l&&"multiple",o&&"error"],icon:["icon",`icon${Jt(n)}`,i&&"iconOpen",r&&"disabled"]};return vn(a,Ice,t)},xz=({ownerState:e,theme:t})=>Ie({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Ie({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${SM.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Fce=Et("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Vi,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${SM.multiple}`]:t.multiple}]}})(xz),wz=({ownerState:e,theme:t})=>Ie({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${SM.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),jce=Et("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Jt(n.variant)}`],n.open&&t.iconOpen]}})(wz),zce=ge.forwardRef(function(t,n){const{className:r,disabled:l,error:i,IconComponent:o,inputRef:a,variant:s="standard"}=t,u=Kt(t,$ce),c=Ie({},t,{disabled:l,variant:s,error:i}),d=Nce(c);return ke.jsxs(ge.Fragment,{children:[ke.jsx(Fce,Ie({ownerState:c,className:on(d.select,r),disabled:l,ref:a||n},u)),t.multiple?null:ke.jsx(jce,{as:o,ownerState:c,className:d.icon})]})});var E8;const Bce=["children","classes","className","label","notched"],Wce=Et("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),qce=Et("legend")(({ownerState:e,theme:t})=>Ie({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&Ie({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function Uce(e){const{className:t,label:n,notched:r}=e,l=Kt(e,Bce),i=n!=null&&n!=="",o=Ie({},e,{notched:r,withLabel:i});return ke.jsx(Wce,Ie({"aria-hidden":!0,className:t,ownerState:o},l,{children:ke.jsx(qce,{ownerState:o,children:i?ke.jsx("span",{children:n}):E8||(E8=ke.jsx("span",{className:"notranslate",children:"​"}))})}))}const Hce=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Vce=e=>{const{classes:t}=e,r=vn({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Eie,t);return Ie({},t,r)},Gce=Et(rb,{shouldForwardProp:e=>Vi(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:tb})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Ie({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${xs.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${xs.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${xs.focused} .${xs.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${xs.error} .${xs.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${xs.disabled} .${xs.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Ie({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Yce=Et(Uce,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),Xce=Et(ab,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:nb})(({theme:e,ownerState:t})=>Ie({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),CM=ge.forwardRef(function(t,n){var r,l,i,o,a;const s=pn({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:f,multiline:p=!1,notched:m,slots:g={},type:b="text"}=s,v=Kt(s,Hce),h=Vce(s),y=Gi(),w=au({props:s,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=Ie({},s,{color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:y,fullWidth:c,hiddenLabel:w.hiddenLabel,multiline:p,size:w.size,type:b}),x=(r=(l=g.root)!=null?l:u.Root)!=null?r:Gce,T=(i=(o=g.input)!=null?o:u.Input)!=null?i:Xce;return ke.jsx(ob,Ie({slots:{root:x,input:T},renderSuffix:k=>ke.jsx(Yce,{ownerState:_,className:h.notchedOutline,label:f!=null&&f!==""&&w.required?a||(a=ke.jsxs(ge.Fragment,{children:[f," ","*"]})):f,notched:typeof m<"u"?m:!!(k.startAdornment||k.filled||k.focused)}),fullWidth:c,inputComponent:d,multiline:p,ref:n,type:b},v,{classes:Ie({},h,{notchedOutline:null})}))});CM.muiName="Input";const R8=Qr(ke.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),L8=Qr(ke.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function _z(e){return yn("MuiSelect",e)}const Kce=hn("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Xc=Kce;var I8;const Zce=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Qce=Et("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Xc.select}`]:t.select},{[`&.${Xc.select}`]:t[n.variant]},{[`&.${Xc.error}`]:t.error},{[`&.${Xc.multiple}`]:t.multiple}]}})(xz,{[`&.${Xc.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Jce=Et("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Jt(n.variant)}`],n.open&&t.iconOpen]}})(wz),ede=Et("input",{shouldForwardProp:e=>Une(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function $8(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function tde(e){return e==null||typeof e=="string"&&!e.trim()}const nde=e=>{const{classes:t,variant:n,disabled:r,multiple:l,open:i,error:o}=e,a={select:["select",n,r&&"disabled",l&&"multiple",o&&"error"],icon:["icon",`icon${Jt(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return vn(a,_z,t)},rde=ge.forwardRef(function(t,n){var r;const{"aria-describedby":l,"aria-label":i,autoFocus:o,autoWidth:a,children:s,className:u,defaultOpen:c,defaultValue:d,disabled:f,displayEmpty:p,error:m=!1,IconComponent:g,inputRef:b,labelId:v,MenuProps:h={},multiple:y,name:w,onBlur:_,onChange:x,onClose:T,onFocus:k,onOpen:S,open:C,readOnly:M,renderValue:O,SelectDisplayProps:D={},tabIndex:P,value:E,variant:I="standard"}=t,A=Kt(t,Zce),[F,j]=Zl({controlled:E,default:d,name:"Select"}),[z,B]=Zl({controlled:C,default:c,name:"Select"}),N=ge.useRef(null),R=ge.useRef(null),[q,Y]=ge.useState(null),{current:L}=ge.useRef(C!=null),[W,U]=ge.useState(),V=Lr(n,b),te=ge.useCallback(pe=>{R.current=pe,pe&&Y(pe)},[]),ee=q==null?void 0:q.parentNode;ge.useImperativeHandle(V,()=>({focus:()=>{R.current.focus()},node:N.current,value:F}),[F]),ge.useEffect(()=>{c&&z&&q&&!L&&(U(a?null:ee.clientWidth),R.current.focus())},[q,a]),ge.useEffect(()=>{o&&R.current.focus()},[o]),ge.useEffect(()=>{if(!v)return;const pe=Aa(R.current).getElementById(v);if(pe){const xe=()=>{getSelection().isCollapsed&&R.current.focus()};return pe.addEventListener("click",xe),()=>{pe.removeEventListener("click",xe)}}},[v]);const H=(pe,xe)=>{pe?S&&S(xe):T&&T(xe),L||(U(a?null:ee.clientWidth),B(pe))},Z=pe=>{pe.button===0&&(pe.preventDefault(),R.current.focus(),H(!0,pe))},G=pe=>{H(!1,pe)},X=ge.Children.toArray(s),Q=pe=>{const xe=X.find(ye=>ye.props.value===pe.target.value);xe!==void 0&&(j(xe.props.value),x&&x(pe,xe))},re=pe=>xe=>{let ye;if(xe.currentTarget.hasAttribute("tabindex")){if(y){ye=Array.isArray(F)?F.slice():[];const Te=F.indexOf(pe.props.value);Te===-1?ye.push(pe.props.value):ye.splice(Te,1)}else ye=pe.props.value;if(pe.props.onClick&&pe.props.onClick(xe),F!==ye&&(j(ye),x)){const Te=xe.nativeEvent||xe,Ae=new Te.constructor(Te.type,Te);Object.defineProperty(Ae,"target",{writable:!0,value:{value:ye,name:w}}),x(Ae,pe)}y||H(!1,xe)}},ae=pe=>{M||[" ","ArrowUp","ArrowDown","Enter"].indexOf(pe.key)!==-1&&(pe.preventDefault(),H(!0,pe))},ie=q!==null&&z,se=pe=>{!ie&&_&&(Object.defineProperty(pe,"target",{writable:!0,value:{value:F,name:w}}),_(pe))};delete A["aria-invalid"];let he,Se;const Oe=[];let Pe=!1;(ny({value:F})||p)&&(O?he=O(F):Pe=!0);const Me=X.map(pe=>{if(!ge.isValidElement(pe))return null;let xe;if(y){if(!Array.isArray(F))throw new Error(No(2));xe=F.some(ye=>$8(ye,pe.props.value)),xe&&Pe&&Oe.push(pe.props.children)}else xe=$8(F,pe.props.value),xe&&Pe&&(Se=pe.props.children);return ge.cloneElement(pe,{"aria-selected":xe?"true":"false",onClick:re(pe),onKeyUp:ye=>{ye.key===" "&&ye.preventDefault(),pe.props.onKeyUp&&pe.props.onKeyUp(ye)},role:"option",selected:xe,value:void 0,"data-value":pe.props.value})});Pe&&(y?Oe.length===0?he=null:he=Oe.reduce((pe,xe,ye)=>(pe.push(xe),ye{const{classes:t}=e;return t},MM={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Vi(e)&&e!=="variant",slot:"Root"},lde=Et(_M,MM)(""),sde=Et(CM,MM)(""),ude=Et(xM,MM)(""),Tz=ge.forwardRef(function(t,n){const r=pn({name:"MuiSelect",props:t}),{autoWidth:l=!1,children:i,classes:o={},className:a,defaultOpen:s=!1,displayEmpty:u=!1,IconComponent:c=Lie,id:d,input:f,inputProps:p,label:m,labelId:g,MenuProps:b,multiple:v=!1,native:h=!1,onClose:y,onOpen:w,open:_,renderValue:x,SelectDisplayProps:T,variant:k="outlined"}=r,S=Kt(r,ade),C=h?zce:rde,M=Gi(),O=au({props:r,muiFormControl:M,states:["variant","error"]}),D=O.variant||k,P=Ie({},r,{variant:D,classes:o}),E=ide(P),I=Kt(E,ode),A=f||{standard:ke.jsx(lde,{ownerState:P}),outlined:ke.jsx(sde,{label:m,ownerState:P}),filled:ke.jsx(ude,{ownerState:P})}[D],F=Lr(n,A.ref);return ke.jsx(ge.Fragment,{children:ge.cloneElement(A,Ie({inputComponent:C,inputProps:Ie({children:i,error:O.error,IconComponent:c,variant:D,type:void 0,multiple:v},h?{id:d}:{autoWidth:l,defaultOpen:s,displayEmpty:u,labelId:g,MenuProps:b,onClose:y,onOpen:w,open:_,renderValue:x,SelectDisplayProps:Ie({id:d},T)},p,{classes:p?ha(I,p.classes):I},f?f.props.inputProps:{})},v&&h&&D==="outlined"?{notched:!0}:{},{ref:F,className:on(A.props.className,a,E.root)},!f&&{variant:D},S))})});Tz.muiName="Select";const sb=Tz,cde=Object.freeze(Object.defineProperty({__proto__:null,default:sb,getSelectUtilityClasses:_z,selectClasses:Xc},Symbol.toStringTag,{value:"Module"}));function dde(e){return yn("MuiSkeleton",e)}hn("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const fde=["animation","className","component","height","style","variant","width"];let ay=e=>e,N8,F8,j8,z8;const pde=e=>{const{classes:t,variant:n,animation:r,hasChildren:l,width:i,height:o}=e;return vn({root:["root",n,r,l&&"withChildren",l&&!i&&"fitContent",l&&!o&&"heightAuto"]},dde,t)},hde=Hi(N8||(N8=ay` +`,Wue=typeof $S!="string"?hs` + animation: ${$S} 3s infinite linear; + `:null,que=e=>{const{classes:t,variant:n,color:r}=e,l={root:["root",`color${Qt(r)}`,n],dashed:["dashed",`dashedColor${Qt(r)}`],bar1:["bar",`barColor${Qt(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${Qt(r)}`,n==="buffer"&&`color${Qt(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return vn(l,Zz,t)},d5=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?$l(e.palette[t].main,.62):Il(e.palette[t].main,.5),Uue=Dt("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Qt(n.color)}`],t[n.variant]]}})(Fn(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(ra()).map(([t])=>({props:{color:t},style:{backgroundColor:d5(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),Hue=Dt("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${Qt(n.color)}`]]}})(Fn(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(ra()).map(([t])=>{const n=d5(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),Wue||{animation:`${$S} 3s infinite linear`}),Vue=Dt("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${Qt(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(Fn(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(ra()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${RS}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${RS}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:zue||{animation:`${LS} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),Gue=Dt("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${Qt(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(Fn(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(ra()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(ra()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:d5(e,t),transition:`transform .${RS}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:Bue||{animation:`${IS} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),Yue=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiLinearProgress"}),{className:l,color:i="primary",value:o,valueBuffer:a,variant:s="indeterminate",...u}=r,c={...r,color:i,variant:s},d=que(c),f=Tc(),p={},h={bar1:{},bar2:{}};if((s==="determinate"||s==="buffer")&&o!==void 0){p["aria-valuenow"]=Math.round(o),p["aria-valuemin"]=0,p["aria-valuemax"]=100;let g=o-100;f&&(g=-g),h.bar1.transform=`translateX(${g}%)`}if(s==="buffer"&&a!==void 0){let g=(a||0)-100;f&&(g=-g),h.bar2.transform=`translateX(${g}%)`}return Se.jsxs(Uue,{className:ln(d.root,l),ownerState:c,role:"progressbar",...p,ref:n,...u,children:[s==="buffer"?Se.jsx(Hue,{className:d.dashed,ownerState:c}):null,Se.jsx(Vue,{className:d.bar1,ownerState:c,style:h.bar1}),s==="determinate"?null:Se.jsx(Gue,{className:d.bar2,ownerState:c,style:h.bar2})]})}),Qz=Yue,Xue=Object.freeze(Object.defineProperty({__proto__:null,default:Qz,getLinearProgressUtilityClass:Zz,linearProgressClasses:jue},Symbol.toStringTag,{value:"Module"})),Cy=ge.createContext({});function Kue(e){return gn("MuiList",e)}fn("MuiList",["root","padding","dense","subheader"]);const Zue=e=>{const{classes:t,disablePadding:n,dense:r,subheader:l}=e;return vn({root:["root",!n&&"padding",r&&"dense",l&&"subheader"]},Kue,t)},Que=Dt("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Jue=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiList"}),{children:l,className:i,component:o="ul",dense:a=!1,disablePadding:s=!1,subheader:u,...c}=r,d=ge.useMemo(()=>({dense:a}),[a]),f={...r,component:o,dense:a,disablePadding:s},p=Zue(f);return Se.jsx(Cy.Provider,{value:d,children:Se.jsxs(Que,{as:o,className:ln(p.root,i),ref:n,ownerState:f,...c,children:[u,l]})})}),u7=fn("MuiListItemIcon",["root","alignItemsFlexStart"]);function Jz(e){return gn("MuiListItemText",e)}const ece=fn("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Uu=ece,tce=e=>{const{classes:t,inset:n,primary:r,secondary:l,dense:i}=e;return vn({root:["root",n&&"inset",i&&"dense",r&&l&&"multiline"],primary:["primary"],secondary:["secondary"]},Jz,t)},nce=Dt("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Uu.primary}`]:t.primary},{[`& .${Uu.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${_S.root}:where(& .${Uu.primary})`]:{display:"block"},[`.${_S.root}:where(& .${Uu.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),rce=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiListItemText"}),{children:l,className:i,disableTypography:o=!1,inset:a=!1,primary:s,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:d,...f}=r,{dense:p}=ge.useContext(Cy);let h=s??l,g=c;const b={...r,disableTypography:o,inset:a,primary:!!h,secondary:!!g,dense:p},v=tce(b);return h!=null&&h.type!==mr&&!o&&(h=Se.jsx(mr,{variant:p?"body2":"body1",className:v.primary,component:u!=null&&u.variant?void 0:"span",...u,children:h})),g!=null&&g.type!==mr&&!o&&(g=Se.jsx(mr,{variant:"body2",className:v.secondary,color:"textSecondary",...d,children:g})),Se.jsxs(nce,{className:ln(v.root,i),ownerState:b,ref:n,...f,children:[h,g]})}),ace=rce,oce=Object.freeze(Object.defineProperty({__proto__:null,default:ace,getListItemTextUtilityClass:Jz,listItemTextClasses:Uu},Symbol.toStringTag,{value:"Module"}));function e_(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function c7(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function eB(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function hp(e,t,n,r,l,i){let o=!1,a=l(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(o)return!1;o=!0}const s=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!eB(a,i)||s)a=l(e,a,n);else return a.focus(),!0}return!1}const ice=ge.forwardRef(function(t,n){const{actions:r,autoFocus:l=!1,autoFocusItem:i=!1,children:o,className:a,disabledItemsFocusable:s=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu",...f}=t,p=ge.useRef(null),h=ge.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Vo(()=>{l&&p.current.focus()},[l]),ge.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(y,{direction:x})=>{const _=!p.current.style.width;if(y.clientHeight{const x=p.current,_=y.key;if(y.ctrlKey||y.metaKey||y.altKey){c&&c(y);return}const S=qa(x).activeElement;if(_==="ArrowDown")y.preventDefault(),hp(x,S,u,s,e_);else if(_==="ArrowUp")y.preventDefault(),hp(x,S,u,s,c7);else if(_==="Home")y.preventDefault(),hp(x,null,u,s,e_);else if(_==="End")y.preventDefault(),hp(x,null,u,s,c7);else if(_.length===1){const k=h.current,C=_.toLowerCase(),T=performance.now();k.keys.length>0&&(T-k.lastTime>500?(k.keys=[],k.repeating=!0,k.previousKeyMatched=!0):k.repeating&&C!==k.keys[0]&&(k.repeating=!1)),k.lastTime=T,k.keys.push(C);const M=S&&!k.repeating&&eB(S,k);k.previousKeyMatched&&(M||hp(x,S,!1,s,e_,k))?y.preventDefault():k.previousKeyMatched=!1}c&&c(y)},b=Er(p,n);let v=-1;ge.Children.forEach(o,(y,x)=>{if(!ge.isValidElement(y)){v===x&&(v+=1,v>=o.length&&(v=-1));return}y.props.disabled||(d==="selectedMenu"&&y.props.selected||v===-1)&&(v=x),v===x&&(y.props.disabled||y.props.muiSkipListHighlight||y.type.muiSkipListHighlight)&&(v+=1,v>=o.length&&(v=-1))});const m=ge.Children.map(o,(y,x)=>{if(x===v){const _={};return i&&(_.autoFocus=!0),y.props.tabIndex===void 0&&d==="selectedMenu"&&(_.tabIndex=0),ge.cloneElement(y,_)}return y});return Se.jsx(Jue,{role:"menu",ref:b,className:a,onKeyDown:g,tabIndex:l?0:-1,...f,children:m})});function lce(e){return gn("MuiPopover",e)}fn("MuiPopover",["root","paper"]);function d7(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function f7(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function p7(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function t_(e){return typeof e=="function"?e():e}const sce=e=>{const{classes:t}=e;return vn({root:["root"],paper:["paper"]},lce,t)},uce=Dt(Fz,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tB=Dt(pu,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Ab=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiPopover"}),{action:l,anchorEl:i,anchorOrigin:o={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:s="anchorEl",children:u,className:c,container:d,elevation:f=8,marginThreshold:p=16,open:h,PaperProps:g={},slots:b={},slotProps:v={},transformOrigin:m={vertical:"top",horizontal:"left"},TransitionComponent:y=Jd,transitionDuration:x="auto",TransitionProps:{onEntering:_,...w}={},disableScrollLock:S=!1,...k}=r,C=(v==null?void 0:v.paper)??g,T=ge.useRef(),M={...r,anchorOrigin:o,anchorReference:s,elevation:f,marginThreshold:p,externalPaperSlotProps:C,transformOrigin:m,TransitionComponent:y,transitionDuration:x,TransitionProps:w},O=sce(M),D=ge.useCallback(()=>{if(s==="anchorPosition")return a;const te=t_(i),U=(te&&te.nodeType===1?te:qa(T.current).body).getBoundingClientRect();return{top:U.top+d7(U,o.vertical),left:U.left+f7(U,o.horizontal)}},[i,o.horizontal,o.vertical,a,s]),P=ge.useCallback(te=>({vertical:d7(te,m.vertical),horizontal:f7(te,m.horizontal)}),[m.horizontal,m.vertical]),E=ge.useCallback(te=>{const ee={width:te.offsetWidth,height:te.offsetHeight},U=P(ee);if(s==="none")return{top:null,left:null,transformOrigin:p7(U)};const Q=D();let V=Q.top-U.vertical,X=Q.left-U.horizontal;const K=V+ee.height,ne=X+ee.width,ae=Ni(t_(i)),ie=ae.innerHeight-p,se=ae.innerWidth-p;if(p!==null&&Vie){const pe=K-ie;V-=pe,U.vertical+=pe}if(p!==null&&Xse){const pe=ne-se;X-=pe,U.horizontal+=pe}return{top:`${Math.round(V)}px`,left:`${Math.round(X)}px`,transformOrigin:p7(U)}},[i,s,D,P,p]),[I,A]=ge.useState(h),F=ge.useCallback(()=>{const te=T.current;if(!te)return;const ee=E(te);ee.top!==null&&te.style.setProperty("top",ee.top),ee.left!==null&&(te.style.left=ee.left),te.style.transformOrigin=ee.transformOrigin,A(!0)},[E]);ge.useEffect(()=>(S&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F)),[i,S,F]);const j=(te,ee)=>{_&&_(te,ee),F()},B=()=>{A(!1)};ge.useEffect(()=>{h&&F()}),ge.useImperativeHandle(l,()=>h?{updatePosition:()=>{F()}}:null,[h,F]),ge.useEffect(()=>{if(!h)return;const te=ug(()=>{F()}),ee=Ni(i);return ee.addEventListener("resize",te),()=>{te.clear(),ee.removeEventListener("resize",te)}},[i,h,F]);let z=x;x==="auto"&&!y.muiSupportAuto&&(z=void 0);const N=d||(i?qa(t_(i)).body:void 0),R={slots:b,slotProps:{...v,paper:C}},[q,Y]=Io("paper",{elementType:tB,externalForwardedProps:R,additionalProps:{elevation:f,className:ln(O.paper,C==null?void 0:C.className),style:I?C.style:{...C.style,opacity:0}},ownerState:M}),[L,{slotProps:W,...H}]=Io("root",{elementType:uce,externalForwardedProps:R,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:N,open:h},ownerState:M,className:ln(O.root,c)}),G=Er(T,Y.ref);return Se.jsx(L,{...H,...!_y(L)&&{slotProps:W,disableScrollLock:S},...k,ref:n,children:Se.jsx(y,{appear:!0,in:h,onEntering:j,onExited:B,timeout:z,...w,children:Se.jsx(q,{...Y,ref:G,children:u})})})});function nB(e){return gn("MuiMenu",e)}const cce=fn("MuiMenu",["root","paper","list"]),dce=cce,fce={vertical:"top",horizontal:"right"},pce={vertical:"top",horizontal:"left"},hce=e=>{const{classes:t}=e;return vn({root:["root"],paper:["paper"],list:["list"]},nB,t)},mce=Dt(Ab,{shouldForwardProp:e=>Go(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gce=Dt(tB,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),vce=Dt(ice,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),yce=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiMenu"}),{autoFocus:l=!0,children:i,className:o,disableAutoFocusItem:a=!1,MenuListProps:s={},onClose:u,open:c,PaperProps:d={},PopoverClasses:f,transitionDuration:p="auto",TransitionProps:{onEntering:h,...g}={},variant:b="selectedMenu",slots:v={},slotProps:m={},...y}=r,x=Tc(),_={...r,autoFocus:l,disableAutoFocusItem:a,MenuListProps:s,onEntering:h,PaperProps:d,transitionDuration:p,TransitionProps:g,variant:b},w=hce(_),S=l&&!a&&c,k=ge.useRef(null),C=(I,A)=>{k.current&&k.current.adjustStyleForScrollbar(I,{direction:x?"rtl":"ltr"}),h&&h(I,A)},T=I=>{I.key==="Tab"&&(I.preventDefault(),u&&u(I,"tabKeyDown"))};let M=-1;ge.Children.map(i,(I,A)=>{ge.isValidElement(I)&&(I.props.disabled||(b==="selectedMenu"&&I.props.selected||M===-1)&&(M=A))});const O=v.paper??gce,D=m.paper??d,P=ic({elementType:v.root,externalSlotProps:m.root,ownerState:_,className:[w.root,o]}),E=ic({elementType:O,externalSlotProps:D,ownerState:_,className:w.paper});return Se.jsx(mce,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:x?"right":"left"},transformOrigin:x?fce:pce,slots:{paper:O,root:v.root},slotProps:{root:P,paper:E},open:c,ref:n,transitionDuration:p,TransitionProps:{onEntering:C,...g},ownerState:_,...y,classes:f,children:Se.jsx(vce,{onKeyDown:T,actions:k,autoFocus:l&&(M===-1||a),autoFocusItem:S,variant:b,...s,className:ln(w.list,s.className),children:i})})}),rB=yce,bce=Object.freeze(Object.defineProperty({__proto__:null,default:rB,getMenuUtilityClass:nB,menuClasses:dce},Symbol.toStringTag,{value:"Module"}));function aB(e){return gn("MuiMenuItem",e)}const xce=fn("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),id=xce,wce=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},_ce=e=>{const{disabled:t,dense:n,divider:r,disableGutters:l,selected:i,classes:o}=e,s=vn({root:["root",n&&"dense",t&&"disabled",!l&&"gutters",r&&"divider",i&&"selected"]},aB,o);return{...o,...s}},Tce=Dt(Nl,{shouldForwardProp:e=>Go(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:wce})(Fn(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${id.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ar(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${id.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ar(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${id.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ar(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ar(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${id.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${id.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${o7.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${o7.inset}`]:{marginLeft:52},[`& .${Uu.root}`]:{marginTop:0,marginBottom:0},[`& .${Uu.inset}`]:{paddingLeft:36},[`& .${u7.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${u7.root} svg`]:{fontSize:"1.25rem"}}}]}))),Yh=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiMenuItem"}),{autoFocus:l=!1,component:i="li",dense:o=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:f,...p}=r,h=ge.useContext(Cy),g=ge.useMemo(()=>({dense:o||h.dense||!1,disableGutters:s}),[h.dense,o,s]),b=ge.useRef(null);Vo(()=>{l&&b.current&&b.current.focus()},[l]);const v={...r,dense:g.dense,divider:a,disableGutters:s},m=_ce(r),y=Er(b,n);let x;return r.disabled||(x=d!==void 0?d:-1),Se.jsx(Cy.Provider,{value:g,children:Se.jsx(Tce,{ref:y,role:c,tabIndex:x,component:i,focusVisibleClassName:ln(m.focusVisible,u),className:ln(m.root,f),...p,ownerState:v,classes:m})})}),Sce=Object.freeze(Object.defineProperty({__proto__:null,default:Yh,getMenuItemUtilityClass:aB,menuItemClasses:id},Symbol.toStringTag,{value:"Module"}));function kce(e){return gn("MuiNativeSelect",e)}const f5=fn("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Cce=e=>{const{classes:t,variant:n,disabled:r,multiple:l,open:i,error:o}=e,a={select:["select",n,r&&"disabled",l&&"multiple",o&&"error"],icon:["icon",`icon${Qt(n)}`,i&&"iconOpen",r&&"disabled"]};return vn(a,kce,t)},oB=Dt("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${f5.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),Mce=Dt(oB,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Go,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${f5.multiple}`]:t.multiple}]}})({}),iB=Dt("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${f5.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),Pce=Dt(iB,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Qt(n.variant)}`],n.open&&t.iconOpen]}})({}),Oce=ge.forwardRef(function(t,n){const{className:r,disabled:l,error:i,IconComponent:o,inputRef:a,variant:s="standard",...u}=t,c={...t,disabled:l,variant:s,error:i},d=Cce(c);return Se.jsxs(ge.Fragment,{children:[Se.jsx(Mce,{ownerState:c,className:ln(d.select,r),disabled:l,ref:a||n,...u}),t.multiple?null:Se.jsx(Pce,{as:o,ownerState:c,className:d.icon})]})});var h7;const Ace=Dt("fieldset",{shouldForwardProp:Go})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Dce=Dt("legend",{shouldForwardProp:Go})(Fn(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function Ece(e){const{children:t,classes:n,className:r,label:l,notched:i,...o}=e,a=l!=null&&l!=="",s={...e,notched:i,withLabel:a};return Se.jsx(Ace,{"aria-hidden":!0,className:r,ownerState:s,...o,children:Se.jsx(Dce,{ownerState:s,children:a?Se.jsx("span",{children:l}):h7||(h7=Se.jsx("span",{className:"notranslate",children:"​"}))})})}const Rce=e=>{const{classes:t}=e,r=vn({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},zie,t);return{...t,...r}},Lce=Dt(Cb,{shouldForwardProp:e=>Go(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Sb})(Fn(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${vl.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${vl.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${vl.focused} .${vl.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(ra()).map(([n])=>({props:{color:n},style:{[`&.${vl.focused} .${vl.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${vl.error} .${vl.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${vl.disabled} .${vl.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),Ice=Dt(Ece,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(Fn(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),$ce=Dt(Mb,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:kb})(Fn(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),My=ge.forwardRef(function(t,n){var r;const l=jn({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:o=!1,inputComponent:a="input",label:s,multiline:u=!1,notched:c,slots:d={},type:f="text",...p}=l,h=Rce(l),g=ll(),b=mu({props:l,muiFormControl:g,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v={...l,color:b.color||"primary",disabled:b.disabled,error:b.error,focused:b.focused,formControl:g,fullWidth:o,hiddenLabel:b.hiddenLabel,multiline:u,size:b.size,type:f},m=d.root??i.Root??Lce,y=d.input??i.Input??$ce;return Se.jsx(Pb,{slots:{root:m,input:y},renderSuffix:x=>Se.jsx(Ice,{ownerState:v,className:h.notchedOutline,label:s!=null&&s!==""&&b.required?r||(r=Se.jsxs(ge.Fragment,{children:[s," ","*"]})):s,notched:typeof c<"u"?c:!!(x.startAdornment||x.filled||x.focused)}),fullWidth:o,inputComponent:a,multiline:u,ref:n,type:f,...p,classes:{...h,notchedOutline:null}})});My&&(My.muiName="Input");const Nce=kr(Se.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Fce=kr(Se.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function lB(e){return gn("MuiSelect",e)}const jce=fn("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),ld=jce;var m7;const zce=Dt(oB,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ld.select}`]:t.select},{[`&.${ld.select}`]:t[n.variant]},{[`&.${ld.error}`]:t.error},{[`&.${ld.multiple}`]:t.multiple}]}})({[`&.${ld.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Bce=Dt(iB,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Qt(n.variant)}`],n.open&&t.iconOpen]}})({}),Wce=Dt("input",{shouldForwardProp:e=>lz(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function g7(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function qce(e){return e==null||typeof e=="string"&&!e.trim()}const Uce=e=>{const{classes:t,variant:n,disabled:r,multiple:l,open:i,error:o}=e,a={select:["select",n,r&&"disabled",l&&"multiple",o&&"error"],icon:["icon",`icon${Qt(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return vn(a,lB,t)},Hce=ge.forwardRef(function(t,n){var me;const{"aria-describedby":r,"aria-label":l,autoFocus:i,autoWidth:o,children:a,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:f,error:p=!1,IconComponent:h,inputRef:g,labelId:b,MenuProps:v={},multiple:m,name:y,onBlur:x,onChange:_,onClose:w,onFocus:S,onOpen:k,open:C,readOnly:T,renderValue:M,SelectDisplayProps:O={},tabIndex:D,type:P,value:E,variant:I="standard",...A}=t,[F,j]=ou({controlled:E,default:c,name:"Select"}),[B,z]=ou({controlled:C,default:u,name:"Select"}),N=ge.useRef(null),R=ge.useRef(null),[q,Y]=ge.useState(null),{current:L}=ge.useRef(C!=null),[W,H]=ge.useState(),G=Er(n,g),te=ge.useCallback(xe=>{R.current=xe,xe&&Y(xe)},[]),ee=q==null?void 0:q.parentNode;ge.useImperativeHandle(G,()=>({focus:()=>{R.current.focus()},node:N.current,value:F}),[F]),ge.useEffect(()=>{u&&B&&q&&!L&&(H(o?null:ee.clientWidth),R.current.focus())},[q,o]),ge.useEffect(()=>{i&&R.current.focus()},[i]),ge.useEffect(()=>{if(!b)return;const xe=qa(R.current).getElementById(b);if(xe){const ye=()=>{getSelection().isCollapsed&&R.current.focus()};return xe.addEventListener("click",ye),()=>{xe.removeEventListener("click",ye)}}},[b]);const U=(xe,ye)=>{xe?k&&k(ye):w&&w(ye),L||(H(o?null:ee.clientWidth),z(xe))},Q=xe=>{xe.button===0&&(xe.preventDefault(),R.current.focus(),U(!0,xe))},V=xe=>{U(!1,xe)},X=ge.Children.toArray(a),K=xe=>{const ye=X.find(Te=>Te.props.value===xe.target.value);ye!==void 0&&(j(ye.props.value),_&&_(xe,ye))},ne=xe=>ye=>{let Te;if(ye.currentTarget.hasAttribute("tabindex")){if(m){Te=Array.isArray(F)?F.slice():[];const Ae=F.indexOf(xe.props.value);Ae===-1?Te.push(xe.props.value):Te.splice(Ae,1)}else Te=xe.props.value;if(xe.props.onClick&&xe.props.onClick(ye),F!==Te&&(j(Te),_)){const Ae=ye.nativeEvent||ye,Le=new Ae.constructor(Ae.type,Ae);Object.defineProperty(Le,"target",{writable:!0,value:{value:Te,name:y}}),_(Le,xe)}m||U(!1,ye)}},ae=xe=>{T||[" ","ArrowUp","ArrowDown","Enter"].includes(xe.key)&&(xe.preventDefault(),U(!0,xe))},ie=q!==null&&B,se=xe=>{!ie&&x&&(Object.defineProperty(xe,"target",{writable:!0,value:{value:F,name:y}}),x(xe))};delete A["aria-invalid"];let pe,ke;const Ce=[];let Oe=!1;(Ty({value:F})||f)&&(M?pe=M(F):Oe=!0);const Pe=X.map(xe=>{if(!ge.isValidElement(xe))return null;let ye;if(m){if(!Array.isArray(F))throw new Error(Ho(2));ye=F.some(Te=>g7(Te,xe.props.value)),ye&&Oe&&Ce.push(xe.props.children)}else ye=g7(F,xe.props.value),ye&&Oe&&(ke=xe.props.children);return ge.cloneElement(xe,{"aria-selected":ye?"true":"false",onClick:ne(xe),onKeyUp:Te=>{Te.key===" "&&Te.preventDefault(),xe.props.onKeyUp&&xe.props.onKeyUp(Te)},role:"option",selected:ye,value:void 0,"data-value":xe.props.value})});Oe&&(m?Ce.length===0?pe=null:pe=Ce.reduce((xe,ye,Te)=>(xe.push(ye),Te{const{classes:t}=e;return t},p5={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Go(e)&&e!=="variant",slot:"Root"},Gce=Dt(ky,p5)(""),Yce=Dt(My,p5)(""),Xce=Dt(Sy,p5)(""),Tf=ge.forwardRef(function(t,n){const r=Tr({name:"MuiSelect",props:t}),{autoWidth:l=!1,children:i,classes:o={},className:a,defaultOpen:s=!1,displayEmpty:u=!1,IconComponent:c=Wie,id:d,input:f,inputProps:p,label:h,labelId:g,MenuProps:b,multiple:v=!1,native:m=!1,onClose:y,onOpen:x,open:_,renderValue:w,SelectDisplayProps:S,variant:k="outlined",...C}=r,T=m?Oce:Hce,M=ll(),O=mu({props:r,muiFormControl:M,states:["variant","error"]}),D=O.variant||k,P={...r,variant:D,classes:o},E=Vce(P),{root:I,...A}=E,F=f||{standard:Se.jsx(Gce,{ownerState:P}),outlined:Se.jsx(Yce,{label:h,ownerState:P}),filled:Se.jsx(Xce,{ownerState:P})}[D],j=Er(n,_f(F));return Se.jsx(ge.Fragment,{children:ge.cloneElement(F,{inputComponent:T,inputProps:{children:i,error:O.error,IconComponent:c,variant:D,type:void 0,multiple:v,...m?{id:d}:{autoWidth:l,defaultOpen:s,displayEmpty:u,labelId:g,MenuProps:b,onClose:y,onOpen:x,open:_,renderValue:w,SelectDisplayProps:{id:d,...S}},...p,classes:p?oo(A,p.classes):A,...f?f.props.inputProps:{}},...(v&&m||u)&&D==="outlined"?{notched:!0}:{},ref:j,className:ln(F.props.className,a,E.root),...!f&&{variant:D},...C})})});Tf.muiName="Select";const Kce=Object.freeze(Object.defineProperty({__proto__:null,default:Tf,getSelectUtilityClasses:lB,selectClasses:ld},Symbol.toStringTag,{value:"Module"}));function Zce(e){return gn("MuiSkeleton",e)}fn("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const Qce=e=>{const{classes:t,variant:n,animation:r,hasChildren:l,width:i,height:o}=e;return vn({root:["root",n,r,l&&"withChildren",l&&!i&&"fitContent",l&&!o&&"heightAuto"]},Zce,t)},NS=il` 0% { opacity: 1; } @@ -242,7 +260,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann 100% { opacity: 1; } -`)),mde=Hi(F8||(F8=ay` +`,FS=il` 0% { transform: translateX(-100%); } @@ -255,103 +273,89 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann 100% { transform: translateX(100%); } -`)),gde=Et("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(({theme:e,ownerState:t})=>{const n=lM(e.shape.borderRadius)||"px",r=$l(e.shape.borderRadius);return Ie({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:rr(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em"},t.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${n}/${Math.round(r/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},t.variant==="circular"&&{borderRadius:"50%"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:e})=>e.animation==="pulse"&&Jl(j8||(j8=ay` - animation: ${0} 2s ease-in-out 0.5s infinite; - `),hde),({ownerState:e,theme:t})=>e.animation==="wave"&&Jl(z8||(z8=ay` - position: relative; - overflow: hidden; - - /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */ - -webkit-mask-image: -webkit-radial-gradient(white, black); - - &::after { - animation: ${0} 2s linear 0.5s infinite; - background: linear-gradient( - 90deg, - transparent, - ${0}, - transparent - ); - content: ''; - position: absolute; - transform: translateX(-100%); /* Avoid flash during server-side hydration */ - bottom: 0; - left: 0; - right: 0; - top: 0; - } - `),mde,(t.vars||t).palette.action.hover)),vde=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiSkeleton"}),{animation:l="pulse",className:i,component:o="span",height:a,style:s,variant:u="text",width:c}=r,d=Kt(r,fde),f=Ie({},r,{animation:l,component:o,variant:u,hasChildren:!!d.children}),p=pde(f);return ke.jsx(gde,Ie({as:o,ref:n,className:on(p.root,i),ownerState:f},d,{style:Ie({width:c,height:a},s)}))});function kz(e){return yn("MuiTooltip",e)}const yde=hn("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Bl=yde,bde=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function xde(e){return Math.round(e*1e5)/1e5}const wde=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:l,placement:i}=e,o={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",l&&"touch",`tooltipPlacement${Jt(i.split("-")[0])}`],arrow:["arrow"]};return vn(o,kz,t)},_de=Et(bM,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>Ie({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Bl.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Bl.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Bl.arrow}`]:Ie({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Bl.arrow}`]:Ie({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Tde=Et("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Jt(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>Ie({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:rr(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${xde(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Bl.popper}[data-popper-placement*="left"] &`]:Ie({transformOrigin:"right center"},t.isRtl?Ie({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):Ie({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Bl.popper}[data-popper-placement*="right"] &`]:Ie({transformOrigin:"left center"},t.isRtl?Ie({marginRight:"14px"},t.touch&&{marginRight:"24px"}):Ie({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Bl.popper}[data-popper-placement*="top"] &`]:Ie({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Bl.popper}[data-popper-placement*="bottom"] &`]:Ie({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),kde=Et("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:rr(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let a0=!1,Tw=null,ep={x:0,y:0};function o0(e,t){return n=>{t&&t(n),e(n)}}const Sde=ge.forwardRef(function(t,n){var r,l,i,o,a,s,u,c,d,f,p,m,g,b,v,h,y,w,_;const x=pn({props:t,name:"MuiTooltip"}),{arrow:T=!1,children:k,components:S={},componentsProps:C={},describeChild:M=!1,disableFocusListener:O=!1,disableHoverListener:D=!1,disableInteractive:P=!1,disableTouchListener:E=!1,enterDelay:I=100,enterNextDelay:A=0,enterTouchDelay:F=700,followCursor:j=!1,id:z,leaveDelay:B=0,leaveTouchDelay:N=1500,onClose:R,onOpen:q,open:Y,placement:L="bottom",PopperComponent:W,PopperProps:U={},slotProps:V={},slots:te={},title:ee,TransitionComponent:H=dm,TransitionProps:Z}=x,G=Kt(x,bde),X=ge.isValidElement(k)?k:ke.jsx("span",{children:k}),Q=po(),re=Q.direction==="rtl",[ae,ie]=ge.useState(),[se,he]=ge.useState(null),Se=ge.useRef(!1),Oe=P||j,Pe=ge.useRef(),Me=ge.useRef(),ce=ge.useRef(),we=ge.useRef(),[K,ne]=Zl({controlled:Y,default:!1,name:"Tooltip",state:"open"});let de=K;const _e=Kl(z),ue=ge.useRef(),pe=ge.useCallback(()=>{ue.current!==void 0&&(document.body.style.WebkitUserSelect=ue.current,ue.current=void 0),clearTimeout(we.current)},[]);ge.useEffect(()=>()=>{clearTimeout(Pe.current),clearTimeout(Me.current),clearTimeout(ce.current),pe()},[pe]);const xe=Ye=>{clearTimeout(Tw),a0=!0,ne(!0),q&&!de&&q(Ye)},ye=yo(Ye=>{clearTimeout(Tw),Tw=setTimeout(()=>{a0=!1},800+B),ne(!1),R&&de&&R(Ye),clearTimeout(Pe.current),Pe.current=setTimeout(()=>{Se.current=!1},Q.transitions.duration.shortest)}),Te=Ye=>{Se.current&&Ye.type!=="touchstart"||(ae&&ae.removeAttribute("title"),clearTimeout(Me.current),clearTimeout(ce.current),I||a0&&A?Me.current=setTimeout(()=>{xe(Ye)},a0?A:I):xe(Ye))},Ae=Ye=>{clearTimeout(Me.current),clearTimeout(ce.current),ce.current=setTimeout(()=>{ye(Ye)},B)},{isFocusVisibleRef:Re,onBlur:Le,onFocus:$e,ref:Fe}=FC(),[,Be]=ge.useState(!1),Ue=Ye=>{Le(Ye),Re.current===!1&&(Be(!1),Ae(Ye))},qe=Ye=>{ae||ie(Ye.currentTarget),$e(Ye),Re.current===!0&&(Be(!0),Te(Ye))},Xe=Ye=>{Se.current=!0;const nt=X.props;nt.onTouchStart&&nt.onTouchStart(Ye)},ot=Te,st=Ae,dt=Ye=>{Xe(Ye),clearTimeout(ce.current),clearTimeout(Pe.current),pe(),ue.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",we.current=setTimeout(()=>{document.body.style.WebkitUserSelect=ue.current,Te(Ye)},F)},vt=Ye=>{X.props.onTouchEnd&&X.props.onTouchEnd(Ye),pe(),clearTimeout(ce.current),ce.current=setTimeout(()=>{ye(Ye)},N)};ge.useEffect(()=>{if(!de)return;function Ye(nt){(nt.key==="Escape"||nt.key==="Esc")&&ye(nt)}return document.addEventListener("keydown",Ye),()=>{document.removeEventListener("keydown",Ye)}},[ye,de]);const We=Lr(X.ref,Fe,ie,n);!ee&&ee!==0&&(de=!1);const ze=ge.useRef(),tt=Ye=>{const nt=X.props;nt.onMouseMove&&nt.onMouseMove(Ye),ep={x:Ye.clientX,y:Ye.clientY},ze.current&&ze.current.update()},it={},St=typeof ee=="string";M?(it.title=!de&&St&&!D?ee:null,it["aria-describedby"]=de?_e:null):(it["aria-label"]=St?ee:null,it["aria-labelledby"]=de&&!St?_e:null);const Ze=Ie({},it,G,X.props,{className:on(G.className,X.props.className),onTouchStart:Xe,ref:We},j?{onMouseMove:tt}:{}),ut={};E||(Ze.onTouchStart=dt,Ze.onTouchEnd=vt),D||(Ze.onMouseOver=o0(ot,Ze.onMouseOver),Ze.onMouseLeave=o0(st,Ze.onMouseLeave),Oe||(ut.onMouseOver=ot,ut.onMouseLeave=st)),O||(Ze.onFocus=o0(qe,Ze.onFocus),Ze.onBlur=o0(Ue,Ze.onBlur),Oe||(ut.onFocus=qe,ut.onBlur=Ue));const ht=ge.useMemo(()=>{var Ye;let nt=[{name:"arrow",enabled:!!se,options:{element:se,padding:4}}];return(Ye=U.popperOptions)!=null&&Ye.modifiers&&(nt=nt.concat(U.popperOptions.modifiers)),Ie({},U.popperOptions,{modifiers:nt})},[se,U]),Rt=Ie({},x,{isRtl:re,arrow:T,disableInteractive:Oe,placement:L,PopperComponentProp:W,touch:Se.current}),Ct=wde(Rt),Wt=(r=(l=te.popper)!=null?l:S.Popper)!=null?r:_de,_t=(i=(o=(a=te.transition)!=null?a:S.Transition)!=null?o:H)!=null?i:dm,be=(s=(u=te.tooltip)!=null?u:S.Tooltip)!=null?s:Tde,Ce=(c=(d=te.arrow)!=null?d:S.Arrow)!=null?c:kde,Ge=fh(Wt,Ie({},U,(f=V.popper)!=null?f:C.popper,{className:on(Ct.popper,U==null?void 0:U.className,(p=(m=V.popper)!=null?m:C.popper)==null?void 0:p.className)}),Rt),He=fh(_t,Ie({},Z,(g=V.transition)!=null?g:C.transition),Rt),et=fh(be,Ie({},(b=V.tooltip)!=null?b:C.tooltip,{className:on(Ct.tooltip,(v=(h=V.tooltip)!=null?h:C.tooltip)==null?void 0:v.className)}),Rt),Ke=fh(Ce,Ie({},(y=V.arrow)!=null?y:C.arrow,{className:on(Ct.arrow,(w=(_=V.arrow)!=null?_:C.arrow)==null?void 0:w.className)}),Rt);return ke.jsxs(ge.Fragment,{children:[ge.cloneElement(X,Ze),ke.jsx(Wt,Ie({as:W??bM,placement:L,anchorEl:j?{getBoundingClientRect:()=>({top:ep.y,left:ep.x,right:ep.x,bottom:ep.y,width:0,height:0})}:ae,popperRef:ze,open:ae?de:!1,id:_e,transition:!0},ut,Ge,{popperOptions:ht,children:({TransitionProps:Ye})=>ke.jsx(_t,Ie({timeout:Q.transitions.duration.shorter},Ye,He,{children:ke.jsxs(be,Ie({},et,{children:[ee,T?ke.jsx(Ce,Ie({},Ke,{ref:he})):null]}))}))}))]})}),Cde=Sde,Mde=Object.freeze(Object.defineProperty({__proto__:null,default:Cde,getTooltipUtilityClass:kz,tooltipClasses:Bl},Symbol.toStringTag,{value:"Module"}));function Pde(e){return yn("MuiTab",e)}const fu=hn("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Ode=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Ade=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:l,icon:i,label:o,selected:a,disabled:s}=e,u={root:["root",i&&o&&"labelIcon",`textColor${Jt(n)}`,r&&"fullWidth",l&&"wrapped",a&&"selected",s&&"disabled"],iconWrapper:["iconWrapper"]};return vn(u,Pde,t)},Dde=Et(Tl,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Jt(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>Ie({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${fu.iconWrapper}`]:Ie({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${fu.selected}`]:{opacity:1},[`&.${fu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${fu.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${fu.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${fu.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${fu.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),J3=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTab"}),{className:l,disabled:i=!1,disableFocusRipple:o=!1,fullWidth:a,icon:s,iconPosition:u="top",indicator:c,label:d,onChange:f,onClick:p,onFocus:m,selected:g,selectionFollowsFocus:b,textColor:v="inherit",value:h,wrapped:y=!1}=r,w=Kt(r,Ode),_=Ie({},r,{disabled:i,disableFocusRipple:o,selected:g,icon:!!s,iconPosition:u,label:!!d,fullWidth:a,textColor:v,wrapped:y}),x=Ade(_),T=s&&d&&ge.isValidElement(s)?ge.cloneElement(s,{className:on(x.iconWrapper,s.props.className)}):s,k=C=>{!g&&f&&f(C,h),p&&p(C)},S=C=>{b&&!g&&f&&f(C,h),m&&m(C)};return ke.jsxs(Dde,Ie({focusRipple:!o,className:on(x.root,l),ref:n,role:"tab","aria-selected":g,disabled:i,onClick:k,onFocus:S,ownerState:_,tabIndex:g?0:-1},w,{children:[u==="top"||u==="start"?ke.jsxs(ge.Fragment,{children:[T,d]}):ke.jsxs(ge.Fragment,{children:[d,T]}),c]}))}),Sz=ge.createContext();function Cz(e){return yn("MuiTable",e)}const Ede=hn("MuiTable",["root","stickyHeader"]),Rde=Ede,Lde=["className","component","padding","size","stickyHeader"],Ide=e=>{const{classes:t,stickyHeader:n}=e;return vn({root:["root",n&&"stickyHeader"]},Cz,t)},$de=Et("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>Ie({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Ie({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),B8="table",Nde=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTable"}),{className:l,component:i=B8,padding:o="normal",size:a="medium",stickyHeader:s=!1}=r,u=Kt(r,Lde),c=Ie({},r,{component:i,padding:o,size:a,stickyHeader:s}),d=Ide(c),f=ge.useMemo(()=>({padding:o,size:a,stickyHeader:s}),[o,a,s]);return ke.jsx(Sz.Provider,{value:f,children:ke.jsx($de,Ie({as:i,role:i===B8?null:"table",ref:n,className:on(d.root,l),ownerState:c},u))})}),PM=Nde,Fde=Object.freeze(Object.defineProperty({__proto__:null,default:PM,getTableUtilityClass:Cz,tableClasses:Rde},Symbol.toStringTag,{value:"Module"})),Jm=ge.createContext();function Mz(e){return yn("MuiTableBody",e)}const jde=hn("MuiTableBody",["root"]),zde=jde,Bde=["className","component"],Wde=e=>{const{classes:t}=e;return vn({root:["root"]},Mz,t)},qde=Et("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Ude={variant:"body"},W8="tbody",Hde=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTableBody"}),{className:l,component:i=W8}=r,o=Kt(r,Bde),a=Ie({},r,{component:i}),s=Wde(a);return ke.jsx(Jm.Provider,{value:Ude,children:ke.jsx(qde,Ie({className:on(s.root,l),as:i,ref:n,role:i===W8?null:"rowgroup",ownerState:a},o))})}),OM=Hde,Vde=Object.freeze(Object.defineProperty({__proto__:null,default:OM,getTableBodyUtilityClass:Mz,tableBodyClasses:zde},Symbol.toStringTag,{value:"Module"}));function Pz(e){return yn("MuiTableCell",e)}const Gde=hn("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Oz=Gde,Yde=["align","className","component","padding","scope","size","sortDirection","variant"],Xde=e=>{const{classes:t,variant:n,align:r,padding:l,size:i,stickyHeader:o}=e,a={root:["root",n,o&&"stickyHeader",r!=="inherit"&&`align${Jt(r)}`,l!=="normal"&&`padding${Jt(l)}`,`size${Jt(i)}`]};return vn(a,Pz,t)},Kde=Et("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Jt(n.size)}`],n.padding!=="normal"&&t[`padding${Jt(n.padding)}`],n.align!=="inherit"&&t[`align${Jt(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>Ie({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?_l(rr(e.palette.divider,1),.88):wl(rr(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${Oz.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Zde=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTableCell"}),{align:l="inherit",className:i,component:o,padding:a,scope:s,size:u,sortDirection:c,variant:d}=r,f=Kt(r,Yde),p=ge.useContext(Sz),m=ge.useContext(Jm),g=m&&m.variant==="head";let b;o?b=o:b=g?"th":"td";let v=s;b==="td"?v=void 0:!v&&g&&(v="col");const h=d||m&&m.variant,y=Ie({},r,{align:l,component:b,padding:a||(p&&p.padding?p.padding:"normal"),size:u||(p&&p.size?p.size:"medium"),sortDirection:c,stickyHeader:h==="head"&&p&&p.stickyHeader,variant:h}),w=Xde(y);let _=null;return c&&(_=c==="asc"?"ascending":"descending"),ke.jsx(Kde,Ie({as:b,ref:n,className:on(w.root,i),"aria-sort":_,scope:v,ownerState:y},f))}),gi=Zde,Qde=Object.freeze(Object.defineProperty({__proto__:null,default:gi,getTableCellUtilityClass:Pz,tableCellClasses:Oz},Symbol.toStringTag,{value:"Module"}));function Jde(e){return yn("MuiTableContainer",e)}hn("MuiTableContainer",["root"]);const efe=["className","component"],tfe=e=>{const{classes:t}=e;return vn({root:["root"]},Jde,t)},nfe=Et("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),rfe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTableContainer"}),{className:l,component:i="div"}=r,o=Kt(r,efe),a=Ie({},r,{component:i}),s=tfe(a);return ke.jsx(nfe,Ie({ref:n,as:i,className:on(s.root,l),ownerState:a},o))});function Az(e){return yn("MuiTableFooter",e)}const afe=hn("MuiTableFooter",["root"]),ofe=afe,ife=["className","component"],lfe=e=>{const{classes:t}=e;return vn({root:["root"]},Az,t)},sfe=Et("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),ufe={variant:"footer"},q8="tfoot",cfe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTableFooter"}),{className:l,component:i=q8}=r,o=Kt(r,ife),a=Ie({},r,{component:i}),s=lfe(a);return ke.jsx(Jm.Provider,{value:ufe,children:ke.jsx(sfe,Ie({as:i,className:on(s.root,l),ref:n,role:i===q8?null:"rowgroup",ownerState:a},o))})}),dfe=cfe,ffe=Object.freeze(Object.defineProperty({__proto__:null,default:dfe,getTableFooterUtilityClass:Az,tableFooterClasses:ofe},Symbol.toStringTag,{value:"Module"}));function Dz(e){return yn("MuiTableHead",e)}const pfe=hn("MuiTableHead",["root"]),hfe=pfe,mfe=["className","component"],gfe=e=>{const{classes:t}=e;return vn({root:["root"]},Dz,t)},vfe=Et("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),yfe={variant:"head"},U8="thead",bfe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTableHead"}),{className:l,component:i=U8}=r,o=Kt(r,mfe),a=Ie({},r,{component:i}),s=gfe(a);return ke.jsx(Jm.Provider,{value:yfe,children:ke.jsx(vfe,Ie({as:i,className:on(s.root,l),ref:n,role:i===U8?null:"rowgroup",ownerState:a},o))})}),AM=bfe,xfe=Object.freeze(Object.defineProperty({__proto__:null,default:AM,getTableHeadUtilityClass:Dz,tableHeadClasses:hfe},Symbol.toStringTag,{value:"Module"}));function Ez(e){return yn("MuiToolbar",e)}const wfe=hn("MuiToolbar",["root","gutters","regular","dense"]),_fe=wfe,Tfe=["className","component","disableGutters","variant"],kfe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return vn({root:["root",!n&&"gutters",r]},Ez,t)},Sfe=Et("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>Ie({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),Cfe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiToolbar"}),{className:l,component:i="div",disableGutters:o=!1,variant:a="regular"}=r,s=Kt(r,Tfe),u=Ie({},r,{component:i,disableGutters:o,variant:a}),c=kfe(u);return ke.jsx(Sfe,Ie({as:i,className:on(c.root,l),ref:n,ownerState:u},s))}),Rz=Cfe,Mfe=Object.freeze(Object.defineProperty({__proto__:null,default:Rz,getToolbarUtilityClass:Ez,toolbarClasses:_fe},Symbol.toStringTag,{value:"Module"})),ek=Qr(ke.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),tk=Qr(ke.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var H8,V8,G8,Y8,X8,K8,Z8,Q8;const Pfe=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"],Ofe=ge.forwardRef(function(t,n){const{backIconButtonProps:r,count:l,getItemAriaLabel:i,nextIconButtonProps:o,onPageChange:a,page:s,rowsPerPage:u,showFirstButton:c,showLastButton:d}=t,f=Kt(t,Pfe),p=po(),m=h=>{a(h,0)},g=h=>{a(h,s-1)},b=h=>{a(h,s+1)},v=h=>{a(h,Math.max(0,Math.ceil(l/u)-1))};return ke.jsxs("div",Ie({ref:n},f,{children:[c&&ke.jsx(mi,{onClick:m,disabled:s===0,"aria-label":i("first",s),title:i("first",s),children:p.direction==="rtl"?H8||(H8=ke.jsx(L8,{})):V8||(V8=ke.jsx(R8,{}))}),ke.jsx(mi,Ie({onClick:g,disabled:s===0,color:"inherit","aria-label":i("previous",s),title:i("previous",s)},r,{children:p.direction==="rtl"?G8||(G8=ke.jsx(tk,{})):Y8||(Y8=ke.jsx(ek,{}))})),ke.jsx(mi,Ie({onClick:b,disabled:l!==-1?s>=Math.ceil(l/u)-1:!1,color:"inherit","aria-label":i("next",s),title:i("next",s)},o,{children:p.direction==="rtl"?X8||(X8=ke.jsx(ek,{})):K8||(K8=ke.jsx(tk,{}))})),d&&ke.jsx(mi,{onClick:v,disabled:s>=Math.ceil(l/u)-1,"aria-label":i("last",s),title:i("last",s),children:p.direction==="rtl"?Z8||(Z8=ke.jsx(R8,{})):Q8||(Q8=ke.jsx(L8,{}))})]}))});function Lz(e){return yn("MuiTablePagination",e)}const Afe=hn("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),wd=Afe;var J8;const Dfe=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton"],Efe=Et(gi,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),Rfe=Et(Rz,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>Ie({[`& .${wd.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${wd.actions}`]:{flexShrink:0,marginLeft:20}})),Lfe=Et("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),Ife=Et("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>Ie({},e.typography.body2,{flexShrink:0})),$fe=Et(sb,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>Ie({[`& .${wd.selectIcon}`]:t.selectIcon,[`& .${wd.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${wd.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),Nfe=Et(bz,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),Ffe=Et("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>Ie({},e.typography.body2,{flexShrink:0}));function jfe({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function zfe(e){return`Go to ${e} page`}const Bfe=e=>{const{classes:t}=e;return vn({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},Lz,t)},Wfe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTablePagination"}),{ActionsComponent:l=Ofe,backIconButtonProps:i,className:o,colSpan:a,component:s=gi,count:u,getItemAriaLabel:c=zfe,labelDisplayedRows:d=jfe,labelRowsPerPage:f="Rows per page:",nextIconButtonProps:p,onPageChange:m,onRowsPerPageChange:g,page:b,rowsPerPage:v,rowsPerPageOptions:h=[10,25,50,100],SelectProps:y={},showFirstButton:w=!1,showLastButton:_=!1}=r,x=Kt(r,Dfe),T=r,k=Bfe(T),S=y.native?"option":Nfe;let C;(s===gi||s==="td")&&(C=a||1e3);const M=Kl(y.id),O=Kl(y.labelId),D=()=>u===-1?(b+1)*v:v===-1?u:Math.min(u,(b+1)*v);return ke.jsx(Efe,Ie({colSpan:C,ref:n,as:s,ownerState:T,className:on(k.root,o)},x,{children:ke.jsxs(Rfe,{className:k.toolbar,children:[ke.jsx(Lfe,{className:k.spacer}),h.length>1&&ke.jsx(Ife,{className:k.selectLabel,id:O,children:f}),h.length>1&&ke.jsx($fe,Ie({variant:"standard"},!y.variant&&{input:J8||(J8=ke.jsx(ob,{}))},{value:v,onChange:g,id:M,labelId:O},y,{classes:Ie({},y.classes,{root:on(k.input,k.selectRoot,(y.classes||{}).root),select:on(k.select,(y.classes||{}).select),icon:on(k.selectIcon,(y.classes||{}).icon)}),children:h.map(P=>ge.createElement(S,Ie({},!lm(S)&&{ownerState:T},{className:k.menuItem,key:P.label?P.label:P,value:P.value?P.value:P}),P.label?P.label:P))})),ke.jsx(Ffe,{className:k.displayedRows,children:d({from:u===0?0:b*v+1,to:D(),count:u===-1?-1:u,page:b})}),ke.jsx(l,{className:k.actions,backIconButtonProps:i,count:u,nextIconButtonProps:p,onPageChange:m,page:b,rowsPerPage:v,showFirstButton:w,showLastButton:_,getItemAriaLabel:c})]})}))}),qfe=Wfe,Ufe=Object.freeze(Object.defineProperty({__proto__:null,default:qfe,getTablePaginationUtilityClass:Lz,tablePaginationClasses:wd},Symbol.toStringTag,{value:"Module"}));function Iz(e){return yn("MuiTableRow",e)}const Hfe=hn("MuiTableRow",["root","selected","hover","head","footer"]),nk=Hfe,Vfe=["className","component","hover","selected"],Gfe=e=>{const{classes:t,selected:n,hover:r,head:l,footer:i}=e;return vn({root:["root",n&&"selected",r&&"hover",l&&"head",i&&"footer"]},Iz,t)},Yfe=Et("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${nk.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${nk.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rr(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),eD="tr",Xfe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTableRow"}),{className:l,component:i=eD,hover:o=!1,selected:a=!1}=r,s=Kt(r,Vfe),u=ge.useContext(Jm),c=Ie({},r,{component:i,hover:o,selected:a,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),d=Gfe(c);return ke.jsx(Yfe,Ie({as:i,ref:n,className:on(d.root,l),role:i===eD?null:"row",ownerState:c},s))}),pm=Xfe,Kfe=Object.freeze(Object.defineProperty({__proto__:null,default:pm,getTableRowUtilityClass:Iz,tableRowClasses:nk},Symbol.toStringTag,{value:"Module"})),Zfe=Qr(ke.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function $z(e){return yn("MuiTableSortLabel",e)}const Qfe=hn("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),tv=Qfe,Jfe=["active","children","className","direction","hideSortIcon","IconComponent"],epe=e=>{const{classes:t,direction:n,active:r}=e,l={root:["root",r&&"active"],icon:["icon",`iconDirection${Jt(n)}`]};return vn(l,$z,t)},tpe=Et(Tl,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${tv.icon}`]:{opacity:.5}},[`&.${tv.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${tv.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),npe=Et("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${Jt(n.direction)}`]]}})(({theme:e,ownerState:t})=>Ie({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},t.direction==="desc"&&{transform:"rotate(0deg)"},t.direction==="asc"&&{transform:"rotate(180deg)"})),rpe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTableSortLabel"}),{active:l=!1,children:i,className:o,direction:a="asc",hideSortIcon:s=!1,IconComponent:u=Zfe}=r,c=Kt(r,Jfe),d=Ie({},r,{active:l,direction:a,hideSortIcon:s,IconComponent:u}),f=epe(d);return ke.jsxs(tpe,Ie({className:on(f.root,o),component:"span",disableRipple:!0,ownerState:d,ref:n},c,{children:[i,s&&!l?null:ke.jsx(npe,{as:u,className:on(f.icon),ownerState:d})]}))}),ape=rpe,ope=Object.freeze(Object.defineProperty({__proto__:null,default:ape,getTableSortLabelUtilityClass:$z,tableSortLabelClasses:tv},Symbol.toStringTag,{value:"Module"}));function ipe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function lpe(e,t,n,r={},l=()=>{}){const{ease:i=ipe,duration:o=300}=r;let a=null;const s=t[e];let u=!1;const c=()=>{u=!0},d=f=>{if(u){l(new Error("Animation cancelled"));return}a===null&&(a=f);const p=Math.min(1,(f-a)/o);if(t[e]=i(p)*(n-s)+s,p>=1){requestAnimationFrame(()=>{l(null)});return}requestAnimationFrame(d)};return s===n?(l(new Error("Element already at target position")),c):(requestAnimationFrame(d),c)}const spe=["onChange"],upe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function cpe(e){const{onChange:t}=e,n=Kt(e,spe),r=ge.useRef(),l=ge.useRef(null),i=()=>{r.current=l.current.offsetHeight-l.current.clientHeight};return no(()=>{const o=Um(()=>{const s=r.current;i(),s!==r.current&&t(r.current)}),a=bl(l.current);return a.addEventListener("resize",o),()=>{o.clear(),a.removeEventListener("resize",o)}},[t]),ge.useEffect(()=>{i(),t(r.current)},[t]),ke.jsx("div",Ie({style:upe,ref:l},n))}function dpe(e){return yn("MuiTabScrollButton",e)}const fpe=hn("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ppe=["className","slots","slotProps","direction","orientation","disabled"],hpe=e=>{const{classes:t,orientation:n,disabled:r}=e;return vn({root:["root",n,r&&"disabled"]},dpe,t)},mpe=Et(Tl,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>Ie({width:40,flexShrink:0,opacity:.8,[`&.${fpe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),gpe=ge.forwardRef(function(t,n){var r,l;const i=pn({props:t,name:"MuiTabScrollButton"}),{className:o,slots:a={},slotProps:s={},direction:u}=i,c=Kt(i,ppe),f=po().direction==="rtl",p=Ie({isRtl:f},i),m=hpe(p),g=(r=a.StartScrollButtonIcon)!=null?r:ek,b=(l=a.EndScrollButtonIcon)!=null?l:tk,v=Ui({elementType:g,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p}),h=Ui({elementType:b,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p});return ke.jsx(mpe,Ie({component:"div",className:on(m.root,o),ref:n,role:null,ownerState:p,tabIndex:null},c,{children:u==="left"?ke.jsx(g,Ie({},v)):ke.jsx(b,Ie({},h))}))});function vpe(e){return yn("MuiTabs",e)}const nv=hn("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),ype=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],tD=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,nD=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,i0=(e,t,n)=>{let r=!1,l=n(e,t);for(;l;){if(l===e.firstChild){if(r)return;r=!0}const i=l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||i)l=n(e,l);else{l.focus();return}}},bpe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:l,scrollableY:i,centered:o,scrollButtonsHideMobile:a,classes:s}=e;return vn({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",l&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",o&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[l&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},vpe,s)},xpe=Et("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${nv.scrollButtons}`]:t.scrollButtons},{[`& .${nv.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>Ie({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${nv.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),wpe=Et("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>Ie({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),_pe=Et("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>Ie({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Tpe=Et("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>Ie({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),kpe=Et(cpe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),rD={},Nz=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTabs"}),l=po(),i=l.direction==="rtl",{"aria-label":o,"aria-labelledby":a,action:s,centered:u=!1,children:c,className:d,component:f="div",allowScrollButtonsMobile:p=!1,indicatorColor:m="primary",onChange:g,orientation:b="horizontal",ScrollButtonComponent:v=gpe,scrollButtons:h="auto",selectionFollowsFocus:y,slots:w={},slotProps:_={},TabIndicatorProps:x={},TabScrollButtonProps:T={},textColor:k="primary",value:S,variant:C="standard",visibleScrollbar:M=!1}=r,O=Kt(r,ype),D=C==="scrollable",P=b==="vertical",E=P?"scrollTop":"scrollLeft",I=P?"top":"left",A=P?"bottom":"right",F=P?"clientHeight":"clientWidth",j=P?"height":"width",z=Ie({},r,{component:f,allowScrollButtonsMobile:p,indicatorColor:m,orientation:b,vertical:P,scrollButtons:h,textColor:k,variant:C,visibleScrollbar:M,fixed:!D,hideScrollbar:D&&!M,scrollableX:D&&!P,scrollableY:D&&P,centered:u&&!D,scrollButtonsHideMobile:!p}),B=bpe(z),N=Ui({elementType:w.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:z}),R=Ui({elementType:w.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:z}),[q,Y]=ge.useState(!1),[L,W]=ge.useState(rD),[U,V]=ge.useState(!1),[te,ee]=ge.useState(!1),[H,Z]=ge.useState(!1),[G,X]=ge.useState({overflow:"hidden",scrollbarWidth:0}),Q=new Map,re=ge.useRef(null),ae=ge.useRef(null),ie=()=>{const ye=re.current;let Te;if(ye){const Re=ye.getBoundingClientRect();Te={clientWidth:ye.clientWidth,scrollLeft:ye.scrollLeft,scrollTop:ye.scrollTop,scrollLeftNormalized:xJ(ye,l.direction),scrollWidth:ye.scrollWidth,top:Re.top,bottom:Re.bottom,left:Re.left,right:Re.right}}let Ae;if(ye&&S!==!1){const Re=ae.current.children;if(Re.length>0){const Le=Re[Q.get(S)];Ae=Le?Le.getBoundingClientRect():null}}return{tabsMeta:Te,tabMeta:Ae}},se=yo(()=>{const{tabsMeta:ye,tabMeta:Te}=ie();let Ae=0,Re;if(P)Re="top",Te&&ye&&(Ae=Te.top-ye.top+ye.scrollTop);else if(Re=i?"right":"left",Te&&ye){const $e=i?ye.scrollLeftNormalized+ye.clientWidth-ye.scrollWidth:ye.scrollLeft;Ae=(i?-1:1)*(Te[Re]-ye[Re]+$e)}const Le={[Re]:Ae,[j]:Te?Te[j]:0};if(isNaN(L[Re])||isNaN(L[j]))W(Le);else{const $e=Math.abs(L[Re]-Le[Re]),Fe=Math.abs(L[j]-Le[j]);($e>=1||Fe>=1)&&W(Le)}}),he=(ye,{animation:Te=!0}={})=>{Te?lpe(E,re.current,ye,{duration:l.transitions.duration.standard}):re.current[E]=ye},Se=ye=>{let Te=re.current[E];P?Te+=ye:(Te+=ye*(i?-1:1),Te*=i&&LF()==="reverse"?-1:1),he(Te)},Oe=()=>{const ye=re.current[F];let Te=0;const Ae=Array.from(ae.current.children);for(let Re=0;Reye){Re===0&&(Te=ye);break}Te+=Le[F]}return Te},Pe=()=>{Se(-1*Oe())},Me=()=>{Se(Oe())},ce=ge.useCallback(ye=>{X({overflow:null,scrollbarWidth:ye})},[]),we=()=>{const ye={};ye.scrollbarSizeListener=D?ke.jsx(kpe,{onChange:ce,className:on(B.scrollableX,B.hideScrollbar)}):null;const Ae=D&&(h==="auto"&&(U||te)||h===!0);return ye.scrollButtonStart=Ae?ke.jsx(v,Ie({slots:{StartScrollButtonIcon:w.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:N},orientation:b,direction:i?"right":"left",onClick:Pe,disabled:!U},T,{className:on(B.scrollButtons,T.className)})):null,ye.scrollButtonEnd=Ae?ke.jsx(v,Ie({slots:{EndScrollButtonIcon:w.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:R},orientation:b,direction:i?"left":"right",onClick:Me,disabled:!te},T,{className:on(B.scrollButtons,T.className)})):null,ye},K=yo(ye=>{const{tabsMeta:Te,tabMeta:Ae}=ie();if(!(!Ae||!Te)){if(Ae[I]Te[A]){const Re=Te[E]+(Ae[A]-Te[A]);he(Re,{animation:ye})}}}),ne=yo(()=>{D&&h!==!1&&Z(!H)});ge.useEffect(()=>{const ye=Um(()=>{re.current&&se()}),Te=bl(re.current);Te.addEventListener("resize",ye);let Ae;return typeof ResizeObserver<"u"&&(Ae=new ResizeObserver(ye),Array.from(ae.current.children).forEach(Re=>{Ae.observe(Re)})),()=>{ye.clear(),Te.removeEventListener("resize",ye),Ae&&Ae.disconnect()}},[se]),ge.useEffect(()=>{const ye=Array.from(ae.current.children),Te=ye.length;if(typeof IntersectionObserver<"u"&&Te>0&&D&&h!==!1){const Ae=ye[0],Re=ye[Te-1],Le={root:re.current,threshold:.99},$e=qe=>{V(!qe[0].isIntersecting)},Fe=new IntersectionObserver($e,Le);Fe.observe(Ae);const Be=qe=>{ee(!qe[0].isIntersecting)},Ue=new IntersectionObserver(Be,Le);return Ue.observe(Re),()=>{Fe.disconnect(),Ue.disconnect()}}},[D,h,H,c==null?void 0:c.length]),ge.useEffect(()=>{Y(!0)},[]),ge.useEffect(()=>{se()}),ge.useEffect(()=>{K(rD!==L)},[K,L]),ge.useImperativeHandle(s,()=>({updateIndicator:se,updateScrollButtons:ne}),[se,ne]);const de=ke.jsx(Tpe,Ie({},x,{className:on(B.indicator,x.className),ownerState:z,style:Ie({},L,x.style)}));let _e=0;const ue=ge.Children.map(c,ye=>{if(!ge.isValidElement(ye))return null;const Te=ye.props.value===void 0?_e:ye.props.value;Q.set(Te,_e);const Ae=Te===S;return _e+=1,ge.cloneElement(ye,Ie({fullWidth:C==="fullWidth",indicator:Ae&&!q&&de,selected:Ae,selectionFollowsFocus:y,onChange:g,textColor:k,value:Te},_e===1&&S===!1&&!ye.props.tabIndex?{tabIndex:0}:{}))}),pe=ye=>{const Te=ae.current,Ae=Aa(Te).activeElement;if(Ae.getAttribute("role")!=="tab")return;let Le=b==="horizontal"?"ArrowLeft":"ArrowUp",$e=b==="horizontal"?"ArrowRight":"ArrowDown";switch(b==="horizontal"&&i&&(Le="ArrowRight",$e="ArrowLeft"),ye.key){case Le:ye.preventDefault(),i0(Te,Ae,nD);break;case $e:ye.preventDefault(),i0(Te,Ae,tD);break;case"Home":ye.preventDefault(),i0(Te,null,tD);break;case"End":ye.preventDefault(),i0(Te,null,nD);break}},xe=we();return ke.jsxs(xpe,Ie({className:on(B.root,d),ownerState:z,ref:n,as:f},O,{children:[xe.scrollButtonStart,xe.scrollbarSizeListener,ke.jsxs(wpe,{className:B.scroller,ownerState:z,style:{overflow:G.overflow,[P?`margin${i?"Left":"Right"}`:"marginBottom"]:M?void 0:-G.scrollbarWidth},ref:re,children:[ke.jsx(_pe,{"aria-label":o,"aria-labelledby":a,"aria-orientation":b==="vertical"?"vertical":null,className:B.flexContainer,ownerState:z,onKeyDown:pe,ref:ae,role:"tablist",children:ue}),q&&de]}),xe.scrollButtonEnd]}))});function Fz(e){return yn("MuiTextField",e)}const Spe=hn("MuiTextField",["root"]),Cpe=Spe,Mpe=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Ppe={standard:_M,filled:xM,outlined:CM},Ope=e=>{const{classes:t}=e;return vn({root:["root"]},Fz,t)},Ape=Et(Qj,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Dpe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTextField"}),{autoComplete:l,autoFocus:i=!1,children:o,className:a,color:s="primary",defaultValue:u,disabled:c=!1,error:d=!1,FormHelperTextProps:f,fullWidth:p=!1,helperText:m,id:g,InputLabelProps:b,inputProps:v,InputProps:h,inputRef:y,label:w,maxRows:_,minRows:x,multiline:T=!1,name:k,onBlur:S,onChange:C,onFocus:M,placeholder:O,required:D=!1,rows:P,select:E=!1,SelectProps:I,type:A,value:F,variant:j="outlined"}=r,z=Kt(r,Mpe),B=Ie({},r,{autoFocus:i,color:s,disabled:c,error:d,fullWidth:p,multiline:T,required:D,select:E,variant:j}),N=Ope(B),R={};j==="outlined"&&(b&&typeof b.shrink<"u"&&(R.notched=b.shrink),R.label=w),E&&((!I||!I.native)&&(R.id=void 0),R["aria-describedby"]=void 0);const q=Kl(g),Y=m&&q?`${q}-helper-text`:void 0,L=w&&q?`${q}-label`:void 0,W=Ppe[j],U=ke.jsx(W,Ie({"aria-describedby":Y,autoComplete:l,autoFocus:i,defaultValue:u,fullWidth:p,multiline:T,name:k,rows:P,maxRows:_,minRows:x,type:A,value:F,id:q,inputRef:y,onBlur:S,onChange:C,onFocus:M,placeholder:O,inputProps:v},R,h));return ke.jsxs(Ape,Ie({className:on(N.root,a),disabled:c,error:d,fullWidth:p,ref:n,required:D,color:s,variant:j,ownerState:B},z,{children:[w!=null&&w!==""&&ke.jsx(cz,Ie({htmlFor:q,id:L},b,{children:w})),E?ke.jsx(sb,Ie({"aria-describedby":Y,id:q,labelId:L,value:F,input:U},I,{children:o})):U,m&&ke.jsx(nz,Ie({id:Y},f,{children:m}))]}))}),Epe=Dpe,Rpe=Object.freeze(Object.defineProperty({__proto__:null,default:Epe,getTextFieldUtilityClass:Fz,textFieldClasses:Cpe},Symbol.toStringTag,{value:"Module"})),{transitions:Fc}=es(),Dl="#ed0500",Lpe="#ded5d5",Ipe=es({shape:{borderRadius:5},palette:{primary:{main:Rl[900],light:Rl[200]},secondary:{main:Dl,dark:"#c10400",light:Rl[200]},background:{default:"#fff",paper:"#fff"}},components:{MuiLink:{styleOverrides:{root:{transition:Fc.create("color",{duration:Fc.duration.enteringScreen}),"&:hover":{color:Dl}}}},MuiTabs:{styleOverrides:{flexContainer:{gap:"10px"},indicator:{backgroundColor:Dl}}},MuiButton:{styleOverrides:{contained:{"&:hover":{background:Rl[800]}},outlined:{"&:hover":{color:Dl,borderColor:Dl,background:"#fff"}},text:{"&:hover":{color:Dl,borderColor:Dl}}}},MuiTab:{defaultProps:{color:"secondary"},styleOverrides:{root:{fontSize:"1rem",borderRadius:"5px","&:hover":{background:Rl[200]}}}},MuiIconButton:{styleOverrides:{root:{transition:Fc.create("color",{duration:Fc.duration.enteringScreen}),color:Rl[900],"&:hover":{color:Dl}}}},MuiSwitch:{defaultProps:{color:"secondary"}},MuiToggleButton:{defaultProps:{color:"secondary"},styleOverrides:{root:{transition:Fc.create("color",{duration:Fc.duration.enteringScreen}),color:Rl[900],"&:hover":{color:Dl},"&.Mui-disabled":{border:"unset",background:Rl[100]}}}},MuiToggleButtonGroup:{defaultProps:{color:"secondary"}},MuiLinearProgress:{defaultProps:{color:"secondary"}},MuiPaper:{styleOverrides:{root:{boxShadow:"unset",border:"1px solid",borderColor:Lpe}}}},typography:{fontFamily:["-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),button:{fontWeight:"bold",textTransform:"none"}}});class $pe{constructor(t){$g(this,"cachedGraphs");$g(this,"cachedWidgets");$g(this,"inner");this.inner=t,this.cachedGraphs=new Map,this.cachedWidgets=new Map}async getAdditionGraphData(t){let n=this.cachedGraphs.get(t);return n!==void 0||(n=await this.inner.getAdditionGraphData(t),this.cachedGraphs.set(t,n)),n}async getAdditionWidgetData(t){let n=this.cachedWidgets.get(t);return n!==void 0||(n=await this.inner.getAdditionWidgetData(t),this.cachedWidgets.set(t,n)),n}}const DM=Je.createContext({getAdditionGraphData:()=>new Promise((e,t)=>t("default context doesn't contain methods to get data")),getAdditionWidgetData:()=>new Promise((e,t)=>t("default context doesn't contain methods to get data"))});function Npe(e){return new $pe(e)}var rv=(e=>(e[e.Small=0]="Small",e[e.Medium=1]="Medium",e[e.Big=2]="Big",e))(rv||{}),jz={exports:{}};(function(e,t){/*! For license information please see plotly-cartesian.min.js.LICENSE.txt */(function(n,r){e.exports=r()})(self,function(){return function(){var n={98847:function(i,o,a){var s=a(71828),u={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var c in u){var d=c.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");s.addStyleRule(d,u[c])}},98222:function(i,o,a){i.exports=a(82887)},27206:function(i,o,a){i.exports=a(60822)},5224:function(i,o,a){i.exports=a(83832)},59509:function(i,o,a){i.exports=a(72201)},49866:function(i,o,a){i.exports=a(99442)},19548:function(i,o,a){i.exports=a(8729)},61039:function(i,o,a){i.exports=a(14382)},24296:function(i,o,a){i.exports=a(43102)},58872:function(i,o,a){i.exports=a(92165)},65591:function(i,o,a){i.exports=a(36071)},69738:function(i,o,a){i.exports=a(43905)},92650:function(i,o,a){i.exports=a(35902)},73434:function(i,o,a){i.exports=a(94507)},760:function(i,o,a){var s=a(19548);s.register([a(27206),a(5224),a(58872),a(65591),a(69738),a(92650),a(49866),a(25743),a(6197),a(73434),a(54201),a(98222),a(61039),a(24296),a(66398),a(59509)]),i.exports=s},54201:function(i,o,a){i.exports=a(58810)},25743:function(i,o,a){i.exports=a(52979)},66398:function(i,o,a){i.exports=a(32275)},6197:function(i,o,a){i.exports=a(47462)},82884:function(i){i.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},50215:function(i,o,a){var s=a(82884),u=a(41940),c=a(85555),d=a(44467).templatedArray;a(24695),i.exports=d("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:u({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:s.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:s.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",c.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",c.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",c.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",c.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:u({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},3749:function(i,o,a){var s=a(71828),u=a(89298),c=a(92605).draw;function d(p){var m=p._fullLayout;s.filterVisible(m.annotations).forEach(function(g){var b=u.getFromId(p,g.xref),v=u.getFromId(p,g.yref),h=u.getRefType(g.xref),y=u.getRefType(g.yref);g._extremes={},h==="range"&&f(g,b),y==="range"&&f(g,v)})}function f(p,m){var g,b=m._id,v=b.charAt(0),h=p[v],y=p["a"+v],w=p[v+"ref"],_=p["a"+v+"ref"],x=p["_"+v+"padplus"],T=p["_"+v+"padminus"],k={x:1,y:-1}[v]*p[v+"shift"],S=3*p.arrowsize*p.arrowwidth||0,C=S+k,M=S-k,O=3*p.startarrowsize*p.arrowwidth||0,D=O+k,P=O-k;if(_===w){var E=u.findExtremes(m,[m.r2c(h)],{ppadplus:C,ppadminus:M}),I=u.findExtremes(m,[m.r2c(y)],{ppadplus:Math.max(x,D),ppadminus:Math.max(T,P)});g={min:[E.min[0],I.min[0]],max:[E.max[0],I.max[0]]}}else D=y?D+y:D,P=y?P-y:P,g=u.findExtremes(m,[m.r2c(h)],{ppadplus:Math.max(x,C,D),ppadminus:Math.max(T,M,P)});p._extremes[b]=g}i.exports=function(p){var m=p._fullLayout;if(s.filterVisible(m.annotations).length&&p._fullData.length)return s.syncOrAsync([c,d],p)}},44317:function(i,o,a){var s=a(71828),u=a(73972),c=a(44467).arrayEditor;function d(p,m){var g,b,v,h,y,w,_,x=p._fullLayout.annotations,T=[],k=[],S=[],C=(m||[]).length;for(g=0;g0||g.explicitOff.length>0},onClick:function(p,m){var g,b,v=d(p,m),h=v.on,y=v.off.concat(v.explicitOff),w={},_=p._fullLayout.annotations;if(h.length||y.length){for(g=0;g.6666666666666666?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[nt]}for(var ye=!1,Te=["x","y"],Ae=0;Ae1)&&(Xe===qe?((Ze=ot.r2fraction(C["a"+Ue]))<0||Ze>1)&&(ye=!0):ye=!0),Re=ot._offset+ot.r2p(C[Ue]),Fe=.5}else{var ut=St==="domain";Ue==="x"?($e=C[Ue],Re=ut?ot._offset+ot._length*$e:Re=F.l+F.w*$e):($e=1-C[Ue],Re=ut?ot._offset+ot._length*$e:Re=F.t+F.h*$e),Fe=C.showarrow?.5:$e}if(C.showarrow){it.head=Re;var ht=C["a"+Ue];if(Be=dt*xe(.5,C.xanchor)-vt*xe(.5,C.yanchor),Xe===qe){var Rt=p.getRefType(Xe);Rt==="domain"?(Ue==="y"&&(ht=1-ht),it.tail=ot._offset+ot._length*ht):Rt==="paper"?Ue==="y"?(ht=1-ht,it.tail=F.t+F.h*ht):it.tail=F.l+F.w*ht:it.tail=ot._offset+ot.r2p(ht),Le=Be}else it.tail=Re+ht,Le=Be+ht;it.text=it.tail+Be;var Ct=A[Ue==="x"?"width":"height"];if(qe==="paper"&&(it.head=d.constrain(it.head,1,Ct-1)),Xe==="pixel"){var Wt=-Math.max(it.tail-3,it.text),_t=Math.min(it.tail+3,it.text)-Ct;Wt>0?(it.tail+=Wt,it.text+=Wt):_t>0&&(it.tail-=_t,it.text-=_t)}it.tail+=tt,it.head+=tt}else Le=Be=We*xe(Fe,ze),it.text=Re+Be;it.text+=tt,Be+=tt,Le+=tt,C["_"+Ue+"padplus"]=We/2+Le,C["_"+Ue+"padminus"]=We/2-Le,C["_"+Ue+"size"]=We,C["_"+Ue+"shift"]=Be}if(ye)ee.remove();else{var be=0,Ce=0;if(C.align!=="left"&&(be=(de-K)*(C.align==="center"?.5:1)),C.valign!=="top"&&(Ce=(_e-ne)*(C.valign==="middle"?.5:1)),ce)Me.select("svg").attr({x:G+be-1,y:G+Ce}).call(g.setClipUrl,Q?q:null,S);else{var Ge=G+Ce-we.top,He=G+be-we.left;se.call(v.positionText,He,Ge).call(g.setClipUrl,Q?q:null,S)}re.select("rect").call(g.setRect,G,G,de,_e),X.call(g.setRect,H/2,H/2,ue-H,pe-H),ee.call(g.setTranslate,Math.round(Y.x.text-ue/2),Math.round(Y.y.text-pe/2)),U.attr({transform:"rotate("+L+","+Y.x.text+","+Y.y.text+")"});var et,Ke=function(Ye,nt){W.selectAll(".annotation-arrow-g").remove();var ct=Y.x.head,yt=Y.y.head,rt=Y.x.tail+Ye,Ft=Y.y.tail+nt,Yt=Y.x.text+Ye,Mt=Y.y.text+nt,jt=d.rotationXYMatrix(L,Yt,Mt),Lt=d.apply2DTransform(jt),gt=d.apply2DTransform2(jt),mt=+X.attr("width"),xt=+X.attr("height"),Ut=Yt-.5*mt,It=Ut+mt,zt=Mt-.5*xt,kt=zt+xt,Ot=[[Ut,zt,Ut,kt],[Ut,kt,It,kt],[It,kt,It,zt],[It,zt,Ut,zt]].map(gt);if(!Ot.reduce(function(dn,gn){return dn^!!d.segmentsIntersect(ct,yt,ct+1e6,yt+1e6,gn[0],gn[1],gn[2],gn[3])},!1)){Ot.forEach(function(dn){var gn=d.segmentsIntersect(rt,Ft,ct,yt,dn[0],dn[1],dn[2],dn[3]);gn&&(rt=gn.x,Ft=gn.y)});var At=C.arrowwidth,Nt=C.arrowcolor,$t=C.arrowside,Bt=W.append("g").style({opacity:m.opacity(Nt)}).classed("annotation-arrow-g",!0),Xt=Bt.append("path").attr("d","M"+rt+","+Ft+"L"+ct+","+yt).style("stroke-width",At+"px").call(m.stroke,m.rgb(Nt));if(_(Xt,$t,C),j.annotationPosition&&Xt.node().parentNode&&!O){var Zt=ct,qt=yt;if(C.standoff){var Ht=Math.sqrt(Math.pow(ct-rt,2)+Math.pow(yt-Ft,2));Zt+=C.standoff*(rt-ct)/Ht,qt+=C.standoff*(Ft-yt)/Ht}var sn,xn,mn=Bt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(rt-Zt)+","+(Ft-qt),transform:f(Zt,qt)}).style("stroke-width",At+6+"px").call(m.stroke,"rgba(0,0,0,0)").call(m.fill,"rgba(0,0,0,0)");y.init({element:mn.node(),gd:S,prepFn:function(){var dn=g.getTranslate(ee);sn=dn.x,xn=dn.y,D&&D.autorange&&B(D._name+".autorange",!0),P&&P.autorange&&B(P._name+".autorange",!0)},moveFn:function(dn,gn){var en=Lt(sn,xn),kn=en[0]+dn,un=en[1]+gn;ee.call(g.setTranslate,kn,un),N("x",T(D,dn,"x",F,C)),N("y",T(P,gn,"y",F,C)),C.axref===C.xref&&N("ax",T(D,dn,"ax",F,C)),C.ayref===C.yref&&N("ay",T(P,gn,"ay",F,C)),Bt.attr("transform",f(dn,gn)),U.attr({transform:"rotate("+L+","+kn+","+un+")"})},doneFn:function(){u.call("_guiRelayout",S,R());var dn=document.querySelector(".js-notes-box-panel");dn&&dn.redraw(dn.selectedObj)}})}}};C.showarrow&&Ke(0,0),V&&y.init({element:ee.node(),gd:S,prepFn:function(){et=U.attr("transform")},moveFn:function(Ye,nt){var ct="pointer";if(C.showarrow)C.axref===C.xref?N("ax",T(D,Ye,"ax",F,C)):N("ax",C.ax+Ye),C.ayref===C.yref?N("ay",T(P,nt,"ay",F.w,C)):N("ay",C.ay+nt),Ke(Ye,nt);else{if(O)return;var yt,rt;if(D)yt=T(D,Ye,"x",F,C);else{var Ft=C._xsize/F.w,Yt=C.x+(C._xshift-C.xshift)/F.w-Ft/2;yt=y.align(Yt+Ye/F.w,Ft,0,1,C.xanchor)}if(P)rt=T(P,nt,"y",F,C);else{var Mt=C._ysize/F.h,jt=C.y-(C._yshift+C.yshift)/F.h-Mt/2;rt=y.align(jt-nt/F.h,Mt,0,1,C.yanchor)}N("x",yt),N("y",rt),D&&P||(ct=y.getCursor(D?.5:yt,P?.5:rt,C.xanchor,C.yanchor))}U.attr({transform:f(Ye,nt)+et}),h(ee,ct)},clickFn:function(Ye,nt){C.captureevents&&S.emit("plotly_clickannotation",he(nt))},doneFn:function(){h(ee),u.call("_guiRelayout",S,R());var Ye=document.querySelector(".js-notes-box-panel");Ye&&Ye.redraw(Ye.selectedObj)}})}}}i.exports={draw:function(S){var C=S._fullLayout;C._infolayer.selectAll(".annotation").remove();for(var M=0;M=0,O=b.indexOf("end")>=0,D=T.backoff*S+v.standoff,P=k.backoff*C+v.startstandoff;if(x.nodeName==="line"){h={x:+g.attr("x1"),y:+g.attr("y1")},y={x:+g.attr("x2"),y:+g.attr("y2")};var E=h.x-y.x,I=h.y-y.y;if(_=(w=Math.atan2(I,E))+Math.PI,D&&P&&D+P>Math.sqrt(E*E+I*I))return void W();if(D){if(D*D>E*E+I*I)return void W();var A=D*Math.cos(w),F=D*Math.sin(w);y.x+=A,y.y+=F,g.attr({x2:y.x,y2:y.y})}if(P){if(P*P>E*E+I*I)return void W();var j=P*Math.cos(w),z=P*Math.sin(w);h.x-=j,h.y-=z,g.attr({x1:h.x,y1:h.y})}}else if(x.nodeName==="path"){var B=x.getTotalLength(),N="";if(B1){v=!0;break}}v?d.fullLayout._infolayer.select(".annotation-"+d.id+'[data-index="'+g+'"]').remove():(b._pdata=u(d.glplot.cameraParams,[f.xaxis.r2l(b.x)*p[0],f.yaxis.r2l(b.y)*p[1],f.zaxis.r2l(b.z)*p[2]]),s(d.graphDiv,b,g,d.id,b._xa,b._ya))}}},2468:function(i,o,a){var s=a(73972),u=a(71828);i.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:a(26997)}}},layoutAttributes:a(26997),handleDefaults:a(20226),includeBasePlot:function(c,d){var f=s.subplotsRegistry.gl3d;if(f)for(var p=f.attrRegex,m=Object.keys(c),g=0;g=0)))return b;if(_===3)y[_]>1&&(y[_]=1);else if(y[_]>=1)return b}var x=Math.round(255*y[0])+", "+Math.round(255*y[1])+", "+Math.round(255*y[2]);return w?"rgba("+x+", "+y[3]+")":"rgb("+x+")"}d.tinyRGB=function(b){var v=b.toRgb();return"rgb("+Math.round(v.r)+", "+Math.round(v.g)+", "+Math.round(v.b)+")"},d.rgb=function(b){return d.tinyRGB(s(b))},d.opacity=function(b){return b?s(b).getAlpha():0},d.addOpacity=function(b,v){var h=s(b).toRgb();return"rgba("+Math.round(h.r)+", "+Math.round(h.g)+", "+Math.round(h.b)+", "+v+")"},d.combine=function(b,v){var h=s(b).toRgb();if(h.a===1)return s(b).toRgbString();var y=s(v||m).toRgb(),w=y.a===1?y:{r:255*(1-y.a)+y.r*y.a,g:255*(1-y.a)+y.g*y.a,b:255*(1-y.a)+y.b*y.a},_={r:w.r*(1-h.a)+h.r*h.a,g:w.g*(1-h.a)+h.g*h.a,b:w.b*(1-h.a)+h.b*h.a};return s(_).toRgbString()},d.contrast=function(b,v,h){var y=s(b);return y.getAlpha()!==1&&(y=s(d.combine(b,m))),(y.isDark()?v?y.lighten(v):m:h?y.darken(h):p).toString()},d.stroke=function(b,v){var h=s(v);b.style({stroke:d.tinyRGB(h),"stroke-opacity":h.getAlpha()})},d.fill=function(b,v){var h=s(v);b.style({fill:d.tinyRGB(h),"fill-opacity":h.getAlpha()})},d.clean=function(b){if(b&&typeof b=="object"){var v,h,y,w,_=Object.keys(b);for(v=0;v<_.length;v++)if(w=b[y=_[v]],y.substr(y.length-5)==="color")if(Array.isArray(w))for(h=0;h0?_t>=et:_t<=et));be++)_t>Ye&&_t0?_t>=et:_t<=et));be++)_t>Wt[0]&&_t1){var vt=Math.pow(10,Math.floor(Math.log(dt)/Math.LN10));ot*=vt*m.roundUp(dt/vt,[2,5,10]),(Math.abs(K.start)/K.size+1e-6)%1<2e-6&&(qe.tick0=0)}qe.dtick=ot}qe.domain=R?[Be+G/se.h,Be+ye-G/se.h]:[Be+Z/se.w,Be+ye-Z/se.w],qe.setScale(),z.attr("transform",g(Math.round(se.l),Math.round(se.t)));var We,ze=z.select("."+P.cbtitleunshift).attr("transform",g(-Math.round(se.l),-Math.round(se.t))),tt=qe.ticklabelposition,it=qe.title.font.size,St=z.select("."+P.cbaxis),Ze=0,ut=0;function ht(Rt,Ct){var Wt={propContainer:qe,propName:B._propPrefix+"title",traceIndex:B._traceIndex,_meta:B._meta,placeholder:ie._dfltTitle.colorbar,containerGroup:z.select("."+P.cbtitle)},_t=Rt.charAt(0)==="h"?Rt.substr(1):"h"+Rt;z.selectAll("."+_t+",."+_t+"-math-group").remove(),w.draw(N,Rt,b(Wt,Ct||{}))}return m.syncOrAsync([c.previousPromises,function(){var Rt,Ct;(R&&Xe||!R&&!Xe)&&(Pe==="top"&&(Rt=Z+se.l+Te*X,Ct=G+se.t+Ae*(1-Be-ye)+3+.75*it),Pe==="bottom"&&(Rt=Z+se.l+Te*X,Ct=G+se.t+Ae*(1-Be)-3-.25*it),Pe==="right"&&(Ct=G+se.t+Ae*Q+3+.75*it,Rt=Z+se.l+Te*Be),ht(qe._id+"title",{attributes:{x:Rt,y:Ct,"text-anchor":R?"start":"middle"}}))},function(){if(!R&&!Xe||R&&Xe){var Rt,Ct=z.select("."+P.cbtitle),Wt=Ct.select("text"),_t=[-U/2,U/2],be=Ct.select(".h"+qe._id+"title-math-group").node(),Ce=15.6;if(Wt.node()&&(Ce=parseInt(Wt.node().style.fontSize,10)*M),be?(Rt=h.bBox(be),ut=Rt.width,(Ze=Rt.height)>Ce&&(_t[1]-=(Ze-Ce)/2)):Wt.node()&&!Wt.classed(P.jsPlaceholder)&&(Rt=h.bBox(Wt.node()),ut=Rt.width,Ze=Rt.height),R){if(Ze){if(Ze+=5,Pe==="top")qe.domain[1]-=Ze/se.h,_t[1]*=-1;else{qe.domain[0]+=Ze/se.h;var Ge=_.lineCount(Wt);_t[1]+=(1-Ge)*Ce}Ct.attr("transform",g(_t[0],_t[1])),qe.setScale()}}else ut&&(Pe==="right"&&(qe.domain[0]+=(ut+it/2)/se.w),Ct.attr("transform",g(_t[0],_t[1])),qe.setScale())}z.selectAll("."+P.cbfills+",."+P.cblines).attr("transform",R?g(0,Math.round(se.h*(1-qe.domain[1]))):g(Math.round(se.w*qe.domain[0]),0)),St.attr("transform",R?g(0,Math.round(-se.t)):g(Math.round(-se.l),0));var He=z.select("."+P.cbfills).selectAll("rect."+P.cbfill).attr("style","").data(de);He.enter().append("rect").classed(P.cbfill,!0).attr("style",""),He.exit().remove();var et=Me.map(qe.c2p).map(Math.round).sort(function(yt,rt){return yt-rt});He.each(function(yt,rt){var Ft=[rt===0?Me[0]:(de[rt]+de[rt-1])/2,rt===de.length-1?Me[1]:(de[rt]+de[rt+1])/2].map(qe.c2p).map(Math.round);R&&(Ft[1]=m.constrain(Ft[1]+(Ft[1]>Ft[0])?1:-1,et[0],et[1]));var Yt=s.select(this).attr(R?"x":"y",Re).attr(R?"y":"x",s.min(Ft)).attr(R?"width":"height",Math.max(ue,2)).attr(R?"height":"width",Math.max(s.max(Ft)-s.min(Ft),2));if(B._fillgradient)h.gradient(Yt,N,B._id,R?"vertical":"horizontalreversed",B._fillgradient,"fill");else{var Mt=we(yt).replace("e-","");Yt.attr("fill",u(Mt).toHexString())}});var Ke=z.select("."+P.cblines).selectAll("path."+P.cbline).data(Se.color&&Se.width?_e:[]);Ke.enter().append("path").classed(P.cbline,!0),Ke.exit().remove(),Ke.each(function(yt){var rt=Re,Ft=Math.round(qe.c2p(yt))+Se.width/2%1;s.select(this).attr("d","M"+(R?rt+","+Ft:Ft+","+rt)+(R?"h":"v")+ue).call(h.lineGroupStyle,Se.width,ce(yt),Se.dash)}),St.selectAll("g."+qe._id+"tick,path").remove();var Ye=Re+ue+(U||0)/2-(B.ticks==="outside"?1:0),nt=f.calcTicks(qe),ct=f.getTickSigns(qe)[2];return f.drawTicks(N,qe,{vals:qe.ticks==="inside"?f.clipEnds(qe,nt):nt,layer:St,path:f.makeTickPath(qe,Ye,ct),transFn:f.makeTransTickFn(qe)}),f.drawLabels(N,qe,{vals:nt,layer:St,transFn:f.makeTransTickLabelFn(qe),labelFns:f.makeLabelFns(qe,Ye)})},function(){if(R&&!Xe||!R&&Xe){var Rt,Ct,Wt=qe.position||0,_t=qe._offset+qe._length/2;if(Pe==="right")Ct=_t,Rt=se.l+Te*Wt+10+it*(qe.showticklabels?1:.5);else if(Rt=_t,Pe==="bottom"&&(Ct=se.t+Ae*Wt+10+(tt.indexOf("inside")===-1?qe.tickfont.size:0)+(qe.ticks!=="intside"&&B.ticklen||0)),Pe==="top"){var be=Oe.text.split("
").length;Ct=se.t+Ae*Wt+10-ue-M*it*be}ht((R?"h":"v")+qe._id+"title",{avoid:{selection:s.select(N).selectAll("g."+qe._id+"tick"),side:Pe,offsetTop:R?0:se.t,offsetLeft:R?se.l:0,maxShift:R?ie.width:ie.height},attributes:{x:Rt,y:Ct,"text-anchor":"middle"},transform:{rotate:R?-90:0,offset:0}})}},c.previousPromises,function(){var Rt,Ct=ue+U/2;tt.indexOf("inside")===-1&&(Rt=h.bBox(St.node()),Ct+=R?Rt.width:Rt.height),We=ze.select("text");var Wt=0,_t=R&&Pe==="top",be=!R&&Pe==="right",Ce=0;if(We.node()&&!We.classed(P.jsPlaceholder)){var Ge,He=ze.select(".h"+qe._id+"title-math-group").node();He&&(R&&Xe||!R&&!Xe)?(Wt=(Rt=h.bBox(He)).width,Ge=Rt.height):(Wt=(Rt=h.bBox(ze.node())).right-se.l-(R?Re:Ue),Ge=Rt.bottom-se.t-(R?Ue:Re),R||Pe!=="top"||(Ct+=Rt.height,Ce=Rt.height)),be&&(We.attr("transform",g(Wt/2+it/2,0)),Wt*=2),Ct=Math.max(Ct,R?Wt:Ge)}var et=2*(R?Z:G)+Ct+V+U/2,Ke=0;!R&&Oe.text&&H==="bottom"&&Q<=0&&(et+=Ke=et/2,Ce+=Ke),ie._hColorbarMoveTitle=Ke,ie._hColorbarMoveCBTitle=Ce;var Ye=V+U,nt=(R?Re:Ue)-Ye/2-(R?Z:0),ct=(R?Ue:Re)-(R?xe:G+Ce-Ke);z.select("."+P.cbbg).attr("x",nt).attr("y",ct).attr(R?"width":"height",Math.max(et-Ke,2)).attr(R?"height":"width",Math.max(xe+Ye,2)).call(y.fill,te).call(y.stroke,B.bordercolor).style("stroke-width",V);var yt=be?Math.max(Wt-10,0):0;z.selectAll("."+P.cboutline).attr("x",(R?Re:Ue+Z)+yt).attr("y",(R?Ue+G-xe:Re)+(_t?Ze:0)).attr(R?"width":"height",Math.max(ue,2)).attr(R?"height":"width",Math.max(xe-(R?2*G+Ze:2*Z+yt),2)).call(y.stroke,B.outlinecolor).style({fill:"none","stroke-width":U});var rt=R?Le*et:0,Ft=R?0:(1-$e)*et-Ce;if(rt=ae?se.l-rt:-rt,Ft=re?se.t-Ft:-Ft,z.attr("transform",g(rt,Ft)),!R&&(V||u(te).getAlpha()&&!u.equals(ie.paper_bgcolor,te))){var Yt=St.selectAll("text"),Mt=Yt[0].length,jt=z.select("."+P.cbbg).node(),Lt=h.bBox(jt),gt=h.getTranslate(z);Yt.each(function($t,Bt){var Xt=Mt-1;if(Bt===0||Bt===Xt){var Zt,qt=h.bBox(this),Ht=h.getTranslate(this);if(Bt===Xt){var sn=qt.right+Ht.x;(Zt=Lt.right+gt.x+Ue-V-2+X-sn)>0&&(Zt=0)}else if(Bt===0){var xn=qt.left+Ht.x;(Zt=Lt.left+gt.x+Ue+V+2-xn)<0&&(Zt=0)}Zt&&(Mt<3?this.setAttribute("transform","translate("+Zt+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var mt={},xt=O[ee],Ut=D[ee],It=O[H],zt=D[H],kt=et-ue;R?(Y==="pixels"?(mt.y=Q,mt.t=xe*It,mt.b=xe*zt):(mt.t=mt.b=0,mt.yt=Q+q*It,mt.yb=Q-q*zt),W==="pixels"?(mt.x=X,mt.l=et*xt,mt.r=et*Ut):(mt.l=kt*xt,mt.r=kt*Ut,mt.xl=X-L*xt,mt.xr=X+L*Ut)):(Y==="pixels"?(mt.x=X,mt.l=xe*xt,mt.r=xe*Ut):(mt.l=mt.r=0,mt.xl=X+q*xt,mt.xr=X-q*Ut),W==="pixels"?(mt.y=1-Q,mt.t=et*It,mt.b=et*zt):(mt.t=kt*It,mt.b=kt*zt,mt.yt=Q-L*It,mt.yb=Q+L*zt));var Ot=B.y<.5?"b":"t",At=B.x<.5?"l":"r";N._fullLayout._reservedMargin[B._id]={};var Nt={r:ie.width-nt-rt,l:nt+mt.r,b:ie.height-ct-Ft,t:ct+mt.b};ae&&re?c.autoMargin(N,B._id,mt):ae?N._fullLayout._reservedMargin[B._id][Ot]=Nt[Ot]:re||R?N._fullLayout._reservedMargin[B._id][At]=Nt[At]:N._fullLayout._reservedMargin[B._id][Ot]=Nt[Ot]}],N)}(F,A,E);j&&j.then&&(E._promises||[]).push(j),E._context.edits.colorbarPosition&&function(z,B,N){var R,q,Y,L=B.orientation==="v",W=N._fullLayout._size;p.init({element:z.node(),gd:N,prepFn:function(){R=z.attr("transform"),v(z)},moveFn:function(U,V){z.attr("transform",R+g(U,V)),q=p.align((L?B._uFrac:B._vFrac)+U/W.w,L?B._thickFrac:B._lenFrac,0,1,B.xanchor),Y=p.align((L?B._vFrac:1-B._uFrac)-V/W.h,L?B._lenFrac:B._thickFrac,0,1,B.yanchor);var te=p.getCursor(q,Y,B.xanchor,B.yanchor);v(z,te)},doneFn:function(){if(v(z),q!==void 0&&Y!==void 0){var U={};U[B._propPrefix+"x"]=q,U[B._propPrefix+"y"]=Y,B._traceIndex!==void 0?d.call("_guiRestyle",N,U,B._traceIndex):d.call("_guiRelayout",N,U)}}})}(F,A,E)}),I.exit().each(function(A){c.autoMargin(E,A._id)}).remove(),I.order()}}},76228:function(i,o,a){var s=a(71828);i.exports=function(u){return s.isPlainObject(u.colorbar)}},12311:function(i,o,a){i.exports={moduleType:"component",name:"colorbar",attributes:a(63583),supplyDefaults:a(62499),draw:a(98981).draw,hasColorbar:a(76228)}},50693:function(i,o,a){var s=a(63583),u=a(30587).counter,c=a(78607),d=a(63282).scales;function f(p){return"`"+p+"`"}c(d),i.exports=function(p,m){p=p||"";var g,b=(m=m||{}).cLetter||"c",v=("onlyIfNumerical"in m&&m.onlyIfNumerical,"noScale"in m?m.noScale:p==="marker.line"),h="showScaleDflt"in m?m.showScaleDflt:b==="z",y=typeof m.colorscaleDflt=="string"?d[m.colorscaleDflt]:null,w=m.editTypeOverride||"",_=p?p+".":"";"colorAttr"in m?(g=m.colorAttr,m.colorAttr):f(_+(g={z:"z",c:"color"}[b]));var x=b+"auto",T=b+"min",k=b+"max",S=b+"mid",C={};C[T]=C[k]=void 0;var M={};M[x]=!1;var O={};return g==="color"&&(O.color={valType:"color",arrayOk:!0,editType:w||"style"},m.anim&&(O.color.anim=!0)),O[x]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:C},O[T]={valType:"number",dflt:null,editType:w||"plot",impliedEdits:M},O[k]={valType:"number",dflt:null,editType:w||"plot",impliedEdits:M},O[S]={valType:"number",dflt:null,editType:"calc",impliedEdits:C},O.colorscale={valType:"colorscale",editType:"calc",dflt:y,impliedEdits:{autocolorscale:!1}},O.autocolorscale={valType:"boolean",dflt:m.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},O.reversescale={valType:"boolean",dflt:!1,editType:"plot"},v||(O.showscale={valType:"boolean",dflt:h,editType:"calc"},O.colorbar=s),m.noColorAxis||(O.coloraxis={valType:"subplotid",regex:u("coloraxis"),dflt:null,editType:"calc"}),O}},78803:function(i,o,a){var s=a(92770),u=a(71828),c=a(52075).extractOpts;i.exports=function(d,f,p){var m,g=d._fullLayout,b=p.vals,v=p.containerStr,h=v?u.nestedProperty(f,v).get():f,y=c(h),w=y.auto!==!1,_=y.min,x=y.max,T=y.mid,k=function(){return u.aggNums(Math.min,null,b)},S=function(){return u.aggNums(Math.max,null,b)};_===void 0?_=k():w&&(_=h._colorAx&&s(_)?Math.min(_,k()):k()),x===void 0?x=S():w&&(x=h._colorAx&&s(x)?Math.max(x,S()):S()),w&&T!==void 0&&(x-T>T-_?_=T-(x-T):x-T=0?g.colorscale.sequential:g.colorscale.sequentialminus,y._sync("colorscale",m))}},33046:function(i,o,a){var s=a(71828),u=a(52075).hasColorscale,c=a(52075).extractOpts;i.exports=function(d,f){function p(w,_){var x=w["_"+_];x!==void 0&&(w[_]=x)}function m(w,_){var x=_.container?s.nestedProperty(w,_.container).get():w;if(x)if(x.coloraxis)x._colorAx=f[x.coloraxis];else{var T=c(x),k=T.auto;(k||T.min===void 0)&&p(x,_.min),(k||T.max===void 0)&&p(x,_.max),T.autocolorscale&&p(x,"colorscale")}}for(var g=0;g=0;k--,S++){var C=_[k];T[S]=[1-C[0],C[1]]}return T}function y(_,x){x=x||{};for(var T=_.domain,k=_.range,S=k.length,C=new Array(S),M=0;M1.3333333333333333-p?f:p}},70461:function(i,o,a){var s=a(71828),u=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];i.exports=function(c,d,f,p){return c=f==="left"?0:f==="center"?1:f==="right"?2:s.constrain(Math.floor(3*c),0,2),d=p==="bottom"?0:p==="middle"?1:p==="top"?2:s.constrain(Math.floor(3*d),0,2),u[d][c]}},64505:function(i,o){o.selectMode=function(a){return a==="lasso"||a==="select"},o.drawMode=function(a){return a==="drawclosedpath"||a==="drawopenpath"||a==="drawline"||a==="drawrect"||a==="drawcircle"},o.openMode=function(a){return a==="drawline"||a==="drawopenpath"},o.rectMode=function(a){return a==="select"||a==="drawline"||a==="drawrect"||a==="drawcircle"},o.freeMode=function(a){return a==="lasso"||a==="drawclosedpath"||a==="drawopenpath"},o.selectingOrDrawing=function(a){return o.freeMode(a)||o.rectMode(a)}},28569:function(i,o,a){var s=a(48956),u=a(57035),c=a(38520),d=a(71828).removeElement,f=a(85555),p=i.exports={};p.align=a(92807),p.getCursor=a(70461);var m=a(26041);function g(){var v=document.createElement("div");v.className="dragcover";var h=v.style;return h.position="fixed",h.left=0,h.right=0,h.top=0,h.bottom=0,h.zIndex=999999999,h.background="none",document.body.appendChild(v),v}function b(v){return s(v.changedTouches?v.changedTouches[0]:v,document.body)}p.unhover=m.wrapped,p.unhoverRaw=m.raw,p.init=function(v){var h,y,w,_,x,T,k,S,C=v.gd,M=1,O=C._context.doubleClickDelay,D=v.element;C._mouseDownTime||(C._mouseDownTime=0),D.style.pointerEvents="all",D.onmousedown=E,c?(D._ontouchstart&&D.removeEventListener("touchstart",D._ontouchstart),D._ontouchstart=E,D.addEventListener("touchstart",E,{passive:!1})):D.ontouchstart=E;var P=v.clampFn||function(F,j,z){return Math.abs(F)O&&(M=Math.max(M-1,1)),C._dragged)v.doneFn&&v.doneFn();else if(v.clickFn&&v.clickFn(M,T),!S){var j;try{j=new MouseEvent("click",F)}catch{var z=b(F);(j=document.createEvent("MouseEvents")).initMouseEvent("click",F.bubbles,F.cancelable,F.view,F.detail,F.screenX,F.screenY,z[0],z[1],F.ctrlKey,F.altKey,F.shiftKey,F.metaKey,F.button,F.relatedTarget)}k.dispatchEvent(j)}C._dragging=!1,C._dragged=!1}else C._dragged=!1}},p.coverSlip=g},26041:function(i,o,a){var s=a(11086),u=a(79990),c=a(24401).getGraphDiv,d=a(26675),f=i.exports={};f.wrapped=function(p,m,g){(p=c(p))._fullLayout&&u.clear(p._fullLayout._uid+d.HOVERID),f.raw(p,m,g)},f.raw=function(p,m){var g=p._fullLayout,b=p._hoverdata;m||(m={}),m.target&&!p._dragged&&s.triggerHandler(p,"plotly_beforehover",m)===!1||(g._hoverlayer.selectAll("g").remove(),g._hoverlayer.selectAll("line").remove(),g._hoverlayer.selectAll("circle").remove(),p._hoverdata=void 0,m.target&&b&&p.emit("plotly_unhover",{event:m,points:b}))}},79952:function(i,o){o.P={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},o.u={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},91424:function(i,o,a){var s=a(39898),u=a(71828),c=u.numberFormat,d=a(92770),f=a(84267),p=a(73972),m=a(7901),g=a(21081),b=u.strTranslate,v=a(63893),h=a(77922),y=a(18783).LINE_SPACING,w=a(37822).DESELECTDIM,_=a(34098),x=a(39984),T=a(23469).appendArrayPointValue,k=i.exports={};function S(ce,we,K){var ne=we.fillpattern,de=ne&&k.getPatternAttr(ne.shape,0,"");if(de){var _e=k.getPatternAttr(ne.bgcolor,0,null),ue=k.getPatternAttr(ne.fgcolor,0,null),pe=ne.fgopacity,xe=k.getPatternAttr(ne.size,0,8),ye=k.getPatternAttr(ne.solidity,0,.3),Te=we.uid;k.pattern(ce,"point",K,Te,de,xe,ye,void 0,ne.fillmode,_e,ue,pe)}else we.fillcolor&&ce.call(m.fill,we.fillcolor)}k.font=function(ce,we,K,ne){u.isPlainObject(we)&&(ne=we.color,K=we.size,we=we.family),we&&ce.style("font-family",we),K+1&&ce.style("font-size",K+"px"),ne&&ce.call(m.fill,ne)},k.setPosition=function(ce,we,K){ce.attr("x",we).attr("y",K)},k.setSize=function(ce,we,K){ce.attr("width",we).attr("height",K)},k.setRect=function(ce,we,K,ne,de){ce.call(k.setPosition,we,K).call(k.setSize,ne,de)},k.translatePoint=function(ce,we,K,ne){var de=K.c2p(ce.x),_e=ne.c2p(ce.y);return!!(d(de)&&d(_e)&&we.node())&&(we.node().nodeName==="text"?we.attr("x",de).attr("y",_e):we.attr("transform",b(de,_e)),!0)},k.translatePoints=function(ce,we,K){ce.each(function(ne){var de=s.select(this);k.translatePoint(ne,de,we,K)})},k.hideOutsideRangePoint=function(ce,we,K,ne,de,_e){we.attr("display",K.isPtWithinRange(ce,de)&&ne.isPtWithinRange(ce,_e)?null:"none")},k.hideOutsideRangePoints=function(ce,we){if(we._hasClipOnAxisFalse){var K=we.xaxis,ne=we.yaxis;ce.each(function(de){var _e=de[0].trace,ue=_e.xcalendar,pe=_e.ycalendar,xe=p.traceIs(_e,"bar-like")?".bartext":".point,.textpoint";ce.selectAll(xe).each(function(ye){k.hideOutsideRangePoint(ye,s.select(this),K,ne,ue,pe)})})}},k.crispRound=function(ce,we,K){return we&&d(we)?ce._context.staticPlot?we:we<1?1:Math.round(we):K||0},k.singleLineStyle=function(ce,we,K,ne,de){we.style("fill","none");var _e=(((ce||[])[0]||{}).trace||{}).line||{},ue=K||_e.width||0,pe=de||_e.dash||"";m.stroke(we,ne||_e.color),k.dashLine(we,pe,ue)},k.lineGroupStyle=function(ce,we,K,ne){ce.style("fill","none").each(function(de){var _e=(((de||[])[0]||{}).trace||{}).line||{},ue=we||_e.width||0,pe=ne||_e.dash||"";s.select(this).call(m.stroke,K||_e.color).call(k.dashLine,pe,ue)})},k.dashLine=function(ce,we,K){K=+K||0,we=k.dashStyle(we,K),ce.style({"stroke-dasharray":we,"stroke-width":K+"px"})},k.dashStyle=function(ce,we){we=+we||1;var K=Math.max(we,3);return ce==="solid"?ce="":ce==="dot"?ce=K+"px,"+K+"px":ce==="dash"?ce=3*K+"px,"+3*K+"px":ce==="longdash"?ce=5*K+"px,"+5*K+"px":ce==="dashdot"?ce=3*K+"px,"+K+"px,"+K+"px,"+K+"px":ce==="longdashdot"&&(ce=5*K+"px,"+2*K+"px,"+K+"px,"+2*K+"px"),ce},k.singleFillStyle=function(ce,we){var K=s.select(ce.node());S(ce,((K.data()[0]||[])[0]||{}).trace||{},we)},k.fillGroupStyle=function(ce,we){ce.style("stroke-width",0).each(function(K){var ne=s.select(this);K[0].trace&&S(ne,K[0].trace,we)})};var C=a(90998);k.symbolNames=[],k.symbolFuncs=[],k.symbolBackOffs=[],k.symbolNeedLines={},k.symbolNoDot={},k.symbolNoFill={},k.symbolList=[],Object.keys(C).forEach(function(ce){var we=C[ce],K=we.n;k.symbolList.push(K,String(K),ce,K+100,String(K+100),ce+"-open"),k.symbolNames[K]=ce,k.symbolFuncs[K]=we.f,k.symbolBackOffs[K]=we.backoff||0,we.needLine&&(k.symbolNeedLines[K]=!0),we.noDot?k.symbolNoDot[K]=!0:k.symbolList.push(K+200,String(K+200),ce+"-dot",K+300,String(K+300),ce+"-open-dot"),we.noFill&&(k.symbolNoFill[K]=!0)});var M=k.symbolNames.length;function O(ce,we,K,ne){var de=ce%100;return k.symbolFuncs[de](we,K,ne)+(ce>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}k.symbolNumber=function(ce){if(d(ce))ce=+ce;else if(typeof ce=="string"){var we=0;ce.indexOf("-open")>0&&(we=100,ce=ce.replace("-open","")),ce.indexOf("-dot")>0&&(we+=200,ce=ce.replace("-dot","")),(ce=k.symbolNames.indexOf(ce))>=0&&(ce+=we)}return ce%100>=M||ce>=400?0:Math.floor(Math.max(ce,0))};var D={x1:1,x2:0,y1:0,y2:0},P={x1:0,x2:0,y1:1,y2:0},E=c("~f"),I={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:D},horizontalreversed:{node:"linearGradient",attrs:D,reversed:!0},vertical:{node:"linearGradient",attrs:P},verticalreversed:{node:"linearGradient",attrs:P,reversed:!0}};k.gradient=function(ce,we,K,ne,de,_e){for(var ue=de.length,pe=I[ne],xe=new Array(ue),ye=0;ye=0&&ce.i===void 0&&(ce.i=_e.i),we.style("opacity",ne.selectedOpacityFn?ne.selectedOpacityFn(ce):ce.mo===void 0?ue.opacity:ce.mo),ne.ms2mrc){var xe;xe=ce.ms==="various"||ue.size==="various"?3:ne.ms2mrc(ce.ms),ce.mrc=xe,ne.selectedSizeFn&&(xe=ce.mrc=ne.selectedSizeFn(ce));var ye=k.symbolNumber(ce.mx||ue.symbol)||0;ce.om=ye%200>=100;var Te=Me(ce,K),Ae=G(ce,K);we.attr("d",O(ye,xe,Te,Ae))}var Re,Le,$e,Fe=!1;if(ce.so)$e=pe.outlierwidth,Le=pe.outliercolor,Re=ue.outliercolor;else{var Be=(pe||{}).width;$e=(ce.mlw+1||Be+1||(ce.trace?(ce.trace.marker.line||{}).width:0)+1)-1||0,Le="mlc"in ce?ce.mlcc=ne.lineScale(ce.mlc):u.isArrayOrTypedArray(pe.color)?m.defaultLine:pe.color,u.isArrayOrTypedArray(ue.color)&&(Re=m.defaultLine,Fe=!0),Re="mc"in ce?ce.mcc=ne.markerScale(ce.mc):ue.color||ue.colors||"rgba(0,0,0,0)",ne.selectedColorFn&&(Re=ne.selectedColorFn(ce))}if(ce.om)we.call(m.stroke,Re).style({"stroke-width":($e||1)+"px",fill:"none"});else{we.style("stroke-width",(ce.isBlank?0:$e)+"px");var Ue=ue.gradient,qe=ce.mgt;qe?Fe=!0:qe=Ue&&Ue.type,u.isArrayOrTypedArray(qe)&&(qe=qe[0],I[qe]||(qe=0));var Xe=ue.pattern,ot=Xe&&k.getPatternAttr(Xe.shape,ce.i,"");if(qe&&qe!=="none"){var st=ce.mgc;st?Fe=!0:st=Ue.color;var dt=K.uid;Fe&&(dt+="-"+ce.i),k.gradient(we,de,dt,qe,[[0,st],[1,Re]],"fill")}else if(ot){var vt=!1,We=Xe.fgcolor;!We&&_e&&_e.color&&(We=_e.color,vt=!0);var ze=k.getPatternAttr(We,ce.i,_e&&_e.color||null),tt=k.getPatternAttr(Xe.bgcolor,ce.i,null),it=Xe.fgopacity,St=k.getPatternAttr(Xe.size,ce.i,8),Ze=k.getPatternAttr(Xe.solidity,ce.i,.3);vt=vt||ce.mcc||u.isArrayOrTypedArray(Xe.shape)||u.isArrayOrTypedArray(Xe.bgcolor)||u.isArrayOrTypedArray(Xe.fgcolor)||u.isArrayOrTypedArray(Xe.size)||u.isArrayOrTypedArray(Xe.solidity);var ut=K.uid;vt&&(ut+="-"+ce.i),k.pattern(we,"point",de,ut,ot,St,Ze,ce.mcc,Xe.fillmode,tt,ze,it)}else u.isArrayOrTypedArray(Re)?m.fill(we,Re[ce.i]):m.fill(we,Re);$e&&m.stroke(we,Le)}},k.makePointStyleFns=function(ce){var we={},K=ce.marker;return we.markerScale=k.tryColorscale(K,""),we.lineScale=k.tryColorscale(K,"line"),p.traceIs(ce,"symbols")&&(we.ms2mrc=_.isBubble(ce)?x(ce):function(){return(K.size||6)/2}),ce.selectedpoints&&u.extendFlat(we,k.makeSelectedPointStyleFns(ce)),we},k.makeSelectedPointStyleFns=function(ce){var we={},K=ce.selected||{},ne=ce.unselected||{},de=ce.marker||{},_e=K.marker||{},ue=ne.marker||{},pe=de.opacity,xe=_e.opacity,ye=ue.opacity,Te=xe!==void 0,Ae=ye!==void 0;(u.isArrayOrTypedArray(pe)||Te||Ae)&&(we.selectedOpacityFn=function(ot){var st=ot.mo===void 0?de.opacity:ot.mo;return ot.selected?Te?xe:st:Ae?ye:w*st});var Re=de.color,Le=_e.color,$e=ue.color;(Le||$e)&&(we.selectedColorFn=function(ot){var st=ot.mcc||Re;return ot.selected?Le||st:$e||st});var Fe=de.size,Be=_e.size,Ue=ue.size,qe=Be!==void 0,Xe=Ue!==void 0;return p.traceIs(ce,"symbols")&&(qe||Xe)&&(we.selectedSizeFn=function(ot){var st=ot.mrc||Fe/2;return ot.selected?qe?Be/2:st:Xe?Ue/2:st}),we},k.makeSelectedTextStyleFns=function(ce){var we={},K=ce.selected||{},ne=ce.unselected||{},de=ce.textfont||{},_e=K.textfont||{},ue=ne.textfont||{},pe=de.color,xe=_e.color,ye=ue.color;return we.selectedTextColorFn=function(Te){var Ae=Te.tc||pe;return Te.selected?xe||Ae:ye||(xe?Ae:m.addOpacity(Ae,w))},we},k.selectedPointStyle=function(ce,we){if(ce.size()&&we.selectedpoints){var K=k.makeSelectedPointStyleFns(we),ne=we.marker||{},de=[];K.selectedOpacityFn&&de.push(function(_e,ue){_e.style("opacity",K.selectedOpacityFn(ue))}),K.selectedColorFn&&de.push(function(_e,ue){m.fill(_e,K.selectedColorFn(ue))}),K.selectedSizeFn&&de.push(function(_e,ue){var pe=ue.mx||ne.symbol||0,xe=K.selectedSizeFn(ue);_e.attr("d",O(k.symbolNumber(pe),xe,Me(ue,we),G(ue,we))),ue.mrc2=xe}),de.length&&ce.each(function(_e){for(var ue=s.select(this),pe=0;pe0?K:0}function N(ce,we,K){return K&&(ce=U(ce)),we?q(ce[1]):R(ce[0])}function R(ce){var we=s.round(ce,2);return A=we,we}function q(ce){var we=s.round(ce,2);return F=we,we}function Y(ce,we,K,ne){var de=ce[0]-we[0],_e=ce[1]-we[1],ue=K[0]-we[0],pe=K[1]-we[1],xe=Math.pow(de*de+_e*_e,.25),ye=Math.pow(ue*ue+pe*pe,.25),Te=(ye*ye*de-xe*xe*ue)*ne,Ae=(ye*ye*_e-xe*xe*pe)*ne,Re=3*ye*(xe+ye),Le=3*xe*(xe+ye);return[[R(we[0]+(Re&&Te/Re)),q(we[1]+(Re&&Ae/Re))],[R(we[0]-(Le&&Te/Le)),q(we[1]-(Le&&Ae/Le))]]}k.textPointStyle=function(ce,we,K){if(ce.size()){var ne;if(we.selectedpoints){var de=k.makeSelectedTextStyleFns(we);ne=de.selectedTextColorFn}var _e=we.texttemplate,ue=K._fullLayout;ce.each(function(pe){var xe=s.select(this),ye=_e?u.extractOption(pe,we,"txt","texttemplate"):u.extractOption(pe,we,"tx","text");if(ye||ye===0){if(_e){var Te=we._module.formatLabels,Ae=Te?Te(pe,we,ue):{},Re={};T(Re,we,pe.i);var Le=we._meta||{};ye=u.texttemplateString(ye,Ae,ue._d3locale,Re,pe,Le)}var $e=pe.tp||we.textposition,Fe=B(pe,we),Be=ne?ne(pe):pe.tc||we.textfont.color;xe.call(k.font,pe.tf||we.textfont.family,Fe,Be).text(ye).call(v.convertToTspans,K).call(z,$e,Fe,pe.mrc)}else xe.remove()})}},k.selectedTextStyle=function(ce,we){if(ce.size()&&we.selectedpoints){var K=k.makeSelectedTextStyleFns(we);ce.each(function(ne){var de=s.select(this),_e=K.selectedTextColorFn(ne),ue=ne.tp||we.textposition,pe=B(ne,we);m.fill(de,_e);var xe=p.traceIs(we,"bar-like");z(de,ue,pe,ne.mrc2||ne.mrc,xe)})}},k.smoothopen=function(ce,we){if(ce.length<3)return"M"+ce.join("L");var K,ne="M"+ce[0],de=[];for(K=1;K=xe||ot>=Te&&ot<=xe)&&(st<=Ae&&st>=ye||st>=Ae&&st<=ye)&&(ce=[ot,st])}return ce}k.steps=function(ce){var we=L[ce]||W;return function(K){for(var ne="M"+R(K[0][0])+","+q(K[0][1]),de=K.length,_e=1;_e=1e4&&(k.savedBBoxes={},V=0),K&&(k.savedBBoxes[K]=Le),V++,u.extendFlat({},Le)},k.setClipUrl=function(ce,we,K){ce.attr("clip-path",ee(we,K))},k.getTranslate=function(ce){var we=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(K,ne,de){return[ne,de].join(" ")}).split(" ");return{x:+we[0]||0,y:+we[1]||0}},k.setTranslate=function(ce,we,K){var ne=ce.attr?"attr":"getAttribute",de=ce.attr?"attr":"setAttribute",_e=ce[ne]("transform")||"";return we=we||0,K=K||0,_e=_e.replace(/(\btranslate\(.*?\);?)/,"").trim(),_e=(_e+=b(we,K)).trim(),ce[de]("transform",_e),_e},k.getScale=function(ce){var we=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(K,ne,de){return[ne,de].join(" ")}).split(" ");return{x:+we[0]||1,y:+we[1]||1}},k.setScale=function(ce,we,K){var ne=ce.attr?"attr":"getAttribute",de=ce.attr?"attr":"setAttribute",_e=ce[ne]("transform")||"";return we=we||1,K=K||1,_e=_e.replace(/(\bscale\(.*?\);?)/,"").trim(),_e=(_e+="scale("+we+","+K+")").trim(),ce[de]("transform",_e),_e};var H=/\s*sc.*/;k.setPointGroupScale=function(ce,we,K){if(we=we||1,K=K||1,ce){var ne=we===1&&K===1?"":"scale("+we+","+K+")";ce.each(function(){var de=(this.getAttribute("transform")||"").replace(H,"");de=(de+=ne).trim(),this.setAttribute("transform",de)})}};var Z=/translate\([^)]*\)\s*$/;function G(ce,we){var K;return ce&&(K=ce.mf),K===void 0&&(K=we.marker&&we.marker.standoff||0),we._geo||we._xA?K:-K}k.setTextPointsScale=function(ce,we,K){ce&&ce.each(function(){var ne,de=s.select(this),_e=de.select("text");if(_e.node()){var ue=parseFloat(_e.attr("x")||0),pe=parseFloat(_e.attr("y")||0),xe=(de.attr("transform")||"").match(Z);ne=we===1&&K===1?[]:[b(ue,pe),"scale("+we+","+K+")",b(-ue,-pe)],xe&&ne.push(xe),de.attr("transform",ne.join(""))}})},k.getMarkerStandoff=G;var X,Q,re,ae,ie,se,he=Math.atan2,Se=Math.cos,Oe=Math.sin;function Pe(ce,we){var K=we[0],ne=we[1];return[K*Se(ce)-ne*Oe(ce),K*Oe(ce)+ne*Se(ce)]}function Me(ce,we){var K,ne,de=ce.ma;de===void 0&&(de=we.marker.angle||0);var _e=we.marker.angleref;if(_e==="previous"||_e==="north"){if(we._geo){var ue=we._geo.project(ce.lonlat);K=ue[0],ne=ue[1]}else{var pe=we._xA,xe=we._yA;if(!pe||!xe)return 90;K=pe.c2p(ce.x),ne=xe.c2p(ce.y)}if(we._geo){var ye,Te=ce.lonlat[0],Ae=ce.lonlat[1],Re=we._geo.project([Te,Ae+1e-5]),Le=we._geo.project([Te+1e-5,Ae]),$e=he(Le[1]-ne,Le[0]-K),Fe=he(Re[1]-ne,Re[0]-K);if(_e==="north")ye=de/180*Math.PI;else if(_e==="previous"){var Be=Te/180*Math.PI,Ue=Ae/180*Math.PI,qe=X/180*Math.PI,Xe=Q/180*Math.PI,ot=qe-Be,st=Se(Xe)*Oe(ot),dt=Oe(Xe)*Se(Ue)-Se(Xe)*Oe(Ue)*Se(ot);ye=-he(st,dt)-Math.PI,X=Te,Q=Ae}var vt=Pe($e,[Se(ye),0]),We=Pe(Fe,[Oe(ye),0]);de=he(vt[1]+We[1],vt[0]+We[0])/Math.PI*180,_e!=="previous"||se===we.uid&&ce.i===ie+1||(de=null)}if(_e==="previous"&&!we._geo)if(se===we.uid&&ce.i===ie+1&&d(K)&&d(ne)){var ze=K-re,tt=ne-ae,it=we.line&&we.line.shape||"",St=it.slice(it.length-1);St==="h"&&(tt=0),St==="v"&&(ze=0),de+=he(tt,ze)/Math.PI*180+90}else de=null}return re=K,ae=ne,ie=ce.i,se=we.uid,de}k.getMarkerAngle=Me},90998:function(i,o,a){var s,u,c,d,f=a(95616),p=a(39898).round,m="M0,0Z",g=Math.sqrt(2),b=Math.sqrt(3),v=Math.PI,h=Math.cos,y=Math.sin;function w(x){return x===null}function _(x,T,k){if(!(x&&x%360!=0||T))return k;if(c===x&&d===T&&s===k)return u;function S(N,R){var q=h(N),Y=y(N),L=R[0],W=R[1]+(T||0);return[L*q-W*Y,L*Y+W*q]}c=x,d=T,s=k;for(var C=x/180*v,M=0,O=0,D=f(k),P="",E=0;E0,y=f._context.staticPlot;p.each(function(w){var _,x=w[0].trace,T=x.error_x||{},k=x.error_y||{};x.ids&&(_=function(O){return O.id});var S=d.hasMarkers(x)&&x.marker.maxdisplayed>0;k.visible||T.visible||(w=[]);var C=s.select(this).selectAll("g.errorbar").data(w,_);if(C.exit().remove(),w.length){T.visible||C.selectAll("path.xerror").remove(),k.visible||C.selectAll("path.yerror").remove(),C.style("opacity",1);var M=C.enter().append("g").classed("errorbar",!0);h&&M.style("opacity",0).transition().duration(g.duration).style("opacity",1),c.setClipUrl(C,m.layerClipId,f),C.each(function(O){var D=s.select(this),P=function(z,B,N){var R={x:B.c2p(z.x),y:N.c2p(z.y)};return z.yh!==void 0&&(R.yh=N.c2p(z.yh),R.ys=N.c2p(z.ys),u(R.ys)||(R.noYS=!0,R.ys=N.c2p(z.ys,!0))),z.xh!==void 0&&(R.xh=B.c2p(z.xh),R.xs=B.c2p(z.xs),u(R.xs)||(R.noXS=!0,R.xs=B.c2p(z.xs,!0))),R}(O,b,v);if(!S||O.vis){var E,I=D.select("path.yerror");if(k.visible&&u(P.x)&&u(P.yh)&&u(P.ys)){var A=k.width;E="M"+(P.x-A)+","+P.yh+"h"+2*A+"m-"+A+",0V"+P.ys,P.noYS||(E+="m-"+A+",0h"+2*A),I.size()?h&&(I=I.transition().duration(g.duration).ease(g.easing)):I=D.append("path").style("vector-effect",y?"none":"non-scaling-stroke").classed("yerror",!0),I.attr("d",E)}else I.remove();var F=D.select("path.xerror");if(T.visible&&u(P.y)&&u(P.xh)&&u(P.xs)){var j=(T.copy_ystyle?k:T).width;E="M"+P.xh+","+(P.y-j)+"v"+2*j+"m0,-"+j+"H"+P.xs,P.noXS||(E+="m0,-"+j+"v"+2*j),F.size()?h&&(F=F.transition().duration(g.duration).ease(g.easing)):F=D.append("path").style("vector-effect",y?"none":"non-scaling-stroke").classed("xerror",!0),F.attr("d",E)}else F.remove()}})}})}},62662:function(i,o,a){var s=a(39898),u=a(7901);i.exports=function(c){c.each(function(d){var f=d[0].trace,p=f.error_y||{},m=f.error_x||{},g=s.select(this);g.selectAll("path.yerror").style("stroke-width",p.thickness+"px").call(u.stroke,p.color),m.copy_ystyle&&(m=p),g.selectAll("path.xerror").style("stroke-width",m.thickness+"px").call(u.stroke,m.color)})}},77914:function(i,o,a){var s=a(41940),u=a(528).hoverlabel,c=a(1426).extendFlat;i.exports={hoverlabel:{bgcolor:c({},u.bgcolor,{arrayOk:!0}),bordercolor:c({},u.bordercolor,{arrayOk:!0}),font:s({arrayOk:!0,editType:"none"}),align:c({},u.align,{arrayOk:!0}),namelength:c({},u.namelength,{arrayOk:!0}),editType:"none"}}},30732:function(i,o,a){var s=a(71828),u=a(73972);function c(d,f,p,m){m=m||s.identity,Array.isArray(d)&&(f[0][p]=m(d))}i.exports=function(d){var f=d.calcdata,p=d._fullLayout;function m(y){return function(w){return s.coerceHoverinfo({hoverinfo:w},{_module:y._module},p)}}for(var g=0;g=0&&b.indexde[0]._length||ht<0||ht>_e[0]._length)return y.unhoverRaw(ae,ie)}else ut="xpx"in ie?ie.xpx:de[0]._length/2,ht="ypx"in ie?ie.ypx:_e[0]._length/2;if(ie.pointerX=ut+de[0]._offset,ie.pointerY=ht+_e[0]._offset,Le="xval"in ie?x.flat(Oe,ie.xval):x.p2c(de,ut),$e="yval"in ie?x.flat(Oe,ie.yval):x.p2c(_e,ht),!u(Le[0])||!u($e[0]))return d.warn("Fx.hover failed",ie,ae),y.unhoverRaw(ae,ie)}var Wt=1/0;function _t(en,kn){for(Be=0;Beze&&(tt.splice(0,ze),Wt=tt[0].distance),we&&Re!==0&&tt.length===0){We.distance=Re,We.index=!1;var Bn=qe._module.hoverPoints(We,dt,vt,"closest",{hoverLayer:Pe._hoverlayer});if(Bn&&(Bn=Bn.filter(function(Tr){return Tr.spikeDistance<=Re})),Bn&&Bn.length){var En,Wn=Bn.filter(function(Tr){return Tr.xa.showspikes&&Tr.xa.spikesnap!=="hovered data"});if(Wn.length){var gr=Wn[0];u(gr.x0)&&u(gr.y0)&&(En=Ce(gr),(!St.vLinePoint||St.vLinePoint.spikeDistance>En.spikeDistance)&&(St.vLinePoint=En))}var Va=Bn.filter(function(Tr){return Tr.ya.showspikes&&Tr.ya.spikesnap!=="hovered data"});if(Va.length){var ro=Va[0];u(ro.x0)&&u(ro.y0)&&(En=Ce(ro),(!St.hLinePoint||St.hLinePoint.spikeDistance>En.spikeDistance)&&(St.hLinePoint=En))}}}}}function be(en,kn,un){for(var tn,Fn=null,Rn=1/0,Bn=0;Bn0&&Math.abs(en.distance)Ft-1;Yt--)gt(tt[Yt]);tt=Mt,et()}var mt=ae._hoverdata,xt=[],Ut=te(ae),It=ee(ae);for(Fe=0;Fe1||tt.length>1)||Te==="closest"&&Ze&&tt.length>1,xn=h.combine(Pe.plot_bgcolor||h.background,Pe.paper_bgcolor),mn=B(tt,{gd:ae,hovermode:Te,rotateLabels:sn,bgColor:xn,container:Pe._hoverlayer,outerContainer:Pe._paper.node(),commonLabelOpts:Pe.hoverlabel,hoverdistance:Pe.hoverdistance}),dn=mn.hoverLabels;if(x.isUnifiedHover(Te)||(function(en,kn,un,tn){var Fn,Rn,Bn,En,Wn,gr,Va,ro=kn?"xa":"ya",Tr=kn?"ya":"xa",Ki=0,Jr=1,Cr=en.size(),Gr=new Array(Cr),Ga=0,jn=tn.minX,fn=tn.maxX,Xn=tn.minY,ea=tn.maxY,Un=function(Ln){return Ln*un._invScaleX},Kn=function(Ln){return Ln*un._invScaleY};function Yn(Ln){var ta=Ln[0],Wo=Ln[Ln.length-1];if(Rn=ta.pmin-ta.pos-ta.dp+ta.size,Bn=Wo.pos+Wo.dp+Wo.size-ta.pmax,Rn>.01){for(Wn=Ln.length-1;Wn>=0;Wn--)Ln[Wn].dp+=Rn;Fn=!1}if(!(Bn<.01)){if(Rn<-.01){for(Wn=Ln.length-1;Wn>=0;Wn--)Ln[Wn].dp-=Bn;Fn=!1}if(Fn){var va=0;for(En=0;Enta.pmax&&va++;for(En=Ln.length-1;En>=0&&!(va<=0);En--)(gr=Ln[En]).pos>ta.pmax-1&&(gr.del=!0,va--);for(En=0;En=0;Wn--)Ln[Wn].dp-=Bn;for(En=Ln.length-1;En>=0&&!(va<=0);En--)(gr=Ln[En]).pos+gr.dp+gr.size>ta.pmax&&(gr.del=!0,va--)}}}for(en.each(function(Ln){var ta=Ln[ro],Wo=Ln[Tr],va=ta._id.charAt(0)==="x",hs=ta.range;Ga===0&&hs&&hs[0]>hs[1]!==va&&(Jr=-1);var ms=0,Ml=va?un.width:un.height;if(un.hovermode==="x"||un.hovermode==="y"){var Zi,Di,Pl=R(Ln,kn),Lf=Ln.anchor,Pc=Lf==="end"?-1:1;if(Lf==="middle")Di=(Zi=Ln.crossPos+(va?Kn(Pl.y-Ln.by/2):Un(Ln.bx/2+Ln.tx2width/2)))+(va?Kn(Ln.by):Un(Ln.bx));else if(va)Di=(Zi=Ln.crossPos+Kn(E+Pl.y)-Kn(Ln.by/2-E))+Kn(Ln.by);else{var If=Un(Pc*E+Pl.x),su=If+Un(Pc*Ln.bx);Zi=Ln.crossPos+Math.min(If,su),Di=Ln.crossPos+Math.max(If,su)}va?Xn!==void 0&&ea!==void 0&&Math.min(Di,ea)-Math.max(Zi,Xn)>1&&(Wo.side==="left"?(ms=Wo._mainLinePosition,Ml=un.width):Ml=Wo._mainLinePosition):jn!==void 0&&fn!==void 0&&Math.min(Di,fn)-Math.max(Zi,jn)>1&&(Wo.side==="top"?(ms=Wo._mainLinePosition,Ml=un.height):Ml=Wo._mainLinePosition)}Gr[Ga++]=[{datum:Ln,traceIndex:Ln.trace.index,dp:0,pos:Ln.pos,posref:Ln.posref,size:Ln.by*(va?O:1)/2,pmin:ms,pmax:Ml}]}),Gr.sort(function(Ln,ta){return Ln[0].posref-ta[0].posref||Jr*(ta[0].traceIndex-Ln[0].traceIndex)});!Fn&&Ki<=Cr;){for(Ki++,Fn=!0,En=0;En.01&&Wr.pmin===Yr.pmin&&Wr.pmax===Yr.pmax){for(Wn=la.length-1;Wn>=0;Wn--)la[Wn].dp+=Rn;for(er.push.apply(er,la),Gr.splice(En+1,1),Va=0,Wn=er.length-1;Wn>=0;Wn--)Va+=er[Wn].dp;for(Bn=Va/er.length,Wn=er.length-1;Wn>=0;Wn--)er[Wn].dp-=Bn;Fn=!1}else En++}Gr.forEach(Yn)}for(En=Gr.length-1;En>=0;En--){var ii=Gr[En];for(Wn=ii.length-1;Wn>=0;Wn--){var ko=ii[Wn],Ya=ko.datum;Ya.offset=ko.dp,Ya.del=ko.del}}}(dn,sn,Pe,mn.commonLabelBoundingBox),q(dn,sn,Pe._invScaleX,Pe._invScaleY)),Se&&Se.tagName){var gn=_.getComponentMethod("annotations","hasClickToShow")(ae,xt);b(s.select(Se),gn?"pointer":"")}Se&&!he&&function(en,kn,un){if(!un||un.length!==en._hoverdata.length)return!0;for(var tn=un.length-1;tn>=0;tn--){var Fn=un[tn],Rn=en._hoverdata[tn];if(Fn.curveNumber!==Rn.curveNumber||String(Fn.pointNumber)!==String(Rn.pointNumber)||String(Fn.pointNumbers)!==String(Rn.pointNumbers))return!0}return!1}(ae,0,mt)&&(mt&&ae.emit("plotly_unhover",{event:ie,points:mt}),ae.emit("plotly_hover",{event:ie,points:ae._hoverdata,xaxes:de,yaxes:_e,xvals:Le,yvals:$e}))})(Z,G,X,Q,re)})},o.loneHover=function(Z,G){var X=!0;Array.isArray(Z)||(X=!1,Z=[Z]);var Q=G.gd,re=te(Q),ae=ee(Q),ie=B(Z.map(function(Se){var Oe=Se._x0||Se.x0||Se.x||0,Pe=Se._x1||Se.x1||Se.x||0,Me=Se._y0||Se.y0||Se.y||0,ce=Se._y1||Se.y1||Se.y||0,we=Se.eventData;if(we){var K=Math.min(Oe,Pe),ne=Math.max(Oe,Pe),de=Math.min(Me,ce),_e=Math.max(Me,ce),ue=Se.trace;if(_.traceIs(ue,"gl3d")){var pe=Q._fullLayout[ue.scene]._scene.container,xe=pe.offsetLeft,ye=pe.offsetTop;K+=xe,ne+=xe,de+=ye,_e+=ye}we.bbox={x0:K+ae,x1:ne+ae,y0:de+re,y1:_e+re},G.inOut_bbox&&G.inOut_bbox.push(we.bbox)}else we=!1;return{color:Se.color||h.defaultLine,x0:Se.x0||Se.x||0,x1:Se.x1||Se.x||0,y0:Se.y0||Se.y||0,y1:Se.y1||Se.y||0,xLabel:Se.xLabel,yLabel:Se.yLabel,zLabel:Se.zLabel,text:Se.text,name:Se.name,idealAlign:Se.idealAlign,borderColor:Se.borderColor,fontFamily:Se.fontFamily,fontSize:Se.fontSize,fontColor:Se.fontColor,nameLength:Se.nameLength,textAlign:Se.textAlign,trace:Se.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:Se.hovertemplate||!1,hovertemplateLabels:Se.hovertemplateLabels||!1,eventData:we}}),{gd:Q,hovermode:"closest",rotateLabels:!1,bgColor:G.bgColor||h.background,container:s.select(G.container),outerContainer:G.outerContainer||G.container}).hoverLabels,se=0,he=0;return ie.sort(function(Se,Oe){return Se.y0-Oe.y0}).each(function(Se,Oe){var Pe=Se.y0-Se.by/2;Se.offset=Pe-5([\s\S]*)<\/extra>/;function B(Z,G){var X=G.gd,Q=X._fullLayout,re=G.hovermode,ae=G.rotateLabels,ie=G.bgColor,se=G.container,he=G.outerContainer,Se=G.commonLabelOpts||{};if(Z.length===0)return[[]];var Oe=G.fontFamily||T.HOVERFONT,Pe=G.fontSize||T.HOVERFONTSIZE,Me=Z[0],ce=Me.xa,we=Me.ya,K=re.charAt(0),ne=K+"Label",de=Me[ne];if(de===void 0&&ce.type==="multicategory")for(var _e=0;_eQ.width-zt?(mt=Q.width-zt,Ft.attr("d","M"+(zt-E)+",0L"+zt+","+It+E+"v"+It+(2*I+Ut.height)+"H-"+zt+"V"+It+E+"H"+(zt-2*E)+"Z")):Ft.attr("d","M0,0L"+E+","+It+E+"H"+zt+"v"+It+(2*I+Ut.height)+"H-"+zt+"V"+It+E+"H-"+E+"Z"),Be.minX=mt-zt,Be.maxX=mt+zt,ce.side==="top"?(Be.minY=xt-(2*I+Ut.height),Be.maxY=xt-I):(Be.minY=xt+I,Be.maxY=xt+(2*I+Ut.height))}else{var kt,Ot,At;we.side==="right"?(kt="start",Ot=1,At="",mt=ce._offset+ce._length):(kt="end",Ot=-1,At="-",mt=ce._offset),xt=we._offset+(Me.y0+Me.y1)/2,Yt.attr("text-anchor",kt),Ft.attr("d","M0,0L"+At+E+","+E+"V"+(I+Ut.height/2)+"h"+At+(2*I+Ut.width)+"V-"+(I+Ut.height/2)+"H"+At+E+"V-"+E+"Z"),Be.minY=xt-(I+Ut.height/2),Be.maxY=xt+(I+Ut.height/2),we.side==="right"?(Be.minX=mt+E,Be.maxX=mt+E+(2*I+Ut.width)):(Be.minX=mt-E-(2*I+Ut.width),Be.maxX=mt-E);var Nt,$t=Ut.height/2,Bt=pe-Ut.top-$t,Xt="clip"+Q._uid+"commonlabel"+we._id;if(mt=0?ht:Rt+_t=0?Rt:nt+_t=0?Ze:ut+be=0?ut:ct+be=0,rt.idealAlign!=="top"&&sn||!xn?sn?($t+=Xt/2,rt.anchor="start"):rt.anchor="middle":($t-=Xt/2,rt.anchor="end"),rt.crossPos=$t;else{if(rt.pos=$t,sn=Nt+Bt/2+mn<=xe,xn=Nt-Bt/2-mn>=0,rt.idealAlign!=="left"&&sn||!xn)if(sn)Nt+=Bt/2,rt.anchor="start";else{rt.anchor="middle";var dn=mn/2,gn=Nt+dn-xe,en=Nt-dn;gn>0&&(Nt-=gn),en<0&&(Nt+=-en)}else Nt-=Bt/2,rt.anchor="end";rt.crossPos=Nt}It.attr("text-anchor",rt.anchor),kt&&zt.attr("text-anchor",rt.anchor),Ft.attr("transform",f(Nt,$t)+(ae?p(C):""))}),{hoverLabels:yt,commonLabelBoundingBox:Be}}function N(Z,G,X,Q,re,ae){var ie="",se="";Z.nameOverride!==void 0&&(Z.name=Z.nameOverride),Z.name&&(Z.trace._meta&&(Z.name=d.templateString(Z.name,Z.trace._meta)),ie=U(Z.name,Z.nameLength));var he=X.charAt(0),Se=he==="x"?"y":"x";Z.zLabel!==void 0?(Z.xLabel!==void 0&&(se+="x: "+Z.xLabel+"
"),Z.yLabel!==void 0&&(se+="y: "+Z.yLabel+"
"),Z.trace.type!=="choropleth"&&Z.trace.type!=="choroplethmapbox"&&(se+=(se?"z: ":"")+Z.zLabel)):G&&Z[he+"Label"]===re?se=Z[Se+"Label"]||"":Z.xLabel===void 0?Z.yLabel!==void 0&&Z.trace.type!=="scattercarpet"&&(se=Z.yLabel):se=Z.yLabel===void 0?Z.xLabel:"("+Z.xLabel+", "+Z.yLabel+")",!Z.text&&Z.text!==0||Array.isArray(Z.text)||(se+=(se?"
":"")+Z.text),Z.extraText!==void 0&&(se+=(se?"
":"")+Z.extraText),ae&&se===""&&!Z.hovertemplate&&(ie===""&&ae.remove(),se=ie);var Oe=Z.hovertemplate||!1;if(Oe){var Pe=Z.hovertemplateLabels||Z;Z[he+"Label"]!==re&&(Pe[he+"other"]=Pe[he+"Val"],Pe[he+"otherLabel"]=Pe[he+"Label"]),se=(se=d.hovertemplateString(Oe,Pe,Q._d3locale,Z.eventData[0]||{},Z.trace._meta)).replace(z,function(Me,ce){return ie=U(ce,Z.nameLength),""})}return[se,ie]}function R(Z,G){var X=0,Q=Z.offset;return G&&(Q*=-P,X=Z.offset*D),{x:X,y:Q}}function q(Z,G,X,Q){var re=function(ie){return ie*X},ae=function(ie){return ie*Q};Z.each(function(ie){var se=s.select(this);if(ie.del)return se.remove();var he,Se,Oe,Pe,Me=se.select("text.nums"),ce=ie.anchor,we=ce==="end"?-1:1,K=(Pe=(Oe=(Se={start:1,end:-1,middle:0}[(he=ie).anchor])*(E+I))+Se*(he.txwidth+I),he.anchor==="middle"&&(Oe-=he.tx2width/2,Pe+=he.txwidth/2+I),{alignShift:Se,textShiftX:Oe,text2ShiftX:Pe}),ne=R(ie,G),de=ne.x,_e=ne.y,ue=ce==="middle";se.select("path").attr("d",ue?"M-"+re(ie.bx/2+ie.tx2width/2)+","+ae(_e-ie.by/2)+"h"+re(ie.bx)+"v"+ae(ie.by)+"h-"+re(ie.bx)+"Z":"M0,0L"+re(we*E+de)+","+ae(E+_e)+"v"+ae(ie.by/2-E)+"h"+re(we*ie.bx)+"v-"+ae(ie.by)+"H"+re(we*E+de)+"V"+ae(_e-E)+"Z");var pe=de+K.textShiftX,xe=_e+ie.ty0-ie.by/2+I,ye=ie.textAlign||"auto";ye!=="auto"&&(ye==="left"&&ce!=="start"?(Me.attr("text-anchor","start"),pe=ue?-ie.bx/2-ie.tx2width/2+I:-ie.bx-I):ye==="right"&&ce!=="end"&&(Me.attr("text-anchor","end"),pe=ue?ie.bx/2-ie.tx2width/2-I:ie.bx+I)),Me.call(g.positionText,re(pe),ae(xe)),ie.tx2width&&(se.select("text.name").call(g.positionText,re(K.text2ShiftX+K.alignShift*I+de),ae(_e+ie.ty0-ie.by/2+I)),se.select("rect").call(v.setRect,re(K.text2ShiftX+(K.alignShift-1)*ie.tx2width/2+de),ae(_e-ie.by/2-1),re(ie.tx2width),ae(ie.by+2)))})}function Y(Z,G){var X=Z.index,Q=Z.trace||{},re=Z.cd[0],ae=Z.cd[X]||{};function ie(Me){return Me||u(Me)&&Me===0}var se=Array.isArray(X)?function(Me,ce){var we=d.castOption(re,X,Me);return ie(we)?we:d.extractOption({},Q,"",ce)}:function(Me,ce){return d.extractOption(ae,Q,Me,ce)};function he(Me,ce,we){var K=se(ce,we);ie(K)&&(Z[Me]=K)}if(he("hoverinfo","hi","hoverinfo"),he("bgcolor","hbg","hoverlabel.bgcolor"),he("borderColor","hbc","hoverlabel.bordercolor"),he("fontFamily","htf","hoverlabel.font.family"),he("fontSize","hts","hoverlabel.font.size"),he("fontColor","htc","hoverlabel.font.color"),he("nameLength","hnl","hoverlabel.namelength"),he("textAlign","hta","hoverlabel.align"),Z.posref=G==="y"||G==="closest"&&Q.orientation==="h"?Z.xa._offset+(Z.x0+Z.x1)/2:Z.ya._offset+(Z.y0+Z.y1)/2,Z.x0=d.constrain(Z.x0,0,Z.xa._length),Z.x1=d.constrain(Z.x1,0,Z.xa._length),Z.y0=d.constrain(Z.y0,0,Z.ya._length),Z.y1=d.constrain(Z.y1,0,Z.ya._length),Z.xLabelVal!==void 0&&(Z.xLabel="xLabel"in Z?Z.xLabel:w.hoverLabelText(Z.xa,Z.xLabelVal,Q.xhoverformat),Z.xVal=Z.xa.c2d(Z.xLabelVal)),Z.yLabelVal!==void 0&&(Z.yLabel="yLabel"in Z?Z.yLabel:w.hoverLabelText(Z.ya,Z.yLabelVal,Q.yhoverformat),Z.yVal=Z.ya.c2d(Z.yLabelVal)),Z.zLabelVal!==void 0&&Z.zLabel===void 0&&(Z.zLabel=String(Z.zLabelVal)),!(isNaN(Z.xerr)||Z.xa.type==="log"&&Z.xerr<=0)){var Se=w.tickText(Z.xa,Z.xa.c2l(Z.xerr),"hover").text;Z.xerrneg!==void 0?Z.xLabel+=" +"+Se+" / -"+w.tickText(Z.xa,Z.xa.c2l(Z.xerrneg),"hover").text:Z.xLabel+=" ± "+Se,G==="x"&&(Z.distance+=1)}if(!(isNaN(Z.yerr)||Z.ya.type==="log"&&Z.yerr<=0)){var Oe=w.tickText(Z.ya,Z.ya.c2l(Z.yerr),"hover").text;Z.yerrneg!==void 0?Z.yLabel+=" +"+Oe+" / -"+w.tickText(Z.ya,Z.ya.c2l(Z.yerrneg),"hover").text:Z.yLabel+=" ± "+Oe,G==="y"&&(Z.distance+=1)}var Pe=Z.hoverinfo||Z.trace.hoverinfo;return Pe&&Pe!=="all"&&((Pe=Array.isArray(Pe)?Pe:Pe.split("+")).indexOf("x")===-1&&(Z.xLabel=void 0),Pe.indexOf("y")===-1&&(Z.yLabel=void 0),Pe.indexOf("z")===-1&&(Z.zLabel=void 0),Pe.indexOf("text")===-1&&(Z.text=void 0),Pe.indexOf("name")===-1&&(Z.name=void 0)),Z}function L(Z,G,X){var Q,re,ae=X.container,ie=X.fullLayout,se=ie._size,he=X.event,Se=!!G.hLinePoint,Oe=!!G.vLinePoint;if(ae.selectAll(".spikeline").remove(),Oe||Se){var Pe=h.combine(ie.plot_bgcolor,ie.paper_bgcolor);if(Se){var Me,ce,we=G.hLinePoint;Q=we&&we.xa,(re=we&&we.ya).spikesnap==="cursor"?(Me=he.pointerX,ce=he.pointerY):(Me=Q._offset+we.x,ce=re._offset+we.y);var K,ne,de=c.readability(we.color,Pe)<1.5?h.contrast(Pe):we.color,_e=re.spikemode,ue=re.spikethickness,pe=re.spikecolor||de,xe=w.getPxPosition(Z,re);if(_e.indexOf("toaxis")!==-1||_e.indexOf("across")!==-1){if(_e.indexOf("toaxis")!==-1&&(K=xe,ne=Me),_e.indexOf("across")!==-1){var ye=re._counterDomainMin,Te=re._counterDomainMax;re.anchor==="free"&&(ye=Math.min(ye,re.position),Te=Math.max(Te,re.position)),K=se.l+ye*se.w,ne=se.l+Te*se.w}ae.insert("line",":first-child").attr({x1:K,x2:ne,y1:ce,y2:ce,"stroke-width":ue,stroke:pe,"stroke-dasharray":v.dashStyle(re.spikedash,ue)}).classed("spikeline",!0).classed("crisp",!0),ae.insert("line",":first-child").attr({x1:K,x2:ne,y1:ce,y2:ce,"stroke-width":ue+2,stroke:Pe}).classed("spikeline",!0).classed("crisp",!0)}_e.indexOf("marker")!==-1&&ae.insert("circle",":first-child").attr({cx:xe+(re.side!=="right"?ue:-ue),cy:ce,r:ue,fill:pe}).classed("spikeline",!0)}if(Oe){var Ae,Re,Le=G.vLinePoint;Q=Le&&Le.xa,re=Le&&Le.ya,Q.spikesnap==="cursor"?(Ae=he.pointerX,Re=he.pointerY):(Ae=Q._offset+Le.x,Re=re._offset+Le.y);var $e,Fe,Be=c.readability(Le.color,Pe)<1.5?h.contrast(Pe):Le.color,Ue=Q.spikemode,qe=Q.spikethickness,Xe=Q.spikecolor||Be,ot=w.getPxPosition(Z,Q);if(Ue.indexOf("toaxis")!==-1||Ue.indexOf("across")!==-1){if(Ue.indexOf("toaxis")!==-1&&($e=ot,Fe=Re),Ue.indexOf("across")!==-1){var st=Q._counterDomainMin,dt=Q._counterDomainMax;Q.anchor==="free"&&(st=Math.min(st,Q.position),dt=Math.max(dt,Q.position)),$e=se.t+(1-dt)*se.h,Fe=se.t+(1-st)*se.h}ae.insert("line",":first-child").attr({x1:Ae,x2:Ae,y1:$e,y2:Fe,"stroke-width":qe,stroke:Xe,"stroke-dasharray":v.dashStyle(Q.spikedash,qe)}).classed("spikeline",!0).classed("crisp",!0),ae.insert("line",":first-child").attr({x1:Ae,x2:Ae,y1:$e,y2:Fe,"stroke-width":qe+2,stroke:Pe}).classed("spikeline",!0).classed("crisp",!0)}Ue.indexOf("marker")!==-1&&ae.insert("circle",":first-child").attr({cx:Ae,cy:ot-(Q.side!=="top"?qe:-qe),r:qe,fill:Xe}).classed("spikeline",!0)}}}function W(Z,G){return!G}function U(Z,G){return g.plainText(Z||"",{len:G,allowedTags:["br","sub","sup","b","i","em"]})}function V(Z,G,X){var Q=G[Z+"a"],re=G[Z+"Val"],ae=G.cd[0];if(Q.type==="category"||Q.type==="multicategory")re=Q._categoriesMap[re];else if(Q.type==="date"){var ie=G.trace[Z+"periodalignment"];if(ie){var se=G.cd[G.index],he=se[Z+"Start"];he===void 0&&(he=se[Z]);var Se=se[Z+"End"];Se===void 0&&(Se=se[Z]);var Oe=Se-he;ie==="end"?re+=Oe:ie==="middle"&&(re+=Oe/2)}re=Q.d2c(re)}return ae&&ae.t&&ae.t.posLetter===Q._id&&(X.boxmode!=="group"&&X.violinmode!=="group"||(re+=ae.t.dPos)),re}function te(Z){return Z.offsetTop+Z.clientTop}function ee(Z){return Z.offsetLeft+Z.clientLeft}function H(Z,G){var X=Z._fullLayout,Q=G.getBoundingClientRect(),re=Q.left,ae=Q.top,ie=re+Q.width,se=ae+Q.height,he=d.apply3DTransform(X._invTransform)(re,ae),Se=d.apply3DTransform(X._invTransform)(ie,se),Oe=he[0],Pe=he[1],Me=Se[0],ce=Se[1];return{x:Oe,y:Pe,width:Me-Oe,height:ce-Pe,top:Math.min(Pe,ce),left:Math.min(Oe,Me),right:Math.max(Oe,Me),bottom:Math.max(Pe,ce)}}},38048:function(i,o,a){var s=a(71828),u=a(7901),c=a(23469).isUnifiedHover;i.exports=function(d,f,p,m){m=m||{};var g=f.legend;function b(v){m.font[v]||(m.font[v]=g?f.legend.font[v]:f.font[v])}f&&c(f.hovermode)&&(m.font||(m.font={}),b("size"),b("family"),b("color"),g?(m.bgcolor||(m.bgcolor=u.combine(f.legend.bgcolor,f.paper_bgcolor)),m.bordercolor||(m.bordercolor=f.legend.bordercolor)):m.bgcolor||(m.bgcolor=f.paper_bgcolor)),p("hoverlabel.bgcolor",m.bgcolor),p("hoverlabel.bordercolor",m.bordercolor),p("hoverlabel.namelength",m.namelength),s.coerceFont(p,"hoverlabel.font",m.font),p("hoverlabel.align",m.align)}},98212:function(i,o,a){var s=a(71828),u=a(528);i.exports=function(c,d){function f(p,m){return d[p]!==void 0?d[p]:s.coerce(c,d,u,p,m)}return f("clickmode"),f("hovermode")}},30211:function(i,o,a){var s=a(39898),u=a(71828),c=a(28569),d=a(23469),f=a(528),p=a(88335);i.exports={moduleType:"component",name:"fx",constants:a(26675),schema:{layout:f},attributes:a(77914),layoutAttributes:f,supplyLayoutGlobalDefaults:a(22774),supplyDefaults:a(54268),supplyLayoutDefaults:a(34938),calc:a(30732),getDistanceFunction:d.getDistanceFunction,getClosest:d.getClosest,inbox:d.inbox,quadrature:d.quadrature,appendArrayPointValue:d.appendArrayPointValue,castHoverOption:function(m,g,b){return u.castOption(m,g,"hoverlabel."+b)},castHoverinfo:function(m,g,b){return u.castOption(m,b,"hoverinfo",function(v){return u.coerceHoverinfo({hoverinfo:v},{_module:m._module},g)})},hover:p.hover,unhover:c.unhover,loneHover:p.loneHover,loneUnhover:function(m){var g=u.isD3Selection(m)?m:s.select(m);g.selectAll("g.hovertext").remove(),g.selectAll(".spikeline").remove()},click:a(75914)}},528:function(i,o,a){var s=a(26675),u=a(41940),c=u({editType:"none"});c.family.dflt=s.HOVERFONT,c.size.dflt=s.HOVERFONTSIZE,i.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:c,grouptitlefont:u({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},34938:function(i,o,a){var s=a(71828),u=a(528),c=a(98212),d=a(38048);i.exports=function(f,p){function m(h,y){return s.coerce(f,p,u,h,y)}c(f,p)&&(m("hoverdistance"),m("spikedistance")),m("dragmode")==="select"&&m("selectdirection");var g=p._has("mapbox"),b=p._has("geo"),v=p._basePlotModules.length;p.dragmode==="zoom"&&((g||b)&&v===1||g&&b&&v===2)&&(p.dragmode="pan"),d(f,p,m),s.coerceFont(m,"hoverlabel.grouptitlefont",p.hoverlabel.font)}},22774:function(i,o,a){var s=a(71828),u=a(38048),c=a(528);i.exports=function(d,f){u(d,f,function(p,m){return s.coerce(d,f,c,p,m)})}},83312:function(i,o,a){var s=a(71828),u=a(30587).counter,c=a(27670).Y,d=a(85555).idRegex,f=a(44467),p={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[u("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[d.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[d.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:c({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function m(v,h,y){var w=h[y+"axes"],_=Object.keys((v._splomAxes||{})[y]||{});return Array.isArray(w)?w:_.length?_:void 0}function g(v,h,y,w,_,x){var T=h(v+"gap",y),k=h("domain."+v);h(v+"side",w);for(var S=new Array(_),C=k[0],M=(k[1]-C)/(_-T),O=M*(1-T),D=0;D<_;D++){var P=C+M*D;S[x?_-1-D:D]=[P,P+O]}return S}function b(v,h,y,w,_){var x,T=new Array(y);function k(S,C){h.indexOf(C)!==-1&&w[C]===void 0?(T[S]=C,w[C]=S):T[S]=""}if(Array.isArray(v))for(x=0;x1){k||S||C||z("pattern")==="independent"&&(k=!0),O._hasSubplotGrid=k;var E,I,A=z("roworder")==="top to bottom",F=k?.2:.1,j=k?.3:.1;M&&h._splomGridDflt&&(E=h._splomGridDflt.xside,I=h._splomGridDflt.yside),O._domains={x:g("x",z,F,E,P),y:g("y",z,j,I,D,A)}}else delete h.grid}function z(B,N){return s.coerce(y,O,p,B,N)}},contentDefaults:function(v,h){var y=h.grid;if(y&&y._domains){var w,_,x,T,k,S,C,M=v.grid||{},O=h._subplots,D=y._hasSubplotGrid,P=y.rows,E=y.columns,I=y.pattern==="independent",A=y._axisMap={};if(D){var F=M.subplots||[];S=y.subplots=new Array(P);var j=1;for(w=0;w(b==="legend"?1:0));if(j===!1&&(h[b]=void 0),(j!==!1||w.uirevision)&&(x("uirevision",h.uirevision),j!==!1)){x("borderwidth");var z,B,N,R=x("orientation")==="h",q=x("yref")==="paper",Y=x("xref")==="paper",L="left";if(R?(z=0,s.getComponentMethod("rangeslider","isVisible")(v.xaxis)?q?(B=1.1,N="bottom"):(B=1,N="top"):q?(B=-.1,N="top"):(B=0,N="bottom")):(B=1,N="auto",Y?z=1.02:(z=1,L="right")),u.coerce(w,_,{x:{valType:"number",editType:"legend",min:Y?-2:0,max:Y?3:1,dflt:z}},"x"),u.coerce(w,_,{y:{valType:"number",editType:"legend",min:q?-2:0,max:q?3:1,dflt:B}},"y"),x("traceorder",P),m.isGrouped(h[b])&&x("tracegroupgap"),x("entrywidth"),x("entrywidthmode"),x("itemsizing"),x("itemwidth"),x("itemclick"),x("itemdoubleclick"),x("groupclick"),x("xanchor",L),x("yanchor",N),x("valign"),u.noneOrAll(w,_,["x","y"]),x("title.text")){x("title.side",R?"left":"top");var W=u.extendFlat({},T,{size:u.bigFont(T.size)});u.coerceFont(x,"title.font",W)}}}}i.exports=function(b,v,h){var y,w=h.slice(),_=v.shapes;if(_)for(y=0;y<_.length;y++){var x=_[y];if(x.showlegend){var T={_input:x._input,visible:x.visible,showlegend:x.showlegend,legend:x.legend};w.push(T)}}var k=["legend"];for(y=0;y1)}var Q=W.hiddenlabels||[];if(!(V||W.showlegend&&te.length))return Y.selectAll("."+U).remove(),W._topdefs.select("#"+q).remove(),c.autoMargin(N,U);var re=u.ensureSingle(Y,"g",U,function(ce){V||ce.attr("pointer-events","all")}),ae=u.ensureSingleById(W._topdefs,"clipPath",q,function(ce){ce.append("rect")}),ie=u.ensureSingle(re,"rect","bg",function(ce){ce.attr("shape-rendering","crispEdges")});ie.call(g.stroke,L.bordercolor).call(g.fill,L.bgcolor).style("stroke-width",L.borderwidth+"px");var se,he=u.ensureSingle(re,"g","scrollbox"),Se=L.title;L._titleWidth=0,L._titleHeight=0,Se.text?((se=u.ensureSingle(he,"text",U+"titletext")).attr("text-anchor","start").call(m.font,Se.font).text(Se.text),F(se,he,N,L,C)):he.selectAll("."+U+"titletext").remove();var Oe=u.ensureSingle(re,"rect","scrollbar",function(ce){ce.attr(h.scrollBarEnterAttrs).call(g.fill,h.scrollBarColor)}),Pe=he.selectAll("g.groups").data(te);Pe.enter().append("g").attr("class","groups"),Pe.exit().remove();var Me=Pe.selectAll("g.traces").data(u.identity);Me.enter().append("g").attr("class","traces"),Me.exit().remove(),Me.style("opacity",function(ce){var we=ce[0].trace;return d.traceIs(we,"pie-like")?Q.indexOf(ce[0].label)!==-1?.5:1:we.visible==="legendonly"?.5:1}).each(function(){s.select(this).call(E,N,L)}).call(k,N,L).each(function(){V||s.select(this).call(A,N,U)}),u.syncOrAsync([c.previousPromises,function(){return function(ce,we,K,ne){var de=ce._fullLayout,_e=B(ne);ne||(ne=de[_e]);var ue=de._size,pe=S.isVertical(ne),xe=S.isGrouped(ne),ye=ne.entrywidthmode==="fraction",Te=ne.borderwidth,Ae=2*Te,Re=h.itemGap,Le=ne.itemwidth+2*Re,$e=2*(Te+Re),Fe=z(ne),Be=ne.y<0||ne.y===0&&Fe==="top",Ue=ne.y>1||ne.y===1&&Fe==="bottom",qe=ne.tracegroupgap,Xe={};ne._maxHeight=Math.max(Be||Ue?de.height/2:ue.h,30);var ot=0;ne._width=0,ne._height=0;var st=function(Ke){var Ye=0,nt=0,ct=Ke.title.side;return ct&&(ct.indexOf("left")!==-1&&(Ye=Ke._titleWidth),ct.indexOf("top")!==-1&&(nt=Ke._titleHeight)),[Ye,nt]}(ne);if(pe)K.each(function(Ke){var Ye=Ke[0].height;m.setTranslate(this,Te+st[0],Te+st[1]+ne._height+Ye/2+Re),ne._height+=Ye,ne._width=Math.max(ne._width,Ke[0].width)}),ot=Le+ne._width,ne._width+=Re+Le+Ae,ne._height+=$e,xe&&(we.each(function(Ke,Ye){m.setTranslate(this,0,Ye*ne.tracegroupgap)}),ne._height+=(ne._lgroupsLength-1)*ne.tracegroupgap);else{var dt=j(ne),vt=ne.x<0||ne.x===0&&dt==="right",We=ne.x>1||ne.x===1&&dt==="left",ze=Ue||Be,tt=de.width/2;ne._maxWidth=Math.max(vt?ze&&dt==="left"?ue.l+ue.w:tt:We?ze&&dt==="right"?ue.r+ue.w:tt:ue.w,2*Le);var it=0,St=0;K.each(function(Ke){var Ye=D(Ke,ne,Le);it=Math.max(it,Ye),St+=Ye}),ot=null;var Ze=0;if(xe){var ut=0,ht=0,Rt=0;we.each(function(){var Ke=0,Ye=0;s.select(this).selectAll("g.traces").each(function(ct){var yt=D(ct,ne,Le),rt=ct[0].height;m.setTranslate(this,st[0],st[1]+Te+Re+rt/2+Ye),Ye+=rt,Ke=Math.max(Ke,yt),Xe[ct[0].trace.legendgroup]=Ke});var nt=Ke+Re;ht>0&&nt+Te+ht>ne._maxWidth?(Ze=Math.max(Ze,ht),ht=0,Rt+=ut+qe,ut=Ye):ut=Math.max(ut,Ye),m.setTranslate(this,ht,Rt),ht+=nt}),ne._width=Math.max(Ze,ht)+Te,ne._height=Rt+ut+$e}else{var Ct=K.size(),Wt=St+Ae+(Ct-1)*Re=ne._maxWidth&&(Ze=Math.max(Ze,Ge),be=0,Ce+=_t,ne._height+=_t,_t=0),m.setTranslate(this,st[0]+Te+be,st[1]+Te+Ce+Ye/2+Re),Ge=be+nt+Re,be+=ct,_t=Math.max(_t,Ye)}),Wt?(ne._width=be+Ae,ne._height=_t+$e):(ne._width=Math.max(Ze,Ge)+Ae,ne._height+=_t+$e)}}ne._width=Math.ceil(Math.max(ne._width+st[0],ne._titleWidth+2*(Te+h.titlePad))),ne._height=Math.ceil(Math.max(ne._height+st[1],ne._titleHeight+2*(Te+h.itemGap))),ne._effHeight=Math.min(ne._height,ne._maxHeight);var He=ce._context.edits,et=He.legendText||He.legendPosition;K.each(function(Ke){var Ye=s.select(this).select("."+_e+"toggle"),nt=Ke[0].height,ct=Ke[0].trace.legendgroup,yt=D(Ke,ne,Le);xe&&ct!==""&&(yt=Xe[ct]);var rt=et?Le:ot||yt;pe||ye||(rt+=Re/2),m.setRect(Ye,0,-nt/2,rt,nt)})}(N,Pe,Me,L)},function(){var ce,we,K,ne,de=W._size,_e=L.borderwidth,ue=L.xref==="paper",pe=L.yref==="paper";if(Se.text&&function(ze,tt,it){if(tt.title.side==="top center"||tt.title.side==="top right"){var St=tt.title.font.size*w,Ze=0,ut=ze.node(),ht=m.bBox(ut).width;tt.title.side==="top center"?Ze=.5*(tt._width-2*it-2*h.titlePad-ht):tt.title.side==="top right"&&(Ze=tt._width-2*it-2*h.titlePad-ht),b.positionText(ze,it+h.titlePad+Ze,it+St)}}(se,L,_e),!V){var xe,ye;xe=ue?de.l+de.w*L.x-_[j(L)]*L._width:W.width*L.x-_[j(L)]*L._width,ye=pe?de.t+de.h*(1-L.y)-_[z(L)]*L._effHeight:W.height*(1-L.y)-_[z(L)]*L._effHeight;var Te=function(ze,tt,it,St){var Ze=ze._fullLayout,ut=Ze[tt],ht=j(ut),Rt=z(ut),Ct=ut.xref==="paper",Wt=ut.yref==="paper";ze._fullLayout._reservedMargin[tt]={};var _t=ut.y<.5?"b":"t",be=ut.x<.5?"l":"r",Ce={r:Ze.width-it,l:it+ut._width,b:Ze.height-St,t:St+ut._effHeight};if(Ct&&Wt)return c.autoMargin(ze,tt,{x:ut.x,y:ut.y,l:ut._width*_[ht],r:ut._width*x[ht],b:ut._effHeight*x[Rt],t:ut._effHeight*_[Rt]});Ct?ze._fullLayout._reservedMargin[tt][_t]=Ce[_t]:Wt||ut.orientation==="v"?ze._fullLayout._reservedMargin[tt][be]=Ce[be]:ze._fullLayout._reservedMargin[tt][_t]=Ce[_t]}(N,U,xe,ye);if(Te)return;if(W.margin.autoexpand){var Ae=xe,Re=ye;xe=ue?u.constrain(xe,0,W.width-L._width):Ae,ye=pe?u.constrain(ye,0,W.height-L._effHeight):Re,xe!==Ae&&u.log("Constrain "+U+".x to make legend fit inside graph"),ye!==Re&&u.log("Constrain "+U+".y to make legend fit inside graph")}m.setTranslate(re,xe,ye)}if(Oe.on(".drag",null),re.on("wheel",null),V||L._height<=L._maxHeight||N._context.staticPlot){var Le=L._effHeight;V&&(Le=L._height),ie.attr({width:L._width-_e,height:Le-_e,x:_e/2,y:_e/2}),m.setTranslate(he,0,0),ae.select("rect").attr({width:L._width-2*_e,height:Le-2*_e,x:_e,y:_e}),m.setClipUrl(he,q,N),m.setRect(Oe,0,0,0,0),delete L._scrollY}else{var $e,Fe,Be,Ue=Math.max(h.scrollBarMinHeight,L._effHeight*L._effHeight/L._height),qe=L._effHeight-Ue-2*h.scrollBarMargin,Xe=L._height-L._effHeight,ot=qe/Xe,st=Math.min(L._scrollY||0,Xe);ie.attr({width:L._width-2*_e+h.scrollBarWidth+h.scrollBarMargin,height:L._effHeight-_e,x:_e/2,y:_e/2}),ae.select("rect").attr({width:L._width-2*_e+h.scrollBarWidth+h.scrollBarMargin,height:L._effHeight-2*_e,x:_e,y:_e+st}),m.setClipUrl(he,q,N),We(st,Ue,ot),re.on("wheel",function(){We(st=u.constrain(L._scrollY+s.event.deltaY/qe*Xe,0,Xe),Ue,ot),st!==0&&st!==Xe&&s.event.preventDefault()});var dt=s.behavior.drag().on("dragstart",function(){var ze=s.event.sourceEvent;$e=ze.type==="touchstart"?ze.changedTouches[0].clientY:ze.clientY,Be=st}).on("drag",function(){var ze=s.event.sourceEvent;ze.buttons===2||ze.ctrlKey||(Fe=ze.type==="touchmove"?ze.changedTouches[0].clientY:ze.clientY,st=function(tt,it,St){var Ze=(St-it)/ot+tt;return u.constrain(Ze,0,Xe)}(Be,$e,Fe),We(st,Ue,ot))});Oe.call(dt);var vt=s.behavior.drag().on("dragstart",function(){var ze=s.event.sourceEvent;ze.type==="touchstart"&&($e=ze.changedTouches[0].clientY,Be=st)}).on("drag",function(){var ze=s.event.sourceEvent;ze.type==="touchmove"&&(Fe=ze.changedTouches[0].clientY,st=function(tt,it,St){var Ze=(it-St)/ot+tt;return u.constrain(Ze,0,Xe)}(Be,$e,Fe),We(st,Ue,ot))});he.call(vt)}function We(ze,tt,it){L._scrollY=N._fullLayout[U]._scrollY=ze,m.setTranslate(he,0,-ze),m.setRect(Oe,L._width,h.scrollBarMargin+ze*it,h.scrollBarWidth,tt),ae.select("rect").attr("y",_e+ze)}N._context.edits.legendPosition&&(re.classed("cursor-move",!0),p.init({element:re.node(),gd:N,prepFn:function(){var ze=m.getTranslate(re);K=ze.x,ne=ze.y},moveFn:function(ze,tt){var it=K+ze,St=ne+tt;m.setTranslate(re,it,St),ce=p.align(it,L._width,de.l,de.l+de.w,L.xanchor),we=p.align(St+L._height,-L._height,de.t+de.h,de.t,L.yanchor)},doneFn:function(){if(ce!==void 0&&we!==void 0){var ze={};ze[U+".x"]=ce,ze[U+".y"]=we,d.call("_guiRelayout",N,ze)}},clickFn:function(ze,tt){var it=Y.selectAll("g.traces").filter(function(){var St=this.getBoundingClientRect();return tt.clientX>=St.left&&tt.clientX<=St.right&&tt.clientY>=St.top&&tt.clientY<=St.bottom});it.size()>0&&P(N,re,it,ze,tt)}}))}],N)}}function D(N,R,q){var Y=N[0],L=Y.width,W=R.entrywidthmode,U=Y.trace.legendwidth||R.entrywidth;return W==="fraction"?R._maxWidth*U:q+(U||L)}function P(N,R,q,Y,L){var W=q.data()[0][0].trace,U={event:L,node:q.node(),curveNumber:W.index,expandedIndex:W._expandedIndex,data:N.data,layout:N.layout,frames:N._transitionData._frames,config:N._context,fullData:N._fullData,fullLayout:N._fullLayout};W._group&&(U.group=W._group),d.traceIs(W,"pie-like")&&(U.label=q.datum()[0].label);var V=f.triggerHandler(N,"plotly_legendclick",U);if(Y===1){if(V===!1)return;R._clickTimeout=setTimeout(function(){N._fullLayout&&v(q,N,Y)},N._context.doubleClickDelay)}else Y===2&&(R._clickTimeout&&clearTimeout(R._clickTimeout),N._legendMouseDownTime=0,f.triggerHandler(N,"plotly_legenddoubleclick",U)!==!1&&V!==!1&&v(q,N,Y))}function E(N,R,q){var Y,L,W=B(q),U=N.data()[0][0],V=U.trace,te=d.traceIs(V,"pie-like"),ee=!q._inHover&&R._context.edits.legendText&&!te,H=q._maxNameLength;U.groupTitle?(Y=U.groupTitle.text,L=U.groupTitle.font):(L=q.font,q.entries?Y=U.text:(Y=te?U.label:V.name,V._meta&&(Y=u.templateString(Y,V._meta))));var Z=u.ensureSingle(N,"text",W+"text");Z.attr("text-anchor","start").call(m.font,L).text(ee?I(Y,H):Y);var G=q.itemwidth+2*h.itemGap;b.positionText(Z,G,0),ee?Z.call(b.makeEditable,{gd:R,text:Y}).call(F,N,R,q).on("edit",function(X){this.text(I(X,H)).call(F,N,R,q);var Q=U.trace._fullInput||{},re={};if(d.hasTransform(Q,"groupby")){var ae=d.getTransformIndices(Q,"groupby"),ie=ae[ae.length-1],se=u.keyedContainer(Q,"transforms["+ie+"].styles","target","value.name");se.set(U.trace._group,X),re=se.constructUpdate()}else re.name=X;return Q._isShape?d.call("_guiRelayout",R,"shapes["+V.index+"].name",re.name):d.call("_guiRestyle",R,re,V.index)}):F(Z,N,R,q)}function I(N,R){var q=Math.max(4,R);if(N&&N.trim().length>=q/2)return N;for(var Y=q-(N=N||"").length;Y>0;Y--)N+=" ";return N}function A(N,R,q){var Y,L=R._context.doubleClickDelay,W=1,U=u.ensureSingle(N,"rect",q+"toggle",function(V){R._context.staticPlot||V.style("cursor","pointer").attr("pointer-events","all"),V.call(g.fill,"rgba(0,0,0,0)")});R._context.staticPlot||(U.on("mousedown",function(){(Y=new Date().getTime())-R._legendMouseDownTimeL&&(W=Math.max(W-1,1)),P(R,V,N,W,s.event)}}))}function F(N,R,q,Y,L){Y._inHover&&N.attr("data-notex",!0),b.convertToTspans(N,q,function(){(function(W,U,V,te){var ee=W.data()[0][0];if(V._inHover||!ee||ee.trace.showlegend){var H=W.select("g[class*=math-group]"),Z=H.node(),G=B(V);V||(V=U._fullLayout[G]);var X,Q,re=V.borderwidth,ae=(te===C?V.title.font:ee.groupTitle?ee.groupTitle.font:V.font).size*w;if(Z){var ie=m.bBox(Z);X=ie.height,Q=ie.width,te===C?m.setTranslate(H,re,re+.75*X):m.setTranslate(H,0,.25*X)}else{var se="."+G+(te===C?"title":"")+"text",he=W.select(se),Se=b.lineCount(he),Oe=he.node();if(X=ae*Se,Q=Oe?m.bBox(Oe).width:0,te===C)V.title.side==="left"&&(Q+=2*h.itemGap),b.positionText(he,re+h.titlePad,re+ae);else{var Pe=2*h.itemGap+V.itemwidth;ee.groupTitle&&(Pe=h.itemGap,Q-=V.itemwidth),b.positionText(he,Pe,-ae*((Se-1)/2-.3))}}te===C?(V._titleWidth=Q,V._titleHeight=X):(ee.lineHeight=ae,ee.height=Math.max(X,16)+3,ee.width=Q)}else W.remove()})(R,q,Y,L)})}function j(N){return u.isRightAnchor(N)?"right":u.isCenterAnchor(N)?"center":"left"}function z(N){return u.isBottomAnchor(N)?"bottom":u.isMiddleAnchor(N)?"middle":"top"}function B(N){return N._id||"legend"}i.exports=function(N,R){if(R)O(N,R);else{var q=N._fullLayout,Y=q._legends;q._infolayer.selectAll('[class^="legend"]').each(function(){var U=s.select(this),V=U.attr("class").split(" ")[0];V.match(M)&&Y.indexOf(V)===-1&&U.remove()});for(var L=0;Lj&&(F=j)}I[p][0]._groupMinRank=F,I[p][0]._preGroupSort=p}var z=function(Y,L){return Y.trace.legendrank-L.trace.legendrank||Y._preSort-L._preSort};for(I.forEach(function(Y,L){Y[0]._preGroupSort=L}),I.sort(function(Y,L){return Y[0]._groupMinRank-L[0]._groupMinRank||Y[0]._preGroupSort-L[0]._preGroupSort}),p=0;pk?k:x}i.exports=function(x,T,k){var S=T._fullLayout;k||(k=S.legend);var C=k.itemsizing==="constant",M=k.itemwidth,O=(M+2*h.itemGap)/2,D=d(O,0),P=function(A,F,j,z){var B;if(A+1)B=A;else{if(!(F&&F.width>0))return 0;B=F.width}return C?z:Math.min(B,j)};function E(A,F,j){var z=A[0].trace,B=z.marker||{},N=B.line||{},R=j?z.visible&&z.type===j:u.traceIs(z,"bar"),q=s.select(F).select("g.legendpoints").selectAll("path.legend"+j).data(R?[A]:[]);q.enter().append("path").classed("legend"+j,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),q.exit().remove(),q.each(function(Y){var L=s.select(this),W=Y[0],U=P(W.mlw,B.line,5,2);L.style("stroke-width",U+"px");var V=W.mcc;if(!k._inHover&&"mc"in W){var te=m(B),ee=te.mid;ee===void 0&&(ee=(te.max+te.min)/2),V=f.tryColorscale(B,"")(ee)}var H=V||W.mc||B.color,Z=B.pattern,G=Z&&f.getPatternAttr(Z.shape,0,"");if(G){var X=f.getPatternAttr(Z.bgcolor,0,null),Q=f.getPatternAttr(Z.fgcolor,0,null),re=Z.fgopacity,ae=_(Z.size,8,10),ie=_(Z.solidity,.5,1),se="legend-"+z.uid;L.call(f.pattern,"legend",T,se,G,ae,ie,V,Z.fillmode,X,Q,re)}else L.call(p.fill,H);U&&p.stroke(L,W.mlc||N.color)})}function I(A,F,j){var z=A[0],B=z.trace,N=j?B.visible&&B.type===j:u.traceIs(B,j),R=s.select(F).select("g.legendpoints").selectAll("path.legend"+j).data(N?[A]:[]);if(R.enter().append("path").classed("legend"+j,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),R.exit().remove(),R.size()){var q=B.marker||{},Y=P(v(q.line.width,z.pts),q.line,5,2),L="pieLike",W=c.minExtend(B,{marker:{line:{width:Y}}},L),U=c.minExtend(z,{trace:W},L);b(R,U,W,T)}}x.each(function(A){var F=s.select(this),j=c.ensureSingle(F,"g","layers");j.style("opacity",A[0].trace.opacity);var z=k.valign,B=A[0].lineHeight,N=A[0].height;if(z!=="middle"&&B&&N){var R={top:1,bottom:-1}[z]*(.5*(B-N+3));j.attr("transform",d(0,R))}else j.attr("transform",null);j.selectAll("g.legendfill").data([A]).enter().append("g").classed("legendfill",!0),j.selectAll("g.legendlines").data([A]).enter().append("g").classed("legendlines",!0);var q=j.selectAll("g.legendsymbols").data([A]);q.enter().append("g").classed("legendsymbols",!0),q.selectAll("g.legendpoints").data([A]).enter().append("g").classed("legendpoints",!0)}).each(function(A){var F,j=A[0].trace,z=[];if(j.visible)switch(j.type){case"histogram2d":case"heatmap":z=[["M-15,-2V4H15V-2Z"]],F=!0;break;case"choropleth":case"choroplethmapbox":z=[["M-6,-6V6H6V-6Z"]],F=!0;break;case"densitymapbox":z=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],F="radial";break;case"cone":z=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],F=!1;break;case"streamtube":z=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],F=!1;break;case"surface":z=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],F=!0;break;case"mesh3d":z=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],F=!1;break;case"volume":z=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],F=!0;break;case"isosurface":z=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],F=!1}var B=s.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(z);B.enter().append("path").classed("legend3dandfriends",!0).attr("transform",D).style("stroke-miterlimit",1),B.exit().remove(),B.each(function(N,R){var q,Y=s.select(this),L=m(j),W=L.colorscale,U=L.reversescale;if(W){if(!F){var V=W.length;q=R===0?W[U?V-1:0][1]:R===1?W[U?0:V-1][1]:W[Math.floor((V-1)/2)][1]}}else{var te=j.vertexcolor||j.facecolor||j.color;q=c.isArrayOrTypedArray(te)?te[R]||te[0]:te}Y.attr("d",N[0]),q?Y.call(p.fill,q):Y.call(function(ee){if(ee.size()){var H="legendfill-"+j.uid;f.gradient(ee,T,H,y(U,F==="radial"),W,"fill")}})})}).each(function(A){var F=A[0].trace,j=F.type==="waterfall";if(A[0]._distinct&&j){var z=A[0].trace[A[0].dir].marker;return A[0].mc=z.color,A[0].mlw=z.line.width,A[0].mlc=z.line.color,E(A,this,"waterfall")}var B=[];F.visible&&j&&(B=A[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var N=s.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(B);N.enter().append("path").classed("legendwaterfall",!0).attr("transform",D).style("stroke-miterlimit",1),N.exit().remove(),N.each(function(R){var q=s.select(this),Y=F[R[0]].marker,L=P(void 0,Y.line,5,2);q.attr("d",R[1]).style("stroke-width",L+"px").call(p.fill,Y.color),L&&q.call(p.stroke,Y.line.color)})}).each(function(A){E(A,this,"funnel")}).each(function(A){E(A,this)}).each(function(A){var F=A[0].trace,j=s.select(this).select("g.legendpoints").selectAll("path.legendbox").data(F.visible&&u.traceIs(F,"box-violin")?[A]:[]);j.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),j.exit().remove(),j.each(function(){var z=s.select(this);if(F.boxpoints!=="all"&&F.points!=="all"||p.opacity(F.fillcolor)!==0||p.opacity((F.line||{}).color)!==0){var B=P(void 0,F.line,5,2);z.style("stroke-width",B+"px").call(p.fill,F.fillcolor),B&&p.stroke(z,F.line.color)}else{var N=c.minExtend(F,{marker:{size:C?12:c.constrain(F.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});j.call(f.pointStyle,N,T)}})}).each(function(A){I(A,this,"funnelarea")}).each(function(A){I(A,this,"pie")}).each(function(A){var F,j,z=w(A),B=z.showFill,N=z.showLine,R=z.showGradientLine,q=z.showGradientFill,Y=z.anyFill,L=z.anyLine,W=A[0],U=W.trace,V=m(U),te=V.colorscale,ee=V.reversescale,H=g.hasMarkers(U)||!Y?"M5,0":L?"M5,-2":"M5,-3",Z=s.select(this),G=Z.select(".legendfill").selectAll("path").data(B||q?[A]:[]);if(G.enter().append("path").classed("js-fill",!0),G.exit().remove(),G.attr("d",H+"h"+M+"v6h-"+M+"z").call(function(re){if(re.size())if(B)f.fillGroupStyle(re,T);else{var ae="legendfill-"+U.uid;f.gradient(re,T,ae,y(ee),te,"fill")}}),N||R){var X=P(void 0,U.line,10,5);j=c.minExtend(U,{line:{width:X}}),F=[c.minExtend(W,{trace:j})]}var Q=Z.select(".legendlines").selectAll("path").data(N||R?[F]:[]);Q.enter().append("path").classed("js-line",!0),Q.exit().remove(),Q.attr("d",H+(R?"l"+M+",0.0001":"h"+M)).call(N?f.lineGroupStyle:function(re){if(re.size()){var ae="legendline-"+U.uid;f.lineGroupStyle(re),f.gradient(re,T,ae,y(ee),te,"stroke")}})}).each(function(A){var F,j,z=w(A),B=z.anyFill,N=z.anyLine,R=z.showLine,q=z.showMarker,Y=A[0],L=Y.trace,W=!q&&!N&&!B&&g.hasText(L);function U(Q,re,ae,ie){var se=c.nestedProperty(L,Q).get(),he=c.isArrayOrTypedArray(se)&&re?re(se):se;if(C&&he&&ie!==void 0&&(he=ie),ae){if(heae[1])return ae[1]}return he}function V(Q){return Y._distinct&&Y.index&&Q[Y.index]?Q[Y.index]:Q[0]}if(q||W||R){var te={},ee={};if(q){te.mc=U("marker.color",V),te.mx=U("marker.symbol",V),te.mo=U("marker.opacity",c.mean,[.2,1]),te.mlc=U("marker.line.color",V),te.mlw=U("marker.line.width",c.mean,[0,5],2),ee.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var H=U("marker.size",c.mean,[2,16],12);te.ms=H,ee.marker.size=H}R&&(ee.line={width:U("line.width",V,[0,10],5)}),W&&(te.tx="Aa",te.tp=U("textposition",V),te.ts=10,te.tc=U("textfont.color",V),te.tf=U("textfont.family",V)),F=[c.minExtend(Y,te)],(j=c.minExtend(L,ee)).selectedpoints=null,j.texttemplate=null}var Z=s.select(this).select("g.legendpoints"),G=Z.selectAll("path.scatterpts").data(q?F:[]);G.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",D),G.exit().remove(),G.call(f.pointStyle,j,T),q&&(F[0].mrc=3);var X=Z.selectAll("g.pointtext").data(W?F:[]);X.enter().append("g").classed("pointtext",!0).append("text").attr("transform",D),X.exit().remove(),X.selectAll("text").call(f.textPointStyle,j,T)}).each(function(A){var F=A[0].trace,j=s.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(F.visible&&F.type==="candlestick"?[A,A]:[]);j.enter().append("path").classed("legendcandle",!0).attr("d",function(z,B){return B?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",D).style("stroke-miterlimit",1),j.exit().remove(),j.each(function(z,B){var N=s.select(this),R=F[B?"increasing":"decreasing"],q=P(void 0,R.line,5,2);N.style("stroke-width",q+"px").call(p.fill,R.fillcolor),q&&p.stroke(N,R.line.color)})}).each(function(A){var F=A[0].trace,j=s.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(F.visible&&F.type==="ohlc"?[A,A]:[]);j.enter().append("path").classed("legendohlc",!0).attr("d",function(z,B){return B?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",D).style("stroke-miterlimit",1),j.exit().remove(),j.each(function(z,B){var N=s.select(this),R=F[B?"increasing":"decreasing"],q=P(void 0,R.line,5,2);N.style("fill","none").call(f.dashLine,R.line.dash,q),q&&p.stroke(N,R.line.color)})})}},42068:function(i,o,a){a(93348),i.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},26023:function(i,o,a){var s=a(73972),u=a(74875),c=a(41675),d=a(24255),f=a(34031).eraseActiveShape,p=a(71828),m=p._,g=i.exports={};function b(S,C){var M,O,D=C.currentTarget,P=D.getAttribute("data-attr"),E=D.getAttribute("data-val")||!0,I=S._fullLayout,A={},F=c.list(S,null,!0),j=I._cartesianSpikesEnabled;if(P==="zoom"){var z,B=E==="in"?.5:2,N=(1+B)/2,R=(1-B)/2;for(O=0;O1?(H=["toggleHover"],Z=["resetViews"]):A?(ee=["zoomInGeo","zoomOutGeo"],H=["hoverClosestGeo"],Z=["resetGeo"]):I?(H=["hoverClosest3d"],Z=["resetCameraDefault3d","resetCameraLastSave3d"]):N?(ee=["zoomInMapbox","zoomOutMapbox"],H=["toggleHover"],Z=["resetViewMapbox"]):z?H=["hoverClosestGl2d"]:F?H=["hoverClosestPie"]:Y?(H=["hoverClosestCartesian","hoverCompareCartesian"],Z=["resetViewSankey"]):H=["toggleHover"],E&&(H=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(se){for(var he=0;he0)){var T=function(S,C,M){for(var O=M.filter(function(I){return C[I].anchor===S._id}),D=0,P=0;P=Oe.max)he=re[Se+1];else if(se=Oe.pmax)he=re[Se+1];else if(seSe._length||pe+Fe<0)return;Re=ue+Fe,Le=pe+Fe;break;case Me:if($e="col-resize",ue+Fe>Se._length)return;Re=ue+Fe,Le=pe;break;case ce:if($e="col-resize",pe+Fe<0)return;Re=ue,Le=pe+Fe;break;default:$e="ew-resize",Re=_e,Le=_e+Fe}if(Le=0;z--){var B=C.append("path").attr(O).style("opacity",z?.1:D).call(d.stroke,E).call(d.fill,P).call(f.dashLine,z?"solid":A,z?4+I:I);if(y(B,_,k),F){var N=p(_.layout,"selections",k);B.style({cursor:"move"});var R={element:B.node(),plotinfo:S,gd:_,editHelpers:N,isActiveSelection:!0},q=s(M,_);u(q,B,R)}else B.style("pointer-events",z?"all":"none");j[z]=B}var Y=j[0];j[1].node().addEventListener("click",function(){return function(L,W){if(v(L)){var U=+W.node().getAttribute("data-index");if(U>=0){if(U===L._fullLayout._activeSelectionIndex)return void w(L);L._fullLayout._activeSelectionIndex=U,L._fullLayout._deactivateSelection=w,b(L)}}}(_,Y)})}(_._fullLayout._selectionLayer)}function y(_,x,T){var k=T.xref+T.yref;f.setClipUrl(_,"clip"+x._fullLayout._uid+k,x)}function w(_){v(_)&&_._fullLayout._activeSelectionIndex>=0&&(c(_),delete _._fullLayout._activeSelectionIndex,b(_))}i.exports={draw:b,drawOne:h,activateLastSelection:function(_){if(v(_)){var x=_._fullLayout.selections.length-1;_._fullLayout._activeSelectionIndex=x,_._fullLayout._deactivateSelection=w,b(_)}}}},53777:function(i,o,a){var s=a(79952).P,u=a(1426).extendFlat;i.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:u({},s,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},90849:function(i){i.exports=function(o,a,s){s("newselection.mode"),s("newselection.line.width")&&(s("newselection.line.color"),s("newselection.line.dash")),s("activeselection.fillcolor"),s("activeselection.opacity")}},35855:function(i,o,a){var s=a(64505).selectMode,u=a(51873).clearOutline,c=a(60165),d=c.readPaths,f=c.writePaths,p=c.fixDatesForPaths;i.exports=function(m,g){if(m.length){var b=m[0][0];if(b){var v=b.getAttribute("d"),h=g.gd,y=h._fullLayout.newselection,w=g.plotinfo,_=w.xaxis,x=w.yaxis,T=g.isActiveSelection,k=g.dragmode,S=(h.layout||{}).selections||[];if(!s(k)&&T!==void 0){var C=h._fullLayout._activeSelectionIndex;if(C-1,St=[];if(function(Ct){return Ct&&Array.isArray(Ct)&&Ct[0].hoverOnBox!==!0}(tt)){X(Te,Ae,Fe);var Ze=function(Ct,Wt){var _t,be,Ce=Ct[0],Ge=-1,He=[];for(be=0;be0?function(Ct,Wt){var _t,be,Ce,Ge=[];for(Ce=0;Ce0&&Ge.push(_t);if(Ge.length===1&&Ge[0]===Wt.searchInfo&&(be=Wt.searchInfo.cd[0].trace).selectedpoints.length===Wt.pointNumbers.length){for(Ce=0;Ce1||(be+=Wt.selectedpoints.length)>1))return!1;return be===1}(Ue)&&(dt=se(Ze))){for(Be&&Be.remove(),ze=0;ze=0})($e)&&$e._fullLayout._deactivateShape($e),function(st){return st._fullLayout._activeSelectionIndex>=0}($e)&&$e._fullLayout._deactivateSelection($e);var Fe=$e._fullLayout._zoomlayer,Be=h(Re),Ue=w(Re);if(Be||Ue){var qe,Xe,ot=Fe.selectAll(".select-outline-"+Le.id);ot&&$e._fullLayout._outlining&&(Be&&(qe=O(ot,Te)),qe&&c.call("_guiRelayout",$e,{shapes:qe}),Ue&&!te(Te)&&(Xe=D(ot,Te)),Xe&&($e._fullLayout._noEmitSelectedAtStart=!0,c.call("_guiRelayout",$e,{selections:Xe}).then(function(){Ae&&P($e)})),$e._fullLayout._outlining=!1)}Le.selection={},Le.selection.selectionDefs=Te.selectionDefs=[],Le.selection.mergedPolygons=Te.mergedPolygons=[]}function re(Te){return Te._id}function ae(Te,Ae,Re,Le){if(!Te.calcdata)return[];var $e,Fe,Be,Ue=[],qe=Ae.map(re),Xe=Re.map(re);for(Be=0;Be0?Le[0]:Re;return!!Ae.selectedpoints&&Ae.selectedpoints.indexOf($e)>-1}function he(Te,Ae,Re){var Le,$e;for(Le=0;Le-1&&Ae;if(!Fe&&Ae){var Ot=ne(Te,!0);if(Ot.length){var At=Ot[0].xref,Nt=Ot[0].yref;if(At&&Nt){var $t=ue(Ot);pe([j(Te,At,"x"),j(Te,Nt,"y")])(zt,$t)}}Te._fullLayout._noEmitSelectedAtStart?Te._fullLayout._noEmitSelectedAtStart=!1:kt&&xe(Te,zt),dt._reselect=!1}if(!Fe&&dt._deselect){var Bt=dt._deselect;(function(Xt,Zt,qt){for(var Ht=0;Ht=0)vt._fullLayout._deactivateShape(vt);else if(!Xe){var $t=We.clickmode;F.done(It).then(function(){if(F.clear(It),At===2){for(jt.remove(),Ce=0;Ce-1&&ee(Nt,vt,Le.xaxes,Le.yaxes,Le.subplot,Le,jt),$t==="event"&&xe(vt,void 0);p.click(vt,Nt,St.id)}).catch(E.error)}},Le.doneFn=function(){xt.remove(),F.done(It).then(function(){F.clear(It),!ze&&be&&Le.selectionDefs&&(be.subtract=Mt,Le.selectionDefs.push(be),Le.mergedPolygons.length=0,[].push.apply(Le.mergedPolygons,_t)),(ze||Xe)&&Q(Le,ze),Le.doneFnCompleted&&Le.doneFnCompleted(zt),ot&&xe(vt,He)}).catch(E.error)}},clearOutline:k,clearSelectionsCache:Q,selectOnClick:ee}},89827:function(i,o,a){var s=a(50215),u=a(41940),c=a(82196).line,d=a(79952).P,f=a(1426).extendFlat,p=a(44467).templatedArray,m=(a(24695),a(9012)),g=a(5386).R,b=a(37281);i.exports=p("shape",{visible:f({},m.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:f({},m.legend,{editType:"calc+arraydraw"}),legendgroup:f({},m.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:f({},m.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:u({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:f({},m.legendrank,{editType:"calc+arraydraw"}),legendwidth:f({},m.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:f({},s.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},yref:f({},s.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:f({},c.color,{editType:"arraydraw"}),width:f({},c.width,{editType:"calc+arraydraw"}),dash:f({},d,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:g({},{keys:Object.keys(b)}),font:u({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})},5627:function(i,o,a){var s=a(71828),u=a(89298),c=a(21459),d=a(30477);function f(b){return m(b.line.width,b.xsizemode,b.x0,b.x1,b.path,!1)}function p(b){return m(b.line.width,b.ysizemode,b.y0,b.y1,b.path,!0)}function m(b,v,h,y,w,_){var x=b/2,T=_;if(v==="pixel"){var k=w?d.extractPathCoords(w,_?c.paramIsY:c.paramIsX):[h,y],S=s.aggNums(Math.max,null,k),C=s.aggNums(Math.min,null,k),M=C<0?Math.abs(C)+x:x,O=S>0?S+x:x;return{ppad:x,ppadplus:T?M:O,ppadminus:T?O:M}}return{ppad:x}}function g(b,v,h,y,w){var _=b.type==="category"||b.type==="multicategory"?b.r2c:b.d2c;if(v!==void 0)return[_(v),_(h)];if(y){var x,T,k,S,C=1/0,M=-1/0,O=y.match(c.segmentRE);for(b.type==="date"&&(_=d.decodeDate(_)),x=0;xM&&(M=S)));return M>=C?[C,M]:void 0}}i.exports=function(b){var v=b._fullLayout,h=s.filterVisible(v.shapes);if(h.length&&b._fullData.length)for(var y=0;y=re?ae-se:se-ae,-180/Math.PI*Math.atan2(he,Se)}(M,D,O,P):0),A.call(function(re){return re.call(d.font,I).attr({}),c.convertToTspans(re,v),re});var Z=function(re,ae,ie,se,he,Se,Oe){var Pe,Me,ce,we,K=he.label.textposition,ne=he.label.textangle,de=he.label.padding,_e=he.type,ue=Math.PI/180*Se,pe=Math.sin(ue),xe=Math.cos(ue),ye=he.label.xanchor,Te=he.label.yanchor;if(_e==="line"){K==="start"?(Pe=re,Me=ae):K==="end"?(Pe=ie,Me=se):(Pe=(re+ie)/2,Me=(ae+se)/2),ye==="auto"&&(ye=K==="start"?ne==="auto"?ie>re?"left":iere?"right":iere?"right":iere?"left":ie1&&(Pe.length!==2||Pe[1][0]!=="Z")&&(Y===0&&(Pe[0][0]="M"),E[q]=Pe,z(),B())}}()}}function re(he,Se){(function(Oe,Pe){if(E.length)for(var Me=0;MeMe?(K=Oe,ue="y0",ne=Me,pe="y1"):(K=Me,ue="y1",ne=Oe,pe="y0"),ut(_t),Ct(se,ae),function(be,Ce,Ge){var He=Ce.xref,et=Ce.yref,Ke=d.getFromId(Ge,He),Ye=d.getFromId(Ge,et),nt="";He==="paper"||Ke.autorange||(nt+=He),et==="paper"||Ye.autorange||(nt+=et),v.setClipUrl(be,nt?"clip"+Ge._fullLayout._uid+nt:null,Ge)}(re,ae,Q),Ze.moveFn=Ae==="move"?ht:Rt,Ze.altKey=_t.altKey)},doneFn:function(){S(Q)||(w(re),Wt(se),O(re,Q,ae),u.call("_guiRelayout",Q,he.getUpdateObj()))},clickFn:function(){S(Q)||Wt(se)}};function ut(_t){if(S(Q))Ae=null;else if(Be)Ae=_t.target.tagName==="path"?"move":_t.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var be=Ze.element.getBoundingClientRect(),Ce=be.right-be.left,Ge=be.bottom-be.top,He=_t.clientX-be.left,et=_t.clientY-be.top,Ke=!Ue&&Ce>Re&&Ge>Le&&!_t.shiftKey?y.getCursor(He/Ce,1-et/Ge):"move";w(re,Ke),Ae=Ke.split("-")[0]}}function ht(_t,be){if(ae.type==="path"){var Ce=function(et){return et},Ge=Ce,He=Ce;$e?qe("xanchor",ae.xanchor=tt(ce+_t)):(Ge=function(et){return tt(We(et)+_t)},ot&&ot.type==="date"&&(Ge=x.encodeDate(Ge))),Fe?qe("yanchor",ae.yanchor=it(we+be)):(He=function(et){return it(ze(et)+be)},dt&&dt.type==="date"&&(He=x.encodeDate(He))),qe("path",ae.path=D(Te,Ge,He))}else $e?qe("xanchor",ae.xanchor=tt(ce+_t)):(qe("x0",ae.x0=tt(Se+_t)),qe("x1",ae.x1=tt(Pe+_t))),Fe?qe("yanchor",ae.yanchor=it(we+be)):(qe("y0",ae.y0=it(Oe+be)),qe("y1",ae.y1=it(Me+be)));re.attr("d",T(Q,ae)),Ct(se,ae),m(Q,ie,ae,Xe)}function Rt(_t,be){if(Ue){var Ce=function(mt){return mt},Ge=Ce,He=Ce;$e?qe("xanchor",ae.xanchor=tt(ce+_t)):(Ge=function(mt){return tt(We(mt)+_t)},ot&&ot.type==="date"&&(Ge=x.encodeDate(Ge))),Fe?qe("yanchor",ae.yanchor=it(we+be)):(He=function(mt){return it(ze(mt)+be)},dt&&dt.type==="date"&&(He=x.encodeDate(He))),qe("path",ae.path=D(Te,Ge,He))}else if(Be){if(Ae==="resize-over-start-point"){var et=Se+_t,Ke=Fe?Oe-be:Oe+be;qe("x0",ae.x0=$e?et:tt(et)),qe("y0",ae.y0=Fe?Ke:it(Ke))}else if(Ae==="resize-over-end-point"){var Ye=Pe+_t,nt=Fe?Me-be:Me+be;qe("x1",ae.x1=$e?Ye:tt(Ye)),qe("y1",ae.y1=Fe?nt:it(nt))}}else{var ct=function(mt){return Ae.indexOf(mt)!==-1},yt=ct("n"),rt=ct("s"),Ft=ct("w"),Yt=ct("e"),Mt=yt?K+be:K,jt=rt?ne+be:ne,Lt=Ft?de+_t:de,gt=Yt?_e+_t:_e;Fe&&(yt&&(Mt=K-be),rt&&(jt=ne-be)),(!Fe&&jt-Mt>Le||Fe&&Mt-jt>Le)&&(qe(ue,ae[ue]=Fe?Mt:it(Mt)),qe(pe,ae[pe]=Fe?jt:it(jt))),gt-Lt>Re&&(qe(xe,ae[xe]=$e?Lt:tt(Lt)),qe(ye,ae[ye]=$e?gt:tt(gt)))}re.attr("d",T(Q,ae)),Ct(se,ae),m(Q,ie,ae,Xe)}function Ct(_t,be){($e||Fe)&&function(){var Ce=be.type!=="path",Ge=_t.selectAll(".visual-cue").data([0]);Ge.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var He=We($e?be.xanchor:c.midRange(Ce?[be.x0,be.x1]:x.extractPathCoords(be.path,_.paramIsX))),et=ze(Fe?be.yanchor:c.midRange(Ce?[be.y0,be.y1]:x.extractPathCoords(be.path,_.paramIsY)));if(He=x.roundPositionForSharpStrokeRendering(He,1),et=x.roundPositionForSharpStrokeRendering(et,1),$e&&Fe){var Ke="M"+(He-1-1)+","+(et-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ge.attr("d",Ke)}else if($e){var Ye="M"+(He-1-1)+","+(et-9-1)+"v18 h2 v-18 Z";Ge.attr("d",Ye)}else{var nt="M"+(He-9-1)+","+(et-1-1)+"h18 v2 h-18 Z";Ge.attr("d",nt)}}()}function Wt(_t){_t.selectAll(".visual-cue").remove()}y.init(Ze),St.node().onmousemove=ut}(E,Z,F,I,B,ee):F.editable===!0&&Z.style("pointer-events",V||b.opacity(Y)*q<=.5?"stroke":"all");Z.node().addEventListener("click",function(){return function(Q,re){if(C(Q)){var ae=+re.node().getAttribute("data-index");if(ae>=0){if(ae===Q._fullLayout._activeShapeIndex)return void P(Q);Q._fullLayout._activeShapeIndex=ae,Q._fullLayout._deactivateShape=P,k(Q)}}}(E,Z)})}F._input&&F.visible===!0&&(F.layer!=="below"?z(E._fullLayout._shapeUpperLayer):F.xref==="paper"||F.yref==="paper"?z(E._fullLayout._shapeLowerLayer):j._hadPlotinfo?z((j.mainplotinfo||j).shapelayer):z(E._fullLayout._shapeLowerLayer))}function O(E,I,A){var F=(A.xref+A.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");v.setClipUrl(E,F?"clip"+I._fullLayout._uid+F:null,I)}function D(E,I,A){return E.replace(_.segmentRE,function(F){var j=0,z=F.charAt(0),B=_.paramIsX[z],N=_.paramIsY[z],R=_.numParams[z];return z+F.substr(1).replace(_.paramRE,function(q){return j>=R||(B[j]?q=I(q):N[j]&&(q=A(q)),j++),q})})}function P(E){C(E)&&E._fullLayout._activeShapeIndex>=0&&(g(E),delete E._fullLayout._activeShapeIndex,k(E))}i.exports={draw:k,drawOne:M,eraseActiveShape:function(E){if(C(E)){g(E);var I=E._fullLayout._activeShapeIndex,A=(E.layout||{}).shapes||[];if(I0&&MH&&(G="X"),G});return U>H&&(Z=Z.replace(/[\s,]*X.*/,""),u.log("Ignoring extra params in segment "+W)),V+Z})}(f,m,b);if(f.xsizemode==="pixel"){var M=m(f.xanchor);v=M+f.x0,h=M+f.x1}else v=m(f.x0),h=m(f.x1);if(f.ysizemode==="pixel"){var O=b(f.yanchor);y=O-f.y0,w=O-f.y1}else y=b(f.y0),w=b(f.y1);if(_==="line")return"M"+v+","+y+"L"+h+","+w;if(_==="rect")return"M"+v+","+y+"H"+h+"V"+w+"H"+v+"Z";var D=(v+h)/2,P=(y+w)/2,E=Math.abs(D-v),I=Math.abs(P-y),A="A"+E+","+I,F=D+E+","+P;return"M"+F+A+" 0 1,1 "+D+","+(P-I)+A+" 0 0,1 "+F+"Z"}},89853:function(i,o,a){var s=a(34031);i.exports={moduleType:"component",name:"shapes",layoutAttributes:a(89827),supplyLayoutDefaults:a(84726),supplyDrawNewShapeDefaults:a(45547),includeBasePlot:a(76325)("shapes"),calcAutorange:a(5627),draw:s.draw,drawOne:s.drawOne}},37281:function(i){function o(c,d){return d?d.d2l(c):c}function a(c,d){return d?d.l2d(c):c}function s(c,d){return o(c.x1,d)-o(c.x0,d)}function u(c,d,f){return o(c.y1,f)-o(c.y0,f)}i.exports={x0:function(c){return c.x0},x1:function(c){return c.x1},y0:function(c){return c.y0},y1:function(c){return c.y1},slope:function(c,d,f){return c.type!=="line"?void 0:u(c,0,f)/s(c,d)},dx:s,dy:u,width:function(c,d){return Math.abs(s(c,d))},height:function(c,d,f){return Math.abs(u(c,0,f))},length:function(c,d,f){return c.type!=="line"?void 0:Math.sqrt(Math.pow(s(c,d),2)+Math.pow(u(c,0,f),2))},xcenter:function(c,d){return a((o(c.x1,d)+o(c.x0,d))/2,d)},ycenter:function(c,d,f){return a((o(c.y1,f)+o(c.y0,f))/2,f)}}},75067:function(i,o,a){var s=a(41940),u=a(35025),c=a(1426).extendDeepAll,d=a(30962).overrideAll,f=a(85594),p=a(44467).templatedArray,m=a(98292),g=p("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});i.exports=d(p("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:g,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:c(u({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:f.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:s({})},font:s({}),activebgcolor:{valType:"color",dflt:m.gripBgActiveColor},bgcolor:{valType:"color",dflt:m.railBgColor},bordercolor:{valType:"color",dflt:m.railBorderColor},borderwidth:{valType:"number",min:0,dflt:m.railBorderWidth},ticklen:{valType:"number",min:0,dflt:m.tickLength},tickcolor:{valType:"color",dflt:m.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:m.minorTickLength}}),"arraydraw","from-root")},98292:function(i){i.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},12343:function(i,o,a){var s=a(71828),u=a(85501),c=a(75067),d=a(98292).name,f=c.steps;function p(g,b,v){function h(T,k){return s.coerce(g,b,c,T,k)}for(var y=u(g,b,{name:"steps",handleItemDefaults:m}),w=0,_=0;_0&&(U=U.transition().duration(N.transition.duration).ease(N.transition.easing)),U.attr("transform",p(W-.5*b.gripWidth,N._dims.currentValueTotalHeight))}}function A(B,N){var R=B._dims;return R.inputAreaStart+b.stepInset+(R.inputAreaLength-2*b.stepInset)*Math.min(1,Math.max(0,N))}function F(B,N){var R=B._dims;return Math.min(1,Math.max(0,(N-b.stepInset-R.inputAreaStart)/(R.inputAreaLength-2*b.stepInset-2*R.inputAreaStart)))}function j(B,N,R){var q=R._dims,Y=f.ensureSingle(B,"rect",b.railTouchRectClass,function(L){L.call(P,N,B,R).style("pointer-events","all")});Y.attr({width:q.inputAreaLength,height:Math.max(q.inputAreaWidth,b.tickOffset+R.ticklen+q.labelHeight)}).call(c.fill,R.bgcolor).attr("opacity",0),d.setTranslate(Y,0,q.currentValueTotalHeight)}function z(B,N){var R=N._dims,q=R.inputAreaLength-2*b.railInset,Y=f.ensureSingle(B,"rect",b.railRectClass);Y.attr({width:q,height:b.railWidth,rx:b.railRadius,ry:b.railRadius,"shape-rendering":"crispEdges"}).call(c.stroke,N.bordercolor).call(c.fill,N.bgcolor).style("stroke-width",N.borderwidth+"px"),d.setTranslate(Y,b.railInset,.5*(R.inputAreaWidth-b.railWidth)+R.currentValueTotalHeight)}i.exports=function(B){var N=B._context.staticPlot,R=B._fullLayout,q=function(te,ee){for(var H=te[b.name],Z=[],G=0;G0?[0]:[]);function L(te){te._commandObserver&&(te._commandObserver.remove(),delete te._commandObserver),u.autoMargin(B,_(te))}if(Y.enter().append("g").classed(b.containerClassName,!0).style("cursor",N?null:"ew-resize"),Y.exit().each(function(){s.select(this).selectAll("g."+b.groupClassName).each(L)}).remove(),q.length!==0){var W=Y.selectAll("g."+b.groupClassName).data(q,x);W.enter().append("g").classed(b.groupClassName,!0),W.exit().each(L).remove();for(var U=0;U0||Pe<0){var K={left:[-Me,0],right:[Me,0],top:[0,-Me],bottom:[0,Me]}[O.side];Z.attr("transform",p(K[0],K[1]))}}}return U.call(V),Y&&(z?U.on(".opacity",null):(A=0,F=!0,U.text(C).on("mouseover.opacity",function(){s.select(this).transition().duration(v.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){s.select(this).transition().duration(v.HIDE_PLACEHOLDER).style("opacity",0)})),U.call(b.makeEditable,{gd:w}).on("edit",function(H){M!==void 0?d.call("_guiRestyle",w,S,H,M):d.call("_guiRelayout",w,S,H)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(V)}).on("input",function(H){this.text(H||" ").call(b.positionText,D.x,D.y)})),U.classed("js-placeholder",F),E}}},7163:function(i,o,a){var s=a(41940),u=a(22399),c=a(1426).extendFlat,d=a(30962).overrideAll,f=a(35025),p=a(44467).templatedArray,m=p("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});i.exports=d(p("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:m,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:c(f({editType:"arraydraw"}),{}),font:s({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:u.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},75909:function(i){i.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},64897:function(i,o,a){var s=a(71828),u=a(85501),c=a(7163),d=a(75909).name,f=c.buttons;function p(g,b,v){function h(y,w){return s.coerce(g,b,c,y,w)}h("visible",u(g,b,{name:"buttons",handleItemDefaults:m}).length>0)&&(h("active"),h("direction"),h("type"),h("showactive"),h("x"),h("y"),s.noneOrAll(g,b,["x","y"]),h("xanchor"),h("yanchor"),h("pad.t"),h("pad.r"),h("pad.b"),h("pad.l"),s.coerceFont(h,"font",v.font),h("bgcolor",v.paper_bgcolor),h("bordercolor"),h("borderwidth"))}function m(g,b){function v(h,y){return s.coerce(g,b,f,h,y)}v("visible",g.method==="skip"||Array.isArray(g.args))&&(v("method"),v("args"),v("args2"),v("label"),v("execute"))}i.exports=function(g,b){u(g,b,{name:d,handleItemDefaults:p})}},13689:function(i,o,a){var s=a(39898),u=a(74875),c=a(7901),d=a(91424),f=a(71828),p=a(63893),m=a(44467).arrayEditor,g=a(18783).LINE_SPACING,b=a(75909),v=a(25849);function h(A){return A._index}function y(A,F){return+A.attr(b.menuIndexAttrName)===F._index}function w(A,F,j,z,B,N,R,q){F.active=R,m(A.layout,b.name,F).applyUpdate("active",R),F.type==="buttons"?x(A,z,null,null,F):F.type==="dropdown"&&(B.attr(b.menuIndexAttrName,"-1"),_(A,z,B,N,F),q||x(A,z,B,N,F))}function _(A,F,j,z,B){var N=f.ensureSingle(F,"g",b.headerClassName,function(U){U.style("pointer-events","all")}),R=B._dims,q=B.active,Y=B.buttons[q]||b.blankHeaderOpts,L={y:B.pad.t,yPad:0,x:B.pad.l,xPad:0,index:0},W={width:R.headerWidth,height:R.headerHeight};N.call(T,B,Y,A).call(E,B,L,W),f.ensureSingle(F,"text",b.headerArrowClassName,function(U){U.attr("text-anchor","end").call(d.font,B.font).text(b.arrowSymbol[B.direction])}).attr({x:R.headerWidth-b.arrowOffsetX+B.pad.l,y:R.headerHeight/2+b.textOffsetY+B.pad.t}),N.on("click",function(){j.call(I,String(y(j,B)?-1:B._index)),x(A,F,j,z,B)}),N.on("mouseover",function(){N.call(M)}),N.on("mouseout",function(){N.call(O,B)}),d.setTranslate(F,R.lx,R.ly)}function x(A,F,j,z,B){j||(j=F).attr("pointer-events","all");var N=function(Z){return+Z.attr(b.menuIndexAttrName)==-1}(j)&&B.type!=="buttons"?[]:B.buttons,R=B.type==="dropdown"?b.dropdownButtonClassName:b.buttonClassName,q=j.selectAll("g."+R).data(f.filterVisible(N)),Y=q.enter().append("g").classed(R,!0),L=q.exit();B.type==="dropdown"?(Y.attr("opacity","0").transition().attr("opacity","1"),L.transition().attr("opacity","0").remove()):L.remove();var W=0,U=0,V=B._dims,te=["up","down"].indexOf(B.direction)!==-1;B.type==="dropdown"&&(te?U=V.headerHeight+b.gapButtonHeader:W=V.headerWidth+b.gapButtonHeader),B.type==="dropdown"&&B.direction==="up"&&(U=-b.gapButtonHeader+b.gapButton-V.openHeight),B.type==="dropdown"&&B.direction==="left"&&(W=-b.gapButtonHeader+b.gapButton-V.openWidth);var ee={x:V.lx+W+B.pad.l,y:V.ly+U+B.pad.t,yPad:b.gapButton,xPad:b.gapButton,index:0},H={l:ee.x+B.borderwidth,t:ee.y+B.borderwidth};q.each(function(Z,G){var X=s.select(this);X.call(T,B,Z,A).call(E,B,ee),X.on("click",function(){s.event.defaultPrevented||(Z.execute&&(Z.args2&&B.active===G?(w(A,B,0,F,j,z,-1),u.executeAPICommand(A,Z.method,Z.args2)):(w(A,B,0,F,j,z,G),u.executeAPICommand(A,Z.method,Z.args))),A.emit("plotly_buttonclicked",{menu:B,button:Z,active:B.active}))}),X.on("mouseover",function(){X.call(M)}),X.on("mouseout",function(){X.call(O,B),q.call(C,B)})}),q.call(C,B),te?(H.w=Math.max(V.openWidth,V.headerWidth),H.h=ee.y-H.t):(H.w=ee.x-H.l,H.h=Math.max(V.openHeight,V.headerHeight)),H.direction=B.direction,z&&(q.size()?function(Z,G,X,Q,re,ae){var ie,se,he,Se=re.direction,Oe=Se==="up"||Se==="down",Pe=re._dims,Me=re.active;if(Oe)for(se=0,he=0;he0?[0]:[]);if(B.enter().append("g").classed(b.containerClassName,!0).style("cursor","pointer"),B.exit().each(function(){s.select(this).selectAll("g."+b.headerGroupClassName).each(z)}).remove(),j.length!==0){var N=B.selectAll("g."+b.headerGroupClassName).data(j,h);N.enter().append("g").classed(b.headerGroupClassName,!0);for(var R=f.ensureSingle(B,"g",b.dropdownButtonGroupClassName,function(U){U.style("pointer-events","all")}),q=0;qE,F=f.barLength+2*f.barPad,j=f.barWidth+2*f.barPad,z=T,B=S+C;B+j>h&&(B=h-j);var N=this.container.selectAll("rect.scrollbar-horizontal").data(A?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-horizontal",!0).call(u.fill,f.barColor),A?(this.hbar=N.attr({rx:f.barRadius,ry:f.barRadius,x:z,y:B,width:F,height:j}),this._hbarXMin=z+F/2,this._hbarTranslateMax=E-F):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var R=C>I,q=f.barWidth+2*f.barPad,Y=f.barLength+2*f.barPad,L=T+k,W=S;L+q>v&&(L=v-q);var U=this.container.selectAll("rect.scrollbar-vertical").data(R?[0]:[]);U.exit().on(".drag",null).remove(),U.enter().append("rect").classed("scrollbar-vertical",!0).call(u.fill,f.barColor),R?(this.vbar=U.attr({rx:f.barRadius,ry:f.barRadius,x:L,y:W,width:q,height:Y}),this._vbarYMin=W+Y/2,this._vbarTranslateMax=I-Y):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var V=this.id,te=y-.5,ee=R?w+q+.5:w+.5,H=_-.5,Z=A?x+j+.5:x+.5,G=b._topdefs.selectAll("#"+V).data(A||R?[0]:[]);if(G.exit().remove(),G.enter().append("clipPath").attr("id",V).append("rect"),A||R?(this._clipRect=G.select("rect").attr({x:Math.floor(te),y:Math.floor(H),width:Math.ceil(ee)-Math.floor(te),height:Math.ceil(Z)-Math.floor(H)}),this.container.call(c.setClipUrl,V,this.gd),this.bg.attr({x:T,y:S,width:k,height:C})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(c.setClipUrl,null),delete this._clipRect),A||R){var X=s.behavior.drag().on("dragstart",function(){s.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(X);var Q=s.behavior.drag().on("dragstart",function(){s.event.sourceEvent.preventDefault(),s.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));A&&this.hbar.on(".drag",null).call(Q),R&&this.vbar.on(".drag",null).call(Q)}this.setTranslate(m,g)},f.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(c.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},f.prototype._onBoxDrag=function(){var p=this.translateX,m=this.translateY;this.hbar&&(p-=s.event.dx),this.vbar&&(m-=s.event.dy),this.setTranslate(p,m)},f.prototype._onBoxWheel=function(){var p=this.translateX,m=this.translateY;this.hbar&&(p+=s.event.deltaY),this.vbar&&(m+=s.event.deltaY),this.setTranslate(p,m)},f.prototype._onBarDrag=function(){var p=this.translateX,m=this.translateY;if(this.hbar){var g=p+this._hbarXMin,b=g+this._hbarTranslateMax;p=(d.constrain(s.event.x,g,b)-g)/(b-g)*(this.position.w-this._box.w)}if(this.vbar){var v=m+this._vbarYMin,h=v+this._vbarTranslateMax;m=(d.constrain(s.event.y,v,h)-v)/(h-v)*(this.position.h-this._box.h)}this.setTranslate(p,m)},f.prototype.setTranslate=function(p,m){var g=this.position.w-this._box.w,b=this.position.h-this._box.h;if(p=d.constrain(p||0,0,g),m=d.constrain(m||0,0,b),this.translateX=p,this.translateY=m,this.container.call(c.setTranslate,this._box.l-this.position.l-p,this._box.t-this.position.t-m),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+p-.5),y:Math.floor(this.position.t+m-.5)}),this.hbar){var v=p/g;this.hbar.call(c.setTranslate,p+v*this._hbarTranslateMax,m)}if(this.vbar){var h=m/b;this.vbar.call(c.setTranslate,p,m+h*this._vbarTranslateMax)}}},18783:function(i){i.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},24695:function(i){i.exports={axisRefDescription:function(o,a,s){return["If set to a",o,"axis id (e.g. *"+o+"* or","*"+o+"2*), the `"+o+"` position refers to a",o,"coordinate. If set to *paper*, the `"+o+"`","position refers to the distance from the",a,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",a,"("+s+"). If set to a",o,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",a,"of the domain of that axis: e.g.,","*"+o+"2 domain* refers to the domain of the second",o," axis and a",o,"position of 0.5 refers to the","point between the",a,"and the",s,"of the domain of the","second",o,"axis."].join(" ")}}},31562:function(i){i.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},74808:function(i){i.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},37822:function(i){i.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},50606:function(i){i.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},32396:function(i,o){o.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],o.STYLE=o.CSS_DECLARATIONS.map(function(a){return a.join(": ")+"; "}).join("")},77922:function(i,o){o.xmlns="http://www.w3.org/2000/xmlns/",o.svg="http://www.w3.org/2000/svg",o.xlink="http://www.w3.org/1999/xlink",o.svgAttrs={xmlns:o.svg,"xmlns:xlink":o.xlink}},8729:function(i,o,a){o.version=a(11506).version,a(7417),a(98847);for(var s=a(73972),u=o.register=s.register,c=a(10641),d=Object.keys(c),f=0;f",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},99863:function(i,o){o.isLeftAnchor=function(a){return a.xanchor==="left"||a.xanchor==="auto"&&a.x<=.3333333333333333},o.isCenterAnchor=function(a){return a.xanchor==="center"||a.xanchor==="auto"&&a.x>.3333333333333333&&a.x<.6666666666666666},o.isRightAnchor=function(a){return a.xanchor==="right"||a.xanchor==="auto"&&a.x>=.6666666666666666},o.isTopAnchor=function(a){return a.yanchor==="top"||a.yanchor==="auto"&&a.y>=.6666666666666666},o.isMiddleAnchor=function(a){return a.yanchor==="middle"||a.yanchor==="auto"&&a.y>.3333333333333333&&a.y<.6666666666666666},o.isBottomAnchor=function(a){return a.yanchor==="bottom"||a.yanchor==="auto"&&a.y<=.3333333333333333}},26348:function(i,o,a){var s=a(64872),u=s.mod,c=s.modHalf,d=Math.PI,f=2*d;function p(v){return Math.abs(v[1]-v[0])>f-1e-14}function m(v,h){return c(h-v,f)}function g(v,h){if(p(h))return!0;var y,w;h[0](w=u(w,f))&&(w+=f);var _=u(v,f),x=_+f;return _>=y&&_<=w||x>=y&&x<=w}function b(v,h,y,w,_,x,T){_=_||0,x=x||0;var k,S,C,M,O,D=p([y,w]);function P(F,j){return[F*Math.cos(j)+_,x-F*Math.sin(j)]}D?(k=0,S=d,C=f):y=_&&v<=x);var _,x},pathArc:function(v,h,y,w,_){return b(null,v,h,y,w,_,0)},pathSector:function(v,h,y,w,_){return b(null,v,h,y,w,_,1)},pathAnnulus:function(v,h,y,w,_,x){return b(v,h,y,w,_,x,1)}}},73627:function(i,o){var a=Array.isArray,s=ArrayBuffer,u=DataView;function c(p){return s.isView(p)&&!(p instanceof u)}function d(p){return a(p)||c(p)}function f(p,m,g){if(d(p)){if(d(p[0])){for(var b=g,v=0;vx.max?w.set(_):w.set(+y)}},integer:{coerceFunction:function(y,w,_,x){y%1||!s(y)||x.min!==void 0&&yx.max?w.set(_):w.set(+y)}},string:{coerceFunction:function(y,w,_,x){if(typeof y!="string"){var T=typeof y=="number";x.strict!==!0&&T?w.set(String(y)):w.set(_)}else x.noBlank&&!y?w.set(_):w.set(y)}},color:{coerceFunction:function(y,w,_){u(y).isValid()?w.set(y):w.set(_)}},colorlist:{coerceFunction:function(y,w,_){Array.isArray(y)&&y.length&&y.every(function(x){return u(x).isValid()})?w.set(y):w.set(_)}},colorscale:{coerceFunction:function(y,w,_){w.set(d.get(y,_))}},angle:{coerceFunction:function(y,w,_){y==="auto"?w.set("auto"):s(y)?w.set(b(+y,360)):w.set(_)}},subplotid:{coerceFunction:function(y,w,_,x){var T=x.regex||g(_);typeof y=="string"&&T.test(y)?w.set(y):w.set(_)},validateFunction:function(y,w){var _=w.dflt;return y===_||typeof y=="string"&&!!g(_).test(y)}},flaglist:{coerceFunction:function(y,w,_,x){if((x.extras||[]).indexOf(y)===-1)if(typeof y=="string"){for(var T=y.split("+"),k=0;k=s&&N<=u?N:g}if(typeof N!="string"&&typeof N!="number")return g;N=String(N);var W=C(R),U=N.charAt(0);!W||U!=="G"&&U!=="g"||(N=N.substr(1),R="");var V=W&&R.substr(0,7)==="chinese",te=N.match(V?k:T);if(!te)return g;var ee=te[1],H=te[3]||"1",Z=Number(te[5]||1),G=Number(te[7]||0),X=Number(te[9]||0),Q=Number(te[11]||0);if(W){if(ee.length===2)return g;var re;ee=Number(ee);try{var ae=_.getComponentMethod("calendars","getCal")(R);if(V){var ie=H.charAt(H.length-1)==="i";H=parseInt(H,10),re=ae.newDate(ee,ae.toMonthIndex(ee,H,ie),Z)}else re=ae.newDate(ee,Number(H),Z)}catch{return g}return re?(re.toJD()-w)*b+G*v+X*h+Q*y:g}ee=ee.length===2?(Number(ee)+2e3-S)%100+S:Number(ee),H-=1;var se=new Date(Date.UTC(2e3,H,Z,G,X));return se.setUTCFullYear(ee),se.getUTCMonth()!==H||se.getUTCDate()!==Z?g:se.getTime()+Q*y},s=o.MIN_MS=o.dateTime2ms("-9999"),u=o.MAX_MS=o.dateTime2ms("9999-12-31 23:59:59.9999"),o.isDateTime=function(N,R){return o.dateTime2ms(N,R)!==g};var O=90*b,D=3*v,P=5*h;function E(N,R,q,Y,L){if((R||q||Y||L)&&(N+=" "+M(R,2)+":"+M(q,2),(Y||L)&&(N+=":"+M(Y,2),L))){for(var W=4;L%10==0;)W-=1,L/=10;N+="."+M(L,W)}return N}o.ms2DateTime=function(N,R,q){if(typeof N!="number"||!(N>=s&&N<=u))return g;R||(R=0);var Y,L,W,U,V,te,ee=Math.floor(10*p(N+.05,1)),H=Math.round(N-ee/10);if(C(q)){var Z=Math.floor(H/b)+w,G=Math.floor(p(N,b));try{Y=_.getComponentMethod("calendars","getCal")(q).fromJD(Z).formatDate("yyyy-mm-dd")}catch{Y=x("G%Y-%m-%d")(new Date(H))}if(Y.charAt(0)==="-")for(;Y.length<11;)Y="-0"+Y.substr(1);else for(;Y.length<10;)Y="0"+Y;L=R=s+b&&N<=u-b))return g;var R=Math.floor(10*p(N+.05,1)),q=new Date(Math.round(N-R/10));return E(c("%Y-%m-%d")(q),q.getHours(),q.getMinutes(),q.getSeconds(),10*q.getUTCMilliseconds()+R)},o.cleanDate=function(N,R,q){if(N===g)return R;if(o.isJSDate(N)||typeof N=="number"&&isFinite(N)){if(C(q))return f.error("JS Dates and milliseconds are incompatible with world calendars",N),R;if(!(N=o.ms2DateTimeLocal(+N))&&R!==void 0)return R}else if(!o.isDateTime(N,q))return f.error("unrecognized date",N),R;return N};var I=/%\d?f/g,A=/%h/g,F={1:"1",2:"1",3:"2",4:"2"};function j(N,R,q,Y){N=N.replace(I,function(W){var U=Math.min(+W.charAt(1)||6,6);return(R/1e3%1+2).toFixed(U).substr(2).replace(/0+$/,"")||"0"});var L=new Date(Math.floor(R+.05));if(N=N.replace(A,function(){return F[q("%q")(L)]}),C(Y))try{N=_.getComponentMethod("calendars","worldCalFmt")(N,R,Y)}catch{return"Invalid"}return q(N)(L)}var z=[59,59.9,59.99,59.999,59.9999];o.formatDate=function(N,R,q,Y,L,W){if(L=C(L)&&L,!R)if(q==="y")R=W.year;else if(q==="m")R=W.month;else{if(q!=="d")return function(U,V){var te=p(U+.05,b),ee=M(Math.floor(te/v),2)+":"+M(p(Math.floor(te/h),60),2);if(V!=="M"){d(V)||(V=0);var H=(100+Math.min(p(U/y,60),z[V])).toFixed(V).substr(1);V>0&&(H=H.replace(/0+$/,"").replace(/[\.]$/,"")),ee+=":"+H}return ee}(N,q)+` +`,Jce=typeof NS!="string"?hs` + animation: ${NS} 2s ease-in-out 0.5s infinite; + `:null,ede=typeof FS!="string"?hs` + &::after { + animation: ${FS} 2s linear 0.5s infinite; + } + `:null,tde=Dt("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(Fn(({theme:e})=>{const t=ZM(e.shape.borderRadius)||"px",n=Xl(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:ar(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:r})=>r.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:r})=>r.hasChildren&&!r.width,style:{maxWidth:"fit-content"}},{props:({ownerState:r})=>r.hasChildren&&!r.height,style:{height:"auto"}},{props:{animation:"pulse"},style:Jce||{animation:`${NS} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient( + 90deg, + transparent, + ${(e.vars||e).palette.action.hover}, + transparent + )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:ede||{"&::after":{animation:`${FS} 2s linear 0.5s infinite`}}}]}})),nde=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiSkeleton"}),{animation:l="pulse",className:i,component:o="span",height:a,style:s,variant:u="text",width:c,...d}=r,f={...r,animation:l,component:o,variant:u,hasChildren:!!d.children},p=Qce(f);return Se.jsx(tde,{as:o,ref:n,className:ln(p.root,i),ownerState:f,...d,style:{width:c,height:a,...s}})});function sB(e){return gn("MuiTooltip",e)}const rde=fn("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),la=rde;function ade(e){return Math.round(e*1e5)/1e5}const ode=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:l,placement:i}=e,o={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",l&&"touch",`tooltipPlacement${Qt(i.split("-")[0])}`],arrow:["arrow"]};return vn(o,sB,t)},ide=Dt(c5,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Fn(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${la.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${la.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${la.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${la.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${la.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${la.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${la.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${la.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),lde=Dt("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Qt(n.placement.split("-")[0])}`]]}})(Fn(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:ar(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${la.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${la.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${la.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${la.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${ade(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${la.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${la.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${la.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${la.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${la.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${la.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${la.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${la.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${la.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${la.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),sde=Dt("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(Fn(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:ar(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let w0=!1;const v7=new yb;let mp={x:0,y:0};function _0(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const ude=ge.forwardRef(function(t,n){var We,Ge,ot;const r=jn({props:t,name:"MuiTooltip"}),{arrow:l=!1,children:i,classes:o,components:a={},componentsProps:s={},describeChild:u=!1,disableFocusListener:c=!1,disableHoverListener:d=!1,disableInteractive:f=!1,disableTouchListener:p=!1,enterDelay:h=100,enterNextDelay:g=0,enterTouchDelay:b=700,followCursor:v=!1,id:m,leaveDelay:y=0,leaveTouchDelay:x=1500,onClose:_,onOpen:w,open:S,placement:k="bottom",PopperComponent:C,PopperProps:T={},slotProps:M={},slots:O={},title:D,TransitionComponent:P=Jd,TransitionProps:E,...I}=r,A=ge.isValidElement(i)?i:Se.jsx("span",{children:i}),F=pi(),j=Tc(),[B,z]=ge.useState(),[N,R]=ge.useState(null),q=ge.useRef(!1),Y=f||v,L=Wu(),W=Wu(),H=Wu(),G=Wu(),[te,ee]=ou({controlled:S,default:!1,name:"Tooltip",state:"open"});let U=te;const Q=ls(m),V=ge.useRef(),X=ho(()=>{V.current!==void 0&&(document.body.style.WebkitUserSelect=V.current,V.current=void 0),G.clear()});ge.useEffect(()=>X,[X]);const K=Je=>{v7.clear(),w0=!0,ee(!0),w&&!U&&w(Je)},ne=ho(Je=>{v7.start(800+y,()=>{w0=!1}),ee(!1),_&&U&&_(Je),L.start(F.transitions.duration.shortest,()=>{q.current=!1})}),ae=Je=>{q.current&&Je.type!=="touchstart"||(B&&B.removeAttribute("title"),W.clear(),H.clear(),h||w0&&g?W.start(w0?g:h,()=>{K(Je)}):K(Je))},ie=Je=>{W.clear(),H.start(y,()=>{ne(Je)})},[,se]=ge.useState(!1),pe=Je=>{hy(Je.target)||(se(!1),ie(Je))},ke=Je=>{B||z(Je.currentTarget),hy(Je.target)&&(se(!0),ae(Je))},Ce=Je=>{q.current=!0;const st=A.props;st.onTouchStart&&st.onTouchStart(Je)},Oe=Je=>{Ce(Je),H.clear(),L.clear(),X(),V.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",G.start(b,()=>{document.body.style.WebkitUserSelect=V.current,ae(Je)})},Pe=Je=>{A.props.onTouchEnd&&A.props.onTouchEnd(Je),X(),H.start(x,()=>{ne(Je)})};ge.useEffect(()=>{if(!U)return;function Je(st){st.key==="Escape"&&ne(st)}return document.addEventListener("keydown",Je),()=>{document.removeEventListener("keydown",Je)}},[ne,U]);const ce=Er(_f(A),z,n);!D&&D!==0&&(U=!1);const we=ge.useRef(),Z=Je=>{const st=A.props;st.onMouseMove&&st.onMouseMove(Je),mp={x:Je.clientX,y:Je.clientY},we.current&&we.current.update()},re={},de=typeof D=="string";u?(re.title=!U&&de&&!d?D:null,re["aria-describedby"]=U?Q:null):(re["aria-label"]=de?D:null,re["aria-labelledby"]=U&&!de?Q:null);const _e={...re,...I,...A.props,className:ln(I.className,A.props.className),onTouchStart:Ce,ref:ce,...v?{onMouseMove:Z}:{}},ue={};p||(_e.onTouchStart=Oe,_e.onTouchEnd=Pe),d||(_e.onMouseOver=_0(ae,_e.onMouseOver),_e.onMouseLeave=_0(ie,_e.onMouseLeave),Y||(ue.onMouseOver=ae,ue.onMouseLeave=ie)),c||(_e.onFocus=_0(ke,_e.onFocus),_e.onBlur=_0(pe,_e.onBlur),Y||(ue.onFocus=ke,ue.onBlur=pe));const me=ge.useMemo(()=>{var st;let Je=[{name:"arrow",enabled:!!N,options:{element:N,padding:4}}];return(st=T.popperOptions)!=null&&st.modifiers&&(Je=Je.concat(T.popperOptions.modifiers)),{...T.popperOptions,modifiers:Je}},[N,T]),xe={...r,isRtl:j,arrow:l,disableInteractive:Y,placement:k,PopperComponentProp:C,touch:q.current},ye=ode(xe),Te=O.popper??a.Popper??ide,Ae=O.transition??a.Transition??P??Jd,Le=O.tooltip??a.Tooltip??lde,Re=O.arrow??a.Arrow??sde,Ie=wd(Te,{...T,...M.popper??s.popper,className:ln(ye.popper,T==null?void 0:T.className,(We=M.popper??s.popper)==null?void 0:We.className)},xe),Ne=wd(Ae,{...E,...M.transition??s.transition},xe),ze=wd(Le,{...M.tooltip??s.tooltip,className:ln(ye.tooltip,(Ge=M.tooltip??s.tooltip)==null?void 0:Ge.className)},xe),qe=wd(Re,{...M.arrow??s.arrow,className:ln(ye.arrow,(ot=M.arrow??s.arrow)==null?void 0:ot.className)},xe);return Se.jsxs(ge.Fragment,{children:[ge.cloneElement(A,_e),Se.jsx(Te,{as:C??c5,placement:k,anchorEl:v?{getBoundingClientRect:()=>({top:mp.y,left:mp.x,right:mp.x,bottom:mp.y,width:0,height:0})}:B,popperRef:we,open:B?U:!1,id:Q,transition:!0,...ue,...Ie,popperOptions:me,children:({TransitionProps:Je})=>Se.jsx(Ae,{timeout:F.transitions.duration.shorter,...Je,...Ne,children:Se.jsxs(Le,{...ze,children:[D,l?Se.jsx(Re,{...qe,ref:R}):null]})})})]})}),cde=ude,dde=Object.freeze(Object.defineProperty({__proto__:null,default:cde,getTooltipUtilityClass:sB,tooltipClasses:la},Symbol.toStringTag,{value:"Module"}));function fde(e){return gn("MuiTab",e)}const yi=fn("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),pde=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:l,icon:i,label:o,selected:a,disabled:s}=e,u={root:["root",i&&o&&"labelIcon",`textColor${Qt(n)}`,r&&"fullWidth",l&&"wrapped",a&&"selected",s&&"disabled"],icon:["iconWrapper","icon"]};return vn(u,fde,t)},hde=Dt(Nl,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Qt(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${yi.iconWrapper}`]:t.iconWrapper},{[`& .${yi.icon}`]:t.icon}]}})(Fn(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="top",style:{[`& > .${yi.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${yi.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${yi.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${yi.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${yi.selected}`]:{opacity:1},[`&.${yi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${yi.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${yi.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${yi.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${yi.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),jS=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiTab"}),{className:l,disabled:i=!1,disableFocusRipple:o=!1,fullWidth:a,icon:s,iconPosition:u="top",indicator:c,label:d,onChange:f,onClick:p,onFocus:h,selected:g,selectionFollowsFocus:b,textColor:v="inherit",value:m,wrapped:y=!1,...x}=r,_={...r,disabled:i,disableFocusRipple:o,selected:g,icon:!!s,iconPosition:u,label:!!d,fullWidth:a,textColor:v,wrapped:y},w=pde(_),S=s&&d&&ge.isValidElement(s)?ge.cloneElement(s,{className:ln(w.icon,s.props.className)}):s,k=T=>{!g&&f&&f(T,m),p&&p(T)},C=T=>{b&&!g&&f&&f(T,m),h&&h(T)};return Se.jsxs(hde,{focusRipple:!o,className:ln(w.root,l),ref:n,role:"tab","aria-selected":g,disabled:i,onClick:k,onFocus:C,ownerState:_,tabIndex:g?0:-1,...x,children:[u==="top"||u==="start"?Se.jsxs(ge.Fragment,{children:[S,d]}):Se.jsxs(ge.Fragment,{children:[d,S]}),c]})}),uB=ge.createContext();function cB(e){return gn("MuiTable",e)}const mde=fn("MuiTable",["root","stickyHeader"]),gde=mde,vde=e=>{const{classes:t,stickyHeader:n}=e;return vn({root:["root",n&&"stickyHeader"]},cB,t)},yde=Dt("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(Fn(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),y7="table",bde=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiTable"}),{className:l,component:i=y7,padding:o="normal",size:a="medium",stickyHeader:s=!1,...u}=r,c={...r,component:i,padding:o,size:a,stickyHeader:s},d=vde(c),f=ge.useMemo(()=>({padding:o,size:a,stickyHeader:s}),[o,a,s]);return Se.jsx(uB.Provider,{value:f,children:Se.jsx(yde,{as:i,role:i===y7?null:"table",ref:n,className:ln(d.root,l),ownerState:c,...u})})}),h5=bde,xde=Object.freeze(Object.defineProperty({__proto__:null,default:h5,getTableUtilityClass:cB,tableClasses:gde},Symbol.toStringTag,{value:"Module"})),pg=ge.createContext();function dB(e){return gn("MuiTableBody",e)}const wde=fn("MuiTableBody",["root"]),_de=wde,Tde=e=>{const{classes:t}=e;return vn({root:["root"]},dB,t)},Sde=Dt("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),kde={variant:"body"},b7="tbody",Cde=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiTableBody"}),{className:l,component:i=b7,...o}=r,a={...r,component:i},s=Tde(a);return Se.jsx(pg.Provider,{value:kde,children:Se.jsx(Sde,{className:ln(s.root,l),as:i,ref:n,role:i===b7?null:"rowgroup",ownerState:a,...o})})}),m5=Cde,Mde=Object.freeze(Object.defineProperty({__proto__:null,default:m5,getTableBodyUtilityClass:dB,tableBodyClasses:_de},Symbol.toStringTag,{value:"Module"}));function fB(e){return gn("MuiTableCell",e)}const Pde=fn("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),pB=Pde,Ode=e=>{const{classes:t,variant:n,align:r,padding:l,size:i,stickyHeader:o}=e,a={root:["root",n,o&&"stickyHeader",r!=="inherit"&&`align${Qt(r)}`,l!=="normal"&&`padding${Qt(l)}`,`size${Qt(i)}`]};return vn(a,fB,t)},Ade=Dt("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Qt(n.size)}`],n.padding!=="normal"&&t[`padding${Qt(n.padding)}`],n.align!=="inherit"&&t[`align${Qt(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(Fn(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?$l(ar(e.palette.divider,1),.88):Il(ar(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${pB.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),Dde=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiTableCell"}),{align:l="inherit",className:i,component:o,padding:a,scope:s,size:u,sortDirection:c,variant:d,...f}=r,p=ge.useContext(uB),h=ge.useContext(pg),g=h&&h.variant==="head";let b;o?b=o:b=g?"th":"td";let v=s;b==="td"?v=void 0:!v&&g&&(v="col");const m=d||h&&h.variant,y={...r,align:l,component:b,padding:a||(p&&p.padding?p.padding:"normal"),size:u||(p&&p.size?p.size:"medium"),sortDirection:c,stickyHeader:m==="head"&&p&&p.stickyHeader,variant:m},x=Ode(y);let _=null;return c&&(_=c==="asc"?"ascending":"descending"),Se.jsx(Ade,{as:b,ref:n,className:ln(x.root,i),"aria-sort":_,scope:v,ownerState:y,...f})}),Mi=Dde,Ede=Object.freeze(Object.defineProperty({__proto__:null,default:Mi,getTableCellUtilityClass:fB,tableCellClasses:pB},Symbol.toStringTag,{value:"Module"}));function Rde(e){return gn("MuiTableContainer",e)}fn("MuiTableContainer",["root"]);const Lde=e=>{const{classes:t}=e;return vn({root:["root"]},Rde,t)},Ide=Dt("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),$de=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiTableContainer"}),{className:l,component:i="div",...o}=r,a={...r,component:i},s=Lde(a);return Se.jsx(Ide,{ref:n,as:i,className:ln(s.root,l),ownerState:a,...o})});function hB(e){return gn("MuiTableFooter",e)}const Nde=fn("MuiTableFooter",["root"]),Fde=Nde,jde=e=>{const{classes:t}=e;return vn({root:["root"]},hB,t)},zde=Dt("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),Bde={variant:"footer"},x7="tfoot",Wde=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiTableFooter"}),{className:l,component:i=x7,...o}=r,a={...r,component:i},s=jde(a);return Se.jsx(pg.Provider,{value:Bde,children:Se.jsx(zde,{as:i,className:ln(s.root,l),ref:n,role:i===x7?null:"rowgroup",ownerState:a,...o})})}),qde=Wde,Ude=Object.freeze(Object.defineProperty({__proto__:null,default:qde,getTableFooterUtilityClass:hB,tableFooterClasses:Fde},Symbol.toStringTag,{value:"Module"}));function mB(e){return gn("MuiTableHead",e)}const Hde=fn("MuiTableHead",["root"]),Vde=Hde,Gde=e=>{const{classes:t}=e;return vn({root:["root"]},mB,t)},Yde=Dt("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Xde={variant:"head"},w7="thead",Kde=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiTableHead"}),{className:l,component:i=w7,...o}=r,a={...r,component:i},s=Gde(a);return Se.jsx(pg.Provider,{value:Xde,children:Se.jsx(Yde,{as:i,className:ln(s.root,l),ref:n,role:i===w7?null:"rowgroup",ownerState:a,...o})})}),g5=Kde,Zde=Object.freeze(Object.defineProperty({__proto__:null,default:g5,getTableHeadUtilityClass:mB,tableHeadClasses:Vde},Symbol.toStringTag,{value:"Module"}));function gB(e){return gn("MuiToolbar",e)}const Qde=fn("MuiToolbar",["root","gutters","regular","dense"]),Jde=Qde,efe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return vn({root:["root",!n&&"gutters",r]},gB,t)},tfe=Dt("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(Fn(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),nfe=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiToolbar"}),{className:l,component:i="div",disableGutters:o=!1,variant:a="regular",...s}=r,u={...r,component:i,disableGutters:o,variant:a},c=efe(u);return Se.jsx(tfe,{as:i,className:ln(c.root,l),ref:n,ownerState:u,...s})}),vB=nfe,rfe=Object.freeze(Object.defineProperty({__proto__:null,default:vB,getToolbarUtilityClass:gB,toolbarClasses:Jde},Symbol.toStringTag,{value:"Module"})),yB=kr(Se.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),bB=kr(Se.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),afe=ge.forwardRef(function(t,n){const{backIconButtonProps:r,count:l,disabled:i=!1,getItemAriaLabel:o,nextIconButtonProps:a,onPageChange:s,page:u,rowsPerPage:c,showFirstButton:d,showLastButton:f,slots:p={},slotProps:h={},...g}=t,b=Tc(),v=z=>{s(z,0)},m=z=>{s(z,u-1)},y=z=>{s(z,u+1)},x=z=>{s(z,Math.max(0,Math.ceil(l/c)-1))},_=p.firstButton??Fo,w=p.lastButton??Fo,S=p.nextButton??Fo,k=p.previousButton??Fo,C=p.firstButtonIcon??Nce,T=p.lastButtonIcon??Fce,M=p.nextButtonIcon??bB,O=p.previousButtonIcon??yB,D=b?w:_,P=b?S:k,E=b?k:S,I=b?_:w,A=b?h.lastButton:h.firstButton,F=b?h.nextButton:h.previousButton,j=b?h.previousButton:h.nextButton,B=b?h.firstButton:h.lastButton;return Se.jsxs("div",{ref:n,...g,children:[d&&Se.jsx(D,{onClick:v,disabled:i||u===0,"aria-label":o("first",u),title:o("first",u),...A,children:b?Se.jsx(T,{...h.lastButtonIcon}):Se.jsx(C,{...h.firstButtonIcon})}),Se.jsx(P,{onClick:m,disabled:i||u===0,color:"inherit","aria-label":o("previous",u),title:o("previous",u),...F??r,children:b?Se.jsx(M,{...h.nextButtonIcon}):Se.jsx(O,{...h.previousButtonIcon})}),Se.jsx(E,{onClick:y,disabled:i||(l!==-1?u>=Math.ceil(l/c)-1:!1),color:"inherit","aria-label":o("next",u),title:o("next",u),...j??a,children:b?Se.jsx(O,{...h.previousButtonIcon}):Se.jsx(M,{...h.nextButtonIcon})}),f&&Se.jsx(I,{onClick:x,disabled:i||u>=Math.ceil(l/c)-1,"aria-label":o("last",u),title:o("last",u),...B,children:b?Se.jsx(C,{...h.firstButtonIcon}):Se.jsx(T,{...h.lastButtonIcon})})]})});function xB(e){return gn("MuiTablePagination",e)}const ofe=fn("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),Ed=ofe;var _7;const ife=Dt(Mi,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(Fn(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),lfe=Dt(vB,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({[`& .${Ed.actions}`]:t.actions,...t.toolbar})})(Fn(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Ed.actions}`]:{flexShrink:0,marginLeft:20}}))),sfe=Dt("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),ufe=Dt("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(Fn(({theme:e})=>({...e.typography.body2,flexShrink:0}))),cfe=Dt(Tf,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({[`& .${Ed.selectIcon}`]:t.selectIcon,[`& .${Ed.select}`]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Ed.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),dfe=Dt(Yh,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),ffe=Dt("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(Fn(({theme:e})=>({...e.typography.body2,flexShrink:0})));function pfe({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function hfe(e){return`Go to ${e} page`}const mfe=e=>{const{classes:t}=e;return vn({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},xB,t)},gfe=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiTablePagination"}),{ActionsComponent:l=afe,backIconButtonProps:i,className:o,colSpan:a,component:s=Mi,count:u,disabled:c=!1,getItemAriaLabel:d=hfe,labelDisplayedRows:f=pfe,labelRowsPerPage:p="Rows per page:",nextIconButtonProps:h,onPageChange:g,onRowsPerPageChange:b,page:v,rowsPerPage:m,rowsPerPageOptions:y=[10,25,50,100],SelectProps:x={},showFirstButton:_=!1,showLastButton:w=!1,slotProps:S={},slots:k={},...C}=r,T=r,M=mfe(T),O=(S==null?void 0:S.select)??x,D=O.native?"option":dfe;let P;(s===Mi||s==="td")&&(P=a||1e3);const E=ls(O.id),I=ls(O.labelId),A=()=>u===-1?(v+1)*m:m===-1?u:Math.min(u,(v+1)*m);return Se.jsx(ife,{colSpan:P,ref:n,as:s,ownerState:T,className:ln(M.root,o),...C,children:Se.jsxs(lfe,{className:M.toolbar,children:[Se.jsx(sfe,{className:M.spacer}),y.length>1&&Se.jsx(ufe,{className:M.selectLabel,id:I,children:p}),y.length>1&&Se.jsx(cfe,{variant:"standard",...!O.variant&&{input:_7||(_7=Se.jsx(Pb,{}))},value:m,onChange:b,id:E,labelId:I,...O,classes:{...O.classes,root:ln(M.input,M.selectRoot,(O.classes||{}).root),select:ln(M.select,(O.classes||{}).select),icon:ln(M.selectIcon,(O.classes||{}).icon)},disabled:c,children:y.map(F=>ge.createElement(D,{...!_y(D)&&{ownerState:T},className:M.menuItem,key:F.label?F.label:F,value:F.value?F.value:F},F.label?F.label:F))}),Se.jsx(ffe,{className:M.displayedRows,children:f({from:u===0?0:v*m+1,to:A(),count:u===-1?-1:u,page:v})}),Se.jsx(l,{className:M.actions,backIconButtonProps:i,count:u,nextIconButtonProps:h,onPageChange:g,page:v,rowsPerPage:m,showFirstButton:_,showLastButton:w,slotProps:S.actions,slots:k.actions,getItemAriaLabel:d,disabled:c})]})})}),vfe=gfe,yfe=Object.freeze(Object.defineProperty({__proto__:null,default:vfe,getTablePaginationUtilityClass:xB,tablePaginationClasses:Ed},Symbol.toStringTag,{value:"Module"}));function wB(e){return gn("MuiTableRow",e)}const bfe=fn("MuiTableRow",["root","selected","hover","head","footer"]),zS=bfe,xfe=e=>{const{classes:t,selected:n,hover:r,head:l,footer:i}=e;return vn({root:["root",n&&"selected",r&&"hover",l&&"head",i&&"footer"]},wB,t)},wfe=Dt("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(Fn(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${zS.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${zS.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ar(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ar(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),T7="tr",_fe=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiTableRow"}),{className:l,component:i=T7,hover:o=!1,selected:a=!1,...s}=r,u=ge.useContext(pg),c={...r,component:i,hover:o,selected:a,head:u&&u.variant==="head",footer:u&&u.variant==="footer"},d=xfe(c);return Se.jsx(wfe,{as:i,ref:n,className:ln(d.root,l),role:i===T7?null:"row",ownerState:c,...s})}),Cm=_fe,Tfe=Object.freeze(Object.defineProperty({__proto__:null,default:Cm,getTableRowUtilityClass:wB,tableRowClasses:zS},Symbol.toStringTag,{value:"Module"})),Sfe=kr(Se.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function _B(e){return gn("MuiTableSortLabel",e)}const kfe=fn("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc","directionDesc","directionAsc"]),yv=kfe,Cfe=e=>{const{classes:t,direction:n,active:r}=e,l={root:["root",r&&"active",`direction${Qt(n)}`],icon:["icon",`iconDirection${Qt(n)}`]};return vn(l,_B,t)},Mfe=Dt(Nl,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})(Fn(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${yv.icon}`]:{opacity:.5}},[`&.${yv.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${yv.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}}))),Pfe=Dt("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${Qt(n.direction)}`]]}})(Fn(({theme:e})=>({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none",variants:[{props:{direction:"desc"},style:{transform:"rotate(0deg)"}},{props:{direction:"asc"},style:{transform:"rotate(180deg)"}}]}))),Ofe=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiTableSortLabel"}),{active:l=!1,children:i,className:o,direction:a="asc",hideSortIcon:s=!1,IconComponent:u=Sfe,...c}=r,d={...r,active:l,direction:a,hideSortIcon:s,IconComponent:u},f=Cfe(d);return Se.jsxs(Mfe,{className:ln(f.root,o),component:"span",disableRipple:!0,ownerState:d,ref:n,...c,children:[i,s&&!l?null:Se.jsx(Pfe,{as:u,className:ln(f.icon),ownerState:d})]})}),Afe=Ofe,Dfe=Object.freeze(Object.defineProperty({__proto__:null,default:Afe,getTableSortLabelUtilityClass:_B,tableSortLabelClasses:yv},Symbol.toStringTag,{value:"Module"}));function Efe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Rfe(e,t,n,r={},l=()=>{}){const{ease:i=Efe,duration:o=300}=r;let a=null;const s=t[e];let u=!1;const c=()=>{u=!0},d=f=>{if(u){l(new Error("Animation cancelled"));return}a===null&&(a=f);const p=Math.min(1,(f-a)/o);if(t[e]=i(p)*(n-s)+s,p>=1){requestAnimationFrame(()=>{l(null)});return}requestAnimationFrame(d)};return s===n?(l(new Error("Element already at target position")),c):(requestAnimationFrame(d),c)}const Lfe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Ife(e){const{onChange:t,...n}=e,r=ge.useRef(),l=ge.useRef(null),i=()=>{r.current=l.current.offsetHeight-l.current.clientHeight};return Vo(()=>{const o=ug(()=>{const s=r.current;i(),s!==r.current&&t(r.current)}),a=Ni(l.current);return a.addEventListener("resize",o),()=>{o.clear(),a.removeEventListener("resize",o)}},[t]),ge.useEffect(()=>{i(),t(r.current)},[t]),Se.jsx("div",{style:Lfe,ref:l,...n})}function $fe(e){return gn("MuiTabScrollButton",e)}const Nfe=fn("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Ffe=e=>{const{classes:t,orientation:n,disabled:r}=e;return vn({root:["root",n,r&&"disabled"]},$fe,t)},jfe=Dt(Nl,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${Nfe.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),zfe=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiTabScrollButton"}),{className:l,slots:i={},slotProps:o={},direction:a,orientation:s,disabled:u,...c}=r,d=Tc(),f={isRtl:d,...r},p=Ffe(f),h=i.StartScrollButtonIcon??yB,g=i.EndScrollButtonIcon??bB,b=ic({elementType:h,externalSlotProps:o.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f}),v=ic({elementType:g,externalSlotProps:o.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f});return Se.jsx(jfe,{component:"div",className:ln(p.root,l),ref:n,role:null,ownerState:f,tabIndex:null,...c,style:{...c.style,...s==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${d?-90:90}deg)`}},children:a==="left"?Se.jsx(h,{...b}):Se.jsx(g,{...v})})});function Bfe(e){return gn("MuiTabs",e)}const bv=fn("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),S7=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,k7=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,T0=(e,t,n)=>{let r=!1,l=n(e,t);for(;l;){if(l===e.firstChild){if(r)return;r=!0}const i=l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||i)l=n(e,l);else{l.focus();return}}},Wfe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:l,scrollableY:i,centered:o,scrollButtonsHideMobile:a,classes:s}=e;return vn({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",l&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",o&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[l&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},Bfe,s)},qfe=Dt("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${bv.scrollButtons}`]:t.scrollButtons},{[`& .${bv.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(Fn(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${bv.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),Ufe=Dt("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),Hfe=Dt("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),Vfe=Dt("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(Fn(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),Gfe=Dt(Ife)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),C7={},TB=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiTabs"}),l=pi(),i=Tc(),{"aria-label":o,"aria-labelledby":a,action:s,centered:u=!1,children:c,className:d,component:f="div",allowScrollButtonsMobile:p=!1,indicatorColor:h="primary",onChange:g,orientation:b="horizontal",ScrollButtonComponent:v=zfe,scrollButtons:m="auto",selectionFollowsFocus:y,slots:x={},slotProps:_={},TabIndicatorProps:w={},TabScrollButtonProps:S={},textColor:k="primary",value:C,variant:T="standard",visibleScrollbar:M=!1,...O}=r,D=T==="scrollable",P=b==="vertical",E=P?"scrollTop":"scrollLeft",I=P?"top":"left",A=P?"bottom":"right",F=P?"clientHeight":"clientWidth",j=P?"height":"width",B={...r,component:f,allowScrollButtonsMobile:p,indicatorColor:h,orientation:b,vertical:P,scrollButtons:m,textColor:k,variant:T,visibleScrollbar:M,fixed:!D,hideScrollbar:D&&!M,scrollableX:D&&!P,scrollableY:D&&P,centered:u&&!D,scrollButtonsHideMobile:!p},z=Wfe(B),N=ic({elementType:x.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:B}),R=ic({elementType:x.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:B}),[q,Y]=ge.useState(!1),[L,W]=ge.useState(C7),[H,G]=ge.useState(!1),[te,ee]=ge.useState(!1),[U,Q]=ge.useState(!1),[V,X]=ge.useState({overflow:"hidden",scrollbarWidth:0}),K=new Map,ne=ge.useRef(null),ae=ge.useRef(null),ie=()=>{const ye=ne.current;let Te;if(ye){const Le=ye.getBoundingClientRect();Te={clientWidth:ye.clientWidth,scrollLeft:ye.scrollLeft,scrollTop:ye.scrollTop,scrollWidth:ye.scrollWidth,top:Le.top,bottom:Le.bottom,left:Le.left,right:Le.right}}let Ae;if(ye&&C!==!1){const Le=ae.current.children;if(Le.length>0){const Re=Le[K.get(C)];Ae=Re?Re.getBoundingClientRect():null}}return{tabsMeta:Te,tabMeta:Ae}},se=ho(()=>{const{tabsMeta:ye,tabMeta:Te}=ie();let Ae=0,Le;P?(Le="top",Te&&ye&&(Ae=Te.top-ye.top+ye.scrollTop)):(Le=i?"right":"left",Te&&ye&&(Ae=(i?-1:1)*(Te[Le]-ye[Le]+ye.scrollLeft)));const Re={[Le]:Ae,[j]:Te?Te[j]:0};if(typeof L[Le]!="number"||typeof L[j]!="number")W(Re);else{const Ie=Math.abs(L[Le]-Re[Le]),Ne=Math.abs(L[j]-Re[j]);(Ie>=1||Ne>=1)&&W(Re)}}),pe=(ye,{animation:Te=!0}={})=>{Te?Rfe(E,ne.current,ye,{duration:l.transitions.duration.standard}):ne.current[E]=ye},ke=ye=>{let Te=ne.current[E];P?Te+=ye:Te+=ye*(i?-1:1),pe(Te)},Ce=()=>{const ye=ne.current[F];let Te=0;const Ae=Array.from(ae.current.children);for(let Le=0;Leye){Le===0&&(Te=ye);break}Te+=Re[F]}return Te},Oe=()=>{ke(-1*Ce())},Pe=()=>{ke(Ce())},ce=ge.useCallback(ye=>{X({overflow:null,scrollbarWidth:ye})},[]),we=()=>{const ye={};ye.scrollbarSizeListener=D?Se.jsx(Gfe,{onChange:ce,className:ln(z.scrollableX,z.hideScrollbar)}):null;const Ae=D&&(m==="auto"&&(H||te)||m===!0);return ye.scrollButtonStart=Ae?Se.jsx(v,{slots:{StartScrollButtonIcon:x.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:N},orientation:b,direction:i?"right":"left",onClick:Oe,disabled:!H,...S,className:ln(z.scrollButtons,S.className)}):null,ye.scrollButtonEnd=Ae?Se.jsx(v,{slots:{EndScrollButtonIcon:x.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:R},orientation:b,direction:i?"left":"right",onClick:Pe,disabled:!te,...S,className:ln(z.scrollButtons,S.className)}):null,ye},Z=ho(ye=>{const{tabsMeta:Te,tabMeta:Ae}=ie();if(!(!Ae||!Te)){if(Ae[I]Te[A]){const Le=Te[E]+(Ae[A]-Te[A]);pe(Le,{animation:ye})}}}),re=ho(()=>{D&&m!==!1&&Q(!U)});ge.useEffect(()=>{const ye=ug(()=>{ne.current&&se()});let Te;const Ae=Ie=>{Ie.forEach(Ne=>{Ne.removedNodes.forEach(ze=>{Te==null||Te.unobserve(ze)}),Ne.addedNodes.forEach(ze=>{Te==null||Te.observe(ze)})}),ye(),re()},Le=Ni(ne.current);Le.addEventListener("resize",ye);let Re;return typeof ResizeObserver<"u"&&(Te=new ResizeObserver(ye),Array.from(ae.current.children).forEach(Ie=>{Te.observe(Ie)})),typeof MutationObserver<"u"&&(Re=new MutationObserver(Ae),Re.observe(ae.current,{childList:!0})),()=>{ye.clear(),Le.removeEventListener("resize",ye),Re==null||Re.disconnect(),Te==null||Te.disconnect()}},[se,re]),ge.useEffect(()=>{const ye=Array.from(ae.current.children),Te=ye.length;if(typeof IntersectionObserver<"u"&&Te>0&&D&&m!==!1){const Ae=ye[0],Le=ye[Te-1],Re={root:ne.current,threshold:.99},Ie=We=>{G(!We[0].isIntersecting)},Ne=new IntersectionObserver(Ie,Re);Ne.observe(Ae);const ze=We=>{ee(!We[0].isIntersecting)},qe=new IntersectionObserver(ze,Re);return qe.observe(Le),()=>{Ne.disconnect(),qe.disconnect()}}},[D,m,U,c==null?void 0:c.length]),ge.useEffect(()=>{Y(!0)},[]),ge.useEffect(()=>{se()}),ge.useEffect(()=>{Z(C7!==L)},[Z,L]),ge.useImperativeHandle(s,()=>({updateIndicator:se,updateScrollButtons:re}),[se,re]);const de=Se.jsx(Vfe,{...w,className:ln(z.indicator,w.className),ownerState:B,style:{...L,...w.style}});let _e=0;const ue=ge.Children.map(c,ye=>{if(!ge.isValidElement(ye))return null;const Te=ye.props.value===void 0?_e:ye.props.value;K.set(Te,_e);const Ae=Te===C;return _e+=1,ge.cloneElement(ye,{fullWidth:T==="fullWidth",indicator:Ae&&!q&&de,selected:Ae,selectionFollowsFocus:y,onChange:g,textColor:k,value:Te,..._e===1&&C===!1&&!ye.props.tabIndex?{tabIndex:0}:{}})}),me=ye=>{const Te=ae.current,Ae=qa(Te).activeElement;if(Ae.getAttribute("role")!=="tab")return;let Re=b==="horizontal"?"ArrowLeft":"ArrowUp",Ie=b==="horizontal"?"ArrowRight":"ArrowDown";switch(b==="horizontal"&&i&&(Re="ArrowRight",Ie="ArrowLeft"),ye.key){case Re:ye.preventDefault(),T0(Te,Ae,k7);break;case Ie:ye.preventDefault(),T0(Te,Ae,S7);break;case"Home":ye.preventDefault(),T0(Te,null,S7);break;case"End":ye.preventDefault(),T0(Te,null,k7);break}},xe=we();return Se.jsxs(qfe,{className:ln(z.root,d),ownerState:B,ref:n,as:f,...O,children:[xe.scrollButtonStart,xe.scrollbarSizeListener,Se.jsxs(Ufe,{className:z.scroller,ownerState:B,style:{overflow:V.overflow,[P?`margin${i?"Left":"Right"}`:"marginBottom"]:M?void 0:-V.scrollbarWidth},ref:ne,children:[Se.jsx(Hfe,{"aria-label":o,"aria-labelledby":a,"aria-orientation":b==="vertical"?"vertical":null,className:z.flexContainer,ownerState:B,onKeyDown:me,ref:ae,role:"tablist",children:ue}),q&&de]}),xe.scrollButtonEnd]})});function SB(e){return gn("MuiTextField",e)}const Yfe=fn("MuiTextField",["root"]),Xfe=Yfe,Kfe={standard:ky,filled:Sy,outlined:My},Zfe=e=>{const{classes:t}=e;return vn({root:["root"]},SB,t)},Qfe=Dt(zz,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Jfe=ge.forwardRef(function(t,n){const r=jn({props:t,name:"MuiTextField"}),{autoComplete:l,autoFocus:i=!1,children:o,className:a,color:s="primary",defaultValue:u,disabled:c=!1,error:d=!1,FormHelperTextProps:f,fullWidth:p=!1,helperText:h,id:g,InputLabelProps:b,inputProps:v,InputProps:m,inputRef:y,label:x,maxRows:_,minRows:w,multiline:S=!1,name:k,onBlur:C,onChange:T,onFocus:M,placeholder:O,required:D=!1,rows:P,select:E=!1,SelectProps:I,slots:A={},slotProps:F={},type:j,value:B,variant:z="outlined",...N}=r,R={...r,autoFocus:i,color:s,disabled:c,error:d,fullWidth:p,multiline:S,required:D,select:E,variant:z},q=Zfe(R),Y=ls(g),L=h&&Y?`${Y}-helper-text`:void 0,W=x&&Y?`${Y}-label`:void 0,H=Kfe[z],G={slots:A,slotProps:{input:m,inputLabel:b,htmlInput:v,formHelperText:f,select:I,...F}},te={},ee=G.slotProps.inputLabel;z==="outlined"&&(ee&&typeof ee.shrink<"u"&&(te.notched=ee.shrink),te.label=x),E&&((!I||!I.native)&&(te.id=void 0),te["aria-describedby"]=void 0);const[U,Q]=Io("input",{elementType:H,externalForwardedProps:G,additionalProps:te,ownerState:R}),[V,X]=Io("inputLabel",{elementType:Kz,externalForwardedProps:G,ownerState:R}),[K,ne]=Io("htmlInput",{elementType:"input",externalForwardedProps:G,ownerState:R}),[ae,ie]=Io("formHelperText",{elementType:Uz,externalForwardedProps:G,ownerState:R}),[se,pe]=Io("select",{elementType:Tf,externalForwardedProps:G,ownerState:R}),ke=Se.jsx(U,{"aria-describedby":L,autoComplete:l,autoFocus:i,defaultValue:u,fullWidth:p,multiline:S,name:k,rows:P,maxRows:_,minRows:w,type:j,value:B,id:Y,inputRef:y,onBlur:C,onChange:T,onFocus:M,placeholder:O,inputProps:ne,slots:{input:A.htmlInput?K:void 0},...Q});return Se.jsxs(Qfe,{className:ln(q.root,a),disabled:c,error:d,fullWidth:p,ref:n,required:D,color:s,variant:z,ownerState:R,...N,children:[x!=null&&x!==""&&Se.jsx(V,{htmlFor:Y,id:W,...X,children:x}),E?Se.jsx(se,{"aria-describedby":L,id:Y,labelId:W,value:B,input:ke,...pe,children:o}):ke,h&&Se.jsx(ae,{id:L,...ie,children:h})]})}),epe=Jfe,tpe=Object.freeze(Object.defineProperty({__proto__:null,default:epe,getTextFieldUtilityClass:SB,textFieldClasses:Xfe},Symbol.toStringTag,{value:"Module"})),{transitions:Kc}=Sc(),gp="#ed0500",npe=Sc({cssVariables:{colorSchemeSelector:"class"},colorSchemes:{light:{palette:{text:{primary:"#09090b"},primary:{main:"#09090b",light:cv[200]},secondary:{main:gp,dark:"#c10400",light:cv[200]}}},dark:{palette:{text:{primary:"#fafafa"},primary:{main:"#fafafa",light:cv[900]},secondary:{main:gp}}}},shape:{borderRadius:5},components:{MuiInputBase:{styleOverrides:{input:{"&:-webkit-autofill":{transitionDelay:"9999s",transitionProperty:"background-color, box-shadow, color"}}}},MuiLink:{styleOverrides:{root:{transition:Kc.create("color",{duration:Kc.duration.enteringScreen}),"&:hover":{color:gp}}}},MuiTabs:{styleOverrides:{flexContainer:{gap:"10px"},indicator:{backgroundColor:gp}}},MuiTab:{defaultProps:{color:"secondary"},styleOverrides:{root:{fontSize:"1rem",borderRadius:"5px"}}},MuiIconButton:{styleOverrides:{root:{transition:Kc.create("color",{duration:Kc.duration.enteringScreen}),color:"inherit","&:hover":{color:gp}}}},MuiSwitch:{defaultProps:{color:"secondary"}},MuiToggleButton:{defaultProps:{color:"secondary"},styleOverrides:{root:{transition:Kc.create("color",{duration:Kc.duration.enteringScreen}),color:"inherit","&.Mui-disabled":{border:"unset"}}}},MuiLinearProgress:{defaultProps:{color:"secondary"}},MuiPaper:{defaultProps:{sx:{border:"1px solid",borderColor:e=>e.palette.divider}},styleOverrides:{root:{boxShadow:"unset"}}}},typography:{fontFamily:["-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),button:{fontWeight:"bold",textTransform:"none"}}}),M7=kr(Se.jsx("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"}),"DarkMode"),P7=kr(Se.jsx("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"}),"LightMode"),hg=()=>{const{mode:e}=QM(),t=vb("(prefers-color-scheme: dark)");return!e||e==="system"?t?"dark":"light":e},v5=()=>{const e=hg();return ge.useMemo(()=>e==="dark"?{tooltip:{container:{background:"#000",color:"#fff"}}}:void 0,[e])},rpe=()=>{const{mode:e,setMode:t}=QM(),n=hg(),[r,l]=ge.useState(null),i=u=>l(u.currentTarget),o=()=>l(null),a=!!r,s=a?"simple-popover":void 0;return e?Se.jsxs("div",{children:[Se.jsx(Fo,{"aria-describedby":s,onClick:i,children:n==="dark"?Se.jsx(M7,{}):Se.jsx(P7,{})}),Se.jsx(Ab,{id:s,open:a,anchorEl:r,onClose:o,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:Se.jsxs(Tf,{size:"small",value:e,onChange:u=>{t(u.target.value),o()},children:[Se.jsx(Yh,{value:"system",children:"System"}),Se.jsx(Yh,{value:"light",children:"Light"}),Se.jsx(Yh,{value:"dark",children:"Dark"})]})})]}):Se.jsx(Fo,{"aria-describedby":s,children:n==="dark"?Se.jsx(M7,{}):Se.jsx(P7,{})})};class ape{constructor(t){Cs(this,"cachedGraphs");Cs(this,"cachedWidgets");Cs(this,"inner");this.inner=t,this.cachedGraphs=new Map,this.cachedWidgets=new Map}async getAdditionGraphData(t){let n=this.cachedGraphs.get(t);return n!==void 0||(n=await this.inner.getAdditionGraphData(t),this.cachedGraphs.set(t,n)),n}async getAdditionWidgetData(t){let n=this.cachedWidgets.get(t);return n!==void 0||(n=await this.inner.getAdditionWidgetData(t),this.cachedWidgets.set(t,n)),n}}const y5=Ke.createContext({getAdditionGraphData:()=>new Promise((e,t)=>t("default context doesn't contain methods to get data")),getAdditionWidgetData:()=>new Promise((e,t)=>t("default context doesn't contain methods to get data"))});function ope(e){return new ape(e)}var xv=(e=>(e[e.Small=0]="Small",e[e.Medium=1]="Medium",e[e.Big=2]="Big",e))(xv||{}),kB={exports:{}};(function(e,t){/*! For license information please see plotly-cartesian.min.js.LICENSE.txt */(function(n,r){e.exports=r()})(self,function(){return function(){var n={98847:function(i,o,a){var s=a(71828),u={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var c in u){var d=c.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");s.addStyleRule(d,u[c])}},98222:function(i,o,a){i.exports=a(82887)},27206:function(i,o,a){i.exports=a(60822)},5224:function(i,o,a){i.exports=a(83832)},59509:function(i,o,a){i.exports=a(72201)},49866:function(i,o,a){i.exports=a(99442)},19548:function(i,o,a){i.exports=a(8729)},61039:function(i,o,a){i.exports=a(14382)},24296:function(i,o,a){i.exports=a(43102)},58872:function(i,o,a){i.exports=a(92165)},65591:function(i,o,a){i.exports=a(36071)},69738:function(i,o,a){i.exports=a(43905)},92650:function(i,o,a){i.exports=a(35902)},73434:function(i,o,a){i.exports=a(94507)},760:function(i,o,a){var s=a(19548);s.register([a(27206),a(5224),a(58872),a(65591),a(69738),a(92650),a(49866),a(25743),a(6197),a(73434),a(54201),a(98222),a(61039),a(24296),a(66398),a(59509)]),i.exports=s},54201:function(i,o,a){i.exports=a(58810)},25743:function(i,o,a){i.exports=a(52979)},66398:function(i,o,a){i.exports=a(32275)},6197:function(i,o,a){i.exports=a(47462)},82884:function(i){i.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},50215:function(i,o,a){var s=a(82884),u=a(41940),c=a(85555),d=a(44467).templatedArray;a(24695),i.exports=d("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:u({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:s.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:s.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",c.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",c.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",c.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",c.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:u({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},3749:function(i,o,a){var s=a(71828),u=a(89298),c=a(92605).draw;function d(p){var h=p._fullLayout;s.filterVisible(h.annotations).forEach(function(g){var b=u.getFromId(p,g.xref),v=u.getFromId(p,g.yref),m=u.getRefType(g.xref),y=u.getRefType(g.yref);g._extremes={},m==="range"&&f(g,b),y==="range"&&f(g,v)})}function f(p,h){var g,b=h._id,v=b.charAt(0),m=p[v],y=p["a"+v],x=p[v+"ref"],_=p["a"+v+"ref"],w=p["_"+v+"padplus"],S=p["_"+v+"padminus"],k={x:1,y:-1}[v]*p[v+"shift"],C=3*p.arrowsize*p.arrowwidth||0,T=C+k,M=C-k,O=3*p.startarrowsize*p.arrowwidth||0,D=O+k,P=O-k;if(_===x){var E=u.findExtremes(h,[h.r2c(m)],{ppadplus:T,ppadminus:M}),I=u.findExtremes(h,[h.r2c(y)],{ppadplus:Math.max(w,D),ppadminus:Math.max(S,P)});g={min:[E.min[0],I.min[0]],max:[E.max[0],I.max[0]]}}else D=y?D+y:D,P=y?P-y:P,g=u.findExtremes(h,[h.r2c(m)],{ppadplus:Math.max(w,T,D),ppadminus:Math.max(S,M,P)});p._extremes[b]=g}i.exports=function(p){var h=p._fullLayout;if(s.filterVisible(h.annotations).length&&p._fullData.length)return s.syncOrAsync([c,d],p)}},44317:function(i,o,a){var s=a(71828),u=a(73972),c=a(44467).arrayEditor;function d(p,h){var g,b,v,m,y,x,_,w=p._fullLayout.annotations,S=[],k=[],C=[],T=(h||[]).length;for(g=0;g0||g.explicitOff.length>0},onClick:function(p,h){var g,b,v=d(p,h),m=v.on,y=v.off.concat(v.explicitOff),x={},_=p._fullLayout.annotations;if(m.length||y.length){for(g=0;g.6666666666666666?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[rt]}for(var ye=!1,Te=["x","y"],Ae=0;Ae1)&&(Ge===We?((et=ot.r2fraction(T["a"+qe]))<0||et>1)&&(ye=!0):ye=!0),Le=ot._offset+ot.r2p(T[qe]),Ne=.5}else{var ct=St==="domain";qe==="x"?(Ie=T[qe],Le=ct?ot._offset+ot._length*Ie:Le=F.l+F.w*Ie):(Ie=1-T[qe],Le=ct?ot._offset+ot._length*Ie:Le=F.t+F.h*Ie),Ne=T.showarrow?.5:Ie}if(T.showarrow){it.head=Le;var ht=T["a"+qe];if(ze=st*xe(.5,T.xanchor)-bt*xe(.5,T.yanchor),Ge===We){var $t=p.getRefType(Ge);$t==="domain"?(qe==="y"&&(ht=1-ht),it.tail=ot._offset+ot._length*ht):$t==="paper"?qe==="y"?(ht=1-ht,it.tail=F.t+F.h*ht):it.tail=F.l+F.w*ht:it.tail=ot._offset+ot.r2p(ht),Re=ze}else it.tail=Le+ht,Re=ze+ht;it.text=it.tail+ze;var kt=A[qe==="x"?"width":"height"];if(We==="paper"&&(it.head=d.constrain(it.head,1,kt-1)),Ge==="pixel"){var Wt=-Math.max(it.tail-3,it.text),wt=Math.min(it.tail+3,it.text)-kt;Wt>0?(it.tail+=Wt,it.text+=Wt):wt>0&&(it.tail-=wt,it.text-=wt)}it.tail+=tt,it.head+=tt}else Re=ze=Be*xe(Ne,je),it.text=Le+ze;it.text+=tt,ze+=tt,Re+=tt,T["_"+qe+"padplus"]=Be/2+Re,T["_"+qe+"padminus"]=Be/2-Re,T["_"+qe+"size"]=Be,T["_"+qe+"shift"]=ze}if(ye)ee.remove();else{var be=0,Me=0;if(T.align!=="left"&&(be=(de-Z)*(T.align==="center"?.5:1)),T.valign!=="top"&&(Me=(_e-re)*(T.valign==="middle"?.5:1)),ce)Pe.select("svg").attr({x:V+be-1,y:V+Me}).call(g.setClipUrl,K?q:null,C);else{var Ve=V+Me-we.top,Ue=V+be-we.left;se.call(v.positionText,Ue,Ve).call(g.setClipUrl,K?q:null,C)}ne.select("rect").call(g.setRect,V,V,de,_e),X.call(g.setRect,U/2,U/2,ue-U,me-U),ee.call(g.setTranslate,Math.round(Y.x.text-ue/2),Math.round(Y.y.text-me/2)),H.attr({transform:"rotate("+L+","+Y.x.text+","+Y.y.text+")"});var Ze,Ye=function(Qe,rt){W.selectAll(".annotation-arrow-g").remove();var ut=Y.x.head,gt=Y.y.head,nt=Y.x.tail+Qe,Nt=Y.y.tail+rt,Gt=Y.x.text+Qe,Ct=Y.y.text+rt,Ft=d.rotationXYMatrix(L,Gt,Ct),Et=d.apply2DTransform(Ft),mt=d.apply2DTransform2(Ft),pt=+X.attr("width"),yt=+X.attr("height"),qt=Gt-.5*pt,Rt=qt+pt,jt=Ct-.5*yt,Tt=jt+yt,Pt=[[qt,jt,qt,Tt],[qt,Tt,Rt,Tt],[Rt,Tt,Rt,jt],[Rt,jt,qt,jt]].map(mt);if(!Pt.reduce(function(cn,hn){return cn^!!d.segmentsIntersect(ut,gt,ut+1e6,gt+1e6,hn[0],hn[1],hn[2],hn[3])},!1)){Pt.forEach(function(cn){var hn=d.segmentsIntersect(nt,Nt,ut,gt,cn[0],cn[1],cn[2],cn[3]);hn&&(nt=hn.x,Nt=hn.y)});var Ot=T.arrowwidth,It=T.arrowcolor,Lt=T.arrowside,zt=W.append("g").style({opacity:h.opacity(It)}).classed("annotation-arrow-g",!0),Xt=zt.append("path").attr("d","M"+nt+","+Nt+"L"+ut+","+gt).style("stroke-width",Ot+"px").call(h.stroke,h.rgb(It));if(_(Xt,Lt,T),j.annotationPosition&&Xt.node().parentNode&&!O){var Kt=ut,Bt=gt;if(T.standoff){var Ut=Math.sqrt(Math.pow(ut-nt,2)+Math.pow(gt-Nt,2));Kt+=T.standoff*(nt-ut)/Ut,Bt+=T.standoff*(Nt-gt)/Ut}var on,yn,pn=zt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(nt-Kt)+","+(Nt-Bt),transform:f(Kt,Bt)}).style("stroke-width",Ot+6+"px").call(h.stroke,"rgba(0,0,0,0)").call(h.fill,"rgba(0,0,0,0)");y.init({element:pn.node(),gd:C,prepFn:function(){var cn=g.getTranslate(ee);on=cn.x,yn=cn.y,D&&D.autorange&&z(D._name+".autorange",!0),P&&P.autorange&&z(P._name+".autorange",!0)},moveFn:function(cn,hn){var Jt=Et(on,yn),_n=Jt[0]+cn,sn=Jt[1]+hn;ee.call(g.setTranslate,_n,sn),N("x",S(D,cn,"x",F,T)),N("y",S(P,hn,"y",F,T)),T.axref===T.xref&&N("ax",S(D,cn,"ax",F,T)),T.ayref===T.yref&&N("ay",S(P,hn,"ay",F,T)),zt.attr("transform",f(cn,hn)),H.attr({transform:"rotate("+L+","+_n+","+sn+")"})},doneFn:function(){u.call("_guiRelayout",C,R());var cn=document.querySelector(".js-notes-box-panel");cn&&cn.redraw(cn.selectedObj)}})}}};T.showarrow&&Ye(0,0),G&&y.init({element:ee.node(),gd:C,prepFn:function(){Ze=H.attr("transform")},moveFn:function(Qe,rt){var ut="pointer";if(T.showarrow)T.axref===T.xref?N("ax",S(D,Qe,"ax",F,T)):N("ax",T.ax+Qe),T.ayref===T.yref?N("ay",S(P,rt,"ay",F.w,T)):N("ay",T.ay+rt),Ye(Qe,rt);else{if(O)return;var gt,nt;if(D)gt=S(D,Qe,"x",F,T);else{var Nt=T._xsize/F.w,Gt=T.x+(T._xshift-T.xshift)/F.w-Nt/2;gt=y.align(Gt+Qe/F.w,Nt,0,1,T.xanchor)}if(P)nt=S(P,rt,"y",F,T);else{var Ct=T._ysize/F.h,Ft=T.y-(T._yshift+T.yshift)/F.h-Ct/2;nt=y.align(Ft-rt/F.h,Ct,0,1,T.yanchor)}N("x",gt),N("y",nt),D&&P||(ut=y.getCursor(D?.5:gt,P?.5:nt,T.xanchor,T.yanchor))}H.attr({transform:f(Qe,rt)+Ze}),m(ee,ut)},clickFn:function(Qe,rt){T.captureevents&&C.emit("plotly_clickannotation",pe(rt))},doneFn:function(){m(ee),u.call("_guiRelayout",C,R());var Qe=document.querySelector(".js-notes-box-panel");Qe&&Qe.redraw(Qe.selectedObj)}})}}}i.exports={draw:function(C){var T=C._fullLayout;T._infolayer.selectAll(".annotation").remove();for(var M=0;M=0,O=b.indexOf("end")>=0,D=S.backoff*C+v.standoff,P=k.backoff*T+v.startstandoff;if(w.nodeName==="line"){m={x:+g.attr("x1"),y:+g.attr("y1")},y={x:+g.attr("x2"),y:+g.attr("y2")};var E=m.x-y.x,I=m.y-y.y;if(_=(x=Math.atan2(I,E))+Math.PI,D&&P&&D+P>Math.sqrt(E*E+I*I))return void W();if(D){if(D*D>E*E+I*I)return void W();var A=D*Math.cos(x),F=D*Math.sin(x);y.x+=A,y.y+=F,g.attr({x2:y.x,y2:y.y})}if(P){if(P*P>E*E+I*I)return void W();var j=P*Math.cos(x),B=P*Math.sin(x);m.x-=j,m.y-=B,g.attr({x1:m.x,y1:m.y})}}else if(w.nodeName==="path"){var z=w.getTotalLength(),N="";if(z1){v=!0;break}}v?d.fullLayout._infolayer.select(".annotation-"+d.id+'[data-index="'+g+'"]').remove():(b._pdata=u(d.glplot.cameraParams,[f.xaxis.r2l(b.x)*p[0],f.yaxis.r2l(b.y)*p[1],f.zaxis.r2l(b.z)*p[2]]),s(d.graphDiv,b,g,d.id,b._xa,b._ya))}}},2468:function(i,o,a){var s=a(73972),u=a(71828);i.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:a(26997)}}},layoutAttributes:a(26997),handleDefaults:a(20226),includeBasePlot:function(c,d){var f=s.subplotsRegistry.gl3d;if(f)for(var p=f.attrRegex,h=Object.keys(c),g=0;g=0)))return b;if(_===3)y[_]>1&&(y[_]=1);else if(y[_]>=1)return b}var w=Math.round(255*y[0])+", "+Math.round(255*y[1])+", "+Math.round(255*y[2]);return x?"rgba("+w+", "+y[3]+")":"rgb("+w+")"}d.tinyRGB=function(b){var v=b.toRgb();return"rgb("+Math.round(v.r)+", "+Math.round(v.g)+", "+Math.round(v.b)+")"},d.rgb=function(b){return d.tinyRGB(s(b))},d.opacity=function(b){return b?s(b).getAlpha():0},d.addOpacity=function(b,v){var m=s(b).toRgb();return"rgba("+Math.round(m.r)+", "+Math.round(m.g)+", "+Math.round(m.b)+", "+v+")"},d.combine=function(b,v){var m=s(b).toRgb();if(m.a===1)return s(b).toRgbString();var y=s(v||h).toRgb(),x=y.a===1?y:{r:255*(1-y.a)+y.r*y.a,g:255*(1-y.a)+y.g*y.a,b:255*(1-y.a)+y.b*y.a},_={r:x.r*(1-m.a)+m.r*m.a,g:x.g*(1-m.a)+m.g*m.a,b:x.b*(1-m.a)+m.b*m.a};return s(_).toRgbString()},d.contrast=function(b,v,m){var y=s(b);return y.getAlpha()!==1&&(y=s(d.combine(b,h))),(y.isDark()?v?y.lighten(v):h:m?y.darken(m):p).toString()},d.stroke=function(b,v){var m=s(v);b.style({stroke:d.tinyRGB(m),"stroke-opacity":m.getAlpha()})},d.fill=function(b,v){var m=s(v);b.style({fill:d.tinyRGB(m),"fill-opacity":m.getAlpha()})},d.clean=function(b){if(b&&typeof b=="object"){var v,m,y,x,_=Object.keys(b);for(v=0;v<_.length;v++)if(x=b[y=_[v]],y.substr(y.length-5)==="color")if(Array.isArray(x))for(m=0;m0?wt>=Ze:wt<=Ze));be++)wt>Qe&&wt0?wt>=Ze:wt<=Ze));be++)wt>Wt[0]&&wt1){var bt=Math.pow(10,Math.floor(Math.log(st)/Math.LN10));ot*=bt*h.roundUp(st/bt,[2,5,10]),(Math.abs(Z.start)/Z.size+1e-6)%1<2e-6&&(We.tick0=0)}We.dtick=ot}We.domain=R?[ze+V/se.h,ze+ye-V/se.h]:[ze+Q/se.w,ze+ye-Q/se.w],We.setScale(),B.attr("transform",g(Math.round(se.l),Math.round(se.t)));var Be,je=B.select("."+P.cbtitleunshift).attr("transform",g(-Math.round(se.l),-Math.round(se.t))),tt=We.ticklabelposition,it=We.title.font.size,St=B.select("."+P.cbaxis),et=0,ct=0;function ht($t,kt){var Wt={propContainer:We,propName:z._propPrefix+"title",traceIndex:z._traceIndex,_meta:z._meta,placeholder:ie._dfltTitle.colorbar,containerGroup:B.select("."+P.cbtitle)},wt=$t.charAt(0)==="h"?$t.substr(1):"h"+$t;B.selectAll("."+wt+",."+wt+"-math-group").remove(),x.draw(N,$t,b(Wt,kt||{}))}return h.syncOrAsync([c.previousPromises,function(){var $t,kt;(R&&Ge||!R&&!Ge)&&(Oe==="top"&&($t=Q+se.l+Te*X,kt=V+se.t+Ae*(1-ze-ye)+3+.75*it),Oe==="bottom"&&($t=Q+se.l+Te*X,kt=V+se.t+Ae*(1-ze)-3-.25*it),Oe==="right"&&(kt=V+se.t+Ae*K+3+.75*it,$t=Q+se.l+Te*ze),ht(We._id+"title",{attributes:{x:$t,y:kt,"text-anchor":R?"start":"middle"}}))},function(){if(!R&&!Ge||R&&Ge){var $t,kt=B.select("."+P.cbtitle),Wt=kt.select("text"),wt=[-H/2,H/2],be=kt.select(".h"+We._id+"title-math-group").node(),Me=15.6;if(Wt.node()&&(Me=parseInt(Wt.node().style.fontSize,10)*M),be?($t=m.bBox(be),ct=$t.width,(et=$t.height)>Me&&(wt[1]-=(et-Me)/2)):Wt.node()&&!Wt.classed(P.jsPlaceholder)&&($t=m.bBox(Wt.node()),ct=$t.width,et=$t.height),R){if(et){if(et+=5,Oe==="top")We.domain[1]-=et/se.h,wt[1]*=-1;else{We.domain[0]+=et/se.h;var Ve=_.lineCount(Wt);wt[1]+=(1-Ve)*Me}kt.attr("transform",g(wt[0],wt[1])),We.setScale()}}else ct&&(Oe==="right"&&(We.domain[0]+=(ct+it/2)/se.w),kt.attr("transform",g(wt[0],wt[1])),We.setScale())}B.selectAll("."+P.cbfills+",."+P.cblines).attr("transform",R?g(0,Math.round(se.h*(1-We.domain[1]))):g(Math.round(se.w*We.domain[0]),0)),St.attr("transform",R?g(0,Math.round(-se.t)):g(Math.round(-se.l),0));var Ue=B.select("."+P.cbfills).selectAll("rect."+P.cbfill).attr("style","").data(de);Ue.enter().append("rect").classed(P.cbfill,!0).attr("style",""),Ue.exit().remove();var Ze=Pe.map(We.c2p).map(Math.round).sort(function(gt,nt){return gt-nt});Ue.each(function(gt,nt){var Nt=[nt===0?Pe[0]:(de[nt]+de[nt-1])/2,nt===de.length-1?Pe[1]:(de[nt]+de[nt+1])/2].map(We.c2p).map(Math.round);R&&(Nt[1]=h.constrain(Nt[1]+(Nt[1]>Nt[0])?1:-1,Ze[0],Ze[1]));var Gt=s.select(this).attr(R?"x":"y",Le).attr(R?"y":"x",s.min(Nt)).attr(R?"width":"height",Math.max(ue,2)).attr(R?"height":"width",Math.max(s.max(Nt)-s.min(Nt),2));if(z._fillgradient)m.gradient(Gt,N,z._id,R?"vertical":"horizontalreversed",z._fillgradient,"fill");else{var Ct=we(gt).replace("e-","");Gt.attr("fill",u(Ct).toHexString())}});var Ye=B.select("."+P.cblines).selectAll("path."+P.cbline).data(ke.color&&ke.width?_e:[]);Ye.enter().append("path").classed(P.cbline,!0),Ye.exit().remove(),Ye.each(function(gt){var nt=Le,Nt=Math.round(We.c2p(gt))+ke.width/2%1;s.select(this).attr("d","M"+(R?nt+","+Nt:Nt+","+nt)+(R?"h":"v")+ue).call(m.lineGroupStyle,ke.width,ce(gt),ke.dash)}),St.selectAll("g."+We._id+"tick,path").remove();var Qe=Le+ue+(H||0)/2-(z.ticks==="outside"?1:0),rt=f.calcTicks(We),ut=f.getTickSigns(We)[2];return f.drawTicks(N,We,{vals:We.ticks==="inside"?f.clipEnds(We,rt):rt,layer:St,path:f.makeTickPath(We,Qe,ut),transFn:f.makeTransTickFn(We)}),f.drawLabels(N,We,{vals:rt,layer:St,transFn:f.makeTransTickLabelFn(We),labelFns:f.makeLabelFns(We,Qe)})},function(){if(R&&!Ge||!R&&Ge){var $t,kt,Wt=We.position||0,wt=We._offset+We._length/2;if(Oe==="right")kt=wt,$t=se.l+Te*Wt+10+it*(We.showticklabels?1:.5);else if($t=wt,Oe==="bottom"&&(kt=se.t+Ae*Wt+10+(tt.indexOf("inside")===-1?We.tickfont.size:0)+(We.ticks!=="intside"&&z.ticklen||0)),Oe==="top"){var be=Ce.text.split("
").length;kt=se.t+Ae*Wt+10-ue-M*it*be}ht((R?"h":"v")+We._id+"title",{avoid:{selection:s.select(N).selectAll("g."+We._id+"tick"),side:Oe,offsetTop:R?0:se.t,offsetLeft:R?se.l:0,maxShift:R?ie.width:ie.height},attributes:{x:$t,y:kt,"text-anchor":"middle"},transform:{rotate:R?-90:0,offset:0}})}},c.previousPromises,function(){var $t,kt=ue+H/2;tt.indexOf("inside")===-1&&($t=m.bBox(St.node()),kt+=R?$t.width:$t.height),Be=je.select("text");var Wt=0,wt=R&&Oe==="top",be=!R&&Oe==="right",Me=0;if(Be.node()&&!Be.classed(P.jsPlaceholder)){var Ve,Ue=je.select(".h"+We._id+"title-math-group").node();Ue&&(R&&Ge||!R&&!Ge)?(Wt=($t=m.bBox(Ue)).width,Ve=$t.height):(Wt=($t=m.bBox(je.node())).right-se.l-(R?Le:qe),Ve=$t.bottom-se.t-(R?qe:Le),R||Oe!=="top"||(kt+=$t.height,Me=$t.height)),be&&(Be.attr("transform",g(Wt/2+it/2,0)),Wt*=2),kt=Math.max(kt,R?Wt:Ve)}var Ze=2*(R?Q:V)+kt+G+H/2,Ye=0;!R&&Ce.text&&U==="bottom"&&K<=0&&(Ze+=Ye=Ze/2,Me+=Ye),ie._hColorbarMoveTitle=Ye,ie._hColorbarMoveCBTitle=Me;var Qe=G+H,rt=(R?Le:qe)-Qe/2-(R?Q:0),ut=(R?qe:Le)-(R?xe:V+Me-Ye);B.select("."+P.cbbg).attr("x",rt).attr("y",ut).attr(R?"width":"height",Math.max(Ze-Ye,2)).attr(R?"height":"width",Math.max(xe+Qe,2)).call(y.fill,te).call(y.stroke,z.bordercolor).style("stroke-width",G);var gt=be?Math.max(Wt-10,0):0;B.selectAll("."+P.cboutline).attr("x",(R?Le:qe+Q)+gt).attr("y",(R?qe+V-xe:Le)+(wt?et:0)).attr(R?"width":"height",Math.max(ue,2)).attr(R?"height":"width",Math.max(xe-(R?2*V+et:2*Q+gt),2)).call(y.stroke,z.outlinecolor).style({fill:"none","stroke-width":H});var nt=R?Re*Ze:0,Nt=R?0:(1-Ie)*Ze-Me;if(nt=ae?se.l-nt:-nt,Nt=ne?se.t-Nt:-Nt,B.attr("transform",g(nt,Nt)),!R&&(G||u(te).getAlpha()&&!u.equals(ie.paper_bgcolor,te))){var Gt=St.selectAll("text"),Ct=Gt[0].length,Ft=B.select("."+P.cbbg).node(),Et=m.bBox(Ft),mt=m.getTranslate(B);Gt.each(function(Lt,zt){var Xt=Ct-1;if(zt===0||zt===Xt){var Kt,Bt=m.bBox(this),Ut=m.getTranslate(this);if(zt===Xt){var on=Bt.right+Ut.x;(Kt=Et.right+mt.x+qe-G-2+X-on)>0&&(Kt=0)}else if(zt===0){var yn=Bt.left+Ut.x;(Kt=Et.left+mt.x+qe+G+2-yn)<0&&(Kt=0)}Kt&&(Ct<3?this.setAttribute("transform","translate("+Kt+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var pt={},yt=O[ee],qt=D[ee],Rt=O[U],jt=D[U],Tt=Ze-ue;R?(Y==="pixels"?(pt.y=K,pt.t=xe*Rt,pt.b=xe*jt):(pt.t=pt.b=0,pt.yt=K+q*Rt,pt.yb=K-q*jt),W==="pixels"?(pt.x=X,pt.l=Ze*yt,pt.r=Ze*qt):(pt.l=Tt*yt,pt.r=Tt*qt,pt.xl=X-L*yt,pt.xr=X+L*qt)):(Y==="pixels"?(pt.x=X,pt.l=xe*yt,pt.r=xe*qt):(pt.l=pt.r=0,pt.xl=X+q*yt,pt.xr=X-q*qt),W==="pixels"?(pt.y=1-K,pt.t=Ze*Rt,pt.b=Ze*jt):(pt.t=Tt*Rt,pt.b=Tt*jt,pt.yt=K-L*Rt,pt.yb=K+L*jt));var Pt=z.y<.5?"b":"t",Ot=z.x<.5?"l":"r";N._fullLayout._reservedMargin[z._id]={};var It={r:ie.width-rt-nt,l:rt+pt.r,b:ie.height-ut-Nt,t:ut+pt.b};ae&&ne?c.autoMargin(N,z._id,pt):ae?N._fullLayout._reservedMargin[z._id][Pt]=It[Pt]:ne||R?N._fullLayout._reservedMargin[z._id][Ot]=It[Ot]:N._fullLayout._reservedMargin[z._id][Pt]=It[Pt]}],N)}(F,A,E);j&&j.then&&(E._promises||[]).push(j),E._context.edits.colorbarPosition&&function(B,z,N){var R,q,Y,L=z.orientation==="v",W=N._fullLayout._size;p.init({element:B.node(),gd:N,prepFn:function(){R=B.attr("transform"),v(B)},moveFn:function(H,G){B.attr("transform",R+g(H,G)),q=p.align((L?z._uFrac:z._vFrac)+H/W.w,L?z._thickFrac:z._lenFrac,0,1,z.xanchor),Y=p.align((L?z._vFrac:1-z._uFrac)-G/W.h,L?z._lenFrac:z._thickFrac,0,1,z.yanchor);var te=p.getCursor(q,Y,z.xanchor,z.yanchor);v(B,te)},doneFn:function(){if(v(B),q!==void 0&&Y!==void 0){var H={};H[z._propPrefix+"x"]=q,H[z._propPrefix+"y"]=Y,z._traceIndex!==void 0?d.call("_guiRestyle",N,H,z._traceIndex):d.call("_guiRelayout",N,H)}}})}(F,A,E)}),I.exit().each(function(A){c.autoMargin(E,A._id)}).remove(),I.order()}}},76228:function(i,o,a){var s=a(71828);i.exports=function(u){return s.isPlainObject(u.colorbar)}},12311:function(i,o,a){i.exports={moduleType:"component",name:"colorbar",attributes:a(63583),supplyDefaults:a(62499),draw:a(98981).draw,hasColorbar:a(76228)}},50693:function(i,o,a){var s=a(63583),u=a(30587).counter,c=a(78607),d=a(63282).scales;function f(p){return"`"+p+"`"}c(d),i.exports=function(p,h){p=p||"";var g,b=(h=h||{}).cLetter||"c",v=("onlyIfNumerical"in h&&h.onlyIfNumerical,"noScale"in h?h.noScale:p==="marker.line"),m="showScaleDflt"in h?h.showScaleDflt:b==="z",y=typeof h.colorscaleDflt=="string"?d[h.colorscaleDflt]:null,x=h.editTypeOverride||"",_=p?p+".":"";"colorAttr"in h?(g=h.colorAttr,h.colorAttr):f(_+(g={z:"z",c:"color"}[b]));var w=b+"auto",S=b+"min",k=b+"max",C=b+"mid",T={};T[S]=T[k]=void 0;var M={};M[w]=!1;var O={};return g==="color"&&(O.color={valType:"color",arrayOk:!0,editType:x||"style"},h.anim&&(O.color.anim=!0)),O[w]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:T},O[S]={valType:"number",dflt:null,editType:x||"plot",impliedEdits:M},O[k]={valType:"number",dflt:null,editType:x||"plot",impliedEdits:M},O[C]={valType:"number",dflt:null,editType:"calc",impliedEdits:T},O.colorscale={valType:"colorscale",editType:"calc",dflt:y,impliedEdits:{autocolorscale:!1}},O.autocolorscale={valType:"boolean",dflt:h.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},O.reversescale={valType:"boolean",dflt:!1,editType:"plot"},v||(O.showscale={valType:"boolean",dflt:m,editType:"calc"},O.colorbar=s),h.noColorAxis||(O.coloraxis={valType:"subplotid",regex:u("coloraxis"),dflt:null,editType:"calc"}),O}},78803:function(i,o,a){var s=a(92770),u=a(71828),c=a(52075).extractOpts;i.exports=function(d,f,p){var h,g=d._fullLayout,b=p.vals,v=p.containerStr,m=v?u.nestedProperty(f,v).get():f,y=c(m),x=y.auto!==!1,_=y.min,w=y.max,S=y.mid,k=function(){return u.aggNums(Math.min,null,b)},C=function(){return u.aggNums(Math.max,null,b)};_===void 0?_=k():x&&(_=m._colorAx&&s(_)?Math.min(_,k()):k()),w===void 0?w=C():x&&(w=m._colorAx&&s(w)?Math.max(w,C()):C()),x&&S!==void 0&&(w-S>S-_?_=S-(w-S):w-S=0?g.colorscale.sequential:g.colorscale.sequentialminus,y._sync("colorscale",h))}},33046:function(i,o,a){var s=a(71828),u=a(52075).hasColorscale,c=a(52075).extractOpts;i.exports=function(d,f){function p(x,_){var w=x["_"+_];w!==void 0&&(x[_]=w)}function h(x,_){var w=_.container?s.nestedProperty(x,_.container).get():x;if(w)if(w.coloraxis)w._colorAx=f[w.coloraxis];else{var S=c(w),k=S.auto;(k||S.min===void 0)&&p(w,_.min),(k||S.max===void 0)&&p(w,_.max),S.autocolorscale&&p(w,"colorscale")}}for(var g=0;g=0;k--,C++){var T=_[k];S[C]=[1-T[0],T[1]]}return S}function y(_,w){w=w||{};for(var S=_.domain,k=_.range,C=k.length,T=new Array(C),M=0;M1.3333333333333333-p?f:p}},70461:function(i,o,a){var s=a(71828),u=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];i.exports=function(c,d,f,p){return c=f==="left"?0:f==="center"?1:f==="right"?2:s.constrain(Math.floor(3*c),0,2),d=p==="bottom"?0:p==="middle"?1:p==="top"?2:s.constrain(Math.floor(3*d),0,2),u[d][c]}},64505:function(i,o){o.selectMode=function(a){return a==="lasso"||a==="select"},o.drawMode=function(a){return a==="drawclosedpath"||a==="drawopenpath"||a==="drawline"||a==="drawrect"||a==="drawcircle"},o.openMode=function(a){return a==="drawline"||a==="drawopenpath"},o.rectMode=function(a){return a==="select"||a==="drawline"||a==="drawrect"||a==="drawcircle"},o.freeMode=function(a){return a==="lasso"||a==="drawclosedpath"||a==="drawopenpath"},o.selectingOrDrawing=function(a){return o.freeMode(a)||o.rectMode(a)}},28569:function(i,o,a){var s=a(48956),u=a(57035),c=a(38520),d=a(71828).removeElement,f=a(85555),p=i.exports={};p.align=a(92807),p.getCursor=a(70461);var h=a(26041);function g(){var v=document.createElement("div");v.className="dragcover";var m=v.style;return m.position="fixed",m.left=0,m.right=0,m.top=0,m.bottom=0,m.zIndex=999999999,m.background="none",document.body.appendChild(v),v}function b(v){return s(v.changedTouches?v.changedTouches[0]:v,document.body)}p.unhover=h.wrapped,p.unhoverRaw=h.raw,p.init=function(v){var m,y,x,_,w,S,k,C,T=v.gd,M=1,O=T._context.doubleClickDelay,D=v.element;T._mouseDownTime||(T._mouseDownTime=0),D.style.pointerEvents="all",D.onmousedown=E,c?(D._ontouchstart&&D.removeEventListener("touchstart",D._ontouchstart),D._ontouchstart=E,D.addEventListener("touchstart",E,{passive:!1})):D.ontouchstart=E;var P=v.clampFn||function(F,j,B){return Math.abs(F)O&&(M=Math.max(M-1,1)),T._dragged)v.doneFn&&v.doneFn();else if(v.clickFn&&v.clickFn(M,S),!C){var j;try{j=new MouseEvent("click",F)}catch{var B=b(F);(j=document.createEvent("MouseEvents")).initMouseEvent("click",F.bubbles,F.cancelable,F.view,F.detail,F.screenX,F.screenY,B[0],B[1],F.ctrlKey,F.altKey,F.shiftKey,F.metaKey,F.button,F.relatedTarget)}k.dispatchEvent(j)}T._dragging=!1,T._dragged=!1}else T._dragged=!1}},p.coverSlip=g},26041:function(i,o,a){var s=a(11086),u=a(79990),c=a(24401).getGraphDiv,d=a(26675),f=i.exports={};f.wrapped=function(p,h,g){(p=c(p))._fullLayout&&u.clear(p._fullLayout._uid+d.HOVERID),f.raw(p,h,g)},f.raw=function(p,h){var g=p._fullLayout,b=p._hoverdata;h||(h={}),h.target&&!p._dragged&&s.triggerHandler(p,"plotly_beforehover",h)===!1||(g._hoverlayer.selectAll("g").remove(),g._hoverlayer.selectAll("line").remove(),g._hoverlayer.selectAll("circle").remove(),p._hoverdata=void 0,h.target&&b&&p.emit("plotly_unhover",{event:h,points:b}))}},79952:function(i,o){o.P={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},o.u={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},91424:function(i,o,a){var s=a(39898),u=a(71828),c=u.numberFormat,d=a(92770),f=a(84267),p=a(73972),h=a(7901),g=a(21081),b=u.strTranslate,v=a(63893),m=a(77922),y=a(18783).LINE_SPACING,x=a(37822).DESELECTDIM,_=a(34098),w=a(39984),S=a(23469).appendArrayPointValue,k=i.exports={};function C(ce,we,Z){var re=we.fillpattern,de=re&&k.getPatternAttr(re.shape,0,"");if(de){var _e=k.getPatternAttr(re.bgcolor,0,null),ue=k.getPatternAttr(re.fgcolor,0,null),me=re.fgopacity,xe=k.getPatternAttr(re.size,0,8),ye=k.getPatternAttr(re.solidity,0,.3),Te=we.uid;k.pattern(ce,"point",Z,Te,de,xe,ye,void 0,re.fillmode,_e,ue,me)}else we.fillcolor&&ce.call(h.fill,we.fillcolor)}k.font=function(ce,we,Z,re){u.isPlainObject(we)&&(re=we.color,Z=we.size,we=we.family),we&&ce.style("font-family",we),Z+1&&ce.style("font-size",Z+"px"),re&&ce.call(h.fill,re)},k.setPosition=function(ce,we,Z){ce.attr("x",we).attr("y",Z)},k.setSize=function(ce,we,Z){ce.attr("width",we).attr("height",Z)},k.setRect=function(ce,we,Z,re,de){ce.call(k.setPosition,we,Z).call(k.setSize,re,de)},k.translatePoint=function(ce,we,Z,re){var de=Z.c2p(ce.x),_e=re.c2p(ce.y);return!!(d(de)&&d(_e)&&we.node())&&(we.node().nodeName==="text"?we.attr("x",de).attr("y",_e):we.attr("transform",b(de,_e)),!0)},k.translatePoints=function(ce,we,Z){ce.each(function(re){var de=s.select(this);k.translatePoint(re,de,we,Z)})},k.hideOutsideRangePoint=function(ce,we,Z,re,de,_e){we.attr("display",Z.isPtWithinRange(ce,de)&&re.isPtWithinRange(ce,_e)?null:"none")},k.hideOutsideRangePoints=function(ce,we){if(we._hasClipOnAxisFalse){var Z=we.xaxis,re=we.yaxis;ce.each(function(de){var _e=de[0].trace,ue=_e.xcalendar,me=_e.ycalendar,xe=p.traceIs(_e,"bar-like")?".bartext":".point,.textpoint";ce.selectAll(xe).each(function(ye){k.hideOutsideRangePoint(ye,s.select(this),Z,re,ue,me)})})}},k.crispRound=function(ce,we,Z){return we&&d(we)?ce._context.staticPlot?we:we<1?1:Math.round(we):Z||0},k.singleLineStyle=function(ce,we,Z,re,de){we.style("fill","none");var _e=(((ce||[])[0]||{}).trace||{}).line||{},ue=Z||_e.width||0,me=de||_e.dash||"";h.stroke(we,re||_e.color),k.dashLine(we,me,ue)},k.lineGroupStyle=function(ce,we,Z,re){ce.style("fill","none").each(function(de){var _e=(((de||[])[0]||{}).trace||{}).line||{},ue=we||_e.width||0,me=re||_e.dash||"";s.select(this).call(h.stroke,Z||_e.color).call(k.dashLine,me,ue)})},k.dashLine=function(ce,we,Z){Z=+Z||0,we=k.dashStyle(we,Z),ce.style({"stroke-dasharray":we,"stroke-width":Z+"px"})},k.dashStyle=function(ce,we){we=+we||1;var Z=Math.max(we,3);return ce==="solid"?ce="":ce==="dot"?ce=Z+"px,"+Z+"px":ce==="dash"?ce=3*Z+"px,"+3*Z+"px":ce==="longdash"?ce=5*Z+"px,"+5*Z+"px":ce==="dashdot"?ce=3*Z+"px,"+Z+"px,"+Z+"px,"+Z+"px":ce==="longdashdot"&&(ce=5*Z+"px,"+2*Z+"px,"+Z+"px,"+2*Z+"px"),ce},k.singleFillStyle=function(ce,we){var Z=s.select(ce.node());C(ce,((Z.data()[0]||[])[0]||{}).trace||{},we)},k.fillGroupStyle=function(ce,we){ce.style("stroke-width",0).each(function(Z){var re=s.select(this);Z[0].trace&&C(re,Z[0].trace,we)})};var T=a(90998);k.symbolNames=[],k.symbolFuncs=[],k.symbolBackOffs=[],k.symbolNeedLines={},k.symbolNoDot={},k.symbolNoFill={},k.symbolList=[],Object.keys(T).forEach(function(ce){var we=T[ce],Z=we.n;k.symbolList.push(Z,String(Z),ce,Z+100,String(Z+100),ce+"-open"),k.symbolNames[Z]=ce,k.symbolFuncs[Z]=we.f,k.symbolBackOffs[Z]=we.backoff||0,we.needLine&&(k.symbolNeedLines[Z]=!0),we.noDot?k.symbolNoDot[Z]=!0:k.symbolList.push(Z+200,String(Z+200),ce+"-dot",Z+300,String(Z+300),ce+"-open-dot"),we.noFill&&(k.symbolNoFill[Z]=!0)});var M=k.symbolNames.length;function O(ce,we,Z,re){var de=ce%100;return k.symbolFuncs[de](we,Z,re)+(ce>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}k.symbolNumber=function(ce){if(d(ce))ce=+ce;else if(typeof ce=="string"){var we=0;ce.indexOf("-open")>0&&(we=100,ce=ce.replace("-open","")),ce.indexOf("-dot")>0&&(we+=200,ce=ce.replace("-dot","")),(ce=k.symbolNames.indexOf(ce))>=0&&(ce+=we)}return ce%100>=M||ce>=400?0:Math.floor(Math.max(ce,0))};var D={x1:1,x2:0,y1:0,y2:0},P={x1:0,x2:0,y1:1,y2:0},E=c("~f"),I={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:D},horizontalreversed:{node:"linearGradient",attrs:D,reversed:!0},vertical:{node:"linearGradient",attrs:P},verticalreversed:{node:"linearGradient",attrs:P,reversed:!0}};k.gradient=function(ce,we,Z,re,de,_e){for(var ue=de.length,me=I[re],xe=new Array(ue),ye=0;ye=0&&ce.i===void 0&&(ce.i=_e.i),we.style("opacity",re.selectedOpacityFn?re.selectedOpacityFn(ce):ce.mo===void 0?ue.opacity:ce.mo),re.ms2mrc){var xe;xe=ce.ms==="various"||ue.size==="various"?3:re.ms2mrc(ce.ms),ce.mrc=xe,re.selectedSizeFn&&(xe=ce.mrc=re.selectedSizeFn(ce));var ye=k.symbolNumber(ce.mx||ue.symbol)||0;ce.om=ye%200>=100;var Te=Pe(ce,Z),Ae=V(ce,Z);we.attr("d",O(ye,xe,Te,Ae))}var Le,Re,Ie,Ne=!1;if(ce.so)Ie=me.outlierwidth,Re=me.outliercolor,Le=ue.outliercolor;else{var ze=(me||{}).width;Ie=(ce.mlw+1||ze+1||(ce.trace?(ce.trace.marker.line||{}).width:0)+1)-1||0,Re="mlc"in ce?ce.mlcc=re.lineScale(ce.mlc):u.isArrayOrTypedArray(me.color)?h.defaultLine:me.color,u.isArrayOrTypedArray(ue.color)&&(Le=h.defaultLine,Ne=!0),Le="mc"in ce?ce.mcc=re.markerScale(ce.mc):ue.color||ue.colors||"rgba(0,0,0,0)",re.selectedColorFn&&(Le=re.selectedColorFn(ce))}if(ce.om)we.call(h.stroke,Le).style({"stroke-width":(Ie||1)+"px",fill:"none"});else{we.style("stroke-width",(ce.isBlank?0:Ie)+"px");var qe=ue.gradient,We=ce.mgt;We?Ne=!0:We=qe&&qe.type,u.isArrayOrTypedArray(We)&&(We=We[0],I[We]||(We=0));var Ge=ue.pattern,ot=Ge&&k.getPatternAttr(Ge.shape,ce.i,"");if(We&&We!=="none"){var Je=ce.mgc;Je?Ne=!0:Je=qe.color;var st=Z.uid;Ne&&(st+="-"+ce.i),k.gradient(we,de,st,We,[[0,Je],[1,Le]],"fill")}else if(ot){var bt=!1,Be=Ge.fgcolor;!Be&&_e&&_e.color&&(Be=_e.color,bt=!0);var je=k.getPatternAttr(Be,ce.i,_e&&_e.color||null),tt=k.getPatternAttr(Ge.bgcolor,ce.i,null),it=Ge.fgopacity,St=k.getPatternAttr(Ge.size,ce.i,8),et=k.getPatternAttr(Ge.solidity,ce.i,.3);bt=bt||ce.mcc||u.isArrayOrTypedArray(Ge.shape)||u.isArrayOrTypedArray(Ge.bgcolor)||u.isArrayOrTypedArray(Ge.fgcolor)||u.isArrayOrTypedArray(Ge.size)||u.isArrayOrTypedArray(Ge.solidity);var ct=Z.uid;bt&&(ct+="-"+ce.i),k.pattern(we,"point",de,ct,ot,St,et,ce.mcc,Ge.fillmode,tt,je,it)}else u.isArrayOrTypedArray(Le)?h.fill(we,Le[ce.i]):h.fill(we,Le);Ie&&h.stroke(we,Re)}},k.makePointStyleFns=function(ce){var we={},Z=ce.marker;return we.markerScale=k.tryColorscale(Z,""),we.lineScale=k.tryColorscale(Z,"line"),p.traceIs(ce,"symbols")&&(we.ms2mrc=_.isBubble(ce)?w(ce):function(){return(Z.size||6)/2}),ce.selectedpoints&&u.extendFlat(we,k.makeSelectedPointStyleFns(ce)),we},k.makeSelectedPointStyleFns=function(ce){var we={},Z=ce.selected||{},re=ce.unselected||{},de=ce.marker||{},_e=Z.marker||{},ue=re.marker||{},me=de.opacity,xe=_e.opacity,ye=ue.opacity,Te=xe!==void 0,Ae=ye!==void 0;(u.isArrayOrTypedArray(me)||Te||Ae)&&(we.selectedOpacityFn=function(ot){var Je=ot.mo===void 0?de.opacity:ot.mo;return ot.selected?Te?xe:Je:Ae?ye:x*Je});var Le=de.color,Re=_e.color,Ie=ue.color;(Re||Ie)&&(we.selectedColorFn=function(ot){var Je=ot.mcc||Le;return ot.selected?Re||Je:Ie||Je});var Ne=de.size,ze=_e.size,qe=ue.size,We=ze!==void 0,Ge=qe!==void 0;return p.traceIs(ce,"symbols")&&(We||Ge)&&(we.selectedSizeFn=function(ot){var Je=ot.mrc||Ne/2;return ot.selected?We?ze/2:Je:Ge?qe/2:Je}),we},k.makeSelectedTextStyleFns=function(ce){var we={},Z=ce.selected||{},re=ce.unselected||{},de=ce.textfont||{},_e=Z.textfont||{},ue=re.textfont||{},me=de.color,xe=_e.color,ye=ue.color;return we.selectedTextColorFn=function(Te){var Ae=Te.tc||me;return Te.selected?xe||Ae:ye||(xe?Ae:h.addOpacity(Ae,x))},we},k.selectedPointStyle=function(ce,we){if(ce.size()&&we.selectedpoints){var Z=k.makeSelectedPointStyleFns(we),re=we.marker||{},de=[];Z.selectedOpacityFn&&de.push(function(_e,ue){_e.style("opacity",Z.selectedOpacityFn(ue))}),Z.selectedColorFn&&de.push(function(_e,ue){h.fill(_e,Z.selectedColorFn(ue))}),Z.selectedSizeFn&&de.push(function(_e,ue){var me=ue.mx||re.symbol||0,xe=Z.selectedSizeFn(ue);_e.attr("d",O(k.symbolNumber(me),xe,Pe(ue,we),V(ue,we))),ue.mrc2=xe}),de.length&&ce.each(function(_e){for(var ue=s.select(this),me=0;me0?Z:0}function N(ce,we,Z){return Z&&(ce=H(ce)),we?q(ce[1]):R(ce[0])}function R(ce){var we=s.round(ce,2);return A=we,we}function q(ce){var we=s.round(ce,2);return F=we,we}function Y(ce,we,Z,re){var de=ce[0]-we[0],_e=ce[1]-we[1],ue=Z[0]-we[0],me=Z[1]-we[1],xe=Math.pow(de*de+_e*_e,.25),ye=Math.pow(ue*ue+me*me,.25),Te=(ye*ye*de-xe*xe*ue)*re,Ae=(ye*ye*_e-xe*xe*me)*re,Le=3*ye*(xe+ye),Re=3*xe*(xe+ye);return[[R(we[0]+(Le&&Te/Le)),q(we[1]+(Le&&Ae/Le))],[R(we[0]-(Re&&Te/Re)),q(we[1]-(Re&&Ae/Re))]]}k.textPointStyle=function(ce,we,Z){if(ce.size()){var re;if(we.selectedpoints){var de=k.makeSelectedTextStyleFns(we);re=de.selectedTextColorFn}var _e=we.texttemplate,ue=Z._fullLayout;ce.each(function(me){var xe=s.select(this),ye=_e?u.extractOption(me,we,"txt","texttemplate"):u.extractOption(me,we,"tx","text");if(ye||ye===0){if(_e){var Te=we._module.formatLabels,Ae=Te?Te(me,we,ue):{},Le={};S(Le,we,me.i);var Re=we._meta||{};ye=u.texttemplateString(ye,Ae,ue._d3locale,Le,me,Re)}var Ie=me.tp||we.textposition,Ne=z(me,we),ze=re?re(me):me.tc||we.textfont.color;xe.call(k.font,me.tf||we.textfont.family,Ne,ze).text(ye).call(v.convertToTspans,Z).call(B,Ie,Ne,me.mrc)}else xe.remove()})}},k.selectedTextStyle=function(ce,we){if(ce.size()&&we.selectedpoints){var Z=k.makeSelectedTextStyleFns(we);ce.each(function(re){var de=s.select(this),_e=Z.selectedTextColorFn(re),ue=re.tp||we.textposition,me=z(re,we);h.fill(de,_e);var xe=p.traceIs(we,"bar-like");B(de,ue,me,re.mrc2||re.mrc,xe)})}},k.smoothopen=function(ce,we){if(ce.length<3)return"M"+ce.join("L");var Z,re="M"+ce[0],de=[];for(Z=1;Z=xe||ot>=Te&&ot<=xe)&&(Je<=Ae&&Je>=ye||Je>=Ae&&Je<=ye)&&(ce=[ot,Je])}return ce}k.steps=function(ce){var we=L[ce]||W;return function(Z){for(var re="M"+R(Z[0][0])+","+q(Z[0][1]),de=Z.length,_e=1;_e=1e4&&(k.savedBBoxes={},G=0),Z&&(k.savedBBoxes[Z]=Re),G++,u.extendFlat({},Re)},k.setClipUrl=function(ce,we,Z){ce.attr("clip-path",ee(we,Z))},k.getTranslate=function(ce){var we=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(Z,re,de){return[re,de].join(" ")}).split(" ");return{x:+we[0]||0,y:+we[1]||0}},k.setTranslate=function(ce,we,Z){var re=ce.attr?"attr":"getAttribute",de=ce.attr?"attr":"setAttribute",_e=ce[re]("transform")||"";return we=we||0,Z=Z||0,_e=_e.replace(/(\btranslate\(.*?\);?)/,"").trim(),_e=(_e+=b(we,Z)).trim(),ce[de]("transform",_e),_e},k.getScale=function(ce){var we=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(Z,re,de){return[re,de].join(" ")}).split(" ");return{x:+we[0]||1,y:+we[1]||1}},k.setScale=function(ce,we,Z){var re=ce.attr?"attr":"getAttribute",de=ce.attr?"attr":"setAttribute",_e=ce[re]("transform")||"";return we=we||1,Z=Z||1,_e=_e.replace(/(\bscale\(.*?\);?)/,"").trim(),_e=(_e+="scale("+we+","+Z+")").trim(),ce[de]("transform",_e),_e};var U=/\s*sc.*/;k.setPointGroupScale=function(ce,we,Z){if(we=we||1,Z=Z||1,ce){var re=we===1&&Z===1?"":"scale("+we+","+Z+")";ce.each(function(){var de=(this.getAttribute("transform")||"").replace(U,"");de=(de+=re).trim(),this.setAttribute("transform",de)})}};var Q=/translate\([^)]*\)\s*$/;function V(ce,we){var Z;return ce&&(Z=ce.mf),Z===void 0&&(Z=we.marker&&we.marker.standoff||0),we._geo||we._xA?Z:-Z}k.setTextPointsScale=function(ce,we,Z){ce&&ce.each(function(){var re,de=s.select(this),_e=de.select("text");if(_e.node()){var ue=parseFloat(_e.attr("x")||0),me=parseFloat(_e.attr("y")||0),xe=(de.attr("transform")||"").match(Q);re=we===1&&Z===1?[]:[b(ue,me),"scale("+we+","+Z+")",b(-ue,-me)],xe&&re.push(xe),de.attr("transform",re.join(""))}})},k.getMarkerStandoff=V;var X,K,ne,ae,ie,se,pe=Math.atan2,ke=Math.cos,Ce=Math.sin;function Oe(ce,we){var Z=we[0],re=we[1];return[Z*ke(ce)-re*Ce(ce),Z*Ce(ce)+re*ke(ce)]}function Pe(ce,we){var Z,re,de=ce.ma;de===void 0&&(de=we.marker.angle||0);var _e=we.marker.angleref;if(_e==="previous"||_e==="north"){if(we._geo){var ue=we._geo.project(ce.lonlat);Z=ue[0],re=ue[1]}else{var me=we._xA,xe=we._yA;if(!me||!xe)return 90;Z=me.c2p(ce.x),re=xe.c2p(ce.y)}if(we._geo){var ye,Te=ce.lonlat[0],Ae=ce.lonlat[1],Le=we._geo.project([Te,Ae+1e-5]),Re=we._geo.project([Te+1e-5,Ae]),Ie=pe(Re[1]-re,Re[0]-Z),Ne=pe(Le[1]-re,Le[0]-Z);if(_e==="north")ye=de/180*Math.PI;else if(_e==="previous"){var ze=Te/180*Math.PI,qe=Ae/180*Math.PI,We=X/180*Math.PI,Ge=K/180*Math.PI,ot=We-ze,Je=ke(Ge)*Ce(ot),st=Ce(Ge)*ke(qe)-ke(Ge)*Ce(qe)*ke(ot);ye=-pe(Je,st)-Math.PI,X=Te,K=Ae}var bt=Oe(Ie,[ke(ye),0]),Be=Oe(Ne,[Ce(ye),0]);de=pe(bt[1]+Be[1],bt[0]+Be[0])/Math.PI*180,_e!=="previous"||se===we.uid&&ce.i===ie+1||(de=null)}if(_e==="previous"&&!we._geo)if(se===we.uid&&ce.i===ie+1&&d(Z)&&d(re)){var je=Z-ne,tt=re-ae,it=we.line&&we.line.shape||"",St=it.slice(it.length-1);St==="h"&&(tt=0),St==="v"&&(je=0),de+=pe(tt,je)/Math.PI*180+90}else de=null}return ne=Z,ae=re,ie=ce.i,se=we.uid,de}k.getMarkerAngle=Pe},90998:function(i,o,a){var s,u,c,d,f=a(95616),p=a(39898).round,h="M0,0Z",g=Math.sqrt(2),b=Math.sqrt(3),v=Math.PI,m=Math.cos,y=Math.sin;function x(w){return w===null}function _(w,S,k){if(!(w&&w%360!=0||S))return k;if(c===w&&d===S&&s===k)return u;function C(N,R){var q=m(N),Y=y(N),L=R[0],W=R[1]+(S||0);return[L*q-W*Y,L*Y+W*q]}c=w,d=S,s=k;for(var T=w/180*v,M=0,O=0,D=f(k),P="",E=0;E0,y=f._context.staticPlot;p.each(function(x){var _,w=x[0].trace,S=w.error_x||{},k=w.error_y||{};w.ids&&(_=function(O){return O.id});var C=d.hasMarkers(w)&&w.marker.maxdisplayed>0;k.visible||S.visible||(x=[]);var T=s.select(this).selectAll("g.errorbar").data(x,_);if(T.exit().remove(),x.length){S.visible||T.selectAll("path.xerror").remove(),k.visible||T.selectAll("path.yerror").remove(),T.style("opacity",1);var M=T.enter().append("g").classed("errorbar",!0);m&&M.style("opacity",0).transition().duration(g.duration).style("opacity",1),c.setClipUrl(T,h.layerClipId,f),T.each(function(O){var D=s.select(this),P=function(B,z,N){var R={x:z.c2p(B.x),y:N.c2p(B.y)};return B.yh!==void 0&&(R.yh=N.c2p(B.yh),R.ys=N.c2p(B.ys),u(R.ys)||(R.noYS=!0,R.ys=N.c2p(B.ys,!0))),B.xh!==void 0&&(R.xh=z.c2p(B.xh),R.xs=z.c2p(B.xs),u(R.xs)||(R.noXS=!0,R.xs=z.c2p(B.xs,!0))),R}(O,b,v);if(!C||O.vis){var E,I=D.select("path.yerror");if(k.visible&&u(P.x)&&u(P.yh)&&u(P.ys)){var A=k.width;E="M"+(P.x-A)+","+P.yh+"h"+2*A+"m-"+A+",0V"+P.ys,P.noYS||(E+="m-"+A+",0h"+2*A),I.size()?m&&(I=I.transition().duration(g.duration).ease(g.easing)):I=D.append("path").style("vector-effect",y?"none":"non-scaling-stroke").classed("yerror",!0),I.attr("d",E)}else I.remove();var F=D.select("path.xerror");if(S.visible&&u(P.y)&&u(P.xh)&&u(P.xs)){var j=(S.copy_ystyle?k:S).width;E="M"+P.xh+","+(P.y-j)+"v"+2*j+"m0,-"+j+"H"+P.xs,P.noXS||(E+="m0,-"+j+"v"+2*j),F.size()?m&&(F=F.transition().duration(g.duration).ease(g.easing)):F=D.append("path").style("vector-effect",y?"none":"non-scaling-stroke").classed("xerror",!0),F.attr("d",E)}else F.remove()}})}})}},62662:function(i,o,a){var s=a(39898),u=a(7901);i.exports=function(c){c.each(function(d){var f=d[0].trace,p=f.error_y||{},h=f.error_x||{},g=s.select(this);g.selectAll("path.yerror").style("stroke-width",p.thickness+"px").call(u.stroke,p.color),h.copy_ystyle&&(h=p),g.selectAll("path.xerror").style("stroke-width",h.thickness+"px").call(u.stroke,h.color)})}},77914:function(i,o,a){var s=a(41940),u=a(528).hoverlabel,c=a(1426).extendFlat;i.exports={hoverlabel:{bgcolor:c({},u.bgcolor,{arrayOk:!0}),bordercolor:c({},u.bordercolor,{arrayOk:!0}),font:s({arrayOk:!0,editType:"none"}),align:c({},u.align,{arrayOk:!0}),namelength:c({},u.namelength,{arrayOk:!0}),editType:"none"}}},30732:function(i,o,a){var s=a(71828),u=a(73972);function c(d,f,p,h){h=h||s.identity,Array.isArray(d)&&(f[0][p]=h(d))}i.exports=function(d){var f=d.calcdata,p=d._fullLayout;function h(y){return function(x){return s.coerceHoverinfo({hoverinfo:x},{_module:y._module},p)}}for(var g=0;g=0&&b.indexde[0]._length||ht<0||ht>_e[0]._length)return y.unhoverRaw(ae,ie)}else ct="xpx"in ie?ie.xpx:de[0]._length/2,ht="ypx"in ie?ie.ypx:_e[0]._length/2;if(ie.pointerX=ct+de[0]._offset,ie.pointerY=ht+_e[0]._offset,Re="xval"in ie?w.flat(Ce,ie.xval):w.p2c(de,ct),Ie="yval"in ie?w.flat(Ce,ie.yval):w.p2c(_e,ht),!u(Re[0])||!u(Ie[0]))return d.warn("Fx.hover failed",ie,ae),y.unhoverRaw(ae,ie)}var Wt=1/0;function wt(Jt,_n){for(ze=0;zeje&&(tt.splice(0,je),Wt=tt[0].distance),we&&Le!==0&&tt.length===0){Be.distance=Le,Be.index=!1;var Wn=We._module.hoverPoints(Be,st,bt,"closest",{hoverLayer:Oe._hoverlayer});if(Wn&&(Wn=Wn.filter(function(Mr){return Mr.spikeDistance<=Le})),Wn&&Wn.length){var On,qn=Wn.filter(function(Mr){return Mr.xa.showspikes&&Mr.xa.spikesnap!=="hovered data"});if(qn.length){var br=qn[0];u(br.x0)&&u(br.y0)&&(On=Me(br),(!St.vLinePoint||St.vLinePoint.spikeDistance>On.spikeDistance)&&(St.vLinePoint=On))}var Za=Wn.filter(function(Mr){return Mr.ya.showspikes&&Mr.ya.spikesnap!=="hovered data"});if(Za.length){var lo=Za[0];u(lo.x0)&&u(lo.y0)&&(On=Me(lo),(!St.hLinePoint||St.hLinePoint.spikeDistance>On.spikeDistance)&&(St.hLinePoint=On))}}}}}function be(Jt,_n,sn){for(var en,Nn=null,An=1/0,Wn=0;Wn0&&Math.abs(Jt.distance)Nt-1;Gt--)mt(tt[Gt]);tt=Ct,Ze()}var pt=ae._hoverdata,yt=[],qt=te(ae),Rt=ee(ae);for(Ne=0;Ne1||tt.length>1)||Te==="closest"&&et&&tt.length>1,yn=m.combine(Oe.plot_bgcolor||m.background,Oe.paper_bgcolor),pn=z(tt,{gd:ae,hovermode:Te,rotateLabels:on,bgColor:yn,container:Oe._hoverlayer,outerContainer:Oe._paper.node(),commonLabelOpts:Oe.hoverlabel,hoverdistance:Oe.hoverdistance}),cn=pn.hoverLabels;if(w.isUnifiedHover(Te)||(function(Jt,_n,sn,en){var Nn,An,Wn,On,qn,br,Za,lo=_n?"xa":"ya",Mr=_n?"ya":"xa",cl=0,aa=1,Or=Jt.size(),Zr=new Array(Or),Qa=0,zn=en.minX,dn=en.maxX,Zn=en.minY,oa=en.maxY,Vn=function(Dn){return Dn*sn._invScaleX},Qn=function(Dn){return Dn*sn._invScaleY};function Kn(Dn){var ia=Dn[0],Ko=Dn[Dn.length-1];if(An=ia.pmin-ia.pos-ia.dp+ia.size,Wn=Ko.pos+Ko.dp+Ko.size-ia.pmax,An>.01){for(qn=Dn.length-1;qn>=0;qn--)Dn[qn].dp+=An;Nn=!1}if(!(Wn<.01)){if(An<-.01){for(qn=Dn.length-1;qn>=0;qn--)Dn[qn].dp-=Wn;Nn=!1}if(Nn){var _a=0;for(On=0;Onia.pmax&&_a++;for(On=Dn.length-1;On>=0&&!(_a<=0);On--)(br=Dn[On]).pos>ia.pmax-1&&(br.del=!0,_a--);for(On=0;On=0;qn--)Dn[qn].dp-=Wn;for(On=Dn.length-1;On>=0&&!(_a<=0);On--)(br=Dn[On]).pos+br.dp+br.size>ia.pmax&&(br.del=!0,_a--)}}}for(Jt.each(function(Dn){var ia=Dn[lo],Ko=Dn[Mr],_a=ia._id.charAt(0)==="x",_s=ia.range;Qa===0&&_s&&_s[0]>_s[1]!==_a&&(aa=-1);var Ts=0,Bl=_a?sn.width:sn.height;if(sn.hovermode==="x"||sn.hovermode==="y"){var dl,Gi,Wl=R(Dn,_n),Kf=Dn.anchor,Bc=Kf==="end"?-1:1;if(Kf==="middle")Gi=(dl=Dn.crossPos+(_a?Qn(Wl.y-Dn.by/2):Vn(Dn.bx/2+Dn.tx2width/2)))+(_a?Qn(Dn.by):Vn(Dn.bx));else if(_a)Gi=(dl=Dn.crossPos+Qn(E+Wl.y)-Qn(Dn.by/2-E))+Qn(Dn.by);else{var Zf=Vn(Bc*E+Wl.x),bu=Zf+Vn(Bc*Dn.bx);dl=Dn.crossPos+Math.min(Zf,bu),Gi=Dn.crossPos+Math.max(Zf,bu)}_a?Zn!==void 0&&oa!==void 0&&Math.min(Gi,oa)-Math.max(dl,Zn)>1&&(Ko.side==="left"?(Ts=Ko._mainLinePosition,Bl=sn.width):Bl=Ko._mainLinePosition):zn!==void 0&&dn!==void 0&&Math.min(Gi,dn)-Math.max(dl,zn)>1&&(Ko.side==="top"?(Ts=Ko._mainLinePosition,Bl=sn.height):Bl=Ko._mainLinePosition)}Zr[Qa++]=[{datum:Dn,traceIndex:Dn.trace.index,dp:0,pos:Dn.pos,posref:Dn.posref,size:Dn.by*(_a?O:1)/2,pmin:Ts,pmax:Bl}]}),Zr.sort(function(Dn,ia){return Dn[0].posref-ia[0].posref||aa*(ia[0].traceIndex-Dn[0].traceIndex)});!Nn&&cl<=Or;){for(cl++,Nn=!0,On=0;On.01&&Vr.pmin===Qr.pmin&&Vr.pmax===Qr.pmax){for(qn=pa.length-1;qn>=0;qn--)pa[qn].dp+=An;for(or.push.apply(or,pa),Zr.splice(On+1,1),Za=0,qn=or.length-1;qn>=0;qn--)Za+=or[qn].dp;for(Wn=Za/or.length,qn=or.length-1;qn>=0;qn--)or[qn].dp-=Wn;Nn=!1}else On++}Zr.forEach(Kn)}for(On=Zr.length-1;On>=0;On--){var mi=Zr[On];for(qn=mi.length-1;qn>=0;qn--){var Ao=mi[qn],Ja=Ao.datum;Ja.offset=Ao.dp,Ja.del=Ao.del}}}(cn,on,Oe,pn.commonLabelBoundingBox),q(cn,on,Oe._invScaleX,Oe._invScaleY)),ke&&ke.tagName){var hn=_.getComponentMethod("annotations","hasClickToShow")(ae,yt);b(s.select(ke),hn?"pointer":"")}ke&&!pe&&function(Jt,_n,sn){if(!sn||sn.length!==Jt._hoverdata.length)return!0;for(var en=sn.length-1;en>=0;en--){var Nn=sn[en],An=Jt._hoverdata[en];if(Nn.curveNumber!==An.curveNumber||String(Nn.pointNumber)!==String(An.pointNumber)||String(Nn.pointNumbers)!==String(An.pointNumbers))return!0}return!1}(ae,0,pt)&&(pt&&ae.emit("plotly_unhover",{event:ie,points:pt}),ae.emit("plotly_hover",{event:ie,points:ae._hoverdata,xaxes:de,yaxes:_e,xvals:Re,yvals:Ie}))})(Q,V,X,K,ne)})},o.loneHover=function(Q,V){var X=!0;Array.isArray(Q)||(X=!1,Q=[Q]);var K=V.gd,ne=te(K),ae=ee(K),ie=z(Q.map(function(ke){var Ce=ke._x0||ke.x0||ke.x||0,Oe=ke._x1||ke.x1||ke.x||0,Pe=ke._y0||ke.y0||ke.y||0,ce=ke._y1||ke.y1||ke.y||0,we=ke.eventData;if(we){var Z=Math.min(Ce,Oe),re=Math.max(Ce,Oe),de=Math.min(Pe,ce),_e=Math.max(Pe,ce),ue=ke.trace;if(_.traceIs(ue,"gl3d")){var me=K._fullLayout[ue.scene]._scene.container,xe=me.offsetLeft,ye=me.offsetTop;Z+=xe,re+=xe,de+=ye,_e+=ye}we.bbox={x0:Z+ae,x1:re+ae,y0:de+ne,y1:_e+ne},V.inOut_bbox&&V.inOut_bbox.push(we.bbox)}else we=!1;return{color:ke.color||m.defaultLine,x0:ke.x0||ke.x||0,x1:ke.x1||ke.x||0,y0:ke.y0||ke.y||0,y1:ke.y1||ke.y||0,xLabel:ke.xLabel,yLabel:ke.yLabel,zLabel:ke.zLabel,text:ke.text,name:ke.name,idealAlign:ke.idealAlign,borderColor:ke.borderColor,fontFamily:ke.fontFamily,fontSize:ke.fontSize,fontColor:ke.fontColor,nameLength:ke.nameLength,textAlign:ke.textAlign,trace:ke.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:ke.hovertemplate||!1,hovertemplateLabels:ke.hovertemplateLabels||!1,eventData:we}}),{gd:K,hovermode:"closest",rotateLabels:!1,bgColor:V.bgColor||m.background,container:s.select(V.container),outerContainer:V.outerContainer||V.container}).hoverLabels,se=0,pe=0;return ie.sort(function(ke,Ce){return ke.y0-Ce.y0}).each(function(ke,Ce){var Oe=ke.y0-ke.by/2;ke.offset=Oe-5([\s\S]*)<\/extra>/;function z(Q,V){var X=V.gd,K=X._fullLayout,ne=V.hovermode,ae=V.rotateLabels,ie=V.bgColor,se=V.container,pe=V.outerContainer,ke=V.commonLabelOpts||{};if(Q.length===0)return[[]];var Ce=V.fontFamily||S.HOVERFONT,Oe=V.fontSize||S.HOVERFONTSIZE,Pe=Q[0],ce=Pe.xa,we=Pe.ya,Z=ne.charAt(0),re=Z+"Label",de=Pe[re];if(de===void 0&&ce.type==="multicategory")for(var _e=0;_eK.width-jt?(pt=K.width-jt,Nt.attr("d","M"+(jt-E)+",0L"+jt+","+Rt+E+"v"+Rt+(2*I+qt.height)+"H-"+jt+"V"+Rt+E+"H"+(jt-2*E)+"Z")):Nt.attr("d","M0,0L"+E+","+Rt+E+"H"+jt+"v"+Rt+(2*I+qt.height)+"H-"+jt+"V"+Rt+E+"H-"+E+"Z"),ze.minX=pt-jt,ze.maxX=pt+jt,ce.side==="top"?(ze.minY=yt-(2*I+qt.height),ze.maxY=yt-I):(ze.minY=yt+I,ze.maxY=yt+(2*I+qt.height))}else{var Tt,Pt,Ot;we.side==="right"?(Tt="start",Pt=1,Ot="",pt=ce._offset+ce._length):(Tt="end",Pt=-1,Ot="-",pt=ce._offset),yt=we._offset+(Pe.y0+Pe.y1)/2,Gt.attr("text-anchor",Tt),Nt.attr("d","M0,0L"+Ot+E+","+E+"V"+(I+qt.height/2)+"h"+Ot+(2*I+qt.width)+"V-"+(I+qt.height/2)+"H"+Ot+E+"V-"+E+"Z"),ze.minY=yt-(I+qt.height/2),ze.maxY=yt+(I+qt.height/2),we.side==="right"?(ze.minX=pt+E,ze.maxX=pt+E+(2*I+qt.width)):(ze.minX=pt-E-(2*I+qt.width),ze.maxX=pt-E);var It,Lt=qt.height/2,zt=me-qt.top-Lt,Xt="clip"+K._uid+"commonlabel"+we._id;if(pt=0?ht:$t+wt=0?$t:rt+wt=0?et:ct+be=0?ct:ut+be=0,nt.idealAlign!=="top"&&on||!yn?on?(Lt+=Xt/2,nt.anchor="start"):nt.anchor="middle":(Lt-=Xt/2,nt.anchor="end"),nt.crossPos=Lt;else{if(nt.pos=Lt,on=It+zt/2+pn<=xe,yn=It-zt/2-pn>=0,nt.idealAlign!=="left"&&on||!yn)if(on)It+=zt/2,nt.anchor="start";else{nt.anchor="middle";var cn=pn/2,hn=It+cn-xe,Jt=It-cn;hn>0&&(It-=hn),Jt<0&&(It+=-Jt)}else It-=zt/2,nt.anchor="end";nt.crossPos=It}Rt.attr("text-anchor",nt.anchor),Tt&&jt.attr("text-anchor",nt.anchor),Nt.attr("transform",f(It,Lt)+(ae?p(T):""))}),{hoverLabels:gt,commonLabelBoundingBox:ze}}function N(Q,V,X,K,ne,ae){var ie="",se="";Q.nameOverride!==void 0&&(Q.name=Q.nameOverride),Q.name&&(Q.trace._meta&&(Q.name=d.templateString(Q.name,Q.trace._meta)),ie=H(Q.name,Q.nameLength));var pe=X.charAt(0),ke=pe==="x"?"y":"x";Q.zLabel!==void 0?(Q.xLabel!==void 0&&(se+="x: "+Q.xLabel+"
"),Q.yLabel!==void 0&&(se+="y: "+Q.yLabel+"
"),Q.trace.type!=="choropleth"&&Q.trace.type!=="choroplethmapbox"&&(se+=(se?"z: ":"")+Q.zLabel)):V&&Q[pe+"Label"]===ne?se=Q[ke+"Label"]||"":Q.xLabel===void 0?Q.yLabel!==void 0&&Q.trace.type!=="scattercarpet"&&(se=Q.yLabel):se=Q.yLabel===void 0?Q.xLabel:"("+Q.xLabel+", "+Q.yLabel+")",!Q.text&&Q.text!==0||Array.isArray(Q.text)||(se+=(se?"
":"")+Q.text),Q.extraText!==void 0&&(se+=(se?"
":"")+Q.extraText),ae&&se===""&&!Q.hovertemplate&&(ie===""&&ae.remove(),se=ie);var Ce=Q.hovertemplate||!1;if(Ce){var Oe=Q.hovertemplateLabels||Q;Q[pe+"Label"]!==ne&&(Oe[pe+"other"]=Oe[pe+"Val"],Oe[pe+"otherLabel"]=Oe[pe+"Label"]),se=(se=d.hovertemplateString(Ce,Oe,K._d3locale,Q.eventData[0]||{},Q.trace._meta)).replace(B,function(Pe,ce){return ie=H(ce,Q.nameLength),""})}return[se,ie]}function R(Q,V){var X=0,K=Q.offset;return V&&(K*=-P,X=Q.offset*D),{x:X,y:K}}function q(Q,V,X,K){var ne=function(ie){return ie*X},ae=function(ie){return ie*K};Q.each(function(ie){var se=s.select(this);if(ie.del)return se.remove();var pe,ke,Ce,Oe,Pe=se.select("text.nums"),ce=ie.anchor,we=ce==="end"?-1:1,Z=(Oe=(Ce=(ke={start:1,end:-1,middle:0}[(pe=ie).anchor])*(E+I))+ke*(pe.txwidth+I),pe.anchor==="middle"&&(Ce-=pe.tx2width/2,Oe+=pe.txwidth/2+I),{alignShift:ke,textShiftX:Ce,text2ShiftX:Oe}),re=R(ie,V),de=re.x,_e=re.y,ue=ce==="middle";se.select("path").attr("d",ue?"M-"+ne(ie.bx/2+ie.tx2width/2)+","+ae(_e-ie.by/2)+"h"+ne(ie.bx)+"v"+ae(ie.by)+"h-"+ne(ie.bx)+"Z":"M0,0L"+ne(we*E+de)+","+ae(E+_e)+"v"+ae(ie.by/2-E)+"h"+ne(we*ie.bx)+"v-"+ae(ie.by)+"H"+ne(we*E+de)+"V"+ae(_e-E)+"Z");var me=de+Z.textShiftX,xe=_e+ie.ty0-ie.by/2+I,ye=ie.textAlign||"auto";ye!=="auto"&&(ye==="left"&&ce!=="start"?(Pe.attr("text-anchor","start"),me=ue?-ie.bx/2-ie.tx2width/2+I:-ie.bx-I):ye==="right"&&ce!=="end"&&(Pe.attr("text-anchor","end"),me=ue?ie.bx/2-ie.tx2width/2-I:ie.bx+I)),Pe.call(g.positionText,ne(me),ae(xe)),ie.tx2width&&(se.select("text.name").call(g.positionText,ne(Z.text2ShiftX+Z.alignShift*I+de),ae(_e+ie.ty0-ie.by/2+I)),se.select("rect").call(v.setRect,ne(Z.text2ShiftX+(Z.alignShift-1)*ie.tx2width/2+de),ae(_e-ie.by/2-1),ne(ie.tx2width),ae(ie.by+2)))})}function Y(Q,V){var X=Q.index,K=Q.trace||{},ne=Q.cd[0],ae=Q.cd[X]||{};function ie(Pe){return Pe||u(Pe)&&Pe===0}var se=Array.isArray(X)?function(Pe,ce){var we=d.castOption(ne,X,Pe);return ie(we)?we:d.extractOption({},K,"",ce)}:function(Pe,ce){return d.extractOption(ae,K,Pe,ce)};function pe(Pe,ce,we){var Z=se(ce,we);ie(Z)&&(Q[Pe]=Z)}if(pe("hoverinfo","hi","hoverinfo"),pe("bgcolor","hbg","hoverlabel.bgcolor"),pe("borderColor","hbc","hoverlabel.bordercolor"),pe("fontFamily","htf","hoverlabel.font.family"),pe("fontSize","hts","hoverlabel.font.size"),pe("fontColor","htc","hoverlabel.font.color"),pe("nameLength","hnl","hoverlabel.namelength"),pe("textAlign","hta","hoverlabel.align"),Q.posref=V==="y"||V==="closest"&&K.orientation==="h"?Q.xa._offset+(Q.x0+Q.x1)/2:Q.ya._offset+(Q.y0+Q.y1)/2,Q.x0=d.constrain(Q.x0,0,Q.xa._length),Q.x1=d.constrain(Q.x1,0,Q.xa._length),Q.y0=d.constrain(Q.y0,0,Q.ya._length),Q.y1=d.constrain(Q.y1,0,Q.ya._length),Q.xLabelVal!==void 0&&(Q.xLabel="xLabel"in Q?Q.xLabel:x.hoverLabelText(Q.xa,Q.xLabelVal,K.xhoverformat),Q.xVal=Q.xa.c2d(Q.xLabelVal)),Q.yLabelVal!==void 0&&(Q.yLabel="yLabel"in Q?Q.yLabel:x.hoverLabelText(Q.ya,Q.yLabelVal,K.yhoverformat),Q.yVal=Q.ya.c2d(Q.yLabelVal)),Q.zLabelVal!==void 0&&Q.zLabel===void 0&&(Q.zLabel=String(Q.zLabelVal)),!(isNaN(Q.xerr)||Q.xa.type==="log"&&Q.xerr<=0)){var ke=x.tickText(Q.xa,Q.xa.c2l(Q.xerr),"hover").text;Q.xerrneg!==void 0?Q.xLabel+=" +"+ke+" / -"+x.tickText(Q.xa,Q.xa.c2l(Q.xerrneg),"hover").text:Q.xLabel+=" ± "+ke,V==="x"&&(Q.distance+=1)}if(!(isNaN(Q.yerr)||Q.ya.type==="log"&&Q.yerr<=0)){var Ce=x.tickText(Q.ya,Q.ya.c2l(Q.yerr),"hover").text;Q.yerrneg!==void 0?Q.yLabel+=" +"+Ce+" / -"+x.tickText(Q.ya,Q.ya.c2l(Q.yerrneg),"hover").text:Q.yLabel+=" ± "+Ce,V==="y"&&(Q.distance+=1)}var Oe=Q.hoverinfo||Q.trace.hoverinfo;return Oe&&Oe!=="all"&&((Oe=Array.isArray(Oe)?Oe:Oe.split("+")).indexOf("x")===-1&&(Q.xLabel=void 0),Oe.indexOf("y")===-1&&(Q.yLabel=void 0),Oe.indexOf("z")===-1&&(Q.zLabel=void 0),Oe.indexOf("text")===-1&&(Q.text=void 0),Oe.indexOf("name")===-1&&(Q.name=void 0)),Q}function L(Q,V,X){var K,ne,ae=X.container,ie=X.fullLayout,se=ie._size,pe=X.event,ke=!!V.hLinePoint,Ce=!!V.vLinePoint;if(ae.selectAll(".spikeline").remove(),Ce||ke){var Oe=m.combine(ie.plot_bgcolor,ie.paper_bgcolor);if(ke){var Pe,ce,we=V.hLinePoint;K=we&&we.xa,(ne=we&&we.ya).spikesnap==="cursor"?(Pe=pe.pointerX,ce=pe.pointerY):(Pe=K._offset+we.x,ce=ne._offset+we.y);var Z,re,de=c.readability(we.color,Oe)<1.5?m.contrast(Oe):we.color,_e=ne.spikemode,ue=ne.spikethickness,me=ne.spikecolor||de,xe=x.getPxPosition(Q,ne);if(_e.indexOf("toaxis")!==-1||_e.indexOf("across")!==-1){if(_e.indexOf("toaxis")!==-1&&(Z=xe,re=Pe),_e.indexOf("across")!==-1){var ye=ne._counterDomainMin,Te=ne._counterDomainMax;ne.anchor==="free"&&(ye=Math.min(ye,ne.position),Te=Math.max(Te,ne.position)),Z=se.l+ye*se.w,re=se.l+Te*se.w}ae.insert("line",":first-child").attr({x1:Z,x2:re,y1:ce,y2:ce,"stroke-width":ue,stroke:me,"stroke-dasharray":v.dashStyle(ne.spikedash,ue)}).classed("spikeline",!0).classed("crisp",!0),ae.insert("line",":first-child").attr({x1:Z,x2:re,y1:ce,y2:ce,"stroke-width":ue+2,stroke:Oe}).classed("spikeline",!0).classed("crisp",!0)}_e.indexOf("marker")!==-1&&ae.insert("circle",":first-child").attr({cx:xe+(ne.side!=="right"?ue:-ue),cy:ce,r:ue,fill:me}).classed("spikeline",!0)}if(Ce){var Ae,Le,Re=V.vLinePoint;K=Re&&Re.xa,ne=Re&&Re.ya,K.spikesnap==="cursor"?(Ae=pe.pointerX,Le=pe.pointerY):(Ae=K._offset+Re.x,Le=ne._offset+Re.y);var Ie,Ne,ze=c.readability(Re.color,Oe)<1.5?m.contrast(Oe):Re.color,qe=K.spikemode,We=K.spikethickness,Ge=K.spikecolor||ze,ot=x.getPxPosition(Q,K);if(qe.indexOf("toaxis")!==-1||qe.indexOf("across")!==-1){if(qe.indexOf("toaxis")!==-1&&(Ie=ot,Ne=Le),qe.indexOf("across")!==-1){var Je=K._counterDomainMin,st=K._counterDomainMax;K.anchor==="free"&&(Je=Math.min(Je,K.position),st=Math.max(st,K.position)),Ie=se.t+(1-st)*se.h,Ne=se.t+(1-Je)*se.h}ae.insert("line",":first-child").attr({x1:Ae,x2:Ae,y1:Ie,y2:Ne,"stroke-width":We,stroke:Ge,"stroke-dasharray":v.dashStyle(K.spikedash,We)}).classed("spikeline",!0).classed("crisp",!0),ae.insert("line",":first-child").attr({x1:Ae,x2:Ae,y1:Ie,y2:Ne,"stroke-width":We+2,stroke:Oe}).classed("spikeline",!0).classed("crisp",!0)}qe.indexOf("marker")!==-1&&ae.insert("circle",":first-child").attr({cx:Ae,cy:ot-(K.side!=="top"?We:-We),r:We,fill:Ge}).classed("spikeline",!0)}}}function W(Q,V){return!V}function H(Q,V){return g.plainText(Q||"",{len:V,allowedTags:["br","sub","sup","b","i","em"]})}function G(Q,V,X){var K=V[Q+"a"],ne=V[Q+"Val"],ae=V.cd[0];if(K.type==="category"||K.type==="multicategory")ne=K._categoriesMap[ne];else if(K.type==="date"){var ie=V.trace[Q+"periodalignment"];if(ie){var se=V.cd[V.index],pe=se[Q+"Start"];pe===void 0&&(pe=se[Q]);var ke=se[Q+"End"];ke===void 0&&(ke=se[Q]);var Ce=ke-pe;ie==="end"?ne+=Ce:ie==="middle"&&(ne+=Ce/2)}ne=K.d2c(ne)}return ae&&ae.t&&ae.t.posLetter===K._id&&(X.boxmode!=="group"&&X.violinmode!=="group"||(ne+=ae.t.dPos)),ne}function te(Q){return Q.offsetTop+Q.clientTop}function ee(Q){return Q.offsetLeft+Q.clientLeft}function U(Q,V){var X=Q._fullLayout,K=V.getBoundingClientRect(),ne=K.left,ae=K.top,ie=ne+K.width,se=ae+K.height,pe=d.apply3DTransform(X._invTransform)(ne,ae),ke=d.apply3DTransform(X._invTransform)(ie,se),Ce=pe[0],Oe=pe[1],Pe=ke[0],ce=ke[1];return{x:Ce,y:Oe,width:Pe-Ce,height:ce-Oe,top:Math.min(Oe,ce),left:Math.min(Ce,Pe),right:Math.max(Ce,Pe),bottom:Math.max(Oe,ce)}}},38048:function(i,o,a){var s=a(71828),u=a(7901),c=a(23469).isUnifiedHover;i.exports=function(d,f,p,h){h=h||{};var g=f.legend;function b(v){h.font[v]||(h.font[v]=g?f.legend.font[v]:f.font[v])}f&&c(f.hovermode)&&(h.font||(h.font={}),b("size"),b("family"),b("color"),g?(h.bgcolor||(h.bgcolor=u.combine(f.legend.bgcolor,f.paper_bgcolor)),h.bordercolor||(h.bordercolor=f.legend.bordercolor)):h.bgcolor||(h.bgcolor=f.paper_bgcolor)),p("hoverlabel.bgcolor",h.bgcolor),p("hoverlabel.bordercolor",h.bordercolor),p("hoverlabel.namelength",h.namelength),s.coerceFont(p,"hoverlabel.font",h.font),p("hoverlabel.align",h.align)}},98212:function(i,o,a){var s=a(71828),u=a(528);i.exports=function(c,d){function f(p,h){return d[p]!==void 0?d[p]:s.coerce(c,d,u,p,h)}return f("clickmode"),f("hovermode")}},30211:function(i,o,a){var s=a(39898),u=a(71828),c=a(28569),d=a(23469),f=a(528),p=a(88335);i.exports={moduleType:"component",name:"fx",constants:a(26675),schema:{layout:f},attributes:a(77914),layoutAttributes:f,supplyLayoutGlobalDefaults:a(22774),supplyDefaults:a(54268),supplyLayoutDefaults:a(34938),calc:a(30732),getDistanceFunction:d.getDistanceFunction,getClosest:d.getClosest,inbox:d.inbox,quadrature:d.quadrature,appendArrayPointValue:d.appendArrayPointValue,castHoverOption:function(h,g,b){return u.castOption(h,g,"hoverlabel."+b)},castHoverinfo:function(h,g,b){return u.castOption(h,b,"hoverinfo",function(v){return u.coerceHoverinfo({hoverinfo:v},{_module:h._module},g)})},hover:p.hover,unhover:c.unhover,loneHover:p.loneHover,loneUnhover:function(h){var g=u.isD3Selection(h)?h:s.select(h);g.selectAll("g.hovertext").remove(),g.selectAll(".spikeline").remove()},click:a(75914)}},528:function(i,o,a){var s=a(26675),u=a(41940),c=u({editType:"none"});c.family.dflt=s.HOVERFONT,c.size.dflt=s.HOVERFONTSIZE,i.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:c,grouptitlefont:u({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},34938:function(i,o,a){var s=a(71828),u=a(528),c=a(98212),d=a(38048);i.exports=function(f,p){function h(m,y){return s.coerce(f,p,u,m,y)}c(f,p)&&(h("hoverdistance"),h("spikedistance")),h("dragmode")==="select"&&h("selectdirection");var g=p._has("mapbox"),b=p._has("geo"),v=p._basePlotModules.length;p.dragmode==="zoom"&&((g||b)&&v===1||g&&b&&v===2)&&(p.dragmode="pan"),d(f,p,h),s.coerceFont(h,"hoverlabel.grouptitlefont",p.hoverlabel.font)}},22774:function(i,o,a){var s=a(71828),u=a(38048),c=a(528);i.exports=function(d,f){u(d,f,function(p,h){return s.coerce(d,f,c,p,h)})}},83312:function(i,o,a){var s=a(71828),u=a(30587).counter,c=a(27670).Y,d=a(85555).idRegex,f=a(44467),p={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[u("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[d.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[d.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:c({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function h(v,m,y){var x=m[y+"axes"],_=Object.keys((v._splomAxes||{})[y]||{});return Array.isArray(x)?x:_.length?_:void 0}function g(v,m,y,x,_,w){var S=m(v+"gap",y),k=m("domain."+v);m(v+"side",x);for(var C=new Array(_),T=k[0],M=(k[1]-T)/(_-S),O=M*(1-S),D=0;D<_;D++){var P=T+M*D;C[w?_-1-D:D]=[P,P+O]}return C}function b(v,m,y,x,_){var w,S=new Array(y);function k(C,T){m.indexOf(T)!==-1&&x[T]===void 0?(S[C]=T,x[T]=C):S[C]=""}if(Array.isArray(v))for(w=0;w1){k||C||T||B("pattern")==="independent"&&(k=!0),O._hasSubplotGrid=k;var E,I,A=B("roworder")==="top to bottom",F=k?.2:.1,j=k?.3:.1;M&&m._splomGridDflt&&(E=m._splomGridDflt.xside,I=m._splomGridDflt.yside),O._domains={x:g("x",B,F,E,P),y:g("y",B,j,I,D,A)}}else delete m.grid}function B(z,N){return s.coerce(y,O,p,z,N)}},contentDefaults:function(v,m){var y=m.grid;if(y&&y._domains){var x,_,w,S,k,C,T,M=v.grid||{},O=m._subplots,D=y._hasSubplotGrid,P=y.rows,E=y.columns,I=y.pattern==="independent",A=y._axisMap={};if(D){var F=M.subplots||[];C=y.subplots=new Array(P);var j=1;for(x=0;x(b==="legend"?1:0));if(j===!1&&(m[b]=void 0),(j!==!1||x.uirevision)&&(w("uirevision",m.uirevision),j!==!1)){w("borderwidth");var B,z,N,R=w("orientation")==="h",q=w("yref")==="paper",Y=w("xref")==="paper",L="left";if(R?(B=0,s.getComponentMethod("rangeslider","isVisible")(v.xaxis)?q?(z=1.1,N="bottom"):(z=1,N="top"):q?(z=-.1,N="top"):(z=0,N="bottom")):(z=1,N="auto",Y?B=1.02:(B=1,L="right")),u.coerce(x,_,{x:{valType:"number",editType:"legend",min:Y?-2:0,max:Y?3:1,dflt:B}},"x"),u.coerce(x,_,{y:{valType:"number",editType:"legend",min:q?-2:0,max:q?3:1,dflt:z}},"y"),w("traceorder",P),h.isGrouped(m[b])&&w("tracegroupgap"),w("entrywidth"),w("entrywidthmode"),w("itemsizing"),w("itemwidth"),w("itemclick"),w("itemdoubleclick"),w("groupclick"),w("xanchor",L),w("yanchor",N),w("valign"),u.noneOrAll(x,_,["x","y"]),w("title.text")){w("title.side",R?"left":"top");var W=u.extendFlat({},S,{size:u.bigFont(S.size)});u.coerceFont(w,"title.font",W)}}}}i.exports=function(b,v,m){var y,x=m.slice(),_=v.shapes;if(_)for(y=0;y<_.length;y++){var w=_[y];if(w.showlegend){var S={_input:w._input,visible:w.visible,showlegend:w.showlegend,legend:w.legend};x.push(S)}}var k=["legend"];for(y=0;y1)}var K=W.hiddenlabels||[];if(!(G||W.showlegend&&te.length))return Y.selectAll("."+H).remove(),W._topdefs.select("#"+q).remove(),c.autoMargin(N,H);var ne=u.ensureSingle(Y,"g",H,function(ce){G||ce.attr("pointer-events","all")}),ae=u.ensureSingleById(W._topdefs,"clipPath",q,function(ce){ce.append("rect")}),ie=u.ensureSingle(ne,"rect","bg",function(ce){ce.attr("shape-rendering","crispEdges")});ie.call(g.stroke,L.bordercolor).call(g.fill,L.bgcolor).style("stroke-width",L.borderwidth+"px");var se,pe=u.ensureSingle(ne,"g","scrollbox"),ke=L.title;L._titleWidth=0,L._titleHeight=0,ke.text?((se=u.ensureSingle(pe,"text",H+"titletext")).attr("text-anchor","start").call(h.font,ke.font).text(ke.text),F(se,pe,N,L,T)):pe.selectAll("."+H+"titletext").remove();var Ce=u.ensureSingle(ne,"rect","scrollbar",function(ce){ce.attr(m.scrollBarEnterAttrs).call(g.fill,m.scrollBarColor)}),Oe=pe.selectAll("g.groups").data(te);Oe.enter().append("g").attr("class","groups"),Oe.exit().remove();var Pe=Oe.selectAll("g.traces").data(u.identity);Pe.enter().append("g").attr("class","traces"),Pe.exit().remove(),Pe.style("opacity",function(ce){var we=ce[0].trace;return d.traceIs(we,"pie-like")?K.indexOf(ce[0].label)!==-1?.5:1:we.visible==="legendonly"?.5:1}).each(function(){s.select(this).call(E,N,L)}).call(k,N,L).each(function(){G||s.select(this).call(A,N,H)}),u.syncOrAsync([c.previousPromises,function(){return function(ce,we,Z,re){var de=ce._fullLayout,_e=z(re);re||(re=de[_e]);var ue=de._size,me=C.isVertical(re),xe=C.isGrouped(re),ye=re.entrywidthmode==="fraction",Te=re.borderwidth,Ae=2*Te,Le=m.itemGap,Re=re.itemwidth+2*Le,Ie=2*(Te+Le),Ne=B(re),ze=re.y<0||re.y===0&&Ne==="top",qe=re.y>1||re.y===1&&Ne==="bottom",We=re.tracegroupgap,Ge={};re._maxHeight=Math.max(ze||qe?de.height/2:ue.h,30);var ot=0;re._width=0,re._height=0;var Je=function(Ye){var Qe=0,rt=0,ut=Ye.title.side;return ut&&(ut.indexOf("left")!==-1&&(Qe=Ye._titleWidth),ut.indexOf("top")!==-1&&(rt=Ye._titleHeight)),[Qe,rt]}(re);if(me)Z.each(function(Ye){var Qe=Ye[0].height;h.setTranslate(this,Te+Je[0],Te+Je[1]+re._height+Qe/2+Le),re._height+=Qe,re._width=Math.max(re._width,Ye[0].width)}),ot=Re+re._width,re._width+=Le+Re+Ae,re._height+=Ie,xe&&(we.each(function(Ye,Qe){h.setTranslate(this,0,Qe*re.tracegroupgap)}),re._height+=(re._lgroupsLength-1)*re.tracegroupgap);else{var st=j(re),bt=re.x<0||re.x===0&&st==="right",Be=re.x>1||re.x===1&&st==="left",je=qe||ze,tt=de.width/2;re._maxWidth=Math.max(bt?je&&st==="left"?ue.l+ue.w:tt:Be?je&&st==="right"?ue.r+ue.w:tt:ue.w,2*Re);var it=0,St=0;Z.each(function(Ye){var Qe=D(Ye,re,Re);it=Math.max(it,Qe),St+=Qe}),ot=null;var et=0;if(xe){var ct=0,ht=0,$t=0;we.each(function(){var Ye=0,Qe=0;s.select(this).selectAll("g.traces").each(function(ut){var gt=D(ut,re,Re),nt=ut[0].height;h.setTranslate(this,Je[0],Je[1]+Te+Le+nt/2+Qe),Qe+=nt,Ye=Math.max(Ye,gt),Ge[ut[0].trace.legendgroup]=Ye});var rt=Ye+Le;ht>0&&rt+Te+ht>re._maxWidth?(et=Math.max(et,ht),ht=0,$t+=ct+We,ct=Qe):ct=Math.max(ct,Qe),h.setTranslate(this,ht,$t),ht+=rt}),re._width=Math.max(et,ht)+Te,re._height=$t+ct+Ie}else{var kt=Z.size(),Wt=St+Ae+(kt-1)*Le=re._maxWidth&&(et=Math.max(et,Ve),be=0,Me+=wt,re._height+=wt,wt=0),h.setTranslate(this,Je[0]+Te+be,Je[1]+Te+Me+Qe/2+Le),Ve=be+rt+Le,be+=ut,wt=Math.max(wt,Qe)}),Wt?(re._width=be+Ae,re._height=wt+Ie):(re._width=Math.max(et,Ve)+Ae,re._height+=wt+Ie)}}re._width=Math.ceil(Math.max(re._width+Je[0],re._titleWidth+2*(Te+m.titlePad))),re._height=Math.ceil(Math.max(re._height+Je[1],re._titleHeight+2*(Te+m.itemGap))),re._effHeight=Math.min(re._height,re._maxHeight);var Ue=ce._context.edits,Ze=Ue.legendText||Ue.legendPosition;Z.each(function(Ye){var Qe=s.select(this).select("."+_e+"toggle"),rt=Ye[0].height,ut=Ye[0].trace.legendgroup,gt=D(Ye,re,Re);xe&&ut!==""&&(gt=Ge[ut]);var nt=Ze?Re:ot||gt;me||ye||(nt+=Le/2),h.setRect(Qe,0,-rt/2,nt,rt)})}(N,Oe,Pe,L)},function(){var ce,we,Z,re,de=W._size,_e=L.borderwidth,ue=L.xref==="paper",me=L.yref==="paper";if(ke.text&&function(je,tt,it){if(tt.title.side==="top center"||tt.title.side==="top right"){var St=tt.title.font.size*x,et=0,ct=je.node(),ht=h.bBox(ct).width;tt.title.side==="top center"?et=.5*(tt._width-2*it-2*m.titlePad-ht):tt.title.side==="top right"&&(et=tt._width-2*it-2*m.titlePad-ht),b.positionText(je,it+m.titlePad+et,it+St)}}(se,L,_e),!G){var xe,ye;xe=ue?de.l+de.w*L.x-_[j(L)]*L._width:W.width*L.x-_[j(L)]*L._width,ye=me?de.t+de.h*(1-L.y)-_[B(L)]*L._effHeight:W.height*(1-L.y)-_[B(L)]*L._effHeight;var Te=function(je,tt,it,St){var et=je._fullLayout,ct=et[tt],ht=j(ct),$t=B(ct),kt=ct.xref==="paper",Wt=ct.yref==="paper";je._fullLayout._reservedMargin[tt]={};var wt=ct.y<.5?"b":"t",be=ct.x<.5?"l":"r",Me={r:et.width-it,l:it+ct._width,b:et.height-St,t:St+ct._effHeight};if(kt&&Wt)return c.autoMargin(je,tt,{x:ct.x,y:ct.y,l:ct._width*_[ht],r:ct._width*w[ht],b:ct._effHeight*w[$t],t:ct._effHeight*_[$t]});kt?je._fullLayout._reservedMargin[tt][wt]=Me[wt]:Wt||ct.orientation==="v"?je._fullLayout._reservedMargin[tt][be]=Me[be]:je._fullLayout._reservedMargin[tt][wt]=Me[wt]}(N,H,xe,ye);if(Te)return;if(W.margin.autoexpand){var Ae=xe,Le=ye;xe=ue?u.constrain(xe,0,W.width-L._width):Ae,ye=me?u.constrain(ye,0,W.height-L._effHeight):Le,xe!==Ae&&u.log("Constrain "+H+".x to make legend fit inside graph"),ye!==Le&&u.log("Constrain "+H+".y to make legend fit inside graph")}h.setTranslate(ne,xe,ye)}if(Ce.on(".drag",null),ne.on("wheel",null),G||L._height<=L._maxHeight||N._context.staticPlot){var Re=L._effHeight;G&&(Re=L._height),ie.attr({width:L._width-_e,height:Re-_e,x:_e/2,y:_e/2}),h.setTranslate(pe,0,0),ae.select("rect").attr({width:L._width-2*_e,height:Re-2*_e,x:_e,y:_e}),h.setClipUrl(pe,q,N),h.setRect(Ce,0,0,0,0),delete L._scrollY}else{var Ie,Ne,ze,qe=Math.max(m.scrollBarMinHeight,L._effHeight*L._effHeight/L._height),We=L._effHeight-qe-2*m.scrollBarMargin,Ge=L._height-L._effHeight,ot=We/Ge,Je=Math.min(L._scrollY||0,Ge);ie.attr({width:L._width-2*_e+m.scrollBarWidth+m.scrollBarMargin,height:L._effHeight-_e,x:_e/2,y:_e/2}),ae.select("rect").attr({width:L._width-2*_e+m.scrollBarWidth+m.scrollBarMargin,height:L._effHeight-2*_e,x:_e,y:_e+Je}),h.setClipUrl(pe,q,N),Be(Je,qe,ot),ne.on("wheel",function(){Be(Je=u.constrain(L._scrollY+s.event.deltaY/We*Ge,0,Ge),qe,ot),Je!==0&&Je!==Ge&&s.event.preventDefault()});var st=s.behavior.drag().on("dragstart",function(){var je=s.event.sourceEvent;Ie=je.type==="touchstart"?je.changedTouches[0].clientY:je.clientY,ze=Je}).on("drag",function(){var je=s.event.sourceEvent;je.buttons===2||je.ctrlKey||(Ne=je.type==="touchmove"?je.changedTouches[0].clientY:je.clientY,Je=function(tt,it,St){var et=(St-it)/ot+tt;return u.constrain(et,0,Ge)}(ze,Ie,Ne),Be(Je,qe,ot))});Ce.call(st);var bt=s.behavior.drag().on("dragstart",function(){var je=s.event.sourceEvent;je.type==="touchstart"&&(Ie=je.changedTouches[0].clientY,ze=Je)}).on("drag",function(){var je=s.event.sourceEvent;je.type==="touchmove"&&(Ne=je.changedTouches[0].clientY,Je=function(tt,it,St){var et=(it-St)/ot+tt;return u.constrain(et,0,Ge)}(ze,Ie,Ne),Be(Je,qe,ot))});pe.call(bt)}function Be(je,tt,it){L._scrollY=N._fullLayout[H]._scrollY=je,h.setTranslate(pe,0,-je),h.setRect(Ce,L._width,m.scrollBarMargin+je*it,m.scrollBarWidth,tt),ae.select("rect").attr("y",_e+je)}N._context.edits.legendPosition&&(ne.classed("cursor-move",!0),p.init({element:ne.node(),gd:N,prepFn:function(){var je=h.getTranslate(ne);Z=je.x,re=je.y},moveFn:function(je,tt){var it=Z+je,St=re+tt;h.setTranslate(ne,it,St),ce=p.align(it,L._width,de.l,de.l+de.w,L.xanchor),we=p.align(St+L._height,-L._height,de.t+de.h,de.t,L.yanchor)},doneFn:function(){if(ce!==void 0&&we!==void 0){var je={};je[H+".x"]=ce,je[H+".y"]=we,d.call("_guiRelayout",N,je)}},clickFn:function(je,tt){var it=Y.selectAll("g.traces").filter(function(){var St=this.getBoundingClientRect();return tt.clientX>=St.left&&tt.clientX<=St.right&&tt.clientY>=St.top&&tt.clientY<=St.bottom});it.size()>0&&P(N,ne,it,je,tt)}}))}],N)}}function D(N,R,q){var Y=N[0],L=Y.width,W=R.entrywidthmode,H=Y.trace.legendwidth||R.entrywidth;return W==="fraction"?R._maxWidth*H:q+(H||L)}function P(N,R,q,Y,L){var W=q.data()[0][0].trace,H={event:L,node:q.node(),curveNumber:W.index,expandedIndex:W._expandedIndex,data:N.data,layout:N.layout,frames:N._transitionData._frames,config:N._context,fullData:N._fullData,fullLayout:N._fullLayout};W._group&&(H.group=W._group),d.traceIs(W,"pie-like")&&(H.label=q.datum()[0].label);var G=f.triggerHandler(N,"plotly_legendclick",H);if(Y===1){if(G===!1)return;R._clickTimeout=setTimeout(function(){N._fullLayout&&v(q,N,Y)},N._context.doubleClickDelay)}else Y===2&&(R._clickTimeout&&clearTimeout(R._clickTimeout),N._legendMouseDownTime=0,f.triggerHandler(N,"plotly_legenddoubleclick",H)!==!1&&G!==!1&&v(q,N,Y))}function E(N,R,q){var Y,L,W=z(q),H=N.data()[0][0],G=H.trace,te=d.traceIs(G,"pie-like"),ee=!q._inHover&&R._context.edits.legendText&&!te,U=q._maxNameLength;H.groupTitle?(Y=H.groupTitle.text,L=H.groupTitle.font):(L=q.font,q.entries?Y=H.text:(Y=te?H.label:G.name,G._meta&&(Y=u.templateString(Y,G._meta))));var Q=u.ensureSingle(N,"text",W+"text");Q.attr("text-anchor","start").call(h.font,L).text(ee?I(Y,U):Y);var V=q.itemwidth+2*m.itemGap;b.positionText(Q,V,0),ee?Q.call(b.makeEditable,{gd:R,text:Y}).call(F,N,R,q).on("edit",function(X){this.text(I(X,U)).call(F,N,R,q);var K=H.trace._fullInput||{},ne={};if(d.hasTransform(K,"groupby")){var ae=d.getTransformIndices(K,"groupby"),ie=ae[ae.length-1],se=u.keyedContainer(K,"transforms["+ie+"].styles","target","value.name");se.set(H.trace._group,X),ne=se.constructUpdate()}else ne.name=X;return K._isShape?d.call("_guiRelayout",R,"shapes["+G.index+"].name",ne.name):d.call("_guiRestyle",R,ne,G.index)}):F(Q,N,R,q)}function I(N,R){var q=Math.max(4,R);if(N&&N.trim().length>=q/2)return N;for(var Y=q-(N=N||"").length;Y>0;Y--)N+=" ";return N}function A(N,R,q){var Y,L=R._context.doubleClickDelay,W=1,H=u.ensureSingle(N,"rect",q+"toggle",function(G){R._context.staticPlot||G.style("cursor","pointer").attr("pointer-events","all"),G.call(g.fill,"rgba(0,0,0,0)")});R._context.staticPlot||(H.on("mousedown",function(){(Y=new Date().getTime())-R._legendMouseDownTimeL&&(W=Math.max(W-1,1)),P(R,G,N,W,s.event)}}))}function F(N,R,q,Y,L){Y._inHover&&N.attr("data-notex",!0),b.convertToTspans(N,q,function(){(function(W,H,G,te){var ee=W.data()[0][0];if(G._inHover||!ee||ee.trace.showlegend){var U=W.select("g[class*=math-group]"),Q=U.node(),V=z(G);G||(G=H._fullLayout[V]);var X,K,ne=G.borderwidth,ae=(te===T?G.title.font:ee.groupTitle?ee.groupTitle.font:G.font).size*x;if(Q){var ie=h.bBox(Q);X=ie.height,K=ie.width,te===T?h.setTranslate(U,ne,ne+.75*X):h.setTranslate(U,0,.25*X)}else{var se="."+V+(te===T?"title":"")+"text",pe=W.select(se),ke=b.lineCount(pe),Ce=pe.node();if(X=ae*ke,K=Ce?h.bBox(Ce).width:0,te===T)G.title.side==="left"&&(K+=2*m.itemGap),b.positionText(pe,ne+m.titlePad,ne+ae);else{var Oe=2*m.itemGap+G.itemwidth;ee.groupTitle&&(Oe=m.itemGap,K-=G.itemwidth),b.positionText(pe,Oe,-ae*((ke-1)/2-.3))}}te===T?(G._titleWidth=K,G._titleHeight=X):(ee.lineHeight=ae,ee.height=Math.max(X,16)+3,ee.width=K)}else W.remove()})(R,q,Y,L)})}function j(N){return u.isRightAnchor(N)?"right":u.isCenterAnchor(N)?"center":"left"}function B(N){return u.isBottomAnchor(N)?"bottom":u.isMiddleAnchor(N)?"middle":"top"}function z(N){return N._id||"legend"}i.exports=function(N,R){if(R)O(N,R);else{var q=N._fullLayout,Y=q._legends;q._infolayer.selectAll('[class^="legend"]').each(function(){var H=s.select(this),G=H.attr("class").split(" ")[0];G.match(M)&&Y.indexOf(G)===-1&&H.remove()});for(var L=0;Lj&&(F=j)}I[p][0]._groupMinRank=F,I[p][0]._preGroupSort=p}var B=function(Y,L){return Y.trace.legendrank-L.trace.legendrank||Y._preSort-L._preSort};for(I.forEach(function(Y,L){Y[0]._preGroupSort=L}),I.sort(function(Y,L){return Y[0]._groupMinRank-L[0]._groupMinRank||Y[0]._preGroupSort-L[0]._preGroupSort}),p=0;pk?k:w}i.exports=function(w,S,k){var C=S._fullLayout;k||(k=C.legend);var T=k.itemsizing==="constant",M=k.itemwidth,O=(M+2*m.itemGap)/2,D=d(O,0),P=function(A,F,j,B){var z;if(A+1)z=A;else{if(!(F&&F.width>0))return 0;z=F.width}return T?B:Math.min(z,j)};function E(A,F,j){var B=A[0].trace,z=B.marker||{},N=z.line||{},R=j?B.visible&&B.type===j:u.traceIs(B,"bar"),q=s.select(F).select("g.legendpoints").selectAll("path.legend"+j).data(R?[A]:[]);q.enter().append("path").classed("legend"+j,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),q.exit().remove(),q.each(function(Y){var L=s.select(this),W=Y[0],H=P(W.mlw,z.line,5,2);L.style("stroke-width",H+"px");var G=W.mcc;if(!k._inHover&&"mc"in W){var te=h(z),ee=te.mid;ee===void 0&&(ee=(te.max+te.min)/2),G=f.tryColorscale(z,"")(ee)}var U=G||W.mc||z.color,Q=z.pattern,V=Q&&f.getPatternAttr(Q.shape,0,"");if(V){var X=f.getPatternAttr(Q.bgcolor,0,null),K=f.getPatternAttr(Q.fgcolor,0,null),ne=Q.fgopacity,ae=_(Q.size,8,10),ie=_(Q.solidity,.5,1),se="legend-"+B.uid;L.call(f.pattern,"legend",S,se,V,ae,ie,G,Q.fillmode,X,K,ne)}else L.call(p.fill,U);H&&p.stroke(L,W.mlc||N.color)})}function I(A,F,j){var B=A[0],z=B.trace,N=j?z.visible&&z.type===j:u.traceIs(z,j),R=s.select(F).select("g.legendpoints").selectAll("path.legend"+j).data(N?[A]:[]);if(R.enter().append("path").classed("legend"+j,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),R.exit().remove(),R.size()){var q=z.marker||{},Y=P(v(q.line.width,B.pts),q.line,5,2),L="pieLike",W=c.minExtend(z,{marker:{line:{width:Y}}},L),H=c.minExtend(B,{trace:W},L);b(R,H,W,S)}}w.each(function(A){var F=s.select(this),j=c.ensureSingle(F,"g","layers");j.style("opacity",A[0].trace.opacity);var B=k.valign,z=A[0].lineHeight,N=A[0].height;if(B!=="middle"&&z&&N){var R={top:1,bottom:-1}[B]*(.5*(z-N+3));j.attr("transform",d(0,R))}else j.attr("transform",null);j.selectAll("g.legendfill").data([A]).enter().append("g").classed("legendfill",!0),j.selectAll("g.legendlines").data([A]).enter().append("g").classed("legendlines",!0);var q=j.selectAll("g.legendsymbols").data([A]);q.enter().append("g").classed("legendsymbols",!0),q.selectAll("g.legendpoints").data([A]).enter().append("g").classed("legendpoints",!0)}).each(function(A){var F,j=A[0].trace,B=[];if(j.visible)switch(j.type){case"histogram2d":case"heatmap":B=[["M-15,-2V4H15V-2Z"]],F=!0;break;case"choropleth":case"choroplethmapbox":B=[["M-6,-6V6H6V-6Z"]],F=!0;break;case"densitymapbox":B=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],F="radial";break;case"cone":B=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],F=!1;break;case"streamtube":B=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],F=!1;break;case"surface":B=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],F=!0;break;case"mesh3d":B=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],F=!1;break;case"volume":B=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],F=!0;break;case"isosurface":B=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],F=!1}var z=s.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(B);z.enter().append("path").classed("legend3dandfriends",!0).attr("transform",D).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(N,R){var q,Y=s.select(this),L=h(j),W=L.colorscale,H=L.reversescale;if(W){if(!F){var G=W.length;q=R===0?W[H?G-1:0][1]:R===1?W[H?0:G-1][1]:W[Math.floor((G-1)/2)][1]}}else{var te=j.vertexcolor||j.facecolor||j.color;q=c.isArrayOrTypedArray(te)?te[R]||te[0]:te}Y.attr("d",N[0]),q?Y.call(p.fill,q):Y.call(function(ee){if(ee.size()){var U="legendfill-"+j.uid;f.gradient(ee,S,U,y(H,F==="radial"),W,"fill")}})})}).each(function(A){var F=A[0].trace,j=F.type==="waterfall";if(A[0]._distinct&&j){var B=A[0].trace[A[0].dir].marker;return A[0].mc=B.color,A[0].mlw=B.line.width,A[0].mlc=B.line.color,E(A,this,"waterfall")}var z=[];F.visible&&j&&(z=A[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var N=s.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(z);N.enter().append("path").classed("legendwaterfall",!0).attr("transform",D).style("stroke-miterlimit",1),N.exit().remove(),N.each(function(R){var q=s.select(this),Y=F[R[0]].marker,L=P(void 0,Y.line,5,2);q.attr("d",R[1]).style("stroke-width",L+"px").call(p.fill,Y.color),L&&q.call(p.stroke,Y.line.color)})}).each(function(A){E(A,this,"funnel")}).each(function(A){E(A,this)}).each(function(A){var F=A[0].trace,j=s.select(this).select("g.legendpoints").selectAll("path.legendbox").data(F.visible&&u.traceIs(F,"box-violin")?[A]:[]);j.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),j.exit().remove(),j.each(function(){var B=s.select(this);if(F.boxpoints!=="all"&&F.points!=="all"||p.opacity(F.fillcolor)!==0||p.opacity((F.line||{}).color)!==0){var z=P(void 0,F.line,5,2);B.style("stroke-width",z+"px").call(p.fill,F.fillcolor),z&&p.stroke(B,F.line.color)}else{var N=c.minExtend(F,{marker:{size:T?12:c.constrain(F.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});j.call(f.pointStyle,N,S)}})}).each(function(A){I(A,this,"funnelarea")}).each(function(A){I(A,this,"pie")}).each(function(A){var F,j,B=x(A),z=B.showFill,N=B.showLine,R=B.showGradientLine,q=B.showGradientFill,Y=B.anyFill,L=B.anyLine,W=A[0],H=W.trace,G=h(H),te=G.colorscale,ee=G.reversescale,U=g.hasMarkers(H)||!Y?"M5,0":L?"M5,-2":"M5,-3",Q=s.select(this),V=Q.select(".legendfill").selectAll("path").data(z||q?[A]:[]);if(V.enter().append("path").classed("js-fill",!0),V.exit().remove(),V.attr("d",U+"h"+M+"v6h-"+M+"z").call(function(ne){if(ne.size())if(z)f.fillGroupStyle(ne,S);else{var ae="legendfill-"+H.uid;f.gradient(ne,S,ae,y(ee),te,"fill")}}),N||R){var X=P(void 0,H.line,10,5);j=c.minExtend(H,{line:{width:X}}),F=[c.minExtend(W,{trace:j})]}var K=Q.select(".legendlines").selectAll("path").data(N||R?[F]:[]);K.enter().append("path").classed("js-line",!0),K.exit().remove(),K.attr("d",U+(R?"l"+M+",0.0001":"h"+M)).call(N?f.lineGroupStyle:function(ne){if(ne.size()){var ae="legendline-"+H.uid;f.lineGroupStyle(ne),f.gradient(ne,S,ae,y(ee),te,"stroke")}})}).each(function(A){var F,j,B=x(A),z=B.anyFill,N=B.anyLine,R=B.showLine,q=B.showMarker,Y=A[0],L=Y.trace,W=!q&&!N&&!z&&g.hasText(L);function H(K,ne,ae,ie){var se=c.nestedProperty(L,K).get(),pe=c.isArrayOrTypedArray(se)&&ne?ne(se):se;if(T&&pe&&ie!==void 0&&(pe=ie),ae){if(peae[1])return ae[1]}return pe}function G(K){return Y._distinct&&Y.index&&K[Y.index]?K[Y.index]:K[0]}if(q||W||R){var te={},ee={};if(q){te.mc=H("marker.color",G),te.mx=H("marker.symbol",G),te.mo=H("marker.opacity",c.mean,[.2,1]),te.mlc=H("marker.line.color",G),te.mlw=H("marker.line.width",c.mean,[0,5],2),ee.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var U=H("marker.size",c.mean,[2,16],12);te.ms=U,ee.marker.size=U}R&&(ee.line={width:H("line.width",G,[0,10],5)}),W&&(te.tx="Aa",te.tp=H("textposition",G),te.ts=10,te.tc=H("textfont.color",G),te.tf=H("textfont.family",G)),F=[c.minExtend(Y,te)],(j=c.minExtend(L,ee)).selectedpoints=null,j.texttemplate=null}var Q=s.select(this).select("g.legendpoints"),V=Q.selectAll("path.scatterpts").data(q?F:[]);V.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",D),V.exit().remove(),V.call(f.pointStyle,j,S),q&&(F[0].mrc=3);var X=Q.selectAll("g.pointtext").data(W?F:[]);X.enter().append("g").classed("pointtext",!0).append("text").attr("transform",D),X.exit().remove(),X.selectAll("text").call(f.textPointStyle,j,S)}).each(function(A){var F=A[0].trace,j=s.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(F.visible&&F.type==="candlestick"?[A,A]:[]);j.enter().append("path").classed("legendcandle",!0).attr("d",function(B,z){return z?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",D).style("stroke-miterlimit",1),j.exit().remove(),j.each(function(B,z){var N=s.select(this),R=F[z?"increasing":"decreasing"],q=P(void 0,R.line,5,2);N.style("stroke-width",q+"px").call(p.fill,R.fillcolor),q&&p.stroke(N,R.line.color)})}).each(function(A){var F=A[0].trace,j=s.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(F.visible&&F.type==="ohlc"?[A,A]:[]);j.enter().append("path").classed("legendohlc",!0).attr("d",function(B,z){return z?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",D).style("stroke-miterlimit",1),j.exit().remove(),j.each(function(B,z){var N=s.select(this),R=F[z?"increasing":"decreasing"],q=P(void 0,R.line,5,2);N.style("fill","none").call(f.dashLine,R.line.dash,q),q&&p.stroke(N,R.line.color)})})}},42068:function(i,o,a){a(93348),i.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},26023:function(i,o,a){var s=a(73972),u=a(74875),c=a(41675),d=a(24255),f=a(34031).eraseActiveShape,p=a(71828),h=p._,g=i.exports={};function b(C,T){var M,O,D=T.currentTarget,P=D.getAttribute("data-attr"),E=D.getAttribute("data-val")||!0,I=C._fullLayout,A={},F=c.list(C,null,!0),j=I._cartesianSpikesEnabled;if(P==="zoom"){var B,z=E==="in"?.5:2,N=(1+z)/2,R=(1-z)/2;for(O=0;O1?(U=["toggleHover"],Q=["resetViews"]):A?(ee=["zoomInGeo","zoomOutGeo"],U=["hoverClosestGeo"],Q=["resetGeo"]):I?(U=["hoverClosest3d"],Q=["resetCameraDefault3d","resetCameraLastSave3d"]):N?(ee=["zoomInMapbox","zoomOutMapbox"],U=["toggleHover"],Q=["resetViewMapbox"]):B?U=["hoverClosestGl2d"]:F?U=["hoverClosestPie"]:Y?(U=["hoverClosestCartesian","hoverCompareCartesian"],Q=["resetViewSankey"]):U=["toggleHover"],E&&(U=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(se){for(var pe=0;pe0)){var S=function(C,T,M){for(var O=M.filter(function(I){return T[I].anchor===C._id}),D=0,P=0;P=Ce.max)pe=ne[ke+1];else if(se=Ce.pmax)pe=ne[ke+1];else if(seke._length||me+Ne<0)return;Le=ue+Ne,Re=me+Ne;break;case Pe:if(Ie="col-resize",ue+Ne>ke._length)return;Le=ue+Ne,Re=me;break;case ce:if(Ie="col-resize",me+Ne<0)return;Le=ue,Re=me+Ne;break;default:Ie="ew-resize",Le=_e,Re=_e+Ne}if(Re=0;B--){var z=T.append("path").attr(O).style("opacity",B?.1:D).call(d.stroke,E).call(d.fill,P).call(f.dashLine,B?"solid":A,B?4+I:I);if(y(z,_,k),F){var N=p(_.layout,"selections",k);z.style({cursor:"move"});var R={element:z.node(),plotinfo:C,gd:_,editHelpers:N,isActiveSelection:!0},q=s(M,_);u(q,z,R)}else z.style("pointer-events",B?"all":"none");j[B]=z}var Y=j[0];j[1].node().addEventListener("click",function(){return function(L,W){if(v(L)){var H=+W.node().getAttribute("data-index");if(H>=0){if(H===L._fullLayout._activeSelectionIndex)return void x(L);L._fullLayout._activeSelectionIndex=H,L._fullLayout._deactivateSelection=x,b(L)}}}(_,Y)})}(_._fullLayout._selectionLayer)}function y(_,w,S){var k=S.xref+S.yref;f.setClipUrl(_,"clip"+w._fullLayout._uid+k,w)}function x(_){v(_)&&_._fullLayout._activeSelectionIndex>=0&&(c(_),delete _._fullLayout._activeSelectionIndex,b(_))}i.exports={draw:b,drawOne:m,activateLastSelection:function(_){if(v(_)){var w=_._fullLayout.selections.length-1;_._fullLayout._activeSelectionIndex=w,_._fullLayout._deactivateSelection=x,b(_)}}}},53777:function(i,o,a){var s=a(79952).P,u=a(1426).extendFlat;i.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:u({},s,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},90849:function(i){i.exports=function(o,a,s){s("newselection.mode"),s("newselection.line.width")&&(s("newselection.line.color"),s("newselection.line.dash")),s("activeselection.fillcolor"),s("activeselection.opacity")}},35855:function(i,o,a){var s=a(64505).selectMode,u=a(51873).clearOutline,c=a(60165),d=c.readPaths,f=c.writePaths,p=c.fixDatesForPaths;i.exports=function(h,g){if(h.length){var b=h[0][0];if(b){var v=b.getAttribute("d"),m=g.gd,y=m._fullLayout.newselection,x=g.plotinfo,_=x.xaxis,w=x.yaxis,S=g.isActiveSelection,k=g.dragmode,C=(m.layout||{}).selections||[];if(!s(k)&&S!==void 0){var T=m._fullLayout._activeSelectionIndex;if(T-1,St=[];if(function(kt){return kt&&Array.isArray(kt)&&kt[0].hoverOnBox!==!0}(tt)){X(Te,Ae,Ne);var et=function(kt,Wt){var wt,be,Me=kt[0],Ve=-1,Ue=[];for(be=0;be0?function(kt,Wt){var wt,be,Me,Ve=[];for(Me=0;Me0&&Ve.push(wt);if(Ve.length===1&&Ve[0]===Wt.searchInfo&&(be=Wt.searchInfo.cd[0].trace).selectedpoints.length===Wt.pointNumbers.length){for(Me=0;Me1||(be+=Wt.selectedpoints.length)>1))return!1;return be===1}(qe)&&(st=se(et))){for(ze&&ze.remove(),je=0;je=0})(Ie)&&Ie._fullLayout._deactivateShape(Ie),function(Je){return Je._fullLayout._activeSelectionIndex>=0}(Ie)&&Ie._fullLayout._deactivateSelection(Ie);var Ne=Ie._fullLayout._zoomlayer,ze=m(Le),qe=x(Le);if(ze||qe){var We,Ge,ot=Ne.selectAll(".select-outline-"+Re.id);ot&&Ie._fullLayout._outlining&&(ze&&(We=O(ot,Te)),We&&c.call("_guiRelayout",Ie,{shapes:We}),qe&&!te(Te)&&(Ge=D(ot,Te)),Ge&&(Ie._fullLayout._noEmitSelectedAtStart=!0,c.call("_guiRelayout",Ie,{selections:Ge}).then(function(){Ae&&P(Ie)})),Ie._fullLayout._outlining=!1)}Re.selection={},Re.selection.selectionDefs=Te.selectionDefs=[],Re.selection.mergedPolygons=Te.mergedPolygons=[]}function ne(Te){return Te._id}function ae(Te,Ae,Le,Re){if(!Te.calcdata)return[];var Ie,Ne,ze,qe=[],We=Ae.map(ne),Ge=Le.map(ne);for(ze=0;ze0?Re[0]:Le;return!!Ae.selectedpoints&&Ae.selectedpoints.indexOf(Ie)>-1}function pe(Te,Ae,Le){var Re,Ie;for(Re=0;Re-1&&Ae;if(!Ne&&Ae){var Pt=re(Te,!0);if(Pt.length){var Ot=Pt[0].xref,It=Pt[0].yref;if(Ot&&It){var Lt=ue(Pt);me([j(Te,Ot,"x"),j(Te,It,"y")])(jt,Lt)}}Te._fullLayout._noEmitSelectedAtStart?Te._fullLayout._noEmitSelectedAtStart=!1:Tt&&xe(Te,jt),st._reselect=!1}if(!Ne&&st._deselect){var zt=st._deselect;(function(Xt,Kt,Bt){for(var Ut=0;Ut=0)bt._fullLayout._deactivateShape(bt);else if(!Ge){var Lt=Be.clickmode;F.done(Rt).then(function(){if(F.clear(Rt),Ot===2){for(Ft.remove(),Me=0;Me-1&&ee(It,bt,Re.xaxes,Re.yaxes,Re.subplot,Re,Ft),Lt==="event"&&xe(bt,void 0);p.click(bt,It,St.id)}).catch(E.error)}},Re.doneFn=function(){yt.remove(),F.done(Rt).then(function(){F.clear(Rt),!je&&be&&Re.selectionDefs&&(be.subtract=Ct,Re.selectionDefs.push(be),Re.mergedPolygons.length=0,[].push.apply(Re.mergedPolygons,wt)),(je||Ge)&&K(Re,je),Re.doneFnCompleted&&Re.doneFnCompleted(jt),ot&&xe(bt,Ue)}).catch(E.error)}},clearOutline:k,clearSelectionsCache:K,selectOnClick:ee}},89827:function(i,o,a){var s=a(50215),u=a(41940),c=a(82196).line,d=a(79952).P,f=a(1426).extendFlat,p=a(44467).templatedArray,h=(a(24695),a(9012)),g=a(5386).R,b=a(37281);i.exports=p("shape",{visible:f({},h.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:f({},h.legend,{editType:"calc+arraydraw"}),legendgroup:f({},h.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:f({},h.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:u({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:f({},h.legendrank,{editType:"calc+arraydraw"}),legendwidth:f({},h.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:f({},s.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},yref:f({},s.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:f({},c.color,{editType:"arraydraw"}),width:f({},c.width,{editType:"calc+arraydraw"}),dash:f({},d,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:g({},{keys:Object.keys(b)}),font:u({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})},5627:function(i,o,a){var s=a(71828),u=a(89298),c=a(21459),d=a(30477);function f(b){return h(b.line.width,b.xsizemode,b.x0,b.x1,b.path,!1)}function p(b){return h(b.line.width,b.ysizemode,b.y0,b.y1,b.path,!0)}function h(b,v,m,y,x,_){var w=b/2,S=_;if(v==="pixel"){var k=x?d.extractPathCoords(x,_?c.paramIsY:c.paramIsX):[m,y],C=s.aggNums(Math.max,null,k),T=s.aggNums(Math.min,null,k),M=T<0?Math.abs(T)+w:w,O=C>0?C+w:w;return{ppad:w,ppadplus:S?M:O,ppadminus:S?O:M}}return{ppad:w}}function g(b,v,m,y,x){var _=b.type==="category"||b.type==="multicategory"?b.r2c:b.d2c;if(v!==void 0)return[_(v),_(m)];if(y){var w,S,k,C,T=1/0,M=-1/0,O=y.match(c.segmentRE);for(b.type==="date"&&(_=d.decodeDate(_)),w=0;wM&&(M=C)));return M>=T?[T,M]:void 0}}i.exports=function(b){var v=b._fullLayout,m=s.filterVisible(v.shapes);if(m.length&&b._fullData.length)for(var y=0;y=ne?ae-se:se-ae,-180/Math.PI*Math.atan2(pe,ke)}(M,D,O,P):0),A.call(function(ne){return ne.call(d.font,I).attr({}),c.convertToTspans(ne,v),ne});var Q=function(ne,ae,ie,se,pe,ke,Ce){var Oe,Pe,ce,we,Z=pe.label.textposition,re=pe.label.textangle,de=pe.label.padding,_e=pe.type,ue=Math.PI/180*ke,me=Math.sin(ue),xe=Math.cos(ue),ye=pe.label.xanchor,Te=pe.label.yanchor;if(_e==="line"){Z==="start"?(Oe=ne,Pe=ae):Z==="end"?(Oe=ie,Pe=se):(Oe=(ne+ie)/2,Pe=(ae+se)/2),ye==="auto"&&(ye=Z==="start"?re==="auto"?ie>ne?"left":iene?"right":iene?"right":iene?"left":ie1&&(Oe.length!==2||Oe[1][0]!=="Z")&&(Y===0&&(Oe[0][0]="M"),E[q]=Oe,B(),z())}}()}}function ne(pe,ke){(function(Ce,Oe){if(E.length)for(var Pe=0;PePe?(Z=Ce,ue="y0",re=Pe,me="y1"):(Z=Pe,ue="y1",re=Ce,me="y0"),ct(wt),kt(se,ae),function(be,Me,Ve){var Ue=Me.xref,Ze=Me.yref,Ye=d.getFromId(Ve,Ue),Qe=d.getFromId(Ve,Ze),rt="";Ue==="paper"||Ye.autorange||(rt+=Ue),Ze==="paper"||Qe.autorange||(rt+=Ze),v.setClipUrl(be,rt?"clip"+Ve._fullLayout._uid+rt:null,Ve)}(ne,ae,K),et.moveFn=Ae==="move"?ht:$t,et.altKey=wt.altKey)},doneFn:function(){C(K)||(x(ne),Wt(se),O(ne,K,ae),u.call("_guiRelayout",K,pe.getUpdateObj()))},clickFn:function(){C(K)||Wt(se)}};function ct(wt){if(C(K))Ae=null;else if(ze)Ae=wt.target.tagName==="path"?"move":wt.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var be=et.element.getBoundingClientRect(),Me=be.right-be.left,Ve=be.bottom-be.top,Ue=wt.clientX-be.left,Ze=wt.clientY-be.top,Ye=!qe&&Me>Le&&Ve>Re&&!wt.shiftKey?y.getCursor(Ue/Me,1-Ze/Ve):"move";x(ne,Ye),Ae=Ye.split("-")[0]}}function ht(wt,be){if(ae.type==="path"){var Me=function(Ze){return Ze},Ve=Me,Ue=Me;Ie?We("xanchor",ae.xanchor=tt(ce+wt)):(Ve=function(Ze){return tt(Be(Ze)+wt)},ot&&ot.type==="date"&&(Ve=w.encodeDate(Ve))),Ne?We("yanchor",ae.yanchor=it(we+be)):(Ue=function(Ze){return it(je(Ze)+be)},st&&st.type==="date"&&(Ue=w.encodeDate(Ue))),We("path",ae.path=D(Te,Ve,Ue))}else Ie?We("xanchor",ae.xanchor=tt(ce+wt)):(We("x0",ae.x0=tt(ke+wt)),We("x1",ae.x1=tt(Oe+wt))),Ne?We("yanchor",ae.yanchor=it(we+be)):(We("y0",ae.y0=it(Ce+be)),We("y1",ae.y1=it(Pe+be)));ne.attr("d",S(K,ae)),kt(se,ae),h(K,ie,ae,Ge)}function $t(wt,be){if(qe){var Me=function(pt){return pt},Ve=Me,Ue=Me;Ie?We("xanchor",ae.xanchor=tt(ce+wt)):(Ve=function(pt){return tt(Be(pt)+wt)},ot&&ot.type==="date"&&(Ve=w.encodeDate(Ve))),Ne?We("yanchor",ae.yanchor=it(we+be)):(Ue=function(pt){return it(je(pt)+be)},st&&st.type==="date"&&(Ue=w.encodeDate(Ue))),We("path",ae.path=D(Te,Ve,Ue))}else if(ze){if(Ae==="resize-over-start-point"){var Ze=ke+wt,Ye=Ne?Ce-be:Ce+be;We("x0",ae.x0=Ie?Ze:tt(Ze)),We("y0",ae.y0=Ne?Ye:it(Ye))}else if(Ae==="resize-over-end-point"){var Qe=Oe+wt,rt=Ne?Pe-be:Pe+be;We("x1",ae.x1=Ie?Qe:tt(Qe)),We("y1",ae.y1=Ne?rt:it(rt))}}else{var ut=function(pt){return Ae.indexOf(pt)!==-1},gt=ut("n"),nt=ut("s"),Nt=ut("w"),Gt=ut("e"),Ct=gt?Z+be:Z,Ft=nt?re+be:re,Et=Nt?de+wt:de,mt=Gt?_e+wt:_e;Ne&&(gt&&(Ct=Z-be),nt&&(Ft=re-be)),(!Ne&&Ft-Ct>Re||Ne&&Ct-Ft>Re)&&(We(ue,ae[ue]=Ne?Ct:it(Ct)),We(me,ae[me]=Ne?Ft:it(Ft))),mt-Et>Le&&(We(xe,ae[xe]=Ie?Et:tt(Et)),We(ye,ae[ye]=Ie?mt:tt(mt)))}ne.attr("d",S(K,ae)),kt(se,ae),h(K,ie,ae,Ge)}function kt(wt,be){(Ie||Ne)&&function(){var Me=be.type!=="path",Ve=wt.selectAll(".visual-cue").data([0]);Ve.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var Ue=Be(Ie?be.xanchor:c.midRange(Me?[be.x0,be.x1]:w.extractPathCoords(be.path,_.paramIsX))),Ze=je(Ne?be.yanchor:c.midRange(Me?[be.y0,be.y1]:w.extractPathCoords(be.path,_.paramIsY)));if(Ue=w.roundPositionForSharpStrokeRendering(Ue,1),Ze=w.roundPositionForSharpStrokeRendering(Ze,1),Ie&&Ne){var Ye="M"+(Ue-1-1)+","+(Ze-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ve.attr("d",Ye)}else if(Ie){var Qe="M"+(Ue-1-1)+","+(Ze-9-1)+"v18 h2 v-18 Z";Ve.attr("d",Qe)}else{var rt="M"+(Ue-9-1)+","+(Ze-1-1)+"h18 v2 h-18 Z";Ve.attr("d",rt)}}()}function Wt(wt){wt.selectAll(".visual-cue").remove()}y.init(et),St.node().onmousemove=ct}(E,Q,F,I,z,ee):F.editable===!0&&Q.style("pointer-events",G||b.opacity(Y)*q<=.5?"stroke":"all");Q.node().addEventListener("click",function(){return function(K,ne){if(T(K)){var ae=+ne.node().getAttribute("data-index");if(ae>=0){if(ae===K._fullLayout._activeShapeIndex)return void P(K);K._fullLayout._activeShapeIndex=ae,K._fullLayout._deactivateShape=P,k(K)}}}(E,Q)})}F._input&&F.visible===!0&&(F.layer!=="below"?B(E._fullLayout._shapeUpperLayer):F.xref==="paper"||F.yref==="paper"?B(E._fullLayout._shapeLowerLayer):j._hadPlotinfo?B((j.mainplotinfo||j).shapelayer):B(E._fullLayout._shapeLowerLayer))}function O(E,I,A){var F=(A.xref+A.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");v.setClipUrl(E,F?"clip"+I._fullLayout._uid+F:null,I)}function D(E,I,A){return E.replace(_.segmentRE,function(F){var j=0,B=F.charAt(0),z=_.paramIsX[B],N=_.paramIsY[B],R=_.numParams[B];return B+F.substr(1).replace(_.paramRE,function(q){return j>=R||(z[j]?q=I(q):N[j]&&(q=A(q)),j++),q})})}function P(E){T(E)&&E._fullLayout._activeShapeIndex>=0&&(g(E),delete E._fullLayout._activeShapeIndex,k(E))}i.exports={draw:k,drawOne:M,eraseActiveShape:function(E){if(T(E)){g(E);var I=E._fullLayout._activeShapeIndex,A=(E.layout||{}).shapes||[];if(I0&&MU&&(V="X"),V});return H>U&&(Q=Q.replace(/[\s,]*X.*/,""),u.log("Ignoring extra params in segment "+W)),G+Q})}(f,h,b);if(f.xsizemode==="pixel"){var M=h(f.xanchor);v=M+f.x0,m=M+f.x1}else v=h(f.x0),m=h(f.x1);if(f.ysizemode==="pixel"){var O=b(f.yanchor);y=O-f.y0,x=O-f.y1}else y=b(f.y0),x=b(f.y1);if(_==="line")return"M"+v+","+y+"L"+m+","+x;if(_==="rect")return"M"+v+","+y+"H"+m+"V"+x+"H"+v+"Z";var D=(v+m)/2,P=(y+x)/2,E=Math.abs(D-v),I=Math.abs(P-y),A="A"+E+","+I,F=D+E+","+P;return"M"+F+A+" 0 1,1 "+D+","+(P-I)+A+" 0 0,1 "+F+"Z"}},89853:function(i,o,a){var s=a(34031);i.exports={moduleType:"component",name:"shapes",layoutAttributes:a(89827),supplyLayoutDefaults:a(84726),supplyDrawNewShapeDefaults:a(45547),includeBasePlot:a(76325)("shapes"),calcAutorange:a(5627),draw:s.draw,drawOne:s.drawOne}},37281:function(i){function o(c,d){return d?d.d2l(c):c}function a(c,d){return d?d.l2d(c):c}function s(c,d){return o(c.x1,d)-o(c.x0,d)}function u(c,d,f){return o(c.y1,f)-o(c.y0,f)}i.exports={x0:function(c){return c.x0},x1:function(c){return c.x1},y0:function(c){return c.y0},y1:function(c){return c.y1},slope:function(c,d,f){return c.type!=="line"?void 0:u(c,0,f)/s(c,d)},dx:s,dy:u,width:function(c,d){return Math.abs(s(c,d))},height:function(c,d,f){return Math.abs(u(c,0,f))},length:function(c,d,f){return c.type!=="line"?void 0:Math.sqrt(Math.pow(s(c,d),2)+Math.pow(u(c,0,f),2))},xcenter:function(c,d){return a((o(c.x1,d)+o(c.x0,d))/2,d)},ycenter:function(c,d,f){return a((o(c.y1,f)+o(c.y0,f))/2,f)}}},75067:function(i,o,a){var s=a(41940),u=a(35025),c=a(1426).extendDeepAll,d=a(30962).overrideAll,f=a(85594),p=a(44467).templatedArray,h=a(98292),g=p("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});i.exports=d(p("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:g,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:c(u({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:f.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:s({})},font:s({}),activebgcolor:{valType:"color",dflt:h.gripBgActiveColor},bgcolor:{valType:"color",dflt:h.railBgColor},bordercolor:{valType:"color",dflt:h.railBorderColor},borderwidth:{valType:"number",min:0,dflt:h.railBorderWidth},ticklen:{valType:"number",min:0,dflt:h.tickLength},tickcolor:{valType:"color",dflt:h.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:h.minorTickLength}}),"arraydraw","from-root")},98292:function(i){i.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},12343:function(i,o,a){var s=a(71828),u=a(85501),c=a(75067),d=a(98292).name,f=c.steps;function p(g,b,v){function m(S,k){return s.coerce(g,b,c,S,k)}for(var y=u(g,b,{name:"steps",handleItemDefaults:h}),x=0,_=0;_0&&(H=H.transition().duration(N.transition.duration).ease(N.transition.easing)),H.attr("transform",p(W-.5*b.gripWidth,N._dims.currentValueTotalHeight))}}function A(z,N){var R=z._dims;return R.inputAreaStart+b.stepInset+(R.inputAreaLength-2*b.stepInset)*Math.min(1,Math.max(0,N))}function F(z,N){var R=z._dims;return Math.min(1,Math.max(0,(N-b.stepInset-R.inputAreaStart)/(R.inputAreaLength-2*b.stepInset-2*R.inputAreaStart)))}function j(z,N,R){var q=R._dims,Y=f.ensureSingle(z,"rect",b.railTouchRectClass,function(L){L.call(P,N,z,R).style("pointer-events","all")});Y.attr({width:q.inputAreaLength,height:Math.max(q.inputAreaWidth,b.tickOffset+R.ticklen+q.labelHeight)}).call(c.fill,R.bgcolor).attr("opacity",0),d.setTranslate(Y,0,q.currentValueTotalHeight)}function B(z,N){var R=N._dims,q=R.inputAreaLength-2*b.railInset,Y=f.ensureSingle(z,"rect",b.railRectClass);Y.attr({width:q,height:b.railWidth,rx:b.railRadius,ry:b.railRadius,"shape-rendering":"crispEdges"}).call(c.stroke,N.bordercolor).call(c.fill,N.bgcolor).style("stroke-width",N.borderwidth+"px"),d.setTranslate(Y,b.railInset,.5*(R.inputAreaWidth-b.railWidth)+R.currentValueTotalHeight)}i.exports=function(z){var N=z._context.staticPlot,R=z._fullLayout,q=function(te,ee){for(var U=te[b.name],Q=[],V=0;V0?[0]:[]);function L(te){te._commandObserver&&(te._commandObserver.remove(),delete te._commandObserver),u.autoMargin(z,_(te))}if(Y.enter().append("g").classed(b.containerClassName,!0).style("cursor",N?null:"ew-resize"),Y.exit().each(function(){s.select(this).selectAll("g."+b.groupClassName).each(L)}).remove(),q.length!==0){var W=Y.selectAll("g."+b.groupClassName).data(q,w);W.enter().append("g").classed(b.groupClassName,!0),W.exit().each(L).remove();for(var H=0;H0||Oe<0){var Z={left:[-Pe,0],right:[Pe,0],top:[0,-Pe],bottom:[0,Pe]}[O.side];Q.attr("transform",p(Z[0],Z[1]))}}}return H.call(G),Y&&(B?H.on(".opacity",null):(A=0,F=!0,H.text(T).on("mouseover.opacity",function(){s.select(this).transition().duration(v.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){s.select(this).transition().duration(v.HIDE_PLACEHOLDER).style("opacity",0)})),H.call(b.makeEditable,{gd:x}).on("edit",function(U){M!==void 0?d.call("_guiRestyle",x,C,U,M):d.call("_guiRelayout",x,C,U)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(G)}).on("input",function(U){this.text(U||" ").call(b.positionText,D.x,D.y)})),H.classed("js-placeholder",F),E}}},7163:function(i,o,a){var s=a(41940),u=a(22399),c=a(1426).extendFlat,d=a(30962).overrideAll,f=a(35025),p=a(44467).templatedArray,h=p("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});i.exports=d(p("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:h,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:c(f({editType:"arraydraw"}),{}),font:s({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:u.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},75909:function(i){i.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},64897:function(i,o,a){var s=a(71828),u=a(85501),c=a(7163),d=a(75909).name,f=c.buttons;function p(g,b,v){function m(y,x){return s.coerce(g,b,c,y,x)}m("visible",u(g,b,{name:"buttons",handleItemDefaults:h}).length>0)&&(m("active"),m("direction"),m("type"),m("showactive"),m("x"),m("y"),s.noneOrAll(g,b,["x","y"]),m("xanchor"),m("yanchor"),m("pad.t"),m("pad.r"),m("pad.b"),m("pad.l"),s.coerceFont(m,"font",v.font),m("bgcolor",v.paper_bgcolor),m("bordercolor"),m("borderwidth"))}function h(g,b){function v(m,y){return s.coerce(g,b,f,m,y)}v("visible",g.method==="skip"||Array.isArray(g.args))&&(v("method"),v("args"),v("args2"),v("label"),v("execute"))}i.exports=function(g,b){u(g,b,{name:d,handleItemDefaults:p})}},13689:function(i,o,a){var s=a(39898),u=a(74875),c=a(7901),d=a(91424),f=a(71828),p=a(63893),h=a(44467).arrayEditor,g=a(18783).LINE_SPACING,b=a(75909),v=a(25849);function m(A){return A._index}function y(A,F){return+A.attr(b.menuIndexAttrName)===F._index}function x(A,F,j,B,z,N,R,q){F.active=R,h(A.layout,b.name,F).applyUpdate("active",R),F.type==="buttons"?w(A,B,null,null,F):F.type==="dropdown"&&(z.attr(b.menuIndexAttrName,"-1"),_(A,B,z,N,F),q||w(A,B,z,N,F))}function _(A,F,j,B,z){var N=f.ensureSingle(F,"g",b.headerClassName,function(H){H.style("pointer-events","all")}),R=z._dims,q=z.active,Y=z.buttons[q]||b.blankHeaderOpts,L={y:z.pad.t,yPad:0,x:z.pad.l,xPad:0,index:0},W={width:R.headerWidth,height:R.headerHeight};N.call(S,z,Y,A).call(E,z,L,W),f.ensureSingle(F,"text",b.headerArrowClassName,function(H){H.attr("text-anchor","end").call(d.font,z.font).text(b.arrowSymbol[z.direction])}).attr({x:R.headerWidth-b.arrowOffsetX+z.pad.l,y:R.headerHeight/2+b.textOffsetY+z.pad.t}),N.on("click",function(){j.call(I,String(y(j,z)?-1:z._index)),w(A,F,j,B,z)}),N.on("mouseover",function(){N.call(M)}),N.on("mouseout",function(){N.call(O,z)}),d.setTranslate(F,R.lx,R.ly)}function w(A,F,j,B,z){j||(j=F).attr("pointer-events","all");var N=function(Q){return+Q.attr(b.menuIndexAttrName)==-1}(j)&&z.type!=="buttons"?[]:z.buttons,R=z.type==="dropdown"?b.dropdownButtonClassName:b.buttonClassName,q=j.selectAll("g."+R).data(f.filterVisible(N)),Y=q.enter().append("g").classed(R,!0),L=q.exit();z.type==="dropdown"?(Y.attr("opacity","0").transition().attr("opacity","1"),L.transition().attr("opacity","0").remove()):L.remove();var W=0,H=0,G=z._dims,te=["up","down"].indexOf(z.direction)!==-1;z.type==="dropdown"&&(te?H=G.headerHeight+b.gapButtonHeader:W=G.headerWidth+b.gapButtonHeader),z.type==="dropdown"&&z.direction==="up"&&(H=-b.gapButtonHeader+b.gapButton-G.openHeight),z.type==="dropdown"&&z.direction==="left"&&(W=-b.gapButtonHeader+b.gapButton-G.openWidth);var ee={x:G.lx+W+z.pad.l,y:G.ly+H+z.pad.t,yPad:b.gapButton,xPad:b.gapButton,index:0},U={l:ee.x+z.borderwidth,t:ee.y+z.borderwidth};q.each(function(Q,V){var X=s.select(this);X.call(S,z,Q,A).call(E,z,ee),X.on("click",function(){s.event.defaultPrevented||(Q.execute&&(Q.args2&&z.active===V?(x(A,z,0,F,j,B,-1),u.executeAPICommand(A,Q.method,Q.args2)):(x(A,z,0,F,j,B,V),u.executeAPICommand(A,Q.method,Q.args))),A.emit("plotly_buttonclicked",{menu:z,button:Q,active:z.active}))}),X.on("mouseover",function(){X.call(M)}),X.on("mouseout",function(){X.call(O,z),q.call(T,z)})}),q.call(T,z),te?(U.w=Math.max(G.openWidth,G.headerWidth),U.h=ee.y-U.t):(U.w=ee.x-U.l,U.h=Math.max(G.openHeight,G.headerHeight)),U.direction=z.direction,B&&(q.size()?function(Q,V,X,K,ne,ae){var ie,se,pe,ke=ne.direction,Ce=ke==="up"||ke==="down",Oe=ne._dims,Pe=ne.active;if(Ce)for(se=0,pe=0;pe0?[0]:[]);if(z.enter().append("g").classed(b.containerClassName,!0).style("cursor","pointer"),z.exit().each(function(){s.select(this).selectAll("g."+b.headerGroupClassName).each(B)}).remove(),j.length!==0){var N=z.selectAll("g."+b.headerGroupClassName).data(j,m);N.enter().append("g").classed(b.headerGroupClassName,!0);for(var R=f.ensureSingle(z,"g",b.dropdownButtonGroupClassName,function(H){H.style("pointer-events","all")}),q=0;qE,F=f.barLength+2*f.barPad,j=f.barWidth+2*f.barPad,B=S,z=C+T;z+j>m&&(z=m-j);var N=this.container.selectAll("rect.scrollbar-horizontal").data(A?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-horizontal",!0).call(u.fill,f.barColor),A?(this.hbar=N.attr({rx:f.barRadius,ry:f.barRadius,x:B,y:z,width:F,height:j}),this._hbarXMin=B+F/2,this._hbarTranslateMax=E-F):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var R=T>I,q=f.barWidth+2*f.barPad,Y=f.barLength+2*f.barPad,L=S+k,W=C;L+q>v&&(L=v-q);var H=this.container.selectAll("rect.scrollbar-vertical").data(R?[0]:[]);H.exit().on(".drag",null).remove(),H.enter().append("rect").classed("scrollbar-vertical",!0).call(u.fill,f.barColor),R?(this.vbar=H.attr({rx:f.barRadius,ry:f.barRadius,x:L,y:W,width:q,height:Y}),this._vbarYMin=W+Y/2,this._vbarTranslateMax=I-Y):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var G=this.id,te=y-.5,ee=R?x+q+.5:x+.5,U=_-.5,Q=A?w+j+.5:w+.5,V=b._topdefs.selectAll("#"+G).data(A||R?[0]:[]);if(V.exit().remove(),V.enter().append("clipPath").attr("id",G).append("rect"),A||R?(this._clipRect=V.select("rect").attr({x:Math.floor(te),y:Math.floor(U),width:Math.ceil(ee)-Math.floor(te),height:Math.ceil(Q)-Math.floor(U)}),this.container.call(c.setClipUrl,G,this.gd),this.bg.attr({x:S,y:C,width:k,height:T})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(c.setClipUrl,null),delete this._clipRect),A||R){var X=s.behavior.drag().on("dragstart",function(){s.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(X);var K=s.behavior.drag().on("dragstart",function(){s.event.sourceEvent.preventDefault(),s.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));A&&this.hbar.on(".drag",null).call(K),R&&this.vbar.on(".drag",null).call(K)}this.setTranslate(h,g)},f.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(c.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},f.prototype._onBoxDrag=function(){var p=this.translateX,h=this.translateY;this.hbar&&(p-=s.event.dx),this.vbar&&(h-=s.event.dy),this.setTranslate(p,h)},f.prototype._onBoxWheel=function(){var p=this.translateX,h=this.translateY;this.hbar&&(p+=s.event.deltaY),this.vbar&&(h+=s.event.deltaY),this.setTranslate(p,h)},f.prototype._onBarDrag=function(){var p=this.translateX,h=this.translateY;if(this.hbar){var g=p+this._hbarXMin,b=g+this._hbarTranslateMax;p=(d.constrain(s.event.x,g,b)-g)/(b-g)*(this.position.w-this._box.w)}if(this.vbar){var v=h+this._vbarYMin,m=v+this._vbarTranslateMax;h=(d.constrain(s.event.y,v,m)-v)/(m-v)*(this.position.h-this._box.h)}this.setTranslate(p,h)},f.prototype.setTranslate=function(p,h){var g=this.position.w-this._box.w,b=this.position.h-this._box.h;if(p=d.constrain(p||0,0,g),h=d.constrain(h||0,0,b),this.translateX=p,this.translateY=h,this.container.call(c.setTranslate,this._box.l-this.position.l-p,this._box.t-this.position.t-h),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+p-.5),y:Math.floor(this.position.t+h-.5)}),this.hbar){var v=p/g;this.hbar.call(c.setTranslate,p+v*this._hbarTranslateMax,h)}if(this.vbar){var m=h/b;this.vbar.call(c.setTranslate,p,h+m*this._vbarTranslateMax)}}},18783:function(i){i.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},24695:function(i){i.exports={axisRefDescription:function(o,a,s){return["If set to a",o,"axis id (e.g. *"+o+"* or","*"+o+"2*), the `"+o+"` position refers to a",o,"coordinate. If set to *paper*, the `"+o+"`","position refers to the distance from the",a,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",a,"("+s+"). If set to a",o,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",a,"of the domain of that axis: e.g.,","*"+o+"2 domain* refers to the domain of the second",o," axis and a",o,"position of 0.5 refers to the","point between the",a,"and the",s,"of the domain of the","second",o,"axis."].join(" ")}}},31562:function(i){i.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},74808:function(i){i.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},37822:function(i){i.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},50606:function(i){i.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},32396:function(i,o){o.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],o.STYLE=o.CSS_DECLARATIONS.map(function(a){return a.join(": ")+"; "}).join("")},77922:function(i,o){o.xmlns="http://www.w3.org/2000/xmlns/",o.svg="http://www.w3.org/2000/svg",o.xlink="http://www.w3.org/1999/xlink",o.svgAttrs={xmlns:o.svg,"xmlns:xlink":o.xlink}},8729:function(i,o,a){o.version=a(11506).version,a(7417),a(98847);for(var s=a(73972),u=o.register=s.register,c=a(10641),d=Object.keys(c),f=0;f",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},99863:function(i,o){o.isLeftAnchor=function(a){return a.xanchor==="left"||a.xanchor==="auto"&&a.x<=.3333333333333333},o.isCenterAnchor=function(a){return a.xanchor==="center"||a.xanchor==="auto"&&a.x>.3333333333333333&&a.x<.6666666666666666},o.isRightAnchor=function(a){return a.xanchor==="right"||a.xanchor==="auto"&&a.x>=.6666666666666666},o.isTopAnchor=function(a){return a.yanchor==="top"||a.yanchor==="auto"&&a.y>=.6666666666666666},o.isMiddleAnchor=function(a){return a.yanchor==="middle"||a.yanchor==="auto"&&a.y>.3333333333333333&&a.y<.6666666666666666},o.isBottomAnchor=function(a){return a.yanchor==="bottom"||a.yanchor==="auto"&&a.y<=.3333333333333333}},26348:function(i,o,a){var s=a(64872),u=s.mod,c=s.modHalf,d=Math.PI,f=2*d;function p(v){return Math.abs(v[1]-v[0])>f-1e-14}function h(v,m){return c(m-v,f)}function g(v,m){if(p(m))return!0;var y,x;m[0](x=u(x,f))&&(x+=f);var _=u(v,f),w=_+f;return _>=y&&_<=x||w>=y&&w<=x}function b(v,m,y,x,_,w,S){_=_||0,w=w||0;var k,C,T,M,O,D=p([y,x]);function P(F,j){return[F*Math.cos(j)+_,w-F*Math.sin(j)]}D?(k=0,C=d,T=f):y=_&&v<=w);var _,w},pathArc:function(v,m,y,x,_){return b(null,v,m,y,x,_,0)},pathSector:function(v,m,y,x,_){return b(null,v,m,y,x,_,1)},pathAnnulus:function(v,m,y,x,_,w){return b(v,m,y,x,_,w,1)}}},73627:function(i,o){var a=Array.isArray,s=ArrayBuffer,u=DataView;function c(p){return s.isView(p)&&!(p instanceof u)}function d(p){return a(p)||c(p)}function f(p,h,g){if(d(p)){if(d(p[0])){for(var b=g,v=0;vw.max?x.set(_):x.set(+y)}},integer:{coerceFunction:function(y,x,_,w){y%1||!s(y)||w.min!==void 0&&yw.max?x.set(_):x.set(+y)}},string:{coerceFunction:function(y,x,_,w){if(typeof y!="string"){var S=typeof y=="number";w.strict!==!0&&S?x.set(String(y)):x.set(_)}else w.noBlank&&!y?x.set(_):x.set(y)}},color:{coerceFunction:function(y,x,_){u(y).isValid()?x.set(y):x.set(_)}},colorlist:{coerceFunction:function(y,x,_){Array.isArray(y)&&y.length&&y.every(function(w){return u(w).isValid()})?x.set(y):x.set(_)}},colorscale:{coerceFunction:function(y,x,_){x.set(d.get(y,_))}},angle:{coerceFunction:function(y,x,_){y==="auto"?x.set("auto"):s(y)?x.set(b(+y,360)):x.set(_)}},subplotid:{coerceFunction:function(y,x,_,w){var S=w.regex||g(_);typeof y=="string"&&S.test(y)?x.set(y):x.set(_)},validateFunction:function(y,x){var _=x.dflt;return y===_||typeof y=="string"&&!!g(_).test(y)}},flaglist:{coerceFunction:function(y,x,_,w){if((w.extras||[]).indexOf(y)===-1)if(typeof y=="string"){for(var S=y.split("+"),k=0;k=s&&N<=u?N:g}if(typeof N!="string"&&typeof N!="number")return g;N=String(N);var W=T(R),H=N.charAt(0);!W||H!=="G"&&H!=="g"||(N=N.substr(1),R="");var G=W&&R.substr(0,7)==="chinese",te=N.match(G?k:S);if(!te)return g;var ee=te[1],U=te[3]||"1",Q=Number(te[5]||1),V=Number(te[7]||0),X=Number(te[9]||0),K=Number(te[11]||0);if(W){if(ee.length===2)return g;var ne;ee=Number(ee);try{var ae=_.getComponentMethod("calendars","getCal")(R);if(G){var ie=U.charAt(U.length-1)==="i";U=parseInt(U,10),ne=ae.newDate(ee,ae.toMonthIndex(ee,U,ie),Q)}else ne=ae.newDate(ee,Number(U),Q)}catch{return g}return ne?(ne.toJD()-x)*b+V*v+X*m+K*y:g}ee=ee.length===2?(Number(ee)+2e3-C)%100+C:Number(ee),U-=1;var se=new Date(Date.UTC(2e3,U,Q,V,X));return se.setUTCFullYear(ee),se.getUTCMonth()!==U||se.getUTCDate()!==Q?g:se.getTime()+K*y},s=o.MIN_MS=o.dateTime2ms("-9999"),u=o.MAX_MS=o.dateTime2ms("9999-12-31 23:59:59.9999"),o.isDateTime=function(N,R){return o.dateTime2ms(N,R)!==g};var O=90*b,D=3*v,P=5*m;function E(N,R,q,Y,L){if((R||q||Y||L)&&(N+=" "+M(R,2)+":"+M(q,2),(Y||L)&&(N+=":"+M(Y,2),L))){for(var W=4;L%10==0;)W-=1,L/=10;N+="."+M(L,W)}return N}o.ms2DateTime=function(N,R,q){if(typeof N!="number"||!(N>=s&&N<=u))return g;R||(R=0);var Y,L,W,H,G,te,ee=Math.floor(10*p(N+.05,1)),U=Math.round(N-ee/10);if(T(q)){var Q=Math.floor(U/b)+x,V=Math.floor(p(N,b));try{Y=_.getComponentMethod("calendars","getCal")(q).fromJD(Q).formatDate("yyyy-mm-dd")}catch{Y=w("G%Y-%m-%d")(new Date(U))}if(Y.charAt(0)==="-")for(;Y.length<11;)Y="-0"+Y.substr(1);else for(;Y.length<10;)Y="0"+Y;L=R=s+b&&N<=u-b))return g;var R=Math.floor(10*p(N+.05,1)),q=new Date(Math.round(N-R/10));return E(c("%Y-%m-%d")(q),q.getHours(),q.getMinutes(),q.getSeconds(),10*q.getUTCMilliseconds()+R)},o.cleanDate=function(N,R,q){if(N===g)return R;if(o.isJSDate(N)||typeof N=="number"&&isFinite(N)){if(T(q))return f.error("JS Dates and milliseconds are incompatible with world calendars",N),R;if(!(N=o.ms2DateTimeLocal(+N))&&R!==void 0)return R}else if(!o.isDateTime(N,q))return f.error("unrecognized date",N),R;return N};var I=/%\d?f/g,A=/%h/g,F={1:"1",2:"1",3:"2",4:"2"};function j(N,R,q,Y){N=N.replace(I,function(W){var H=Math.min(+W.charAt(1)||6,6);return(R/1e3%1+2).toFixed(H).substr(2).replace(/0+$/,"")||"0"});var L=new Date(Math.floor(R+.05));if(N=N.replace(A,function(){return F[q("%q")(L)]}),T(Y))try{N=_.getComponentMethod("calendars","worldCalFmt")(N,R,Y)}catch{return"Invalid"}return q(N)(L)}var B=[59,59.9,59.99,59.999,59.9999];o.formatDate=function(N,R,q,Y,L,W){if(L=T(L)&&L,!R)if(q==="y")R=W.year;else if(q==="m")R=W.month;else{if(q!=="d")return function(H,G){var te=p(H+.05,b),ee=M(Math.floor(te/v),2)+":"+M(p(Math.floor(te/m),60),2);if(G!=="M"){d(G)||(G=0);var U=(100+Math.min(p(H/y,60),B[G])).toFixed(G).substr(1);G>0&&(U=U.replace(/0+$/,"").replace(/[\.]$/,"")),ee+=":"+U}return ee}(N,q)+` `+j(W.dayMonthYear,N,Y,L);R=W.dayMonth+` -`+W.year}return j(R,N,Y,L)};var B=3*b;o.incrementMonth=function(N,R,q){q=C(q)&&q;var Y=p(N,b);if(N=Math.round(N-Y),q)try{var L=Math.round(N/b)+w,W=_.getComponentMethod("calendars","getCal")(q),U=W.fromJD(L);return R%12?W.add(U,R,"m"):W.add(U,R/12,"y"),(U.toJD()-w)*b+Y}catch{f.error("invalid ms "+N+" in calendar "+q)}var V=new Date(N+B);return V.setUTCMonth(V.getUTCMonth()+R)+Y-B},o.findExactDates=function(N,R){for(var q,Y,L=0,W=0,U=0,V=0,te=C(R)&&_.getComponentMethod("calendars","getCal")(R),ee=0;ee1||D<0||D>1?null:{x:m+x*D,y:g+S*D}}function p(m,g,b,v,h){var y=v*m+h*g;if(y<0)return v*v+h*h;if(y>b){var w=v-m,_=h-g;return w*w+_*_}var x=v*g-h*m;return x*x/b}o.segmentsIntersect=f,o.segmentDistance=function(m,g,b,v,h,y,w,_){if(f(m,g,b,v,h,y,w,_))return 0;var x=b-m,T=v-g,k=w-h,S=_-y,C=x*x+T*T,M=k*k+S*S,O=Math.min(p(x,T,C,h-m,y-g),p(x,T,C,w-m,_-g),p(k,S,M,m-h,g-y),p(k,S,M,b-h,v-y));return Math.sqrt(O)},o.getTextLocation=function(m,g,b,v){if(m===u&&v===c||(s={},u=m,c=v),s[b])return s[b];var h=m.getPointAtLength(d(b-v/2,g)),y=m.getPointAtLength(d(b+v/2,g)),w=Math.atan((y.y-h.y)/(y.x-h.x)),_=m.getPointAtLength(d(b,g)),x={x:(4*_.x+h.x+y.x)/6,y:(4*_.y+h.y+y.y)/6,theta:w};return s[b]=x,x},o.clearLocationCache=function(){u=null},o.getVisibleSegment=function(m,g,b){var v,h,y=g.left,w=g.right,_=g.top,x=g.bottom,T=0,k=m.getTotalLength(),S=k;function C(O){var D=m.getPointAtLength(O);O===0?v=D:O===k&&(h=D);var P=D.xw?D.x-w:0,E=D.y<_?_-D.y:D.y>x?D.y-x:0;return Math.sqrt(P*P+E*E)}for(var M=C(T);M;){if((T+=M+b)>S)return;M=C(T)}for(M=C(S);M;){if(T>(S-=M+b))return;M=C(S)}return{min:T,max:S,len:S-T,total:k,isClosed:T===0&&S===k&&Math.abs(v.x-h.x)<.1&&Math.abs(v.y-h.y)<.1}},o.findPointOnPath=function(m,g,b,v){for(var h,y,w,_=(v=v||{}).pathLength||m.getTotalLength(),x=v.tolerance||.001,T=v.iterationLimit||30,k=m.getPointAtLength(0)[b]>m.getPointAtLength(_)[b]?-1:1,S=0,C=0,M=_;S0?M=h:C=h,S++}return y}},23389:function(i){i.exports=function(o){return o}},39240:function(i){i.exports=function(o,a){if(!a)return o;var s=1/Math.abs(a),u=s>1?(s*o+s*a)/s:o+a,c=String(u).length;if(c>16){var d=String(a).length;if(c>=String(o).length+d){var f=parseFloat(u).toPrecision(12);f.indexOf("e+")===-1&&(u=+f)}}return u}},71828:function(i,o,a){var s=a(39898),u=a(84096).g0,c=a(60721).WU,d=a(92770),f=a(50606),p=f.FP_SAFE,m=-p,g=f.BADNUM,b=i.exports={};b.adjustFormat=function(G){return!G||/^\d[.]\df/.test(G)||/[.]\d%/.test(G)?G:G==="0.f"?"~f":/^\d%/.test(G)?"~%":/^\ds/.test(G)?"~s":!/^[~,.0$]/.test(G)&&/[&fps]/.test(G)?"~"+G:G};var v={};b.warnBadFormat=function(G){var X=String(G);v[X]||(v[X]=1,b.warn('encountered bad format: "'+X+'"'))},b.noFormat=function(G){return String(G)},b.numberFormat=function(G){var X;try{X=c(b.adjustFormat(G))}catch{return b.warnBadFormat(G),b.noFormat}return X},b.nestedProperty=a(65487),b.keyedContainer=a(66636),b.relativeAttr=a(6962),b.isPlainObject=a(41965),b.toLogRange=a(58163),b.relinkPrivateKeys=a(51332);var h=a(73627);b.isTypedArray=h.isTypedArray,b.isArrayOrTypedArray=h.isArrayOrTypedArray,b.isArray1D=h.isArray1D,b.ensureArray=h.ensureArray,b.concat=h.concat,b.maxRowLength=h.maxRowLength,b.minRowLength=h.minRowLength;var y=a(64872);b.mod=y.mod,b.modHalf=y.modHalf;var w=a(96554);b.valObjectMeta=w.valObjectMeta,b.coerce=w.coerce,b.coerce2=w.coerce2,b.coerceFont=w.coerceFont,b.coercePattern=w.coercePattern,b.coerceHoverinfo=w.coerceHoverinfo,b.coerceSelectionMarkerOpacity=w.coerceSelectionMarkerOpacity,b.validate=w.validate;var _=a(41631);b.dateTime2ms=_.dateTime2ms,b.isDateTime=_.isDateTime,b.ms2DateTime=_.ms2DateTime,b.ms2DateTimeLocal=_.ms2DateTimeLocal,b.cleanDate=_.cleanDate,b.isJSDate=_.isJSDate,b.formatDate=_.formatDate,b.incrementMonth=_.incrementMonth,b.dateTick0=_.dateTick0,b.dfltRange=_.dfltRange,b.findExactDates=_.findExactDates,b.MIN_MS=_.MIN_MS,b.MAX_MS=_.MAX_MS;var x=a(65888);b.findBin=x.findBin,b.sorterAsc=x.sorterAsc,b.sorterDes=x.sorterDes,b.distinctVals=x.distinctVals,b.roundUp=x.roundUp,b.sort=x.sort,b.findIndexOfMin=x.findIndexOfMin,b.sortObjectKeys=a(78607);var T=a(80038);b.aggNums=T.aggNums,b.len=T.len,b.mean=T.mean,b.median=T.median,b.midRange=T.midRange,b.variance=T.variance,b.stdev=T.stdev,b.interp=T.interp;var k=a(35657);b.init2dArray=k.init2dArray,b.transposeRagged=k.transposeRagged,b.dot=k.dot,b.translationMatrix=k.translationMatrix,b.rotationMatrix=k.rotationMatrix,b.rotationXYMatrix=k.rotationXYMatrix,b.apply3DTransform=k.apply3DTransform,b.apply2DTransform=k.apply2DTransform,b.apply2DTransform2=k.apply2DTransform2,b.convertCssMatrix=k.convertCssMatrix,b.inverseTransformMatrix=k.inverseTransformMatrix;var S=a(26348);b.deg2rad=S.deg2rad,b.rad2deg=S.rad2deg,b.angleDelta=S.angleDelta,b.angleDist=S.angleDist,b.isFullCircle=S.isFullCircle,b.isAngleInsideSector=S.isAngleInsideSector,b.isPtInsideSector=S.isPtInsideSector,b.pathArc=S.pathArc,b.pathSector=S.pathSector,b.pathAnnulus=S.pathAnnulus;var C=a(99863);b.isLeftAnchor=C.isLeftAnchor,b.isCenterAnchor=C.isCenterAnchor,b.isRightAnchor=C.isRightAnchor,b.isTopAnchor=C.isTopAnchor,b.isMiddleAnchor=C.isMiddleAnchor,b.isBottomAnchor=C.isBottomAnchor;var M=a(87642);b.segmentsIntersect=M.segmentsIntersect,b.segmentDistance=M.segmentDistance,b.getTextLocation=M.getTextLocation,b.clearLocationCache=M.clearLocationCache,b.getVisibleSegment=M.getVisibleSegment,b.findPointOnPath=M.findPointOnPath;var O=a(1426);b.extendFlat=O.extendFlat,b.extendDeep=O.extendDeep,b.extendDeepAll=O.extendDeepAll,b.extendDeepNoArrays=O.extendDeepNoArrays;var D=a(47769);b.log=D.log,b.warn=D.warn,b.error=D.error;var P=a(30587);b.counterRegex=P.counter;var E=a(79990);b.throttle=E.throttle,b.throttleDone=E.done,b.clearThrottle=E.clear;var I=a(24401);function A(G){var X={};for(var Q in G)for(var re=G[Q],ae=0;aep||G=X)&&d(G)&&G>=0&&G%1==0},b.noop=a(64213),b.identity=a(23389),b.repeat=function(G,X){for(var Q=new Array(X),re=0;reQ?Math.max(Q,Math.min(X,G)):Math.max(X,Math.min(Q,G))},b.bBoxIntersect=function(G,X,Q){return Q=Q||0,G.left<=X.right+Q&&X.left<=G.right+Q&&G.top<=X.bottom+Q&&X.top<=G.bottom+Q},b.simpleMap=function(G,X,Q,re,ae){for(var ie=G.length,se=new Array(ie),he=0;he=Math.pow(2,Q)?ae>10?(b.warn("randstr failed uniqueness"),Se):G(X,Q,re,(ae||0)+1):Se},b.OptionControl=function(G,X){G||(G={}),X||(X="opt");var Q={optionList:[],_newoption:function(re){re[X]=G,Q[re.name]=re,Q.optionList.push(re)}};return Q["_"+X]=G,Q},b.smooth=function(G,X){if((X=Math.round(X)||0)<2)return G;var Q,re,ae,ie,se=G.length,he=2*se,Se=2*X-1,Oe=new Array(Se),Pe=new Array(se);for(Q=0;Q=he&&(ae-=he*Math.floor(ae/he)),ae<0?ae=-1-ae:ae>=se&&(ae=he-1-ae),ie+=G[ae]*Oe[re];Pe[Q]=ie}return Pe},b.syncOrAsync=function(G,X,Q){var re;function ae(){return b.syncOrAsync(G,X,Q)}for(;G.length;)if((re=(0,G.splice(0,1)[0])(X))&&re.then)return re.then(ae);return Q&&Q(X)},b.stripTrailingSlash=function(G){return G.substr(-1)==="/"?G.substr(0,G.length-1):G},b.noneOrAll=function(G,X,Q){if(G){var re,ae=!1,ie=!0;for(re=0;re0?ae:0})},b.fillArray=function(G,X,Q,re){if(re=re||b.identity,b.isArrayOrTypedArray(G))for(var ae=0;ae1?ae+se[1]:"";if(ie&&(se.length>1||he.length>4||Q))for(;re.test(he);)he=he.replace(re,"$1"+ie+"$2");return he+Se},b.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var q=/^\w*$/;b.templateString=function(G,X){var Q={};return G.replace(b.TEMPLATE_STRING_REGEX,function(re,ae){var ie;return q.test(ae)?ie=X[ae]:(Q[ae]=Q[ae]||b.nestedProperty(X,ae).get,ie=Q[ae]()),b.isValidTextValue(ie)?ie:""})};var Y={max:10,count:0,name:"hovertemplate"};b.hovertemplateString=function(){return te.apply(Y,arguments)};var L={max:10,count:0,name:"texttemplate"};b.texttemplateString=function(){return te.apply(L,arguments)};var W=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/,U={max:10,count:0,name:"texttemplate",parseMultDiv:!0};b.texttemplateStringForShapes=function(){return te.apply(U,arguments)};var V=/^[:|\|]/;function te(G,X,Q){var re=this,ae=arguments;X||(X={});var ie={};return G.replace(b.TEMPLATE_STRING_REGEX,function(se,he,Se){var Oe=he==="_xother"||he==="_yother",Pe=he==="_xother_"||he==="_yother_",Me=he==="xother_"||he==="yother_",ce=he==="xother"||he==="yother"||Oe||Me||Pe,we=he;(Oe||Pe)&&(we=we.substring(1)),(Me||Pe)&&(we=we.substring(0,we.length-1));var K,ne,de,_e=null,ue=null;if(re.parseMultDiv){var pe=function(Ae){var Re=Ae.match(W);return Re?{key:Re[1],op:Re[2],number:Number(Re[3])}:{key:Ae,op:null,number:null}}(we);we=pe.key,_e=pe.op,ue=pe.number}if(ce){if((K=X[we])===void 0)return""}else for(de=3;de=48&&se<=57,Oe=he>=48&&he<=57;if(Se&&(re=10*re+se-48),Oe&&(ae=10*ae+he-48),!Se||!Oe){if(re!==ae)return re-ae;if(se!==he)return se-he}}return ae-re};var ee=2e9;b.seedPseudoRandom=function(){ee=2e9},b.pseudoRandom=function(){var G=ee;return ee=(69069*ee+1)%4294967296,Math.abs(ee-G)<429496729?b.pseudoRandom():ee/4294967296},b.fillText=function(G,X,Q){var re=Array.isArray(Q)?function(se){Q.push(se)}:function(se){Q.text=se},ae=b.extractOption(G,X,"htx","hovertext");if(b.isValidTextValue(ae))return re(ae);var ie=b.extractOption(G,X,"tx","text");return b.isValidTextValue(ie)?re(ie):void 0},b.isValidTextValue=function(G){return G||G===0},b.formatPercent=function(G,X){X=X||0;for(var Q=(Math.round(100*G*Math.pow(10,X))*Math.pow(.1,X)).toFixed(X)+"%",re=0;re1&&(Oe=1):Oe=0,b.strTranslate(ae-Oe*(Q+se),ie-Oe*(re+he))+b.strScale(Oe)+(Se?"rotate("+Se+(X?"":" "+Q+" "+re)+")":"")},b.setTransormAndDisplay=function(G,X){G.attr("transform",b.getTextTransform(X)),G.style("display",X.scale?null:"none")},b.ensureUniformFontSize=function(G,X){var Q=b.extendFlat({},X);return Q.size=Math.max(X.size,G._fullLayout.uniformtext.minsize||0),Q},b.join2=function(G,X,Q){var re=G.length;return re>1?G.slice(0,-1).join(X)+Q+G[re-1]:G.join(X)},b.bigFont=function(G){return Math.round(1.2*G)};var H=b.getFirefoxVersion(),Z=H!==null&&H<86;b.getPositionFromD3Event=function(){return Z?[s.event.layerX,s.event.layerY]:[s.event.offsetX,s.event.offsetY]}},41965:function(i){i.exports=function(o){return window&&window.process&&window.process.versions?Object.prototype.toString.call(o)==="[object Object]":Object.prototype.toString.call(o)==="[object Object]"&&Object.getPrototypeOf(o).hasOwnProperty("hasOwnProperty")}},66636:function(i,o,a){var s=a(65487),u=/^\w*$/;i.exports=function(c,d,f,p){var m,g,b;f=f||"name",p=p||"value";var v={};d&&d.length?(b=s(c,d),g=b.get()):g=c,d=d||"";var h={};if(g)for(m=0;m2)return v[x]=2|v[x],w.set(_,null);if(y){for(m=x;m1){var f=["LOG:"];for(d=0;d1){var p=[];for(d=0;d"),"long")}},c.warn=function(){var d;if(s.logging>0){var f=["WARN:"];for(d=0;d0){var p=[];for(d=0;d"),"stick")}},c.error=function(){var d;if(s.logging>0){var f=["ERROR:"];for(d=0;d0){var p=[];for(d=0;d"),"stick")}}},77310:function(i,o,a){var s=a(39898);i.exports=function(u,c,d){var f=u.selectAll("g."+d.replace(/\s/g,".")).data(c,function(m){return m[0].trace.uid});f.exit().remove(),f.enter().append("g").attr("class",d),f.order();var p=u.classed("rangeplot")?"nodeRangePlot3":"node3";return f.each(function(m){m[0][p]=s.select(this)}),f}},35657:function(i,o,a){var s=a(79576);o.init2dArray=function(u,c){for(var d=new Array(u),f=0;fa/2?o-Math.round(o/a)*a:o}}},65487:function(i,o,a){var s=a(92770),u=a(73627).isArrayOrTypedArray;function c(v,h){return function(){var y,w,_,x,T,k=v;for(x=0;x/g),w=0;wg||S===u||Sv||T&&h(x))}:function(x,T){var k=x[0],S=x[1];if(k===u||kg||S===u||Sv)return!1;var C,M,O,D,P,E=p.length,I=p[0][0],A=p[0][1],F=0;for(C=1;CMath.max(M,I)||S>Math.max(O,A)))if(Sw||Math.abs(s(b,x))>m)return!0;return!1},c.filter=function(d,f){var p=[d[0]],m=0,g=0;function b(v){d.push(v);var h=p.length,y=m;p.splice(g+1);for(var w=y+1;w1&&b(d.pop()),{addPt:b,raw:d,filtered:p}}},45142:function(i,o,a){var s=a(92770),u=a(35791);i.exports=function(c){var d;if(typeof(d=c&&c.hasOwnProperty("userAgent")?c.userAgent:function(){var h;return typeof navigator<"u"&&(h=navigator.userAgent),h&&h.headers&&typeof h.headers["user-agent"]=="string"&&(h=h.headers["user-agent"]),h}())!="string")return!0;var f=u({ua:{headers:{"user-agent":d}},tablet:!0,featureDetect:!1});if(!f){for(var p=d.split(" "),m=1;m-1;g--){var b=p[g];if(b.substr(0,8)==="Version/"){var v=b.substr(8).split(".")[0];if(s(v)&&(v=+v),v>=13)return!0}}}return f}},75138:function(i){i.exports=function(o,a){if(a instanceof RegExp){for(var s=a.toString(),u=0;uu.queueLength&&(d.undoQueue.queue.shift(),d.undoQueue.index--))},startSequence:function(d){d.undoQueue=d.undoQueue||{index:0,queue:[],sequence:!1},d.undoQueue.sequence=!0,d.undoQueue.beginSequence=!0},stopSequence:function(d){d.undoQueue=d.undoQueue||{index:0,queue:[],sequence:!1},d.undoQueue.sequence=!1,d.undoQueue.beginSequence=!1},undo:function(d){var f,p;if(!(d.undoQueue===void 0||isNaN(d.undoQueue.index)||d.undoQueue.index<=0)){for(d.undoQueue.index--,f=d.undoQueue.queue[d.undoQueue.index],d.undoQueue.inSequence=!0,p=0;p=d.undoQueue.queue.length)){for(f=d.undoQueue.queue[d.undoQueue.index],d.undoQueue.inSequence=!0,p=0;ph}function b(v,h){return v>=h}o.findBin=function(v,h,y){if(s(h.start))return y?Math.ceil((v-h.start)/h.size-f)-1:Math.floor((v-h.start)/h.size+f);var w,_,x=0,T=h.length,k=0,S=T>1?(h[T-1]-h[0])/(T-1):1;for(_=S>=0?y?p:m:y?b:g,v+=S*f*(y?-1:1)*(S>=0?1:-1);x90&&u.log("Long binary search..."),x-1},o.sorterAsc=function(v,h){return v-h},o.sorterDes=function(v,h){return h-v},o.distinctVals=function(v){var h,y=v.slice();for(y.sort(o.sorterAsc),h=y.length-1;h>-1&&y[h]===d;h--);for(var w,_=y[h]-y[0]||1,x=_/(h||1)/1e4,T=[],k=0;k<=h;k++){var S=y[k],C=S-w;w===void 0?(T.push(S),w=S):C>x&&(_=Math.min(_,C),T.push(S),w=S)}return{vals:T,minDiff:_}},o.roundUp=function(v,h,y){for(var w,_=0,x=h.length-1,T=0,k=y?0:1,S=y?1:0,C=y?Math.ceil:Math.floor;_0&&(w=1),y&&w)return v.sort(h)}return w?v:v.reverse()},o.findIndexOfMin=function(v,h){h=h||c;for(var y,w=1/0,_=0;_f.length)&&(p=f.length),s(d)||(d=!1),u(f[0])){for(g=new Array(p),m=0;mc.length-1)return c[c.length-1];var f=d%1;return f*c[Math.ceil(d)]+(1-f)*c[Math.floor(d)]}},3883:function(i,o,a){var s=a(32396),u=a(91424),c=a(71828),d=null;i.exports=function(){if(d!==null)return d;d=!1;var f=c.isIE()||c.isSafari()||c.isIOS();if(window.navigator.userAgent&&!f){var p=Array.from(s.CSS_DECLARATIONS).reverse(),m=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof m=="function")d=p.some(function(v){return m.apply(null,v)});else{var g=u.tester.append("image").attr("style",s.STYLE),b=window.getComputedStyle(g.node()).imageRendering;d=p.some(function(v){var h=v[1];return b===h||b===h.toLowerCase()}),g.remove()}}return d}},63893:function(i,o,a){var s=a(39898),u=a(71828),c=u.strTranslate,d=a(77922),f=a(18783).LINE_SPACING,p=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;o.convertToTspans=function(N,R,q){var Y=N.text(),L=!N.attr("data-notex")&&R&&R._context.typesetMath&&typeof MathJax<"u"&&Y.match(p),W=s.select(N.node().parentNode);if(!W.empty()){var U=N.attr("class")?N.attr("class").split(" ")[0]:"text";return U+="-math",W.selectAll("svg."+U).remove(),W.selectAll("g."+U+"-group").remove(),N.style("display",null).attr({"data-unformatted":Y,"data-math":"N"}),L?(R&&R._promises||[]).push(new Promise(function(te){N.style("display","none");var ee=parseInt(N.node().style.fontSize,10),H={fontSize:ee};(function(Z,G,X){var Q,re,ae,ie,se=parseInt((MathJax.version||"").split(".")[0]);if(se===2||se===3){var he=function(){var Oe="math-output-"+u.randstr({},64),Pe=(ie=s.select("body").append("div").attr({id:Oe}).style({visibility:"hidden",position:"absolute","font-size":G.fontSize+"px"}).text(Z.replace(m,"\\lt ").replace(g,"\\gt "))).node();return se===2?MathJax.Hub.Typeset(Pe):MathJax.typeset([Pe])},Se=function(){var Oe=ie.select(se===2?".MathJax_SVG":".MathJax"),Pe=!Oe.empty()&&ie.select("svg").node();if(Pe){var Me,ce=Pe.getBoundingClientRect();Me=se===2?s.select("body").select("#MathJax_SVG_glyphs"):Oe.select("defs"),X(Oe,Me,ce)}else u.log("There was an error in the tex syntax.",Z),X();ie.remove()};se===2?MathJax.Hub.Queue(function(){return re=u.extendDeepAll({},MathJax.Hub.config),ae=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:b},displayAlign:"left"})},function(){if((Q=MathJax.Hub.config.menuSettings.renderer)!=="SVG")return MathJax.Hub.setRenderer("SVG")},he,Se,function(){if(Q!=="SVG")return MathJax.Hub.setRenderer(Q)},function(){return ae!==void 0&&(MathJax.Hub.processSectionDelay=ae),MathJax.Hub.Config(re)}):se===3&&(re=u.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=b,(Q=MathJax.config.startup.output)!=="svg"&&(MathJax.config.startup.output="svg"),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){he(),Se(),Q!=="svg"&&(MathJax.config.startup.output=Q),MathJax.config=re}))}else u.warn("No MathJax version:",MathJax.version)})(L[2],H,function(Z,G,X){W.selectAll("svg."+U).remove(),W.selectAll("g."+U+"-group").remove();var Q=Z&&Z.select("svg");if(!Q||!Q.node())return V(),void te();var re=W.append("g").classed(U+"-group",!0).attr({"pointer-events":"none","data-unformatted":Y,"data-math":"Y"});re.node().appendChild(Q.node()),G&&G.node()&&Q.node().insertBefore(G.node().cloneNode(!0),Q.node().firstChild);var ae=X.width,ie=X.height;Q.attr({class:U,height:ie,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var se=N.node().style.fill||"black",he=Q.select("g");he.attr({fill:se,stroke:se});var Se=he.node().getBoundingClientRect(),Oe=Se.width,Pe=Se.height;(Oe>ae||Pe>ie)&&(Q.style("overflow","hidden"),Oe=(Se=Q.node().getBoundingClientRect()).width,Pe=Se.height);var Me=+N.attr("x"),ce=+N.attr("y"),we=-(ee||N.node().getBoundingClientRect().height)/4;if(U[0]==="y")re.attr({transform:"rotate("+[-90,Me,ce]+")"+c(-Oe/2,we-Pe/2)});else if(U[0]==="l")ce=we-Pe/2;else if(U[0]==="a"&&U.indexOf("atitle")!==0)Me=0,ce=we;else{var K=N.attr("text-anchor");Me-=Oe*(K==="middle"?.5:K==="end"?1:0),ce=ce+we-Pe/2}Q.attr({x:Me,y:ce}),q&&q.call(N,re),te(re)})})):V(),N}function V(){W.empty()||(U=N.attr("class")+"-math",W.select("svg."+U).remove()),N.text("").style("white-space","pre");var te=function(ee,H){H=H.replace(x," ");var Z,G=!1,X=[],Q=-1;function re(){Q++;var ue=document.createElementNS(d.svg,"tspan");s.select(ue).attr({class:"line",dy:Q*f+"em"}),ee.appendChild(ue),Z=ue;var pe=X;if(X=[{node:ue}],pe.length>1)for(var xe=1;xe doesnt match end tag <"+ue+">. Pretending it did match.",H),Z=X[X.length-1].node}else u.log("Ignoring unexpected end tag .",H)}S.test(H)?re():(Z=ee,X=[{node:ee}]);for(var he=H.split(T),Se=0;Se|>|>)/g,b=[["$","$"],["\\(","\\)"]],v={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},h={sub:"0.3em",sup:"-0.6em"},y={sub:"-0.21em",sup:"0.42em"},w="​",_=["http:","https:","mailto:","",void 0,":"],x=o.NEWLINES=/(\r\n?|\n)/g,T=/(<[^<>]*>)/,k=/<(\/?)([^ >]*)(\s+(.*))?>/i,S=//i;o.BR_TAG_ALL=//gi;var C=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,M=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,O=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,D=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function P(N,R){if(!N)return null;var q=N.match(R),Y=q&&(q[3]||q[4]);return Y&&F(Y)}var E=/(^|;)\s*color:/;o.plainText=function(N,R){for(var q=(R=R||{}).len!==void 0&&R.len!==-1?R.len:1/0,Y=R.allowedTags!==void 0?R.allowedTags:["br"],L=N.split(T),W=[],U="",V=0,te=0;te3?W.push(ee.substr(0,X-3)+"..."):W.push(ee.substr(0,X));break}U=""}}return W.join("")};var I={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},A=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function F(N){return N.replace(A,function(R,q){return(q.charAt(0)==="#"?function(Y){if(!(Y>1114111)){var L=String.fromCodePoint;if(L)return L(Y);var W=String.fromCharCode;return Y<=65535?W(Y):W(55232+(Y>>10),Y%1024+56320)}}(q.charAt(1)==="x"?parseInt(q.substr(2),16):parseInt(q.substr(1),10)):I[q])||R})}function j(N){var R=encodeURI(decodeURI(N)),q=document.createElement("a"),Y=document.createElement("a");q.href=N,Y.href=R;var L=q.protocol,W=Y.protocol;return _.indexOf(L)!==-1&&_.indexOf(W)!==-1?R:""}function z(N,R,q){var Y,L,W,U=q.horizontalAlign,V=q.verticalAlign||"top",te=N.node().getBoundingClientRect(),ee=R.node().getBoundingClientRect();return L=V==="bottom"?function(){return te.bottom-Y.height}:V==="middle"?function(){return te.top+(te.height-Y.height)/2}:function(){return te.top},W=U==="right"?function(){return te.right-Y.width}:U==="center"?function(){return te.left+(te.width-Y.width)/2}:function(){return te.left},function(){Y=this.node().getBoundingClientRect();var H=W()-ee.left,Z=L()-ee.top,G=q.gd||{};if(q.gd){G._fullLayout._calcInverseTransform(G);var X=u.apply3DTransform(G._fullLayout._invTransform)(H,Z);H=X[0],Z=X[1]}return this.style({top:Z+"px",left:H+"px","z-index":1e3}),this}}o.convertEntities=F,o.sanitizeHTML=function(N){N=N.replace(x," ");for(var R=document.createElement("p"),q=R,Y=[],L=N.split(T),W=0;Wf.ts+c?g():f.timer=setTimeout(function(){g(),f.timer=null},c)},o.done=function(u){var c=a[u];return c&&c.timer?new Promise(function(d){var f=c.onDone;c.onDone=function(){f&&f(),d(),c.onDone=null}}):Promise.resolve()},o.clear=function(u){if(u)s(a[u]),delete a[u];else for(var c in a)o.clear(c)}},58163:function(i,o,a){var s=a(92770);i.exports=function(u,c){if(u>0)return Math.log(u)/Math.LN10;var d=Math.log(Math.min(c[0],c[1]))/Math.LN10;return s(d)||(d=Math.log(Math.max(c[0],c[1]))/Math.LN10-6),d}},37815:function(i){i.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},92177:function(i){i.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},14458:function(i,o,a){var s=a(73972);i.exports=function(u){for(var c,d,f=s.layoutArrayContainers,p=s.layoutArrayRegexes,m=u.split("[")[0],g=0;g0&&d.log("Clearing previous rejected promises from queue."),M._promises=[]},o.cleanLayout=function(M){var O,D;M||(M={}),M.xaxis1&&(M.xaxis||(M.xaxis=M.xaxis1),delete M.xaxis1),M.yaxis1&&(M.yaxis||(M.yaxis=M.yaxis1),delete M.yaxis1),M.scene1&&(M.scene||(M.scene=M.scene1),delete M.scene1);var P=(f.subplotsRegistry.cartesian||{}).attrRegex,E=(f.subplotsRegistry.polar||{}).attrRegex,I=(f.subplotsRegistry.ternary||{}).attrRegex,A=(f.subplotsRegistry.gl3d||{}).attrRegex,F=Object.keys(M);for(O=0;O3?(X.x=1.02,X.xanchor="left"):X.x<-2&&(X.x=-.02,X.xanchor="right"),X.y>3?(X.y=1.02,X.yanchor="bottom"):X.y<-2&&(X.y=-.02,X.yanchor="top")),y(M),M.dragmode==="rotate"&&(M.dragmode="orbit"),m.clean(M),M.template&&M.template.layout&&o.cleanLayout(M.template.layout),M},o.cleanData=function(M){for(var O=0;O0)return M.substr(0,O)}o.hasParent=function(M,O){for(var D=S(O);D;){if(D in M)return!0;D=S(D)}return!1};var C=["x","y","z"];o.clearAxisTypes=function(M,O,D){for(var P=0;P1&&c.warn("Full array edits are incompatible with other edits",w);var M=v[""][""];if(m(M))b.set(null);else{if(!Array.isArray(M))return c.warn("Unrecognized full array edit value",w,M),!0;b.set(M)}return!k&&(_(S,C),x(g),!0)}var O,D,P,E,I,A,F,j,z=Object.keys(v).map(Number).sort(d),B=b.get(),N=B||[],R=y(C,w).get(),q=[],Y=-1,L=N.length;for(O=0;ON.length-(F?0:1))c.warn("index out of range",w,P);else if(A!==void 0)I.length>1&&c.warn("Insertion & removal are incompatible with edits to the same index.",w,P),m(A)?q.push(P):F?(A==="add"&&(A={}),N.splice(P,0,A),R&&R.splice(P,0,{})):c.warn("Unrecognized full object edit value",w,P,A),Y===-1&&(Y=P);else for(D=0;D=0;O--)N.splice(q[O],1),R&&R.splice(q[O],1);if(N.length?B||b.set(N):b.set(null),k)return!1;if(_(S,C),T!==u){var W;if(Y===-1)W=z;else{for(L=Math.max(N.length,L),W=[],O=0;O=Y);O++)W.push(P);for(O=Y;O=ue.data.length||Te<-ue.data.length)throw new Error(xe+" must be valid indices for gd.data.");if(pe.indexOf(Te,ye+1)>-1||Te>=0&&pe.indexOf(-ue.data.length+Te)>-1||Te<0&&pe.indexOf(ue.data.length+Te)>-1)throw new Error("each index in "+xe+" must be unique.")}}function R(ue,pe,xe){if(!Array.isArray(ue.data))throw new Error("gd.data must be an array.");if(pe===void 0)throw new Error("currentIndices is a required argument.");if(Array.isArray(pe)||(pe=[pe]),N(ue,pe,"currentIndices"),xe===void 0||Array.isArray(xe)||(xe=[xe]),xe!==void 0&&N(ue,xe,"newIndices"),xe!==void 0&&pe.length!==xe.length)throw new Error("current and new indices must be of equal length.")}function q(ue,pe,xe,ye,Te){(function(qe,Xe,ot,st){var dt=d.isPlainObject(st);if(!Array.isArray(qe.data))throw new Error("gd.data must be an array");if(!d.isPlainObject(Xe))throw new Error("update must be a key:value object");if(ot===void 0)throw new Error("indices must be an integer or array of integers");for(var vt in N(qe,ot,"indices"),Xe){if(!Array.isArray(Xe[vt])||Xe[vt].length!==ot.length)throw new Error("attribute "+vt+" must be an array of length equal to indices array length");if(dt&&(!(vt in st)||!Array.isArray(st[vt])||st[vt].length!==Xe[vt].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}})(ue,pe,xe,ye);for(var Ae=function(qe,Xe,ot,st){var dt,vt,We,ze,tt,it=d.isPlainObject(st),St=[];for(var Ze in Array.isArray(ot)||(ot=[ot]),ot=B(ot,qe.data.length-1),Xe)for(var ut=0;ut-1&&xe.indexOf("grouptitlefont")===-1?Le(xe,xe.replace("titlefont","title.font")):xe.indexOf("titleposition")>-1?Le(xe,xe.replace("titleposition","title.position")):xe.indexOf("titleside")>-1?Le(xe,xe.replace("titleside","title.side")):xe.indexOf("titleoffset")>-1&&Le(xe,xe.replace("titleoffset","title.offset")):Le(xe,xe.replace("title","title.text"));function Le($e,Fe){ue[Fe]=ue[$e],delete ue[$e]}}function H(ue,pe,xe){ue=d.getGraphDiv(ue),O.clearPromiseQueue(ue);var ye={};if(typeof pe=="string")ye[pe]=xe;else{if(!d.isPlainObject(pe))return d.warn("Relayout fail.",pe,xe),Promise.reject();ye=d.extendFlat({},pe)}Object.keys(ye).length&&(ue.changed=!0);var Te=ae(ue,ye),Ae=Te.flags;Ae.calc&&(ue.calcdata=void 0);var Re=[v.previousPromises];Ae.layoutReplot?Re.push(D.layoutReplot):Object.keys(ye).length&&(Z(ue,Ae,Te)||v.supplyDefaults(ue),Ae.legend&&Re.push(D.doLegend),Ae.layoutstyle&&Re.push(D.layoutStyles),Ae.axrange&&G(Re,Te.rangesAltered),Ae.ticks&&Re.push(D.doTicksRelayout),Ae.modebar&&Re.push(D.doModeBar),Ae.camera&&Re.push(D.doCamera),Ae.colorbars&&Re.push(D.doColorBars),Re.push(A)),Re.push(v.rehover,v.redrag,v.reselect),m.add(ue,H,[ue,Te.undoit],H,[ue,Te.redoit]);var Le=d.syncOrAsync(Re,ue);return Le&&Le.then||(Le=Promise.resolve(ue)),Le.then(function(){return ue.emit("plotly_relayout",Te.eventData),ue})}function Z(ue,pe,xe){var ye,Te,Ae=ue._fullLayout;if(!pe.axrange)return!1;for(var Re in pe)if(Re!=="axrange"&&pe[Re])return!1;var Le=function(Xe,ot){return d.coerce(ye,Te,w,Xe,ot)},$e={};for(var Fe in xe.rangesAltered){var Be=h.id2name(Fe);if(ye=ue.layout[Be],Te=Ae[Be],y(ye,Te,Le,$e),Te._matchGroup){for(var Ue in Te._matchGroup)if(Ue!==Fe){var qe=Ae[h.id2name(Ue)];qe.autorange=Te.autorange,qe.range=Te.range.slice(),qe._input.range=Te.range.slice()}}}return!0}function G(ue,pe){var xe=pe?function(ye){var Te=[];for(var Ae in pe){var Re=h.getFromId(ye,Ae);if(Te.push(Ae),(Re.ticklabelposition||"").indexOf("inside")!==-1&&Re._anchorAxis&&Te.push(Re._anchorAxis._id),Re._matchGroup)for(var Le in Re._matchGroup)pe[Le]||Te.push(Le)}return h.draw(ye,Te,{skipTitle:!0})}:function(ye){return h.draw(ye,"redraw")};ue.push(S,D.doAutoRangeAndConstraints,xe,D.drawData,D.finalDraw)}var X=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,Q=/^[xyz]axis[0-9]*\.autorange$/,re=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function ae(ue,pe){var xe,ye,Te,Ae=ue.layout,Re=ue._fullLayout,Le=Re._guiEditing,$e=U(Re._preGUI,Le),Fe=Object.keys(pe),Be=h.list(ue),Ue=d.extendDeepAll({},pe),qe={};for(ee(pe),Fe=Object.keys(pe),ye=0;ye0&&typeof ut.parts[Rt]!="string";)Rt--;var Ct=ut.parts[Rt],Wt=ut.parts[Rt-1]+"."+Ct,_t=ut.parts.slice(0,Rt).join("."),be=f(ue.layout,_t).get(),Ce=f(Re,_t).get(),Ge=ut.get();if(ht!==void 0){vt[Ze]=ht,We[Ze]=Ct==="reverse"?ht:W(Ge);var He=b.getLayoutValObject(Re,ut.parts);if(He&&He.impliedEdits&&ht!==null)for(var et in He.impliedEdits)ze(d.relativeAttr(Ze,et),He.impliedEdits[et]);if(["width","height"].indexOf(Ze)!==-1)if(ht){ze("autosize",null);var Ke=Ze==="height"?"width":"height";ze(Ke,Re[Ke])}else Re[Ze]=ue._initialAutoSize[Ze];else if(Ze==="autosize")ze("width",ht?null:Re.width),ze("height",ht?null:Re.height);else if(Wt.match(X))St(Wt),f(Re,_t+"._inputRange").set(null);else if(Wt.match(Q)){St(Wt),f(Re,_t+"._inputRange").set(null);var Ye=f(Re,_t).get();Ye._inputDomain&&(Ye._input.domain=Ye._inputDomain.slice())}else Wt.match(re)&&f(Re,_t+"._inputDomain").set(null);if(Ct==="type"){tt=be;var nt=Ce.type==="linear"&&ht==="log",ct=Ce.type==="log"&&ht==="linear";if(nt||ct){if(tt&&tt.range)if(Ce.autorange)nt&&(tt.range=tt.range[1]>tt.range[0]?[1,2]:[2,1]);else{var yt=tt.range[0],rt=tt.range[1];nt?(yt<=0&&rt<=0&&ze(_t+".autorange",!0),yt<=0?yt=rt/1e6:rt<=0&&(rt=yt/1e6),ze(_t+".range[0]",Math.log(yt)/Math.LN10),ze(_t+".range[1]",Math.log(rt)/Math.LN10)):(ze(_t+".range[0]",Math.pow(10,yt)),ze(_t+".range[1]",Math.pow(10,rt)))}else ze(_t+".autorange",!0);Array.isArray(Re._subplots.polar)&&Re._subplots.polar.length&&Re[ut.parts[0]]&&ut.parts[1]==="radialaxis"&&delete Re[ut.parts[0]]._subplot.viewInitial["radialaxis.range"],g.getComponentMethod("annotations","convertCoords")(ue,Ce,ht,ze),g.getComponentMethod("images","convertCoords")(ue,Ce,ht,ze)}else ze(_t+".autorange",!0),ze(_t+".range",null);f(Re,_t+"._inputRange").set(null)}else if(Ct.match(E)){var Ft=f(Re,Ze).get(),Yt=(ht||{}).type;Yt&&Yt!=="-"||(Yt="linear"),g.getComponentMethod("annotations","convertCoords")(ue,Ft,Yt,ze),g.getComponentMethod("images","convertCoords")(ue,Ft,Yt,ze)}var Mt=M.containerArrayMatch(Ze);if(Mt){xe=Mt.array,ye=Mt.index;var jt=Mt.property,Lt=He||{editType:"calc"};ye!==""&&jt===""&&(M.isAddVal(ht)?We[Ze]=null:M.isRemoveVal(ht)?We[Ze]=(f(Ae,xe).get()||[])[ye]:d.warn("unrecognized full object value",pe)),P.update(dt,Lt),qe[xe]||(qe[xe]={});var gt=qe[xe][ye];gt||(gt=qe[xe][ye]={}),gt[jt]=ht,delete pe[Ze]}else Ct==="reverse"?(be.range?be.range.reverse():(ze(_t+".autorange",!0),be.range=[1,0]),Ce.autorange?dt.calc=!0:dt.plot=!0):(Ze==="dragmode"&&(ht===!1&&Ge!==!1||ht!==!1&&Ge===!1)||Re._has("scatter-like")&&Re._has("regl")&&Ze==="dragmode"&&(ht==="lasso"||ht==="select")&&Ge!=="lasso"&&Ge!=="select"||Re._has("gl2d")?dt.plot=!0:He?P.update(dt,He):dt.calc=!0,ut.set(ht))}}for(xe in qe)M.applyContainerArrayChanges(ue,$e(Ae,xe),qe[xe],dt,$e)||(dt.plot=!0);for(var mt in it){var xt=(tt=h.getFromId(ue,mt))&&tt._constraintGroup;if(xt)for(var Ut in dt.calc=!0,xt)it[Ut]||(h.getFromId(ue,Ut)._constraintShrinkable=!0)}(ie(ue)||pe.height||pe.width)&&(dt.plot=!0);var It=Re.shapes;for(ye=0;ye1;)if(ye.pop(),(xe=f(pe,ye.join(".")+".uirevision").get())!==void 0)return xe;return pe.uirevision}function ce(ue,pe){for(var xe=0;xe=Te.length?Te[0]:Te[Fe]:Te}function Le(Fe){return Array.isArray(Ae)?Fe>=Ae.length?Ae[0]:Ae[Fe]:Ae}function $e(Fe,Be){var Ue=0;return function(){if(Fe&&++Ue===Be)return Fe()}}return ye._frameWaitingCnt===void 0&&(ye._frameWaitingCnt=0),new Promise(function(Fe,Be){function Ue(){ue.emit("plotly_animating"),ye._lastFrameAt=-1/0,ye._timeToNext=0,ye._runningTransitions=0,ye._currentFrame=null;var Ze=function(){ye._animationRaf=window.requestAnimationFrame(Ze),Date.now()-ye._lastFrameAt>ye._timeToNext&&function(){ye._currentFrame&&ye._currentFrame.onComplete&&ye._currentFrame.onComplete();var ut=ye._currentFrame=ye._frameQueue.shift();if(ut){var ht=ut.name?ut.name.toString():null;ue._fullLayout._currentFrame=ht,ye._lastFrameAt=Date.now(),ye._timeToNext=ut.frameOpts.duration,v.transition(ue,ut.frame.data,ut.frame.layout,O.coerceTraceIndices(ue,ut.frame.traces),ut.frameOpts,ut.transitionOpts).then(function(){ut.onComplete&&ut.onComplete()}),ue.emit("plotly_animatingframe",{name:ht,frame:ut.frame,animation:{frame:ut.frameOpts,transition:ut.transitionOpts}})}else ue.emit("plotly_animated"),window.cancelAnimationFrame(ye._animationRaf),ye._animationRaf=null}()};Ze()}var qe,Xe,ot=0;function st(Ze){return Array.isArray(Te)?ot>=Te.length?Ze.transitionOpts=Te[ot]:Ze.transitionOpts=Te[0]:Ze.transitionOpts=Te,ot++,Ze}var dt=[],vt=pe==null,We=Array.isArray(pe);if(vt||We||!d.isPlainObject(pe)){if(vt||["string","number"].indexOf(typeof pe)!==-1)for(qe=0;qe0&&itit)&&St.push(Xe);dt=St}}dt.length>0?function(Ze){if(Ze.length!==0){for(var ut=0;ut=0;ye--)if(d.isPlainObject(pe[ye])){var qe=pe[ye].name,Xe=($e[qe]||Ue[qe]||{}).name,ot=pe[ye].name,st=$e[Xe]||Ue[Xe];Xe&&ot&&typeof ot=="number"&&st&&I<5&&(I++,d.warn('addFrames: overwriting frame "'+($e[Xe]||Ue[Xe]).name+'" with a frame whose name of type "number" also equates to "'+Xe+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),I===5&&d.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),Ue[qe]={name:qe},Be.push({frame:v.supplyFrameDefaults(pe[ye]),index:xe&&xe[ye]!==void 0&&xe[ye]!==null?xe[ye]:Fe+ye})}Be.sort(function(Ze,ut){return Ze.index>ut.index?-1:Ze.index=0;ye--){if(typeof(Te=Be[ye].frame).name=="number"&&d.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!Te.name)for(;$e[Te.name="frame "+ue._transitionData._counter++];);if($e[Te.name]){for(Ae=0;Ae=0;xe--)ye=pe[xe],Ae.push({type:"delete",index:ye}),Re.unshift({type:"insert",index:ye,value:Te[ye]});var Le=v.modifyFrames,$e=v.modifyFrames,Fe=[ue,Re],Be=[ue,Ae];return m&&m.add(ue,Le,Fe,$e,Be),v.modifyFrames(ue,Ae)},o.addTraces=function ue(pe,xe,ye){pe=d.getGraphDiv(pe);var Te,Ae,Re=[],Le=o.deleteTraces,$e=ue,Fe=[pe,Re],Be=[pe,xe];for(function(Ue,qe,Xe){var ot,st;if(!Array.isArray(Ue.data))throw new Error("gd.data must be an array.");if(qe===void 0)throw new Error("traces must be defined.");for(Array.isArray(qe)||(qe=[qe]),ot=0;ot=0&&Be=0&&Be=z.length)return!1;if(E.dimensions===2){if(A++,I.length===A)return E;var B=I[A];if(!C(B))return!1;E=z[j][B]}else E=z[j]}else E=z}}return E}function C(E){return E===Math.round(E)&&E>=0}function M(){var E,I,A={};for(E in b(A,d),s.subplotsRegistry)if((I=s.subplotsRegistry[E]).layoutAttributes)if(Array.isArray(I.attr))for(var F=0;F=B.length)return!1;F=(A=(s.transformsRegistry[B[N].type]||{}).attributes)&&A[I[2]],z=3}else{var R=E._module;if(R||(R=(s.modules[E.type||c.type.dflt]||{})._module),!R)return!1;if(!(F=(A=R.attributes)&&A[j])){var q=R.basePlotModule;q&&q.attributes&&(F=q.attributes[j])}F||(F=c[j])}return S(F,I,z)},o.getLayoutValObject=function(E,I){var A=function(F,j){var z,B,N,R,q=F._basePlotModules;if(q){var Y;for(z=0;z=v&&(b._input||{})._templateitemname;y&&(h=v);var w,_=g+"["+h+"]";function x(){w={},y&&(w[_]={},w[_][c]=y)}function T(S,C){y?s.nestedProperty(w[_],S).set(C):w[_+"."+S]=C}function k(){var S=w;return x(),S}return x(),{modifyBase:function(S,C){w[S]=C},modifyItem:T,getUpdateObj:k,applyUpdate:function(S,C){S&&T(S,C);var M=k();for(var O in M)s.nestedProperty(m,O).set(M[O])}}}},61549:function(i,o,a){var s=a(39898),u=a(73972),c=a(74875),d=a(71828),f=a(63893),p=a(33306),m=a(7901),g=a(91424),b=a(92998),v=a(64168),h=a(89298),y=a(18783),w=a(99082),_=w.enforce,x=w.clean,T=a(71739).doAutoRange,k="start";function S(P,E,I){for(var A=0;A=P[1]||F[1]<=P[0])&&j[0]E[0])return!0}return!1}function C(P){var E,I,A,F,j,z,B=P._fullLayout,N=B._size,R=N.p,q=h.list(P,"",!0);if(B._paperdiv.style({width:P._context.responsive&&B.autosize&&!P._context._hasZeroWidth&&!P.layout.width?"100%":B.width+"px",height:P._context.responsive&&B.autosize&&!P._context._hasZeroHeight&&!P.layout.height?"100%":B.height+"px"}).selectAll(".main-svg").call(g.setSize,B.width,B.height),P._context.setBackground(P,B.paper_bgcolor),o.drawMainTitle(P),v.manage(P),!B._has("cartesian"))return c.previousPromises(P);function Y(Fe,Be,Ue){var qe=Fe._lw/2;return Fe._id.charAt(0)==="x"?Be?Ue==="top"?Be._offset-R-qe:Be._offset+Be._length+R+qe:N.t+N.h*(1-(Fe.position||0))+qe%1:Be?Ue==="right"?Be._offset+Be._length+R+qe:Be._offset-R-qe:N.l+N.w*(Fe.position||0)+qe%1}for(E=0;E.5?"t":"b",ee=Y._fullLayout.margin[te],H=0;return L.yref==="paper"?H=W+L.pad.t+L.pad.b:L.yref==="container"&&(H=function(Z,G,X,Q,re){var ae=0;return X==="middle"&&(ae+=re/2),Z==="t"?(X==="top"&&(ae+=re),ae+=Q-G*Q):(X==="bottom"&&(ae+=re),ae+=G*Q),ae}(te,U,V,Y._fullLayout.height,W)+L.pad.t+L.pad.b),H>ee?H:0}(P,I,R);q>0&&(function(Y,L,W,U){var V="title.automargin",te=Y._fullLayout.title,ee=te.y>.5?"t":"b",H={x:te.x,y:te.y,t:0,b:0},Z={};te.yref==="paper"&&function(G,X,Q,re,ae){var ie=X.yref==="paper"?G._fullLayout._size.h:G._fullLayout.height,se=d.isTopAnchor(X)?re:re-ae,he=Q==="b"?ie-se:se;return!(d.isTopAnchor(X)&&Q==="t"||d.isBottomAnchor(X)&&Q==="b")&&heN?D.push({code:"unused",traceType:A,templateCount:B,dataCount:N}):N>B&&D.push({code:"reused",traceType:A,templateCount:B,dataCount:N})}}else D.push({code:"data"});if(function R(q,Y){for(var L in q)if(L.charAt(0)!=="_"){var W=q[L],U=w(q,L,Y);u(W)?(Array.isArray(q)&&W._template===!1&&W.templateitemname&&D.push({code:"missing",path:U,templateitemname:W.templateitemname}),R(W,U)):Array.isArray(W)&&_(W)&&R(W,U)}}({data:E,layout:P},""),D.length)return D.map(x)}},403:function(i,o,a){var s=a(92770),u=a(72391),c=a(74875),d=a(71828),f=a(25095),p=a(5900),m=a(70942),g=a(11506).version,b={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};i.exports=function(v,h){var y,w,_,x;function T(N){return!(N in h)||d.validate(h[N],b[N])}if(h=h||{},d.isPlainObject(v)?(y=v.data||[],w=v.layout||{},_=v.config||{},x={}):(v=d.getGraphDiv(v),y=d.extendDeep([],v.data),w=d.extendDeep({},v.layout),_=v._context,x=v._fullLayout||{}),!T("width")&&h.width!==null||!T("height")&&h.height!==null)throw new Error("Height and width should be pixel values.");if(!T("format"))throw new Error("Export format is not "+d.join2(b.format.values,", "," or ")+".");var k={};function S(N,R){return d.coerce(h,k,b,N,R)}var C=S("format"),M=S("width"),O=S("height"),D=S("scale"),P=S("setBackground"),E=S("imageDataOnly"),I=document.createElement("div");I.style.position="absolute",I.style.left="-5000px",document.body.appendChild(I);var A=d.extendFlat({},w);M?A.width=M:h.width===null&&s(x.width)&&(A.width=x.width),O?A.height=O:h.height===null&&s(x.height)&&(A.height=x.height);var F=d.extendFlat({},_,{_exportedPlot:!0,staticPlot:!0,setBackground:P}),j=f.getRedrawFunc(I);function z(){return new Promise(function(N){setTimeout(N,f.getDelay(I._fullLayout))})}function B(){return new Promise(function(N,R){var q=p(I,C,D),Y=I._fullLayout.width,L=I._fullLayout.height;function W(){u.purge(I),document.body.removeChild(I)}if(C==="full-json"){var U=c.graphJson(I,!1,"keepdata","object",!0,!0);return U.version=g,U=JSON.stringify(U),W(),N(E?U:f.encodeJSON(U))}if(W(),C==="svg")return N(E?q:f.encodeSVG(q));var V=document.createElement("canvas");V.id=d.randstr(),m({format:C,width:Y,height:L,scale:D,canvas:V,svg:q,promise:!0}).then(N).catch(R)})}return new Promise(function(N,R){u.newPlot(I,y,A,F).then(j).then(z).then(B).then(function(q){N(function(Y){return E?Y.replace(f.IMAGE_URL_PREFIX,""):Y}(q))}).catch(function(q){R(q)})})}},84936:function(i,o,a){var s=a(71828),u=a(74875),c=a(86281),d=a(72075).dfltConfig,f=s.isPlainObject,p=Array.isArray,m=s.isArrayOrTypedArray;function g(T,k,S,C,M,O){O=O||[];for(var D=Object.keys(T),P=0;PF.length&&C.push(h("unused",M,I.concat(F.length)));var q,Y,L,W,U,V=F.length,te=Array.isArray(R);if(te&&(V=Math.min(V,R.length)),j.dimensions===2)for(Y=0;YF[Y].length&&C.push(h("unused",M,I.concat(Y,F[Y].length)));var ee=F[Y].length;for(q=0;q<(te?Math.min(ee,R[Y].length):ee);q++)L=te?R[Y][q]:R,W=A[Y][q],U=F[Y][q],s.validate(W,L)?U!==W&&U!==+W&&C.push(h("dynamic",M,I.concat(Y,q),W,U)):C.push(h("value",M,I.concat(Y,q),W))}else C.push(h("array",M,I.concat(Y),A[Y]));else for(Y=0;Y1&&O.push(h("object","layout"))),u.supplyDefaults(D);for(var P=D._fullData,E=S.length,I=0;I0&&Math.round(w)===w))return{vals:b};h=w}for(var _=m.calendar,x=v==="start",T=v==="end",k=p[g+"period0"],S=c(k,_)||0,C=[],M=[],O=[],D=b.length,P=0;PF;)A=d(A,-h,_);for(;A<=F;)A=d(A,h,_);I=d(A,-h,_)}else{for(A=S+(E=Math.round((F-S)/y))*y;A>F;)A-=y;for(;A<=F;)A+=y;I=A-y}C[P]=x?I:T?A:(I+A)/2,M[P]=I,O[P]=A}return{vals:C,starts:M,ends:O}}},89502:function(i){i.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},71739:function(i,o,a){var s=a(39898),u=a(92770),c=a(71828),d=a(50606).FP_SAFE,f=a(73972),p=a(91424),m=a(41675),g=m.getFromId,b=m.isLinked;function v(P,E){var I,A,F=[],j=P._fullLayout,z=y(j,E,0),B=y(j,E,1),N=_(P,E),R=N.min,q=N.max;if(R.length===0||q.length===0)return c.simpleMap(E.range,E.r2l);var Y=R[0].val,L=q[0].val;for(I=1;I0&&((G=ie-z(te)-B(ee))>se?X/G>he&&(H=te,Z=ee,he=X/G):X/ie>he&&(H={val:te.val,nopad:1},Z={val:ee.val,nopad:1},he=X/ie));if(Y===L){var Se=Y-1,Oe=Y+1;if(re)if(Y===0)F=[0,1];else{var Pe=(Y>0?q:R).reduce(function(ce,we){return Math.max(ce,B(we))},0),Me=Y/(1-Math.min(.5,Pe/ie));F=Y>0?[0,Me]:[Me,0]}else F=ae?[Math.max(0,Se),Math.max(1,Oe)]:[Se,Oe]}else re?(H.val>=0&&(H={val:0,nopad:1}),Z.val<=0&&(Z={val:0,nopad:1})):ae&&(H.val-he*z(H)<0&&(H={val:0,nopad:1}),Z.val<=0&&(Z={val:1,nopad:1})),he=(Z.val-H.val-h(E,te.val,ee.val))/(ie-z(H)-B(Z)),F=[H.val-he*z(H),Z.val+he*B(Z)];return F=D(F,E),E.limitRange&&E.limitRange(),U&&F.reverse(),c.simpleMap(F,E.l2r||Number)}function h(P,E,I){var A=0;if(P.rangebreaks)for(var F=P.locateBreaks(E,I),j=0;j0?I.ppadplus:I.ppadminus)||I.ppad||0),Q=G((P._m>0?I.ppadminus:I.ppadplus)||I.ppad||0),re=G(I.vpadplus||I.vpad),ae=G(I.vpadminus||I.vpad);if(!H){if(q=1/0,Y=-1/0,ee)for(A=0;A0&&(q=F),F>Y&&F-d&&(q=F),F>Y&&F=he;A--)se(A);return{min:L,max:W,opts:I}},concatExtremes:_};var w=3;function _(P,E,I){var A,F,j,z=E._id,B=P._fullData,N=P._fullLayout,R=[],q=[];function Y(te,ee){for(A=0;A=I&&(R.extrapad||!z)){B=!1;break}F(E,R.val)&&R.pad<=I&&(z||!R.extrapad)&&(P.splice(N,1),N--)}if(B){var q=j&&E===0;P.push({val:E,pad:q?0:I,extrapad:!q&&z})}}function S(P){return u(P)&&Math.abs(P)=E}function O(P,E,I){return E===void 0||I===void 0||(E=P.d2l(E))=N&&(j=N,I=N),z<=N&&(z=N,A=N)}}return I=function(R,q){var Y=q.autorangeoptions;return Y&&Y.minallowed!==void 0&&O(q,Y.minallowed,Y.maxallowed)?Y.minallowed:Y&&Y.clipmin!==void 0&&O(q,Y.clipmin,Y.clipmax)?Math.max(R,q.d2l(Y.clipmin)):R}(I,E),A=function(R,q){var Y=q.autorangeoptions;return Y&&Y.maxallowed!==void 0&&O(q,Y.minallowed,Y.maxallowed)?Y.maxallowed:Y&&Y.clipmax!==void 0&&O(q,Y.clipmin,Y.clipmax)?Math.min(R,q.d2l(Y.clipmax)):R}(A,E),[I,A]}},23074:function(i){i.exports=function(o,a,s){var u,c;if(s){var d=a==="reversed"||a==="min reversed"||a==="max reversed";u=s[d?1:0],c=s[d?0:1]}var f=o("autorangeoptions.minallowed",c===null?u:void 0),p=o("autorangeoptions.maxallowed",u===null?c:void 0);f===void 0&&o("autorangeoptions.clipmin"),p===void 0&&o("autorangeoptions.clipmax"),o("autorangeoptions.include")}},89298:function(i,o,a){var s=a(39898),u=a(92770),c=a(74875),d=a(73972),f=a(71828),p=f.strTranslate,m=a(63893),g=a(92998),b=a(7901),v=a(91424),h=a(13838),y=a(66287),w=a(50606),_=w.ONEMAXYEAR,x=w.ONEAVGYEAR,T=w.ONEMINYEAR,k=w.ONEMAXQUARTER,S=w.ONEAVGQUARTER,C=w.ONEMINQUARTER,M=w.ONEMAXMONTH,O=w.ONEAVGMONTH,D=w.ONEMINMONTH,P=w.ONEWEEK,E=w.ONEDAY,I=E/2,A=w.ONEHOUR,F=w.ONEMIN,j=w.ONESEC,z=w.MINUS_SIGN,B=w.BADNUM,N={K:"zeroline"},R={K:"gridline",L:"path"},q={K:"minor-gridline",L:"path"},Y={K:"tick",L:"path"},L={K:"tick",L:"text"},W={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},U=a(18783),V=U.MID_SHIFT,te=U.CAP_SHIFT,ee=U.LINE_SPACING,H=U.OPPOSITE_SIDE,Z=i.exports={};Z.setConvert=a(21994);var G=a(4322),X=a(41675),Q=X.idSort,re=X.isLinked;Z.id2name=X.id2name,Z.name2id=X.name2id,Z.cleanId=X.cleanId,Z.list=X.list,Z.listIds=X.listIds,Z.getFromId=X.getFromId,Z.getFromTrace=X.getFromTrace;var ae=a(71739);Z.getAutoRange=ae.getAutoRange,Z.findExtremes=ae.findExtremes;var ie=1e-4;function se(be){var Ce=(be[1]-be[0])*ie;return[be[0]-Ce,be[1]+Ce]}Z.coerceRef=function(be,Ce,Ge,He,et,Ke){var Ye=He.charAt(He.length-1),nt=Ge._fullLayout._subplots[Ye+"axis"],ct=He+"ref",yt={};return et||(et=nt[0]||(typeof Ke=="string"?Ke:Ke[0])),Ke||(Ke=et),nt=nt.concat(nt.map(function(rt){return rt+" domain"})),yt[ct]={valType:"enumerated",values:nt.concat(Ke?typeof Ke=="string"?[Ke]:Ke:[]),dflt:et},f.coerce(be,Ce,yt,ct)},Z.getRefType=function(be){return be===void 0?be:be==="paper"?"paper":be==="pixel"?"pixel":/( domain)$/.test(be)?"domain":"range"},Z.coercePosition=function(be,Ce,Ge,He,et,Ke){var Ye,nt;if(Z.getRefType(He)!=="range")Ye=f.ensureNumber,nt=Ge(et,Ke);else{var ct=Z.getFromId(Ce,He);nt=Ge(et,Ke=ct.fraction2r(Ke)),Ye=ct.cleanPos}be[et]=Ye(nt)},Z.cleanPosition=function(be,Ce,Ge){return(Ge==="paper"||Ge==="pixel"?f.ensureNumber:Z.getFromId(Ce,Ge).cleanPos)(be)},Z.redrawComponents=function(be,Ce){Ce=Ce||Z.listIds(be);var Ge=be._fullLayout;function He(et,Ke,Ye,nt){for(var ct=d.getComponentMethod(et,Ke),yt={},rt=0;rtGe&&rt2e-6||((Ge-be._forceTick0)/be._minDtick%1+1.000001)%1>2e-6)&&(be._minDtick=0)):be._minDtick=0},Z.saveRangeInitial=function(be,Ce){for(var Ge=Z.list(be,"",!0),He=!1,et=0;et.3*Bt||Nt(Ut)||Nt(It))){var Xt=xt.dtick/2;gt+=gt+Xt.8){var kt=Number(xt.substr(1));zt.exactYears>.8&&kt%12==0?gt=Z.tickIncrement(gt,"M6","reverse")+1.5*E:zt.exactMonths>.8?gt=Z.tickIncrement(gt,"M1","reverse")+15.5*E:gt-=I;var Ot=Z.tickIncrement(gt,xt);if(Ot<=Ut)return Ot}return gt}(Lt,be,jt,nt,et)),Mt=Lt;Mt<=ct;)Mt=Z.tickIncrement(Mt,jt,!1,et);return{start:Ce.c2r(Lt,0,et),end:Ce.c2r(Mt,0,et),size:jt,_dataSpan:ct-nt}},Z.prepMinorTicks=function(be,Ce,Ge){if(!Ce.minor.dtick){delete be.dtick;var He,et=Ce.dtick&&u(Ce._tmin);if(et){var Ke=Z.tickIncrement(Ce._tmin,Ce.dtick,!0);He=[Ce._tmin,.99*Ke+.01*Ce._tmin]}else{var Ye=f.simpleMap(Ce.range,Ce.r2l);He=[Ye[0],.8*Ye[0]+.2*Ye[1]]}if(be.range=f.simpleMap(He,Ce.l2r),be._isMinor=!0,Z.prepTicks(be,Ge),et){var nt=u(Ce.dtick),ct=u(be.dtick),yt=nt?Ce.dtick:+Ce.dtick.substring(1),rt=ct?be.dtick:+be.dtick.substring(1);nt&&ct?Pe(yt,rt)?yt===2*P&&rt===2*E&&(be.dtick=P):yt===2*P&&rt===3*E?be.dtick=P:yt!==P||(Ce._input.minor||{}).nticks?Me(yt/rt,2.5)?be.dtick=yt/2:be.dtick=yt:be.dtick=E:String(Ce.dtick).charAt(0)==="M"?ct?be.dtick="M1":Pe(yt,rt)?yt>=12&&rt===2&&(be.dtick="M3"):be.dtick=Ce.dtick:String(be.dtick).charAt(0)==="L"?String(Ce.dtick).charAt(0)==="L"?Pe(yt,rt)||(be.dtick=Me(yt/rt,2.5)?Ce.dtick/2:Ce.dtick):be.dtick="D1":be.dtick==="D2"&&+Ce.dtick>1&&(be.dtick=1)}be.range=Ce.range}Ce.minor._tick0Init===void 0&&(be.tick0=Ce.tick0)},Z.prepTicks=function(be,Ce){var Ge=f.simpleMap(be.range,be.r2l,void 0,void 0,Ce);if(be.tickmode==="auto"||!be.dtick){var He,et=be.nticks;et||(be.type==="category"||be.type==="multicategory"?(He=be.tickfont?f.bigFont(be.tickfont.size||12):15,et=be._length/He):(He=be._id.charAt(0)==="y"?40:80,et=f.constrain(be._length/He,4,9)+1),be._name==="radialaxis"&&(et*=2)),be.minor&&be.minor.tickmode!=="array"||be.tickmode==="array"&&(et*=100),be._roughDTick=Math.abs(Ge[1]-Ge[0])/et,Z.autoTicks(be,be._roughDTick),be._minDtick>0&&be.dtick<2*be._minDtick&&(be.dtick=be._minDtick,be.tick0=be.l2r(be._forceTick0))}be.ticklabelmode==="period"&&function(Ke){var Ye;function nt(){return!(u(Ke.dtick)||Ke.dtick.charAt(0)!=="M")}var ct=nt(),yt=Z.getTickFormat(Ke);if(yt){var rt=Ke._dtickInit!==Ke.dtick;/%[fLQsSMX]/.test(yt)||(/%[HI]/.test(yt)?(Ye=A,rt&&!ct&&Ke.dtick=(mt?0:1);xt--){var Ut=!xt;xt?(be._dtickInit=be.dtick,be._tick0Init=be.tick0):(be.minor._dtickInit=be.minor.dtick,be.minor._tick0Init=be.minor.tick0);var It=xt?be:f.extendFlat({},be,be.minor);if(Ut?Z.prepMinorTicks(It,be,Ce):Z.prepTicks(It,Ce),It.tickmode!=="array")if(It.tickmode!=="sync"){var zt=se(ct),kt=zt[0],Ot=zt[1],At=u(It.dtick),Nt=et==="log"&&!(At||It.dtick.charAt(0)==="L"),$t=Z.tickFirst(It,Ce);if(xt){if(be._tmin=$t,$t=Ot:qt<=Ot;qt=Z.tickIncrement(qt,Ht,yt,Ke)){if(xt&&Bt++,It.rangebreaks&&!yt){if(qt=Ft)break}if(Lt.length>Yt||qt===Zt)break;Zt=qt;var sn={value:qt};xt?(Nt&&qt!==(0|qt)&&(sn.simpleLabel=!0),Ye>1&&Bt%Ye&&(sn.skipLabel=!0),Lt.push(sn)):(sn.minor=!0,gt.push(sn))}}else Lt=[],Mt=K(be);else xt?(Lt=[],Mt=ne(be)):(gt=[],jt=ne(be))}if(mt&&!(be.minor.ticks==="inside"&&be.ticks==="outside"||be.minor.ticks==="outside"&&be.ticks==="inside")){for(var xn=Lt.map(function(Tr){return Tr.value}),mn=[],dn=0;dn0?(Ga=Cr-1,jn=Cr):(Ga=Cr,jn=Cr);var fn,Xn=Tr[Ga].value,ea=Tr[jn].value,Un=Math.abs(ea-Xn),Kn=Jr||Un,Yn=0;Kn>=T?Yn=Un>=T&&Un<=_?Un:x:Jr===S&&Kn>=C?Yn=Un>=C&&Un<=k?Un:S:Kn>=D?Yn=Un>=D&&Un<=M?Un:O:Jr===P&&Kn>=P?Yn=P:Kn>=E?Yn=E:Jr===I&&Kn>=I?Yn=I:Jr===A&&Kn>=A&&(Yn=A),Yn>=Un&&(Yn=Un,fn=!0);var er=Gr+Yn;if(Ki.rangebreaks&&Yn>0){for(var la=0,Wr=0;Wr<84;Wr++){var Yr=(Wr+.5)/84;Ki.maskBreaks(Gr*(1-Yr)+Yr*er)!==B&&la++}(Yn*=la/84)||(Tr[Cr].drop=!0),fn&&Un>P&&(Yn=Un)}(Yn>0||Cr===0)&&(Tr[Cr].periodX=Gr+Yn/2)}}(Lt,be,be._definedDelta),be.rangebreaks){var tn=be._id.charAt(0)==="y",Fn=1;be.tickmode==="auto"&&(Fn=be.tickfont?be.tickfont.size:12);var Rn=NaN;for(Ge=Lt.length-1;Ge>-1;Ge--)if(Lt[Ge].drop)Lt.splice(Ge,1);else{Lt[Ge].value=Rt(Lt[Ge].value,be);var Bn=be.c2p(Lt[Ge].value);(tn?Rn>Bn-Fn:RnFt||WnFt&&(En.periodX=Ft),Wn10||He.substr(5)!=="01-01"?be._tickround="d":be._tickround=+Ce.substr(1)%12==0?"y":"m";else if(Ce>=E&&et<=10||Ce>=15*E)be._tickround="d";else if(Ce>=F&&et<=16||Ce>=A)be._tickround="M";else if(Ce>=j&&et<=19||Ce>=F)be._tickround="S";else{var Ke=be.l2r(Ge+Ce).replace(/^-/,"").length;be._tickround=Math.max(et,Ke)-20,be._tickround<0&&(be._tickround=4)}}else if(u(Ce)||Ce.charAt(0)==="L"){var Ye=be.range.map(be.r2d||Number);u(Ce)||(Ce=Number(Ce.substr(1))),be._tickround=2-Math.floor(Math.log(Ce)/Math.LN10+.01);var nt=Math.max(Math.abs(Ye[0]),Math.abs(Ye[1])),ct=Math.floor(Math.log(nt)/Math.LN10+.01),yt=be.minexponent===void 0?3:be.minexponent;Math.abs(ct)>yt&&(Fe(be.exponentformat)&&!Be(ct)?be._tickexponent=3*Math.round((ct-1)/3):be._tickexponent=ct)}else be._tickround=null}function Le(be,Ce,Ge){var He=be.tickfont||{};return{x:Ce,dx:0,dy:0,text:Ge||"",fontSize:He.size,font:He.family,fontColor:He.color}}Z.autoTicks=function(be,Ce,Ge){var He;function et(Ft){return Math.pow(Ft,Math.floor(Math.log(Ce)/Math.LN10))}if(be.type==="date"){be.tick0=f.dateTick0(be.calendar,0);var Ke=2*Ce;if(Ke>x)Ce/=x,He=et(10),be.dtick="M"+12*Ae(Ce,He,de);else if(Ke>O)Ce/=O,be.dtick="M"+Ae(Ce,1,_e);else if(Ke>E){if(be.dtick=Ae(Ce,E,be._hasDayOfWeekBreaks?[1,2,7,14]:pe),!Ge){var Ye=Z.getTickFormat(be),nt=be.ticklabelmode==="period";nt&&(be._rawTick0=be.tick0),/%[uVW]/.test(Ye)?be.tick0=f.dateTick0(be.calendar,2):be.tick0=f.dateTick0(be.calendar,1),nt&&(be._dowTick0=be.tick0)}}else Ke>A?be.dtick=Ae(Ce,A,_e):Ke>F?be.dtick=Ae(Ce,F,ue):Ke>j?be.dtick=Ae(Ce,j,ue):(He=et(10),be.dtick=Ae(Ce,He,de))}else if(be.type==="log"){be.tick0=0;var ct=f.simpleMap(be.range,be.r2l);if(be._isMinor&&(Ce*=1.5),Ce>.7)be.dtick=Math.ceil(Ce);else if(Math.abs(ct[1]-ct[0])<1){var yt=1.5*Math.abs((ct[1]-ct[0])/Ce);Ce=Math.abs(Math.pow(10,ct[1])-Math.pow(10,ct[0]))/yt,He=et(10),be.dtick="L"+Ae(Ce,He,de)}else be.dtick=Ce>.3?"D2":"D1"}else be.type==="category"||be.type==="multicategory"?(be.tick0=0,be.dtick=Math.ceil(Math.max(Ce,1))):ht(be)?(be.tick0=0,He=1,be.dtick=Ae(Ce,He,Te)):(be.tick0=0,He=et(10),be.dtick=Ae(Ce,He,de));if(be.dtick===0&&(be.dtick=1),!u(be.dtick)&&typeof be.dtick!="string"){var rt=be.dtick;throw be.dtick=1,"ax.dtick error: "+String(rt)}},Z.tickIncrement=function(be,Ce,Ge,He){var et=Ge?-1:1;if(u(Ce))return f.increment(be,et*Ce);var Ke=Ce.charAt(0),Ye=et*Number(Ce.substr(1));if(Ke==="M")return f.incrementMonth(be,Ye,He);if(Ke==="L")return Math.log(Math.pow(10,be)+Ye)/Math.LN10;if(Ke==="D"){var nt=Ce==="D2"?ye:xe,ct=be+.01*et,yt=f.roundUp(f.mod(ct,1),nt,Ge);return Math.floor(ct)+Math.log(s.round(Math.pow(10,yt),1))/Math.LN10}throw"unrecognized dtick "+String(Ce)},Z.tickFirst=function(be,Ce){var Ge=be.r2l||Number,He=f.simpleMap(be.range,Ge,void 0,void 0,Ce),et=He[1] ")}else gt._prevDateHead=kt,Ot+="
"+kt;mt.text=Ot}(be,Ke,Ge,nt):ct==="log"?function(gt,mt,xt,Ut,It){var zt=gt.dtick,kt=mt.x,Ot=gt.tickformat,At=typeof zt=="string"&&zt.charAt(0);if(It==="never"&&(It=""),Ut&&At!=="L"&&(zt="L3",At="L"),Ot||At==="L")mt.text=Ue(Math.pow(10,kt),gt,It,Ut);else if(u(zt)||At==="D"&&f.mod(kt+.01,1)<.1){var Nt=Math.round(kt),$t=Math.abs(Nt),Bt=gt.exponentformat;Bt==="power"||Fe(Bt)&&Be(Nt)?(mt.text=Nt===0?1:Nt===1?"10":"10"+(Nt>1?"":z)+$t+"",mt.fontSize*=1.25):(Bt==="e"||Bt==="E")&&$t>2?mt.text="1"+Bt+(Nt>0?"+":z)+$t:(mt.text=Ue(Math.pow(10,kt),gt,"","fakehover"),zt==="D1"&>._id.charAt(0)==="y"&&(mt.dy-=mt.fontSize/6))}else{if(At!=="D")throw"unrecognized dtick "+String(zt);mt.text=String(Math.round(Math.pow(10,f.mod(kt,1)))),mt.fontSize*=.75}if(gt.dtick==="D1"){var Xt=String(mt.text).charAt(0);Xt!=="0"&&Xt!=="1"||(gt._id.charAt(0)==="y"?mt.dx-=mt.fontSize/4:(mt.dy+=mt.fontSize/2,mt.dx+=(gt.range[1]>gt.range[0]?1:-1)*mt.fontSize*(kt<0?.5:.25)))}}(be,Ke,0,nt,Mt):ct==="category"?function(gt,mt){var xt=gt._categories[Math.round(mt.x)];xt===void 0&&(xt=""),mt.text=String(xt)}(be,Ke):ct==="multicategory"?function(gt,mt,xt){var Ut=Math.round(mt.x),It=gt._categories[Ut]||[],zt=It[1]===void 0?"":String(It[1]),kt=It[0]===void 0?"":String(It[0]);xt?mt.text=kt+" - "+zt:(mt.text=zt,mt.text2=kt)}(be,Ke,Ge):ht(be)?function(gt,mt,xt,Ut,It){if(gt.thetaunit!=="radians"||xt)mt.text=Ue(mt.x,gt,It,Ut);else{var zt=mt.x/180;if(zt===0)mt.text="0";else{var kt=function(At){function Nt(Zt,qt){return Math.abs(Zt-qt)<=1e-6}var $t=function(Zt){for(var qt=1;!Nt(Math.round(Zt*qt)/qt,Zt);)qt*=10;return qt}(At),Bt=At*$t,Xt=Math.abs(function Zt(qt,Ht){return Nt(Ht,0)?qt:Zt(Ht,qt%Ht)}(Bt,$t));return[Math.round(Bt/Xt),Math.round($t/Xt)]}(zt);if(kt[1]>=100)mt.text=Ue(f.deg2rad(mt.x),gt,It,Ut);else{var Ot=mt.x<0;kt[1]===1?kt[0]===1?mt.text="π":mt.text=kt[0]+"π":mt.text=["",kt[0],"","⁄","",kt[1],"","π"].join(""),Ot&&(mt.text=z+mt.text)}}}}(be,Ke,Ge,nt,Mt):function(gt,mt,xt,Ut,It){It==="never"?It="":gt.showexponent==="all"&&Math.abs(mt.x/gt.dtick)<1e-6&&(It="hide"),mt.text=Ue(mt.x,gt,It,Ut)}(be,Ke,0,nt,Mt),He||(be.tickprefix&&!Yt(be.showtickprefix)&&(Ke.text=be.tickprefix+Ke.text),be.ticksuffix&&!Yt(be.showticksuffix)&&(Ke.text+=be.ticksuffix)),be.labelalias&&be.labelalias.hasOwnProperty(Ke.text)){var jt=be.labelalias[Ke.text];typeof jt=="string"&&(Ke.text=jt)}if(be.tickson==="boundaries"||be.showdividers){var Lt=function(gt){var mt=be.l2p(gt);return mt>=0&&mt<=be._length?gt:null};Ke.xbnd=[Lt(Ke.x-.5),Lt(Ke.x+be.dtick-.5)]}return Ke},Z.hoverLabelText=function(be,Ce,Ge){Ge&&(be=f.extendFlat({},be,{hoverformat:Ge}));var He=Array.isArray(Ce)?Ce[0]:Ce,et=Array.isArray(Ce)?Ce[1]:void 0;if(et!==void 0&&et!==He)return Z.hoverLabelText(be,He,Ge)+" - "+Z.hoverLabelText(be,et,Ge);var Ke=be.type==="log"&&He<=0,Ye=Z.tickText(be,be.c2l(Ke?-He:He),"hover").text;return Ke?He===0?"0":z+Ye:Ye};var $e=["f","p","n","μ","m","","k","M","G","T"];function Fe(be){return be==="SI"||be==="B"}function Be(be){return be>14||be<-15}function Ue(be,Ce,Ge,He){var et=be<0,Ke=Ce._tickround,Ye=Ge||Ce.exponentformat||"B",nt=Ce._tickexponent,ct=Z.getTickFormat(Ce),yt=Ce.separatethousands;if(He){var rt={exponentformat:Ye,minexponent:Ce.minexponent,dtick:Ce.showexponent==="none"?Ce.dtick:u(be)&&Math.abs(be)||1,range:Ce.showexponent==="none"?Ce.range.map(Ce.r2d):[0,be||1]};Re(rt),Ke=(Number(rt._tickround)||0)+4,nt=rt._tickexponent,Ce.hoverformat&&(ct=Ce.hoverformat)}if(ct)return Ce._numFormat(ct)(be).replace(/-/g,z);var Ft,Yt=Math.pow(10,-Ke)/2;if(Ye==="none"&&(nt=0),(be=Math.abs(be))"+Ft+"":Ye==="B"&&nt===9?be+="B":Fe(Ye)&&(be+=$e[nt/3+5])),et?z+be:be}function qe(be,Ce){if(be){var Ge=Object.keys(W).reduce(function(He,et){return Ce.indexOf(et)!==-1&&W[et].forEach(function(Ke){He[Ke]=1}),He},{});Object.keys(be).forEach(function(He){Ge[He]||(He.length===1?be[He]=0:delete be[He])})}}function Xe(be,Ce){for(var Ge=[],He={},et=0;et1&&Ge=et.min&&be=0,mt=rt(Yt,Mt[1])<=0;return(jt||gt)&&(Lt||mt)}if(be.tickformatstops&&be.tickformatstops.length>0)switch(be.type){case"date":case"linear":for(Ce=0;Ce=Ye(et)))){Ge=He;break}break;case"log":for(Ce=0;Ce=0&&et.unshift(et.splice(yt,1).shift())}});var Ye={false:{left:0,right:0}};return f.syncOrAsync(et.map(function(nt){return function(){if(nt){var ct=Z.getFromId(be,nt);Ge||(Ge={}),Ge.axShifts=Ye,Ge.overlayingShiftedAx=Ke;var yt=Z.drawOne(be,ct,Ge);return ct._shiftPusher&&_t(ct,ct._fullDepth||0,Ye,!0),ct._r=ct.range.slice(),ct._rl=f.simpleMap(ct._r,ct.r2l),yt}}}))},Z.drawOne=function(be,Ce,Ge){var He,et,Ke,Ye=(Ge=Ge||{}).axShifts||{},nt=Ge.overlayingShiftedAx||[];Ce.setScale();var ct=be._fullLayout,yt=Ce._id,rt=yt.charAt(0),Ft=Z.counterLetter(yt),Yt=ct._plots[Ce._mainSubplot];if(Yt){if(Ce._shiftPusher=Ce.autoshift||nt.indexOf(Ce._id)!==-1||nt.indexOf(Ce.overlaying)!==-1,Ce._shiftPusher&Ce.anchor==="free"){var Mt=Ce.linewidth/2||0;Ce.ticks==="inside"&&(Mt+=Ce.ticklen),_t(Ce,Mt,Ye,!0),_t(Ce,Ce.shift||0,Ye,!1)}Ge.skipTitle===!0&&Ce._shift!==void 0||(Ce._shift=function(jn,fn){return jn.autoshift?fn[jn.overlaying][jn.side]:jn.shift||0}(Ce,Ye));var jt=Yt[rt+"axislayer"],Lt=Ce._mainLinePosition,gt=Lt+=Ce._shift,mt=Ce._mainMirrorPosition,xt=Ce._vals=Z.calcTicks(Ce),Ut=[Ce.mirror,gt,mt].join("_");for(He=0;He0?jn.bottom-Yn:0,er))));var la=0,Wr=0;if(Ce._shiftPusher&&(la=Math.max(er,jn.height>0?Un==="l"?Yn-jn.left:jn.right-Yn:0),Ce.title.text!==ct._dfltTitle[rt]&&(Wr=(Ce._titleStandoff||0)+(Ce._titleScoot||0),Un==="l"&&(Wr+=dt(Ce))),Ce._fullDepth=Math.max(la,Wr)),Ce.automargin){fn={x:0,y:0,r:0,l:0,t:0,b:0};var Yr=[0,1],ii=typeof Ce._shift=="number"?Ce._shift:0;if(rt==="x"){if(Un==="b"?fn[Un]=Ce._depth:(fn[Un]=Ce._depth=Math.max(jn.width>0?Yn-jn.top:0,er),Yr.reverse()),jn.width>0){var ko=jn.right-(Ce._offset+Ce._length);ko>0&&(fn.xr=1,fn.r=ko);var Ya=Ce._offset-jn.left;Ya>0&&(fn.xl=0,fn.l=Ya)}}else if(Un==="l"?(Ce._depth=Math.max(jn.height>0?Yn-jn.left:0,er),fn[Un]=Ce._depth-ii):(Ce._depth=Math.max(jn.height>0?jn.right-Yn:0,er),fn[Un]=Ce._depth+ii,Yr.reverse()),jn.height>0){var Ln=jn.bottom-(Ce._offset+Ce._length);Ln>0&&(fn.yb=0,fn.b=Ln);var ta=Ce._offset-jn.top;ta>0&&(fn.yt=1,fn.t=ta)}fn[Ft]=Ce.anchor==="free"?Ce.position:Ce._anchorAxis.domain[Yr[0]],Ce.title.text!==ct._dfltTitle[rt]&&(fn[Un]+=dt(Ce)+(Ce.title.standoff||0)),Ce.mirror&&Ce.anchor!=="free"&&((Xn={x:0,y:0,r:0,l:0,t:0,b:0})[Kn]=Ce.linewidth,Ce.mirror&&Ce.mirror!==!0&&(Xn[Kn]+=er),Ce.mirror===!0||Ce.mirror==="ticks"?Xn[Ft]=Ce._anchorAxis.domain[Yr[1]]:Ce.mirror!=="all"&&Ce.mirror!=="allticks"||(Xn[Ft]=[Ce._counterDomainMin,Ce._counterDomainMax][Yr[1]]))}Gr&&(ea=d.getComponentMethod("rangeslider","autoMarginOpts")(be,Ce)),typeof Ce.automargin=="string"&&(qe(fn,Ce.automargin),qe(Xn,Ce.automargin)),c.autoMargin(be,ze(Ce),fn),c.autoMargin(be,tt(Ce),Xn),c.autoMargin(be,it(Ce),ea)}),f.syncOrAsync(Jr)}}function Ga(jn){var fn=yt+(jn||"tick");return It[fn]||(It[fn]=function(Xn,ea){var Un,Kn,Yn,er;return Xn._selections[ea].size()?(Un=1/0,Kn=-1/0,Yn=1/0,er=-1/0,Xn._selections[ea].each(function(){var la=We(this),Wr=v.bBox(la.node().parentNode);Un=Math.min(Un,Wr.top),Kn=Math.max(Kn,Wr.bottom),Yn=Math.min(Yn,Wr.left),er=Math.max(er,Wr.right)})):(Un=0,Kn=0,Yn=0,er=0),{top:Un,bottom:Kn,left:Yn,right:er,height:Kn-Un,width:er-Yn}}(Ce,fn)),It[fn]}},Z.getTickSigns=function(be,Ce){var Ge=be._id.charAt(0),He={x:"top",y:"right"}[Ge],et=be.side===He?1:-1,Ke=[-1,1,et,-et];return(Ce?(be.minor||{}).ticks:be.ticks)!=="inside"==(Ge==="x")&&(Ke=Ke.map(function(Ye){return-Ye})),be.side&&Ke.push({l:-1,t:-1,r:1,b:1}[be.side.charAt(0)]),Ke},Z.makeTransTickFn=function(be){return be._id.charAt(0)==="x"?function(Ce){return p(be._offset+be.l2p(Ce.x),0)}:function(Ce){return p(0,be._offset+be.l2p(Ce.x))}},Z.makeTransTickLabelFn=function(be){var Ce=function(et){var Ke=et.ticklabelposition||"",Ye=function(mt){return Ke.indexOf(mt)!==-1},nt=Ye("top"),ct=Ye("left"),yt=Ye("right"),rt=Ye("bottom"),Ft=Ye("inside"),Yt=rt||ct||nt||yt;if(!Yt&&!Ft)return[0,0];var Mt=et.side,jt=Yt?(et.tickwidth||0)/2:0,Lt=3,gt=et.tickfont?et.tickfont.size:12;return(rt||nt)&&(jt+=gt*te,Lt+=(et.linewidth||0)/2),(ct||yt)&&(jt+=(et.linewidth||0)/2,Lt+=3),Ft&&Mt==="top"&&(Lt-=gt*(1-te)),(ct||nt)&&(jt=-jt),Mt!=="bottom"&&Mt!=="right"||(Lt=-Lt),[Yt?jt:0,Ft?Lt:0]}(be),Ge=Ce[0],He=Ce[1];return be._id.charAt(0)==="x"?function(et){return p(Ge+be._offset+be.l2p(ot(et)),He)}:function(et){return p(He,Ge+be._offset+be.l2p(ot(et)))}},Z.makeTickPath=function(be,Ce,Ge,He){He||(He={});var et=He.minor;if(et&&!be.minor)return"";var Ke=He.len!==void 0?He.len:et?be.minor.ticklen:be.ticklen,Ye=be._id.charAt(0),nt=(be.linewidth||1)/2;return Ye==="x"?"M0,"+(Ce+nt*Ge)+"v"+Ke*Ge:"M"+(Ce+nt*Ge)+",0h"+Ke*Ge},Z.makeLabelFns=function(be,Ce,Ge){var He=be.ticklabelposition||"",et=function(Bt){return He.indexOf(Bt)!==-1},Ke=et("top"),Ye=et("left"),nt=et("right"),ct=et("bottom")||Ye||Ke||nt,yt=et("inside"),rt=He==="inside"&&be.ticks==="inside"||!yt&&be.ticks==="outside"&&be.tickson!=="boundaries",Ft=0,Yt=0,Mt=rt?be.ticklen:0;if(yt?Mt*=-1:ct&&(Mt=0),rt&&(Ft+=Mt,Ge)){var jt=f.deg2rad(Ge);Ft=Mt*Math.cos(jt)+1,Yt=Mt*Math.sin(jt)}be.showticklabels&&(rt||be.showline)&&(Ft+=.2*be.tickfont.size);var Lt,gt,mt,xt,Ut,It={labelStandoff:Ft+=(be.linewidth||1)/2*(yt?-1:1),labelShift:Yt},zt=0,kt=be.side,Ot=be._id.charAt(0),At=be.tickangle;if(Ot==="x")xt=(Ut=!yt&&kt==="bottom"||yt&&kt==="top")?1:-1,yt&&(xt*=-1),Lt=Yt*xt,gt=Ce+Ft*xt,mt=Ut?1:-.2,Math.abs(At)===90&&(yt?mt+=V:mt=At===-90&&kt==="bottom"?te:At===90&&kt==="top"?V:.5,zt=V/2*(At/90)),It.xFn=function(Bt){return Bt.dx+Lt+zt*Bt.fontSize},It.yFn=function(Bt){return Bt.dy+gt+Bt.fontSize*mt},It.anchorFn=function(Bt,Xt){if(ct){if(Ye)return"end";if(nt)return"start"}return u(Xt)&&Xt!==0&&Xt!==180?Xt*xt<0!==yt?"end":"start":"middle"},It.heightFn=function(Bt,Xt,Zt){return Xt<-60||Xt>60?-.5*Zt:be.side==="top"!==yt?-Zt:0};else if(Ot==="y"){if(xt=(Ut=!yt&&kt==="left"||yt&&kt==="right")?1:-1,yt&&(xt*=-1),Lt=Ft,gt=Yt*xt,mt=0,yt||Math.abs(At)!==90||(mt=At===-90&&kt==="left"||At===90&&kt==="right"?te:.5),yt){var Nt=u(At)?+At:0;if(Nt!==0){var $t=f.deg2rad(Nt);zt=Math.abs(Math.sin($t))*te*xt,mt=0}}It.xFn=function(Bt){return Bt.dx+Ce-(Lt+Bt.fontSize*mt)*xt+zt*Bt.fontSize},It.yFn=function(Bt){return Bt.dy+gt+Bt.fontSize*V},It.anchorFn=function(Bt,Xt){return u(Xt)&&Math.abs(Xt)===90?"middle":Ut?"end":"start"},It.heightFn=function(Bt,Xt,Zt){return be.side==="right"&&(Xt*=-1),Xt<-30?-Zt:Xt<30?-.5*Zt:0}}return It},Z.drawTicks=function(be,Ce,Ge){Ge=Ge||{};var He=Ce._id+"tick",et=[].concat(Ce.minor&&Ce.minor.ticks?Ge.vals.filter(function(Ye){return Ye.minor&&!Ye.noTick}):[]).concat(Ce.ticks?Ge.vals.filter(function(Ye){return!Ye.minor&&!Ye.noTick}):[]),Ke=Ge.layer.selectAll("path."+He).data(et,st);Ke.exit().remove(),Ke.enter().append("path").classed(He,1).classed("ticks",1).classed("crisp",Ge.crisp!==!1).each(function(Ye){return b.stroke(s.select(this),Ye.minor?Ce.minor.tickcolor:Ce.tickcolor)}).style("stroke-width",function(Ye){return v.crispRound(be,Ye.minor?Ce.minor.tickwidth:Ce.tickwidth,1)+"px"}).attr("d",Ge.path).style("display",null),Wt(Ce,[Y]),Ke.attr("transform",Ge.transFn)},Z.drawGrid=function(be,Ce,Ge){if(Ge=Ge||{},Ce.tickmode!=="sync"){var He=Ce._id+"grid",et=Ce.minor&&Ce.minor.showgrid,Ke=et?Ge.vals.filter(function(mt){return mt.minor}):[],Ye=Ce.showgrid?Ge.vals.filter(function(mt){return!mt.minor}):[],nt=Ge.counterAxis;if(nt&&Z.shouldShowZeroLine(be,Ce,nt))for(var ct=Ce.tickmode==="array",yt=0;yt=0;jt--){var Lt=jt?Yt:Mt;if(Lt){var gt=Lt.selectAll("path."+He).data(jt?Ye:Ke,st);gt.exit().remove(),gt.enter().append("path").classed(He,1).classed("crisp",Ge.crisp!==!1),gt.attr("transform",Ge.transFn).attr("d",Ge.path).each(function(mt){return b.stroke(s.select(this),mt.minor?Ce.minor.gridcolor:Ce.gridcolor||"#ddd")}).style("stroke-dasharray",function(mt){return v.dashStyle(mt.minor?Ce.minor.griddash:Ce.griddash,mt.minor?Ce.minor.gridwidth:Ce.gridwidth)}).style("stroke-width",function(mt){return(mt.minor?Ft:Ce._gw)+"px"}).style("display",null),typeof Ge.path=="function"&>.attr("d",Ge.path)}}Wt(Ce,[R,q])}},Z.drawZeroLine=function(be,Ce,Ge){Ge=Ge||Ge;var He=Ce._id+"zl",et=Z.shouldShowZeroLine(be,Ce,Ge.counterAxis),Ke=Ge.layer.selectAll("path."+He).data(et?[{x:0,id:Ce._id}]:[]);Ke.exit().remove(),Ke.enter().append("path").classed(He,1).classed("zl",1).classed("crisp",Ge.crisp!==!1).each(function(){Ge.layer.selectAll("path").sort(function(Ye,nt){return Q(Ye.id,nt.id)})}),Ke.attr("transform",Ge.transFn).attr("d",Ge.path).call(b.stroke,Ce.zerolinecolor||b.defaultLine).style("stroke-width",v.crispRound(be,Ce.zerolinewidth,Ce._gw||1)+"px").style("display",null),Wt(Ce,[N])},Z.drawLabels=function(be,Ce,Ge){Ge=Ge||{};var He=be._fullLayout,et=Ce._id,Ke=et.charAt(0),Ye=Ge.cls||et+"tick",nt=Ge.vals.filter(function(xt){return xt.text}),ct=Ge.labelFns,yt=Ge.secondary?0:Ce.tickangle,rt=(Ce._prevTickAngles||{})[Ye],Ft=Ge.layer.selectAll("g."+Ye).data(Ce.showticklabels?nt:[],st),Yt=[];function Mt(xt,Ut){xt.each(function(It){var zt=s.select(this),kt=zt.select(".text-math-group"),Ot=ct.anchorFn(It,Ut),At=Ge.transFn.call(zt.node(),It)+(u(Ut)&&+Ut!=0?" rotate("+Ut+","+ct.xFn(It)+","+(ct.yFn(It)-It.fontSize/2)+")":""),Nt=m.lineCount(zt),$t=ee*It.fontSize,Bt=ct.heightFn(It,u(Ut)?+Ut:0,(Nt-1)*$t);if(Bt&&(At+=p(0,Bt)),kt.empty()){var Xt=zt.select("text");Xt.attr({transform:At,"text-anchor":Ot}),Xt.style("opacity",1),Ce._adjustTickLabelsOverflow&&Ce._adjustTickLabelsOverflow()}else{var Zt=v.bBox(kt.node()).width*{end:-.5,start:.5}[Ot];kt.attr("transform",At+p(Zt,0))}})}Ft.enter().append("g").classed(Ye,1).append("text").attr("text-anchor","middle").each(function(xt){var Ut=s.select(this),It=be._promises.length;Ut.call(m.positionText,ct.xFn(xt),ct.yFn(xt)).call(v.font,xt.font,xt.fontSize,xt.fontColor).text(xt.text).call(m.convertToTspans,be),be._promises[It]?Yt.push(be._promises.pop().then(function(){Mt(Ut,yt)})):Mt(Ut,yt)}),Wt(Ce,[L]),Ft.exit().remove(),Ge.repositionOnUpdate&&Ft.each(function(xt){s.select(this).select("text").call(m.positionText,ct.xFn(xt),ct.yFn(xt))}),Ce._adjustTickLabelsOverflow=function(){var xt=Ce.ticklabeloverflow;if(xt&&xt!=="allow"){var Ut=xt.indexOf("hide")!==-1,It=Ce._id.charAt(0)==="x",zt=0,kt=It?be._fullLayout.width:be._fullLayout.height;if(xt.indexOf("domain")!==-1){var Ot=f.simpleMap(Ce.range,Ce.r2l);zt=Ce.l2p(Ot[0])+Ce._offset,kt=Ce.l2p(Ot[1])+Ce._offset}var At=Math.min(zt,kt),Nt=Math.max(zt,kt),$t=Ce.side,Bt=1/0,Xt=-1/0;for(var Zt in Ft.each(function(sn){var xn=s.select(this);if(xn.select(".text-math-group").empty()){var mn=v.bBox(xn.node()),dn=0;It?(mn.right>Nt||mn.leftNt||mn.top+(Ce.tickangle?0:sn.fontSize/4)Ce["_visibleLabelMin_"+Ot._id]?Ht.style("display","none"):Nt.K!=="tick"||At||Ht.style("display",null)})})})})},Mt(Ft,rt+1?rt:yt);var jt=null;Ce._selections&&(Ce._selections[Ye]=Ft);var Lt=[function(){return Yt.length&&Promise.all(Yt)}];Ce.automargin&&He._redrawFromAutoMarginCount&&rt===90?(jt=90,Lt.push(function(){Mt(Ft,rt)})):Lt.push(function(){if(Mt(Ft,yt),nt.length&&Ke==="x"&&!u(yt)&&(Ce.type!=="log"||String(Ce.dtick).charAt(0)!=="D")){jt=0;var xt,Ut=0,It=[];if(Ft.each(function(xn){Ut=Math.max(Ut,xn.fontSize);var mn=Ce.l2p(xn.x),dn=We(this),gn=v.bBox(dn.node());It.push({top:0,bottom:10,height:10,left:mn-gn.width/2,right:mn+gn.width/2+2,width:gn.width+2})}),Ce.tickson!=="boundaries"&&!Ce.showdividers||Ge.secondary){var zt=nt.length,kt=Math.abs((nt[zt-1].x-nt[0].x)*Ce._m)/(zt-1),Ot=Ce.ticklabelposition||"",At=function(xn){return Ot.indexOf(xn)!==-1},Nt=At("top"),$t=At("left"),Bt=At("right"),Xt=At("bottom")||$t||Nt||Bt?(Ce.tickwidth||0)+6:0,Zt=kt<2.5*Ut||Ce.type==="multicategory"||Ce._name==="realaxis";for(xt=0;xt1)for(nt=1;nt2*E}(w,h))return"date";var S=y.autotypenumbers!=="strict";return function(C,M){for(var O=C.length,D=b(O),P=0,E=0,I={},A=0;A2*P}(w,S)?"category":function(C,M){for(var O=C.length,D=0;D=2){var I,A,F="";if(E.length===2){for(I=0;I<2;I++)if(A=C(E[I])){F=x;break}}var j=P("pattern",F);if(j===x)for(I=0;I<2;I++)(A=C(E[I]))&&(O.bounds[I]=E[I]=A-1);if(j)for(I=0;I<2;I++)switch(A=E[I],j){case x:if(!s(A)||(A=+A)!==Math.floor(A)||A<0||A>=7)return void(O.enabled=!1);O.bounds[I]=E[I]=A;break;case T:if(!s(A)||(A=+A)<0||A>24)return void(O.enabled=!1);O.bounds[I]=E[I]=A}if(D.autorange===!1){var z=D.range;if(z[0]z[1])return void(O.enabled=!1)}else if(E[0]>z[0]&&E[1]m?1:-1:+(d.substr(1)||1)-+(f.substr(1)||1)},o.ref2id=function(d){return!!/^[xyz]/.test(d)&&d.split(" ")[0]},o.isLinked=function(d,f){return c(f,d._axisMatchGroups)||c(f,d._axisConstraintGroups)}},15258:function(i){i.exports=function(o,a,s,u){if(a.type==="category"){var c,d=o.categoryarray,f=Array.isArray(d)&&d.length>0;f&&(c="array");var p,m=s("categoryorder",c);m==="array"&&(p=s("categoryarray")),f||m!=="array"||(m=a.categoryorder="trace"),m==="trace"?a._initialCategories=[]:m==="array"?a._initialCategories=p.slice():(p=function(g,b){var v,h,y,w=b.dataAttr||g._id.charAt(0),_={};if(b.axData)v=b.axData;else for(v=[],h=0;hC?M.substr(C):O.substr(S))+D:M+O+T*k:D}function _(T,k){for(var S=k._size,C=S.h/S.w,M={},O=Object.keys(T),D=0;Dm*z)||q){for(S=0;SG&&aeH&&(H=ae);E/=(H-ee)/(2*Z),ee=O.l2r(ee),H=O.l2r(H),O.range=O._input.range=U=0?Math.min(ae,.9):1/(1/Math.max(ae,-.3)+3.222))}function U(ae,ie,se,he,Se){return ae.append("path").attr("class","zoombox").style({fill:ie>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",m(se,he)).attr("d",Se+"Z")}function V(ae,ie,se){return ae.append("path").attr("class","zoombox-corners").style({fill:b.background,stroke:b.defaultLine,"stroke-width":1,opacity:0}).attr("transform",m(ie,se)).attr("d","M0,0Z")}function te(ae,ie,se,he,Se,Oe){ae.attr("d",he+"M"+se.l+","+se.t+"v"+se.h+"h"+se.w+"v-"+se.h+"h-"+se.w+"Z"),ee(ae,ie,Se,Oe)}function ee(ae,ie,se,he){se||(ae.transition().style("fill",he>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),ie.transition().style("opacity",1).duration(200))}function H(ae){s.select(ae).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Z(ae){B&&ae.data&&ae._context.showTips&&(u.notifier(u._(ae,"Double-click to zoom back out"),"long"),B=!1)}function G(ae){var ie=Math.floor(Math.min(ae.b-ae.t,ae.r-ae.l,z)/2);return"M"+(ae.l-3.5)+","+(ae.t-.5+ie)+"h3v"+-ie+"h"+ie+"v-3h-"+(ie+3)+"ZM"+(ae.r+3.5)+","+(ae.t-.5+ie)+"h-3v"+-ie+"h"+-ie+"v-3h"+(ie+3)+"ZM"+(ae.r+3.5)+","+(ae.b+.5-ie)+"h-3v"+ie+"h"+-ie+"v3h"+(ie+3)+"ZM"+(ae.l-3.5)+","+(ae.b+.5-ie)+"h3v"+ie+"h"+ie+"v3h-"+(ie+3)+"Z"}function X(ae,ie,se,he,Se){for(var Oe,Pe,Me,ce,we=!1,K={},ne={},de=(Se||{}).xaHash,_e=(Se||{}).yaHash,ue=0;ue=0)At._fullLayout._deactivateShape(At);else{var Nt=At._fullLayout.clickmode;if(H(At),kt!==2||ze||gt(),We)Nt.indexOf("select")>-1&&I(Ot,At,de,_e,ie.id,He),Nt.indexOf("event")>-1&&h.click(At,Ot,ie.id);else if(kt===1&&ze){var $t=Pe?we:ce,Bt=Pe==="s"||Me==="w"?0:1,Xt=$t._name+".range["+Bt+"]",Zt=function(sn,xn){var mn,dn=sn.range[xn],gn=Math.abs(dn-sn.range[1-xn]);return sn.type==="date"?dn:sn.type==="log"?(mn=Math.ceil(Math.max(0,-Math.log(gn)/Math.LN10))+3,c("."+mn+"g")(Math.pow(10,dn))):(mn=Math.floor(Math.log(Math.abs(dn))/Math.LN10)-Math.floor(Math.log(gn)/Math.LN10)+4,c("."+String(mn)+"g")(dn))}($t,Bt),qt="left",Ht="middle";if($t.fixedrange)return;Pe?(Ht=Pe==="n"?"top":"bottom",$t.side==="right"&&(qt="right")):Me==="e"&&(qt="right"),At._context.showAxisRangeEntryBoxes&&s.select(St).call(g.makeEditable,{gd:At,immediate:!0,background:At._fullLayout.paper_bgcolor,text:String(Zt),fill:$t.tickfont?$t.tickfont.color:"#444",horizontalAlign:qt,verticalAlign:Ht}).on("edit",function(sn){var xn=$t.d2r(sn);xn!==void 0&&p.call("_guiRelayout",At,Xt,xn)})}}}function Ye(kt,Ot){if(ae._transitioningWithDuration)return!1;var At=Math.max(0,Math.min(xe,st*kt+Ze)),Nt=Math.max(0,Math.min(ye,dt*Ot+ut)),$t=Math.abs(At-Ze),Bt=Math.abs(Nt-ut);function Xt(){_t="",ht.r=ht.l,ht.t=ht.b,Ce.attr("d","M0,0Z")}if(ht.l=Math.min(Ze,At),ht.r=Math.max(Ze,At),ht.t=Math.min(ut,Nt),ht.b=Math.max(ut,Nt),Te.isSubplotConstrained)$t>z||Bt>z?(_t="xy",$t/xe>Bt/ye?(Bt=$t*ye/xe,ut>Nt?ht.t=ut-Bt:ht.b=ut+Bt):($t=Bt*xe/ye,Ze>At?ht.l=Ze-$t:ht.r=Ze+$t),Ce.attr("d",G(ht))):Xt();else if(Ae.isSubplotConstrained)if($t>z||Bt>z){_t="xy";var Zt=Math.min(ht.l/xe,(ye-ht.b)/ye),qt=Math.max(ht.r/xe,(ye-ht.t)/ye);ht.l=Zt*xe,ht.r=qt*xe,ht.b=(1-Zt)*ye,ht.t=(1-qt)*ye,Ce.attr("d",G(ht))}else Xt();else!Le||Bt0){var Ht;if(Ae.isSubplotConstrained||!Re&&Le.length===1){for(Ht=0;Ht1&&(Nt.maxallowed!==void 0&&Fe===(Nt.range[0]1&&($t.maxallowed!==void 0&&Be===($t.range[0]<$t.range[1]?"n":"s")||$t.minallowed!==void 0&&Be===($t.range[0]<$t.range[1]?"s":"n"))&&(dn=1,en=0),mn||dn){mn||(mn=1),dn||(dn=1);var tn=Nt._offset-gn/mn,Fn=$t._offset-en/dn;At.clipRect.call(v.setTranslate,gn,en).call(v.setScale,mn,dn),At.plot.call(v.setTranslate,tn,Fn).call(v.setScale,1/mn,1/dn),mn===At.xScaleFactor&&dn===At.yScaleFactor||(v.setPointGroupScale(At.zoomScalePts,mn,dn),v.setTextPointsScale(At.zoomScaleTxt,mn,dn)),v.hideOutsideRangePoints(At.clipOnAxisFalseTraces,At),At.xScaleFactor=mn,At.yScaleFactor=dn}}}}function Ut(kt,Ot,At){return kt.fixedrange?0:Fe&&Te.xaHash[kt._id]?Ot:Be&&(Te.isSubplotConstrained?Te.xaHash:Te.yaHash)[kt._id]?At:0}function It(kt,Ot){return Ot?(kt.range=kt._r.slice(),A(kt,Ot),zt(kt,Ot)):0}function zt(kt,Ot,At){return kt._length*(1-Ot)*S[At||kt.constraintoward||"middle"]}return Pe.length*Me.length!=1&&Q(St,function(kt){if(ae._context._scrollZoom.cartesian||ae._fullLayout._enablescrollzoom){if(et(),ae._transitioningWithDuration)return kt.preventDefault(),void kt.stopPropagation();tt(),clearTimeout(rt);var Ot=-kt.deltaY;if(isFinite(Ot)||(Ot=kt.wheelDelta/10),isFinite(Ot)){var At,Nt=Math.exp(-Math.min(Math.max(Ot,-20),20)/200),$t=Yt.draglayer.select(".nsewdrag").node().getBoundingClientRect(),Bt=(kt.clientX-$t.left)/$t.width,Xt=($t.bottom-kt.clientY)/$t.height;if(Fe){for(Me||(Bt=.5),At=0;AtO[1]-.000244140625&&(d.domain=g),u.noneOrAll(c.domain,d.domain,g),d.tickmode==="sync"&&(d.tickmode="auto")}return f("layer"),d}},89426:function(i,o,a){var s=a(59652);i.exports=function(u,c,d,f,p){p||(p={});var m=p.tickSuffixDflt,g=s(u);d("tickprefix")&&d("showtickprefix",g),d("ticksuffix",m)&&d("showticksuffix",g)}},23608:function(i,o,a){var s=a(23074);i.exports=function(u,c,d,f){var p=c._template||{},m=c.type||p.type||"-";d("minallowed"),d("maxallowed");var g,b=d("range"),v=c.getAutorangeDflt(b,f),h=d("autorange",v);!b||(b[0]!==null||b[1]!==null)&&(b[0]!==null&&b[1]!==null||h!=="reversed"&&h!==!0)&&(b[0]===null||h!=="min"&&h!=="max reversed")&&(b[1]===null||h!=="max"&&h!=="min reversed")||(b=void 0,delete c.range,c.autorange=!0,g=!0),g||(h=d("autorange",v=c.getAutorangeDflt(b,f))),h&&(s(d,h,b),m!=="linear"&&m!=="-"||d("rangemode")),c.cleanRange()}},42449:function(i,o,a){var s=a(18783).FROM_BL;i.exports=function(u,c,d){d===void 0&&(d=s[u.constraintoward||"center"]);var f=[u.r2l(u.range[0]),u.r2l(u.range[1])],p=f[0]+(f[1]-f[0])*d;u.range=u._input.range=[u.l2r(p+(f[0]-p)*c),u.l2r(p+(f[1]-p)*c)],u.setScale()}},21994:function(i,o,a){var s=a(39898),u=a(84096).g0,c=a(71828),d=c.numberFormat,f=a(92770),p=c.cleanNumber,m=c.ms2DateTime,g=c.dateTime2ms,b=c.ensureNumber,v=c.isArrayOrTypedArray,h=a(50606),y=h.FP_SAFE,w=h.BADNUM,_=h.LOG_CLIP,x=h.ONEWEEK,T=h.ONEDAY,k=h.ONEHOUR,S=h.ONEMIN,C=h.ONESEC,M=a(41675),O=a(85555),D=O.HOUR_PATTERN,P=O.WEEKDAY_PATTERN;function E(A){return Math.pow(10,A)}function I(A){return A!=null}i.exports=function(A,F){F=F||{};var j=A._id||"x",z=j.charAt(0);function B(X,Q){if(X>0)return Math.log(X)/Math.LN10;if(X<=0&&Q&&A.range&&A.range.length===2){var re=A.range[0],ae=A.range[1];return .5*(re+ae-2*_*Math.abs(re-ae))}return w}function N(X,Q,re,ae){if((ae||{}).msUTC&&f(X))return+X;var ie=g(X,re||A.calendar);if(ie===w){if(!f(X))return w;X=+X;var se=Math.floor(10*c.mod(X+.05,1)),he=Math.round(X-se/10);ie=g(new Date(he))+se/10}return ie}function R(X,Q,re){return m(X,Q,re||A.calendar)}function q(X){return A._categories[Math.round(X)]}function Y(X){if(I(X)){if(A._categoriesMap===void 0&&(A._categoriesMap={}),A._categoriesMap[X]!==void 0)return A._categoriesMap[X];A._categories.push(typeof X=="number"?String(X):X);var Q=A._categories.length-1;return A._categoriesMap[X]=Q,Q}return w}function L(X){if(A._categoriesMap)return A._categoriesMap[X]}function W(X){var Q=L(X);return Q!==void 0?Q:f(X)?+X:void 0}function U(X){return f(X)?+X:L(X)}function V(X,Q,re){return s.round(re+Q*X,2)}function te(X,Q,re){return(X-re)/Q}var ee=function(X){return f(X)?V(X,A._m,A._b):w},H=function(X){return te(X,A._m,A._b)};if(A.rangebreaks){var Z=z==="y";ee=function(X){if(!f(X))return w;var Q=A._rangebreaks.length;if(!Q)return V(X,A._m,A._b);var re=Z;A.range[0]>A.range[1]&&(re=!re);for(var ae=re?-1:1,ie=ae*X,se=0,he=0;heOe)){se=ie<(Se+Oe)/2?he:he+1;break}se=he+1}var Pe=A._B[se]||0;return isFinite(Pe)?V(X,A._m2,Pe):0},H=function(X){var Q=A._rangebreaks.length;if(!Q)return te(X,A._m,A._b);for(var re=0,ae=0;aeA._rangebreaks[ae].pmax&&(re=ae+1);return te(X,A._m2,A._B[re])}}A.c2l=A.type==="log"?B:b,A.l2c=A.type==="log"?E:b,A.l2p=ee,A.p2l=H,A.c2p=A.type==="log"?function(X,Q){return ee(B(X,Q))}:ee,A.p2c=A.type==="log"?function(X){return E(H(X))}:H,["linear","-"].indexOf(A.type)!==-1?(A.d2r=A.r2d=A.d2c=A.r2c=A.d2l=A.r2l=p,A.c2d=A.c2r=A.l2d=A.l2r=b,A.d2p=A.r2p=function(X){return A.l2p(p(X))},A.p2d=A.p2r=H,A.cleanPos=b):A.type==="log"?(A.d2r=A.d2l=function(X,Q){return B(p(X),Q)},A.r2d=A.r2c=function(X){return E(p(X))},A.d2c=A.r2l=p,A.c2d=A.l2r=b,A.c2r=B,A.l2d=E,A.d2p=function(X,Q){return A.l2p(A.d2r(X,Q))},A.p2d=function(X){return E(H(X))},A.r2p=function(X){return A.l2p(p(X))},A.p2r=H,A.cleanPos=b):A.type==="date"?(A.d2r=A.r2d=c.identity,A.d2c=A.r2c=A.d2l=A.r2l=N,A.c2d=A.c2r=A.l2d=A.l2r=R,A.d2p=A.r2p=function(X,Q,re){return A.l2p(N(X,0,re))},A.p2d=A.p2r=function(X,Q,re){return R(H(X),Q,re)},A.cleanPos=function(X){return c.cleanDate(X,w,A.calendar)}):A.type==="category"?(A.d2c=A.d2l=Y,A.r2d=A.c2d=A.l2d=q,A.d2r=A.d2l_noadd=W,A.r2c=function(X){var Q=U(X);return Q!==void 0?Q:A.fraction2r(.5)},A.l2r=A.c2r=b,A.r2l=U,A.d2p=function(X){return A.l2p(A.r2c(X))},A.p2d=function(X){return q(H(X))},A.r2p=A.d2p,A.p2r=H,A.cleanPos=function(X){return typeof X=="string"&&X!==""?X:b(X)}):A.type==="multicategory"&&(A.r2d=A.c2d=A.l2d=q,A.d2r=A.d2l_noadd=W,A.r2c=function(X){var Q=W(X);return Q!==void 0?Q:A.fraction2r(.5)},A.r2c_just_indices=L,A.l2r=A.c2r=b,A.r2l=W,A.d2p=function(X){return A.l2p(A.r2c(X))},A.p2d=function(X){return q(H(X))},A.r2p=A.d2p,A.p2r=H,A.cleanPos=function(X){return Array.isArray(X)||typeof X=="string"&&X!==""?X:b(X)},A.setupMultiCategory=function(X){var Q,re,ae=A._traceIndices,ie=A._matchGroup;if(ie&&A._categories.length===0){for(var se in ie)if(se!==j){var he=F[M.id2name(se)];ae=ae.concat(he._traceIndices)}}var Se=[[0,{}],[0,{}]],Oe=[];for(Q=0;Qhe[1]&&(ae[se?0:1]=re)}},A.cleanRange=function(X,Q){A._cleanRange(X,Q),A.limitRange(X)},A._cleanRange=function(X,Q){Q||(Q={}),X||(X="range");var re,ae,ie=c.nestedProperty(A,X).get();if(ae=(ae=A.type==="date"?c.dfltRange(A.calendar):z==="y"?O.DFLTRANGEY:A._name==="realaxis"?[0,1]:Q.dfltRange||O.DFLTRANGEX).slice(),A.rangemode!=="tozero"&&A.rangemode!=="nonnegative"||(ae[0]=0),ie&&ie.length===2){var se=ie[0]===null,he=ie[1]===null;for(A.type!=="date"||A.autorange||(ie[0]=c.cleanDate(ie[0],w,A.calendar),ie[1]=c.cleanDate(ie[1],w,A.calendar)),re=0;re<2;re++)if(A.type==="date"){if(!c.isDateTime(ie[re],A.calendar)){A[X]=ae;break}if(A.r2l(ie[0])===A.r2l(ie[1])){var Se=c.constrain(A.r2l(ie[0]),c.MIN_MS+1e3,c.MAX_MS-1e3);ie[0]=A.l2r(Se-1e3),ie[1]=A.l2r(Se+1e3);break}}else{if(!f(ie[re])){if(se||he||!f(ie[1-re])){A[X]=ae;break}ie[re]=ie[1-re]*(re?10:.1)}if(ie[re]<-y?ie[re]=-y:ie[re]>y&&(ie[re]=y),ie[0]===ie[1]){var Oe=Math.max(1,Math.abs(1e-6*ie[0]));ie[0]-=Oe,ie[1]+=Oe}}}else c.nestedProperty(A,X).set(ae)},A.setScale=function(X){var Q=F._size;if(A.overlaying){var re=M.getFromId({_fullLayout:F},A.overlaying);A.domain=re.domain}var ae=X&&A._r?"_r":"range",ie=A.calendar;A.cleanRange(ae);var se,he,Se=A.r2l(A[ae][0],ie),Oe=A.r2l(A[ae][1],ie),Pe=z==="y";if(Pe?(A._offset=Q.t+(1-A.domain[1])*Q.h,A._length=Q.h*(A.domain[1]-A.domain[0]),A._m=A._length/(Se-Oe),A._b=-A._m*Oe):(A._offset=Q.l+A.domain[0]*Q.w,A._length=Q.w*(A.domain[1]-A.domain[0]),A._m=A._length/(Oe-Se),A._b=-A._m*Se),A._rangebreaks=[],A._lBreaks=0,A._m2=0,A._B=[],A.rangebreaks&&(A._rangebreaks=A.locateBreaks(Math.min(Se,Oe),Math.max(Se,Oe)),A._rangebreaks.length)){for(se=0;seOe&&(Me=!Me),Me&&A._rangebreaks.reverse();var ce=Me?-1:1;for(A._m2=ce*A._length/(Math.abs(Oe-Se)-A._lBreaks),A._B.push(-A._m2*(Pe?Oe:Se)),se=0;seae&&(ae+=7,ieae&&(ae+=24,ie=re&&ie=re&&X=Ae.min&&(peAe.max&&(Ae.max=xe),ye=!1)}ye&&he.push({min:pe,max:xe})}};for(re=0;reg.duration?(function(){for(var D={},P=0;P rect").call(d.setTranslate,0,0).call(d.setScale,1,1),S.plot.call(d.setTranslate,C._offset,M._offset).call(d.setScale,1,1);var O=S.plot.selectAll(".scatterlayer .trace");O.selectAll(".point").call(d.setPointGroupScale,1,1),O.selectAll(".textpoint").call(d.setTextPointsScale,1,1),O.call(d.hideOutsideRangePoints,S)}function k(S,C){var M=S.plotinfo,O=M.xaxis,D=M.yaxis,P=O._length,E=D._length,I=!!S.xr1,A=!!S.yr1,F=[];if(I){var j=c.simpleMap(S.xr0,O.r2l),z=c.simpleMap(S.xr1,O.r2l),B=j[1]-j[0],N=z[1]-z[0];F[0]=(j[0]*(1-C)+C*z[0]-j[0])/(j[1]-j[0])*P,F[2]=P*(1-C+C*N/B),O.range[0]=O.l2r(j[0]*(1-C)+C*z[0]),O.range[1]=O.l2r(j[1]*(1-C)+C*z[1])}else F[0]=0,F[2]=P;if(A){var R=c.simpleMap(S.yr0,D.r2l),q=c.simpleMap(S.yr1,D.r2l),Y=R[1]-R[0],L=q[1]-q[0];F[1]=(R[1]*(1-C)+C*q[1]-R[1])/(R[0]-R[1])*E,F[3]=E*(1-C+C*L/Y),D.range[0]=O.l2r(R[0]*(1-C)+C*q[0]),D.range[1]=D.l2r(R[1]*(1-C)+C*q[1])}else F[1]=0,F[3]=E;f.drawOne(p,O,{skipTitle:!0}),f.drawOne(p,D,{skipTitle:!0}),f.redrawComponents(p,[O._id,D._id]);var W=I?P/F[2]:1,U=A?E/F[3]:1,V=I?F[0]:0,te=A?F[1]:0,ee=I?F[0]/F[2]*P:0,H=A?F[1]/F[3]*E:0,Z=O._offset-ee,G=D._offset-H;M.clipRect.call(d.setTranslate,V,te).call(d.setScale,1/W,1/U),M.plot.call(d.setTranslate,Z,G).call(d.setScale,W,U),d.setPointGroupScale(M.zoomScalePts,1/W,1/U),d.setTextPointsScale(M.zoomScaleTxt,1/W,1/U)}f.redrawComponents(p)}},951:function(i,o,a){var s=a(73972).traceIs,u=a(4322);function c(f){return{v:"x",h:"y"}[f.orientation||"v"]}function d(f,p){var m=c(f),g=s(f,"box-violin"),b=s(f._fullInput||{},"candlestick");return g&&!b&&p===m&&f[m]===void 0&&f[m+"0"]===void 0}i.exports=function(f,p,m,g){m("autotypenumbers",g.autotypenumbersDflt),m("type",(g.splomStash||{}).type)==="-"&&(function(b,v){if(b.type==="-"){var h,y=b._id,w=y.charAt(0);y.indexOf("scene")!==-1&&(y=w);var _=function(D,P,E){for(var I=0;I0&&(A["_"+E+"axes"]||{})[P]||(A[E+"axis"]||E)===P&&(d(A,E)||(A[E]||[]).length||A[E+"0"]))return A}}(v,y,w);if(_)if(_.type!=="histogram"||w!=={v:"y",h:"x"}[_.orientation||"v"]){var x=w+"calendar",T=_[x],k={noMultiCategory:!s(_,"cartesian")||s(_,"noMultiCategory")};if(_.type==="box"&&_._hasPreCompStats&&w==={h:"x",v:"y"}[_.orientation||"v"]&&(k.noMultiCategory=!0),k.autotypenumbers=b.autotypenumbers,d(_,w)){var S=c(_),C=[];for(h=0;h0?".":"")+h;u.isPlainObject(y)?p(y,g,w,v+1):g(w,h,y)}})}o.manageCommandObserver=function(m,g,b,v){var h={},y=!0;g&&g._commandObserver&&(h=g._commandObserver),h.cache||(h.cache={}),h.lookupTable={};var w=o.hasSimpleAPICommandBindings(m,b,h.lookupTable);if(g&&g._commandObserver){if(w)return h;if(g._commandObserver.remove)return g._commandObserver.remove(),g._commandObserver=null,h}if(w){c(m,w,h.cache),h.check=function(){if(y){var T=c(m,w,h.cache);return T.changed&&v&&h.lookupTable[T.value]!==void 0&&(h.disable(),Promise.resolve(v({value:T.value,type:w.type,prop:w.prop,traces:w.traces,index:h.lookupTable[T.value]})).then(h.enable,h.enable)),T.changed}};for(var _=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],x=0;x<_.length;x++)m._internalOn(_[x],h.check);h.remove=function(){for(var T=0;T<_.length;T++)m._removeInternalListener(_[T],h.check)}}else u.log("Unable to automatically bind plot updates to API command"),h.lookupTable={},h.remove=function(){};return h.disable=function(){y=!1},h.enable=function(){y=!0},g&&(g._commandObserver=h),h},o.hasSimpleAPICommandBindings=function(m,g,b){var v,h,y=g.length;for(v=0;v=W.width-20?(te["text-anchor"]="start",te.x=5):(te["text-anchor"]="end",te.x=W._paper.attr("width")-7),U.attr(te);var ee=U.select(".js-link-to-tool"),H=U.select(".js-link-spacer"),Z=U.select(".js-sourcelinks");L._context.showSources&&L._context.showSources(L),L._context.showLink&&function(G,X){X.text("");var Q=X.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(G._context.linkText+" »");if(G._context.sendData)Q.on("click",function(){C.sendDataToCloud(G)});else{var re=window.location.pathname.split("/"),ae=window.location.search;Q.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+re[2].split(".")[0]+"/"+re[1]+ae})}}(L,ee),H.text(ee.text()&&Z.text()?" - ":"")}},C.sendDataToCloud=function(L){var W=(window.PLOTLYENV||{}).BASE_URL||L._context.plotlyServerURL;if(W){L.emit("plotly_beforeexport");var U=s.select(L).append("div").attr("id","hiddenform").style("display","none"),V=U.append("form").attr({action:W+"/external",method:"post",target:"_blank"});return V.append("input").attr({type:"text",name:"data"}).node().value=C.graphJson(L,!1,"keepdata"),V.node().submit(),U.remove(),L.emit("plotly_afterexport"),!1}};var D=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],P=["year","month","dayMonth","dayMonthYear"];function E(L,W){var U=L._context.locale;U||(U="en-US");var V=!1,te={};function ee(re){for(var ae=!0,ie=0;ie1&&K.length>1){for(f.getComponentMethod("grid","sizeDefaults")(H,ee),te=0;te15&&K.length>15&&ee.shapes.length===0&&ee.images.length===0,C.linkSubplots(G,ee,Z,V),C.cleanPlot(G,ee,Z,V);var pe=!(!V._has||!V._has("gl2d")),xe=!(!ee._has||!ee._has("gl2d")),ye=!(!V._has||!V._has("cartesian"))||pe,Te=!(!ee._has||!ee._has("cartesian"))||xe;ye&&!Te?V._bgLayer.remove():Te&&!ye&&(ee._shouldCreateBgLayer=!0),V._zoomlayer&&!L._dragging&&y({_fullLayout:V}),function($e,Fe){var Be,Ue=[];Fe.meta&&(Be=Fe._meta={meta:Fe.meta,layout:{meta:Fe.meta}});for(var qe=0;qe<$e.length;qe++){var Xe=$e[qe];Xe.meta?Ue[Xe.index]=Xe._meta={meta:Xe.meta}:Fe.meta&&(Xe._meta={meta:Fe.meta}),Fe.meta&&(Xe._meta.layout={meta:Fe.meta})}Ue.length&&(Be||(Be=Fe._meta={}),Be.data=Ue)}(G,ee),k(ee,V),f.getComponentMethod("colorscale","crossTraceDefaults")(G,ee),ee._preGUI||(ee._preGUI={}),ee._tracePreGUI||(ee._tracePreGUI={});var Ae,Re=ee._tracePreGUI,Le={};for(Ae in Re)Le[Ae]="old";for(te=0;te0){var X=1-2*H;V=Math.round(X*V),te=Math.round(X*te)}}var Q=C.layoutAttributes.width.min,re=C.layoutAttributes.height.min;V1,ie=!W.height&&Math.abs(U.height-te)>1;(ie||ae)&&(ae&&(U.width=V),ie&&(U.height=te)),L._initialAutoSize||(L._initialAutoSize={width:V,height:te}),C.sanitizeMargins(U)},C.supplyLayoutModuleDefaults=function(L,W,U,V){var te,ee,H,Z=f.componentsRegistry,G=W._basePlotModules,X=f.subplotsRegistry.cartesian;for(te in Z)(H=Z[te]).includeBasePlot&&H.includeBasePlot(L,W);for(var Q in G.length||G.push(X),W._has("cartesian")&&(f.getComponentMethod("grid","contentDefaults")(L,W),X.finalizeSubplots(L,W)),W._subplots)W._subplots[Q].sort(g.subplotSort);for(ee=0;ee1&&(U.l/=Se,U.r/=Se)}if(ae){var Oe=(U.t+U.b)/ae;Oe>1&&(U.t/=Oe,U.b/=Oe)}var Pe=U.xl!==void 0?U.xl:U.x,Me=U.xr!==void 0?U.xr:U.x,ce=U.yt!==void 0?U.yt:U.y,we=U.yb!==void 0?U.yb:U.y;ie[W]={l:{val:Pe,size:U.l+he},r:{val:Me,size:U.r+he},b:{val:we,size:U.b+he},t:{val:ce,size:U.t+he}},se[W]=1}else delete ie[W],delete se[W];if(!V._replotting)return C.doAutoMargin(L)}},C.doAutoMargin=function(L){var W=L._fullLayout,U=W.width,V=W.height;W._size||(W._size={}),z(W);var te=W._size,ee=W.margin,H={t:0,b:0,l:0,r:0},Z=g.extendFlat({},te),G=ee.l,X=ee.r,Q=ee.t,re=ee.b,ae=W._pushmargin,ie=W._pushmarginIds,se=W.minreducedwidth,he=W.minreducedheight;if(ee.autoexpand!==!1){for(var Se in ae)ie[Se]||delete ae[Se];var Oe=L._fullLayout._reservedMargin;for(var Pe in Oe)for(var Me in Oe[Pe]){var ce=Oe[Pe][Me];H[Me]=Math.max(H[Me],ce)}for(var we in ae.base={l:{val:0,size:G},r:{val:1,size:X},t:{val:1,size:Q},b:{val:0,size:re}},H){var K=0;for(var ne in ae)ne!=="base"&&d(ae[ne][we].size)&&(K=ae[ne][we].size>K?ae[ne][we].size:K);var de=Math.max(0,ee[we]-K);H[we]=Math.max(0,H[we]-de)}for(var _e in ae){var ue=ae[_e].l||{},pe=ae[_e].b||{},xe=ue.val,ye=ue.size,Te=pe.val,Ae=pe.size,Re=U-H.r-H.l,Le=V-H.t-H.b;for(var $e in ae){if(d(ye)&&ae[$e].r){var Fe=ae[$e].r.val,Be=ae[$e].r.size;if(Fe>xe){var Ue=(ye*Fe+(Be-Re)*xe)/(Fe-xe),qe=(Be*(1-xe)+(ye-Re)*(1-Fe))/(Fe-xe);Ue+qe>G+X&&(G=Ue,X=qe)}}if(d(Ae)&&ae[$e].t){var Xe=ae[$e].t.val,ot=ae[$e].t.size;if(Xe>Te){var st=(Ae*Xe+(ot-Le)*Te)/(Xe-Te),dt=(ot*(1-Te)+(Ae-Le)*(1-Xe))/(Xe-Te);st+dt>re+Q&&(re=st,Q=dt)}}}}}var vt=g.constrain(U-ee.l-ee.r,2,se),We=g.constrain(V-ee.t-ee.b,2,he),ze=Math.max(0,U-vt),tt=Math.max(0,V-We);if(ze){var it=(G+X)/ze;it>1&&(G/=it,X/=it)}if(tt){var St=(re+Q)/tt;St>1&&(re/=St,Q/=St)}if(te.l=Math.round(G)+H.l,te.r=Math.round(X)+H.r,te.t=Math.round(Q)+H.t,te.b=Math.round(re)+H.b,te.p=Math.round(ee.pad),te.w=Math.round(U)-te.l-te.r,te.h=Math.round(V)-te.t-te.b,!W._replotting&&(C.didMarginChange(Z,te)||function(ut){if("_redrawFromAutoMarginCount"in ut._fullLayout)return!1;var ht=h.list(ut,"",!0);for(var Rt in ht)if(ht[Rt].autoshift||ht[Rt].shift)return!0;return!1}(L))){"_redrawFromAutoMarginCount"in W?W._redrawFromAutoMarginCount++:W._redrawFromAutoMarginCount=1;var Ze=3*(1+Object.keys(ie).length);if(W._redrawFromAutoMarginCount0&&(L._transitioningWithDuration=!0),L._transitionData._interruptCallbacks.push(function(){V=!0}),U.redraw&&L._transitionData._interruptCallbacks.push(function(){return f.call("redraw",L)}),L._transitionData._interruptCallbacks.push(function(){L.emit("plotly_transitioninterrupted",[])});var Z=0,G=0;function X(){return Z++,function(){var Q;G++,V||G!==Z||(Q=H,L._transitionData&&(function(re){if(re)for(;re.length;)re.shift()}(L._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(U.redraw)return f.call("redraw",L)}).then(function(){L._transitioning=!1,L._transitioningWithDuration=!1,L.emit("plotly_transitioned",[])}).then(Q)))}}U.runFn(X),setTimeout(X())})}],ee=g.syncOrAsync(te,L);return ee&&ee.then||(ee=Promise.resolve()),ee.then(function(){return L})}C.didMarginChange=function(L,W){for(var U=0;U1)return!0}return!1},C.graphJson=function(L,W,U,V,te,ee){(te&&W&&!L._fullData||te&&!W&&!L._fullLayout)&&C.supplyDefaults(L);var H=te?L._fullData:L.data,Z=te?L._fullLayout:L.layout,G=(L._transitionData||{})._frames;function X(ae,ie){if(typeof ae=="function")return ie?"_function_":null;if(g.isPlainObject(ae)){var se,he={};return Object.keys(ae).sort().forEach(function(Se){if(["_","["].indexOf(Se.charAt(0))===-1)if(typeof ae[Se]!="function"){if(U==="keepdata"){if(Se.substr(Se.length-3)==="src")return}else if(U==="keepstream"){if(typeof(se=ae[Se+"src"])=="string"&&se.indexOf(":")>0&&!g.isPlainObject(ae.stream))return}else if(U!=="keepall"&&typeof(se=ae[Se+"src"])=="string"&&se.indexOf(":")>0)return;he[Se]=X(ae[Se],ie)}else ie&&(he[Se]="_function")}),he}return Array.isArray(ae)?ae.map(function(Se){return X(Se,ie)}):g.isTypedArray(ae)?g.simpleMap(ae,g.identity):g.isJSDate(ae)?g.ms2DateTimeLocal(+ae):ae}var Q={data:(H||[]).map(function(ae){var ie=X(ae);return W&&delete ie.fit,ie})};if(!W&&(Q.layout=X(Z),te)){var re=Z._size;Q.layout.computed={margin:{b:re.b,l:re.l,r:re.r,t:re.t}}}return G&&(Q.frames=X(G)),ee&&(Q.config=X(L._context,!0)),V==="object"?Q:JSON.stringify(Q)},C.modifyFrames=function(L,W){var U,V,te,ee=L._transitionData._frames,H=L._transitionData._frameHash;for(U=0;U=0;ee--)if(we[ee].enabled){U._indexToPoints=we[ee]._indexToPoints;break}V&&V.calc&&(ce=V.calc(L,U))}Array.isArray(ce)&&ce[0]||(ce=[{x:v,y:v}]),ce[0].t||(ce[0].t={}),ce[0].trace=U,X[Pe]=ce}}for(q(H,Z,G),te=0;te0){for(var p=[],m=0;m=D&&(E.min=0,I.min=0,A.min=0,_.aaxis&&delete _.aaxis.min,_.baxis&&delete _.baxis.min,_.caxis&&delete _.caxis.min)}function w(_,x,T,k){var S=v[x._name];function C(I,A){return c.coerce(_,x,S,I,A)}C("uirevision",k.uirevision),x.type="linear";var M=C("color"),O=M!==S.color.dflt?M:T.font.color,D=x._name.charAt(0).toUpperCase(),P="Component "+D,E=C("title.text",P);x._hovertitle=E===P?E:D,c.coerceFont(C,"title.font",{family:T.font.family,size:c.bigFont(T.font.size),color:O}),C("min"),g(_,x,C,"linear"),p(_,x,C,"linear"),f(_,x,C,"linear"),m(_,x,C,{outerTicks:!0}),C("showticklabels")&&(c.coerceFont(C,"tickfont",{family:T.font.family,size:T.font.size,color:O}),C("tickangle"),C("tickformat")),b(_,x,C,{dfltColor:M,bgColor:T.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:S}),C("hoverformat"),C("layer")}i.exports=function(_,x,T){d(_,x,T,{type:"ternary",attributes:v,handleDefaults:y,font:x.font,paper_bgcolor:x.paper_bgcolor})}},64380:function(i,o,a){var s=a(39898),u=a(84267),c=a(73972),d=a(71828),f=d.strTranslate,p=d._,m=a(7901),g=a(91424),b=a(21994),v=a(1426).extendFlat,h=a(74875),y=a(89298),w=a(28569),_=a(30211),x=a(64505),T=x.freeMode,k=x.rectMode,S=a(92998),C=a(47322).prepSelect,M=a(47322).selectOnClick,O=a(47322).clearOutline,D=a(47322).clearSelectionsCache,P=a(85555);function E(q,Y){this.id=q.id,this.graphDiv=q.graphDiv,this.init(Y),this.makeFramework(Y),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}i.exports=E;var I=E.prototype;I.init=function(q){this.container=q._ternarylayer,this.defs=q._defs,this.layoutId=q._uid,this.traceHash={},this.layers={}},I.plot=function(q,Y){var L=this,W=Y[L.id],U=Y._size;L._hasClipOnAxisFalse=!1;for(var V=0;VA*ie?U=(V=ie)*A:V=(U=ae)/A,te=Q*U/ae,ee=re*V/ie,L=Y.l+Y.w*G-U/2,W=Y.t+Y.h*(1-X)-V/2,H.x0=L,H.y0=W,H.w=U,H.h=V,H.sum=se,H.xaxis={type:"linear",range:[he+2*Oe-se,se-he-2*Se],domain:[G-te/2,G+te/2],_id:"x"},b(H.xaxis,H.graphDiv._fullLayout),H.xaxis.setScale(),H.xaxis.isPtWithinRange=function(xe){return xe.a>=H.aaxis.range[0]&&xe.a<=H.aaxis.range[1]&&xe.b>=H.baxis.range[1]&&xe.b<=H.baxis.range[0]&&xe.c>=H.caxis.range[1]&&xe.c<=H.caxis.range[0]},H.yaxis={type:"linear",range:[he,se-Se-Oe],domain:[X-ee/2,X+ee/2],_id:"y"},b(H.yaxis,H.graphDiv._fullLayout),H.yaxis.setScale(),H.yaxis.isPtWithinRange=function(){return!0};var Pe=H.yaxis.domain[0],Me=H.aaxis=v({},q.aaxis,{range:[he,se-Se-Oe],side:"left",tickangle:(+q.aaxis.tickangle||0)-30,domain:[Pe,Pe+ee*A],anchor:"free",position:0,_id:"y",_length:U});b(Me,H.graphDiv._fullLayout),Me.setScale();var ce=H.baxis=v({},q.baxis,{range:[se-he-Oe,Se],side:"bottom",domain:H.xaxis.domain,anchor:"free",position:0,_id:"x",_length:U});b(ce,H.graphDiv._fullLayout),ce.setScale();var we=H.caxis=v({},q.caxis,{range:[se-he-Se,Oe],side:"right",tickangle:(+q.caxis.tickangle||0)+30,domain:[Pe,Pe+ee*A],anchor:"free",position:0,_id:"y",_length:U});b(we,H.graphDiv._fullLayout),we.setScale();var K="M"+L+","+(W+V)+"h"+U+"l-"+U/2+",-"+V+"Z";H.clipDef.select("path").attr("d",K),H.layers.plotbg.select("path").attr("d",K);var ne="M0,"+V+"h"+U+"l-"+U/2+",-"+V+"Z";H.clipDefRelative.select("path").attr("d",ne);var de=f(L,W);H.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",de),H.clipDefRelative.select("path").attr("transform",null);var _e=f(L-ce._offset,W+V);H.layers.baxis.attr("transform",_e),H.layers.bgrid.attr("transform",_e);var ue=f(L+U/2,W)+"rotate(30)"+f(0,-Me._offset);H.layers.aaxis.attr("transform",ue),H.layers.agrid.attr("transform",ue);var pe=f(L+U/2,W)+"rotate(-30)"+f(0,-we._offset);H.layers.caxis.attr("transform",pe),H.layers.cgrid.attr("transform",pe),H.drawAxes(!0),H.layers.aline.select("path").attr("d",Me.showline?"M"+L+","+(W+V)+"l"+U/2+",-"+V:"M0,0").call(m.stroke,Me.linecolor||"#000").style("stroke-width",(Me.linewidth||0)+"px"),H.layers.bline.select("path").attr("d",ce.showline?"M"+L+","+(W+V)+"h"+U:"M0,0").call(m.stroke,ce.linecolor||"#000").style("stroke-width",(ce.linewidth||0)+"px"),H.layers.cline.select("path").attr("d",we.showline?"M"+(L+U/2)+","+W+"l"+U/2+","+V:"M0,0").call(m.stroke,we.linecolor||"#000").style("stroke-width",(we.linewidth||0)+"px"),H.graphDiv._context.staticPlot||H.initInteractions(),g.setClipUrl(H.layers.frontplot,H._hasClipOnAxisFalse?null:H.clipId,H.graphDiv)},I.drawAxes=function(q){var Y=this,L=Y.graphDiv,W=Y.id.substr(7)+"title",U=Y.layers,V=Y.aaxis,te=Y.baxis,ee=Y.caxis;if(Y.drawAx(V),Y.drawAx(te),Y.drawAx(ee),q){var H=Math.max(V.showticklabels?V.tickfont.size/2:0,(ee.showticklabels?.75*ee.tickfont.size:0)+(ee.ticks==="outside"?.87*ee.ticklen:0)),Z=(te.showticklabels?te.tickfont.size:0)+(te.ticks==="outside"?te.ticklen:0)+3;U["a-title"]=S.draw(L,"a"+W,{propContainer:V,propName:Y.id+".aaxis.title",placeholder:p(L,"Click to enter Component A title"),attributes:{x:Y.x0+Y.w/2,y:Y.y0-V.title.font.size/3-H,"text-anchor":"middle"}}),U["b-title"]=S.draw(L,"b"+W,{propContainer:te,propName:Y.id+".baxis.title",placeholder:p(L,"Click to enter Component B title"),attributes:{x:Y.x0-Z,y:Y.y0+Y.h+.83*te.title.font.size+Z,"text-anchor":"middle"}}),U["c-title"]=S.draw(L,"c"+W,{propContainer:ee,propName:Y.id+".caxis.title",placeholder:p(L,"Click to enter Component C title"),attributes:{x:Y.x0+Y.w+Z,y:Y.y0+Y.h+.83*ee.title.font.size+Z,"text-anchor":"middle"}})}},I.drawAx=function(q){var Y,L=this,W=L.graphDiv,U=q._name,V=U.charAt(0),te=q._id,ee=L.layers[U],H=V+"tickLayout",Z=(Y=q).ticks+String(Y.ticklen)+String(Y.showticklabels);L[H]!==Z&&(ee.selectAll("."+te+"tick").remove(),L[H]=Z),q.setScale();var G=y.calcTicks(q),X=y.clipEnds(q,G),Q=y.makeTransTickFn(q),re=y.getTickSigns(q)[2],ae=d.deg2rad(30),ie=re*(q.linewidth||1)/2,se=re*q.ticklen,he=L.w,Se=L.h,Oe=V==="b"?"M0,"+ie+"l"+Math.sin(ae)*se+","+Math.cos(ae)*se:"M"+ie+",0l"+Math.cos(ae)*se+","+-Math.sin(ae)*se,Pe={a:"M0,0l"+Se+",-"+he/2,b:"M0,0l-"+he/2+",-"+Se,c:"M0,0l-"+Se+","+he/2}[V];y.drawTicks(W,q,{vals:q.ticks==="inside"?X:G,layer:ee,path:Oe,transFn:Q,crisp:!1}),y.drawGrid(W,q,{vals:X,layer:L.layers[V+"grid"],path:Pe,transFn:Q,crisp:!1}),y.drawLabels(W,q,{vals:G,layer:ee,transFn:Q,labelFns:y.makeLabelFns(q,0,30)})};var F=P.MINZOOM/2+.87,j="m-0.87,.5h"+F+"v3h-"+(F+5.2)+"l"+(F/2+2.6)+",-"+(.87*F+4.5)+"l2.6,1.5l-"+F/2+","+.87*F+"Z",z="m0.87,.5h-"+F+"v3h"+(F+5.2)+"l-"+(F/2+2.6)+",-"+(.87*F+4.5)+"l-2.6,1.5l"+F/2+","+.87*F+"Z",B="m0,1l"+F/2+","+.87*F+"l2.6,-1.5l-"+(F/2+2.6)+",-"+(.87*F+4.5)+"l-"+(F/2+2.6)+","+(.87*F+4.5)+"l2.6,1.5l"+F/2+",-"+.87*F+"Z",N=!0;function R(q){s.select(q).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}I.clearOutline=function(){D(this.dragOptions),O(this.dragOptions.gd)},I.initInteractions=function(){var q,Y,L,W,U,V,te,ee,H,Z,G,X,Q=this,re=Q.layers.plotbg.select("path").node(),ae=Q.graphDiv,ie=ae._fullLayout._zoomlayer;function se(ne){var de={};return de[Q.id+".aaxis.min"]=ne.a,de[Q.id+".baxis.min"]=ne.b,de[Q.id+".caxis.min"]=ne.c,de}function he(ne,de){var _e=ae._fullLayout.clickmode;R(ae),ne===2&&(ae.emit("plotly_doubleclick",null),c.call("_guiRelayout",ae,se({a:0,b:0,c:0}))),_e.indexOf("select")>-1&&ne===1&&M(de,ae,[Q.xaxis],[Q.yaxis],Q.id,Q.dragOptions),_e.indexOf("event")>-1&&_.click(ae,de,Q.id)}function Se(ne,de){return 1-de/Q.h}function Oe(ne,de){return 1-(ne+(Q.h-de)/Math.sqrt(3))/Q.w}function Pe(ne,de){return(ne-(Q.h-de)/Math.sqrt(3))/Q.w}function Me(ne,de){var _e=L+ne*q,ue=W+de*Y,pe=Math.max(0,Math.min(1,Se(0,W),Se(0,ue))),xe=Math.max(0,Math.min(1,Oe(L,W),Oe(_e,ue))),ye=Math.max(0,Math.min(1,Pe(L,W),Pe(_e,ue))),Te=(pe/2+ye)*Q.w,Ae=(1-pe/2-xe)*Q.w,Re=(Te+Ae)/2,Le=Ae-Te,$e=(1-pe)*Q.h,Fe=$e-Le/A;Le.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),X.transition().style("opacity",1).duration(200),Z=!0),ae.emit("plotly_relayouting",se(te))}function ce(){R(ae),te!==U&&(c.call("_guiRelayout",ae,se(te)),N&&ae.data&&ae._context.showTips&&(d.notifier(p(ae,"Double-click to zoom back out"),"long"),N=!1))}function we(ne,de){var _e=ne/Q.xaxis._m,ue=de/Q.yaxis._m,pe=[(te={a:U.a-ue,b:U.b+(_e+ue)/2,c:U.c-(_e-ue)/2}).a,te.b,te.c].sort(d.sorterAsc),xe=pe.indexOf(te.a),ye=pe.indexOf(te.b),Te=pe.indexOf(te.c);pe[0]<0&&(pe[1]+pe[0]/2<0?(pe[2]+=pe[0]+pe[1],pe[0]=pe[1]=0):(pe[2]+=pe[0]/2,pe[1]+=pe[0]/2,pe[0]=0),te={a:pe[xe],b:pe[ye],c:pe[Te]},de=(U.a-te.a)*Q.yaxis._m,ne=(U.c-te.c-U.b+te.b)*Q.xaxis._m);var Ae=f(Q.x0+ne,Q.y0+de);Q.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Ae);var Re=f(-ne,-de);Q.clipDefRelative.select("path").attr("transform",Re),Q.aaxis.range=[te.a,Q.sum-te.b-te.c],Q.baxis.range=[Q.sum-te.a-te.c,te.b],Q.caxis.range=[Q.sum-te.a-te.b,te.c],Q.drawAxes(!1),Q._hasClipOnAxisFalse&&Q.plotContainer.select(".scatterlayer").selectAll(".trace").call(g.hideOutsideRangePoints,Q),ae.emit("plotly_relayouting",se(te))}function K(){c.call("_guiRelayout",ae,se(te))}this.dragOptions={element:re,gd:ae,plotinfo:{id:Q.id,domain:ae._fullLayout[Q.id].domain,xaxis:Q.xaxis,yaxis:Q.yaxis},subplot:Q.id,prepFn:function(ne,de,_e){Q.dragOptions.xaxes=[Q.xaxis],Q.dragOptions.yaxes=[Q.yaxis],q=ae._fullLayout._invScaleX,Y=ae._fullLayout._invScaleY;var ue=Q.dragOptions.dragmode=ae._fullLayout.dragmode;T(ue)?Q.dragOptions.minDrag=1:Q.dragOptions.minDrag=void 0,ue==="zoom"?(Q.dragOptions.moveFn=Me,Q.dragOptions.clickFn=he,Q.dragOptions.doneFn=ce,function(pe,xe,ye){var Te=re.getBoundingClientRect();L=xe-Te.left,W=ye-Te.top,ae._fullLayout._calcInverseTransform(ae);var Ae=ae._fullLayout._invTransform,Re=d.apply3DTransform(Ae)(L,W);L=Re[0],W=Re[1],U={a:Q.aaxis.range[0],b:Q.baxis.range[1],c:Q.caxis.range[1]},te=U,V=Q.aaxis.range[1]-U.a,ee=u(Q.graphDiv._fullLayout[Q.id].bgcolor).getLuminance(),H="M0,"+Q.h+"L"+Q.w/2+", 0L"+Q.w+","+Q.h+"Z",Z=!1,G=ie.append("path").attr("class","zoombox").attr("transform",f(Q.x0,Q.y0)).style({fill:ee>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",H),X=ie.append("path").attr("class","zoombox-corners").attr("transform",f(Q.x0,Q.y0)).style({fill:m.background,stroke:m.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),Q.clearOutline(ae)}(0,de,_e)):ue==="pan"?(Q.dragOptions.moveFn=we,Q.dragOptions.clickFn=he,Q.dragOptions.doneFn=K,U={a:Q.aaxis.range[0],b:Q.baxis.range[1],c:Q.caxis.range[1]},te=U,Q.clearOutline(ae)):(k(ue)||T(ue))&&C(ne,de,_e,Q.dragOptions,ue)}},re.onmousemove=function(ne){_.hover(ae,ne,Q.id),ae._fullLayout._lasthover=re,ae._fullLayout._hoversubplot=Q.id},re.onmouseout=function(ne){ae._dragging||w.unhover(ae,ne)},w.init(this.dragOptions)}},73972:function(i,o,a){var s=a(47769),u=a(64213),c=a(75138),d=a(41965),f=a(24401).addStyleRule,p=a(1426),m=a(9012),g=a(10820),b=p.extendFlat,v=p.extendDeepAll;function h(M){var O=M.name,D=M.categories,P=M.meta;if(o.modules[O])s.log("Type "+O+" already registered");else{o.subplotsRegistry[M.basePlotModule.name]||function(N){var R=N.name;if(o.subplotsRegistry[R])s.log("Plot type "+R+" already registered.");else for(var q in x(N),o.subplotsRegistry[R]=N,o.componentsRegistry)S(q,N.name)}(M.basePlotModule);for(var E={},I=0;I-1&&(w[x[g]].title={text:""});for(g=0;g")!==-1?"":I.html(F).text()});return I.remove(),A}(P)).replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(g,"'"),u.isIE()&&(P=(P=(P=P.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("#$2")')).replace(/(\\')/gi,'"')),P}},75341:function(i,o,a){var s=a(71828);i.exports=function(u,c){for(var d=0;dA+E||!s(I))}for(var j=0;jg))return f}return p!==void 0?p:d.dflt},o.coerceColor=function(d,f,p){return u(f).isValid()?f:p!==void 0?p:d.dflt},o.coerceEnumerated=function(d,f,p){return d.coerceNumber&&(f=+f),d.values.indexOf(f)!==-1?f:p!==void 0?p:d.dflt},o.getValue=function(d,f){var p;return Array.isArray(d)?f0?se+=he:T<0&&(se-=he)}return se}function ee(ie){var se=T,he=ie.b,Se=te(ie);return s.inbox(he-se,Se-se,F+(Se-se)/(Se-he)-1)}var H=v[k+"a"],Z=v[S+"a"];O=Math.abs(H.r2c(H.range[1])-H.r2c(H.range[0]));var G=s.getDistanceFunction(w,C,M,function(ie){return(C(ie)+M(ie))/2});if(s.getClosest(D,G,v),v.index!==!1&&D[v.index].p!==m){B||(L=function(ie){return Math.min(N(ie),ie.p-E.bargroupwidth/2)},W=function(ie){return Math.max(R(ie),ie.p+E.bargroupwidth/2)});var X=D[v.index],Q=P.base?X.b+X.s:X.s;v[S+"0"]=v[S+"1"]=Z.c2p(X[S],!0),v[S+"LabelVal"]=Q;var re=E.extents[E.extents.round(X.p)];v[k+"0"]=H.c2p(I?L(X):re[0],!0),v[k+"1"]=H.c2p(I?W(X):re[1],!0);var ae=X.orig_p!==void 0;return v[k+"LabelVal"]=ae?X.orig_p:X.p,v.labelLabel=p(H,v[k+"LabelVal"],P[k+"hoverformat"]),v.valueLabel=p(Z,v[S+"LabelVal"],P[S+"hoverformat"]),v.baseLabel=p(Z,X.b,P[S+"hoverformat"]),v.spikeDistance=(function(ie){var se=T,he=ie.b,Se=te(ie);return s.inbox(he-se,Se-se,j+(Se-se)/(Se-he)-1)}(X)+function(ie){return U(N(ie),R(ie),j)}(X))/2,v[k+"Spike"]=H.c2p(X.p,!0),d(X,P,v),v.hovertemplate=P.hovertemplate,v}}function b(v,h){var y=h.mcc||v.marker.color,w=h.mlcc||v.marker.line.color,_=f(v,h);return c.opacity(y)?y:c.opacity(w)&&_?w:void 0}i.exports={hoverPoints:function(v,h,y,w,_){var x=g(v,h,y,w,_);if(x){var T=x.cd,k=T[0].trace,S=T[x.index];return x.color=b(k,S),u.getComponentMethod("errorbars","hoverInfo")(S,k,x),[x]}},hoverOnBars:g,getTraceColor:b}},60822:function(i,o,a){i.exports={attributes:a(1486),layoutAttributes:a(43641),supplyDefaults:a(90769).supplyDefaults,crossTraceDefaults:a(90769).crossTraceDefaults,supplyLayoutDefaults:a(13957),calc:a(92290),crossTraceCalc:a(11661).crossTraceCalc,colorbar:a(4898),arraysToCalcdata:a(75341),plot:a(17295).plot,style:a(16688).style,styleOnSelect:a(16688).styleOnSelect,hoverPoints:a(95423).hoverPoints,eventData:a(58065),selectPoints:a(81974),moduleType:"trace",name:"bar",basePlotModule:a(93612),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}},43641:function(i){i.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},13957:function(i,o,a){var s=a(73972),u=a(89298),c=a(71828),d=a(43641);i.exports=function(f,p,m){function g(k,S){return c.coerce(f,p,d,k,S)}for(var b=!1,v=!1,h=!1,y={},w=g("barmode"),_=0;_0}function I(j){return j==="auto"?0:j}function A(j,z){var B=Math.PI/180*z,N=Math.abs(Math.sin(B)),R=Math.abs(Math.cos(B));return{x:j.width*R+j.height*N,y:j.width*N+j.height*R}}function F(j,z,B,N,R,q){var Y=!!q.isHorizontal,L=!!q.constrained,W=q.angle||0,U=q.anchor||"end",V=U==="end",te=U==="start",ee=((q.leftToRight||0)+1)/2,H=1-ee,Z=R.width,G=R.height,X=Math.abs(z-j),Q=Math.abs(N-B),re=X>2*C&&Q>2*C?C:0;X-=2*re,Q-=2*re;var ae=I(W);W!=="auto"||Z<=X&&G<=Q||!(Z>X||G>Q)||(Z>Q||G>X)&&Z.01?ye:function(Le,$e,Fe){return Fe&&Le===$e?Le:Math.abs(Le-$e)>=2?ye(Le):Le>$e?Math.ceil(Le):Math.floor(Le)};ne=Te(ne,de,re),de=Te(de,ne,re),_e=Te(_e,ue,!re),ue=Te(ue,_e,!re)}var Ae=P(c.ensureSingle(we,"path"),W,R,q);if(Ae.style("vector-effect",U?"none":"non-scaling-stroke").attr("d",isNaN((de-ne)*(ue-_e))||pe&&j._context.staticPlot?"M0,0Z":"M"+ne+","+_e+"V"+ue+"H"+de+"V"+_e+"Z").call(p.setClipUrl,z.layerClipId,j),!W.uniformtext.mode&&ae){var Re=p.makePointStyleFns(H);p.singlePointStyle(Oe,Ae,H,Re,j)}(function(Le,$e,Fe,Be,Ue,qe,Xe,ot,st,dt,vt){var We,ze=$e.xaxis,tt=$e.yaxis,it=Le._fullLayout;function St(Lt,gt,mt){return c.ensureSingle(Lt,"text").text(gt).attr({class:"bartext bartext-"+We,"text-anchor":"middle","data-notex":1}).call(p.font,mt).call(d.convertToTspans,Le)}var Ze=Be[0].trace,ut=Ze.orientation==="h",ht=function(Lt,gt,mt,xt,Ut){var It,zt=gt[0].trace;return It=zt.texttemplate?function(kt,Ot,At,Nt,$t){var Bt=Ot[0].trace,Xt=c.castOption(Bt,At,"texttemplate");if(!Xt)return"";var Zt,qt,Ht,sn,xn=Bt.type==="histogram",mn=Bt.type==="waterfall",dn=Bt.type==="funnel",gn=Bt.orientation==="h";function en(En){return g(sn,sn.c2l(En),!0).text}gn?(Zt="y",qt=$t,Ht="x",sn=Nt):(Zt="x",qt=Nt,Ht="y",sn=$t);var kn,un=Ot[At],tn={};tn.label=un.p,tn.labelLabel=tn[Zt+"Label"]=(kn=un.p,g(qt,qt.c2l(kn),!0).text);var Fn=c.castOption(Bt,un.i,"text");(Fn===0||Fn)&&(tn.text=Fn),tn.value=un.s,tn.valueLabel=tn[Ht+"Label"]=en(un.s);var Rn={};S(Rn,Bt,un.i),(xn||Rn.x===void 0)&&(Rn.x=gn?tn.value:tn.label),(xn||Rn.y===void 0)&&(Rn.y=gn?tn.label:tn.value),(xn||Rn.xLabel===void 0)&&(Rn.xLabel=gn?tn.valueLabel:tn.labelLabel),(xn||Rn.yLabel===void 0)&&(Rn.yLabel=gn?tn.labelLabel:tn.valueLabel),mn&&(tn.delta=+un.rawS||un.s,tn.deltaLabel=en(tn.delta),tn.final=un.v,tn.finalLabel=en(tn.final),tn.initial=tn.final-tn.delta,tn.initialLabel=en(tn.initial)),dn&&(tn.value=un.s,tn.valueLabel=en(tn.value),tn.percentInitial=un.begR,tn.percentInitialLabel=c.formatPercent(un.begR),tn.percentPrevious=un.difR,tn.percentPreviousLabel=c.formatPercent(un.difR),tn.percentTotal=un.sumR,tn.percenTotalLabel=c.formatPercent(un.sumR));var Bn=c.castOption(Bt,un.i,"customdata");return Bn&&(tn.customdata=Bn),c.texttemplateString(Xt,tn,kt._d3locale,Rn,tn,Bt._meta||{})}(Lt,gt,mt,xt,Ut):zt.textinfo?function(kt,Ot,At,Nt){var $t=kt[0].trace,Bt=$t.orientation==="h",Xt=$t.type==="waterfall",Zt=$t.type==="funnel";function qt(Bn){return g(Bt?At:Nt,+Bn,!0).text}var Ht,sn,xn=$t.textinfo,mn=kt[Ot],dn=xn.split("+"),gn=[],en=function(Bn){return dn.indexOf(Bn)!==-1};if(en("label")&&gn.push((sn=kt[Ot].p,g(Bt?Nt:At,sn,!0).text)),en("text")&&((Ht=c.castOption($t,mn.i,"text"))===0||Ht)&&gn.push(Ht),Xt){var kn=+mn.rawS||mn.s,un=mn.v,tn=un-kn;en("initial")&&gn.push(qt(tn)),en("delta")&&gn.push(qt(kn)),en("final")&&gn.push(qt(un))}if(Zt){en("value")&&gn.push(qt(mn.s));var Fn=0;en("percent initial")&&Fn++,en("percent previous")&&Fn++,en("percent total")&&Fn++;var Rn=Fn>1;en("percent initial")&&(Ht=c.formatPercent(mn.begR),Rn&&(Ht+=" of initial"),gn.push(Ht)),en("percent previous")&&(Ht=c.formatPercent(mn.difR),Rn&&(Ht+=" of previous"),gn.push(Ht)),en("percent total")&&(Ht=c.formatPercent(mn.sumR),Rn&&(Ht+=" of total"),gn.push(Ht))}return gn.join("
")}(gt,mt,xt,Ut):w.getValue(zt.text,mt),w.coerceString(T,It)}(it,Be,Ue,ze,tt);We=function(Lt,gt){var mt=w.getValue(Lt.textposition,gt);return w.coerceEnumerated(k,mt)}(Ze,Ue);var Rt=dt.mode==="stack"||dt.mode==="relative",Ct=Be[Ue],Wt=!Rt||Ct._outmost;if(ht&&We!=="none"&&(!Ct.isBlank&&qe!==Xe&&ot!==st||We!=="auto"&&We!=="inside")){var _t=it.font,be=y.getBarColor(Be[Ue],Ze),Ce=y.getInsideTextFont(Ze,Ue,_t,be),Ge=y.getOutsideTextFont(Ze,Ue,_t),He=Fe.datum();ut?ze.type==="log"&&He.s0<=0&&(qe=ze.range[0]0&&nt>0&&(Ye<=yt&&nt<=rt||Ye<=rt&&nt<=yt||(ut?yt>=Ye*(rt/nt):rt>=nt*(yt/Ye)))?We="inside":(We="outside",et.remove(),et=null)):We="inside"),!et){var Ft=(et=St(Fe,ht,ct=c.ensureUniformFontSize(Le,We==="outside"?Ge:Ce))).attr("transform");if(et.attr("transform",""),Ye=(Ke=p.bBox(et.node())).width,nt=Ke.height,et.attr("transform",Ft),Ye<=0||nt<=0)return void et.remove()}var Yt,Mt=Ze.textangle;Yt=We==="outside"?function(Lt,gt,mt,xt,Ut,It){var zt,kt=!!It.isHorizontal,Ot=!!It.constrained,At=It.angle||0,Nt=Ut.width,$t=Ut.height,Bt=Math.abs(gt-Lt),Xt=Math.abs(xt-mt);zt=kt?Xt>2*C?C:0:Bt>2*C?C:0;var Zt=1;Ot&&(Zt=kt?Math.min(1,Xt/$t):Math.min(1,Bt/Nt));var qt=I(At),Ht=A(Ut,qt),sn=(kt?Ht.x:Ht.y)/2,xn=(Ut.left+Ut.right)/2,mn=(Ut.top+Ut.bottom)/2,dn=(Lt+gt)/2,gn=(mt+xt)/2,en=0,kn=0,un=kt?D(gt,Lt):D(mt,xt);return kt?(dn=gt-un*zt,en=un*sn):(gn=xt+un*zt,kn=-un*sn),{textX:xn,textY:mn,targetX:dn,targetY:gn,anchorX:en,anchorY:kn,scale:Zt,rotate:qt}}(qe,Xe,ot,st,Ke,{isHorizontal:ut,constrained:Ze.constraintext==="both"||Ze.constraintext==="outside",angle:Mt}):F(qe,Xe,ot,st,Ke,{isHorizontal:ut,constrained:Ze.constraintext==="both"||Ze.constraintext==="inside",angle:Mt,anchor:Ze.insidetextanchor}),Yt.fontSize=ct.size,v(Ze.type==="histogram"?"bar":Ze.type,Yt,it),Ct.transform=Yt;var jt=P(et,it,dt,vt);c.setTransormAndDisplay(jt,Yt)}else Fe.select("text").remove()})(j,z,we,te,Pe,ne,de,_e,ue,R,q),z.layerClipId&&p.hideOutsideRangePoint(Oe,we.select("text"),Y,L,H.xcalendar,H.ycalendar)});var Se=H.cliponaxis===!1;p.setClipUrl(ee,Se?null:z.layerClipId,j)});m.getComponentMethod("errorbars","plot")(j,V,z,R)},toMoveInsideBar:F}},81974:function(i){function o(a,s,u,c,d){var f=s.c2p(c?a.s0:a.p0,!0),p=s.c2p(c?a.s1:a.p1,!0),m=u.c2p(c?a.p0:a.s0,!0),g=u.c2p(c?a.p1:a.s1,!0);return d?[(f+p)/2,(m+g)/2]:c?[p,(m+g)/2]:[(f+p)/2,g]}i.exports=function(a,s){var u,c=a.cd,d=a.xaxis,f=a.yaxis,p=c[0].trace,m=p.type==="funnel",g=p.orientation==="h",b=[];if(s===!1)for(u=0;u1||P.bargap===0&&P.bargroupgap===0&&!E[0].trace.marker.line.width)&&s.select(this).attr("shape-rendering","crispEdges")}),O.selectAll("g.points").each(function(E){y(s.select(this),E[0].trace,M)}),f.getComponentMethod("errorbars","style")(O)},styleTextPoints:w,styleOnSelect:function(M,O,D){var P=O[0].trace;P.selectedpoints?function(E,I,A){c.selectedPointStyle(E.selectAll("path"),I),function(F,j,z){F.each(function(B){var N,R=s.select(this);if(B.selected){N=d.ensureUniformFontSize(z,_(R,B,j,z));var q=j.selected.textfont&&j.selected.textfont.color;q&&(N.color=q),c.font(R,N)}else c.selectedTextStyle(R,j)})}(E.selectAll("text"),I,A)}(D,P,M):(y(D,P,M),f.getComponentMethod("errorbars","style")(D))},getInsideTextFont:T,getOutsideTextFont:k,getBarColor:C,resizeText:p}},98340:function(i,o,a){var s=a(7901),u=a(52075).hasColorscale,c=a(1586),d=a(71828).coercePattern;i.exports=function(f,p,m,g,b){var v=m("marker.color",g),h=u(f,"marker");h&&c(f,p,b,m,{prefix:"marker.",cLetter:"c"}),m("marker.line.color",s.defaultLine),u(f,"marker.line")&&c(f,p,b,m,{prefix:"marker.line.",cLetter:"c"}),m("marker.line.width"),m("marker.opacity"),d(m,"marker.pattern",v,h),m("selected.marker.color"),m("unselected.marker.color")}},72597:function(i,o,a){var s=a(39898),u=a(71828);function c(d){return"_"+d+"Text_minsize"}i.exports={recordMinTextSize:function(d,f,p){if(p.uniformtext.mode){var m=c(d),g=p.uniformtext.minsize,b=f.scale*f.fontSize;f.hide=bB.uf};if(k._hasPreCompStats){var G=k[O],X=function($e){return M.d2c((k[$e]||[])[S])},Q=1/0,re=-1/0;for(S=0;S=B.q1&&B.q3>=B.med){var ie=X("lowerfence");B.lf=ie!==f&&ie<=B.q1?ie:h(B,R,q);var se=X("upperfence");B.uf=se!==f&&se>=B.q3?se:y(B,R,q);var he=X("mean");B.mean=he!==f?he:q?d.mean(R,q):(B.q1+B.q3)/2;var Se=X("sd");B.sd=he!==f&&Se>=0?Se:q?d.stdev(R,q,B.mean):B.q3-B.q1,B.lo=w(B),B.uo=_(B);var Oe=X("notchspan");Oe=Oe!==f&&Oe>0?Oe:x(B,q),B.ln=B.med-Oe,B.un=B.med+Oe;var Pe=B.lf,Me=B.uf;k.boxpoints&&R.length&&(Pe=Math.min(Pe,R[0]),Me=Math.max(Me,R[q-1])),k.notched&&(Pe=Math.min(Pe,B.ln),Me=Math.max(Me,B.un)),B.min=Pe,B.max=Me}else{var ce;d.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+B.q1,"median = "+B.med,"q3 = "+B.q3].join(` -`)),ce=B.med!==f?B.med:B.q1!==f?B.q3!==f?(B.q1+B.q3)/2:B.q1:B.q3!==f?B.q3:0,B.med=ce,B.q1=B.q3=ce,B.lf=B.uf=ce,B.mean=B.sd=ce,B.ln=B.un=ce,B.min=B.max=ce}Q=Math.min(Q,B.min),re=Math.max(re,B.max),B.pts2=N.filter(Z),j.push(B)}}k._extremes[M._id]=u.findExtremes(M,[Q,re],{padded:!0})}else{var we=M.makeCalcdata(k,O),K=function($e,Fe){for(var Be=$e.length,Ue=new Array(Be+1),qe=0;qe=0&&_e0){var Ae,Re;(B={}).pos=B[P]=ee[S],N=B.pts=de[S].sort(b),q=(R=B[O]=N.map(v)).length,B.min=R[0],B.max=R[q-1],B.mean=d.mean(R,q),B.sd=d.stdev(R,q,B.mean)*k.sdmultiple,B.med=d.interp(R,.5),q%2&&(ye||Te)?(ye?(Ae=R.slice(0,q/2),Re=R.slice(q/2+1)):Te&&(Ae=R.slice(0,q/2+1),Re=R.slice(q/2)),B.q1=d.interp(Ae,.5),B.q3=d.interp(Re,.5)):(B.q1=d.interp(R,.25),B.q3=d.interp(R,.75)),B.lf=h(B,R,q),B.uf=y(B,R,q),B.lo=w(B),B.uo=_(B);var Le=x(B,q);B.ln=B.med-Le,B.un=B.med+Le,ue=Math.min(ue,B.ln),pe=Math.max(pe,B.un),B.pts2=N.filter(Z),j.push(B)}k._extremes[M._id]=u.findExtremes(M,k.notched?we.concat([ue,pe]):we,{padded:!0})}return function($e,Fe){if(d.isArrayOrTypedArray(Fe.selectedpoints))for(var Be=0;Be<$e.length;Be++){for(var Ue=$e[Be].pts||[],qe={},Xe=0;Xe0?(j[0].t={num:I[z],dPos:H,posLetter:P,valLetter:O,labels:{med:p(T,"median:"),min:p(T,"min:"),q1:p(T,"q1:"),q3:p(T,"q3:"),max:p(T,"max:"),mean:k.boxmean==="sd"||k.sizemode==="sd"?p(T,"mean ± σ:").replace("σ",k.sdmultiple===1?"σ":k.sdmultiple+"σ"):p(T,"mean:"),lf:p(T,"lower fence:"),uf:p(T,"upper fence:")}},I[z]++,j):[{t:{empty:!0}}]};var m={text:"tx",hovertext:"htx"};function g(T,k,S){for(var C in m)d.isArrayOrTypedArray(k[C])&&(Array.isArray(S)?d.isArrayOrTypedArray(k[C][S[0]])&&(T[m[C]]=k[C][S[0]][S[1]]):T[m[C]]=k[C][S])}function b(T,k){return T.v-k.v}function v(T){return T.v}function h(T,k,S){return S===0?T.q1:Math.min(T.q1,k[Math.min(d.findBin(2.5*T.q1-1.5*T.q3,k,!0)+1,S-1)])}function y(T,k,S){return S===0?T.q3:Math.max(T.q3,k[Math.max(d.findBin(2.5*T.q3-1.5*T.q1,k),0)])}function w(T){return 4*T.q1-3*T.q3}function _(T){return 4*T.q3-3*T.q1}function x(T,k){return k===0?0:1.57*(T.q3-T.q1)/Math.sqrt(k)}},37188:function(i,o,a){var s=a(89298),u=a(71828),c=a(99082).getAxisGroup,d=["v","h"];function f(p,m,g,b){var v,h,y,w=m.calcdata,_=m._fullLayout,x=b._id,T=x.charAt(0),k=[],S=0;for(v=0;v1,P=1-_[p+"gap"],E=1-_[p+"groupgap"];for(v=0;v0){var ae=N.pointpos,ie=N.jitter,se=N.marker.size/2,he=0;ae+ie>=0&&((he=Q*(ae+ie))>z?(re=!0,G=se,H=he):he>te&&(G=se,H=z)),he<=z&&(H=z);var Se=0;ae-ie<=0&&((Se=-Q*(ae-ie))>B?(re=!0,X=se,Z=Se):Se>ee&&(X=se,Z=B)),Se<=B&&(Z=B)}else H=z,Z=B;var Oe=new Array(y.length);for(h=0;h0?(D="v",P=I>0?Math.min(F,A):Math.min(A)):I>0?(D="h",P=Math.min(F)):P=0;if(P){h._length=P;var q=y("orientation",D);h._hasPreCompStats?q==="v"&&I===0?(y("x0",0),y("dx",1)):q==="h"&&E===0&&(y("y0",0),y("dy",1)):q==="v"&&I===0?y("x0"):q==="h"&&E===0&&y("y0"),u.getComponentMethod("calendars","handleTraceDefaults")(v,h,["x","y"],w)}else h.visible=!1}function b(v,h,y,w){var _=w.prefix,x=s.coerce2(v,h,m,"marker.outliercolor"),T=y("marker.line.outliercolor"),k="outliers";h._hasPreCompStats?k="all":(x||T)&&(k="suspectedoutliers");var S=y(_+"points",k);S?(y("jitter",S==="all"?.3:0),y("pointpos",S==="all"?-1.5:0),y("marker.symbol"),y("marker.opacity"),y("marker.size"),y("marker.angle"),y("marker.color",h.line.color),y("marker.line.color"),y("marker.line.width"),S==="suspectedoutliers"&&(y("marker.line.outliercolor",h.marker.color),y("marker.line.outlierwidth")),y("selected.marker.color"),y("unselected.marker.color"),y("selected.marker.size"),y("unselected.marker.size"),y("text"),y("hovertext")):delete h.marker;var C=y("hoveron");C!=="all"&&C.indexOf("points")===-1||y("hovertemplate"),s.coerceSelectionMarkerOpacity(h,y)}i.exports={supplyDefaults:function(v,h,y,w){function _(P,E){return s.coerce(v,h,m,P,E)}if(g(v,h,_,w),h.visible!==!1){d(v,h,w,_),_("xhoverformat"),_("yhoverformat");var x=h._hasPreCompStats;x&&(_("lowerfence"),_("upperfence")),_("line.color",(v.marker||{}).color||y),_("line.width"),_("fillcolor",c.addOpacity(h.line.color,.5));var T=!1;if(x){var k=_("mean"),S=_("sd");k&&k.length&&(T=!0,S&&S.length&&(T="sd"))}_("whiskerwidth");var C,M=_("sizemode");M==="quartiles"&&(C=_("boxmean",T)),_("showwhiskers",M==="quartiles"),M!=="sd"&&C!=="sd"||_("sdmultiple"),_("width"),_("quartilemethod");var O=!1;if(x){var D=_("notchspan");D&&D.length&&(O=!0)}else s.validate(v.notchwidth,m.notchwidth)&&(O=!0);_("notched",O)&&_("notchwidth"),b(v,h,_,{prefix:"box"})}},crossTraceDefaults:function(v,h){var y,w;function _(k){return s.coerce(w._input,w,m,k)}for(var x=0;xS.lo&&(R.so=!0)}return O});k.enter().append("path").classed("point",!0),k.exit().remove(),k.call(c.translatePoints,h,y)}function p(m,g,b,v){var h,y,w=g.val,_=g.pos,x=!!_.rangebreaks,T=v.bPos,k=v.bPosPxOffset||0,S=b.boxmean||(b.meanline||{}).visible;Array.isArray(v.bdPos)?(h=v.bdPos[0],y=v.bdPos[1]):(h=v.bdPos,y=v.bdPos);var C=m.selectAll("path.mean").data(b.type==="box"&&b.boxmean||b.type==="violin"&&b.box.visible&&b.meanline.visible?u.identity:[]);C.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),C.exit().remove(),C.each(function(M){var O=_.c2l(M.pos+T,!0),D=_.l2p(O-h)+k,P=_.l2p(O+y)+k,E=x?(D+P)/2:_.l2p(O)+k,I=w.c2p(M.mean,!0),A=w.c2p(M.mean-M.sd,!0),F=w.c2p(M.mean+M.sd,!0);b.orientation==="h"?s.select(this).attr("d","M"+I+","+D+"V"+P+(S==="sd"?"m0,0L"+A+","+E+"L"+I+","+D+"L"+F+","+E+"Z":"")):s.select(this).attr("d","M"+D+","+I+"H"+P+(S==="sd"?"m0,0L"+E+","+A+"L"+D+","+I+"L"+E+","+F+"Z":""))})}i.exports={plot:function(m,g,b,v){var h=m._context.staticPlot,y=g.xaxis,w=g.yaxis;u.makeTraceGroups(v,b,"trace boxes").each(function(_){var x,T,k=s.select(this),S=_[0],C=S.t,M=S.trace;C.wdPos=C.bdPos*M.whiskerwidth,M.visible!==!0||C.empty?k.remove():(M.orientation==="h"?(x=w,T=y):(x=y,T=w),d(k,{pos:x,val:T},M,C,h),f(k,{x:y,y:w},M,C),p(k,{pos:x,val:T},M,C))})},plotBoxAndWhiskers:d,plotPoints:f,plotBoxMean:p}},24626:function(i){i.exports=function(o,a){var s,u,c=o.cd,d=o.xaxis,f=o.yaxis,p=[];if(a===!1)for(s=0;sf.level||f.starts.length&&d===f.level)}break;case"constraint":if(u.prefixBoundary=!1,u.edgepaths.length)return;var p=u.x.length,m=u.y.length,g=-1/0,b=1/0;for(s=0;s":y>g&&(u.prefixBoundary=!0);break;case"<":(yg||u.starts.length&&h===b)&&(u.prefixBoundary=!0);break;case"][":v=Math.min(y[0],y[1]),h=Math.max(y[0],y[1]),vg&&(u.prefixBoundary=!0)}}}},90654:function(i,o,a){var s=a(21081),u=a(86068),c=a(53572);i.exports={min:"zmin",max:"zmax",calc:function(d,f,p){var m=f.contours,g=f.line,b=m.size||1,v=m.coloring,h=u(f,{isColorbar:!0});if(v==="heatmap"){var y=s.extractOpts(f);p._fillgradient=y.reversescale?s.flipScale(y.colorscale):y.colorscale,p._zrange=[y.min,y.max]}else v==="fill"&&(p._fillcolor=h);p._line={color:v==="lines"?h:g.color,width:m.showlines!==!1?g.width:0,dash:g.dash},p._levels={start:m.start,end:c(m),size:b}}}},36914:function(i){i.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},83179:function(i,o,a){var s=a(92770),u=a(14523),c=a(7901),d=c.addOpacity,f=c.opacity,p=a(74808),m=p.CONSTRAINT_REDUCTION,g=p.COMPARISON_OPS2;i.exports=function(b,v,h,y,w,_){var x,T,k,S=v.contours,C=h("contours.operation");S._operation=m[C],function(M,O){var D;g.indexOf(O.operation)===-1?(M("contours.value",[0,1]),Array.isArray(O.value)?O.value.length>2?O.value=O.value.slice(2):O.length===0?O.value=[0,1]:O.length<2?(D=parseFloat(O.value[0]),O.value=[D,D+1]):O.value=[parseFloat(O.value[0]),parseFloat(O.value[1])]:s(O.value)&&(D=parseFloat(O.value),O.value=[D,D+1])):(M("contours.value",0),s(O.value)||(Array.isArray(O.value)?O.value=parseFloat(O.value[0]):O.value=0))}(h,S),C==="="?x=S.showlines=!0:(x=h("contours.showlines"),k=h("fillcolor",d((b.line||{}).color||w,.5))),x&&(T=h("line.color",k&&f(k)?d(v.fillcolor,1):w),h("line.width",2),h("line.dash")),h("line.smoothing"),u(h,y,T,_)}},64237:function(i,o,a){var s=a(74808),u=a(92770);function c(p,m){var g,b=Array.isArray(m);function v(h){return u(h)?+h:null}return s.COMPARISON_OPS2.indexOf(p)!==-1?g=v(b?m[0]:m):s.INTERVAL_OPS.indexOf(p)!==-1?g=b?[v(m[0]),v(m[1])]:[v(m),v(m)]:s.SET_OPS.indexOf(p)!==-1&&(g=b?m.map(v):[v(m)]),g}function d(p){return function(m){m=c(p,m);var g=Math.min(m[0],m[1]),b=Math.max(m[0],m[1]);return{start:g,end:b,size:b-g}}}function f(p){return function(m){return{start:m=c(p,m),end:1/0,size:1/0}}}i.exports={"[]":d("[]"),"][":d("]["),">":f(">"),"<":f("<"),"=":f("=")}},67217:function(i){i.exports=function(o,a,s,u){var c=u("contours.start"),d=u("contours.end"),f=c===!1||d===!1,p=s("contours.size");!(f?a.autocontour=!0:s("autocontour",!1))&&p||s("ncontours")}},84857:function(i,o,a){var s=a(71828);function u(c){return s.extendFlat({},c,{edgepaths:s.extendDeep([],c.edgepaths),paths:s.extendDeep([],c.paths),starts:s.extendDeep([],c.starts)})}i.exports=function(c,d){var f,p,m,g=function(h){return h.reverse()},b=function(h){return h};switch(d){case"=":case"<":return c;case">":for(c.length!==1&&s.warn("Contour data invalid for the specified inequality operation."),p=c[0],f=0;f1e3){s.warn("Too many contours, clipping at 1000",d);break}return b}},53572:function(i){i.exports=function(o){return o.end+o.size/1e6}},81696:function(i,o,a){var s=a(71828),u=a(36914);function c(p,m,g,b){return Math.abs(p[0]-m[0])20&&re?Q===208||Q===1114?ie=ae[0]===0?1:-1:se=ae[1]===0?1:-1:u.BOTTOMSTART.indexOf(Q)!==-1?se=1:u.LEFTSTART.indexOf(Q)!==-1?ie=1:u.TOPSTART.indexOf(Q)!==-1?se=-1:ie=-1,[ie,se]}(w,g,m),x=[f(p,m,[-_[0],-_[1]])],T=p.z.length,k=p.z[0].length,S=m.slice(),C=_.slice();for(h=0;h<1e4;h++){if(w>20?(w=u.CHOOSESADDLE[w][(_[0]||_[1])<0?0:1],p.crossings[y]=u.SADDLEREMAINDER[w]):delete p.crossings[y],!(_=u.NEWDELTA[w])){s.log("Found bad marching index:",w,m,p.level);break}x.push(f(p,m,_)),m[0]+=_[0],m[1]+=_[1],y=m.join(","),c(x[x.length-1],x[x.length-2],b,v)&&x.pop();var M=_[0]&&(m[0]<0||m[0]>k-2)||_[1]&&(m[1]<0||m[1]>T-2);if(m[0]===S[0]&&m[1]===S[1]&&_[0]===C[0]&&_[1]===C[1]||g&&M)break;w=p.crossings[y]}h===1e4&&s.log("Infinite loop in contour?");var O,D,P,E,I,A,F,j,z,B,N,R,q,Y,L,W=c(x[0],x[x.length-1],b,v),U=0,V=.2*p.smoothing,te=[],ee=0;for(h=1;h=ee;h--)if((O=te[h])=ee&&O+te[D]j&&z--,p.edgepaths[z]=N.concat(x,B));break}X||(p.edgepaths[j]=x.concat(B))}for(j=0;j=C)&&(p<=S&&(p=S),m>=C&&(m=C),b=Math.floor((m-p)/g)+1,v=0),w=0;wS&&(T.unshift(S),k.unshift(k[0])),T[T.length-1]c?0:1)+(d[0][1]>c?0:2)+(d[1][1]>c?0:4)+(d[1][0]>c?0:8);return f===5||f===10?c>(d[0][0]+d[0][1]+d[1][0]+d[1][1])/4?f===5?713:1114:f===5?104:208:f===15?0:f}i.exports=function(c){var d,f,p,m,g,b,v,h,y,w=c[0].z,_=w.length,x=w[0].length,T=_===2||x===2;for(f=0;f<_-1;f++)for(m=[],f===0&&(m=m.concat(s.BOTTOMSTART)),f===_-2&&(m=m.concat(s.TOPSTART)),d=0;d=0&&(D=L,E=I):Math.abs(O[1]-D[1])<.01?Math.abs(O[1]-L[1])<.01&&(L[0]-O[0])*(D[0]-L[0])>=0&&(D=L,E=I):u.log("endpt to newendpt is not vert. or horz.",O,D,L)}if(O=D,E>=0)break;j+="L"+D}if(E===C.edgepaths.length){u.log("unclosed perimeter path");break}z=E,(N=B.indexOf(z)===-1)&&(z=B[0],j+="Z")}for(z=0;zD.center?D.right-I:I-D.left)/(j+Math.abs(Math.sin(F)*E)),N=(A>D.middle?D.bottom-A:A-D.top)/(Math.abs(z)+Math.cos(F)*E);if(B<1||N<1)return 1/0;var R=x.EDGECOST*(1/(B-1)+1/(N-1));R+=x.ANGLECOST*F*F;for(var q=I-j,Y=A-z,L=I+j,W=A+z,U=0;U2*x.MAXCOST)break;N&&(I/=2),A=(E=F-I/2)+1.5*I}if(B<=x.MAXCOST)return j},o.addLabelData=function(C,M,O,D){var P=M.fontSize,E=M.width+P/3,I=Math.max(0,M.height-P/3),A=C.x,F=C.y,j=C.theta,z=Math.sin(j),B=Math.cos(j),N=function(q,Y){return[A+q*B-Y*z,F+q*z+Y*B]},R=[N(-E/2,-I/2),N(-E/2,I/2),N(E/2,I/2),N(E/2,-I/2)];O.push({text:M.text,x:A,y:F,dy:M.dy,theta:j,level:M.level,width:E,height:I}),D.push(R)},o.drawLabels=function(C,M,O,D,P){var E=C.selectAll("text").data(M,function(F){return F.text+","+F.x+","+F.y+","+F.theta});if(E.exit().remove(),E.enter().append("text").attr({"data-notex":1,"text-anchor":"middle"}).each(function(F){var j=F.x+Math.sin(F.theta)*F.dy,z=F.y-Math.cos(F.theta)*F.dy;s.select(this).text(F.text).attr({x:j,y:z,transform:"rotate("+180*F.theta/Math.PI+" "+j+" "+z+")"}).call(f.convertToTspans,O)}),P){for(var I="",A=0;Ap.end&&(p.start=p.end=(p.start+p.end)/2),d._input.contours||(d._input.contours={}),u.extendFlat(d._input.contours,{start:p.start,end:p.end,size:p.size}),d._input.autocontour=!0}else if(p.type!=="constraint"){var v,h=p.start,y=p.end,w=d._input.contours;h>y&&(p.start=w.start=y,y=p.end=w.end=h,h=p.start),p.size>0||(v=h===y?1:c(h,y,d.ncontours).dtick,w.size=p.size=v)}}},84426:function(i,o,a){var s=a(39898),u=a(91424),c=a(70035),d=a(86068);i.exports=function(f){var p=s.select(f).selectAll("g.contour");p.style("opacity",function(m){return m[0].trace.opacity}),p.each(function(m){var g=s.select(this),b=m[0].trace,v=b.contours,h=b.line,y=v.size||1,w=v.start,_=v.type==="constraint",x=!_&&v.coloring==="lines",T=!_&&v.coloring==="fill",k=x||T?d(b):null;g.selectAll("g.contourlevel").each(function(M){s.select(this).selectAll("path").call(u.lineGroupStyle,h.width,x?k(M.level):h.color,h.dash)});var S=v.labelfont;if(g.selectAll("g.contourlabels text").each(function(M){u.font(s.select(this),{family:S.family,size:S.size,color:S.color||(x?k(M.level):h.color)})}),_)g.selectAll("g.contourfill path").style("fill",b.fillcolor);else if(T){var C;g.selectAll("g.contourfill path").style("fill",function(M){return C===void 0&&(C=M.level),k(M.level+.5*y)}),C===void 0&&(C=w),g.selectAll("g.contourbg path").style("fill",k(C-.5*y))}}),c(f)}},8724:function(i,o,a){var s=a(1586),u=a(14523);i.exports=function(c,d,f,p,m){var g,b=f("contours.coloring"),v="";b==="fill"&&(g=f("contours.showlines")),g!==!1&&(b!=="lines"&&(v=f("line.color","#000")),f("line.width",.5),f("line.dash")),b!=="none"&&(c.showlegend!==!0&&(d.showlegend=!1),d._dfltShowLegend=!1,s(c,d,p,f,{prefix:"",cLetter:"z"})),f("line.smoothing"),u(f,p,v,m)}},21606:function(i,o,a){var s=a(82196),u=a(9012),c=a(41940),d=a(12663).axisHoverFormat,f=a(5386).fF,p=a(5386).si,m=a(50693),g=a(1426).extendFlat;i.exports=g({z:{valType:"data_array",editType:"calc"},x:g({},s.x,{impliedEdits:{xtype:"array"}}),x0:g({},s.x0,{impliedEdits:{xtype:"scaled"}}),dx:g({},s.dx,{impliedEdits:{xtype:"scaled"}}),y:g({},s.y,{impliedEdits:{ytype:"array"}}),y0:g({},s.y0,{impliedEdits:{ytype:"scaled"}}),dy:g({},s.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:g({},s.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:g({},s.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:g({},s.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:g({},s.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:g({},s.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:g({},s.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:d("x"),yhoverformat:d("y"),zhoverformat:d("z",1),hovertemplate:f(),texttemplate:p({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:c({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:g({},u.showlegend,{dflt:!1})},{transforms:void 0},m("",{cLetter:"z",autoColorDflt:!1}))},90757:function(i,o,a){var s=a(73972),u=a(71828),c=a(89298),d=a(42973),f=a(17562),p=a(78803),m=a(68296),g=a(4742),b=a(824),v=a(43907),h=a(70769),y=a(50606).BADNUM;function w(_){for(var x=[],T=_.length,k=0;k1){var X=(G[G.length-1]-G[0])/(G.length-1),Q=Math.abs(X/100);for(I=0;IQ)return!1}return!0}(F.rangebreaks||j.rangebreaks)&&(E=function(G,X,Q){for(var re=[],ae=-1,ie=0;ie=0;m--)(g=((y[[(d=(p=w[m])[0])-1,f=p[1]]]||T)[2]+(y[[d+1,f]]||T)[2]+(y[[d,f-1]]||T)[2]+(y[[d,f+1]]||T)[2])/20)&&(b[p]=[d,f,g],w.splice(m,1),v=!0);if(!v)throw"findEmpties iterated with no new neighbors";for(p in b)y[p]=b[p],h.push(b[p])}return h.sort(function(S,C){return C[2]-S[2]})}},46248:function(i,o,a){var s=a(30211),u=a(71828),c=a(89298),d=a(21081).extractOpts;i.exports=function(f,p,m,g,b){b||(b={});var v,h,y,w,_=b.isContour,x=f.cd[0],T=x.trace,k=f.xa,S=f.ya,C=x.x,M=x.y,O=x.z,D=x.xCenter,P=x.yCenter,E=x.zmask,I=T.zhoverformat,A=C,F=M;if(f.index!==!1){try{y=Math.round(f.index[1]),w=Math.round(f.index[0])}catch{return void u.error("Error hovering on heatmap, pointNumber must be [row,col], found:",f.index)}if(y<0||y>=O[0].length||w<0||w>O.length)return}else{if(s.inbox(p-C[0],p-C[C.length-1],0)>0||s.inbox(m-M[0],m-M[M.length-1],0)>0)return;if(_){var j;for(A=[2*C[0]-C[1]],j=1;jC&&(O=Math.max(O,Math.abs(f[b][v]-S)/(M-C))))}return O}i.exports=function(f,p){var m,g=1;for(d(f,p),m=0;m.01;m++)g=d(f,p,c(g));return g>.01&&s.log("interp2d didn't converge quickly",g),f}},58623:function(i,o,a){var s=a(71828);i.exports=function(u,c){u("texttemplate");var d=s.extendFlat({},c.font,{color:"auto",size:"auto"});s.coerceFont(u,"textfont",d)}},70769:function(i,o,a){var s=a(73972),u=a(71828).isArrayOrTypedArray;i.exports=function(c,d,f,p,m,g){var b,v,h,y=[],w=s.traceIs(c,"contour"),_=s.traceIs(c,"histogram"),x=s.traceIs(c,"gl2d");if(u(d)&&d.length>1&&!_&&g.type!=="category"){var T=d.length;if(!(T<=m))return w?d.slice(0,m):d.slice(0,m+1);if(w||x)y=d.slice(0,m);else if(m===1)y=[d[0]-.5,d[0]+.5];else{for(y=[1.5*d[0]-.5*d[1]],h=1;h0;)B=A.c2p(G[Y]),Y--;for(B0;)q=F.c2p(X[Y]),Y--;q=A._length||B<=0||R>=F._length||q<=0)return U.selectAll("image").data([]).exit().remove(),void S(U);Pe==="fast"?(ce=he,we=se):(ce=K,we=ne);var de=document.createElement("canvas");de.width=ce,de.height=we;var _e,ue,pe=de.getContext("2d",{willReadFrequently:!0}),xe=h(te,{noNumericCheck:!0,returnArray:!0});Pe==="fast"?(_e=Se?function(kn){return he-1-kn}:p.identity,ue=Oe?function(kn){return se-1-kn}:p.identity):(_e=function(kn){return p.constrain(Math.round(A.c2p(G[kn])-z),0,K)},ue=function(kn){return p.constrain(Math.round(F.c2p(X[kn])-R),0,ne)});var ye,Te,Ae,Re,Le=ue(0),$e=[Le,Le],Fe=Se?0:1,Be=Oe?0:1,Ue=0,qe=0,Xe=0,ot=0;function st(kn,un){if(kn!==void 0){var tn=xe(kn);return tn[0]=Math.round(tn[0]),tn[1]=Math.round(tn[1]),tn[2]=Math.round(tn[2]),Ue+=un,qe+=tn[0]*un,Xe+=tn[1]*un,ot+=tn[2]*un,tn}return[0,0,0,0]}function dt(kn,un,tn,Fn){var Rn=kn[tn.bin0];if(Rn===void 0)return st(void 0,1);var Bn,En=kn[tn.bin1],Wn=un[tn.bin0],gr=un[tn.bin1],Va=En-Rn||0,ro=Wn-Rn||0;return Bn=En===void 0?gr===void 0?0:Wn===void 0?2*(gr-Rn):2*(2*gr-Wn-Rn)/3:gr===void 0?Wn===void 0?0:2*(2*Rn-En-Wn)/3:Wn===void 0?2*(2*gr-En-Rn)/3:gr+Rn-En-Wn,st(Rn+tn.frac*Va+Fn.frac*(ro+tn.frac*Bn))}if(Pe!=="default"){var vt,We=0;try{vt=new Uint8Array(ce*we*4)}catch{vt=new Array(ce*we*4)}if(Pe==="smooth"){var ze,tt,it,St=Q||G,Ze=re||X,ut=new Array(St.length),ht=new Array(Ze.length),Rt=new Array(K),Ct=Q?M:C,Wt=re?M:C;for(Y=0;Ygt||gt>F._length))for(L=Yt;Lxt||xt>A._length)){var Ut=g({x:mt,y:Lt},te,D._fullLayout);Ut.x=mt,Ut.y=Lt;var It=V.z[Y][L];It===void 0?(Ut.z="",Ut.zLabel=""):(Ut.z=It,Ut.zLabel=f.tickText(ct,It,"hover").text);var zt=V.text&&V.text[Y]&&V.text[Y][L];zt!==void 0&&zt!==!1||(zt=""),Ut.text=zt;var kt=p.texttemplateString(Ye,Ut,D._fullLayout._d3locale,Ut,te._meta||{});if(kt){var Ot=kt.split("
"),At=Ot.length,Nt=0;for(W=0;W0&&(C=!0);for(var D=0;Dp){var m=p-d[u];return d[u]=p,m}}return 0},max:function(u,c,d,f){var p=f[c];if(s(p)){if(p=Number(p),!s(d[u]))return d[u]=p,p;if(d[u]m?w>d?w>1.1*u?u:w>1.1*c?c:d:w>f?f:w>p?p:m:Math.pow(10,Math.floor(Math.log(w)/Math.LN10))}function h(w,_,x,T,k,S){if(T&&w>d){var C=y(_,k,S),M=y(x,k,S),O=w===u?0:1;return C[O]!==M[O]}return Math.floor(x/w)-Math.floor(_/w)>.1}function y(w,_,x){var T=_.c2d(w,u,x).split("-");return T[0]===""&&(T.unshift(),T[0]="-"+T[0]),T}i.exports=function(w,_,x,T,k){var S,C,M=-1.1*_,O=-.1*_,D=w-O,P=x[0],E=x[1],I=Math.min(b(P+O,P+D,T,k),b(E+O,E+D,T,k)),A=Math.min(b(P+M,P+O,T,k),b(E+M,E+O,T,k));if(I>A&&Ad){var F=S===u?1:6,j=S===u?"M12":"M1";return function(z,B){var N=T.c2d(z,u,k),R=N.indexOf("-",F);R>0&&(N=N.substr(0,R));var q=T.d2c(N,0,k);if(qw.r2l(X)&&(re=d.tickIncrement(re,A.size,!0,C)),ee.start=w.l2r(re),G||u.nestedProperty(y,P+".start").set(ee.start)}var ae=A.end,ie=w.r2l(te.end),se=ie!==void 0;if((A.endFound||se)&&ie!==w.r2l(ae)){var he=se?ie:u.aggNums(Math.max,null,M);ee.end=w.l2r(he),se||u.nestedProperty(y,P+".start").set(ee.end)}var Se="autobin"+_;return y._input[Se]===!1&&(y._input[P]=u.extendFlat({},y[P]||{}),delete y._input[Se],delete y[Se]),[ee,M]}i.exports={calc:function(h,y){var w,_,x,T,k=[],S=[],C=y.orientation==="h",M=d.getFromId(h,C?y.yaxis:y.xaxis),O=C?"y":"x",D={x:"y",y:"x"}[O],P=y[O+"calendar"],E=y.cumulative,I=v(h,y,M,O),A=I[0],F=I[1],j=typeof A.size=="string",z=[],B=j?z:A,N=[],R=[],q=[],Y=0,L=y.histnorm,W=y.histfunc,U=L.indexOf("density")!==-1;E.enabled&&U&&(L=L.replace(/ ?density$/,""),U=!1);var V,te=W==="max"||W==="min"?null:0,ee=p.count,H=m[L],Z=!1,G=function(ne){return M.r2c(ne,0,P)};for(u.isArrayOrTypedArray(y[D])&&W!=="count"&&(V=y[D],Z=W==="avg",ee=p[W]),w=G(A.start),x=G(A.end)+(w-d.tickIncrement(w,A.size,!1,P))/1e6;w=0&&T=0;ue--)Te(ue);else if(de==="increasing"){for(ue=1;ue=0;ue--)ne[ue]+=ne[ue+1];_e==="exclude"&&(ne.push(0),ne.shift())}}(S,E.direction,E.currentbin);var Pe=Math.min(k.length,S.length),Me=[],ce=0,we=Pe-1;for(w=0;w=ce;w--)if(S[w]){we=w;break}for(w=ce;w<=we;w++)if(s(k[w])&&s(S[w])){var K={p:k[w],s:S[w],b:0};E.enabled||(K.pts=q[w],ie?K.ph0=K.ph1=q[w].length?F[q[w][0]]:k[w]:(y._computePh=!0,K.ph0=re(z[w]),K.ph1=re(z[w+1],!0))),Me.push(K)}return Me.length===1&&(Me[0].width1=d.tickIncrement(Me[0].p,A.size,!1,P)-Me[0].p),f(Me,y),u.isArrayOrTypedArray(y.selectedpoints)&&u.tagSelected(Me,y,Se),Me},calcAllAutoBins:v}},72406:function(i){i.exports={eventDataKeys:["binNumber"]}},82222:function(i,o,a){var s=a(71828),u=a(41675),c=a(73972).traceIs,d=a(26125),f=s.nestedProperty,p=a(99082).getAxisGroup,m=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],g=["x","y"];i.exports=function(b,v){var h,y,w,_,x,T,k,S=v._histogramBinOpts={},C=[],M={},O=[];function D(U,V){return s.coerce(h._input,h,h._module.attributes,U,V)}function P(U){return U.orientation==="v"?"x":"y"}function E(U,V,te){var ee=U.uid+"__"+te;V||(V=ee);var H=function(Q,re){return u.getFromTrace({_fullLayout:v},Q,re).type}(U,te),Z=U[te+"calendar"]||"",G=S[V],X=!0;G&&(H===G.axType&&Z===G.calendar?(X=!1,G.traces.push(U),G.dirs.push(te)):(V=ee,H!==G.axType&&s.warn(["Attempted to group the bins of trace",U.index,"set on a","type:"+H,"axis","with bins on","type:"+G.axType,"axis."].join(" ")),Z!==G.calendar&&s.warn(["Attempted to group the bins of trace",U.index,"set with a",Z,"calendar","with bins",G.calendar?"on a "+G.calendar+" calendar":"w/o a set calendar"].join(" ")))),X&&(S[V]={traces:[U],dirs:[te],axType:H,calendar:U[te+"calendar"]||""}),U["_"+te+"bingroup"]=V}for(x=0;xz&&I.splice(z,I.length-z),j.length>z&&j.splice(z,j.length-z);var B=[],N=[],R=[],q=typeof E.size=="string",Y=typeof F.size=="string",L=[],W=[],U=q?L:E,V=Y?W:F,te=0,ee=[],H=[],Z=y.histnorm,G=y.histfunc,X=Z.indexOf("density")!==-1,Q=G==="max"||G==="min"?null:0,re=c.count,ae=d[Z],ie=!1,se=[],he=[],Se="z"in y?y.z:"marker"in y&&Array.isArray(y.marker.color)?y.marker.color:"";Se&&G!=="count"&&(ie=G==="avg",re=c[G]);var Oe=E.size,Pe=O(E.start),Me=O(E.end)+(Pe-u.tickIncrement(Pe,Oe,!1,C))/1e6;for(w=Pe;w=0&&x=0&&T0||s.inbox(p-m.y0,p-(m.y0+m.h*g.dy),0)>0)){var h,y=Math.floor((f-m.x0)/g.dx),w=Math.floor(Math.abs(p-m.y0)/g.dy);if(g._hasZ?h=m.z[w][y]:g._hasSource&&(h=g._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(y,w,1,1).data),h){var _,x=m.hi||g.hoverinfo;if(x){var T=x.split("+");T.indexOf("all")!==-1&&(T=["color"]),T.indexOf("color")!==-1&&(_=!0)}var k,S=c.colormodel[g.colormodel],C=S.colormodel||g.colormodel,M=C.length,O=g._scaler(h),D=S.suffix,P=[];(g.hovertemplate||_)&&(P.push("["+[O[0]+D[0],O[1]+D[1],O[2]+D[2]].join(", ")),M===4&&P.push(", "+O[3]+D[3]),P.push("]"),P=P.join(""),d.extraText=C.toUpperCase()+": "+P),Array.isArray(g.hovertext)&&Array.isArray(g.hovertext[w])?k=g.hovertext[w][y]:Array.isArray(g.text)&&Array.isArray(g.text[w])&&(k=g.text[w][y]);var E=v.c2p(m.y0+(w+.5)*g.dy),I=m.x0+(y+.5)*g.dx,A=m.y0+(w+.5)*g.dy,F="["+h.slice(0,g.colormodel.length).join(", ")+"]";return[u.extendFlat(d,{index:[w,y],x0:b.c2p(m.x0+y*g.dx),x1:b.c2p(m.x0+(y+1)*g.dx),y0:E,y1:E,color:O,xVal:I,xLabelVal:I,yVal:A,yLabelVal:A,zLabelVal:F,text:k,hovertemplateLabels:{zLabel:F,colorLabel:P,"color[0]Label":O[0]+D[0],"color[1]Label":O[1]+D[1],"color[2]Label":O[2]+D[2],"color[3]Label":O[3]+D[3]}})]}}}},94507:function(i,o,a){i.exports={attributes:a(17230),supplyDefaults:a(13245),calc:a(71113),plot:a(60775),style:a(12826),hoverPoints:a(28749),eventData:a(30835),moduleType:"trace",name:"image",basePlotModule:a(93612),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}},60775:function(i,o,a){var s=a(39898),u=a(71828),c=u.strTranslate,d=a(77922),f=a(51877),p=a(3883),m=a(32396).STYLE;i.exports=function(g,b,v,h){var y=b.xaxis,w=b.yaxis,_=!g._context._exportedPlot&&p();u.makeTraceGroups(h,v,"im").each(function(x){var T=s.select(this),k=x[0],S=k.trace,C=(S.zsmooth==="fast"||S.zsmooth===!1&&_)&&!S._hasZ&&S._hasSource&&y.type==="linear"&&w.type==="linear";S._realImage=C;var M,O,D,P,E,I,A=k.z,F=k.x0,j=k.y0,z=k.w,B=k.h,N=S.dx,R=S.dy;for(I=0;M===void 0&&I0;)O=y.c2p(F+I*N),I--;for(I=0;P===void 0&&I0;)E=w.c2p(j+I*R),I--;OV[0];if(te||ee){var H=M+q/2,Z=P+Y/2;W+="transform:"+c(H+"px",Z+"px")+"scale("+(te?-1:1)+","+(ee?-1:1)+")"+c(-H+"px",-Z+"px")+";"}}L.attr("style",W);var G=new Promise(function(Q){if(S._hasZ)Q();else if(S._hasSource)if(S._canvas&&S._canvas.el.width===z&&S._canvas.el.height===B&&S._canvas.source===S.source)Q();else{var re=document.createElement("canvas");re.width=z,re.height=B;var ae=re.getContext("2d",{willReadFrequently:!0});S._image=S._image||new Image;var ie=S._image;ie.onload=function(){ae.drawImage(ie,0,0),S._canvas={el:re,source:S.source},Q()},ie.setAttribute("src",S.source)}}).then(function(){var Q,re;if(S._hasZ)re=X(function(ie,se){return A[se][ie]}),Q=re.toDataURL("image/png");else if(S._hasSource)if(C)Q=S.source;else{var ae=S._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,z,B).data;re=X(function(ie,se){var he=4*(se*z+ie);return[ae[he],ae[he+1],ae[he+2],ae[he+3]]}),Q=re.toDataURL("image/png")}L.attr({"xlink:href":Q,height:Y,width:q,x:M,y:P})});g._promises.push(G)}function X(Q){var re=document.createElement("canvas");re.width=q,re.height=Y;var ae,ie=re.getContext("2d",{willReadFrequently:!0}),se=function(de){return u.constrain(Math.round(y.c2p(F+de*N)-M),0,q)},he=function(de){return u.constrain(Math.round(w.c2p(j+de*R)-P),0,Y)},Se=f.colormodel[S.colormodel],Oe=Se.colormodel||S.colormodel,Pe=Se.fmt;for(I=0;I=0}),(g.type==="funnelarea"?D:g.sort)&&h.sort(function(F,j){return j.v-F.v}),h[0]&&(h[0].vTotal=O),h},crossTraceCalc:function(m,g){var b=(g||{}).type;b||(b="pie");var v=m._fullLayout,h=m.calcdata,y=v[b+"colorway"],w=v["_"+b+"colormap"];v["extend"+b+"colors"]&&(y=p(y,d));for(var _=0,x=0;x0){_=!0;break}}_||(w=0)}return{hasLabels:h,hasValues:y,len:w}}function g(b,v,h,y,w){y("marker.line.width")&&y("marker.line.color",w?void 0:h.paper_bgcolor);var _=y("marker.colors");p(y,"marker.pattern",_),b.marker&&!v.marker.pattern.fgcolor&&(v.marker.pattern.fgcolor=b.marker.colors),v.marker.pattern.bgcolor||(v.marker.pattern.bgcolor=h.paper_bgcolor)}i.exports={handleLabelsAndValues:m,handleMarkerDefaults:g,supplyDefaults:function(b,v,h,y){function w(D,P){return u.coerce(b,v,c,D,P)}var _=m(w("labels"),w("values")),x=_.len;if(v._hasLabels=_.hasLabels,v._hasValues=_.hasValues,!v._hasLabels&&v._hasValues&&(w("label0"),w("dlabel")),x){v._length=x,g(b,v,y,w,!0),w("scalegroup");var T,k=w("text"),S=w("texttemplate");if(S||(T=w("textinfo",Array.isArray(k)?"text+percent":"percent")),w("hovertext"),w("hovertemplate"),S||T&&T!=="none"){var C=w("textposition");f(b,v,y,w,C,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(C)||C==="auto"||C==="outside")&&w("automargin"),(C==="inside"||C==="auto"||Array.isArray(C))&&w("insidetextorientation")}d(v,y,w);var M=w("hole");if(w("title.text")){var O=w("title.position",M?"middle center":"top center");M||O!=="middle center"||(v.title.position="top center"),u.coerceFont(w,"title.font",y.font)}w("sort"),w("direction"),w("rotation"),w("pull")}else v.visible=!1}}},20007:function(i,o,a){var s=a(23469).appendArrayMultiPointValues;i.exports=function(u,c){var d={curveNumber:c.index,pointNumbers:u.pts,data:c._input,fullData:c,label:u.label,color:u.color,value:u.v,percent:u.percent,text:u.text,bbox:u.bbox,v:u.v};return u.pts.length===1&&(d.pointNumber=d.i=u.pts[0]),s(d,c,u.pts),c.type==="funnelarea"&&(delete d.v,delete d.i),d}},22209:function(i,o,a){var s=a(91424),u=a(7901);i.exports=function(c,d,f,p){var m=f.marker.pattern;m&&m.shape?s.pointStyle(c,f,p,d):u.fill(c,d.color)}},53581:function(i,o,a){var s=a(71828);function u(c){return c.indexOf("e")!==-1?c.replace(/[.]?0+e/,"e"):c.indexOf(".")!==-1?c.replace(/[.]?0+$/,""):c}o.formatPiePercent=function(c,d){var f=u((100*c).toPrecision(3));return s.numSeparate(f,d)+"%"},o.formatPieValue=function(c,d){var f=u(c.toPrecision(10));return s.numSeparate(f,d)},o.getFirstFilled=function(c,d){if(Array.isArray(c))for(var f=0;f"),name:Q.hovertemplate||re.indexOf("name")!==-1?Q.name:void 0,idealAlign:G.pxmid[0]<0?"left":"right",color:_.castOption(Pe.bgcolor,G.pts)||G.color,borderColor:_.castOption(Pe.bordercolor,G.pts),fontFamily:_.castOption(Me.family,G.pts),fontSize:_.castOption(Me.size,G.pts),fontColor:_.castOption(Me.color,G.pts),nameLength:_.castOption(Pe.namelength,G.pts),textAlign:_.castOption(Pe.align,G.pts),hovertemplate:_.castOption(Q.hovertemplate,G.pts),hovertemplateLabels:G,eventData:[x(G,Q)]},{container:X._hoverlayer.node(),outerContainer:X._paper.node(),gd:W,inOut_bbox:ce}),G.bbox=ce[0],H._hasHoverLabel=!0}H._hasHoverEvent=!0,W.emit("plotly_hover",{points:[x(G,Q)],event:s.event})}}),L.on("mouseout",function(G){var X=W._fullLayout,Q=W._fullData[H.index],re=s.select(this).datum();H._hasHoverEvent&&(G.originalEvent=s.event,W.emit("plotly_unhover",{points:[x(re,Q)],event:s.event}),H._hasHoverEvent=!1),H._hasHoverLabel&&(c.loneUnhover(X._hoverlayer.node()),H._hasHoverLabel=!1)}),L.on("click",function(G){var X=W._fullLayout,Q=W._fullData[H.index];W._dragging||X.hovermode===!1||(W._hoverdata=[x(G,Q)],c.click(W,s.event))})}function S(L,W,U){var V=_.castOption(L.insidetextfont.color,W.pts);!V&&L._input.textfont&&(V=_.castOption(L._input.textfont.color,W.pts));var te=_.castOption(L.insidetextfont.family,W.pts)||_.castOption(L.textfont.family,W.pts)||U.family,ee=_.castOption(L.insidetextfont.size,W.pts)||_.castOption(L.textfont.size,W.pts)||U.size;return{color:V||d.contrast(W.color),family:te,size:ee}}function C(L,W){for(var U,V,te=0;teye&&ye>Ae||Te=-4;Se-=2)Oe(Math.PI*Se,"tan");for(Se=4;Se>=-4;Se-=2)Oe(Math.PI*(Se+1),"tan")}if(re||ie){for(Se=4;Se>=-4;Se-=2)Oe(Math.PI*(Se+1.5),"rad");for(Se=4;Se>=-4;Se-=2)Oe(Math.PI*(Se+.5),"rad")}}if(Z||se||re){var Pe=Math.sqrt(L.width*L.width+L.height*L.height);if((ee={scale:te*V*2/Pe,rCenter:1-te,rotate:0}).textPosAngle=(W.startangle+W.stopangle)/2,ee.scale>=1)return ee;he.push(ee)}(se||ie)&&((ee=O(L,V,H,G,X)).textPosAngle=(W.startangle+W.stopangle)/2,he.push(ee)),(se||ae)&&((ee=D(L,V,H,G,X)).textPosAngle=(W.startangle+W.stopangle)/2,he.push(ee));for(var Me=0,ce=0,we=0;we=1)break}return he[Me]}function O(L,W,U,V,te){W=Math.max(0,W-2*w);var ee=L.width/L.height,H=I(ee,V,W,U);return{scale:2*H/L.height,rCenter:P(ee,H/W),rotate:E(te)}}function D(L,W,U,V,te){W=Math.max(0,W-2*w);var ee=L.height/L.width,H=I(ee,V,W,U);return{scale:2*H/L.width,rCenter:P(ee,H/W),rotate:E(te+Math.PI/2)}}function P(L,W){return Math.cos(W)-L*W}function E(L){return(180/Math.PI*L+720)%180-90}function I(L,W,U,V){var te=L+1/(2*Math.tan(W));return U*Math.min(1/(Math.sqrt(te*te+.5)+te),V/(Math.sqrt(L*L+V/2)+L))}function A(L,W){return L.v!==W.vTotal||W.trace.hole?Math.min(1/(1+1/Math.sin(L.halfangle)),L.ring/2):1}function F(L,W){var U=W.pxmid[0],V=W.pxmid[1],te=L.width/2,ee=L.height/2;return U<0&&(te*=-1),V<0&&(ee*=-1),{scale:1,rCenter:1,rotate:0,x:te+Math.abs(ee)*(te>0?1:-1)/2,y:ee/(1+U*U/(V*V)),outside:!0}}function j(L,W){var U,V,te,ee=L.trace,H={x:L.cx,y:L.cy},Z={tx:0,ty:0};Z.ty+=ee.title.font.size,te=B(ee),ee.title.position.indexOf("top")!==-1?(H.y-=(1+te)*L.r,Z.ty-=L.titleBox.height):ee.title.position.indexOf("bottom")!==-1&&(H.y+=(1+te)*L.r);var G,X=L.r/((G=L.trace.aspectratio)===void 0?1:G),Q=W.w*(ee.domain.x[1]-ee.domain.x[0])/2;return ee.title.position.indexOf("left")!==-1?(Q+=X,H.x-=(1+te)*X,Z.tx+=L.titleBox.width/2):ee.title.position.indexOf("center")!==-1?Q*=2:ee.title.position.indexOf("right")!==-1&&(Q+=X,H.x+=(1+te)*X,Z.tx-=L.titleBox.width/2),U=Q/L.titleBox.width,V=z(L,W)/L.titleBox.height,{x:H.x,y:H.y,scale:Math.min(U,V),tx:Z.tx,ty:Z.ty}}function z(L,W){var U=L.trace,V=W.h*(U.domain.y[1]-U.domain.y[0]);return Math.min(L.titleBox.height,V/2)}function B(L){var W,U=L.pull;if(!U)return 0;if(Array.isArray(U))for(U=0,W=0;WU&&(U=L.pull[W]);return U}function N(L,W){for(var U=[],V=0;V1?we=(ce=ie.r)/he.aspectratio:ce=(we=ie.r)*he.aspectratio,Me=(ce*=(1+he.baseratio)/2)*we}Oe=Math.min(Oe,Me/ie.vTotal)}for(se=0;se")}if(ee){var Se=p.castOption(te,W.i,"texttemplate");if(Se){var Oe=function(Me){return{label:Me.label,value:Me.v,valueLabel:_.formatPieValue(Me.v,V.separators),percent:Me.v/U.vTotal,percentLabel:_.formatPiePercent(Me.v/U.vTotal,V.separators),color:Me.color,text:Me.text,customdata:p.castOption(te,Me.i,"customdata")}}(W),Pe=_.getFirstFilled(te.text,W.pts);(T(Pe)||Pe==="")&&(Oe.text=Pe),W.text=p.texttemplateString(Se,Oe,L._fullLayout._d3locale,Oe,te._meta||{})}else W.text=""}}function Y(L,W){var U=L.rotate*Math.PI/180,V=Math.cos(U),te=Math.sin(U),ee=(W.left+W.right)/2,H=(W.top+W.bottom)/2;L.textX=ee*V-H*te,L.textY=ee*te+H*V,L.noCenter=!0}i.exports={plot:function(L,W){var U=L._context.staticPlot,V=L._fullLayout,te=V._size;y("pie",V),C(W,L),N(W,te);var ee=p.makeTraceGroups(V._pielayer,W,"trace").each(function(H){var Z=s.select(this),G=H[0],X=G.trace;(function(Q){var re,ae,ie,se=Q[0],he=se.r,Se=se.trace,Oe=_.getRotationAngle(Se.rotation),Pe=2*Math.PI/se.vTotal,Me="px0",ce="px1";if(Se.direction==="counterclockwise"){for(re=0;rese.vTotal/2?1:0,ae.halfangle=Math.PI*Math.min(ae.v/se.vTotal,.5),ae.ring=1-Se.hole,ae.rInscribed=A(ae,se))})(H),Z.attr("stroke-linejoin","round"),Z.each(function(){var Q=s.select(this).selectAll("g.slice").data(H);Q.enter().append("g").classed("slice",!0),Q.exit().remove();var re=[[[],[]],[[],[]]],ae=!1;Q.each(function(ce,we){if(ce.hidden)s.select(this).selectAll("path,g").remove();else{ce.pointNumber=ce.i,ce.curveNumber=X.index,re[ce.pxmid[1]<0?0:1][ce.pxmid[0]<0?0:1].push(ce);var K=G.cx,ne=G.cy,de=s.select(this),_e=de.selectAll("path.surface").data([ce]);if(_e.enter().append("path").classed("surface",!0).style({"pointer-events":U?"none":"all"}),de.call(k,L,H),X.pull){var ue=+_.castOption(X.pull,ce.pts)||0;ue>0&&(K+=ue*ce.pxmid[0],ne+=ue*ce.pxmid[1])}ce.cxFinal=K,ce.cyFinal=ne;var pe=X.hole;if(ce.v===G.vTotal){var xe="M"+(K+ce.px0[0])+","+(ne+ce.px0[1])+Le(ce.px0,ce.pxmid,!0,1)+Le(ce.pxmid,ce.px0,!0,1)+"Z";pe?_e.attr("d","M"+(K+pe*ce.px0[0])+","+(ne+pe*ce.px0[1])+Le(ce.px0,ce.pxmid,!1,pe)+Le(ce.pxmid,ce.px0,!1,pe)+"Z"+xe):_e.attr("d",xe)}else{var ye=Le(ce.px0,ce.px1,!0,1);if(pe){var Te=1-pe;_e.attr("d","M"+(K+pe*ce.px1[0])+","+(ne+pe*ce.px1[1])+Le(ce.px1,ce.px0,!1,pe)+"l"+Te*ce.px0[0]+","+Te*ce.px0[1]+ye+"Z")}else _e.attr("d","M"+K+","+ne+"l"+ce.px0[0]+","+ce.px0[1]+ye+"Z")}q(L,ce,G);var Ae=_.castOption(X.textposition,ce.pts),Re=de.selectAll("g.slicetext").data(ce.text&&Ae!=="none"?[0]:[]);Re.enter().append("g").classed("slicetext",!0),Re.exit().remove(),Re.each(function(){var $e=p.ensureSingle(s.select(this),"text","",function(dt){dt.attr("data-notex",1)}),Fe=p.ensureUniformFontSize(L,Ae==="outside"?function(dt,vt,We){return{color:_.castOption(dt.outsidetextfont.color,vt.pts)||_.castOption(dt.textfont.color,vt.pts)||We.color,family:_.castOption(dt.outsidetextfont.family,vt.pts)||_.castOption(dt.textfont.family,vt.pts)||We.family,size:_.castOption(dt.outsidetextfont.size,vt.pts)||_.castOption(dt.textfont.size,vt.pts)||We.size}}(X,ce,V.font):S(X,ce,V.font));$e.text(ce.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(f.font,Fe).call(b.convertToTspans,L);var Be,Ue=f.bBox($e.node());if(Ae==="outside")Be=F(Ue,ce);else if(Be=M(Ue,ce,G),Ae==="auto"&&Be.scale<1){var qe=p.ensureUniformFontSize(L,X.outsidetextfont);$e.call(f.font,qe),Be=F(Ue=f.bBox($e.node()),ce)}var Xe=Be.textPosAngle,ot=Xe===void 0?ce.pxmid:R(G.r,Xe);if(Be.targetX=K+ot[0]*Be.rCenter+(Be.x||0),Be.targetY=ne+ot[1]*Be.rCenter+(Be.y||0),Y(Be,Ue),Be.outside){var st=Be.targetY;ce.yLabelMin=st-Ue.height/2,ce.yLabelMid=st,ce.yLabelMax=st+Ue.height/2,ce.labelExtraX=0,ce.labelExtraY=0,ae=!0}Be.fontSize=Fe.size,h(X.type,Be,V),H[we].transform=Be,p.setTransormAndDisplay($e,Be)})}function Le($e,Fe,Be,Ue){var qe=Ue*(Fe[0]-$e[0]),Xe=Ue*(Fe[1]-$e[1]);return"a"+Ue*G.r+","+Ue*G.r+" 0 "+ce.largeArc+(Be?" 1 ":" 0 ")+qe+","+Xe}});var ie=s.select(this).selectAll("g.titletext").data(X.title.text?[0]:[]);if(ie.enter().append("g").classed("titletext",!0),ie.exit().remove(),ie.each(function(){var ce,we=p.ensureSingle(s.select(this),"text","",function(ne){ne.attr("data-notex",1)}),K=X.title.text;X._meta&&(K=p.templateString(K,X._meta)),we.text(K).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(f.font,X.title.font).call(b.convertToTspans,L),ce=X.title.position==="middle center"?function(ne){var de=Math.sqrt(ne.titleBox.width*ne.titleBox.width+ne.titleBox.height*ne.titleBox.height);return{x:ne.cx,y:ne.cy,scale:ne.trace.hole*ne.r*2/de,tx:0,ty:-ne.titleBox.height/2+ne.trace.title.font.size}}(G):j(G,te),we.attr("transform",g(ce.x,ce.y)+m(Math.min(1,ce.scale))+g(ce.tx,ce.ty))}),ae&&function(ce,we){var K,ne,de,_e,ue,pe,xe,ye,Te,Ae,Re,Le,$e;function Fe(Xe,ot){return Xe.pxmid[1]-ot.pxmid[1]}function Be(Xe,ot){return ot.pxmid[1]-Xe.pxmid[1]}function Ue(Xe,ot){ot||(ot={});var st,dt,vt,We,ze=ot.labelExtraY+(ne?ot.yLabelMax:ot.yLabelMin),tt=ne?Xe.yLabelMin:Xe.yLabelMax,it=ne?Xe.yLabelMax:Xe.yLabelMin,St=Xe.cyFinal+ue(Xe.px0[1],Xe.px1[1]),Ze=ze-tt;if(Ze*xe>0&&(Xe.labelExtraY=Ze),Array.isArray(we.pull))for(dt=0;dt=(_.castOption(we.pull,vt.pts)||0)||((Xe.pxmid[1]-vt.pxmid[1])*xe>0?(Ze=vt.cyFinal+ue(vt.px0[1],vt.px1[1])-tt-Xe.labelExtraY)*xe>0&&(Xe.labelExtraY+=Ze):(it+Xe.labelExtraY-St)*xe>0&&(st=3*pe*Math.abs(dt-Ae.indexOf(Xe)),(We=vt.cxFinal+_e(vt.px0[0],vt.px1[0])+st-(Xe.cxFinal+Xe.pxmid[0])-Xe.labelExtraX)*pe>0&&(Xe.labelExtraX+=We)))}for(ne=0;ne<2;ne++)for(de=ne?Fe:Be,ue=ne?Math.max:Math.min,xe=ne?1:-1,K=0;K<2;K++){for(_e=K?Math.max:Math.min,pe=K?1:-1,(ye=ce[ne][K]).sort(de),Te=ce[1-ne][K],Ae=Te.concat(ye),Le=[],Re=0;ReMath.abs(ye)?ue+="l"+ye*K.pxmid[0]/K.pxmid[1]+","+ye+"H"+(_e+K.labelExtraX+pe):ue+="l"+K.labelExtraX+","+xe+"v"+(ye-xe)+"h"+pe}else ue+="V"+(K.yLabelMid+K.labelExtraY)+"h"+pe;p.ensureSingle(ne,"path","textline").call(d.stroke,we.outsidetextfont.color).attr({"stroke-width":Math.min(2,we.outsidetextfont.size/8),d:ue,fill:"none"})}else ne.select("path.textline").remove()})}(Q,X),ae&&X.automargin){var se=f.bBox(Z.node()),he=X.domain,Se=te.w*(he.x[1]-he.x[0]),Oe=te.h*(he.y[1]-he.y[0]),Pe=(.5*Se-G.r)/te.w,Me=(.5*Oe-G.r)/te.h;u.autoMargin(L,"pie."+X.uid+".automargin",{xl:he.x[0]-Pe,xr:he.x[1]+Pe,yb:he.y[0]-Me,yt:he.y[1]+Me,l:Math.max(G.cx-G.r-se.left,0),r:Math.max(se.right-(G.cx+G.r),0),b:Math.max(se.bottom-(G.cy+G.r),0),t:Math.max(G.cy-G.r-se.top,0),pad:5})}})});setTimeout(function(){ee.selectAll("tspan").each(function(){var H=s.select(this);H.attr("dy")&&H.attr("dy",H.attr("dy"))})},0)},formatSliceLabel:q,transformInsideText:M,determineInsideTextFont:S,positionTitleOutside:j,prerenderTitles:C,layoutAreas:N,attachFxHandlers:k,computeTransform:Y}},68357:function(i,o,a){var s=a(39898),u=a(63463),c=a(72597).resizeText;i.exports=function(d){var f=d._fullLayout._pielayer.selectAll(".trace");c(d,f,"pie"),f.each(function(p){var m=p[0].trace,g=s.select(this);g.style({opacity:m.opacity}),g.selectAll("path.surface").each(function(b){s.select(this).call(u,b,m,d)})})}},63463:function(i,o,a){var s=a(7901),u=a(53581).castOption,c=a(22209);i.exports=function(d,f,p,m){var g=p.marker.line,b=u(g.color,f.pts)||s.defaultLine,v=u(g.width,f.pts)||0;d.call(c,f,p,m).style("stroke-width",v).call(s.stroke,b)}},75225:function(i,o,a){var s=a(71828);i.exports=function(u,c){for(var d=0;dS&&q[M].gap;)M--;for(D=q[M].s,C=q.length-1;C>M;C--)q[C].s=D;for(;Sj[y]&&y=0;y--){var w=d[y];if(w.type==="scatter"&&w.xaxis===v.xaxis&&w.yaxis===v.yaxis){w.opacity=void 0;break}}}}}},17438:function(i,o,a){var s=a(71828),u=a(73972),c=a(82196),d=a(47581),f=a(34098),p=a(67513),m=a(73927),g=a(565),b=a(49508),v=a(11058),h=a(94039),y=a(82410),w=a(28908),_=a(71828).coercePattern;i.exports=function(x,T,k,S){function C(F,j){return s.coerce(x,T,c,F,j)}var M=p(x,T,S,C);if(M||(T.visible=!1),T.visible){m(x,T,S,C),C("xhoverformat"),C("yhoverformat");var O=g(x,T,S,C);S.scattermode==="group"&&T.orientation===void 0&&C("orientation","v");var D=!O&&M=Math.min(Se,Oe)&&x<=Math.max(Se,Oe)?0:1/0}var Pe=Math.max(3,he.mrc||0),Me=1-1/Pe,ce=Math.abs(w.c2p(he.x)-x);return ce=Math.min(Se,Oe)&&T<=Math.max(Se,Oe)?0:1/0}var Pe=Math.max(3,he.mrc||0),Me=1-1/Pe,ce=Math.abs(_.c2p(he.y)-T);return ceie!=(ee=L[q][1])>=ie&&(U=L[q-1][0],V=L[q][0],ee-te&&(W=U+(V-U)*(ie-te)/(ee-te),X=Math.min(X,W),Q=Math.max(Q,W)));X=Math.max(X,0),Q=Math.min(Q,w._length);var se=f.defaultLine;return f.opacity(y.fillcolor)?se=y.fillcolor:f.opacity((y.line||{}).color)&&(se=y.line.color),s.extendFlat(m,{distance:m.maxHoverDistance,x0:X,x1:Q,y0:ie,y1:ie,color:se,hovertemplate:!1}),delete m.index,y.text&&!Array.isArray(y.text)?m.text=String(y.text):m.text=y.name,[m]}}}},67368:function(i,o,a){var s=a(34098);i.exports={hasLines:s.hasLines,hasMarkers:s.hasMarkers,hasText:s.hasText,isBubble:s.isBubble,attributes:a(82196),layoutAttributes:a(21479),supplyDefaults:a(17438),crossTraceDefaults:a(34936),supplyLayoutDefaults:a(79334),calc:a(47761).calc,crossTraceCalc:a(72626),arraysToCalcdata:a(75225),plot:a(32663),colorbar:a(4898),formatLabels:a(8225),style:a(16296).style,styleOnSelect:a(16296).styleOnSelect,hoverPoints:a(33720),selectPoints:a(98002),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:a(93612),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}},21479:function(i){i.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}},79334:function(i,o,a){var s=a(71828),u=a(21479);i.exports=function(c,d){var f,p=d.barmode==="group";d.scattermode==="group"&&(f=p?d.bargap:.2,s.coerce(c,d,u,"scattergap",f))}},11058:function(i,o,a){var s=a(71828).isArrayOrTypedArray,u=a(52075).hasColorscale,c=a(1586);i.exports=function(d,f,p,m,g,b){b||(b={});var v=(d.marker||{}).color;g("line.color",p),u(d,"line")?c(d,f,m,g,{prefix:"line.",cLetter:"c"}):g("line.color",!s(v)&&v||p),g("line.width"),b.noDash||g("line.dash"),b.backoff&&g("line.backoff")}},34621:function(i,o,a){var s=a(91424),u=a(50606),c=u.BADNUM,d=u.LOG_CLIP,f=d+.5,p=d-.5,m=a(71828),g=m.segmentsIntersect,b=m.constrain,v=a(47581);i.exports=function(h,y){var w,_,x,T,k,S,C,M,O,D,P,E,I,A,F,j,z,B,N=y.trace||{},R=y.xaxis,q=y.yaxis,Y=R.type==="log",L=q.type==="log",W=R._length,U=q._length,V=y.backoff,te=N.marker,ee=y.connectGaps,H=y.baseTolerance,Z=y.shape,G=Z==="linear",X=N.fill&&N.fill!=="none",Q=[],re=v.minTolerance,ae=h.length,ie=new Array(ae),se=0;function he(Ze){var ut=h[Ze];if(!ut)return!1;var ht=y.linearized?R.l2p(ut.x):R.c2p(ut.x),Rt=y.linearized?q.l2p(ut.y):q.c2p(ut.y);if(ht===c){if(Y&&(ht=R.c2p(ut.x,!0)),ht===c)return!1;L&&Rt===c&&(ht*=Math.abs(R._m*U*(R._m>0?f:p)/(q._m*W*(q._m>0?f:p)))),ht*=1e3}if(Rt===c){if(L&&(Rt=q.c2p(ut.y,!0)),Rt===c)return!1;Rt*=1e3}return[ht,Rt]}function Se(Ze,ut,ht,Rt){var Ct=ht-Ze,Wt=Rt-ut,_t=.5-Ze,be=.5-ut,Ce=Ct*Ct+Wt*Wt,Ge=Ct*_t+Wt*be;if(Ge>0&&Gexe||Ze[1]Te)return[b(Ze[0],pe,xe),b(Ze[1],ye,Te)]}function Le(Ze,ut){return Ze[0]===ut[0]&&(Ze[0]===pe||Ze[0]===xe)||Ze[1]===ut[1]&&(Ze[1]===ye||Ze[1]===Te)||void 0}function $e(Ze,ut,ht){return function(Rt,Ct){var Wt=Re(Rt),_t=Re(Ct),be=[];if(Wt&&_t&&Le(Wt,_t))return be;Wt&&be.push(Wt),_t&&be.push(_t);var Ce=2*m.constrain((Rt[Ze]+Ct[Ze])/2,ut,ht)-((Wt||Rt)[Ze]+(_t||Ct)[Ze]);return Ce&&((Wt&&_t?Ce>0==Wt[Ze]>_t[Ze]?Wt:_t:Wt||_t)[Ze]+=Ce),be}}function Fe(Ze){var ut=Ze[0],ht=Ze[1],Rt=ut===ie[se-1][0],Ct=ht===ie[se-1][1];if(!Rt||!Ct)if(se>1){var Wt=ut===ie[se-2][0],_t=ht===ie[se-2][1];Rt&&(ut===pe||ut===xe)&&Wt?_t?se--:ie[se-1]=Ze:Ct&&(ht===ye||ht===Te)&&_t?Wt?se--:ie[se-1]=Ze:ie[se++]=Ze}else ie[se++]=Ze}function Be(Ze){ie[se-1][0]!==Ze[0]&&ie[se-1][1]!==Ze[1]&&Fe([we,K]),Fe(Ze),ne=null,we=K=0}Z==="linear"||Z==="spline"?_e=function(Ze,ut){for(var ht=[],Rt=0,Ct=0;Ct<4;Ct++){var Wt=Ae[Ct],_t=g(Ze[0],Ze[1],ut[0],ut[1],Wt[0],Wt[1],Wt[2],Wt[3]);_t&&(!Rt||Math.abs(_t.x-ht[0][0])>1||Math.abs(_t.y-ht[0][1])>1)&&(_t=[_t.x,_t.y],Rt&&Pe(_t,Ze)xe?xe:0,ce=Ze[1]Te?Te:0,Me||ce){if(se)if(ne){var ut=_e(ne,Ze);ut.length>1&&(Be(ut[0]),ie[se++]=ut[1])}else de=_e(ie[se-1],Ze)[0],ie[se++]=de;else ie[se++]=[Me||Ze[0],ce||Ze[1]];var ht=ie[se-1];Me&&ce&&(ht[0]!==Me||ht[1]!==ce)?(ne&&(we!==Me&&K!==ce?Fe(we&&K?(Rt=ne,Wt=(Ct=Ze)[0]-Rt[0],_t=(Ct[1]-Rt[1])/Wt,(Rt[1]*Ct[0]-Ct[1]*Rt[0])/Wt>0?[_t>0?pe:xe,Te]:[_t>0?xe:pe,ye]):[we||Me,K||ce]):we&&K&&Fe([we,K])),Fe([Me,ce])):we-Me&&K-ce&&Fe([Me||we,ce||K]),ne=Ze,we=Me,K=ce}else ne&&Be(_e(ne,Ze)[0]),ie[se++]=Ze;var Rt,Ct,Wt,_t}for(w=0;wOe(S,Xe))break;x=S,(I=O[0]*M[0]+O[1]*M[1])>P?(P=I,T=S,C=!1):I=h.length||!S)break;qe(S),_=S}}else qe(T)}ne&&Fe([we||ne[0],K||ne[1]]),Q.push(ie.slice(0,se))}var ot=Z.slice(Z.length-1);if(V&&ot!=="h"&&ot!=="v"){for(var st=!1,dt=-1,vt=[],We=0;We=0?m=y:(m=y=h,h++),m0?Math.max(b,p):0}}},4898:function(i){i.exports={container:"marker",min:"cmin",max:"cmax"}},49508:function(i,o,a){var s=a(7901),u=a(52075).hasColorscale,c=a(1586),d=a(34098);i.exports=function(f,p,m,g,b,v){var h=d.isBubble(f),y=(f.line||{}).color;v=v||{},y&&(m=y),b("marker.symbol"),b("marker.opacity",h?.7:1),b("marker.size"),v.noAngle||(b("marker.angle"),v.noAngleRef||b("marker.angleref"),v.noStandOff||b("marker.standoff")),b("marker.color",m),u(f,"marker")&&c(f,p,g,b,{prefix:"marker.",cLetter:"c"}),v.noSelect||(b("selected.marker.color"),b("unselected.marker.color"),b("selected.marker.size"),b("unselected.marker.size")),v.noLine||(b("marker.line.color",y&&!Array.isArray(y)&&p.marker.color!==y?y:h?s.background:s.defaultLine),u(f,"marker.line")&&c(f,p,g,b,{prefix:"marker.line.",cLetter:"c"}),b("marker.line.width",h?1:0)),h&&(b("marker.sizeref"),b("marker.sizemin"),b("marker.sizemode")),v.gradient&&b("marker.gradient.type")!=="none"&&b("marker.gradient.color")}},73927:function(i,o,a){var s=a(71828).dateTick0,u=a(50606).ONEWEEK;function c(d,f){return s(f,d%u==0?1:0)}i.exports=function(d,f,p,m,g){if(g||(g={x:!0,y:!0}),g.x){var b=m("xperiod");b&&(m("xperiod0",c(b,f.xcalendar)),m("xperiodalignment"))}if(g.y){var v=m("yperiod");v&&(m("yperiod0",c(v,f.ycalendar)),m("yperiodalignment"))}}},32663:function(i,o,a){var s=a(39898),u=a(73972),c=a(71828),d=c.ensureSingle,f=c.identity,p=a(91424),m=a(34098),g=a(34621),b=a(68687),v=a(61082).tester;function h(y,w,_,x,T,k,S){var C,M=y._context.staticPlot;(function(_e,ue,pe,xe,ye){var Te=pe.xaxis,Ae=pe.yaxis,Re=s.extent(c.simpleMap(Te.range,Te.r2c)),Le=s.extent(c.simpleMap(Ae.range,Ae.r2c)),$e=xe[0].trace;if(m.hasMarkers($e)){var Fe=$e.marker.maxdisplayed;if(Fe!==0){var Be=xe.filter(function(ot){return ot.x>=Re[0]&&ot.x<=Re[1]&&ot.y>=Le[0]&&ot.y<=Le[1]}),Ue=Math.ceil(Be.length/Fe),qe=0;ye.forEach(function(ot,st){var dt=ot[0].trace;m.hasMarkers(dt)&&dt.marker.maxdisplayed>0&&st0;function D(_e){return O?_e.transition():_e}var P=_.xaxis,E=_.yaxis,I=x[0].trace,A=I.line,F=s.select(k),j=d(F,"g","errorbars"),z=d(F,"g","lines"),B=d(F,"g","points"),N=d(F,"g","text");if(u.getComponentMethod("errorbars","plot")(y,j,_,S),I.visible===!0){var R,q;D(F).style("opacity",I.opacity);var Y=I.fill.charAt(I.fill.length-1);Y!=="x"&&Y!=="y"&&(Y=""),x[0][_.isRangePlot?"nodeRangePlot3":"node3"]=F;var L,W,U="",V=[],te=I._prevtrace;te&&(U=te._prevRevpath||"",q=te._nextFill,V=te._polygons);var ee,H,Z,G,X,Q,re,ae="",ie="",se=[],he=c.noop;if(R=I._ownFill,m.hasLines(I)||I.fill!=="none"){for(q&&q.datum(x),["hv","vh","hvh","vhv"].indexOf(A.shape)!==-1?(ee=p.steps(A.shape),H=p.steps(A.shape.split("").reverse().join(""))):ee=H=A.shape==="spline"?function(_e){var ue=_e[_e.length-1];return _e.length>1&&_e[0][0]===ue[0]&&_e[0][1]===ue[1]?p.smoothclosed(_e.slice(1),A.smoothing):p.smoothopen(_e,A.smoothing)}:function(_e){return"M"+_e.join("L")},Z=function(_e){return H(_e.reverse())},se=g(x,{xaxis:P,yaxis:E,trace:I,connectGaps:I.connectgaps,baseTolerance:Math.max(A.width||1,3)/4,shape:A.shape,backoff:A.backoff,simplify:A.simplify,fill:I.fill}),re=I._polygons=new Array(se.length),C=0;C0,D=b(y,w,_);(S=x.selectAll("g.trace").data(D,function(P){return P[0].trace.uid})).enter().append("g").attr("class",function(P){return"trace scatter trace"+P[0].trace.uid}).style("stroke-miterlimit",2),S.order(),function(P,E,I){E.each(function(A){var F=d(s.select(this),"g","fills");p.setClipUrl(F,I.layerClipId,P);var j=A[0].trace,z=[];j._ownfill&&z.push("_ownFill"),j._nexttrace&&z.push("_nextFill");var B=F.selectAll("g").data(z,f);B.enter().append("g"),B.exit().each(function(N){j[N]=null}).remove(),B.order().each(function(N){j[N]=d(s.select(this),"path","js-fill")})})}(y,S,w),O?(k&&(C=k()),s.transition().duration(T.duration).ease(T.easing).each("end",function(){C&&C()}).each("interrupt",function(){C&&C()}).each(function(){x.selectAll("g.trace").each(function(P,E){h(y,E,w,P,D,this,T)})})):S.each(function(P,E){h(y,E,w,P,D,this,T)}),M&&S.exit().remove(),x.selectAll("path:not([d])").remove()}},98002:function(i,o,a){var s=a(34098);i.exports=function(u,c){var d,f,p,m,g=u.cd,b=u.xaxis,v=u.yaxis,h=[],y=g[0].trace;if(!s.hasMarkers(y)&&!s.hasText(y))return[];if(c===!1)for(d=0;d"),m.hovertemplate=w.hovertemplate,p}function M(O,D){S.push(O._hovertitle+": "+D)}}},52979:function(i,o,a){i.exports={attributes:a(50413),supplyDefaults:a(46008),colorbar:a(4898),formatLabels:a(93645),calc:a(54337),plot:a(7507),style:a(16296).style,styleOnSelect:a(16296).styleOnSelect,hoverPoints:a(47250),selectPoints:a(98002),eventData:a(4524),moduleType:"trace",name:"scatterternary",basePlotModule:a(61639),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}},7507:function(i,o,a){var s=a(32663);i.exports=function(u,c,d){var f=c.plotContainer;f.select(".scatterlayer").selectAll("*").remove();for(var p=c.xaxis,m=c.yaxis,g={xaxis:p,yaxis:m,plot:f,layerClipId:c._hasClipOnAxisFalse?c.clipIdRelative:null},b=c.layers.frontplot.select("g.scatterlayer"),v=0;v0){var O,D,P,E,I,A=p.xa,F=p.ya;x.orientation==="h"?(I=m,O="y",P=F,D="x",E=A):(I=g,O="x",P=A,D="y",E=F);var j=_[p.index];if(I>=j.span[0]&&I<=j.span[1]){var z=u.extendFlat({},p),B=E.c2p(I,!0),N=f.getKdeValue(j,x,I),R=f.getPositionOnKdePath(j,x,B),q=P._offset,Y=P._length;z[O+"0"]=R[0],z[O+"1"]=R[1],z[D+"0"]=z[D+"1"]=B,z[D+"Label"]=D+": "+c.hoverLabelText(E,I,x[D+"hoverformat"])+", "+_[0].t.labels.kde+" "+N.toFixed(3);for(var L=0,W=0;WB&&(B=Y,N=q)}}return B?A(N):f};case"rms":return function(F,j){for(var z=0,B=0,N=0;N":return function(V){return U(V)>L};case">=":return function(V){return U(V)>=L};case"[]":return function(V){var te=U(V);return te>=L[0]&&te<=L[1]};case"()":return function(V){var te=U(V);return te>L[0]&&te=L[0]&&teL[0]&&te<=L[1]};case"][":return function(V){var te=U(V);return te<=L[0]||te>=L[1]};case")(":return function(V){var te=U(V);return teL[1]};case"](":return function(V){var te=U(V);return te<=L[0]||te>L[1]};case")[":return function(V){var te=U(V);return te=L[1]};case"{}":return function(V){return L.indexOf(U(V))!==-1};case"}{":return function(V){return L.indexOf(U(V))===-1}}}(h,c.getDataToCoordFunc(b,v,w,y),x),D={},P={},E=0;k?(C=function(j){D[j.astr]=s.extendDeep([],j.get()),j.set(new Array(_))},M=function(j,z){var B=D[j.astr][z];j.get()[z]=B}):(C=function(j){D[j.astr]=s.extendDeep([],j.get()),j.set([])},M=function(j,z){var B=D[j.astr][z];j.get().push(B)}),F(C);for(var I=d(v.transforms,h),A=0;A<_;A++)O(y[A])?(F(M,A),P[E++]=I(A)):k&&E++;h._indexToPoints=P,v._length=E}}function F(j,z){for(var B=0;B1?"%{group} (%{trace})":"%{group}");var y=p.styles,w=v.styles=[];if(y)for(b=0;bb)throw new RangeError('The value "'+K+'" is invalid for option "size"');var ne=new Uint8Array(K);return Object.setPrototypeOf(ne,h.prototype),ne}function h(K,ne,de){if(typeof K=="number"){if(typeof ne=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _(K)}return y(K,ne,de)}function y(K,ne,de){if(typeof K=="string")return function(pe,xe){if(typeof xe=="string"&&xe!==""||(xe="utf8"),!h.isEncoding(xe))throw new TypeError("Unknown encoding: "+xe);var ye=0|S(pe,xe),Te=v(ye),Ae=Te.write(pe,xe);return Ae!==ye&&(Te=Te.slice(0,Ae)),Te}(K,ne);if(ArrayBuffer.isView(K))return function(pe){if(Oe(pe,Uint8Array)){var xe=new Uint8Array(pe);return T(xe.buffer,xe.byteOffset,xe.byteLength)}return x(pe)}(K);if(K==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+f(K));if(Oe(K,ArrayBuffer)||K&&Oe(K.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Oe(K,SharedArrayBuffer)||K&&Oe(K.buffer,SharedArrayBuffer)))return T(K,ne,de);if(typeof K=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var _e=K.valueOf&&K.valueOf();if(_e!=null&&_e!==K)return h.from(_e,ne,de);var ue=function(pe){if(h.isBuffer(pe)){var xe=0|k(pe.length),ye=v(xe);return ye.length===0||pe.copy(ye,0,0,xe),ye}return pe.length!==void 0?typeof pe.length!="number"||Pe(pe.length)?v(0):x(pe):pe.type==="Buffer"&&Array.isArray(pe.data)?x(pe.data):void 0}(K);if(ue)return ue;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof K[Symbol.toPrimitive]=="function")return h.from(K[Symbol.toPrimitive]("string"),ne,de);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+f(K))}function w(K){if(typeof K!="number")throw new TypeError('"size" argument must be of type number');if(K<0)throw new RangeError('The value "'+K+'" is invalid for option "size"')}function _(K){return w(K),v(K<0?0:0|k(K))}function x(K){for(var ne=K.length<0?0:0|k(K.length),de=v(ne),_e=0;_e=b)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b.toString(16)+" bytes");return 0|K}function S(K,ne){if(h.isBuffer(K))return K.length;if(ArrayBuffer.isView(K)||Oe(K,ArrayBuffer))return K.byteLength;if(typeof K!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+f(K));var de=K.length,_e=arguments.length>2&&arguments[2]===!0;if(!_e&&de===0)return 0;for(var ue=!1;;)switch(ne){case"ascii":case"latin1":case"binary":return de;case"utf8":case"utf-8":return se(K).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*de;case"hex":return de>>>1;case"base64":return he(K).length;default:if(ue)return _e?-1:se(K).length;ne=(""+ne).toLowerCase(),ue=!0}}function C(K,ne,de){var _e=!1;if((ne===void 0||ne<0)&&(ne=0),ne>this.length||((de===void 0||de>this.length)&&(de=this.length),de<=0)||(de>>>=0)<=(ne>>>=0))return"";for(K||(K="utf8");;)switch(K){case"hex":return q(this,ne,de);case"utf8":case"utf-8":return z(this,ne,de);case"ascii":return N(this,ne,de);case"latin1":case"binary":return R(this,ne,de);case"base64":return j(this,ne,de);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y(this,ne,de);default:if(_e)throw new TypeError("Unknown encoding: "+K);K=(K+"").toLowerCase(),_e=!0}}function M(K,ne,de){var _e=K[ne];K[ne]=K[de],K[de]=_e}function O(K,ne,de,_e,ue){if(K.length===0)return-1;if(typeof de=="string"?(_e=de,de=0):de>2147483647?de=2147483647:de<-2147483648&&(de=-2147483648),Pe(de=+de)&&(de=ue?0:K.length-1),de<0&&(de=K.length+de),de>=K.length){if(ue)return-1;de=K.length-1}else if(de<0){if(!ue)return-1;de=0}if(typeof ne=="string"&&(ne=h.from(ne,_e)),h.isBuffer(ne))return ne.length===0?-1:D(K,ne,de,_e,ue);if(typeof ne=="number")return ne&=255,typeof Uint8Array.prototype.indexOf=="function"?ue?Uint8Array.prototype.indexOf.call(K,ne,de):Uint8Array.prototype.lastIndexOf.call(K,ne,de):D(K,[ne],de,_e,ue);throw new TypeError("val must be string, number or Buffer")}function D(K,ne,de,_e,ue){var pe,xe=1,ye=K.length,Te=ne.length;if(_e!==void 0&&((_e=String(_e).toLowerCase())==="ucs2"||_e==="ucs-2"||_e==="utf16le"||_e==="utf-16le")){if(K.length<2||ne.length<2)return-1;xe=2,ye/=2,Te/=2,de/=2}function Ae(Fe,Be){return xe===1?Fe[Be]:Fe.readUInt16BE(Be*xe)}if(ue){var Re=-1;for(pe=de;peye&&(de=ye-Te),pe=de;pe>=0;pe--){for(var Le=!0,$e=0;$eue&&(_e=ue):_e=ue;var pe,xe=ne.length;for(_e>xe/2&&(_e=xe/2),pe=0;pe<_e;++pe){var ye=parseInt(ne.substr(2*pe,2),16);if(Pe(ye))return pe;K[de+pe]=ye}return pe}function E(K,ne,de,_e){return Se(se(ne,K.length-de),K,de,_e)}function I(K,ne,de,_e){return Se(function(ue){for(var pe=[],xe=0;xe>8,Te=xe%256,Ae.push(Te),Ae.push(ye);return Ae}(ne,K.length-de),K,de,_e)}function j(K,ne,de){return ne===0&&de===K.length?p.fromByteArray(K):p.fromByteArray(K.slice(ne,de))}function z(K,ne,de){de=Math.min(K.length,de);for(var _e=[],ue=ne;ue239?4:pe>223?3:pe>191?2:1;if(ue+ye<=de){var Te=void 0,Ae=void 0,Re=void 0,Le=void 0;switch(ye){case 1:pe<128&&(xe=pe);break;case 2:(192&(Te=K[ue+1]))==128&&(Le=(31&pe)<<6|63&Te)>127&&(xe=Le);break;case 3:Te=K[ue+1],Ae=K[ue+2],(192&Te)==128&&(192&Ae)==128&&(Le=(15&pe)<<12|(63&Te)<<6|63&Ae)>2047&&(Le<55296||Le>57343)&&(xe=Le);break;case 4:Te=K[ue+1],Ae=K[ue+2],Re=K[ue+3],(192&Te)==128&&(192&Ae)==128&&(192&Re)==128&&(Le=(15&pe)<<18|(63&Te)<<12|(63&Ae)<<6|63&Re)>65535&&Le<1114112&&(xe=Le)}}xe===null?(xe=65533,ye=1):xe>65535&&(xe-=65536,_e.push(xe>>>10&1023|55296),xe=56320|1023&xe),_e.push(xe),ue+=ye}return function($e){var Fe=$e.length;if(Fe<=B)return String.fromCharCode.apply(String,$e);for(var Be="",Ue=0;Ue"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(h.prototype,"parent",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.buffer}}),Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.byteOffset}}),h.poolSize=8192,h.from=function(K,ne,de){return y(K,ne,de)},Object.setPrototypeOf(h.prototype,Uint8Array.prototype),Object.setPrototypeOf(h,Uint8Array),h.alloc=function(K,ne,de){return function(_e,ue,pe){return w(_e),_e<=0?v(_e):ue!==void 0?typeof pe=="string"?v(_e).fill(ue,pe):v(_e).fill(ue):v(_e)}(K,ne,de)},h.allocUnsafe=function(K){return _(K)},h.allocUnsafeSlow=function(K){return _(K)},h.isBuffer=function(K){return K!=null&&K._isBuffer===!0&&K!==h.prototype},h.compare=function(K,ne){if(Oe(K,Uint8Array)&&(K=h.from(K,K.offset,K.byteLength)),Oe(ne,Uint8Array)&&(ne=h.from(ne,ne.offset,ne.byteLength)),!h.isBuffer(K)||!h.isBuffer(ne))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(K===ne)return 0;for(var de=K.length,_e=ne.length,ue=0,pe=Math.min(de,_e);ue_e.length?(h.isBuffer(pe)||(pe=h.from(pe)),pe.copy(_e,ue)):Uint8Array.prototype.set.call(_e,pe,ue);else{if(!h.isBuffer(pe))throw new TypeError('"list" argument must be an Array of Buffers');pe.copy(_e,ue)}ue+=pe.length}return _e},h.byteLength=S,h.prototype._isBuffer=!0,h.prototype.swap16=function(){var K=this.length;if(K%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ne=0;nene&&(K+=" ... "),""},g&&(h.prototype[g]=h.prototype.inspect),h.prototype.compare=function(K,ne,de,_e,ue){if(Oe(K,Uint8Array)&&(K=h.from(K,K.offset,K.byteLength)),!h.isBuffer(K))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+f(K));if(ne===void 0&&(ne=0),de===void 0&&(de=K?K.length:0),_e===void 0&&(_e=0),ue===void 0&&(ue=this.length),ne<0||de>K.length||_e<0||ue>this.length)throw new RangeError("out of range index");if(_e>=ue&&ne>=de)return 0;if(_e>=ue)return-1;if(ne>=de)return 1;if(this===K)return 0;for(var pe=(ue>>>=0)-(_e>>>=0),xe=(de>>>=0)-(ne>>>=0),ye=Math.min(pe,xe),Te=this.slice(_e,ue),Ae=K.slice(ne,de),Re=0;Re>>=0,isFinite(de)?(de>>>=0,_e===void 0&&(_e="utf8")):(_e=de,de=void 0)}var ue=this.length-ne;if((de===void 0||de>ue)&&(de=ue),K.length>0&&(de<0||ne<0)||ne>this.length)throw new RangeError("Attempt to write outside buffer bounds");_e||(_e="utf8");for(var pe=!1;;)switch(_e){case"hex":return P(this,K,ne,de);case"utf8":case"utf-8":return E(this,K,ne,de);case"ascii":case"latin1":case"binary":return I(this,K,ne,de);case"base64":return A(this,K,ne,de);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,K,ne,de);default:if(pe)throw new TypeError("Unknown encoding: "+_e);_e=(""+_e).toLowerCase(),pe=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var B=4096;function N(K,ne,de){var _e="";de=Math.min(K.length,de);for(var ue=ne;ue_e)&&(de=_e);for(var ue="",pe=ne;pede)throw new RangeError("Trying to access beyond buffer length")}function W(K,ne,de,_e,ue,pe){if(!h.isBuffer(K))throw new TypeError('"buffer" argument must be a Buffer instance');if(ne>ue||neK.length)throw new RangeError("Index out of range")}function U(K,ne,de,_e,ue){Q(ne,_e,ue,K,de,7);var pe=Number(ne&BigInt(4294967295));K[de++]=pe,pe>>=8,K[de++]=pe,pe>>=8,K[de++]=pe,pe>>=8,K[de++]=pe;var xe=Number(ne>>BigInt(32)&BigInt(4294967295));return K[de++]=xe,xe>>=8,K[de++]=xe,xe>>=8,K[de++]=xe,xe>>=8,K[de++]=xe,de}function V(K,ne,de,_e,ue){Q(ne,_e,ue,K,de,7);var pe=Number(ne&BigInt(4294967295));K[de+7]=pe,pe>>=8,K[de+6]=pe,pe>>=8,K[de+5]=pe,pe>>=8,K[de+4]=pe;var xe=Number(ne>>BigInt(32)&BigInt(4294967295));return K[de+3]=xe,xe>>=8,K[de+2]=xe,xe>>=8,K[de+1]=xe,xe>>=8,K[de]=xe,de+8}function te(K,ne,de,_e,ue,pe){if(de+_e>K.length)throw new RangeError("Index out of range");if(de<0)throw new RangeError("Index out of range")}function ee(K,ne,de,_e,ue){return ne=+ne,de>>>=0,ue||te(K,0,de,4),m.write(K,ne,de,_e,23,4),de+4}function H(K,ne,de,_e,ue){return ne=+ne,de>>>=0,ue||te(K,0,de,8),m.write(K,ne,de,_e,52,8),de+8}h.prototype.slice=function(K,ne){var de=this.length;(K=~~K)<0?(K+=de)<0&&(K=0):K>de&&(K=de),(ne=ne===void 0?de:~~ne)<0?(ne+=de)<0&&(ne=0):ne>de&&(ne=de),ne>>=0,ne>>>=0,de||L(K,ne,this.length);for(var _e=this[K],ue=1,pe=0;++pe>>=0,ne>>>=0,de||L(K,ne,this.length);for(var _e=this[K+--ne],ue=1;ne>0&&(ue*=256);)_e+=this[K+--ne]*ue;return _e},h.prototype.readUint8=h.prototype.readUInt8=function(K,ne){return K>>>=0,ne||L(K,1,this.length),this[K]},h.prototype.readUint16LE=h.prototype.readUInt16LE=function(K,ne){return K>>>=0,ne||L(K,2,this.length),this[K]|this[K+1]<<8},h.prototype.readUint16BE=h.prototype.readUInt16BE=function(K,ne){return K>>>=0,ne||L(K,2,this.length),this[K]<<8|this[K+1]},h.prototype.readUint32LE=h.prototype.readUInt32LE=function(K,ne){return K>>>=0,ne||L(K,4,this.length),(this[K]|this[K+1]<<8|this[K+2]<<16)+16777216*this[K+3]},h.prototype.readUint32BE=h.prototype.readUInt32BE=function(K,ne){return K>>>=0,ne||L(K,4,this.length),16777216*this[K]+(this[K+1]<<16|this[K+2]<<8|this[K+3])},h.prototype.readBigUInt64LE=ce(function(K){re(K>>>=0,"offset");var ne=this[K],de=this[K+7];ne!==void 0&&de!==void 0||ae(K,this.length-8);var _e=ne+this[++K]*Math.pow(2,8)+this[++K]*Math.pow(2,16)+this[++K]*Math.pow(2,24),ue=this[++K]+this[++K]*Math.pow(2,8)+this[++K]*Math.pow(2,16)+de*Math.pow(2,24);return BigInt(_e)+(BigInt(ue)<>>=0,"offset");var ne=this[K],de=this[K+7];ne!==void 0&&de!==void 0||ae(K,this.length-8);var _e=ne*Math.pow(2,24)+this[++K]*Math.pow(2,16)+this[++K]*Math.pow(2,8)+this[++K],ue=this[++K]*Math.pow(2,24)+this[++K]*Math.pow(2,16)+this[++K]*Math.pow(2,8)+de;return(BigInt(_e)<>>=0,ne>>>=0,de||L(K,ne,this.length);for(var _e=this[K],ue=1,pe=0;++pe=(ue*=128)&&(_e-=Math.pow(2,8*ne)),_e},h.prototype.readIntBE=function(K,ne,de){K>>>=0,ne>>>=0,de||L(K,ne,this.length);for(var _e=ne,ue=1,pe=this[K+--_e];_e>0&&(ue*=256);)pe+=this[K+--_e]*ue;return pe>=(ue*=128)&&(pe-=Math.pow(2,8*ne)),pe},h.prototype.readInt8=function(K,ne){return K>>>=0,ne||L(K,1,this.length),128&this[K]?-1*(255-this[K]+1):this[K]},h.prototype.readInt16LE=function(K,ne){K>>>=0,ne||L(K,2,this.length);var de=this[K]|this[K+1]<<8;return 32768&de?4294901760|de:de},h.prototype.readInt16BE=function(K,ne){K>>>=0,ne||L(K,2,this.length);var de=this[K+1]|this[K]<<8;return 32768&de?4294901760|de:de},h.prototype.readInt32LE=function(K,ne){return K>>>=0,ne||L(K,4,this.length),this[K]|this[K+1]<<8|this[K+2]<<16|this[K+3]<<24},h.prototype.readInt32BE=function(K,ne){return K>>>=0,ne||L(K,4,this.length),this[K]<<24|this[K+1]<<16|this[K+2]<<8|this[K+3]},h.prototype.readBigInt64LE=ce(function(K){re(K>>>=0,"offset");var ne=this[K],de=this[K+7];ne!==void 0&&de!==void 0||ae(K,this.length-8);var _e=this[K+4]+this[K+5]*Math.pow(2,8)+this[K+6]*Math.pow(2,16)+(de<<24);return(BigInt(_e)<>>=0,"offset");var ne=this[K],de=this[K+7];ne!==void 0&&de!==void 0||ae(K,this.length-8);var _e=(ne<<24)+this[++K]*Math.pow(2,16)+this[++K]*Math.pow(2,8)+this[++K];return(BigInt(_e)<>>=0,ne||L(K,4,this.length),m.read(this,K,!0,23,4)},h.prototype.readFloatBE=function(K,ne){return K>>>=0,ne||L(K,4,this.length),m.read(this,K,!1,23,4)},h.prototype.readDoubleLE=function(K,ne){return K>>>=0,ne||L(K,8,this.length),m.read(this,K,!0,52,8)},h.prototype.readDoubleBE=function(K,ne){return K>>>=0,ne||L(K,8,this.length),m.read(this,K,!1,52,8)},h.prototype.writeUintLE=h.prototype.writeUIntLE=function(K,ne,de,_e){K=+K,ne>>>=0,de>>>=0,_e||W(this,K,ne,de,Math.pow(2,8*de)-1,0);var ue=1,pe=0;for(this[ne]=255&K;++pe>>=0,de>>>=0,_e||W(this,K,ne,de,Math.pow(2,8*de)-1,0);var ue=de-1,pe=1;for(this[ne+ue]=255&K;--ue>=0&&(pe*=256);)this[ne+ue]=K/pe&255;return ne+de},h.prototype.writeUint8=h.prototype.writeUInt8=function(K,ne,de){return K=+K,ne>>>=0,de||W(this,K,ne,1,255,0),this[ne]=255&K,ne+1},h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(K,ne,de){return K=+K,ne>>>=0,de||W(this,K,ne,2,65535,0),this[ne]=255&K,this[ne+1]=K>>>8,ne+2},h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(K,ne,de){return K=+K,ne>>>=0,de||W(this,K,ne,2,65535,0),this[ne]=K>>>8,this[ne+1]=255&K,ne+2},h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(K,ne,de){return K=+K,ne>>>=0,de||W(this,K,ne,4,4294967295,0),this[ne+3]=K>>>24,this[ne+2]=K>>>16,this[ne+1]=K>>>8,this[ne]=255&K,ne+4},h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(K,ne,de){return K=+K,ne>>>=0,de||W(this,K,ne,4,4294967295,0),this[ne]=K>>>24,this[ne+1]=K>>>16,this[ne+2]=K>>>8,this[ne+3]=255&K,ne+4},h.prototype.writeBigUInt64LE=ce(function(K){return U(this,K,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),h.prototype.writeBigUInt64BE=ce(function(K){return V(this,K,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),h.prototype.writeIntLE=function(K,ne,de,_e){if(K=+K,ne>>>=0,!_e){var ue=Math.pow(2,8*de-1);W(this,K,ne,de,ue-1,-ue)}var pe=0,xe=1,ye=0;for(this[ne]=255&K;++pe>0)-ye&255;return ne+de},h.prototype.writeIntBE=function(K,ne,de,_e){if(K=+K,ne>>>=0,!_e){var ue=Math.pow(2,8*de-1);W(this,K,ne,de,ue-1,-ue)}var pe=de-1,xe=1,ye=0;for(this[ne+pe]=255&K;--pe>=0&&(xe*=256);)K<0&&ye===0&&this[ne+pe+1]!==0&&(ye=1),this[ne+pe]=(K/xe>>0)-ye&255;return ne+de},h.prototype.writeInt8=function(K,ne,de){return K=+K,ne>>>=0,de||W(this,K,ne,1,127,-128),K<0&&(K=255+K+1),this[ne]=255&K,ne+1},h.prototype.writeInt16LE=function(K,ne,de){return K=+K,ne>>>=0,de||W(this,K,ne,2,32767,-32768),this[ne]=255&K,this[ne+1]=K>>>8,ne+2},h.prototype.writeInt16BE=function(K,ne,de){return K=+K,ne>>>=0,de||W(this,K,ne,2,32767,-32768),this[ne]=K>>>8,this[ne+1]=255&K,ne+2},h.prototype.writeInt32LE=function(K,ne,de){return K=+K,ne>>>=0,de||W(this,K,ne,4,2147483647,-2147483648),this[ne]=255&K,this[ne+1]=K>>>8,this[ne+2]=K>>>16,this[ne+3]=K>>>24,ne+4},h.prototype.writeInt32BE=function(K,ne,de){return K=+K,ne>>>=0,de||W(this,K,ne,4,2147483647,-2147483648),K<0&&(K=4294967295+K+1),this[ne]=K>>>24,this[ne+1]=K>>>16,this[ne+2]=K>>>8,this[ne+3]=255&K,ne+4},h.prototype.writeBigInt64LE=ce(function(K){return U(this,K,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),h.prototype.writeBigInt64BE=ce(function(K){return V(this,K,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),h.prototype.writeFloatLE=function(K,ne,de){return ee(this,K,ne,!0,de)},h.prototype.writeFloatBE=function(K,ne,de){return ee(this,K,ne,!1,de)},h.prototype.writeDoubleLE=function(K,ne,de){return H(this,K,ne,!0,de)},h.prototype.writeDoubleBE=function(K,ne,de){return H(this,K,ne,!1,de)},h.prototype.copy=function(K,ne,de,_e){if(!h.isBuffer(K))throw new TypeError("argument should be a Buffer");if(de||(de=0),_e||_e===0||(_e=this.length),ne>=K.length&&(ne=K.length),ne||(ne=0),_e>0&&_e=this.length)throw new RangeError("Index out of range");if(_e<0)throw new RangeError("sourceEnd out of bounds");_e>this.length&&(_e=this.length),K.length-ne<_e-de&&(_e=K.length-ne+de);var ue=_e-de;return this===K&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(ne,de,_e):Uint8Array.prototype.set.call(K,this.subarray(de,_e),ne),ue},h.prototype.fill=function(K,ne,de,_e){if(typeof K=="string"){if(typeof ne=="string"?(_e=ne,ne=0,de=this.length):typeof de=="string"&&(_e=de,de=this.length),_e!==void 0&&typeof _e!="string")throw new TypeError("encoding must be a string");if(typeof _e=="string"&&!h.isEncoding(_e))throw new TypeError("Unknown encoding: "+_e);if(K.length===1){var ue=K.charCodeAt(0);(_e==="utf8"&&ue<128||_e==="latin1")&&(K=ue)}}else typeof K=="number"?K&=255:typeof K=="boolean"&&(K=Number(K));if(ne<0||this.length>>=0,de=de===void 0?this.length:de>>>0,K||(K=0),typeof K=="number")for(pe=ne;pe"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var Re,Le=d(xe);if(ye){var $e=d(this).constructor;Re=Reflect.construct(Le,arguments,$e)}else Re=Le.apply(this,arguments);return function(Fe,Be){if(Be&&(f(Be)==="object"||typeof Be=="function"))return Be;if(Be!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return c(Fe)}(this,Re)});function Ae(){var Re;return function(Le,$e){if(!(Le instanceof $e))throw new TypeError("Cannot call a class as a function")}(this,Ae),Re=Te.call(this),Object.defineProperty(c(Re),"message",{value:ne.apply(c(Re),arguments),writable:!0,configurable:!0}),Re.name="".concat(Re.name," [").concat(K,"]"),Re.stack,delete Re.name,Re}return ue=Ae,(pe=[{key:"code",get:function(){return K},set:function(Re){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Re,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(K,"]: ").concat(this.message)}}])&&s(ue.prototype,pe),Object.defineProperty(ue,"prototype",{writable:!1}),Ae}(de)}function X(K){for(var ne="",de=K.length,_e=K[0]==="-"?1:0;de>=_e+4;de-=3)ne="_".concat(K.slice(de-3,de)).concat(ne);return"".concat(K.slice(0,de)).concat(ne)}function Q(K,ne,de,_e,ue,pe){if(K>de||K= 0".concat(ye," and < 2").concat(ye," ** ").concat(8*(pe+1)).concat(ye):">= -(2".concat(ye," ** ").concat(8*(pe+1)-1).concat(ye,") and < 2 ** ")+"".concat(8*(pe+1)-1).concat(ye),new Z.ERR_OUT_OF_RANGE("value",xe,K)}(function(Te,Ae,Re){re(Ae,"offset"),Te[Ae]!==void 0&&Te[Ae+Re]!==void 0||ae(Ae,Te.length-(Re+1))})(_e,ue,pe)}function re(K,ne){if(typeof K!="number")throw new Z.ERR_INVALID_ARG_TYPE(ne,"number",K)}function ae(K,ne,de){throw Math.floor(K)!==K?(re(K,de),new Z.ERR_OUT_OF_RANGE("offset","an integer",K)):ne<0?new Z.ERR_BUFFER_OUT_OF_BOUNDS:new Z.ERR_OUT_OF_RANGE("offset",">= ".concat(0," and <= ").concat(ne),K)}G("ERR_BUFFER_OUT_OF_BOUNDS",function(K){return K?"".concat(K," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError),G("ERR_INVALID_ARG_TYPE",function(K,ne){return'The "'.concat(K,'" argument must be of type number. Received type ').concat(f(ne))},TypeError),G("ERR_OUT_OF_RANGE",function(K,ne,de){var _e='The value of "'.concat(K,'" is out of range.'),ue=de;return Number.isInteger(de)&&Math.abs(de)>Math.pow(2,32)?ue=X(String(de)):typeof de=="bigint"&&(ue=String(de),(de>Math.pow(BigInt(2),BigInt(32))||de<-Math.pow(BigInt(2),BigInt(32)))&&(ue=X(ue)),ue+="n"),_e+" It must be ".concat(ne,". Received ").concat(ue)},RangeError);var ie=/[^+/0-9A-Za-z-_]/g;function se(K,ne){var de;ne=ne||1/0;for(var _e=K.length,ue=null,pe=[],xe=0;xe<_e;++xe){if((de=K.charCodeAt(xe))>55295&&de<57344){if(!ue){if(de>56319){(ne-=3)>-1&&pe.push(239,191,189);continue}if(xe+1===_e){(ne-=3)>-1&&pe.push(239,191,189);continue}ue=de;continue}if(de<56320){(ne-=3)>-1&&pe.push(239,191,189),ue=de;continue}de=65536+(ue-55296<<10|de-56320)}else ue&&(ne-=3)>-1&&pe.push(239,191,189);if(ue=null,de<128){if((ne-=1)<0)break;pe.push(de)}else if(de<2048){if((ne-=2)<0)break;pe.push(de>>6|192,63&de|128)}else if(de<65536){if((ne-=3)<0)break;pe.push(de>>12|224,de>>6&63|128,63&de|128)}else{if(!(de<1114112))throw new Error("Invalid code point");if((ne-=4)<0)break;pe.push(de>>18|240,de>>12&63|128,de>>6&63|128,63&de|128)}}return pe}function he(K){return p.toByteArray(function(ne){if((ne=(ne=ne.split("=")[0]).trim().replace(ie,"")).length<2)return"";for(;ne.length%4!=0;)ne+="=";return ne}(K))}function Se(K,ne,de,_e){var ue;for(ue=0;ue<_e&&!(ue+de>=ne.length||ue>=K.length);++ue)ne[ue+de]=K[ue];return ue}function Oe(K,ne){return K instanceof ne||K!=null&&K.constructor!=null&&K.constructor.name!=null&&K.constructor.name===ne.name}function Pe(K){return K!=K}var Me=function(){for(var K="0123456789abcdef",ne=new Array(256),de=0;de<16;++de)for(var _e=16*de,ue=0;ue<16;++ue)ne[_e+ue]=K[de]+K[ue];return ne}();function ce(K){return typeof BigInt>"u"?we:K}function we(){throw new Error("BigInt not supported")}},35791:function(i){i.exports=u,i.exports.isMobile=u,i.exports.default=u;var o=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,a=/CrOS/,s=/android|ipad|playbook|silk/i;function u(c){c||(c={});var d=c.ua;if(d||typeof navigator>"u"||(d=navigator.userAgent),d&&d.headers&&typeof d.headers["user-agent"]=="string"&&(d=d.headers["user-agent"]),typeof d!="string")return!1;var f=o.test(d)&&!a.test(d)||!!c.tablet&&s.test(d);return!f&&c.tablet&&c.featureDetect&&navigator&&navigator.maxTouchPoints>1&&d.indexOf("Macintosh")!==-1&&d.indexOf("Safari")!==-1&&(f=!0),f}},39898:function(i,o,a){var s,u;(function(){var c={version:"3.8.0"},d=[].slice,f=function($){return d.call($)},p=self.document;function m($){return $&&($.ownerDocument||$.document||$).documentElement}function g($){return $&&($.ownerDocument&&$.ownerDocument.defaultView||$.document&&$||$.defaultView)}if(p)try{f(p.documentElement.childNodes)[0].nodeType}catch{f=function(J){for(var oe=J.length,fe=new Array(oe);oe--;)fe[oe]=J[oe];return fe}}if(Date.now||(Date.now=function(){return+new Date}),p)try{p.createElement("DIV").style.setProperty("opacity",0,"")}catch{var b=this.Element.prototype,v=b.setAttribute,h=b.setAttributeNS,y=this.CSSStyleDeclaration.prototype,w=y.setProperty;b.setAttribute=function(J,oe){v.call(this,J,oe+"")},b.setAttributeNS=function(J,oe,fe){h.call(this,J,oe,fe+"")},y.setProperty=function(J,oe,fe){w.call(this,J,oe+"",fe)}}function _($,J){return $J?1:$>=J?0:NaN}function x($){return $===null?NaN:+$}function T($){return!isNaN($)}function k($){return{left:function(J,oe,fe,me){for(arguments.length<3&&(fe=0),arguments.length<4&&(me=J.length);fe>>1;$(J[ve],oe)<0?fe=ve+1:me=ve}return fe},right:function(J,oe,fe,me){for(arguments.length<3&&(fe=0),arguments.length<4&&(me=J.length);fe>>1;$(J[ve],oe)>0?me=ve:fe=ve+1}return fe}}}c.ascending=_,c.descending=function($,J){return J<$?-1:J>$?1:J>=$?0:NaN},c.min=function($,J){var oe,fe,me=-1,ve=$.length;if(arguments.length===1){for(;++me=fe){oe=fe;break}for(;++mefe&&(oe=fe)}else{for(;++me=fe){oe=fe;break}for(;++mefe&&(oe=fe)}return oe},c.max=function($,J){var oe,fe,me=-1,ve=$.length;if(arguments.length===1){for(;++me=fe){oe=fe;break}for(;++meoe&&(oe=fe)}else{for(;++me=fe){oe=fe;break}for(;++meoe&&(oe=fe)}return oe},c.extent=function($,J){var oe,fe,me,ve=-1,De=$.length;if(arguments.length===1){for(;++ve=fe){oe=me=fe;break}for(;++vefe&&(oe=fe),me=fe){oe=me=fe;break}for(;++vefe&&(oe=fe),me1)return De/(Ne-1)},c.deviation=function(){var $=c.variance.apply(this,arguments);return $&&Math.sqrt($)};var S=k(_);function C($){return $.length}c.bisectLeft=S.left,c.bisect=c.bisectRight=S.right,c.bisector=function($){return k($.length===1?function(J,oe){return _($(J),oe)}:$)},c.shuffle=function($,J,oe){(ve=arguments.length)<3&&(oe=$.length,ve<2&&(J=0));for(var fe,me,ve=oe-J;ve;)me=Math.random()*ve--|0,fe=$[ve+J],$[ve+J]=$[me+J],$[me+J]=fe;return $},c.permute=function($,J){for(var oe=J.length,fe=new Array(oe);oe--;)fe[oe]=$[J[oe]];return fe},c.pairs=function($){for(var J=0,oe=$.length-1,fe=$[0],me=new Array(oe<0?0:oe);J=0;)for(J=(fe=$[me]).length;--J>=0;)oe[--De]=fe[J];return oe};var M=Math.abs;function O($,J){for(var oe in J)Object.defineProperty($.prototype,oe,{value:J[oe],enumerable:!1})}function D(){this._=Object.create(null)}c.range=function($,J,oe){if(arguments.length<3&&(oe=1,arguments.length<2&&(J=$,$=0)),(J-$)/oe==1/0)throw new Error("infinite range");var fe,me=[],ve=function(Ee){for(var Ne=1;Ee*Ne%1;)Ne*=10;return Ne}(M(oe)),De=-1;if($*=ve,J*=ve,(oe*=ve)<0)for(;(fe=$+oe*++De)>J;)me.push(fe/ve);else for(;(fe=$+oe*++De)=fe.length)return J?J.call(oe,Ne):$?Ne.sort($):Ne;for(var Ve,Qe,at,bt,Pt=-1,pt=Ne.length,wt=fe[je++],lt=new D;++Pt=fe.length)return Ee;var je=[],Ve=me[Ne++];return Ee.forEach(function(Qe,at){je.push({key:Qe,values:De(at,Ne)})}),Ve?je.sort(function(Qe,at){return Ve(Qe.key,at.key)}):je}return oe.map=function(Ee,Ne){return ve(Ne,Ee,0)},oe.entries=function(Ee){return De(ve(c.map,Ee,0),0)},oe.key=function(Ee){return fe.push(Ee),oe},oe.sortKeys=function(Ee){return me[fe.length-1]=Ee,oe},oe.sortValues=function(Ee){return $=Ee,oe},oe.rollup=function(Ee){return J=Ee,oe},oe},c.set=function($){var J=new R;if($)for(var oe=0,fe=$.length;oe=0&&(fe=$.slice(oe+1),$=$.slice(0,oe)),$)return arguments.length<2?this[$].on(fe):this[$].on(fe,J);if(arguments.length===2){if(J==null)for($ in this)this.hasOwnProperty($)&&this[$].on(fe,null);return this}},c.event=null,c.requote=function($){return $.replace(G,"\\$&")};var G=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,X={}.__proto__?function($,J){$.__proto__=J}:function($,J){for(var oe in J)$[oe]=J[oe]};function Q($){return X($,se),$}var re=function($,J){return J.querySelector($)},ae=function($,J){return J.querySelectorAll($)},ie=function($,J){var oe=$.matches||$[L($,"matchesSelector")];return ie=function(fe,me){return oe.call(fe,me)},ie($,J)};typeof Sizzle=="function"&&(re=function($,J){return Sizzle($,J)[0]||null},ae=Sizzle,ie=Sizzle.matchesSelector),c.selection=function(){return c.select(p.documentElement)};var se=c.selection.prototype=[];function he($){return typeof $=="function"?$:function(){return re($,this)}}function Se($){return typeof $=="function"?$:function(){return ae($,this)}}se.select=function($){var J,oe,fe,me,ve=[];$=he($);for(var De=-1,Ee=this.length;++De=0&&(oe=$.slice(0,J))!=="xmlns"&&($=$.slice(J+1)),Pe.hasOwnProperty(oe)?{space:Pe[oe],local:$}:$}},se.attr=function($,J){if(arguments.length<2){if(typeof $=="string"){var oe=this.node();return($=c.ns.qualify($)).local?oe.getAttributeNS($.space,$.local):oe.getAttribute($)}for(J in $)this.each(Me(J,$[J]));return this}return this.each(Me($,J))},se.classed=function($,J){if(arguments.length<2){if(typeof $=="string"){var oe=this.node(),fe=($=K($)).length,me=-1;if(J=oe.classList){for(;++me=0;)(oe=fe[me])&&(ve&&ve!==oe.nextSibling&&ve.parentNode.insertBefore(oe,ve),ve=oe);return this},se.sort=function($){$=Ae.apply(this,arguments);for(var J=-1,oe=this.length;++J0&&($=$.slice(0,me));var De=Be.get($);function Ee(){var Ne=this[fe];Ne&&(this.removeEventListener($,Ne,Ne.$),delete this[fe])}return De&&($=De,ve=qe),me?J?function(){var Ne=ve(J,f(arguments));Ee.call(this),this.addEventListener($,this[fe]=Ne,Ne.$=oe),Ne._=J}:Ee:J?U:function(){var Ne,je=new RegExp("^__on([^.]+)"+c.requote($)+"$");for(var Ve in this)if(Ne=Ve.match(je)){var Qe=this[Ve];this.removeEventListener(Ne[1],Qe,Qe.$),delete this[Ve]}}}c.selection.enter=Le,c.selection.enter.prototype=$e,$e.append=se.append,$e.empty=se.empty,$e.node=se.node,$e.call=se.call,$e.size=se.size,$e.select=function($){for(var J,oe,fe,me,ve,De=[],Ee=-1,Ne=this.length;++Ee=fe&&(fe=De+1);!(Ne=je[fe])&&++fe1?ut:$<-1?-ut:Math.asin($)}function Wt($){return(($=Math.exp($))+1/$)/2}var _t=Math.SQRT2;c.interpolateZoom=function($,J){var oe,fe,me=$[0],ve=$[1],De=$[2],Ee=J[0],Ne=J[1],je=J[2],Ve=Ee-me,Qe=Ne-ve,at=Ve*Ve+Qe*Qe;if(at0&&(an=an.transition().duration(at)),an.call(Tt.event)}function nn(){De&&De.domain(ve.range().map(function(an){return(an-je.x)/je.k}).map(ve.invert)),Ne&&Ne.domain(Ee.range().map(function(an){return(an-je.y)/je.k}).map(Ee.invert))}function Sn(an){bt++||an({type:"zoomstart"})}function Pn(an){nn(),an({type:"zoom",scale:je.k,translate:[je.x,je.y]})}function In(an){--bt||(an({type:"zoomend"}),J=null)}function On(){var an=this,wn=Dt.of(an,arguments),qn=0,Hn=c.select(g(an)).on(pt,function(){qn=1,Gt(c.mouse(an),Jn),Pn(wn)}).on(wt,function(){Hn.on(pt,null).on(wt,null),Mr(qn),In(wn)}),Jn=ft(c.mouse(an)),Mr=st(an);Eg.call(an),Sn(wn)}function Gn(){var an,wn=this,qn=Dt.of(wn,arguments),Hn={},Jn=0,Mr=".zoom-"+c.event.changedTouches[0].identifier,sa="touchmove"+Mr,Xr="touchend"+Mr,Sa=[],ua=c.select(wn),Ca=st(wn);function ao(){var Da=c.touches(wn);return an=je.k,Da.forEach(function(ca){ca.identifier in Hn&&(Hn[ca.identifier]=ft(ca))}),Da}function Ri(){var Da=c.event.target;c.select(Da).on(sa,Ji).on(Xr,el),Sa.push(Da);for(var ca=c.event.changedTouches,ho=0,mo=ca.length;ho1){Al=So[0];var vs=So[1],Ig=Al[0]-vs[0],e6=Al[1]-vs[1];Jn=Ig*Ig+e6*e6}}function Ji(){var Da,ca,ho,mo,So=c.touches(wn);Eg.call(wn);for(var si=0,Al=So.length;si360?Ee-=360:Ee<0&&(Ee+=360),Ee<60?fe+(me-fe)*Ee/60:Ee<180?me:Ee<240?fe+(me-fe)*(240-Ee)/60:fe}(De))}return $=isNaN($)?0:($%=360)<0?$+360:$,J=isNaN(J)||J<0?0:J>1?1:J,fe=2*(oe=oe<0?0:oe>1?1:oe)-(me=oe<=.5?oe*(1+J):oe+J-oe*J),new It(ve($+120),ve($),ve($-120))}function nt($,J,oe){return this instanceof nt?(this.h=+$,this.c=+J,void(this.l=+oe)):arguments.length<2?$ instanceof nt?new nt($.h,$.c,$.l):function(fe,me,ve){return fe>0?new nt(Math.atan2(ve,me)*Rt,Math.sqrt(me*me+ve*ve),fe):new nt(NaN,NaN,fe)}($ instanceof rt?$.l:($=Bt(($=c.rgb($)).r,$.g,$.b)).l,$.a,$.b):new nt($,J,oe)}Ke.brighter=function($){return $=Math.pow(.7,arguments.length?$:1),new et(this.h,this.s,this.l/$)},Ke.darker=function($){return $=Math.pow(.7,arguments.length?$:1),new et(this.h,this.s,$*this.l)},Ke.rgb=function(){return Ye(this.h,this.s,this.l)},c.hcl=nt;var ct=nt.prototype=new He;function yt($,J,oe){return isNaN($)&&($=0),isNaN(J)&&(J=0),new rt(oe,Math.cos($*=ht)*J,Math.sin($)*J)}function rt($,J,oe){return this instanceof rt?(this.l=+$,this.a=+J,void(this.b=+oe)):arguments.length<2?$ instanceof rt?new rt($.l,$.a,$.b):$ instanceof nt?yt($.h,$.c,$.l):Bt(($=It($)).r,$.g,$.b):new rt($,J,oe)}ct.brighter=function($){return new nt(this.h,this.c,Math.min(100,this.l+Ft*(arguments.length?$:1)))},ct.darker=function($){return new nt(this.h,this.c,Math.max(0,this.l-Ft*(arguments.length?$:1)))},ct.rgb=function(){return yt(this.h,this.c,this.l).rgb()},c.lab=rt;var Ft=18,Yt=.95047,Mt=1,jt=1.08883,Lt=rt.prototype=new He;function gt($,J,oe){var fe=($+16)/116,me=fe+J/500,ve=fe-oe/200;return new It(Ut(3.2404542*(me=mt(me)*Yt)-1.5371385*(fe=mt(fe)*Mt)-.4985314*(ve=mt(ve)*jt)),Ut(-.969266*me+1.8760108*fe+.041556*ve),Ut(.0556434*me-.2040259*fe+1.0572252*ve))}function mt($){return $>.206893034?$*$*$:($-.13793103448275862)/7.787037}function xt($){return $>.008856?Math.pow($,.3333333333333333):7.787037*$+.13793103448275862}function Ut($){return Math.round(255*($<=.00304?12.92*$:1.055*Math.pow($,.4166666666666667)-.055))}function It($,J,oe){return this instanceof It?(this.r=~~$,this.g=~~J,void(this.b=~~oe)):arguments.length<2?$ instanceof It?new It($.r,$.g,$.b):Nt(""+$,It,Ye):new It($,J,oe)}function zt($){return new It($>>16,$>>8&255,255&$)}function kt($){return zt($)+""}Lt.brighter=function($){return new rt(Math.min(100,this.l+Ft*(arguments.length?$:1)),this.a,this.b)},Lt.darker=function($){return new rt(Math.max(0,this.l-Ft*(arguments.length?$:1)),this.a,this.b)},Lt.rgb=function(){return gt(this.l,this.a,this.b)},c.rgb=It;var Ot=It.prototype=new He;function At($){return $<16?"0"+Math.max(0,$).toString(16):Math.min(255,$).toString(16)}function Nt($,J,oe){var fe,me,ve,De=0,Ee=0,Ne=0;if(fe=/([a-z]+)\((.*)\)/.exec($=$.toLowerCase()))switch(me=fe[2].split(","),fe[1]){case"hsl":return oe(parseFloat(me[0]),parseFloat(me[1])/100,parseFloat(me[2])/100);case"rgb":return J(Zt(me[0]),Zt(me[1]),Zt(me[2]))}return(ve=qt.get($))?J(ve.r,ve.g,ve.b):($==null||$.charAt(0)!=="#"||isNaN(ve=parseInt($.slice(1),16))||($.length===4?(De=(3840&ve)>>4,De|=De>>4,Ee=240&ve,Ee|=Ee>>4,Ne=15&ve,Ne|=Ne<<4):$.length===7&&(De=(16711680&ve)>>16,Ee=(65280&ve)>>8,Ne=255&ve)),J(De,Ee,Ne))}function $t($,J,oe){var fe,me,ve=Math.min($/=255,J/=255,oe/=255),De=Math.max($,J,oe),Ee=De-ve,Ne=(De+ve)/2;return Ee?(me=Ne<.5?Ee/(De+ve):Ee/(2-De-ve),fe=$==De?(J-oe)/Ee+(J0&&Ne<1?0:fe),new et(fe,me,Ne)}function Bt($,J,oe){var fe=xt((.4124564*($=Xt($))+.3575761*(J=Xt(J))+.1804375*(oe=Xt(oe)))/Yt),me=xt((.2126729*$+.7151522*J+.072175*oe)/Mt);return rt(116*me-16,500*(fe-me),200*(me-xt((.0193339*$+.119192*J+.9503041*oe)/jt)))}function Xt($){return($/=255)<=.04045?$/12.92:Math.pow(($+.055)/1.055,2.4)}function Zt($){var J=parseFloat($);return $.charAt($.length-1)==="%"?Math.round(2.55*J):J}Ot.brighter=function($){$=Math.pow(.7,arguments.length?$:1);var J=this.r,oe=this.g,fe=this.b,me=30;return J||oe||fe?(J&&J=200&&Qe<300||Qe===304){try{Ve=oe.call(me,Ee)}catch(at){return void ve.error.call(me,at)}ve.load.call(me,Ve)}else ve.error.call(me,Ee)}return self.XDomainRequest&&!("withCredentials"in Ee)&&/^(http(s)?:)?\/\//.test($)&&(Ee=new XDomainRequest),"onload"in Ee?Ee.onload=Ee.onerror=je:Ee.onreadystatechange=function(){Ee.readyState>3&&je()},Ee.onprogress=function(Ve){var Qe=c.event;c.event=Ve;try{ve.progress.call(me,Ee)}finally{c.event=Qe}},me.header=function(Ve,Qe){return Ve=(Ve+"").toLowerCase(),arguments.length<2?De[Ve]:(Qe==null?delete De[Ve]:De[Ve]=Qe+"",me)},me.mimeType=function(Ve){return arguments.length?(J=Ve==null?null:Ve+"",me):J},me.responseType=function(Ve){return arguments.length?(Ne=Ve,me):Ne},me.response=function(Ve){return oe=Ve,me},["get","post"].forEach(function(Ve){me[Ve]=function(){return me.send.apply(me,[Ve].concat(f(arguments)))}}),me.send=function(Ve,Qe,at){if(arguments.length===2&&typeof Qe=="function"&&(at=Qe,Qe=null),Ee.open(Ve,$,!0),J==null||"accept"in De||(De.accept=J+",*/*"),Ee.setRequestHeader)for(var bt in De)Ee.setRequestHeader(bt,De[bt]);return J!=null&&Ee.overrideMimeType&&Ee.overrideMimeType(J),Ne!=null&&(Ee.responseType=Ne),at!=null&&me.on("error",at).on("load",function(Pt){at(null,Pt)}),ve.beforesend.call(me,Ee),Ee.send(Qe??null),me},me.abort=function(){return Ee.abort(),me},c.rebind(me,ve,"on"),fe==null?me:me.get(function(Ve){return Ve.length===1?function(Qe,at){Ve(Qe==null?at:null)}:Ve}(fe))}qt.forEach(function($,J){qt.set($,zt(J))}),c.functor=Ht,c.xhr=sn(q),c.dsv=function($,J){var oe=new RegExp('["'+$+` -]`),fe=$.charCodeAt(0);function me(je,Ve,Qe){arguments.length<3&&(Qe=Ve,Ve=null);var at=xn(je,J,Ve==null?ve:De(Ve),Qe);return at.row=function(bt){return arguments.length?at.response((Ve=bt)==null?ve:De(bt)):Ve},at}function ve(je){return me.parse(je.responseText)}function De(je){return function(Ve){return me.parse(Ve.responseText,je)}}function Ee(je){return je.map(Ne).join($)}function Ne(je){return oe.test(je)?'"'+je.replace(/\"/g,'""')+'"':je}return me.parse=function(je,Ve){var Qe;return me.parseRows(je,function(at,bt){if(Qe)return Qe(at,bt-1);var Pt=function(pt){for(var wt={},lt=at.length,Dt=0;Dt=wt)return Pt;if(at)return at=!1,bt;var Vt=lt;if(je.charCodeAt(Vt)===34){for(var Gt=Vt;Gt++24?(isFinite(J)&&(clearTimeout(en),en=setTimeout(tn,J)),gn=0):(gn=1,kn(tn))}function Fn(){for(var $=Date.now(),J=mn;J;)$>=J.t&&J.c($-J.t)&&(J.c=null),J=J.n;return $}function Rn(){for(var $,J=mn,oe=1/0;J;)J.c?(J.t1&&(J=$[ve[De-2]],oe=$[ve[De-1]],fe=$[Ee],(oe[0]-J[0])*(fe[1]-J[1])-(oe[1]-J[1])*(fe[0]-J[0])<=0);)--De;ve[De++]=Ee}return ve.slice(0,De)}function gr($,J){return $[0]-J[0]||$[1]-J[1]}c.timer=function(){un.apply(this,arguments)},c.timer.flush=function(){Fn(),Rn()},c.round=function($,J){return J?Math.round($*(J=Math.pow(10,J)))/J:Math.round($)},c.geom={},c.geom.hull=function($){var J=Bn,oe=En;if(arguments.length)return fe($);function fe(me){if(me.length<3)return[];var ve,De=Ht(J),Ee=Ht(oe),Ne=me.length,je=[],Ve=[];for(ve=0;ve=0;--ve)pt.push(me[je[Qe[ve]][2]]);for(ve=+bt;veze)Ee=Ee.L;else{if(!((me=ve-Wr(Ee,De))>ze)){fe>-ze?(J=Ee.P,oe=Ee):me>-ze?(J=Ee,oe=Ee.N):J=oe=Ee;break}if(!Ee.R){J=Ee;break}Ee=Ee.R}var Ne=Un($);if(Gr.insert(J,Ne),J||oe){if(J===oe)return Ln(J),oe=Un(J.site),Gr.insert(Ne,oe),Ne.edge=oe.edge=va(J.site,Ne.site),Ya(J),void Ya(oe);if(oe){Ln(J),Ln(oe);var je=J.site,Ve=je.x,Qe=je.y,at=$.x-Ve,bt=$.y-Qe,Pt=oe.site,pt=Pt.x-Ve,wt=Pt.y-Qe,lt=2*(at*wt-bt*pt),Dt=at*at+bt*bt,Tt=pt*pt+wt*wt,ft={x:(wt*Dt-bt*Tt)/lt+Ve,y:(at*Tt-pt*Dt)/lt+Qe};hs(oe.edge,je,Pt,ft),Ne.edge=va(je,$,null,ft),oe.edge=va($,Pt,null,ft),Ya(J),Ya(oe)}else Ne.edge=va(J.site,Ne.site)}}function la($,J){var oe=$.site,fe=oe.x,me=oe.y,ve=me-J;if(!ve)return fe;var De=$.P;if(!De)return-1/0;var Ee=(oe=De.site).x,Ne=oe.y,je=Ne-J;if(!je)return Ee;var Ve=Ee-fe,Qe=1/ve-1/je,at=Ve/je;return Qe?(-at+Math.sqrt(at*at-2*Qe*(Ve*Ve/(-2*je)-Ne+je/2+me-ve/2)))/Qe+fe:(fe+Ee)/2}function Wr($,J){var oe=$.N;if(oe)return la(oe,J);var fe=$.site;return fe.y===J?fe.x:1/0}function Yr($){this.site=$,this.edges=[]}function ii($,J){return J.angle-$.angle}function ko(){Zi(this),this.x=this.y=this.arc=this.site=this.cy=null}function Ya($){var J=$.P,oe=$.N;if(J&&oe){var fe=J.site,me=$.site,ve=oe.site;if(fe!==ve){var De=me.x,Ee=me.y,Ne=fe.x-De,je=fe.y-Ee,Ve=ve.x-De,Qe=2*(Ne*(wt=ve.y-Ee)-je*Ve);if(!(Qe>=-tt)){var at=Ne*Ne+je*je,bt=Ve*Ve+wt*wt,Pt=(wt*at-je*bt)/Qe,pt=(Ne*bt-Ve*at)/Qe,wt=pt+Ee,lt=Xn.pop()||new ko;lt.arc=$,lt.site=me,lt.x=Pt+De,lt.y=wt+Math.sqrt(Pt*Pt+pt*pt),lt.cy=wt,$.circle=lt;for(var Dt=null,Tt=jn._;Tt;)if(lt.y=Ee)return;if(at>Pt){if(ve){if(ve.y>=je)return}else ve={x:wt,y:Ne};oe={x:wt,y:je}}else{if(ve){if(ve.y1)if(at>Pt){if(ve){if(ve.y>=je)return}else ve={x:(Ne-me)/fe,y:Ne};oe={x:(je-me)/fe,y:je}}else{if(ve){if(ve.y=Ee)return}else ve={x:De,y:fe*De+me};oe={x:Ee,y:fe*Ee+me}}else{if(ve){if(ve.x0)){if(lt/=nn,nn<0){if(lt0){if(lt>rn)return;lt>Gt&&(Gt=lt)}if(lt=Qe-ft,nn||!(lt<0)){if(lt/=nn,nn<0){if(lt>rn)return;lt>Gt&&(Gt=lt)}else if(nn>0){if(lt0)){if(lt/=Sn,Sn<0){if(lt0){if(lt>rn)return;lt>Gt&&(Gt=lt)}if(lt=at-Vt,Sn||!(lt<0)){if(lt/=Sn,Sn<0){if(lt>rn)return;lt>Gt&&(Gt=lt)}else if(Sn>0){if(lt0&&(wt.a={x:ft+Gt*nn,y:Vt+Gt*Sn}),rn<1&&(wt.b={x:ft+rn*nn,y:Vt+rn*Sn}),wt}}}}}),pt=bt.length;pt--;)(!ta(Ne=bt[pt],Ee)||!Pt(Ne)||M(Ne.a.x-Ne.b.x)ze||M(Qe-je)>ze)&&(Pt.splice(bt,0,new ms((nn=at.site,Sn=lt,Pn=M(Ve-Dt)ze?{x:Dt,y:M(Ne-Dt)ze?{x:M(je-Vt)ze?{x:Tt,y:M(Ne-Tt)ze?{x:M(je-ft)=Ve&<.x<=at&<.y>=Qe&<.y<=bt?[[Ve,bt],[at,bt],[at,Qe],[Ve,Qe]]:[]).point=Ne[pt]}),je}function Ee(Ne){return Ne.map(function(je,Ve){return{x:Math.round(fe(je,Ve)/ze)*ze,y:Math.round(me(je,Ve)/ze)*ze,i:Ve}})}return De.links=function(Ne){return Pc(Ee(Ne)).edges.filter(function(je){return je.l&&je.r}).map(function(je){return{source:Ne[je.l.i],target:Ne[je.r.i]}})},De.triangles=function(Ne){var je=[];return Pc(Ee(Ne)).cells.forEach(function(Ve,Qe){for(var at,bt,Pt,pt,wt=Ve.site,lt=Ve.edges.sort(ii),Dt=-1,Tt=lt.length,ft=lt[Tt-1].edge,Vt=ft.l===wt?ft.r:ft.l;++Dtve&&(me=J.slice(ve,me),Ee[De]?Ee[De]+=me:Ee[++De]=me),(oe=oe[0])===(fe=fe[0])?Ee[De]?Ee[De]+=fe:Ee[++De]=fe:(Ee[++De]=null,Ne.push({i:De,x:Ol(oe,fe)})),ve=_2.lastIndex;return velt&&(lt=Ve.x),Ve.y>Dt&&(Dt=Ve.y),Qe.push(Ve.x),at.push(Ve.y);else for(bt=0;btlt&&(lt=Vt),Gt>Dt&&(Dt=Gt),Qe.push(Vt),at.push(Gt)}var rn=lt-pt,nn=Dt-wt;function Sn(On,Gn,nr,Dr,an,wn,qn,Hn){if(!isNaN(nr)&&!isNaN(Dr))if(On.leaf){var Jn=On.x,Mr=On.y;if(Jn!=null)if(M(Jn-nr)+M(Mr-Dr)<.01)Pn(On,Gn,nr,Dr,an,wn,qn,Hn);else{var sa=On.point;On.x=On.y=On.point=null,Pn(On,sa,Jn,Mr,an,wn,qn,Hn),Pn(On,Gn,nr,Dr,an,wn,qn,Hn)}else On.x=nr,On.y=Dr,On.point=Gn}else Pn(On,Gn,nr,Dr,an,wn,qn,Hn)}function Pn(On,Gn,nr,Dr,an,wn,qn,Hn){var Jn=.5*(an+qn),Mr=.5*(wn+Hn),sa=nr>=Jn,Xr=Dr>=Mr,Sa=Xr<<1|sa;On.leaf=!1,sa?an=Jn:qn=Jn,Xr?wn=Mr:Hn=Mr,Sn(On=On.nodes[Sa]||(On.nodes[Sa]={leaf:!0,nodes:[],point:null,x:null,y:null}),Gn,nr,Dr,an,wn,qn,Hn)}rn>nn?Dt=wt+rn:lt=pt+nn;var In={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(On){Sn(In,On,+Tt(On,++bt),+ft(On,bt),pt,wt,lt,Dt)}};if(In.visit=function(On){$f(On,In,pt,wt,lt,Dt)},In.find=function(On){return function(Gn,nr,Dr,an,wn,qn,Hn){var Jn,Mr=1/0;return function sa(Xr,Sa,ua,Ca,ao){if(!(Sa>qn||ua>Hn||Ca=So)<<1|nr>=mo,Al=si+4;si=0&&!(oe=c.interpolators[fe]($,J)););return oe}function Tg($,J){var oe,fe=[],me=[],ve=$.length,De=J.length,Ee=Math.min($.length,J.length);for(oe=0;oe=1)return 1;var J=$*$,oe=J*$;return 4*($<.5?oe:3*($-J)+oe-.75)}function PX($){return 1-Math.cos($*ut)}function OX($){return Math.pow(2,10*($-1))}function AX($){return 1-Math.sqrt(1-$*$)}function DX($){return $<.36363636363636365?7.5625*$*$:$<.7272727272727273?7.5625*($-=.5454545454545454)*$+.75:$<.9090909090909091?7.5625*($-=.8181818181818182)*$+.9375:7.5625*($-=.9545454545454546)*$+.984375}function iO($,J){return J-=$,function(oe){return Math.round($+J*oe)}}function lO($){var J,oe,fe,me=[$.a,$.b],ve=[$.c,$.d],De=uO(me),Ee=sO(me,ve),Ne=uO(((J=ve)[0]+=(fe=-Ee)*(oe=me)[0],J[1]+=fe*oe[1],J))||0;me[0]*ve[1]=0?$.slice(0,oe):$,me=oe>=0?$.slice(oe+1):"in";return fe=TX.get(fe)||rO,me=kX.get(me)||q,J=me(fe.apply(null,d.call(arguments,1))),function(ve){return ve<=0?0:ve>=1?1:J(ve)}},c.interpolateHcl=function($,J){$=c.hcl($),J=c.hcl(J);var oe=$.h,fe=$.c,me=$.l,ve=J.h-oe,De=J.c-fe,Ee=J.l-me;return isNaN(De)&&(De=0,fe=isNaN(fe)?J.c:fe),isNaN(ve)?(ve=0,oe=isNaN(oe)?J.h:oe):ve>180?ve-=360:ve<-180&&(ve+=360),function(Ne){return yt(oe+ve*Ne,fe+De*Ne,me+Ee*Ne)+""}},c.interpolateHsl=function($,J){$=c.hsl($),J=c.hsl(J);var oe=$.h,fe=$.s,me=$.l,ve=J.h-oe,De=J.s-fe,Ee=J.l-me;return isNaN(De)&&(De=0,fe=isNaN(fe)?J.s:fe),isNaN(ve)?(ve=0,oe=isNaN(oe)?J.h:oe):ve>180?ve-=360:ve<-180&&(ve+=360),function(Ne){return Ye(oe+ve*Ne,fe+De*Ne,me+Ee*Ne)+""}},c.interpolateLab=function($,J){$=c.lab($),J=c.lab(J);var oe=$.l,fe=$.a,me=$.b,ve=J.l-oe,De=J.a-fe,Ee=J.b-me;return function(Ne){return gt(oe+ve*Ne,fe+De*Ne,me+Ee*Ne)+""}},c.interpolateRound=iO,c.transform=function($){var J=p.createElementNS(c.ns.prefix.svg,"g");return(c.transform=function(oe){if(oe!=null){J.setAttribute("transform",oe);var fe=J.transform.baseVal.consolidate()}return new lO(fe?fe.matrix:EX)})($)},lO.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var EX={a:1,b:0,c:0,d:1,e:0,f:0};function Oc($){return $.length?$.pop()+",":""}function cO($,J){var oe=[],fe=[];return $=c.transform($),J=c.transform(J),function(me,ve,De,Ee){if(me[0]!==ve[0]||me[1]!==ve[1]){var Ne=De.push("translate(",null,",",null,")");Ee.push({i:Ne-4,x:Ol(me[0],ve[0])},{i:Ne-2,x:Ol(me[1],ve[1])})}else(ve[0]||ve[1])&&De.push("translate("+ve+")")}($.translate,J.translate,oe,fe),function(me,ve,De,Ee){me!==ve?(me-ve>180?ve+=360:ve-me>180&&(me+=360),Ee.push({i:De.push(Oc(De)+"rotate(",null,")")-2,x:Ol(me,ve)})):ve&&De.push(Oc(De)+"rotate("+ve+")")}($.rotate,J.rotate,oe,fe),function(me,ve,De,Ee){me!==ve?Ee.push({i:De.push(Oc(De)+"skewX(",null,")")-2,x:Ol(me,ve)}):ve&&De.push(Oc(De)+"skewX("+ve+")")}($.skew,J.skew,oe,fe),function(me,ve,De,Ee){if(me[0]!==ve[0]||me[1]!==ve[1]){var Ne=De.push(Oc(De)+"scale(",null,",",null,")");Ee.push({i:Ne-4,x:Ol(me[0],ve[0])},{i:Ne-2,x:Ol(me[1],ve[1])})}else ve[0]===1&&ve[1]===1||De.push(Oc(De)+"scale("+ve+")")}($.scale,J.scale,oe,fe),$=J=null,function(me){for(var ve,De=-1,Ee=fe.length;++De0?oe=ft:($.c=null,$.t=NaN,$=null,Ee.end({type:"end",alpha:oe=0})):ft>0&&(Ee.start({type:"start",alpha:oe=ft}),$=un(De.tick)),De):oe},De.start=function(){var ft,Vt,Gt,rn=wt.length,nn=lt.length,Sn=Ne[0],Pn=Ne[1];for(ft=0;ft=0;)oe.push(me[fe])}function Qi($,J){for(var oe=[$],fe=[];($=oe.pop())!=null;)if(fe.push($),(ve=$.children)&&(me=ve.length))for(var me,ve,De=-1;++De=0;)De.push(Ve=je[Ne]),Ve.parent=ve,Ve.depth=ve.depth+1;oe&&(ve.value=0),ve.children=je}else oe&&(ve.value=+oe.call(fe,ve,ve.depth)||0),delete ve.children;return Qi(me,function(Qe){var at,bt;$&&(at=Qe.children)&&at.sort($),oe&&(bt=Qe.parent)&&(bt.value+=Qe.value)}),Ee}return fe.sort=function(me){return arguments.length?($=me,fe):$},fe.children=function(me){return arguments.length?(J=me,fe):J},fe.value=function(me){return arguments.length?(oe=me,fe):oe},fe.revalue=function(me){return oe&&(Ff(me,function(ve){ve.children&&(ve.value=0)}),Qi(me,function(ve){var De;ve.children||(ve.value=+oe.call(fe,ve,ve.depth)||0),(De=ve.parent)&&(De.value+=ve.value)})),me},fe},c.layout.partition=function(){var $=c.layout.hierarchy(),J=[1,1];function oe(ve,De,Ee,Ne){var je=ve.children;if(ve.x=De,ve.y=ve.depth*Ne,ve.dx=Ee,ve.dy=Ne,je&&(Ve=je.length)){var Ve,Qe,at,bt=-1;for(Ee=ve.value?Ee/ve.value:0;++btEe&&(Ee=fe),De.push(fe)}for(oe=0;oeme&&(fe=oe,me=J);return fe}function JX($){return $.reduce(eK,0)}function eK($,J){return $+J[1]}function tK($,J){return hO($,Math.ceil(Math.log(J.length)/Math.LN2+1))}function hO($,J){for(var oe=-1,fe=+$[0],me=($[1]-fe)/J,ve=[];++oe<=J;)ve[oe]=me*oe+fe;return ve}function nK($){return[c.min($),c.max($)]}function rK($,J){return $.value-J.value}function S2($,J){var oe=$._pack_next;$._pack_next=J,J._pack_prev=$,J._pack_next=oe,oe._pack_prev=J}function mO($,J){$._pack_next=J,J._pack_prev=$}function gO($,J){var oe=J.x-$.x,fe=J.y-$.y,me=$.r+J.r;return .999*me*me>oe*oe+fe*fe}function vO($){if((J=$.children)&&(Ne=J.length)){var J,oe,fe,me,ve,De,Ee,Ne,je=1/0,Ve=-1/0,Qe=1/0,at=-1/0;if(J.forEach(aK),(oe=J[0]).x=-oe.r,oe.y=0,Tt(oe),Ne>1&&((fe=J[1]).x=fe.r,fe.y=0,Tt(fe),Ne>2))for(bO(oe,fe,me=J[2]),Tt(me),S2(oe,me),oe._pack_prev=me,S2(me,fe),fe=oe._pack_next,ve=3;ve0)for(De=-1;++De=Qe[0]&&Ne<=Qe[1]&&((Ee=je[c.bisect(at,Ne,1,Pt)-1]).y+=pt,Ee.push(ve[De]));return je}return me.value=function(ve){return arguments.length?(J=ve,me):J},me.range=function(ve){return arguments.length?(oe=Ht(ve),me):oe},me.bins=function(ve){return arguments.length?(fe=typeof ve=="number"?function(De){return hO(De,ve)}:Ht(ve),me):fe},me.frequency=function(ve){return arguments.length?($=!!ve,me):$},me},c.layout.pack=function(){var $,J=c.layout.hierarchy().sort(rK),oe=0,fe=[1,1];function me(ve,De){var Ee=J.call(this,ve,De),Ne=Ee[0],je=fe[0],Ve=fe[1],Qe=$==null?Math.sqrt:typeof $=="function"?$:function(){return $};if(Ne.x=Ne.y=0,Qi(Ne,function(bt){bt.r=+Qe(bt.value)}),Qi(Ne,vO),oe){var at=oe*($?1:Math.max(2*Ne.r/je,2*Ne.r/Ve))/2;Qi(Ne,function(bt){bt.r+=at}),Qi(Ne,vO),Qi(Ne,function(bt){bt.r-=at})}return yO(Ne,je/2,Ve/2,$?1:1/Math.max(2*Ne.r/je,2*Ne.r/Ve)),Ee}return me.size=function(ve){return arguments.length?(fe=ve,me):fe},me.radius=function(ve){return arguments.length?($=ve==null||typeof ve=="function"?ve:+ve,me):$},me.padding=function(ve){return arguments.length?(oe=+ve,me):oe},Nf(me,J)},c.layout.tree=function(){var $=c.layout.hierarchy().sort(null).value(null),J=xO,oe=[1,1],fe=null;function me(Ne,je){var Ve=$.call(this,Ne,je),Qe=Ve[0],at=function(Tt){for(var ft,Vt={A:null,children:[Tt]},Gt=[Vt];(ft=Gt.pop())!=null;)for(var rn,nn=ft.children,Sn=0,Pn=nn.length;SnPt.x&&(Pt=Tt),Tt.depth>pt.depth&&(pt=Tt)});var wt=J(bt,Pt)/2-bt.x,lt=oe[0]/(Pt.x+J(Pt,bt)/2+wt),Dt=oe[1]/(pt.depth||1);Ff(Qe,function(Tt){Tt.x=(Tt.x+wt)*lt,Tt.y=Tt.depth*Dt})}return Ve}function ve(Ne){var je=Ne.children,Ve=Ne.parent.children,Qe=Ne.i?Ve[Ne.i-1]:null;if(je.length){(function(bt){for(var Pt,pt=0,wt=0,lt=bt.children,Dt=lt.length;--Dt>=0;)(Pt=lt[Dt]).z+=pt,Pt.m+=pt,pt+=Pt.s+(wt+=Pt.c)})(Ne);var at=(je[0].z+je[je.length-1].z)/2;Qe?(Ne.z=Qe.z+J(Ne._,Qe._),Ne.m=Ne.z-at):Ne.z=at}else Qe&&(Ne.z=Qe.z+J(Ne._,Qe._));Ne.parent.A=function(bt,Pt,pt){if(Pt){for(var wt,lt=bt,Dt=bt,Tt=Pt,ft=lt.parent.children[0],Vt=lt.m,Gt=Dt.m,rn=Tt.m,nn=ft.m;Tt=M2(Tt),lt=C2(lt),Tt&<)ft=C2(ft),(Dt=M2(Dt)).a=bt,(wt=Tt.z+rn-lt.z-Vt+J(Tt._,lt._))>0&&(iK(lK(Tt,bt,pt),bt,wt),Vt+=wt,Gt+=wt),rn+=Tt.m,Vt+=lt.m,nn+=ft.m,Gt+=Dt.m;Tt&&!M2(Dt)&&(Dt.t=Tt,Dt.m+=rn-Gt),lt&&!C2(ft)&&(ft.t=lt,ft.m+=Vt-nn,pt=bt)}return pt}(Ne,Qe,Ne.parent.A||Ve[0])}function De(Ne){Ne._.x=Ne.z+Ne.parent.m,Ne.m+=Ne.parent.m}function Ee(Ne){Ne.x*=oe[0],Ne.y=Ne.depth*oe[1]}return me.separation=function(Ne){return arguments.length?(J=Ne,me):J},me.size=function(Ne){return arguments.length?(fe=(oe=Ne)==null?Ee:null,me):fe?null:oe},me.nodeSize=function(Ne){return arguments.length?(fe=(oe=Ne)==null?null:Ee,me):fe?oe:null},Nf(me,$)},c.layout.cluster=function(){var $=c.layout.hierarchy().sort(null).value(null),J=xO,oe=[1,1],fe=!1;function me(ve,De){var Ee,Ne=$.call(this,ve,De),je=Ne[0],Ve=0;Qi(je,function(pt){var wt=pt.children;wt&&wt.length?(pt.x=function(lt){return lt.reduce(function(Dt,Tt){return Dt+Tt.x},0)/lt.length}(wt),pt.y=function(lt){return 1+c.max(lt,function(Dt){return Dt.y})}(wt)):(pt.x=Ee?Ve+=J(pt,Ee):0,pt.y=0,Ee=pt)});var Qe=wO(je),at=_O(je),bt=Qe.x-J(Qe,at)/2,Pt=at.x+J(at,Qe)/2;return Qi(je,fe?function(pt){pt.x=(pt.x-je.x)*oe[0],pt.y=(je.y-pt.y)*oe[1]}:function(pt){pt.x=(pt.x-bt)/(Pt-bt)*oe[0],pt.y=(1-(je.y?pt.y/je.y:1))*oe[1]}),Ne}return me.separation=function(ve){return arguments.length?(J=ve,me):J},me.size=function(ve){return arguments.length?(fe=(oe=ve)==null,me):fe?null:oe},me.nodeSize=function(ve){return arguments.length?(fe=(oe=ve)!=null,me):fe?oe:null},Nf(me,$)},c.layout.treemap=function(){var $,J=c.layout.hierarchy(),oe=Math.round,fe=[1,1],me=null,ve=P2,De=!1,Ee="squarify",Ne=.5*(1+Math.sqrt(5));function je(pt,wt){for(var lt,Dt,Tt=-1,ft=pt.length;++Tt0;)Vt.push(lt=Gt[Tt-1]),Vt.area+=lt.area,Ee!=="squarify"||(Dt=at(Vt,nn))<=rn?(Gt.pop(),rn=Dt):(Vt.area-=Vt.pop().area,bt(Vt,nn,ft,!1),nn=Math.min(ft.dx,ft.dy),Vt.length=Vt.area=0,rn=1/0);Vt.length&&(bt(Vt,nn,ft,!0),Vt.length=Vt.area=0),wt.forEach(Ve)}}function Qe(pt){var wt=pt.children;if(wt&&wt.length){var lt,Dt=ve(pt),Tt=wt.slice(),ft=[];for(je(Tt,Dt.dx*Dt.dy/pt.value),ft.area=0;lt=Tt.pop();)ft.push(lt),ft.area+=lt.area,lt.z!=null&&(bt(ft,lt.z?Dt.dx:Dt.dy,Dt,!Tt.length),ft.length=ft.area=0);wt.forEach(Qe)}}function at(pt,wt){for(var lt,Dt=pt.area,Tt=0,ft=1/0,Vt=-1,Gt=pt.length;++VtTt&&(Tt=lt));return wt*=wt,(Dt*=Dt)?Math.max(wt*Tt*Ne/Dt,Dt/(wt*ft*Ne)):1/0}function bt(pt,wt,lt,Dt){var Tt,ft=-1,Vt=pt.length,Gt=lt.x,rn=lt.y,nn=wt?oe(pt.area/wt):0;if(wt==lt.dx){for((Dt||nn>lt.dy)&&(nn=lt.dy);++ftlt.dx)&&(nn=lt.dx);++ft1);return $+J*fe*Math.sqrt(-2*Math.log(ve)/ve)}},logNormal:function(){var $=c.random.normal.apply(c,arguments);return function(){return Math.exp($())}},bates:function($){var J=c.random.irwinHall($);return function(){return J()/$}},irwinHall:function($){return function(){for(var J=0,oe=0;oe<$;oe++)J+=Math.random();return J}}},c.scale={};var uK={floor:q,ceil:q};function cK($,J,oe,fe){var me=[],ve=[],De=0,Ee=Math.min($.length,J.length)-1;for($[Ee]<$[0]&&($=$.slice().reverse(),J=J.slice().reverse());++De<=Ee;)me.push(oe($[De-1],$[De])),ve.push(fe(J[De-1],J[De]));return function(Ne){var je=c.bisect($,Ne,1,Ee)-1;return ve[je](me[je](Ne))}}function SO($,J,oe,fe){var me,ve;function De(){var Ne=Math.min($.length,J.length)>2?cK:sK,je=fe?LX:RX;return me=Ne($,J,je,oe),ve=Ne(J,$,je,uu),Ee}function Ee(Ne){return me(Ne)}return Ee.invert=function(Ne){return ve(Ne)},Ee.domain=function(Ne){return arguments.length?($=Ne.map(Number),De()):$},Ee.range=function(Ne){return arguments.length?(J=Ne,De()):J},Ee.rangeRound=function(Ne){return Ee.range(Ne).interpolate(iO)},Ee.clamp=function(Ne){return arguments.length?(fe=Ne,De()):fe},Ee.interpolate=function(Ne){return arguments.length?(oe=Ne,De()):oe},Ee.ticks=function(Ne){return D2($,Ne)},Ee.tickFormat=function(Ne,je){return d3_scale_linearTickFormat($,Ne,je)},Ee.nice=function(Ne){return MO($,Ne),De()},Ee.copy=function(){return SO($,J,oe,fe)},De()}function CO($,J){return c.rebind($,J,"range","rangeRound","interpolate","clamp")}function MO($,J){return O2($,kO(A2($,J)[2])),O2($,kO(A2($,J)[2])),$}function A2($,J){J==null&&(J=10);var oe=kg($),fe=oe[1]-oe[0],me=Math.pow(10,Math.floor(Math.log(fe/J)/Math.LN10)),ve=J/fe*me;return ve<=.15?me*=10:ve<=.35?me*=5:ve<=.75&&(me*=2),oe[0]=Math.ceil(oe[0]/me)*me,oe[1]=Math.floor(oe[1]/me)*me+.5*me,oe[2]=me,oe}function D2($,J){return c.range.apply(c,A2($,J))}function PO($,J,oe,fe){function me(Ee){return(oe?Math.log(Ee<0?0:Ee):-Math.log(Ee>0?0:-Ee))/Math.log(J)}function ve(Ee){return oe?Math.pow(J,Ee):-Math.pow(J,-Ee)}function De(Ee){return $(me(Ee))}return De.invert=function(Ee){return ve($.invert(Ee))},De.domain=function(Ee){return arguments.length?(oe=Ee[0]>=0,$.domain((fe=Ee.map(Number)).map(me)),De):fe},De.base=function(Ee){return arguments.length?(J=+Ee,$.domain(fe.map(me)),De):J},De.nice=function(){var Ee=O2(fe.map(me),oe?Math:dK);return $.domain(Ee),fe=Ee.map(ve),De},De.ticks=function(){var Ee=kg(fe),Ne=[],je=Ee[0],Ve=Ee[1],Qe=Math.floor(me(je)),at=Math.ceil(me(Ve)),bt=J%1?2:J;if(isFinite(at-Qe)){if(oe){for(;Qe0;Pt--)Ne.push(ve(Qe)*Pt);for(Qe=0;Ne[Qe]Ve;at--);Ne=Ne.slice(Qe,at)}return Ne},De.copy=function(){return PO($.copy(),J,oe,fe)},CO(De,$)}c.scale.linear=function(){return SO([0,1],[0,1],uu,!1)},c.scale.log=function(){return PO(c.scale.linear().domain([0,1]),10,!0,[1,10])};var dK={floor:function($){return-Math.ceil(-$)},ceil:function($){return-Math.floor(-$)}};function OO($,J,oe){var fe=Cg(J),me=Cg(1/J);function ve(De){return $(fe(De))}return ve.invert=function(De){return me($.invert(De))},ve.domain=function(De){return arguments.length?($.domain((oe=De.map(Number)).map(fe)),ve):oe},ve.ticks=function(De){return D2(oe,De)},ve.tickFormat=function(De,Ee){return d3_scale_linearTickFormat(oe,De,Ee)},ve.nice=function(De){return ve.domain(MO(oe,De))},ve.exponent=function(De){return arguments.length?(fe=Cg(J=De),me=Cg(1/J),$.domain(oe.map(fe)),ve):J},ve.copy=function(){return OO($.copy(),J,oe)},CO(ve,$)}function Cg($){return function(J){return J<0?-Math.pow(-J,$):Math.pow(J,$)}}function AO($,J){var oe,fe,me;function ve(Ee){return fe[((oe.get(Ee)||(J.t==="range"?oe.set(Ee,$.push(Ee)):NaN))-1)%fe.length]}function De(Ee,Ne){return c.range($.length).map(function(je){return Ee+Ne*je})}return ve.domain=function(Ee){if(!arguments.length)return $;$=[],oe=new D;for(var Ne,je=-1,Ve=Ee.length;++je0?oe[ve-1]:$[0],veat?0:1;if(Ve=Ze)return Ne(Ve,Pt)+(je?Ne(je,1-Pt):"")+"Z";var pt,wt,lt,Dt,Tt,ft,Vt,Gt,rn,nn,Sn,Pn,In=0,On=0,Gn=[];if((Dt=(+De.apply(this,arguments)||0)/2)&&(lt=fe===Mg?Math.sqrt(je*je+Ve*Ve):+fe.apply(this,arguments),Pt||(On*=-1),Ve&&(On=Ct(lt/Ve*Math.sin(Dt))),je&&(In=Ct(lt/je*Math.sin(Dt)))),Ve){Tt=Ve*Math.cos(Qe+On),ft=Ve*Math.sin(Qe+On),Vt=Ve*Math.cos(at-On),Gt=Ve*Math.sin(at-On);var nr=Math.abs(at-Qe-2*On)<=it?0:1;if(On&&Pg(Tt,ft,Vt,Gt)===Pt^nr){var Dr=(Qe+at)/2;Tt=Ve*Math.cos(Dr),ft=Ve*Math.sin(Dr),Vt=Gt=null}}else Tt=ft=0;if(je){rn=je*Math.cos(at-In),nn=je*Math.sin(at-In),Sn=je*Math.cos(Qe+In),Pn=je*Math.sin(Qe+In);var an=Math.abs(Qe-at+2*In)<=it?0:1;if(In&&Pg(rn,nn,Sn,Pn)===1-Pt^an){var wn=(Qe+at)/2;rn=je*Math.cos(wn),nn=je*Math.sin(wn),Sn=Pn=null}}else rn=nn=0;if(bt>ze&&(pt=Math.min(Math.abs(Ve-je)/2,+oe.apply(this,arguments)))>.001){wt=je0?0:1}function Og($,J,oe,fe,me){var ve=$[0]-J[0],De=$[1]-J[1],Ee=(me?fe:-fe)/Math.sqrt(ve*ve+De*De),Ne=Ee*De,je=-Ee*ve,Ve=$[0]+Ne,Qe=$[1]+je,at=J[0]+Ne,bt=J[1]+je,Pt=(Ve+at)/2,pt=(Qe+bt)/2,wt=at-Ve,lt=bt-Qe,Dt=wt*wt+lt*lt,Tt=oe-fe,ft=Ve*bt-at*Qe,Vt=(lt<0?-1:1)*Math.sqrt(Math.max(0,Tt*Tt*Dt-ft*ft)),Gt=(ft*lt-wt*Vt)/Dt,rn=(-ft*wt-lt*Vt)/Dt,nn=(ft*lt+wt*Vt)/Dt,Sn=(-ft*wt+lt*Vt)/Dt,Pn=Gt-Pt,In=rn-pt,On=nn-Pt,Gn=Sn-pt;return Pn*Pn+In*In>On*On+Gn*Gn&&(Gt=nn,rn=Sn),[[Gt-Ne,rn-je],[Gt*oe/Tt,rn*oe/Tt]]}function NO(){return!0}function FO($){var J=Bn,oe=En,fe=NO,me=Ei,ve=me.key,De=.7;function Ee(Ne){var je,Ve=[],Qe=[],at=-1,bt=Ne.length,Pt=Ht(J),pt=Ht(oe);function wt(){Ve.push("M",me($(Qe),De))}for(;++at1&&me.push("H",fe[0]),me.join("")},"step-before":R2,"step-after":L2,basis:zO,"basis-open":function($){if($.length<4)return Ei($);for(var J,oe=[],fe=-1,me=$.length,ve=[0],De=[0];++fe<3;)J=$[fe],ve.push(J[0]),De.push(J[1]);for(oe.push(li(gs,ve)+","+li(gs,De)),--fe;++fe9&&(ve=3*oe/Math.sqrt(ve),Ee[Ne]=ve*fe,Ee[Ne+1]=ve*me);for(Ne=-1;++Ne<=je;)ve=(J[Math.min(je,Ne+1)][0]-J[Math.max(0,Ne-1)][0])/(6*(1+Ee[Ne]*Ee[Ne])),De.push([ve||0,Ee[Ne]*ve||0]);return De}($))}});function Ei($){return $.length>1?$.join("L"):$+"Z"}function jO($){return $.join("L")+"Z"}function R2($){for(var J=0,oe=$.length,fe=$[0],me=[fe[0],",",fe[1]];++J1){Ee=J[1],ve=$[Ne],Ne++,fe+="C"+(me[0]+De[0])+","+(me[1]+De[1])+","+(ve[0]-Ee[0])+","+(ve[1]-Ee[1])+","+ve[0]+","+ve[1];for(var je=2;jeit)+",1 "+Ve}function Ne(je,Ve,Qe,at){return"Q 0,0 "+at}return ve.radius=function(je){return arguments.length?(oe=Ht(je),ve):oe},ve.source=function(je){return arguments.length?($=Ht(je),ve):$},ve.target=function(je){return arguments.length?(J=Ht(je),ve):J},ve.startAngle=function(je){return arguments.length?(fe=Ht(je),ve):fe},ve.endAngle=function(je){return arguments.length?(me=Ht(je),ve):me},ve},c.svg.diagonal=function(){var $=HO,J=VO,oe=GO;function fe(me,ve){var De=$.call(this,me,ve),Ee=J.call(this,me,ve),Ne=(De.y+Ee.y)/2,je=[De,{x:De.x,y:Ne},{x:Ee.x,y:Ne},Ee];return"M"+(je=je.map(oe))[0]+"C"+je[1]+" "+je[2]+" "+je[3]}return fe.source=function(me){return arguments.length?($=Ht(me),fe):$},fe.target=function(me){return arguments.length?(J=Ht(me),fe):J},fe.projection=function(me){return arguments.length?(oe=me,fe):oe},fe},c.svg.diagonal.radial=function(){var $=c.svg.diagonal(),J=GO,oe=$.projection;return $.projection=function(fe){return arguments.length?oe(function(me){return function(){var ve=me.apply(this,arguments),De=ve[0],Ee=ve[1]-ut;return[De*Math.cos(Ee),De*Math.sin(Ee)]}}(J=fe)):J},$},c.svg.symbol=function(){var $=_K,J=wK;function oe(fe,me){return(XO.get($.call(this,fe,me))||YO)(J.call(this,fe,me))}return oe.type=function(fe){return arguments.length?($=Ht(fe),oe):$},oe.size=function(fe){return arguments.length?(J=Ht(fe),oe):J},oe};var XO=c.map({circle:YO,cross:function($){var J=Math.sqrt($/5)/2;return"M"+-3*J+","+-J+"H"+-J+"V"+-3*J+"H"+J+"V"+-J+"H"+3*J+"V"+J+"H"+J+"V"+3*J+"H"+-J+"V"+J+"H"+-3*J+"Z"},diamond:function($){var J=Math.sqrt($/(2*KO)),oe=J*KO;return"M0,"+-J+"L"+oe+",0 0,"+J+" "+-oe+",0Z"},square:function($){var J=Math.sqrt($)/2;return"M"+-J+","+-J+"L"+J+","+-J+" "+J+","+J+" "+-J+","+J+"Z"},"triangle-down":function($){var J=Math.sqrt($/Dg),oe=J*Dg/2;return"M0,"+oe+"L"+J+","+-oe+" "+-J+","+-oe+"Z"},"triangle-up":function($){var J=Math.sqrt($/Dg),oe=J*Dg/2;return"M0,"+-oe+"L"+J+","+oe+" "+-J+","+oe+"Z"}});c.svg.symbolTypes=XO.keys();var Dg=Math.sqrt(3),KO=Math.tan(30*ht);se.transition=function($){for(var J,oe,fe=cu||++QO,me=j2($),ve=[],De=Rg||{time:Date.now(),ease:MX,delay:0,duration:250},Ee=-1,Ne=this.length;++Ee0;)je[--lt].call($,wt);if(pt>=1)return Qe.event&&Qe.event.end.call($,$.__data__,J),--Ve.count?delete Ve[fe]:delete $[oe],1}Qe||(ve=me.time,De=un(function(Pt){var pt=Qe.delay;if(De.t=pt+ve,pt<=Pt)return at(Pt-pt);De.c=at},0,ve),Qe=Ve[fe]={tween:new D,time:ve,timer:De,delay:me.delay,duration:me.duration,ease:me.ease,index:J},me=null,++Ve.count)}ya.call=se.call,ya.empty=se.empty,ya.node=se.node,ya.size=se.size,c.transition=function($,J){return $&&$.transition?cu?$.transition(J):$:c.selection().transition($)},c.transition.prototype=ya,ya.select=function($){var J,oe,fe,me=this.id,ve=this.namespace,De=[];$=he($);for(var Ee=-1,Ne=this.length;++Eerect,.s>rect").attr("width",ve[1]-ve[0])}function bt(pt){pt.select(".extent").attr("y",De[0]),pt.selectAll(".extent,.e>rect,.w>rect").attr("height",De[1]-De[0])}function Pt(){var pt,wt,lt=this,Dt=c.select(c.event.target),Tt=oe.of(lt,arguments),ft=c.select(lt),Vt=Dt.datum(),Gt=!/^(n|s)$/.test(Vt)&&fe,rn=!/^(e|w)$/.test(Vt)&&me,nn=Dt.classed("extent"),Sn=st(lt),Pn=c.mouse(lt),In=c.select(g(lt)).on("keydown.brush",function(){c.event.keyCode==32&&(nn||(pt=null,Pn[0]-=ve[1],Pn[1]-=De[1],nn=2),ee())}).on("keyup.brush",function(){c.event.keyCode==32&&nn==2&&(Pn[0]+=ve[1],Pn[1]+=De[1],nn=0,ee())});if(c.event.changedTouches?In.on("touchmove.brush",nr).on("touchend.brush",an):In.on("mousemove.brush",nr).on("mouseup.brush",an),ft.interrupt().selectAll("*").interrupt(),nn)Pn[0]=ve[0]-Pn[0],Pn[1]=De[0]-Pn[1];else if(Vt){var On=+/w$/.test(Vt),Gn=+/^n/.test(Vt);wt=[ve[1-On]-Pn[0],De[1-Gn]-Pn[1]],Pn[0]=ve[On],Pn[1]=De[Gn]}else c.event.altKey&&(pt=Pn.slice());function nr(){var wn=c.mouse(lt),qn=!1;wt&&(wn[0]+=wt[0],wn[1]+=wt[1]),nn||(c.event.altKey?(pt||(pt=[(ve[0]+ve[1])/2,(De[0]+De[1])/2]),Pn[0]=ve[+(wn[0]1?L-1:0),U=1;U1?L-1:0),U=1;U1?L-1:0),U=1;U1?L-1:0),U=1;U1||D<0||D>1?null:{x:h+w*D,y:g+C*D}}function p(h,g,b,v,m){var y=v*h+m*g;if(y<0)return v*v+m*m;if(y>b){var x=v-h,_=m-g;return x*x+_*_}var w=v*g-m*h;return w*w/b}o.segmentsIntersect=f,o.segmentDistance=function(h,g,b,v,m,y,x,_){if(f(h,g,b,v,m,y,x,_))return 0;var w=b-h,S=v-g,k=x-m,C=_-y,T=w*w+S*S,M=k*k+C*C,O=Math.min(p(w,S,T,m-h,y-g),p(w,S,T,x-h,_-g),p(k,C,M,h-m,g-y),p(k,C,M,b-m,v-y));return Math.sqrt(O)},o.getTextLocation=function(h,g,b,v){if(h===u&&v===c||(s={},u=h,c=v),s[b])return s[b];var m=h.getPointAtLength(d(b-v/2,g)),y=h.getPointAtLength(d(b+v/2,g)),x=Math.atan((y.y-m.y)/(y.x-m.x)),_=h.getPointAtLength(d(b,g)),w={x:(4*_.x+m.x+y.x)/6,y:(4*_.y+m.y+y.y)/6,theta:x};return s[b]=w,w},o.clearLocationCache=function(){u=null},o.getVisibleSegment=function(h,g,b){var v,m,y=g.left,x=g.right,_=g.top,w=g.bottom,S=0,k=h.getTotalLength(),C=k;function T(O){var D=h.getPointAtLength(O);O===0?v=D:O===k&&(m=D);var P=D.xx?D.x-x:0,E=D.y<_?_-D.y:D.y>w?D.y-w:0;return Math.sqrt(P*P+E*E)}for(var M=T(S);M;){if((S+=M+b)>C)return;M=T(S)}for(M=T(C);M;){if(S>(C-=M+b))return;M=T(C)}return{min:S,max:C,len:C-S,total:k,isClosed:S===0&&C===k&&Math.abs(v.x-m.x)<.1&&Math.abs(v.y-m.y)<.1}},o.findPointOnPath=function(h,g,b,v){for(var m,y,x,_=(v=v||{}).pathLength||h.getTotalLength(),w=v.tolerance||.001,S=v.iterationLimit||30,k=h.getPointAtLength(0)[b]>h.getPointAtLength(_)[b]?-1:1,C=0,T=0,M=_;C0?M=m:T=m,C++}return y}},23389:function(i){i.exports=function(o){return o}},39240:function(i){i.exports=function(o,a){if(!a)return o;var s=1/Math.abs(a),u=s>1?(s*o+s*a)/s:o+a,c=String(u).length;if(c>16){var d=String(a).length;if(c>=String(o).length+d){var f=parseFloat(u).toPrecision(12);f.indexOf("e+")===-1&&(u=+f)}}return u}},71828:function(i,o,a){var s=a(39898),u=a(84096).g0,c=a(60721).WU,d=a(92770),f=a(50606),p=f.FP_SAFE,h=-p,g=f.BADNUM,b=i.exports={};b.adjustFormat=function(V){return!V||/^\d[.]\df/.test(V)||/[.]\d%/.test(V)?V:V==="0.f"?"~f":/^\d%/.test(V)?"~%":/^\ds/.test(V)?"~s":!/^[~,.0$]/.test(V)&&/[&fps]/.test(V)?"~"+V:V};var v={};b.warnBadFormat=function(V){var X=String(V);v[X]||(v[X]=1,b.warn('encountered bad format: "'+X+'"'))},b.noFormat=function(V){return String(V)},b.numberFormat=function(V){var X;try{X=c(b.adjustFormat(V))}catch{return b.warnBadFormat(V),b.noFormat}return X},b.nestedProperty=a(65487),b.keyedContainer=a(66636),b.relativeAttr=a(6962),b.isPlainObject=a(41965),b.toLogRange=a(58163),b.relinkPrivateKeys=a(51332);var m=a(73627);b.isTypedArray=m.isTypedArray,b.isArrayOrTypedArray=m.isArrayOrTypedArray,b.isArray1D=m.isArray1D,b.ensureArray=m.ensureArray,b.concat=m.concat,b.maxRowLength=m.maxRowLength,b.minRowLength=m.minRowLength;var y=a(64872);b.mod=y.mod,b.modHalf=y.modHalf;var x=a(96554);b.valObjectMeta=x.valObjectMeta,b.coerce=x.coerce,b.coerce2=x.coerce2,b.coerceFont=x.coerceFont,b.coercePattern=x.coercePattern,b.coerceHoverinfo=x.coerceHoverinfo,b.coerceSelectionMarkerOpacity=x.coerceSelectionMarkerOpacity,b.validate=x.validate;var _=a(41631);b.dateTime2ms=_.dateTime2ms,b.isDateTime=_.isDateTime,b.ms2DateTime=_.ms2DateTime,b.ms2DateTimeLocal=_.ms2DateTimeLocal,b.cleanDate=_.cleanDate,b.isJSDate=_.isJSDate,b.formatDate=_.formatDate,b.incrementMonth=_.incrementMonth,b.dateTick0=_.dateTick0,b.dfltRange=_.dfltRange,b.findExactDates=_.findExactDates,b.MIN_MS=_.MIN_MS,b.MAX_MS=_.MAX_MS;var w=a(65888);b.findBin=w.findBin,b.sorterAsc=w.sorterAsc,b.sorterDes=w.sorterDes,b.distinctVals=w.distinctVals,b.roundUp=w.roundUp,b.sort=w.sort,b.findIndexOfMin=w.findIndexOfMin,b.sortObjectKeys=a(78607);var S=a(80038);b.aggNums=S.aggNums,b.len=S.len,b.mean=S.mean,b.median=S.median,b.midRange=S.midRange,b.variance=S.variance,b.stdev=S.stdev,b.interp=S.interp;var k=a(35657);b.init2dArray=k.init2dArray,b.transposeRagged=k.transposeRagged,b.dot=k.dot,b.translationMatrix=k.translationMatrix,b.rotationMatrix=k.rotationMatrix,b.rotationXYMatrix=k.rotationXYMatrix,b.apply3DTransform=k.apply3DTransform,b.apply2DTransform=k.apply2DTransform,b.apply2DTransform2=k.apply2DTransform2,b.convertCssMatrix=k.convertCssMatrix,b.inverseTransformMatrix=k.inverseTransformMatrix;var C=a(26348);b.deg2rad=C.deg2rad,b.rad2deg=C.rad2deg,b.angleDelta=C.angleDelta,b.angleDist=C.angleDist,b.isFullCircle=C.isFullCircle,b.isAngleInsideSector=C.isAngleInsideSector,b.isPtInsideSector=C.isPtInsideSector,b.pathArc=C.pathArc,b.pathSector=C.pathSector,b.pathAnnulus=C.pathAnnulus;var T=a(99863);b.isLeftAnchor=T.isLeftAnchor,b.isCenterAnchor=T.isCenterAnchor,b.isRightAnchor=T.isRightAnchor,b.isTopAnchor=T.isTopAnchor,b.isMiddleAnchor=T.isMiddleAnchor,b.isBottomAnchor=T.isBottomAnchor;var M=a(87642);b.segmentsIntersect=M.segmentsIntersect,b.segmentDistance=M.segmentDistance,b.getTextLocation=M.getTextLocation,b.clearLocationCache=M.clearLocationCache,b.getVisibleSegment=M.getVisibleSegment,b.findPointOnPath=M.findPointOnPath;var O=a(1426);b.extendFlat=O.extendFlat,b.extendDeep=O.extendDeep,b.extendDeepAll=O.extendDeepAll,b.extendDeepNoArrays=O.extendDeepNoArrays;var D=a(47769);b.log=D.log,b.warn=D.warn,b.error=D.error;var P=a(30587);b.counterRegex=P.counter;var E=a(79990);b.throttle=E.throttle,b.throttleDone=E.done,b.clearThrottle=E.clear;var I=a(24401);function A(V){var X={};for(var K in V)for(var ne=V[K],ae=0;aep||V=X)&&d(V)&&V>=0&&V%1==0},b.noop=a(64213),b.identity=a(23389),b.repeat=function(V,X){for(var K=new Array(X),ne=0;neK?Math.max(K,Math.min(X,V)):Math.max(X,Math.min(K,V))},b.bBoxIntersect=function(V,X,K){return K=K||0,V.left<=X.right+K&&X.left<=V.right+K&&V.top<=X.bottom+K&&X.top<=V.bottom+K},b.simpleMap=function(V,X,K,ne,ae){for(var ie=V.length,se=new Array(ie),pe=0;pe=Math.pow(2,K)?ae>10?(b.warn("randstr failed uniqueness"),ke):V(X,K,ne,(ae||0)+1):ke},b.OptionControl=function(V,X){V||(V={}),X||(X="opt");var K={optionList:[],_newoption:function(ne){ne[X]=V,K[ne.name]=ne,K.optionList.push(ne)}};return K["_"+X]=V,K},b.smooth=function(V,X){if((X=Math.round(X)||0)<2)return V;var K,ne,ae,ie,se=V.length,pe=2*se,ke=2*X-1,Ce=new Array(ke),Oe=new Array(se);for(K=0;K=pe&&(ae-=pe*Math.floor(ae/pe)),ae<0?ae=-1-ae:ae>=se&&(ae=pe-1-ae),ie+=V[ae]*Ce[ne];Oe[K]=ie}return Oe},b.syncOrAsync=function(V,X,K){var ne;function ae(){return b.syncOrAsync(V,X,K)}for(;V.length;)if((ne=(0,V.splice(0,1)[0])(X))&&ne.then)return ne.then(ae);return K&&K(X)},b.stripTrailingSlash=function(V){return V.substr(-1)==="/"?V.substr(0,V.length-1):V},b.noneOrAll=function(V,X,K){if(V){var ne,ae=!1,ie=!0;for(ne=0;ne0?ae:0})},b.fillArray=function(V,X,K,ne){if(ne=ne||b.identity,b.isArrayOrTypedArray(V))for(var ae=0;ae1?ae+se[1]:"";if(ie&&(se.length>1||pe.length>4||K))for(;ne.test(pe);)pe=pe.replace(ne,"$1"+ie+"$2");return pe+ke},b.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var q=/^\w*$/;b.templateString=function(V,X){var K={};return V.replace(b.TEMPLATE_STRING_REGEX,function(ne,ae){var ie;return q.test(ae)?ie=X[ae]:(K[ae]=K[ae]||b.nestedProperty(X,ae).get,ie=K[ae]()),b.isValidTextValue(ie)?ie:""})};var Y={max:10,count:0,name:"hovertemplate"};b.hovertemplateString=function(){return te.apply(Y,arguments)};var L={max:10,count:0,name:"texttemplate"};b.texttemplateString=function(){return te.apply(L,arguments)};var W=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/,H={max:10,count:0,name:"texttemplate",parseMultDiv:!0};b.texttemplateStringForShapes=function(){return te.apply(H,arguments)};var G=/^[:|\|]/;function te(V,X,K){var ne=this,ae=arguments;X||(X={});var ie={};return V.replace(b.TEMPLATE_STRING_REGEX,function(se,pe,ke){var Ce=pe==="_xother"||pe==="_yother",Oe=pe==="_xother_"||pe==="_yother_",Pe=pe==="xother_"||pe==="yother_",ce=pe==="xother"||pe==="yother"||Ce||Pe||Oe,we=pe;(Ce||Oe)&&(we=we.substring(1)),(Pe||Oe)&&(we=we.substring(0,we.length-1));var Z,re,de,_e=null,ue=null;if(ne.parseMultDiv){var me=function(Ae){var Le=Ae.match(W);return Le?{key:Le[1],op:Le[2],number:Number(Le[3])}:{key:Ae,op:null,number:null}}(we);we=me.key,_e=me.op,ue=me.number}if(ce){if((Z=X[we])===void 0)return""}else for(de=3;de=48&&se<=57,Ce=pe>=48&&pe<=57;if(ke&&(ne=10*ne+se-48),Ce&&(ae=10*ae+pe-48),!ke||!Ce){if(ne!==ae)return ne-ae;if(se!==pe)return se-pe}}return ae-ne};var ee=2e9;b.seedPseudoRandom=function(){ee=2e9},b.pseudoRandom=function(){var V=ee;return ee=(69069*ee+1)%4294967296,Math.abs(ee-V)<429496729?b.pseudoRandom():ee/4294967296},b.fillText=function(V,X,K){var ne=Array.isArray(K)?function(se){K.push(se)}:function(se){K.text=se},ae=b.extractOption(V,X,"htx","hovertext");if(b.isValidTextValue(ae))return ne(ae);var ie=b.extractOption(V,X,"tx","text");return b.isValidTextValue(ie)?ne(ie):void 0},b.isValidTextValue=function(V){return V||V===0},b.formatPercent=function(V,X){X=X||0;for(var K=(Math.round(100*V*Math.pow(10,X))*Math.pow(.1,X)).toFixed(X)+"%",ne=0;ne1&&(Ce=1):Ce=0,b.strTranslate(ae-Ce*(K+se),ie-Ce*(ne+pe))+b.strScale(Ce)+(ke?"rotate("+ke+(X?"":" "+K+" "+ne)+")":"")},b.setTransormAndDisplay=function(V,X){V.attr("transform",b.getTextTransform(X)),V.style("display",X.scale?null:"none")},b.ensureUniformFontSize=function(V,X){var K=b.extendFlat({},X);return K.size=Math.max(X.size,V._fullLayout.uniformtext.minsize||0),K},b.join2=function(V,X,K){var ne=V.length;return ne>1?V.slice(0,-1).join(X)+K+V[ne-1]:V.join(X)},b.bigFont=function(V){return Math.round(1.2*V)};var U=b.getFirefoxVersion(),Q=U!==null&&U<86;b.getPositionFromD3Event=function(){return Q?[s.event.layerX,s.event.layerY]:[s.event.offsetX,s.event.offsetY]}},41965:function(i){i.exports=function(o){return window&&window.process&&window.process.versions?Object.prototype.toString.call(o)==="[object Object]":Object.prototype.toString.call(o)==="[object Object]"&&Object.getPrototypeOf(o).hasOwnProperty("hasOwnProperty")}},66636:function(i,o,a){var s=a(65487),u=/^\w*$/;i.exports=function(c,d,f,p){var h,g,b;f=f||"name",p=p||"value";var v={};d&&d.length?(b=s(c,d),g=b.get()):g=c,d=d||"";var m={};if(g)for(h=0;h2)return v[w]=2|v[w],x.set(_,null);if(y){for(h=w;h1){var f=["LOG:"];for(d=0;d1){var p=[];for(d=0;d"),"long")}},c.warn=function(){var d;if(s.logging>0){var f=["WARN:"];for(d=0;d0){var p=[];for(d=0;d"),"stick")}},c.error=function(){var d;if(s.logging>0){var f=["ERROR:"];for(d=0;d0){var p=[];for(d=0;d"),"stick")}}},77310:function(i,o,a){var s=a(39898);i.exports=function(u,c,d){var f=u.selectAll("g."+d.replace(/\s/g,".")).data(c,function(h){return h[0].trace.uid});f.exit().remove(),f.enter().append("g").attr("class",d),f.order();var p=u.classed("rangeplot")?"nodeRangePlot3":"node3";return f.each(function(h){h[0][p]=s.select(this)}),f}},35657:function(i,o,a){var s=a(79576);o.init2dArray=function(u,c){for(var d=new Array(u),f=0;fa/2?o-Math.round(o/a)*a:o}}},65487:function(i,o,a){var s=a(92770),u=a(73627).isArrayOrTypedArray;function c(v,m){return function(){var y,x,_,w,S,k=v;for(w=0;w/g),x=0;xg||C===u||Cv||S&&m(w))}:function(w,S){var k=w[0],C=w[1];if(k===u||kg||C===u||Cv)return!1;var T,M,O,D,P,E=p.length,I=p[0][0],A=p[0][1],F=0;for(T=1;TMath.max(M,I)||C>Math.max(O,A)))if(Cx||Math.abs(s(b,w))>h)return!0;return!1},c.filter=function(d,f){var p=[d[0]],h=0,g=0;function b(v){d.push(v);var m=p.length,y=h;p.splice(g+1);for(var x=y+1;x1&&b(d.pop()),{addPt:b,raw:d,filtered:p}}},45142:function(i,o,a){var s=a(92770),u=a(35791);i.exports=function(c){var d;if(typeof(d=c&&c.hasOwnProperty("userAgent")?c.userAgent:function(){var m;return typeof navigator<"u"&&(m=navigator.userAgent),m&&m.headers&&typeof m.headers["user-agent"]=="string"&&(m=m.headers["user-agent"]),m}())!="string")return!0;var f=u({ua:{headers:{"user-agent":d}},tablet:!0,featureDetect:!1});if(!f){for(var p=d.split(" "),h=1;h-1;g--){var b=p[g];if(b.substr(0,8)==="Version/"){var v=b.substr(8).split(".")[0];if(s(v)&&(v=+v),v>=13)return!0}}}return f}},75138:function(i){i.exports=function(o,a){if(a instanceof RegExp){for(var s=a.toString(),u=0;uu.queueLength&&(d.undoQueue.queue.shift(),d.undoQueue.index--))},startSequence:function(d){d.undoQueue=d.undoQueue||{index:0,queue:[],sequence:!1},d.undoQueue.sequence=!0,d.undoQueue.beginSequence=!0},stopSequence:function(d){d.undoQueue=d.undoQueue||{index:0,queue:[],sequence:!1},d.undoQueue.sequence=!1,d.undoQueue.beginSequence=!1},undo:function(d){var f,p;if(!(d.undoQueue===void 0||isNaN(d.undoQueue.index)||d.undoQueue.index<=0)){for(d.undoQueue.index--,f=d.undoQueue.queue[d.undoQueue.index],d.undoQueue.inSequence=!0,p=0;p=d.undoQueue.queue.length)){for(f=d.undoQueue.queue[d.undoQueue.index],d.undoQueue.inSequence=!0,p=0;pm}function b(v,m){return v>=m}o.findBin=function(v,m,y){if(s(m.start))return y?Math.ceil((v-m.start)/m.size-f)-1:Math.floor((v-m.start)/m.size+f);var x,_,w=0,S=m.length,k=0,C=S>1?(m[S-1]-m[0])/(S-1):1;for(_=C>=0?y?p:h:y?b:g,v+=C*f*(y?-1:1)*(C>=0?1:-1);w90&&u.log("Long binary search..."),w-1},o.sorterAsc=function(v,m){return v-m},o.sorterDes=function(v,m){return m-v},o.distinctVals=function(v){var m,y=v.slice();for(y.sort(o.sorterAsc),m=y.length-1;m>-1&&y[m]===d;m--);for(var x,_=y[m]-y[0]||1,w=_/(m||1)/1e4,S=[],k=0;k<=m;k++){var C=y[k],T=C-x;x===void 0?(S.push(C),x=C):T>w&&(_=Math.min(_,T),S.push(C),x=C)}return{vals:S,minDiff:_}},o.roundUp=function(v,m,y){for(var x,_=0,w=m.length-1,S=0,k=y?0:1,C=y?1:0,T=y?Math.ceil:Math.floor;_0&&(x=1),y&&x)return v.sort(m)}return x?v:v.reverse()},o.findIndexOfMin=function(v,m){m=m||c;for(var y,x=1/0,_=0;_f.length)&&(p=f.length),s(d)||(d=!1),u(f[0])){for(g=new Array(p),h=0;hc.length-1)return c[c.length-1];var f=d%1;return f*c[Math.ceil(d)]+(1-f)*c[Math.floor(d)]}},3883:function(i,o,a){var s=a(32396),u=a(91424),c=a(71828),d=null;i.exports=function(){if(d!==null)return d;d=!1;var f=c.isIE()||c.isSafari()||c.isIOS();if(window.navigator.userAgent&&!f){var p=Array.from(s.CSS_DECLARATIONS).reverse(),h=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof h=="function")d=p.some(function(v){return h.apply(null,v)});else{var g=u.tester.append("image").attr("style",s.STYLE),b=window.getComputedStyle(g.node()).imageRendering;d=p.some(function(v){var m=v[1];return b===m||b===m.toLowerCase()}),g.remove()}}return d}},63893:function(i,o,a){var s=a(39898),u=a(71828),c=u.strTranslate,d=a(77922),f=a(18783).LINE_SPACING,p=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;o.convertToTspans=function(N,R,q){var Y=N.text(),L=!N.attr("data-notex")&&R&&R._context.typesetMath&&typeof MathJax<"u"&&Y.match(p),W=s.select(N.node().parentNode);if(!W.empty()){var H=N.attr("class")?N.attr("class").split(" ")[0]:"text";return H+="-math",W.selectAll("svg."+H).remove(),W.selectAll("g."+H+"-group").remove(),N.style("display",null).attr({"data-unformatted":Y,"data-math":"N"}),L?(R&&R._promises||[]).push(new Promise(function(te){N.style("display","none");var ee=parseInt(N.node().style.fontSize,10),U={fontSize:ee};(function(Q,V,X){var K,ne,ae,ie,se=parseInt((MathJax.version||"").split(".")[0]);if(se===2||se===3){var pe=function(){var Ce="math-output-"+u.randstr({},64),Oe=(ie=s.select("body").append("div").attr({id:Ce}).style({visibility:"hidden",position:"absolute","font-size":V.fontSize+"px"}).text(Q.replace(h,"\\lt ").replace(g,"\\gt "))).node();return se===2?MathJax.Hub.Typeset(Oe):MathJax.typeset([Oe])},ke=function(){var Ce=ie.select(se===2?".MathJax_SVG":".MathJax"),Oe=!Ce.empty()&&ie.select("svg").node();if(Oe){var Pe,ce=Oe.getBoundingClientRect();Pe=se===2?s.select("body").select("#MathJax_SVG_glyphs"):Ce.select("defs"),X(Ce,Pe,ce)}else u.log("There was an error in the tex syntax.",Q),X();ie.remove()};se===2?MathJax.Hub.Queue(function(){return ne=u.extendDeepAll({},MathJax.Hub.config),ae=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:b},displayAlign:"left"})},function(){if((K=MathJax.Hub.config.menuSettings.renderer)!=="SVG")return MathJax.Hub.setRenderer("SVG")},pe,ke,function(){if(K!=="SVG")return MathJax.Hub.setRenderer(K)},function(){return ae!==void 0&&(MathJax.Hub.processSectionDelay=ae),MathJax.Hub.Config(ne)}):se===3&&(ne=u.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=b,(K=MathJax.config.startup.output)!=="svg"&&(MathJax.config.startup.output="svg"),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){pe(),ke(),K!=="svg"&&(MathJax.config.startup.output=K),MathJax.config=ne}))}else u.warn("No MathJax version:",MathJax.version)})(L[2],U,function(Q,V,X){W.selectAll("svg."+H).remove(),W.selectAll("g."+H+"-group").remove();var K=Q&&Q.select("svg");if(!K||!K.node())return G(),void te();var ne=W.append("g").classed(H+"-group",!0).attr({"pointer-events":"none","data-unformatted":Y,"data-math":"Y"});ne.node().appendChild(K.node()),V&&V.node()&&K.node().insertBefore(V.node().cloneNode(!0),K.node().firstChild);var ae=X.width,ie=X.height;K.attr({class:H,height:ie,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var se=N.node().style.fill||"black",pe=K.select("g");pe.attr({fill:se,stroke:se});var ke=pe.node().getBoundingClientRect(),Ce=ke.width,Oe=ke.height;(Ce>ae||Oe>ie)&&(K.style("overflow","hidden"),Ce=(ke=K.node().getBoundingClientRect()).width,Oe=ke.height);var Pe=+N.attr("x"),ce=+N.attr("y"),we=-(ee||N.node().getBoundingClientRect().height)/4;if(H[0]==="y")ne.attr({transform:"rotate("+[-90,Pe,ce]+")"+c(-Ce/2,we-Oe/2)});else if(H[0]==="l")ce=we-Oe/2;else if(H[0]==="a"&&H.indexOf("atitle")!==0)Pe=0,ce=we;else{var Z=N.attr("text-anchor");Pe-=Ce*(Z==="middle"?.5:Z==="end"?1:0),ce=ce+we-Oe/2}K.attr({x:Pe,y:ce}),q&&q.call(N,ne),te(ne)})})):G(),N}function G(){W.empty()||(H=N.attr("class")+"-math",W.select("svg."+H).remove()),N.text("").style("white-space","pre");var te=function(ee,U){U=U.replace(w," ");var Q,V=!1,X=[],K=-1;function ne(){K++;var ue=document.createElementNS(d.svg,"tspan");s.select(ue).attr({class:"line",dy:K*f+"em"}),ee.appendChild(ue),Q=ue;var me=X;if(X=[{node:ue}],me.length>1)for(var xe=1;xe doesnt match end tag <"+ue+">. Pretending it did match.",U),Q=X[X.length-1].node}else u.log("Ignoring unexpected end tag .",U)}C.test(U)?ne():(Q=ee,X=[{node:ee}]);for(var pe=U.split(S),ke=0;ke|>|>)/g,b=[["$","$"],["\\(","\\)"]],v={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},m={sub:"0.3em",sup:"-0.6em"},y={sub:"-0.21em",sup:"0.42em"},x="​",_=["http:","https:","mailto:","",void 0,":"],w=o.NEWLINES=/(\r\n?|\n)/g,S=/(<[^<>]*>)/,k=/<(\/?)([^ >]*)(\s+(.*))?>/i,C=//i;o.BR_TAG_ALL=//gi;var T=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,M=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,O=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,D=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function P(N,R){if(!N)return null;var q=N.match(R),Y=q&&(q[3]||q[4]);return Y&&F(Y)}var E=/(^|;)\s*color:/;o.plainText=function(N,R){for(var q=(R=R||{}).len!==void 0&&R.len!==-1?R.len:1/0,Y=R.allowedTags!==void 0?R.allowedTags:["br"],L=N.split(S),W=[],H="",G=0,te=0;te3?W.push(ee.substr(0,X-3)+"..."):W.push(ee.substr(0,X));break}H=""}}return W.join("")};var I={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},A=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function F(N){return N.replace(A,function(R,q){return(q.charAt(0)==="#"?function(Y){if(!(Y>1114111)){var L=String.fromCodePoint;if(L)return L(Y);var W=String.fromCharCode;return Y<=65535?W(Y):W(55232+(Y>>10),Y%1024+56320)}}(q.charAt(1)==="x"?parseInt(q.substr(2),16):parseInt(q.substr(1),10)):I[q])||R})}function j(N){var R=encodeURI(decodeURI(N)),q=document.createElement("a"),Y=document.createElement("a");q.href=N,Y.href=R;var L=q.protocol,W=Y.protocol;return _.indexOf(L)!==-1&&_.indexOf(W)!==-1?R:""}function B(N,R,q){var Y,L,W,H=q.horizontalAlign,G=q.verticalAlign||"top",te=N.node().getBoundingClientRect(),ee=R.node().getBoundingClientRect();return L=G==="bottom"?function(){return te.bottom-Y.height}:G==="middle"?function(){return te.top+(te.height-Y.height)/2}:function(){return te.top},W=H==="right"?function(){return te.right-Y.width}:H==="center"?function(){return te.left+(te.width-Y.width)/2}:function(){return te.left},function(){Y=this.node().getBoundingClientRect();var U=W()-ee.left,Q=L()-ee.top,V=q.gd||{};if(q.gd){V._fullLayout._calcInverseTransform(V);var X=u.apply3DTransform(V._fullLayout._invTransform)(U,Q);U=X[0],Q=X[1]}return this.style({top:Q+"px",left:U+"px","z-index":1e3}),this}}o.convertEntities=F,o.sanitizeHTML=function(N){N=N.replace(w," ");for(var R=document.createElement("p"),q=R,Y=[],L=N.split(S),W=0;Wf.ts+c?g():f.timer=setTimeout(function(){g(),f.timer=null},c)},o.done=function(u){var c=a[u];return c&&c.timer?new Promise(function(d){var f=c.onDone;c.onDone=function(){f&&f(),d(),c.onDone=null}}):Promise.resolve()},o.clear=function(u){if(u)s(a[u]),delete a[u];else for(var c in a)o.clear(c)}},58163:function(i,o,a){var s=a(92770);i.exports=function(u,c){if(u>0)return Math.log(u)/Math.LN10;var d=Math.log(Math.min(c[0],c[1]))/Math.LN10;return s(d)||(d=Math.log(Math.max(c[0],c[1]))/Math.LN10-6),d}},37815:function(i){i.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},92177:function(i){i.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},14458:function(i,o,a){var s=a(73972);i.exports=function(u){for(var c,d,f=s.layoutArrayContainers,p=s.layoutArrayRegexes,h=u.split("[")[0],g=0;g0&&d.log("Clearing previous rejected promises from queue."),M._promises=[]},o.cleanLayout=function(M){var O,D;M||(M={}),M.xaxis1&&(M.xaxis||(M.xaxis=M.xaxis1),delete M.xaxis1),M.yaxis1&&(M.yaxis||(M.yaxis=M.yaxis1),delete M.yaxis1),M.scene1&&(M.scene||(M.scene=M.scene1),delete M.scene1);var P=(f.subplotsRegistry.cartesian||{}).attrRegex,E=(f.subplotsRegistry.polar||{}).attrRegex,I=(f.subplotsRegistry.ternary||{}).attrRegex,A=(f.subplotsRegistry.gl3d||{}).attrRegex,F=Object.keys(M);for(O=0;O3?(X.x=1.02,X.xanchor="left"):X.x<-2&&(X.x=-.02,X.xanchor="right"),X.y>3?(X.y=1.02,X.yanchor="bottom"):X.y<-2&&(X.y=-.02,X.yanchor="top")),y(M),M.dragmode==="rotate"&&(M.dragmode="orbit"),h.clean(M),M.template&&M.template.layout&&o.cleanLayout(M.template.layout),M},o.cleanData=function(M){for(var O=0;O0)return M.substr(0,O)}o.hasParent=function(M,O){for(var D=C(O);D;){if(D in M)return!0;D=C(D)}return!1};var T=["x","y","z"];o.clearAxisTypes=function(M,O,D){for(var P=0;P1&&c.warn("Full array edits are incompatible with other edits",x);var M=v[""][""];if(h(M))b.set(null);else{if(!Array.isArray(M))return c.warn("Unrecognized full array edit value",x,M),!0;b.set(M)}return!k&&(_(C,T),w(g),!0)}var O,D,P,E,I,A,F,j,B=Object.keys(v).map(Number).sort(d),z=b.get(),N=z||[],R=y(T,x).get(),q=[],Y=-1,L=N.length;for(O=0;ON.length-(F?0:1))c.warn("index out of range",x,P);else if(A!==void 0)I.length>1&&c.warn("Insertion & removal are incompatible with edits to the same index.",x,P),h(A)?q.push(P):F?(A==="add"&&(A={}),N.splice(P,0,A),R&&R.splice(P,0,{})):c.warn("Unrecognized full object edit value",x,P,A),Y===-1&&(Y=P);else for(D=0;D=0;O--)N.splice(q[O],1),R&&R.splice(q[O],1);if(N.length?z||b.set(N):b.set(null),k)return!1;if(_(C,T),S!==u){var W;if(Y===-1)W=B;else{for(L=Math.max(N.length,L),W=[],O=0;O=Y);O++)W.push(P);for(O=Y;O=ue.data.length||Te<-ue.data.length)throw new Error(xe+" must be valid indices for gd.data.");if(me.indexOf(Te,ye+1)>-1||Te>=0&&me.indexOf(-ue.data.length+Te)>-1||Te<0&&me.indexOf(ue.data.length+Te)>-1)throw new Error("each index in "+xe+" must be unique.")}}function R(ue,me,xe){if(!Array.isArray(ue.data))throw new Error("gd.data must be an array.");if(me===void 0)throw new Error("currentIndices is a required argument.");if(Array.isArray(me)||(me=[me]),N(ue,me,"currentIndices"),xe===void 0||Array.isArray(xe)||(xe=[xe]),xe!==void 0&&N(ue,xe,"newIndices"),xe!==void 0&&me.length!==xe.length)throw new Error("current and new indices must be of equal length.")}function q(ue,me,xe,ye,Te){(function(We,Ge,ot,Je){var st=d.isPlainObject(Je);if(!Array.isArray(We.data))throw new Error("gd.data must be an array");if(!d.isPlainObject(Ge))throw new Error("update must be a key:value object");if(ot===void 0)throw new Error("indices must be an integer or array of integers");for(var bt in N(We,ot,"indices"),Ge){if(!Array.isArray(Ge[bt])||Ge[bt].length!==ot.length)throw new Error("attribute "+bt+" must be an array of length equal to indices array length");if(st&&(!(bt in Je)||!Array.isArray(Je[bt])||Je[bt].length!==Ge[bt].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}})(ue,me,xe,ye);for(var Ae=function(We,Ge,ot,Je){var st,bt,Be,je,tt,it=d.isPlainObject(Je),St=[];for(var et in Array.isArray(ot)||(ot=[ot]),ot=z(ot,We.data.length-1),Ge)for(var ct=0;ct-1&&xe.indexOf("grouptitlefont")===-1?Re(xe,xe.replace("titlefont","title.font")):xe.indexOf("titleposition")>-1?Re(xe,xe.replace("titleposition","title.position")):xe.indexOf("titleside")>-1?Re(xe,xe.replace("titleside","title.side")):xe.indexOf("titleoffset")>-1&&Re(xe,xe.replace("titleoffset","title.offset")):Re(xe,xe.replace("title","title.text"));function Re(Ie,Ne){ue[Ne]=ue[Ie],delete ue[Ie]}}function U(ue,me,xe){ue=d.getGraphDiv(ue),O.clearPromiseQueue(ue);var ye={};if(typeof me=="string")ye[me]=xe;else{if(!d.isPlainObject(me))return d.warn("Relayout fail.",me,xe),Promise.reject();ye=d.extendFlat({},me)}Object.keys(ye).length&&(ue.changed=!0);var Te=ae(ue,ye),Ae=Te.flags;Ae.calc&&(ue.calcdata=void 0);var Le=[v.previousPromises];Ae.layoutReplot?Le.push(D.layoutReplot):Object.keys(ye).length&&(Q(ue,Ae,Te)||v.supplyDefaults(ue),Ae.legend&&Le.push(D.doLegend),Ae.layoutstyle&&Le.push(D.layoutStyles),Ae.axrange&&V(Le,Te.rangesAltered),Ae.ticks&&Le.push(D.doTicksRelayout),Ae.modebar&&Le.push(D.doModeBar),Ae.camera&&Le.push(D.doCamera),Ae.colorbars&&Le.push(D.doColorBars),Le.push(A)),Le.push(v.rehover,v.redrag,v.reselect),h.add(ue,U,[ue,Te.undoit],U,[ue,Te.redoit]);var Re=d.syncOrAsync(Le,ue);return Re&&Re.then||(Re=Promise.resolve(ue)),Re.then(function(){return ue.emit("plotly_relayout",Te.eventData),ue})}function Q(ue,me,xe){var ye,Te,Ae=ue._fullLayout;if(!me.axrange)return!1;for(var Le in me)if(Le!=="axrange"&&me[Le])return!1;var Re=function(Ge,ot){return d.coerce(ye,Te,x,Ge,ot)},Ie={};for(var Ne in xe.rangesAltered){var ze=m.id2name(Ne);if(ye=ue.layout[ze],Te=Ae[ze],y(ye,Te,Re,Ie),Te._matchGroup){for(var qe in Te._matchGroup)if(qe!==Ne){var We=Ae[m.id2name(qe)];We.autorange=Te.autorange,We.range=Te.range.slice(),We._input.range=Te.range.slice()}}}return!0}function V(ue,me){var xe=me?function(ye){var Te=[];for(var Ae in me){var Le=m.getFromId(ye,Ae);if(Te.push(Ae),(Le.ticklabelposition||"").indexOf("inside")!==-1&&Le._anchorAxis&&Te.push(Le._anchorAxis._id),Le._matchGroup)for(var Re in Le._matchGroup)me[Re]||Te.push(Re)}return m.draw(ye,Te,{skipTitle:!0})}:function(ye){return m.draw(ye,"redraw")};ue.push(C,D.doAutoRangeAndConstraints,xe,D.drawData,D.finalDraw)}var X=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,K=/^[xyz]axis[0-9]*\.autorange$/,ne=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function ae(ue,me){var xe,ye,Te,Ae=ue.layout,Le=ue._fullLayout,Re=Le._guiEditing,Ie=H(Le._preGUI,Re),Ne=Object.keys(me),ze=m.list(ue),qe=d.extendDeepAll({},me),We={};for(ee(me),Ne=Object.keys(me),ye=0;ye0&&typeof ct.parts[$t]!="string";)$t--;var kt=ct.parts[$t],Wt=ct.parts[$t-1]+"."+kt,wt=ct.parts.slice(0,$t).join("."),be=f(ue.layout,wt).get(),Me=f(Le,wt).get(),Ve=ct.get();if(ht!==void 0){bt[et]=ht,Be[et]=kt==="reverse"?ht:W(Ve);var Ue=b.getLayoutValObject(Le,ct.parts);if(Ue&&Ue.impliedEdits&&ht!==null)for(var Ze in Ue.impliedEdits)je(d.relativeAttr(et,Ze),Ue.impliedEdits[Ze]);if(["width","height"].indexOf(et)!==-1)if(ht){je("autosize",null);var Ye=et==="height"?"width":"height";je(Ye,Le[Ye])}else Le[et]=ue._initialAutoSize[et];else if(et==="autosize")je("width",ht?null:Le.width),je("height",ht?null:Le.height);else if(Wt.match(X))St(Wt),f(Le,wt+"._inputRange").set(null);else if(Wt.match(K)){St(Wt),f(Le,wt+"._inputRange").set(null);var Qe=f(Le,wt).get();Qe._inputDomain&&(Qe._input.domain=Qe._inputDomain.slice())}else Wt.match(ne)&&f(Le,wt+"._inputDomain").set(null);if(kt==="type"){tt=be;var rt=Me.type==="linear"&&ht==="log",ut=Me.type==="log"&&ht==="linear";if(rt||ut){if(tt&&tt.range)if(Me.autorange)rt&&(tt.range=tt.range[1]>tt.range[0]?[1,2]:[2,1]);else{var gt=tt.range[0],nt=tt.range[1];rt?(gt<=0&&nt<=0&&je(wt+".autorange",!0),gt<=0?gt=nt/1e6:nt<=0&&(nt=gt/1e6),je(wt+".range[0]",Math.log(gt)/Math.LN10),je(wt+".range[1]",Math.log(nt)/Math.LN10)):(je(wt+".range[0]",Math.pow(10,gt)),je(wt+".range[1]",Math.pow(10,nt)))}else je(wt+".autorange",!0);Array.isArray(Le._subplots.polar)&&Le._subplots.polar.length&&Le[ct.parts[0]]&&ct.parts[1]==="radialaxis"&&delete Le[ct.parts[0]]._subplot.viewInitial["radialaxis.range"],g.getComponentMethod("annotations","convertCoords")(ue,Me,ht,je),g.getComponentMethod("images","convertCoords")(ue,Me,ht,je)}else je(wt+".autorange",!0),je(wt+".range",null);f(Le,wt+"._inputRange").set(null)}else if(kt.match(E)){var Nt=f(Le,et).get(),Gt=(ht||{}).type;Gt&&Gt!=="-"||(Gt="linear"),g.getComponentMethod("annotations","convertCoords")(ue,Nt,Gt,je),g.getComponentMethod("images","convertCoords")(ue,Nt,Gt,je)}var Ct=M.containerArrayMatch(et);if(Ct){xe=Ct.array,ye=Ct.index;var Ft=Ct.property,Et=Ue||{editType:"calc"};ye!==""&&Ft===""&&(M.isAddVal(ht)?Be[et]=null:M.isRemoveVal(ht)?Be[et]=(f(Ae,xe).get()||[])[ye]:d.warn("unrecognized full object value",me)),P.update(st,Et),We[xe]||(We[xe]={});var mt=We[xe][ye];mt||(mt=We[xe][ye]={}),mt[Ft]=ht,delete me[et]}else kt==="reverse"?(be.range?be.range.reverse():(je(wt+".autorange",!0),be.range=[1,0]),Me.autorange?st.calc=!0:st.plot=!0):(et==="dragmode"&&(ht===!1&&Ve!==!1||ht!==!1&&Ve===!1)||Le._has("scatter-like")&&Le._has("regl")&&et==="dragmode"&&(ht==="lasso"||ht==="select")&&Ve!=="lasso"&&Ve!=="select"||Le._has("gl2d")?st.plot=!0:Ue?P.update(st,Ue):st.calc=!0,ct.set(ht))}}for(xe in We)M.applyContainerArrayChanges(ue,Ie(Ae,xe),We[xe],st,Ie)||(st.plot=!0);for(var pt in it){var yt=(tt=m.getFromId(ue,pt))&&tt._constraintGroup;if(yt)for(var qt in st.calc=!0,yt)it[qt]||(m.getFromId(ue,qt)._constraintShrinkable=!0)}(ie(ue)||me.height||me.width)&&(st.plot=!0);var Rt=Le.shapes;for(ye=0;ye1;)if(ye.pop(),(xe=f(me,ye.join(".")+".uirevision").get())!==void 0)return xe;return me.uirevision}function ce(ue,me){for(var xe=0;xe=Te.length?Te[0]:Te[Ne]:Te}function Re(Ne){return Array.isArray(Ae)?Ne>=Ae.length?Ae[0]:Ae[Ne]:Ae}function Ie(Ne,ze){var qe=0;return function(){if(Ne&&++qe===ze)return Ne()}}return ye._frameWaitingCnt===void 0&&(ye._frameWaitingCnt=0),new Promise(function(Ne,ze){function qe(){ue.emit("plotly_animating"),ye._lastFrameAt=-1/0,ye._timeToNext=0,ye._runningTransitions=0,ye._currentFrame=null;var et=function(){ye._animationRaf=window.requestAnimationFrame(et),Date.now()-ye._lastFrameAt>ye._timeToNext&&function(){ye._currentFrame&&ye._currentFrame.onComplete&&ye._currentFrame.onComplete();var ct=ye._currentFrame=ye._frameQueue.shift();if(ct){var ht=ct.name?ct.name.toString():null;ue._fullLayout._currentFrame=ht,ye._lastFrameAt=Date.now(),ye._timeToNext=ct.frameOpts.duration,v.transition(ue,ct.frame.data,ct.frame.layout,O.coerceTraceIndices(ue,ct.frame.traces),ct.frameOpts,ct.transitionOpts).then(function(){ct.onComplete&&ct.onComplete()}),ue.emit("plotly_animatingframe",{name:ht,frame:ct.frame,animation:{frame:ct.frameOpts,transition:ct.transitionOpts}})}else ue.emit("plotly_animated"),window.cancelAnimationFrame(ye._animationRaf),ye._animationRaf=null}()};et()}var We,Ge,ot=0;function Je(et){return Array.isArray(Te)?ot>=Te.length?et.transitionOpts=Te[ot]:et.transitionOpts=Te[0]:et.transitionOpts=Te,ot++,et}var st=[],bt=me==null,Be=Array.isArray(me);if(bt||Be||!d.isPlainObject(me)){if(bt||["string","number"].indexOf(typeof me)!==-1)for(We=0;We0&&itit)&&St.push(Ge);st=St}}st.length>0?function(et){if(et.length!==0){for(var ct=0;ct=0;ye--)if(d.isPlainObject(me[ye])){var We=me[ye].name,Ge=(Ie[We]||qe[We]||{}).name,ot=me[ye].name,Je=Ie[Ge]||qe[Ge];Ge&&ot&&typeof ot=="number"&&Je&&I<5&&(I++,d.warn('addFrames: overwriting frame "'+(Ie[Ge]||qe[Ge]).name+'" with a frame whose name of type "number" also equates to "'+Ge+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),I===5&&d.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),qe[We]={name:We},ze.push({frame:v.supplyFrameDefaults(me[ye]),index:xe&&xe[ye]!==void 0&&xe[ye]!==null?xe[ye]:Ne+ye})}ze.sort(function(et,ct){return et.index>ct.index?-1:et.index=0;ye--){if(typeof(Te=ze[ye].frame).name=="number"&&d.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!Te.name)for(;Ie[Te.name="frame "+ue._transitionData._counter++];);if(Ie[Te.name]){for(Ae=0;Ae=0;xe--)ye=me[xe],Ae.push({type:"delete",index:ye}),Le.unshift({type:"insert",index:ye,value:Te[ye]});var Re=v.modifyFrames,Ie=v.modifyFrames,Ne=[ue,Le],ze=[ue,Ae];return h&&h.add(ue,Re,Ne,Ie,ze),v.modifyFrames(ue,Ae)},o.addTraces=function ue(me,xe,ye){me=d.getGraphDiv(me);var Te,Ae,Le=[],Re=o.deleteTraces,Ie=ue,Ne=[me,Le],ze=[me,xe];for(function(qe,We,Ge){var ot,Je;if(!Array.isArray(qe.data))throw new Error("gd.data must be an array.");if(We===void 0)throw new Error("traces must be defined.");for(Array.isArray(We)||(We=[We]),ot=0;ot=0&&ze=0&&ze=B.length)return!1;if(E.dimensions===2){if(A++,I.length===A)return E;var z=I[A];if(!T(z))return!1;E=B[j][z]}else E=B[j]}else E=B}}return E}function T(E){return E===Math.round(E)&&E>=0}function M(){var E,I,A={};for(E in b(A,d),s.subplotsRegistry)if((I=s.subplotsRegistry[E]).layoutAttributes)if(Array.isArray(I.attr))for(var F=0;F=z.length)return!1;F=(A=(s.transformsRegistry[z[N].type]||{}).attributes)&&A[I[2]],B=3}else{var R=E._module;if(R||(R=(s.modules[E.type||c.type.dflt]||{})._module),!R)return!1;if(!(F=(A=R.attributes)&&A[j])){var q=R.basePlotModule;q&&q.attributes&&(F=q.attributes[j])}F||(F=c[j])}return C(F,I,B)},o.getLayoutValObject=function(E,I){var A=function(F,j){var B,z,N,R,q=F._basePlotModules;if(q){var Y;for(B=0;B=v&&(b._input||{})._templateitemname;y&&(m=v);var x,_=g+"["+m+"]";function w(){x={},y&&(x[_]={},x[_][c]=y)}function S(C,T){y?s.nestedProperty(x[_],C).set(T):x[_+"."+C]=T}function k(){var C=x;return w(),C}return w(),{modifyBase:function(C,T){x[C]=T},modifyItem:S,getUpdateObj:k,applyUpdate:function(C,T){C&&S(C,T);var M=k();for(var O in M)s.nestedProperty(h,O).set(M[O])}}}},61549:function(i,o,a){var s=a(39898),u=a(73972),c=a(74875),d=a(71828),f=a(63893),p=a(33306),h=a(7901),g=a(91424),b=a(92998),v=a(64168),m=a(89298),y=a(18783),x=a(99082),_=x.enforce,w=x.clean,S=a(71739).doAutoRange,k="start";function C(P,E,I){for(var A=0;A=P[1]||F[1]<=P[0])&&j[0]E[0])return!0}return!1}function T(P){var E,I,A,F,j,B,z=P._fullLayout,N=z._size,R=N.p,q=m.list(P,"",!0);if(z._paperdiv.style({width:P._context.responsive&&z.autosize&&!P._context._hasZeroWidth&&!P.layout.width?"100%":z.width+"px",height:P._context.responsive&&z.autosize&&!P._context._hasZeroHeight&&!P.layout.height?"100%":z.height+"px"}).selectAll(".main-svg").call(g.setSize,z.width,z.height),P._context.setBackground(P,z.paper_bgcolor),o.drawMainTitle(P),v.manage(P),!z._has("cartesian"))return c.previousPromises(P);function Y(Ne,ze,qe){var We=Ne._lw/2;return Ne._id.charAt(0)==="x"?ze?qe==="top"?ze._offset-R-We:ze._offset+ze._length+R+We:N.t+N.h*(1-(Ne.position||0))+We%1:ze?qe==="right"?ze._offset+ze._length+R+We:ze._offset-R-We:N.l+N.w*(Ne.position||0)+We%1}for(E=0;E.5?"t":"b",ee=Y._fullLayout.margin[te],U=0;return L.yref==="paper"?U=W+L.pad.t+L.pad.b:L.yref==="container"&&(U=function(Q,V,X,K,ne){var ae=0;return X==="middle"&&(ae+=ne/2),Q==="t"?(X==="top"&&(ae+=ne),ae+=K-V*K):(X==="bottom"&&(ae+=ne),ae+=V*K),ae}(te,H,G,Y._fullLayout.height,W)+L.pad.t+L.pad.b),U>ee?U:0}(P,I,R);q>0&&(function(Y,L,W,H){var G="title.automargin",te=Y._fullLayout.title,ee=te.y>.5?"t":"b",U={x:te.x,y:te.y,t:0,b:0},Q={};te.yref==="paper"&&function(V,X,K,ne,ae){var ie=X.yref==="paper"?V._fullLayout._size.h:V._fullLayout.height,se=d.isTopAnchor(X)?ne:ne-ae,pe=K==="b"?ie-se:se;return!(d.isTopAnchor(X)&&K==="t"||d.isBottomAnchor(X)&&K==="b")&&peN?D.push({code:"unused",traceType:A,templateCount:z,dataCount:N}):N>z&&D.push({code:"reused",traceType:A,templateCount:z,dataCount:N})}}else D.push({code:"data"});if(function R(q,Y){for(var L in q)if(L.charAt(0)!=="_"){var W=q[L],H=x(q,L,Y);u(W)?(Array.isArray(q)&&W._template===!1&&W.templateitemname&&D.push({code:"missing",path:H,templateitemname:W.templateitemname}),R(W,H)):Array.isArray(W)&&_(W)&&R(W,H)}}({data:E,layout:P},""),D.length)return D.map(w)}},403:function(i,o,a){var s=a(92770),u=a(72391),c=a(74875),d=a(71828),f=a(25095),p=a(5900),h=a(70942),g=a(11506).version,b={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};i.exports=function(v,m){var y,x,_,w;function S(N){return!(N in m)||d.validate(m[N],b[N])}if(m=m||{},d.isPlainObject(v)?(y=v.data||[],x=v.layout||{},_=v.config||{},w={}):(v=d.getGraphDiv(v),y=d.extendDeep([],v.data),x=d.extendDeep({},v.layout),_=v._context,w=v._fullLayout||{}),!S("width")&&m.width!==null||!S("height")&&m.height!==null)throw new Error("Height and width should be pixel values.");if(!S("format"))throw new Error("Export format is not "+d.join2(b.format.values,", "," or ")+".");var k={};function C(N,R){return d.coerce(m,k,b,N,R)}var T=C("format"),M=C("width"),O=C("height"),D=C("scale"),P=C("setBackground"),E=C("imageDataOnly"),I=document.createElement("div");I.style.position="absolute",I.style.left="-5000px",document.body.appendChild(I);var A=d.extendFlat({},x);M?A.width=M:m.width===null&&s(w.width)&&(A.width=w.width),O?A.height=O:m.height===null&&s(w.height)&&(A.height=w.height);var F=d.extendFlat({},_,{_exportedPlot:!0,staticPlot:!0,setBackground:P}),j=f.getRedrawFunc(I);function B(){return new Promise(function(N){setTimeout(N,f.getDelay(I._fullLayout))})}function z(){return new Promise(function(N,R){var q=p(I,T,D),Y=I._fullLayout.width,L=I._fullLayout.height;function W(){u.purge(I),document.body.removeChild(I)}if(T==="full-json"){var H=c.graphJson(I,!1,"keepdata","object",!0,!0);return H.version=g,H=JSON.stringify(H),W(),N(E?H:f.encodeJSON(H))}if(W(),T==="svg")return N(E?q:f.encodeSVG(q));var G=document.createElement("canvas");G.id=d.randstr(),h({format:T,width:Y,height:L,scale:D,canvas:G,svg:q,promise:!0}).then(N).catch(R)})}return new Promise(function(N,R){u.newPlot(I,y,A,F).then(j).then(B).then(z).then(function(q){N(function(Y){return E?Y.replace(f.IMAGE_URL_PREFIX,""):Y}(q))}).catch(function(q){R(q)})})}},84936:function(i,o,a){var s=a(71828),u=a(74875),c=a(86281),d=a(72075).dfltConfig,f=s.isPlainObject,p=Array.isArray,h=s.isArrayOrTypedArray;function g(S,k,C,T,M,O){O=O||[];for(var D=Object.keys(S),P=0;PF.length&&T.push(m("unused",M,I.concat(F.length)));var q,Y,L,W,H,G=F.length,te=Array.isArray(R);if(te&&(G=Math.min(G,R.length)),j.dimensions===2)for(Y=0;YF[Y].length&&T.push(m("unused",M,I.concat(Y,F[Y].length)));var ee=F[Y].length;for(q=0;q<(te?Math.min(ee,R[Y].length):ee);q++)L=te?R[Y][q]:R,W=A[Y][q],H=F[Y][q],s.validate(W,L)?H!==W&&H!==+W&&T.push(m("dynamic",M,I.concat(Y,q),W,H)):T.push(m("value",M,I.concat(Y,q),W))}else T.push(m("array",M,I.concat(Y),A[Y]));else for(Y=0;Y1&&O.push(m("object","layout"))),u.supplyDefaults(D);for(var P=D._fullData,E=C.length,I=0;I0&&Math.round(x)===x))return{vals:b};m=x}for(var _=h.calendar,w=v==="start",S=v==="end",k=p[g+"period0"],C=c(k,_)||0,T=[],M=[],O=[],D=b.length,P=0;PF;)A=d(A,-m,_);for(;A<=F;)A=d(A,m,_);I=d(A,-m,_)}else{for(A=C+(E=Math.round((F-C)/y))*y;A>F;)A-=y;for(;A<=F;)A+=y;I=A-y}T[P]=w?I:S?A:(I+A)/2,M[P]=I,O[P]=A}return{vals:T,starts:M,ends:O}}},89502:function(i){i.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},71739:function(i,o,a){var s=a(39898),u=a(92770),c=a(71828),d=a(50606).FP_SAFE,f=a(73972),p=a(91424),h=a(41675),g=h.getFromId,b=h.isLinked;function v(P,E){var I,A,F=[],j=P._fullLayout,B=y(j,E,0),z=y(j,E,1),N=_(P,E),R=N.min,q=N.max;if(R.length===0||q.length===0)return c.simpleMap(E.range,E.r2l);var Y=R[0].val,L=q[0].val;for(I=1;I0&&((V=ie-B(te)-z(ee))>se?X/V>pe&&(U=te,Q=ee,pe=X/V):X/ie>pe&&(U={val:te.val,nopad:1},Q={val:ee.val,nopad:1},pe=X/ie));if(Y===L){var ke=Y-1,Ce=Y+1;if(ne)if(Y===0)F=[0,1];else{var Oe=(Y>0?q:R).reduce(function(ce,we){return Math.max(ce,z(we))},0),Pe=Y/(1-Math.min(.5,Oe/ie));F=Y>0?[0,Pe]:[Pe,0]}else F=ae?[Math.max(0,ke),Math.max(1,Ce)]:[ke,Ce]}else ne?(U.val>=0&&(U={val:0,nopad:1}),Q.val<=0&&(Q={val:0,nopad:1})):ae&&(U.val-pe*B(U)<0&&(U={val:0,nopad:1}),Q.val<=0&&(Q={val:1,nopad:1})),pe=(Q.val-U.val-m(E,te.val,ee.val))/(ie-B(U)-z(Q)),F=[U.val-pe*B(U),Q.val+pe*z(Q)];return F=D(F,E),E.limitRange&&E.limitRange(),H&&F.reverse(),c.simpleMap(F,E.l2r||Number)}function m(P,E,I){var A=0;if(P.rangebreaks)for(var F=P.locateBreaks(E,I),j=0;j0?I.ppadplus:I.ppadminus)||I.ppad||0),K=V((P._m>0?I.ppadminus:I.ppadplus)||I.ppad||0),ne=V(I.vpadplus||I.vpad),ae=V(I.vpadminus||I.vpad);if(!U){if(q=1/0,Y=-1/0,ee)for(A=0;A0&&(q=F),F>Y&&F-d&&(q=F),F>Y&&F=pe;A--)se(A);return{min:L,max:W,opts:I}},concatExtremes:_};var x=3;function _(P,E,I){var A,F,j,B=E._id,z=P._fullData,N=P._fullLayout,R=[],q=[];function Y(te,ee){for(A=0;A=I&&(R.extrapad||!B)){z=!1;break}F(E,R.val)&&R.pad<=I&&(B||!R.extrapad)&&(P.splice(N,1),N--)}if(z){var q=j&&E===0;P.push({val:E,pad:q?0:I,extrapad:!q&&B})}}function C(P){return u(P)&&Math.abs(P)=E}function O(P,E,I){return E===void 0||I===void 0||(E=P.d2l(E))=N&&(j=N,I=N),B<=N&&(B=N,A=N)}}return I=function(R,q){var Y=q.autorangeoptions;return Y&&Y.minallowed!==void 0&&O(q,Y.minallowed,Y.maxallowed)?Y.minallowed:Y&&Y.clipmin!==void 0&&O(q,Y.clipmin,Y.clipmax)?Math.max(R,q.d2l(Y.clipmin)):R}(I,E),A=function(R,q){var Y=q.autorangeoptions;return Y&&Y.maxallowed!==void 0&&O(q,Y.minallowed,Y.maxallowed)?Y.maxallowed:Y&&Y.clipmax!==void 0&&O(q,Y.clipmin,Y.clipmax)?Math.min(R,q.d2l(Y.clipmax)):R}(A,E),[I,A]}},23074:function(i){i.exports=function(o,a,s){var u,c;if(s){var d=a==="reversed"||a==="min reversed"||a==="max reversed";u=s[d?1:0],c=s[d?0:1]}var f=o("autorangeoptions.minallowed",c===null?u:void 0),p=o("autorangeoptions.maxallowed",u===null?c:void 0);f===void 0&&o("autorangeoptions.clipmin"),p===void 0&&o("autorangeoptions.clipmax"),o("autorangeoptions.include")}},89298:function(i,o,a){var s=a(39898),u=a(92770),c=a(74875),d=a(73972),f=a(71828),p=f.strTranslate,h=a(63893),g=a(92998),b=a(7901),v=a(91424),m=a(13838),y=a(66287),x=a(50606),_=x.ONEMAXYEAR,w=x.ONEAVGYEAR,S=x.ONEMINYEAR,k=x.ONEMAXQUARTER,C=x.ONEAVGQUARTER,T=x.ONEMINQUARTER,M=x.ONEMAXMONTH,O=x.ONEAVGMONTH,D=x.ONEMINMONTH,P=x.ONEWEEK,E=x.ONEDAY,I=E/2,A=x.ONEHOUR,F=x.ONEMIN,j=x.ONESEC,B=x.MINUS_SIGN,z=x.BADNUM,N={K:"zeroline"},R={K:"gridline",L:"path"},q={K:"minor-gridline",L:"path"},Y={K:"tick",L:"path"},L={K:"tick",L:"text"},W={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},H=a(18783),G=H.MID_SHIFT,te=H.CAP_SHIFT,ee=H.LINE_SPACING,U=H.OPPOSITE_SIDE,Q=i.exports={};Q.setConvert=a(21994);var V=a(4322),X=a(41675),K=X.idSort,ne=X.isLinked;Q.id2name=X.id2name,Q.name2id=X.name2id,Q.cleanId=X.cleanId,Q.list=X.list,Q.listIds=X.listIds,Q.getFromId=X.getFromId,Q.getFromTrace=X.getFromTrace;var ae=a(71739);Q.getAutoRange=ae.getAutoRange,Q.findExtremes=ae.findExtremes;var ie=1e-4;function se(be){var Me=(be[1]-be[0])*ie;return[be[0]-Me,be[1]+Me]}Q.coerceRef=function(be,Me,Ve,Ue,Ze,Ye){var Qe=Ue.charAt(Ue.length-1),rt=Ve._fullLayout._subplots[Qe+"axis"],ut=Ue+"ref",gt={};return Ze||(Ze=rt[0]||(typeof Ye=="string"?Ye:Ye[0])),Ye||(Ye=Ze),rt=rt.concat(rt.map(function(nt){return nt+" domain"})),gt[ut]={valType:"enumerated",values:rt.concat(Ye?typeof Ye=="string"?[Ye]:Ye:[]),dflt:Ze},f.coerce(be,Me,gt,ut)},Q.getRefType=function(be){return be===void 0?be:be==="paper"?"paper":be==="pixel"?"pixel":/( domain)$/.test(be)?"domain":"range"},Q.coercePosition=function(be,Me,Ve,Ue,Ze,Ye){var Qe,rt;if(Q.getRefType(Ue)!=="range")Qe=f.ensureNumber,rt=Ve(Ze,Ye);else{var ut=Q.getFromId(Me,Ue);rt=Ve(Ze,Ye=ut.fraction2r(Ye)),Qe=ut.cleanPos}be[Ze]=Qe(rt)},Q.cleanPosition=function(be,Me,Ve){return(Ve==="paper"||Ve==="pixel"?f.ensureNumber:Q.getFromId(Me,Ve).cleanPos)(be)},Q.redrawComponents=function(be,Me){Me=Me||Q.listIds(be);var Ve=be._fullLayout;function Ue(Ze,Ye,Qe,rt){for(var ut=d.getComponentMethod(Ze,Ye),gt={},nt=0;ntVe&&nt2e-6||((Ve-be._forceTick0)/be._minDtick%1+1.000001)%1>2e-6)&&(be._minDtick=0)):be._minDtick=0},Q.saveRangeInitial=function(be,Me){for(var Ve=Q.list(be,"",!0),Ue=!1,Ze=0;Ze.3*zt||It(qt)||It(Rt))){var Xt=yt.dtick/2;mt+=mt+Xt.8){var Tt=Number(yt.substr(1));jt.exactYears>.8&&Tt%12==0?mt=Q.tickIncrement(mt,"M6","reverse")+1.5*E:jt.exactMonths>.8?mt=Q.tickIncrement(mt,"M1","reverse")+15.5*E:mt-=I;var Pt=Q.tickIncrement(mt,yt);if(Pt<=qt)return Pt}return mt}(Et,be,Ft,rt,Ze)),Ct=Et;Ct<=ut;)Ct=Q.tickIncrement(Ct,Ft,!1,Ze);return{start:Me.c2r(Et,0,Ze),end:Me.c2r(Ct,0,Ze),size:Ft,_dataSpan:ut-rt}},Q.prepMinorTicks=function(be,Me,Ve){if(!Me.minor.dtick){delete be.dtick;var Ue,Ze=Me.dtick&&u(Me._tmin);if(Ze){var Ye=Q.tickIncrement(Me._tmin,Me.dtick,!0);Ue=[Me._tmin,.99*Ye+.01*Me._tmin]}else{var Qe=f.simpleMap(Me.range,Me.r2l);Ue=[Qe[0],.8*Qe[0]+.2*Qe[1]]}if(be.range=f.simpleMap(Ue,Me.l2r),be._isMinor=!0,Q.prepTicks(be,Ve),Ze){var rt=u(Me.dtick),ut=u(be.dtick),gt=rt?Me.dtick:+Me.dtick.substring(1),nt=ut?be.dtick:+be.dtick.substring(1);rt&&ut?Oe(gt,nt)?gt===2*P&&nt===2*E&&(be.dtick=P):gt===2*P&&nt===3*E?be.dtick=P:gt!==P||(Me._input.minor||{}).nticks?Pe(gt/nt,2.5)?be.dtick=gt/2:be.dtick=gt:be.dtick=E:String(Me.dtick).charAt(0)==="M"?ut?be.dtick="M1":Oe(gt,nt)?gt>=12&&nt===2&&(be.dtick="M3"):be.dtick=Me.dtick:String(be.dtick).charAt(0)==="L"?String(Me.dtick).charAt(0)==="L"?Oe(gt,nt)||(be.dtick=Pe(gt/nt,2.5)?Me.dtick/2:Me.dtick):be.dtick="D1":be.dtick==="D2"&&+Me.dtick>1&&(be.dtick=1)}be.range=Me.range}Me.minor._tick0Init===void 0&&(be.tick0=Me.tick0)},Q.prepTicks=function(be,Me){var Ve=f.simpleMap(be.range,be.r2l,void 0,void 0,Me);if(be.tickmode==="auto"||!be.dtick){var Ue,Ze=be.nticks;Ze||(be.type==="category"||be.type==="multicategory"?(Ue=be.tickfont?f.bigFont(be.tickfont.size||12):15,Ze=be._length/Ue):(Ue=be._id.charAt(0)==="y"?40:80,Ze=f.constrain(be._length/Ue,4,9)+1),be._name==="radialaxis"&&(Ze*=2)),be.minor&&be.minor.tickmode!=="array"||be.tickmode==="array"&&(Ze*=100),be._roughDTick=Math.abs(Ve[1]-Ve[0])/Ze,Q.autoTicks(be,be._roughDTick),be._minDtick>0&&be.dtick<2*be._minDtick&&(be.dtick=be._minDtick,be.tick0=be.l2r(be._forceTick0))}be.ticklabelmode==="period"&&function(Ye){var Qe;function rt(){return!(u(Ye.dtick)||Ye.dtick.charAt(0)!=="M")}var ut=rt(),gt=Q.getTickFormat(Ye);if(gt){var nt=Ye._dtickInit!==Ye.dtick;/%[fLQsSMX]/.test(gt)||(/%[HI]/.test(gt)?(Qe=A,nt&&!ut&&Ye.dtick=(pt?0:1);yt--){var qt=!yt;yt?(be._dtickInit=be.dtick,be._tick0Init=be.tick0):(be.minor._dtickInit=be.minor.dtick,be.minor._tick0Init=be.minor.tick0);var Rt=yt?be:f.extendFlat({},be,be.minor);if(qt?Q.prepMinorTicks(Rt,be,Me):Q.prepTicks(Rt,Me),Rt.tickmode!=="array")if(Rt.tickmode!=="sync"){var jt=se(ut),Tt=jt[0],Pt=jt[1],Ot=u(Rt.dtick),It=Ze==="log"&&!(Ot||Rt.dtick.charAt(0)==="L"),Lt=Q.tickFirst(Rt,Me);if(yt){if(be._tmin=Lt,Lt=Pt:Bt<=Pt;Bt=Q.tickIncrement(Bt,Ut,gt,Ye)){if(yt&&zt++,Rt.rangebreaks&&!gt){if(Bt=Nt)break}if(Et.length>Gt||Bt===Kt)break;Kt=Bt;var on={value:Bt};yt?(It&&Bt!==(0|Bt)&&(on.simpleLabel=!0),Qe>1&&zt%Qe&&(on.skipLabel=!0),Et.push(on)):(on.minor=!0,mt.push(on))}}else Et=[],Ct=Z(be);else yt?(Et=[],Ct=re(be)):(mt=[],Ft=re(be))}if(pt&&!(be.minor.ticks==="inside"&&be.ticks==="outside"||be.minor.ticks==="outside"&&be.ticks==="inside")){for(var yn=Et.map(function(Mr){return Mr.value}),pn=[],cn=0;cn0?(Qa=Or-1,zn=Or):(Qa=Or,zn=Or);var dn,Zn=Mr[Qa].value,oa=Mr[zn].value,Vn=Math.abs(oa-Zn),Qn=aa||Vn,Kn=0;Qn>=S?Kn=Vn>=S&&Vn<=_?Vn:w:aa===C&&Qn>=T?Kn=Vn>=T&&Vn<=k?Vn:C:Qn>=D?Kn=Vn>=D&&Vn<=M?Vn:O:aa===P&&Qn>=P?Kn=P:Qn>=E?Kn=E:aa===I&&Qn>=I?Kn=I:aa===A&&Qn>=A&&(Kn=A),Kn>=Vn&&(Kn=Vn,dn=!0);var or=Zr+Kn;if(cl.rangebreaks&&Kn>0){for(var pa=0,Vr=0;Vr<84;Vr++){var Qr=(Vr+.5)/84;cl.maskBreaks(Zr*(1-Qr)+Qr*or)!==z&&pa++}(Kn*=pa/84)||(Mr[Or].drop=!0),dn&&Vn>P&&(Kn=Vn)}(Kn>0||Or===0)&&(Mr[Or].periodX=Zr+Kn/2)}}(Et,be,be._definedDelta),be.rangebreaks){var en=be._id.charAt(0)==="y",Nn=1;be.tickmode==="auto"&&(Nn=be.tickfont?be.tickfont.size:12);var An=NaN;for(Ve=Et.length-1;Ve>-1;Ve--)if(Et[Ve].drop)Et.splice(Ve,1);else{Et[Ve].value=$t(Et[Ve].value,be);var Wn=be.c2p(Et[Ve].value);(en?An>Wn-Nn:AnNt||qnNt&&(On.periodX=Nt),qn10||Ue.substr(5)!=="01-01"?be._tickround="d":be._tickround=+Me.substr(1)%12==0?"y":"m";else if(Me>=E&&Ze<=10||Me>=15*E)be._tickround="d";else if(Me>=F&&Ze<=16||Me>=A)be._tickround="M";else if(Me>=j&&Ze<=19||Me>=F)be._tickround="S";else{var Ye=be.l2r(Ve+Me).replace(/^-/,"").length;be._tickround=Math.max(Ze,Ye)-20,be._tickround<0&&(be._tickround=4)}}else if(u(Me)||Me.charAt(0)==="L"){var Qe=be.range.map(be.r2d||Number);u(Me)||(Me=Number(Me.substr(1))),be._tickround=2-Math.floor(Math.log(Me)/Math.LN10+.01);var rt=Math.max(Math.abs(Qe[0]),Math.abs(Qe[1])),ut=Math.floor(Math.log(rt)/Math.LN10+.01),gt=be.minexponent===void 0?3:be.minexponent;Math.abs(ut)>gt&&(Ne(be.exponentformat)&&!ze(ut)?be._tickexponent=3*Math.round((ut-1)/3):be._tickexponent=ut)}else be._tickround=null}function Re(be,Me,Ve){var Ue=be.tickfont||{};return{x:Me,dx:0,dy:0,text:Ve||"",fontSize:Ue.size,font:Ue.family,fontColor:Ue.color}}Q.autoTicks=function(be,Me,Ve){var Ue;function Ze(Nt){return Math.pow(Nt,Math.floor(Math.log(Me)/Math.LN10))}if(be.type==="date"){be.tick0=f.dateTick0(be.calendar,0);var Ye=2*Me;if(Ye>w)Me/=w,Ue=Ze(10),be.dtick="M"+12*Ae(Me,Ue,de);else if(Ye>O)Me/=O,be.dtick="M"+Ae(Me,1,_e);else if(Ye>E){if(be.dtick=Ae(Me,E,be._hasDayOfWeekBreaks?[1,2,7,14]:me),!Ve){var Qe=Q.getTickFormat(be),rt=be.ticklabelmode==="period";rt&&(be._rawTick0=be.tick0),/%[uVW]/.test(Qe)?be.tick0=f.dateTick0(be.calendar,2):be.tick0=f.dateTick0(be.calendar,1),rt&&(be._dowTick0=be.tick0)}}else Ye>A?be.dtick=Ae(Me,A,_e):Ye>F?be.dtick=Ae(Me,F,ue):Ye>j?be.dtick=Ae(Me,j,ue):(Ue=Ze(10),be.dtick=Ae(Me,Ue,de))}else if(be.type==="log"){be.tick0=0;var ut=f.simpleMap(be.range,be.r2l);if(be._isMinor&&(Me*=1.5),Me>.7)be.dtick=Math.ceil(Me);else if(Math.abs(ut[1]-ut[0])<1){var gt=1.5*Math.abs((ut[1]-ut[0])/Me);Me=Math.abs(Math.pow(10,ut[1])-Math.pow(10,ut[0]))/gt,Ue=Ze(10),be.dtick="L"+Ae(Me,Ue,de)}else be.dtick=Me>.3?"D2":"D1"}else be.type==="category"||be.type==="multicategory"?(be.tick0=0,be.dtick=Math.ceil(Math.max(Me,1))):ht(be)?(be.tick0=0,Ue=1,be.dtick=Ae(Me,Ue,Te)):(be.tick0=0,Ue=Ze(10),be.dtick=Ae(Me,Ue,de));if(be.dtick===0&&(be.dtick=1),!u(be.dtick)&&typeof be.dtick!="string"){var nt=be.dtick;throw be.dtick=1,"ax.dtick error: "+String(nt)}},Q.tickIncrement=function(be,Me,Ve,Ue){var Ze=Ve?-1:1;if(u(Me))return f.increment(be,Ze*Me);var Ye=Me.charAt(0),Qe=Ze*Number(Me.substr(1));if(Ye==="M")return f.incrementMonth(be,Qe,Ue);if(Ye==="L")return Math.log(Math.pow(10,be)+Qe)/Math.LN10;if(Ye==="D"){var rt=Me==="D2"?ye:xe,ut=be+.01*Ze,gt=f.roundUp(f.mod(ut,1),rt,Ve);return Math.floor(ut)+Math.log(s.round(Math.pow(10,gt),1))/Math.LN10}throw"unrecognized dtick "+String(Me)},Q.tickFirst=function(be,Me){var Ve=be.r2l||Number,Ue=f.simpleMap(be.range,Ve,void 0,void 0,Me),Ze=Ue[1] ")}else mt._prevDateHead=Tt,Pt+="
"+Tt;pt.text=Pt}(be,Ye,Ve,rt):ut==="log"?function(mt,pt,yt,qt,Rt){var jt=mt.dtick,Tt=pt.x,Pt=mt.tickformat,Ot=typeof jt=="string"&&jt.charAt(0);if(Rt==="never"&&(Rt=""),qt&&Ot!=="L"&&(jt="L3",Ot="L"),Pt||Ot==="L")pt.text=qe(Math.pow(10,Tt),mt,Rt,qt);else if(u(jt)||Ot==="D"&&f.mod(Tt+.01,1)<.1){var It=Math.round(Tt),Lt=Math.abs(It),zt=mt.exponentformat;zt==="power"||Ne(zt)&&ze(It)?(pt.text=It===0?1:It===1?"10":"10"+(It>1?"":B)+Lt+"",pt.fontSize*=1.25):(zt==="e"||zt==="E")&&Lt>2?pt.text="1"+zt+(It>0?"+":B)+Lt:(pt.text=qe(Math.pow(10,Tt),mt,"","fakehover"),jt==="D1"&&mt._id.charAt(0)==="y"&&(pt.dy-=pt.fontSize/6))}else{if(Ot!=="D")throw"unrecognized dtick "+String(jt);pt.text=String(Math.round(Math.pow(10,f.mod(Tt,1)))),pt.fontSize*=.75}if(mt.dtick==="D1"){var Xt=String(pt.text).charAt(0);Xt!=="0"&&Xt!=="1"||(mt._id.charAt(0)==="y"?pt.dx-=pt.fontSize/4:(pt.dy+=pt.fontSize/2,pt.dx+=(mt.range[1]>mt.range[0]?1:-1)*pt.fontSize*(Tt<0?.5:.25)))}}(be,Ye,0,rt,Ct):ut==="category"?function(mt,pt){var yt=mt._categories[Math.round(pt.x)];yt===void 0&&(yt=""),pt.text=String(yt)}(be,Ye):ut==="multicategory"?function(mt,pt,yt){var qt=Math.round(pt.x),Rt=mt._categories[qt]||[],jt=Rt[1]===void 0?"":String(Rt[1]),Tt=Rt[0]===void 0?"":String(Rt[0]);yt?pt.text=Tt+" - "+jt:(pt.text=jt,pt.text2=Tt)}(be,Ye,Ve):ht(be)?function(mt,pt,yt,qt,Rt){if(mt.thetaunit!=="radians"||yt)pt.text=qe(pt.x,mt,Rt,qt);else{var jt=pt.x/180;if(jt===0)pt.text="0";else{var Tt=function(Ot){function It(Kt,Bt){return Math.abs(Kt-Bt)<=1e-6}var Lt=function(Kt){for(var Bt=1;!It(Math.round(Kt*Bt)/Bt,Kt);)Bt*=10;return Bt}(Ot),zt=Ot*Lt,Xt=Math.abs(function Kt(Bt,Ut){return It(Ut,0)?Bt:Kt(Ut,Bt%Ut)}(zt,Lt));return[Math.round(zt/Xt),Math.round(Lt/Xt)]}(jt);if(Tt[1]>=100)pt.text=qe(f.deg2rad(pt.x),mt,Rt,qt);else{var Pt=pt.x<0;Tt[1]===1?Tt[0]===1?pt.text="π":pt.text=Tt[0]+"π":pt.text=["",Tt[0],"","⁄","",Tt[1],"","π"].join(""),Pt&&(pt.text=B+pt.text)}}}}(be,Ye,Ve,rt,Ct):function(mt,pt,yt,qt,Rt){Rt==="never"?Rt="":mt.showexponent==="all"&&Math.abs(pt.x/mt.dtick)<1e-6&&(Rt="hide"),pt.text=qe(pt.x,mt,Rt,qt)}(be,Ye,0,rt,Ct),Ue||(be.tickprefix&&!Gt(be.showtickprefix)&&(Ye.text=be.tickprefix+Ye.text),be.ticksuffix&&!Gt(be.showticksuffix)&&(Ye.text+=be.ticksuffix)),be.labelalias&&be.labelalias.hasOwnProperty(Ye.text)){var Ft=be.labelalias[Ye.text];typeof Ft=="string"&&(Ye.text=Ft)}if(be.tickson==="boundaries"||be.showdividers){var Et=function(mt){var pt=be.l2p(mt);return pt>=0&&pt<=be._length?mt:null};Ye.xbnd=[Et(Ye.x-.5),Et(Ye.x+be.dtick-.5)]}return Ye},Q.hoverLabelText=function(be,Me,Ve){Ve&&(be=f.extendFlat({},be,{hoverformat:Ve}));var Ue=Array.isArray(Me)?Me[0]:Me,Ze=Array.isArray(Me)?Me[1]:void 0;if(Ze!==void 0&&Ze!==Ue)return Q.hoverLabelText(be,Ue,Ve)+" - "+Q.hoverLabelText(be,Ze,Ve);var Ye=be.type==="log"&&Ue<=0,Qe=Q.tickText(be,be.c2l(Ye?-Ue:Ue),"hover").text;return Ye?Ue===0?"0":B+Qe:Qe};var Ie=["f","p","n","μ","m","","k","M","G","T"];function Ne(be){return be==="SI"||be==="B"}function ze(be){return be>14||be<-15}function qe(be,Me,Ve,Ue){var Ze=be<0,Ye=Me._tickround,Qe=Ve||Me.exponentformat||"B",rt=Me._tickexponent,ut=Q.getTickFormat(Me),gt=Me.separatethousands;if(Ue){var nt={exponentformat:Qe,minexponent:Me.minexponent,dtick:Me.showexponent==="none"?Me.dtick:u(be)&&Math.abs(be)||1,range:Me.showexponent==="none"?Me.range.map(Me.r2d):[0,be||1]};Le(nt),Ye=(Number(nt._tickround)||0)+4,rt=nt._tickexponent,Me.hoverformat&&(ut=Me.hoverformat)}if(ut)return Me._numFormat(ut)(be).replace(/-/g,B);var Nt,Gt=Math.pow(10,-Ye)/2;if(Qe==="none"&&(rt=0),(be=Math.abs(be))"+Nt+"":Qe==="B"&&rt===9?be+="B":Ne(Qe)&&(be+=Ie[rt/3+5])),Ze?B+be:be}function We(be,Me){if(be){var Ve=Object.keys(W).reduce(function(Ue,Ze){return Me.indexOf(Ze)!==-1&&W[Ze].forEach(function(Ye){Ue[Ye]=1}),Ue},{});Object.keys(be).forEach(function(Ue){Ve[Ue]||(Ue.length===1?be[Ue]=0:delete be[Ue])})}}function Ge(be,Me){for(var Ve=[],Ue={},Ze=0;Ze1&&Ve=Ze.min&&be=0,pt=nt(Gt,Ct[1])<=0;return(Ft||mt)&&(Et||pt)}if(be.tickformatstops&&be.tickformatstops.length>0)switch(be.type){case"date":case"linear":for(Me=0;Me=Qe(Ze)))){Ve=Ue;break}break;case"log":for(Me=0;Me=0&&Ze.unshift(Ze.splice(gt,1).shift())}});var Qe={false:{left:0,right:0}};return f.syncOrAsync(Ze.map(function(rt){return function(){if(rt){var ut=Q.getFromId(be,rt);Ve||(Ve={}),Ve.axShifts=Qe,Ve.overlayingShiftedAx=Ye;var gt=Q.drawOne(be,ut,Ve);return ut._shiftPusher&&wt(ut,ut._fullDepth||0,Qe,!0),ut._r=ut.range.slice(),ut._rl=f.simpleMap(ut._r,ut.r2l),gt}}}))},Q.drawOne=function(be,Me,Ve){var Ue,Ze,Ye,Qe=(Ve=Ve||{}).axShifts||{},rt=Ve.overlayingShiftedAx||[];Me.setScale();var ut=be._fullLayout,gt=Me._id,nt=gt.charAt(0),Nt=Q.counterLetter(gt),Gt=ut._plots[Me._mainSubplot];if(Gt){if(Me._shiftPusher=Me.autoshift||rt.indexOf(Me._id)!==-1||rt.indexOf(Me.overlaying)!==-1,Me._shiftPusher&Me.anchor==="free"){var Ct=Me.linewidth/2||0;Me.ticks==="inside"&&(Ct+=Me.ticklen),wt(Me,Ct,Qe,!0),wt(Me,Me.shift||0,Qe,!1)}Ve.skipTitle===!0&&Me._shift!==void 0||(Me._shift=function(zn,dn){return zn.autoshift?dn[zn.overlaying][zn.side]:zn.shift||0}(Me,Qe));var Ft=Gt[nt+"axislayer"],Et=Me._mainLinePosition,mt=Et+=Me._shift,pt=Me._mainMirrorPosition,yt=Me._vals=Q.calcTicks(Me),qt=[Me.mirror,mt,pt].join("_");for(Ue=0;Ue0?zn.bottom-Kn:0,or))));var pa=0,Vr=0;if(Me._shiftPusher&&(pa=Math.max(or,zn.height>0?Vn==="l"?Kn-zn.left:zn.right-Kn:0),Me.title.text!==ut._dfltTitle[nt]&&(Vr=(Me._titleStandoff||0)+(Me._titleScoot||0),Vn==="l"&&(Vr+=st(Me))),Me._fullDepth=Math.max(pa,Vr)),Me.automargin){dn={x:0,y:0,r:0,l:0,t:0,b:0};var Qr=[0,1],mi=typeof Me._shift=="number"?Me._shift:0;if(nt==="x"){if(Vn==="b"?dn[Vn]=Me._depth:(dn[Vn]=Me._depth=Math.max(zn.width>0?Kn-zn.top:0,or),Qr.reverse()),zn.width>0){var Ao=zn.right-(Me._offset+Me._length);Ao>0&&(dn.xr=1,dn.r=Ao);var Ja=Me._offset-zn.left;Ja>0&&(dn.xl=0,dn.l=Ja)}}else if(Vn==="l"?(Me._depth=Math.max(zn.height>0?Kn-zn.left:0,or),dn[Vn]=Me._depth-mi):(Me._depth=Math.max(zn.height>0?zn.right-Kn:0,or),dn[Vn]=Me._depth+mi,Qr.reverse()),zn.height>0){var Dn=zn.bottom-(Me._offset+Me._length);Dn>0&&(dn.yb=0,dn.b=Dn);var ia=Me._offset-zn.top;ia>0&&(dn.yt=1,dn.t=ia)}dn[Nt]=Me.anchor==="free"?Me.position:Me._anchorAxis.domain[Qr[0]],Me.title.text!==ut._dfltTitle[nt]&&(dn[Vn]+=st(Me)+(Me.title.standoff||0)),Me.mirror&&Me.anchor!=="free"&&((Zn={x:0,y:0,r:0,l:0,t:0,b:0})[Qn]=Me.linewidth,Me.mirror&&Me.mirror!==!0&&(Zn[Qn]+=or),Me.mirror===!0||Me.mirror==="ticks"?Zn[Nt]=Me._anchorAxis.domain[Qr[1]]:Me.mirror!=="all"&&Me.mirror!=="allticks"||(Zn[Nt]=[Me._counterDomainMin,Me._counterDomainMax][Qr[1]]))}Zr&&(oa=d.getComponentMethod("rangeslider","autoMarginOpts")(be,Me)),typeof Me.automargin=="string"&&(We(dn,Me.automargin),We(Zn,Me.automargin)),c.autoMargin(be,je(Me),dn),c.autoMargin(be,tt(Me),Zn),c.autoMargin(be,it(Me),oa)}),f.syncOrAsync(aa)}}function Qa(zn){var dn=gt+(zn||"tick");return Rt[dn]||(Rt[dn]=function(Zn,oa){var Vn,Qn,Kn,or;return Zn._selections[oa].size()?(Vn=1/0,Qn=-1/0,Kn=1/0,or=-1/0,Zn._selections[oa].each(function(){var pa=Be(this),Vr=v.bBox(pa.node().parentNode);Vn=Math.min(Vn,Vr.top),Qn=Math.max(Qn,Vr.bottom),Kn=Math.min(Kn,Vr.left),or=Math.max(or,Vr.right)})):(Vn=0,Qn=0,Kn=0,or=0),{top:Vn,bottom:Qn,left:Kn,right:or,height:Qn-Vn,width:or-Kn}}(Me,dn)),Rt[dn]}},Q.getTickSigns=function(be,Me){var Ve=be._id.charAt(0),Ue={x:"top",y:"right"}[Ve],Ze=be.side===Ue?1:-1,Ye=[-1,1,Ze,-Ze];return(Me?(be.minor||{}).ticks:be.ticks)!=="inside"==(Ve==="x")&&(Ye=Ye.map(function(Qe){return-Qe})),be.side&&Ye.push({l:-1,t:-1,r:1,b:1}[be.side.charAt(0)]),Ye},Q.makeTransTickFn=function(be){return be._id.charAt(0)==="x"?function(Me){return p(be._offset+be.l2p(Me.x),0)}:function(Me){return p(0,be._offset+be.l2p(Me.x))}},Q.makeTransTickLabelFn=function(be){var Me=function(Ze){var Ye=Ze.ticklabelposition||"",Qe=function(pt){return Ye.indexOf(pt)!==-1},rt=Qe("top"),ut=Qe("left"),gt=Qe("right"),nt=Qe("bottom"),Nt=Qe("inside"),Gt=nt||ut||rt||gt;if(!Gt&&!Nt)return[0,0];var Ct=Ze.side,Ft=Gt?(Ze.tickwidth||0)/2:0,Et=3,mt=Ze.tickfont?Ze.tickfont.size:12;return(nt||rt)&&(Ft+=mt*te,Et+=(Ze.linewidth||0)/2),(ut||gt)&&(Ft+=(Ze.linewidth||0)/2,Et+=3),Nt&&Ct==="top"&&(Et-=mt*(1-te)),(ut||rt)&&(Ft=-Ft),Ct!=="bottom"&&Ct!=="right"||(Et=-Et),[Gt?Ft:0,Nt?Et:0]}(be),Ve=Me[0],Ue=Me[1];return be._id.charAt(0)==="x"?function(Ze){return p(Ve+be._offset+be.l2p(ot(Ze)),Ue)}:function(Ze){return p(Ue,Ve+be._offset+be.l2p(ot(Ze)))}},Q.makeTickPath=function(be,Me,Ve,Ue){Ue||(Ue={});var Ze=Ue.minor;if(Ze&&!be.minor)return"";var Ye=Ue.len!==void 0?Ue.len:Ze?be.minor.ticklen:be.ticklen,Qe=be._id.charAt(0),rt=(be.linewidth||1)/2;return Qe==="x"?"M0,"+(Me+rt*Ve)+"v"+Ye*Ve:"M"+(Me+rt*Ve)+",0h"+Ye*Ve},Q.makeLabelFns=function(be,Me,Ve){var Ue=be.ticklabelposition||"",Ze=function(zt){return Ue.indexOf(zt)!==-1},Ye=Ze("top"),Qe=Ze("left"),rt=Ze("right"),ut=Ze("bottom")||Qe||Ye||rt,gt=Ze("inside"),nt=Ue==="inside"&&be.ticks==="inside"||!gt&&be.ticks==="outside"&&be.tickson!=="boundaries",Nt=0,Gt=0,Ct=nt?be.ticklen:0;if(gt?Ct*=-1:ut&&(Ct=0),nt&&(Nt+=Ct,Ve)){var Ft=f.deg2rad(Ve);Nt=Ct*Math.cos(Ft)+1,Gt=Ct*Math.sin(Ft)}be.showticklabels&&(nt||be.showline)&&(Nt+=.2*be.tickfont.size);var Et,mt,pt,yt,qt,Rt={labelStandoff:Nt+=(be.linewidth||1)/2*(gt?-1:1),labelShift:Gt},jt=0,Tt=be.side,Pt=be._id.charAt(0),Ot=be.tickangle;if(Pt==="x")yt=(qt=!gt&&Tt==="bottom"||gt&&Tt==="top")?1:-1,gt&&(yt*=-1),Et=Gt*yt,mt=Me+Nt*yt,pt=qt?1:-.2,Math.abs(Ot)===90&&(gt?pt+=G:pt=Ot===-90&&Tt==="bottom"?te:Ot===90&&Tt==="top"?G:.5,jt=G/2*(Ot/90)),Rt.xFn=function(zt){return zt.dx+Et+jt*zt.fontSize},Rt.yFn=function(zt){return zt.dy+mt+zt.fontSize*pt},Rt.anchorFn=function(zt,Xt){if(ut){if(Qe)return"end";if(rt)return"start"}return u(Xt)&&Xt!==0&&Xt!==180?Xt*yt<0!==gt?"end":"start":"middle"},Rt.heightFn=function(zt,Xt,Kt){return Xt<-60||Xt>60?-.5*Kt:be.side==="top"!==gt?-Kt:0};else if(Pt==="y"){if(yt=(qt=!gt&&Tt==="left"||gt&&Tt==="right")?1:-1,gt&&(yt*=-1),Et=Nt,mt=Gt*yt,pt=0,gt||Math.abs(Ot)!==90||(pt=Ot===-90&&Tt==="left"||Ot===90&&Tt==="right"?te:.5),gt){var It=u(Ot)?+Ot:0;if(It!==0){var Lt=f.deg2rad(It);jt=Math.abs(Math.sin(Lt))*te*yt,pt=0}}Rt.xFn=function(zt){return zt.dx+Me-(Et+zt.fontSize*pt)*yt+jt*zt.fontSize},Rt.yFn=function(zt){return zt.dy+mt+zt.fontSize*G},Rt.anchorFn=function(zt,Xt){return u(Xt)&&Math.abs(Xt)===90?"middle":qt?"end":"start"},Rt.heightFn=function(zt,Xt,Kt){return be.side==="right"&&(Xt*=-1),Xt<-30?-Kt:Xt<30?-.5*Kt:0}}return Rt},Q.drawTicks=function(be,Me,Ve){Ve=Ve||{};var Ue=Me._id+"tick",Ze=[].concat(Me.minor&&Me.minor.ticks?Ve.vals.filter(function(Qe){return Qe.minor&&!Qe.noTick}):[]).concat(Me.ticks?Ve.vals.filter(function(Qe){return!Qe.minor&&!Qe.noTick}):[]),Ye=Ve.layer.selectAll("path."+Ue).data(Ze,Je);Ye.exit().remove(),Ye.enter().append("path").classed(Ue,1).classed("ticks",1).classed("crisp",Ve.crisp!==!1).each(function(Qe){return b.stroke(s.select(this),Qe.minor?Me.minor.tickcolor:Me.tickcolor)}).style("stroke-width",function(Qe){return v.crispRound(be,Qe.minor?Me.minor.tickwidth:Me.tickwidth,1)+"px"}).attr("d",Ve.path).style("display",null),Wt(Me,[Y]),Ye.attr("transform",Ve.transFn)},Q.drawGrid=function(be,Me,Ve){if(Ve=Ve||{},Me.tickmode!=="sync"){var Ue=Me._id+"grid",Ze=Me.minor&&Me.minor.showgrid,Ye=Ze?Ve.vals.filter(function(pt){return pt.minor}):[],Qe=Me.showgrid?Ve.vals.filter(function(pt){return!pt.minor}):[],rt=Ve.counterAxis;if(rt&&Q.shouldShowZeroLine(be,Me,rt))for(var ut=Me.tickmode==="array",gt=0;gt=0;Ft--){var Et=Ft?Gt:Ct;if(Et){var mt=Et.selectAll("path."+Ue).data(Ft?Qe:Ye,Je);mt.exit().remove(),mt.enter().append("path").classed(Ue,1).classed("crisp",Ve.crisp!==!1),mt.attr("transform",Ve.transFn).attr("d",Ve.path).each(function(pt){return b.stroke(s.select(this),pt.minor?Me.minor.gridcolor:Me.gridcolor||"#ddd")}).style("stroke-dasharray",function(pt){return v.dashStyle(pt.minor?Me.minor.griddash:Me.griddash,pt.minor?Me.minor.gridwidth:Me.gridwidth)}).style("stroke-width",function(pt){return(pt.minor?Nt:Me._gw)+"px"}).style("display",null),typeof Ve.path=="function"&&mt.attr("d",Ve.path)}}Wt(Me,[R,q])}},Q.drawZeroLine=function(be,Me,Ve){Ve=Ve||Ve;var Ue=Me._id+"zl",Ze=Q.shouldShowZeroLine(be,Me,Ve.counterAxis),Ye=Ve.layer.selectAll("path."+Ue).data(Ze?[{x:0,id:Me._id}]:[]);Ye.exit().remove(),Ye.enter().append("path").classed(Ue,1).classed("zl",1).classed("crisp",Ve.crisp!==!1).each(function(){Ve.layer.selectAll("path").sort(function(Qe,rt){return K(Qe.id,rt.id)})}),Ye.attr("transform",Ve.transFn).attr("d",Ve.path).call(b.stroke,Me.zerolinecolor||b.defaultLine).style("stroke-width",v.crispRound(be,Me.zerolinewidth,Me._gw||1)+"px").style("display",null),Wt(Me,[N])},Q.drawLabels=function(be,Me,Ve){Ve=Ve||{};var Ue=be._fullLayout,Ze=Me._id,Ye=Ze.charAt(0),Qe=Ve.cls||Ze+"tick",rt=Ve.vals.filter(function(yt){return yt.text}),ut=Ve.labelFns,gt=Ve.secondary?0:Me.tickangle,nt=(Me._prevTickAngles||{})[Qe],Nt=Ve.layer.selectAll("g."+Qe).data(Me.showticklabels?rt:[],Je),Gt=[];function Ct(yt,qt){yt.each(function(Rt){var jt=s.select(this),Tt=jt.select(".text-math-group"),Pt=ut.anchorFn(Rt,qt),Ot=Ve.transFn.call(jt.node(),Rt)+(u(qt)&&+qt!=0?" rotate("+qt+","+ut.xFn(Rt)+","+(ut.yFn(Rt)-Rt.fontSize/2)+")":""),It=h.lineCount(jt),Lt=ee*Rt.fontSize,zt=ut.heightFn(Rt,u(qt)?+qt:0,(It-1)*Lt);if(zt&&(Ot+=p(0,zt)),Tt.empty()){var Xt=jt.select("text");Xt.attr({transform:Ot,"text-anchor":Pt}),Xt.style("opacity",1),Me._adjustTickLabelsOverflow&&Me._adjustTickLabelsOverflow()}else{var Kt=v.bBox(Tt.node()).width*{end:-.5,start:.5}[Pt];Tt.attr("transform",Ot+p(Kt,0))}})}Nt.enter().append("g").classed(Qe,1).append("text").attr("text-anchor","middle").each(function(yt){var qt=s.select(this),Rt=be._promises.length;qt.call(h.positionText,ut.xFn(yt),ut.yFn(yt)).call(v.font,yt.font,yt.fontSize,yt.fontColor).text(yt.text).call(h.convertToTspans,be),be._promises[Rt]?Gt.push(be._promises.pop().then(function(){Ct(qt,gt)})):Ct(qt,gt)}),Wt(Me,[L]),Nt.exit().remove(),Ve.repositionOnUpdate&&Nt.each(function(yt){s.select(this).select("text").call(h.positionText,ut.xFn(yt),ut.yFn(yt))}),Me._adjustTickLabelsOverflow=function(){var yt=Me.ticklabeloverflow;if(yt&&yt!=="allow"){var qt=yt.indexOf("hide")!==-1,Rt=Me._id.charAt(0)==="x",jt=0,Tt=Rt?be._fullLayout.width:be._fullLayout.height;if(yt.indexOf("domain")!==-1){var Pt=f.simpleMap(Me.range,Me.r2l);jt=Me.l2p(Pt[0])+Me._offset,Tt=Me.l2p(Pt[1])+Me._offset}var Ot=Math.min(jt,Tt),It=Math.max(jt,Tt),Lt=Me.side,zt=1/0,Xt=-1/0;for(var Kt in Nt.each(function(on){var yn=s.select(this);if(yn.select(".text-math-group").empty()){var pn=v.bBox(yn.node()),cn=0;Rt?(pn.right>It||pn.leftIt||pn.top+(Me.tickangle?0:on.fontSize/4)Me["_visibleLabelMin_"+Pt._id]?Ut.style("display","none"):It.K!=="tick"||Ot||Ut.style("display",null)})})})})},Ct(Nt,nt+1?nt:gt);var Ft=null;Me._selections&&(Me._selections[Qe]=Nt);var Et=[function(){return Gt.length&&Promise.all(Gt)}];Me.automargin&&Ue._redrawFromAutoMarginCount&&nt===90?(Ft=90,Et.push(function(){Ct(Nt,nt)})):Et.push(function(){if(Ct(Nt,gt),rt.length&&Ye==="x"&&!u(gt)&&(Me.type!=="log"||String(Me.dtick).charAt(0)!=="D")){Ft=0;var yt,qt=0,Rt=[];if(Nt.each(function(yn){qt=Math.max(qt,yn.fontSize);var pn=Me.l2p(yn.x),cn=Be(this),hn=v.bBox(cn.node());Rt.push({top:0,bottom:10,height:10,left:pn-hn.width/2,right:pn+hn.width/2+2,width:hn.width+2})}),Me.tickson!=="boundaries"&&!Me.showdividers||Ve.secondary){var jt=rt.length,Tt=Math.abs((rt[jt-1].x-rt[0].x)*Me._m)/(jt-1),Pt=Me.ticklabelposition||"",Ot=function(yn){return Pt.indexOf(yn)!==-1},It=Ot("top"),Lt=Ot("left"),zt=Ot("right"),Xt=Ot("bottom")||Lt||It||zt?(Me.tickwidth||0)+6:0,Kt=Tt<2.5*qt||Me.type==="multicategory"||Me._name==="realaxis";for(yt=0;yt1)for(rt=1;rt2*E}(x,m))return"date";var C=y.autotypenumbers!=="strict";return function(T,M){for(var O=T.length,D=b(O),P=0,E=0,I={},A=0;A2*P}(x,C)?"category":function(T,M){for(var O=T.length,D=0;D=2){var I,A,F="";if(E.length===2){for(I=0;I<2;I++)if(A=T(E[I])){F=w;break}}var j=P("pattern",F);if(j===w)for(I=0;I<2;I++)(A=T(E[I]))&&(O.bounds[I]=E[I]=A-1);if(j)for(I=0;I<2;I++)switch(A=E[I],j){case w:if(!s(A)||(A=+A)!==Math.floor(A)||A<0||A>=7)return void(O.enabled=!1);O.bounds[I]=E[I]=A;break;case S:if(!s(A)||(A=+A)<0||A>24)return void(O.enabled=!1);O.bounds[I]=E[I]=A}if(D.autorange===!1){var B=D.range;if(B[0]B[1])return void(O.enabled=!1)}else if(E[0]>B[0]&&E[1]h?1:-1:+(d.substr(1)||1)-+(f.substr(1)||1)},o.ref2id=function(d){return!!/^[xyz]/.test(d)&&d.split(" ")[0]},o.isLinked=function(d,f){return c(f,d._axisMatchGroups)||c(f,d._axisConstraintGroups)}},15258:function(i){i.exports=function(o,a,s,u){if(a.type==="category"){var c,d=o.categoryarray,f=Array.isArray(d)&&d.length>0;f&&(c="array");var p,h=s("categoryorder",c);h==="array"&&(p=s("categoryarray")),f||h!=="array"||(h=a.categoryorder="trace"),h==="trace"?a._initialCategories=[]:h==="array"?a._initialCategories=p.slice():(p=function(g,b){var v,m,y,x=b.dataAttr||g._id.charAt(0),_={};if(b.axData)v=b.axData;else for(v=[],m=0;mT?M.substr(T):O.substr(C))+D:M+O+S*k:D}function _(S,k){for(var C=k._size,T=C.h/C.w,M={},O=Object.keys(S),D=0;Dh*B)||q){for(C=0;CV&&aeU&&(U=ae);E/=(U-ee)/(2*Q),ee=O.l2r(ee),U=O.l2r(U),O.range=O._input.range=H=0?Math.min(ae,.9):1/(1/Math.max(ae,-.3)+3.222))}function H(ae,ie,se,pe,ke){return ae.append("path").attr("class","zoombox").style({fill:ie>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",h(se,pe)).attr("d",ke+"Z")}function G(ae,ie,se){return ae.append("path").attr("class","zoombox-corners").style({fill:b.background,stroke:b.defaultLine,"stroke-width":1,opacity:0}).attr("transform",h(ie,se)).attr("d","M0,0Z")}function te(ae,ie,se,pe,ke,Ce){ae.attr("d",pe+"M"+se.l+","+se.t+"v"+se.h+"h"+se.w+"v-"+se.h+"h-"+se.w+"Z"),ee(ae,ie,ke,Ce)}function ee(ae,ie,se,pe){se||(ae.transition().style("fill",pe>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),ie.transition().style("opacity",1).duration(200))}function U(ae){s.select(ae).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Q(ae){z&&ae.data&&ae._context.showTips&&(u.notifier(u._(ae,"Double-click to zoom back out"),"long"),z=!1)}function V(ae){var ie=Math.floor(Math.min(ae.b-ae.t,ae.r-ae.l,B)/2);return"M"+(ae.l-3.5)+","+(ae.t-.5+ie)+"h3v"+-ie+"h"+ie+"v-3h-"+(ie+3)+"ZM"+(ae.r+3.5)+","+(ae.t-.5+ie)+"h-3v"+-ie+"h"+-ie+"v-3h"+(ie+3)+"ZM"+(ae.r+3.5)+","+(ae.b+.5-ie)+"h-3v"+ie+"h"+-ie+"v3h"+(ie+3)+"ZM"+(ae.l-3.5)+","+(ae.b+.5-ie)+"h3v"+ie+"h"+ie+"v3h-"+(ie+3)+"Z"}function X(ae,ie,se,pe,ke){for(var Ce,Oe,Pe,ce,we=!1,Z={},re={},de=(ke||{}).xaHash,_e=(ke||{}).yaHash,ue=0;ue=0)Ot._fullLayout._deactivateShape(Ot);else{var It=Ot._fullLayout.clickmode;if(U(Ot),Tt!==2||je||mt(),Be)It.indexOf("select")>-1&&I(Pt,Ot,de,_e,ie.id,Ue),It.indexOf("event")>-1&&m.click(Ot,Pt,ie.id);else if(Tt===1&&je){var Lt=Oe?we:ce,zt=Oe==="s"||Pe==="w"?0:1,Xt=Lt._name+".range["+zt+"]",Kt=function(on,yn){var pn,cn=on.range[yn],hn=Math.abs(cn-on.range[1-yn]);return on.type==="date"?cn:on.type==="log"?(pn=Math.ceil(Math.max(0,-Math.log(hn)/Math.LN10))+3,c("."+pn+"g")(Math.pow(10,cn))):(pn=Math.floor(Math.log(Math.abs(cn))/Math.LN10)-Math.floor(Math.log(hn)/Math.LN10)+4,c("."+String(pn)+"g")(cn))}(Lt,zt),Bt="left",Ut="middle";if(Lt.fixedrange)return;Oe?(Ut=Oe==="n"?"top":"bottom",Lt.side==="right"&&(Bt="right")):Pe==="e"&&(Bt="right"),Ot._context.showAxisRangeEntryBoxes&&s.select(St).call(g.makeEditable,{gd:Ot,immediate:!0,background:Ot._fullLayout.paper_bgcolor,text:String(Kt),fill:Lt.tickfont?Lt.tickfont.color:"#444",horizontalAlign:Bt,verticalAlign:Ut}).on("edit",function(on){var yn=Lt.d2r(on);yn!==void 0&&p.call("_guiRelayout",Ot,Xt,yn)})}}}function Qe(Tt,Pt){if(ae._transitioningWithDuration)return!1;var Ot=Math.max(0,Math.min(xe,Je*Tt+et)),It=Math.max(0,Math.min(ye,st*Pt+ct)),Lt=Math.abs(Ot-et),zt=Math.abs(It-ct);function Xt(){wt="",ht.r=ht.l,ht.t=ht.b,Me.attr("d","M0,0Z")}if(ht.l=Math.min(et,Ot),ht.r=Math.max(et,Ot),ht.t=Math.min(ct,It),ht.b=Math.max(ct,It),Te.isSubplotConstrained)Lt>B||zt>B?(wt="xy",Lt/xe>zt/ye?(zt=Lt*ye/xe,ct>It?ht.t=ct-zt:ht.b=ct+zt):(Lt=zt*xe/ye,et>Ot?ht.l=et-Lt:ht.r=et+Lt),Me.attr("d",V(ht))):Xt();else if(Ae.isSubplotConstrained)if(Lt>B||zt>B){wt="xy";var Kt=Math.min(ht.l/xe,(ye-ht.b)/ye),Bt=Math.max(ht.r/xe,(ye-ht.t)/ye);ht.l=Kt*xe,ht.r=Bt*xe,ht.b=(1-Kt)*ye,ht.t=(1-Bt)*ye,Me.attr("d",V(ht))}else Xt();else!Re||zt0){var Ut;if(Ae.isSubplotConstrained||!Le&&Re.length===1){for(Ut=0;Ut1&&(It.maxallowed!==void 0&&Ne===(It.range[0]1&&(Lt.maxallowed!==void 0&&ze===(Lt.range[0]O[1]-.000244140625&&(d.domain=g),u.noneOrAll(c.domain,d.domain,g),d.tickmode==="sync"&&(d.tickmode="auto")}return f("layer"),d}},89426:function(i,o,a){var s=a(59652);i.exports=function(u,c,d,f,p){p||(p={});var h=p.tickSuffixDflt,g=s(u);d("tickprefix")&&d("showtickprefix",g),d("ticksuffix",h)&&d("showticksuffix",g)}},23608:function(i,o,a){var s=a(23074);i.exports=function(u,c,d,f){var p=c._template||{},h=c.type||p.type||"-";d("minallowed"),d("maxallowed");var g,b=d("range"),v=c.getAutorangeDflt(b,f),m=d("autorange",v);!b||(b[0]!==null||b[1]!==null)&&(b[0]!==null&&b[1]!==null||m!=="reversed"&&m!==!0)&&(b[0]===null||m!=="min"&&m!=="max reversed")&&(b[1]===null||m!=="max"&&m!=="min reversed")||(b=void 0,delete c.range,c.autorange=!0,g=!0),g||(m=d("autorange",v=c.getAutorangeDflt(b,f))),m&&(s(d,m,b),h!=="linear"&&h!=="-"||d("rangemode")),c.cleanRange()}},42449:function(i,o,a){var s=a(18783).FROM_BL;i.exports=function(u,c,d){d===void 0&&(d=s[u.constraintoward||"center"]);var f=[u.r2l(u.range[0]),u.r2l(u.range[1])],p=f[0]+(f[1]-f[0])*d;u.range=u._input.range=[u.l2r(p+(f[0]-p)*c),u.l2r(p+(f[1]-p)*c)],u.setScale()}},21994:function(i,o,a){var s=a(39898),u=a(84096).g0,c=a(71828),d=c.numberFormat,f=a(92770),p=c.cleanNumber,h=c.ms2DateTime,g=c.dateTime2ms,b=c.ensureNumber,v=c.isArrayOrTypedArray,m=a(50606),y=m.FP_SAFE,x=m.BADNUM,_=m.LOG_CLIP,w=m.ONEWEEK,S=m.ONEDAY,k=m.ONEHOUR,C=m.ONEMIN,T=m.ONESEC,M=a(41675),O=a(85555),D=O.HOUR_PATTERN,P=O.WEEKDAY_PATTERN;function E(A){return Math.pow(10,A)}function I(A){return A!=null}i.exports=function(A,F){F=F||{};var j=A._id||"x",B=j.charAt(0);function z(X,K){if(X>0)return Math.log(X)/Math.LN10;if(X<=0&&K&&A.range&&A.range.length===2){var ne=A.range[0],ae=A.range[1];return .5*(ne+ae-2*_*Math.abs(ne-ae))}return x}function N(X,K,ne,ae){if((ae||{}).msUTC&&f(X))return+X;var ie=g(X,ne||A.calendar);if(ie===x){if(!f(X))return x;X=+X;var se=Math.floor(10*c.mod(X+.05,1)),pe=Math.round(X-se/10);ie=g(new Date(pe))+se/10}return ie}function R(X,K,ne){return h(X,K,ne||A.calendar)}function q(X){return A._categories[Math.round(X)]}function Y(X){if(I(X)){if(A._categoriesMap===void 0&&(A._categoriesMap={}),A._categoriesMap[X]!==void 0)return A._categoriesMap[X];A._categories.push(typeof X=="number"?String(X):X);var K=A._categories.length-1;return A._categoriesMap[X]=K,K}return x}function L(X){if(A._categoriesMap)return A._categoriesMap[X]}function W(X){var K=L(X);return K!==void 0?K:f(X)?+X:void 0}function H(X){return f(X)?+X:L(X)}function G(X,K,ne){return s.round(ne+K*X,2)}function te(X,K,ne){return(X-ne)/K}var ee=function(X){return f(X)?G(X,A._m,A._b):x},U=function(X){return te(X,A._m,A._b)};if(A.rangebreaks){var Q=B==="y";ee=function(X){if(!f(X))return x;var K=A._rangebreaks.length;if(!K)return G(X,A._m,A._b);var ne=Q;A.range[0]>A.range[1]&&(ne=!ne);for(var ae=ne?-1:1,ie=ae*X,se=0,pe=0;peCe)){se=ie<(ke+Ce)/2?pe:pe+1;break}se=pe+1}var Oe=A._B[se]||0;return isFinite(Oe)?G(X,A._m2,Oe):0},U=function(X){var K=A._rangebreaks.length;if(!K)return te(X,A._m,A._b);for(var ne=0,ae=0;aeA._rangebreaks[ae].pmax&&(ne=ae+1);return te(X,A._m2,A._B[ne])}}A.c2l=A.type==="log"?z:b,A.l2c=A.type==="log"?E:b,A.l2p=ee,A.p2l=U,A.c2p=A.type==="log"?function(X,K){return ee(z(X,K))}:ee,A.p2c=A.type==="log"?function(X){return E(U(X))}:U,["linear","-"].indexOf(A.type)!==-1?(A.d2r=A.r2d=A.d2c=A.r2c=A.d2l=A.r2l=p,A.c2d=A.c2r=A.l2d=A.l2r=b,A.d2p=A.r2p=function(X){return A.l2p(p(X))},A.p2d=A.p2r=U,A.cleanPos=b):A.type==="log"?(A.d2r=A.d2l=function(X,K){return z(p(X),K)},A.r2d=A.r2c=function(X){return E(p(X))},A.d2c=A.r2l=p,A.c2d=A.l2r=b,A.c2r=z,A.l2d=E,A.d2p=function(X,K){return A.l2p(A.d2r(X,K))},A.p2d=function(X){return E(U(X))},A.r2p=function(X){return A.l2p(p(X))},A.p2r=U,A.cleanPos=b):A.type==="date"?(A.d2r=A.r2d=c.identity,A.d2c=A.r2c=A.d2l=A.r2l=N,A.c2d=A.c2r=A.l2d=A.l2r=R,A.d2p=A.r2p=function(X,K,ne){return A.l2p(N(X,0,ne))},A.p2d=A.p2r=function(X,K,ne){return R(U(X),K,ne)},A.cleanPos=function(X){return c.cleanDate(X,x,A.calendar)}):A.type==="category"?(A.d2c=A.d2l=Y,A.r2d=A.c2d=A.l2d=q,A.d2r=A.d2l_noadd=W,A.r2c=function(X){var K=H(X);return K!==void 0?K:A.fraction2r(.5)},A.l2r=A.c2r=b,A.r2l=H,A.d2p=function(X){return A.l2p(A.r2c(X))},A.p2d=function(X){return q(U(X))},A.r2p=A.d2p,A.p2r=U,A.cleanPos=function(X){return typeof X=="string"&&X!==""?X:b(X)}):A.type==="multicategory"&&(A.r2d=A.c2d=A.l2d=q,A.d2r=A.d2l_noadd=W,A.r2c=function(X){var K=W(X);return K!==void 0?K:A.fraction2r(.5)},A.r2c_just_indices=L,A.l2r=A.c2r=b,A.r2l=W,A.d2p=function(X){return A.l2p(A.r2c(X))},A.p2d=function(X){return q(U(X))},A.r2p=A.d2p,A.p2r=U,A.cleanPos=function(X){return Array.isArray(X)||typeof X=="string"&&X!==""?X:b(X)},A.setupMultiCategory=function(X){var K,ne,ae=A._traceIndices,ie=A._matchGroup;if(ie&&A._categories.length===0){for(var se in ie)if(se!==j){var pe=F[M.id2name(se)];ae=ae.concat(pe._traceIndices)}}var ke=[[0,{}],[0,{}]],Ce=[];for(K=0;Kpe[1]&&(ae[se?0:1]=ne)}},A.cleanRange=function(X,K){A._cleanRange(X,K),A.limitRange(X)},A._cleanRange=function(X,K){K||(K={}),X||(X="range");var ne,ae,ie=c.nestedProperty(A,X).get();if(ae=(ae=A.type==="date"?c.dfltRange(A.calendar):B==="y"?O.DFLTRANGEY:A._name==="realaxis"?[0,1]:K.dfltRange||O.DFLTRANGEX).slice(),A.rangemode!=="tozero"&&A.rangemode!=="nonnegative"||(ae[0]=0),ie&&ie.length===2){var se=ie[0]===null,pe=ie[1]===null;for(A.type!=="date"||A.autorange||(ie[0]=c.cleanDate(ie[0],x,A.calendar),ie[1]=c.cleanDate(ie[1],x,A.calendar)),ne=0;ne<2;ne++)if(A.type==="date"){if(!c.isDateTime(ie[ne],A.calendar)){A[X]=ae;break}if(A.r2l(ie[0])===A.r2l(ie[1])){var ke=c.constrain(A.r2l(ie[0]),c.MIN_MS+1e3,c.MAX_MS-1e3);ie[0]=A.l2r(ke-1e3),ie[1]=A.l2r(ke+1e3);break}}else{if(!f(ie[ne])){if(se||pe||!f(ie[1-ne])){A[X]=ae;break}ie[ne]=ie[1-ne]*(ne?10:.1)}if(ie[ne]<-y?ie[ne]=-y:ie[ne]>y&&(ie[ne]=y),ie[0]===ie[1]){var Ce=Math.max(1,Math.abs(1e-6*ie[0]));ie[0]-=Ce,ie[1]+=Ce}}}else c.nestedProperty(A,X).set(ae)},A.setScale=function(X){var K=F._size;if(A.overlaying){var ne=M.getFromId({_fullLayout:F},A.overlaying);A.domain=ne.domain}var ae=X&&A._r?"_r":"range",ie=A.calendar;A.cleanRange(ae);var se,pe,ke=A.r2l(A[ae][0],ie),Ce=A.r2l(A[ae][1],ie),Oe=B==="y";if(Oe?(A._offset=K.t+(1-A.domain[1])*K.h,A._length=K.h*(A.domain[1]-A.domain[0]),A._m=A._length/(ke-Ce),A._b=-A._m*Ce):(A._offset=K.l+A.domain[0]*K.w,A._length=K.w*(A.domain[1]-A.domain[0]),A._m=A._length/(Ce-ke),A._b=-A._m*ke),A._rangebreaks=[],A._lBreaks=0,A._m2=0,A._B=[],A.rangebreaks&&(A._rangebreaks=A.locateBreaks(Math.min(ke,Ce),Math.max(ke,Ce)),A._rangebreaks.length)){for(se=0;seCe&&(Pe=!Pe),Pe&&A._rangebreaks.reverse();var ce=Pe?-1:1;for(A._m2=ce*A._length/(Math.abs(Ce-ke)-A._lBreaks),A._B.push(-A._m2*(Oe?Ce:ke)),se=0;seae&&(ae+=7,ieae&&(ae+=24,ie=ne&&ie=ne&&X=Ae.min&&(meAe.max&&(Ae.max=xe),ye=!1)}ye&&pe.push({min:me,max:xe})}};for(ne=0;neg.duration?(function(){for(var D={},P=0;P rect").call(d.setTranslate,0,0).call(d.setScale,1,1),C.plot.call(d.setTranslate,T._offset,M._offset).call(d.setScale,1,1);var O=C.plot.selectAll(".scatterlayer .trace");O.selectAll(".point").call(d.setPointGroupScale,1,1),O.selectAll(".textpoint").call(d.setTextPointsScale,1,1),O.call(d.hideOutsideRangePoints,C)}function k(C,T){var M=C.plotinfo,O=M.xaxis,D=M.yaxis,P=O._length,E=D._length,I=!!C.xr1,A=!!C.yr1,F=[];if(I){var j=c.simpleMap(C.xr0,O.r2l),B=c.simpleMap(C.xr1,O.r2l),z=j[1]-j[0],N=B[1]-B[0];F[0]=(j[0]*(1-T)+T*B[0]-j[0])/(j[1]-j[0])*P,F[2]=P*(1-T+T*N/z),O.range[0]=O.l2r(j[0]*(1-T)+T*B[0]),O.range[1]=O.l2r(j[1]*(1-T)+T*B[1])}else F[0]=0,F[2]=P;if(A){var R=c.simpleMap(C.yr0,D.r2l),q=c.simpleMap(C.yr1,D.r2l),Y=R[1]-R[0],L=q[1]-q[0];F[1]=(R[1]*(1-T)+T*q[1]-R[1])/(R[0]-R[1])*E,F[3]=E*(1-T+T*L/Y),D.range[0]=O.l2r(R[0]*(1-T)+T*q[0]),D.range[1]=D.l2r(R[1]*(1-T)+T*q[1])}else F[1]=0,F[3]=E;f.drawOne(p,O,{skipTitle:!0}),f.drawOne(p,D,{skipTitle:!0}),f.redrawComponents(p,[O._id,D._id]);var W=I?P/F[2]:1,H=A?E/F[3]:1,G=I?F[0]:0,te=A?F[1]:0,ee=I?F[0]/F[2]*P:0,U=A?F[1]/F[3]*E:0,Q=O._offset-ee,V=D._offset-U;M.clipRect.call(d.setTranslate,G,te).call(d.setScale,1/W,1/H),M.plot.call(d.setTranslate,Q,V).call(d.setScale,W,H),d.setPointGroupScale(M.zoomScalePts,1/W,1/H),d.setTextPointsScale(M.zoomScaleTxt,1/W,1/H)}f.redrawComponents(p)}},951:function(i,o,a){var s=a(73972).traceIs,u=a(4322);function c(f){return{v:"x",h:"y"}[f.orientation||"v"]}function d(f,p){var h=c(f),g=s(f,"box-violin"),b=s(f._fullInput||{},"candlestick");return g&&!b&&p===h&&f[h]===void 0&&f[h+"0"]===void 0}i.exports=function(f,p,h,g){h("autotypenumbers",g.autotypenumbersDflt),h("type",(g.splomStash||{}).type)==="-"&&(function(b,v){if(b.type==="-"){var m,y=b._id,x=y.charAt(0);y.indexOf("scene")!==-1&&(y=x);var _=function(D,P,E){for(var I=0;I0&&(A["_"+E+"axes"]||{})[P]||(A[E+"axis"]||E)===P&&(d(A,E)||(A[E]||[]).length||A[E+"0"]))return A}}(v,y,x);if(_)if(_.type!=="histogram"||x!=={v:"y",h:"x"}[_.orientation||"v"]){var w=x+"calendar",S=_[w],k={noMultiCategory:!s(_,"cartesian")||s(_,"noMultiCategory")};if(_.type==="box"&&_._hasPreCompStats&&x==={h:"x",v:"y"}[_.orientation||"v"]&&(k.noMultiCategory=!0),k.autotypenumbers=b.autotypenumbers,d(_,x)){var C=c(_),T=[];for(m=0;m0?".":"")+m;u.isPlainObject(y)?p(y,g,x,v+1):g(x,m,y)}})}o.manageCommandObserver=function(h,g,b,v){var m={},y=!0;g&&g._commandObserver&&(m=g._commandObserver),m.cache||(m.cache={}),m.lookupTable={};var x=o.hasSimpleAPICommandBindings(h,b,m.lookupTable);if(g&&g._commandObserver){if(x)return m;if(g._commandObserver.remove)return g._commandObserver.remove(),g._commandObserver=null,m}if(x){c(h,x,m.cache),m.check=function(){if(y){var S=c(h,x,m.cache);return S.changed&&v&&m.lookupTable[S.value]!==void 0&&(m.disable(),Promise.resolve(v({value:S.value,type:x.type,prop:x.prop,traces:x.traces,index:m.lookupTable[S.value]})).then(m.enable,m.enable)),S.changed}};for(var _=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],w=0;w<_.length;w++)h._internalOn(_[w],m.check);m.remove=function(){for(var S=0;S<_.length;S++)h._removeInternalListener(_[S],m.check)}}else u.log("Unable to automatically bind plot updates to API command"),m.lookupTable={},m.remove=function(){};return m.disable=function(){y=!1},m.enable=function(){y=!0},g&&(g._commandObserver=m),m},o.hasSimpleAPICommandBindings=function(h,g,b){var v,m,y=g.length;for(v=0;v=W.width-20?(te["text-anchor"]="start",te.x=5):(te["text-anchor"]="end",te.x=W._paper.attr("width")-7),H.attr(te);var ee=H.select(".js-link-to-tool"),U=H.select(".js-link-spacer"),Q=H.select(".js-sourcelinks");L._context.showSources&&L._context.showSources(L),L._context.showLink&&function(V,X){X.text("");var K=X.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(V._context.linkText+" »");if(V._context.sendData)K.on("click",function(){T.sendDataToCloud(V)});else{var ne=window.location.pathname.split("/"),ae=window.location.search;K.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+ne[2].split(".")[0]+"/"+ne[1]+ae})}}(L,ee),U.text(ee.text()&&Q.text()?" - ":"")}},T.sendDataToCloud=function(L){var W=(window.PLOTLYENV||{}).BASE_URL||L._context.plotlyServerURL;if(W){L.emit("plotly_beforeexport");var H=s.select(L).append("div").attr("id","hiddenform").style("display","none"),G=H.append("form").attr({action:W+"/external",method:"post",target:"_blank"});return G.append("input").attr({type:"text",name:"data"}).node().value=T.graphJson(L,!1,"keepdata"),G.node().submit(),H.remove(),L.emit("plotly_afterexport"),!1}};var D=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],P=["year","month","dayMonth","dayMonthYear"];function E(L,W){var H=L._context.locale;H||(H="en-US");var G=!1,te={};function ee(ne){for(var ae=!0,ie=0;ie1&&Z.length>1){for(f.getComponentMethod("grid","sizeDefaults")(U,ee),te=0;te15&&Z.length>15&&ee.shapes.length===0&&ee.images.length===0,T.linkSubplots(V,ee,Q,G),T.cleanPlot(V,ee,Q,G);var me=!(!G._has||!G._has("gl2d")),xe=!(!ee._has||!ee._has("gl2d")),ye=!(!G._has||!G._has("cartesian"))||me,Te=!(!ee._has||!ee._has("cartesian"))||xe;ye&&!Te?G._bgLayer.remove():Te&&!ye&&(ee._shouldCreateBgLayer=!0),G._zoomlayer&&!L._dragging&&y({_fullLayout:G}),function(Ie,Ne){var ze,qe=[];Ne.meta&&(ze=Ne._meta={meta:Ne.meta,layout:{meta:Ne.meta}});for(var We=0;We0){var X=1-2*U;G=Math.round(X*G),te=Math.round(X*te)}}var K=T.layoutAttributes.width.min,ne=T.layoutAttributes.height.min;G1,ie=!W.height&&Math.abs(H.height-te)>1;(ie||ae)&&(ae&&(H.width=G),ie&&(H.height=te)),L._initialAutoSize||(L._initialAutoSize={width:G,height:te}),T.sanitizeMargins(H)},T.supplyLayoutModuleDefaults=function(L,W,H,G){var te,ee,U,Q=f.componentsRegistry,V=W._basePlotModules,X=f.subplotsRegistry.cartesian;for(te in Q)(U=Q[te]).includeBasePlot&&U.includeBasePlot(L,W);for(var K in V.length||V.push(X),W._has("cartesian")&&(f.getComponentMethod("grid","contentDefaults")(L,W),X.finalizeSubplots(L,W)),W._subplots)W._subplots[K].sort(g.subplotSort);for(ee=0;ee1&&(H.l/=ke,H.r/=ke)}if(ae){var Ce=(H.t+H.b)/ae;Ce>1&&(H.t/=Ce,H.b/=Ce)}var Oe=H.xl!==void 0?H.xl:H.x,Pe=H.xr!==void 0?H.xr:H.x,ce=H.yt!==void 0?H.yt:H.y,we=H.yb!==void 0?H.yb:H.y;ie[W]={l:{val:Oe,size:H.l+pe},r:{val:Pe,size:H.r+pe},b:{val:we,size:H.b+pe},t:{val:ce,size:H.t+pe}},se[W]=1}else delete ie[W],delete se[W];if(!G._replotting)return T.doAutoMargin(L)}},T.doAutoMargin=function(L){var W=L._fullLayout,H=W.width,G=W.height;W._size||(W._size={}),B(W);var te=W._size,ee=W.margin,U={t:0,b:0,l:0,r:0},Q=g.extendFlat({},te),V=ee.l,X=ee.r,K=ee.t,ne=ee.b,ae=W._pushmargin,ie=W._pushmarginIds,se=W.minreducedwidth,pe=W.minreducedheight;if(ee.autoexpand!==!1){for(var ke in ae)ie[ke]||delete ae[ke];var Ce=L._fullLayout._reservedMargin;for(var Oe in Ce)for(var Pe in Ce[Oe]){var ce=Ce[Oe][Pe];U[Pe]=Math.max(U[Pe],ce)}for(var we in ae.base={l:{val:0,size:V},r:{val:1,size:X},t:{val:1,size:K},b:{val:0,size:ne}},U){var Z=0;for(var re in ae)re!=="base"&&d(ae[re][we].size)&&(Z=ae[re][we].size>Z?ae[re][we].size:Z);var de=Math.max(0,ee[we]-Z);U[we]=Math.max(0,U[we]-de)}for(var _e in ae){var ue=ae[_e].l||{},me=ae[_e].b||{},xe=ue.val,ye=ue.size,Te=me.val,Ae=me.size,Le=H-U.r-U.l,Re=G-U.t-U.b;for(var Ie in ae){if(d(ye)&&ae[Ie].r){var Ne=ae[Ie].r.val,ze=ae[Ie].r.size;if(Ne>xe){var qe=(ye*Ne+(ze-Le)*xe)/(Ne-xe),We=(ze*(1-xe)+(ye-Le)*(1-Ne))/(Ne-xe);qe+We>V+X&&(V=qe,X=We)}}if(d(Ae)&&ae[Ie].t){var Ge=ae[Ie].t.val,ot=ae[Ie].t.size;if(Ge>Te){var Je=(Ae*Ge+(ot-Re)*Te)/(Ge-Te),st=(ot*(1-Te)+(Ae-Re)*(1-Ge))/(Ge-Te);Je+st>ne+K&&(ne=Je,K=st)}}}}}var bt=g.constrain(H-ee.l-ee.r,2,se),Be=g.constrain(G-ee.t-ee.b,2,pe),je=Math.max(0,H-bt),tt=Math.max(0,G-Be);if(je){var it=(V+X)/je;it>1&&(V/=it,X/=it)}if(tt){var St=(ne+K)/tt;St>1&&(ne/=St,K/=St)}if(te.l=Math.round(V)+U.l,te.r=Math.round(X)+U.r,te.t=Math.round(K)+U.t,te.b=Math.round(ne)+U.b,te.p=Math.round(ee.pad),te.w=Math.round(H)-te.l-te.r,te.h=Math.round(G)-te.t-te.b,!W._replotting&&(T.didMarginChange(Q,te)||function(ct){if("_redrawFromAutoMarginCount"in ct._fullLayout)return!1;var ht=m.list(ct,"",!0);for(var $t in ht)if(ht[$t].autoshift||ht[$t].shift)return!0;return!1}(L))){"_redrawFromAutoMarginCount"in W?W._redrawFromAutoMarginCount++:W._redrawFromAutoMarginCount=1;var et=3*(1+Object.keys(ie).length);if(W._redrawFromAutoMarginCount0&&(L._transitioningWithDuration=!0),L._transitionData._interruptCallbacks.push(function(){G=!0}),H.redraw&&L._transitionData._interruptCallbacks.push(function(){return f.call("redraw",L)}),L._transitionData._interruptCallbacks.push(function(){L.emit("plotly_transitioninterrupted",[])});var Q=0,V=0;function X(){return Q++,function(){var K;V++,G||V!==Q||(K=U,L._transitionData&&(function(ne){if(ne)for(;ne.length;)ne.shift()}(L._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(H.redraw)return f.call("redraw",L)}).then(function(){L._transitioning=!1,L._transitioningWithDuration=!1,L.emit("plotly_transitioned",[])}).then(K)))}}H.runFn(X),setTimeout(X())})}],ee=g.syncOrAsync(te,L);return ee&&ee.then||(ee=Promise.resolve()),ee.then(function(){return L})}T.didMarginChange=function(L,W){for(var H=0;H1)return!0}return!1},T.graphJson=function(L,W,H,G,te,ee){(te&&W&&!L._fullData||te&&!W&&!L._fullLayout)&&T.supplyDefaults(L);var U=te?L._fullData:L.data,Q=te?L._fullLayout:L.layout,V=(L._transitionData||{})._frames;function X(ae,ie){if(typeof ae=="function")return ie?"_function_":null;if(g.isPlainObject(ae)){var se,pe={};return Object.keys(ae).sort().forEach(function(ke){if(["_","["].indexOf(ke.charAt(0))===-1)if(typeof ae[ke]!="function"){if(H==="keepdata"){if(ke.substr(ke.length-3)==="src")return}else if(H==="keepstream"){if(typeof(se=ae[ke+"src"])=="string"&&se.indexOf(":")>0&&!g.isPlainObject(ae.stream))return}else if(H!=="keepall"&&typeof(se=ae[ke+"src"])=="string"&&se.indexOf(":")>0)return;pe[ke]=X(ae[ke],ie)}else ie&&(pe[ke]="_function")}),pe}return Array.isArray(ae)?ae.map(function(ke){return X(ke,ie)}):g.isTypedArray(ae)?g.simpleMap(ae,g.identity):g.isJSDate(ae)?g.ms2DateTimeLocal(+ae):ae}var K={data:(U||[]).map(function(ae){var ie=X(ae);return W&&delete ie.fit,ie})};if(!W&&(K.layout=X(Q),te)){var ne=Q._size;K.layout.computed={margin:{b:ne.b,l:ne.l,r:ne.r,t:ne.t}}}return V&&(K.frames=X(V)),ee&&(K.config=X(L._context,!0)),G==="object"?K:JSON.stringify(K)},T.modifyFrames=function(L,W){var H,G,te,ee=L._transitionData._frames,U=L._transitionData._frameHash;for(H=0;H=0;ee--)if(we[ee].enabled){H._indexToPoints=we[ee]._indexToPoints;break}G&&G.calc&&(ce=G.calc(L,H))}Array.isArray(ce)&&ce[0]||(ce=[{x:v,y:v}]),ce[0].t||(ce[0].t={}),ce[0].trace=H,X[Oe]=ce}}for(q(U,Q,V),te=0;te0){for(var p=[],h=0;h=D&&(E.min=0,I.min=0,A.min=0,_.aaxis&&delete _.aaxis.min,_.baxis&&delete _.baxis.min,_.caxis&&delete _.caxis.min)}function x(_,w,S,k){var C=v[w._name];function T(I,A){return c.coerce(_,w,C,I,A)}T("uirevision",k.uirevision),w.type="linear";var M=T("color"),O=M!==C.color.dflt?M:S.font.color,D=w._name.charAt(0).toUpperCase(),P="Component "+D,E=T("title.text",P);w._hovertitle=E===P?E:D,c.coerceFont(T,"title.font",{family:S.font.family,size:c.bigFont(S.font.size),color:O}),T("min"),g(_,w,T,"linear"),p(_,w,T,"linear"),f(_,w,T,"linear"),h(_,w,T,{outerTicks:!0}),T("showticklabels")&&(c.coerceFont(T,"tickfont",{family:S.font.family,size:S.font.size,color:O}),T("tickangle"),T("tickformat")),b(_,w,T,{dfltColor:M,bgColor:S.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:C}),T("hoverformat"),T("layer")}i.exports=function(_,w,S){d(_,w,S,{type:"ternary",attributes:v,handleDefaults:y,font:w.font,paper_bgcolor:w.paper_bgcolor})}},64380:function(i,o,a){var s=a(39898),u=a(84267),c=a(73972),d=a(71828),f=d.strTranslate,p=d._,h=a(7901),g=a(91424),b=a(21994),v=a(1426).extendFlat,m=a(74875),y=a(89298),x=a(28569),_=a(30211),w=a(64505),S=w.freeMode,k=w.rectMode,C=a(92998),T=a(47322).prepSelect,M=a(47322).selectOnClick,O=a(47322).clearOutline,D=a(47322).clearSelectionsCache,P=a(85555);function E(q,Y){this.id=q.id,this.graphDiv=q.graphDiv,this.init(Y),this.makeFramework(Y),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}i.exports=E;var I=E.prototype;I.init=function(q){this.container=q._ternarylayer,this.defs=q._defs,this.layoutId=q._uid,this.traceHash={},this.layers={}},I.plot=function(q,Y){var L=this,W=Y[L.id],H=Y._size;L._hasClipOnAxisFalse=!1;for(var G=0;GA*ie?H=(G=ie)*A:G=(H=ae)/A,te=K*H/ae,ee=ne*G/ie,L=Y.l+Y.w*V-H/2,W=Y.t+Y.h*(1-X)-G/2,U.x0=L,U.y0=W,U.w=H,U.h=G,U.sum=se,U.xaxis={type:"linear",range:[pe+2*Ce-se,se-pe-2*ke],domain:[V-te/2,V+te/2],_id:"x"},b(U.xaxis,U.graphDiv._fullLayout),U.xaxis.setScale(),U.xaxis.isPtWithinRange=function(xe){return xe.a>=U.aaxis.range[0]&&xe.a<=U.aaxis.range[1]&&xe.b>=U.baxis.range[1]&&xe.b<=U.baxis.range[0]&&xe.c>=U.caxis.range[1]&&xe.c<=U.caxis.range[0]},U.yaxis={type:"linear",range:[pe,se-ke-Ce],domain:[X-ee/2,X+ee/2],_id:"y"},b(U.yaxis,U.graphDiv._fullLayout),U.yaxis.setScale(),U.yaxis.isPtWithinRange=function(){return!0};var Oe=U.yaxis.domain[0],Pe=U.aaxis=v({},q.aaxis,{range:[pe,se-ke-Ce],side:"left",tickangle:(+q.aaxis.tickangle||0)-30,domain:[Oe,Oe+ee*A],anchor:"free",position:0,_id:"y",_length:H});b(Pe,U.graphDiv._fullLayout),Pe.setScale();var ce=U.baxis=v({},q.baxis,{range:[se-pe-Ce,ke],side:"bottom",domain:U.xaxis.domain,anchor:"free",position:0,_id:"x",_length:H});b(ce,U.graphDiv._fullLayout),ce.setScale();var we=U.caxis=v({},q.caxis,{range:[se-pe-ke,Ce],side:"right",tickangle:(+q.caxis.tickangle||0)+30,domain:[Oe,Oe+ee*A],anchor:"free",position:0,_id:"y",_length:H});b(we,U.graphDiv._fullLayout),we.setScale();var Z="M"+L+","+(W+G)+"h"+H+"l-"+H/2+",-"+G+"Z";U.clipDef.select("path").attr("d",Z),U.layers.plotbg.select("path").attr("d",Z);var re="M0,"+G+"h"+H+"l-"+H/2+",-"+G+"Z";U.clipDefRelative.select("path").attr("d",re);var de=f(L,W);U.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",de),U.clipDefRelative.select("path").attr("transform",null);var _e=f(L-ce._offset,W+G);U.layers.baxis.attr("transform",_e),U.layers.bgrid.attr("transform",_e);var ue=f(L+H/2,W)+"rotate(30)"+f(0,-Pe._offset);U.layers.aaxis.attr("transform",ue),U.layers.agrid.attr("transform",ue);var me=f(L+H/2,W)+"rotate(-30)"+f(0,-we._offset);U.layers.caxis.attr("transform",me),U.layers.cgrid.attr("transform",me),U.drawAxes(!0),U.layers.aline.select("path").attr("d",Pe.showline?"M"+L+","+(W+G)+"l"+H/2+",-"+G:"M0,0").call(h.stroke,Pe.linecolor||"#000").style("stroke-width",(Pe.linewidth||0)+"px"),U.layers.bline.select("path").attr("d",ce.showline?"M"+L+","+(W+G)+"h"+H:"M0,0").call(h.stroke,ce.linecolor||"#000").style("stroke-width",(ce.linewidth||0)+"px"),U.layers.cline.select("path").attr("d",we.showline?"M"+(L+H/2)+","+W+"l"+H/2+","+G:"M0,0").call(h.stroke,we.linecolor||"#000").style("stroke-width",(we.linewidth||0)+"px"),U.graphDiv._context.staticPlot||U.initInteractions(),g.setClipUrl(U.layers.frontplot,U._hasClipOnAxisFalse?null:U.clipId,U.graphDiv)},I.drawAxes=function(q){var Y=this,L=Y.graphDiv,W=Y.id.substr(7)+"title",H=Y.layers,G=Y.aaxis,te=Y.baxis,ee=Y.caxis;if(Y.drawAx(G),Y.drawAx(te),Y.drawAx(ee),q){var U=Math.max(G.showticklabels?G.tickfont.size/2:0,(ee.showticklabels?.75*ee.tickfont.size:0)+(ee.ticks==="outside"?.87*ee.ticklen:0)),Q=(te.showticklabels?te.tickfont.size:0)+(te.ticks==="outside"?te.ticklen:0)+3;H["a-title"]=C.draw(L,"a"+W,{propContainer:G,propName:Y.id+".aaxis.title",placeholder:p(L,"Click to enter Component A title"),attributes:{x:Y.x0+Y.w/2,y:Y.y0-G.title.font.size/3-U,"text-anchor":"middle"}}),H["b-title"]=C.draw(L,"b"+W,{propContainer:te,propName:Y.id+".baxis.title",placeholder:p(L,"Click to enter Component B title"),attributes:{x:Y.x0-Q,y:Y.y0+Y.h+.83*te.title.font.size+Q,"text-anchor":"middle"}}),H["c-title"]=C.draw(L,"c"+W,{propContainer:ee,propName:Y.id+".caxis.title",placeholder:p(L,"Click to enter Component C title"),attributes:{x:Y.x0+Y.w+Q,y:Y.y0+Y.h+.83*ee.title.font.size+Q,"text-anchor":"middle"}})}},I.drawAx=function(q){var Y,L=this,W=L.graphDiv,H=q._name,G=H.charAt(0),te=q._id,ee=L.layers[H],U=G+"tickLayout",Q=(Y=q).ticks+String(Y.ticklen)+String(Y.showticklabels);L[U]!==Q&&(ee.selectAll("."+te+"tick").remove(),L[U]=Q),q.setScale();var V=y.calcTicks(q),X=y.clipEnds(q,V),K=y.makeTransTickFn(q),ne=y.getTickSigns(q)[2],ae=d.deg2rad(30),ie=ne*(q.linewidth||1)/2,se=ne*q.ticklen,pe=L.w,ke=L.h,Ce=G==="b"?"M0,"+ie+"l"+Math.sin(ae)*se+","+Math.cos(ae)*se:"M"+ie+",0l"+Math.cos(ae)*se+","+-Math.sin(ae)*se,Oe={a:"M0,0l"+ke+",-"+pe/2,b:"M0,0l-"+pe/2+",-"+ke,c:"M0,0l-"+ke+","+pe/2}[G];y.drawTicks(W,q,{vals:q.ticks==="inside"?X:V,layer:ee,path:Ce,transFn:K,crisp:!1}),y.drawGrid(W,q,{vals:X,layer:L.layers[G+"grid"],path:Oe,transFn:K,crisp:!1}),y.drawLabels(W,q,{vals:V,layer:ee,transFn:K,labelFns:y.makeLabelFns(q,0,30)})};var F=P.MINZOOM/2+.87,j="m-0.87,.5h"+F+"v3h-"+(F+5.2)+"l"+(F/2+2.6)+",-"+(.87*F+4.5)+"l2.6,1.5l-"+F/2+","+.87*F+"Z",B="m0.87,.5h-"+F+"v3h"+(F+5.2)+"l-"+(F/2+2.6)+",-"+(.87*F+4.5)+"l-2.6,1.5l"+F/2+","+.87*F+"Z",z="m0,1l"+F/2+","+.87*F+"l2.6,-1.5l-"+(F/2+2.6)+",-"+(.87*F+4.5)+"l-"+(F/2+2.6)+","+(.87*F+4.5)+"l2.6,1.5l"+F/2+",-"+.87*F+"Z",N=!0;function R(q){s.select(q).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}I.clearOutline=function(){D(this.dragOptions),O(this.dragOptions.gd)},I.initInteractions=function(){var q,Y,L,W,H,G,te,ee,U,Q,V,X,K=this,ne=K.layers.plotbg.select("path").node(),ae=K.graphDiv,ie=ae._fullLayout._zoomlayer;function se(re){var de={};return de[K.id+".aaxis.min"]=re.a,de[K.id+".baxis.min"]=re.b,de[K.id+".caxis.min"]=re.c,de}function pe(re,de){var _e=ae._fullLayout.clickmode;R(ae),re===2&&(ae.emit("plotly_doubleclick",null),c.call("_guiRelayout",ae,se({a:0,b:0,c:0}))),_e.indexOf("select")>-1&&re===1&&M(de,ae,[K.xaxis],[K.yaxis],K.id,K.dragOptions),_e.indexOf("event")>-1&&_.click(ae,de,K.id)}function ke(re,de){return 1-de/K.h}function Ce(re,de){return 1-(re+(K.h-de)/Math.sqrt(3))/K.w}function Oe(re,de){return(re-(K.h-de)/Math.sqrt(3))/K.w}function Pe(re,de){var _e=L+re*q,ue=W+de*Y,me=Math.max(0,Math.min(1,ke(0,W),ke(0,ue))),xe=Math.max(0,Math.min(1,Ce(L,W),Ce(_e,ue))),ye=Math.max(0,Math.min(1,Oe(L,W),Oe(_e,ue))),Te=(me/2+ye)*K.w,Ae=(1-me/2-xe)*K.w,Le=(Te+Ae)/2,Re=Ae-Te,Ie=(1-me)*K.h,Ne=Ie-Re/A;Re.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),X.transition().style("opacity",1).duration(200),Q=!0),ae.emit("plotly_relayouting",se(te))}function ce(){R(ae),te!==H&&(c.call("_guiRelayout",ae,se(te)),N&&ae.data&&ae._context.showTips&&(d.notifier(p(ae,"Double-click to zoom back out"),"long"),N=!1))}function we(re,de){var _e=re/K.xaxis._m,ue=de/K.yaxis._m,me=[(te={a:H.a-ue,b:H.b+(_e+ue)/2,c:H.c-(_e-ue)/2}).a,te.b,te.c].sort(d.sorterAsc),xe=me.indexOf(te.a),ye=me.indexOf(te.b),Te=me.indexOf(te.c);me[0]<0&&(me[1]+me[0]/2<0?(me[2]+=me[0]+me[1],me[0]=me[1]=0):(me[2]+=me[0]/2,me[1]+=me[0]/2,me[0]=0),te={a:me[xe],b:me[ye],c:me[Te]},de=(H.a-te.a)*K.yaxis._m,re=(H.c-te.c-H.b+te.b)*K.xaxis._m);var Ae=f(K.x0+re,K.y0+de);K.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Ae);var Le=f(-re,-de);K.clipDefRelative.select("path").attr("transform",Le),K.aaxis.range=[te.a,K.sum-te.b-te.c],K.baxis.range=[K.sum-te.a-te.c,te.b],K.caxis.range=[K.sum-te.a-te.b,te.c],K.drawAxes(!1),K._hasClipOnAxisFalse&&K.plotContainer.select(".scatterlayer").selectAll(".trace").call(g.hideOutsideRangePoints,K),ae.emit("plotly_relayouting",se(te))}function Z(){c.call("_guiRelayout",ae,se(te))}this.dragOptions={element:ne,gd:ae,plotinfo:{id:K.id,domain:ae._fullLayout[K.id].domain,xaxis:K.xaxis,yaxis:K.yaxis},subplot:K.id,prepFn:function(re,de,_e){K.dragOptions.xaxes=[K.xaxis],K.dragOptions.yaxes=[K.yaxis],q=ae._fullLayout._invScaleX,Y=ae._fullLayout._invScaleY;var ue=K.dragOptions.dragmode=ae._fullLayout.dragmode;S(ue)?K.dragOptions.minDrag=1:K.dragOptions.minDrag=void 0,ue==="zoom"?(K.dragOptions.moveFn=Pe,K.dragOptions.clickFn=pe,K.dragOptions.doneFn=ce,function(me,xe,ye){var Te=ne.getBoundingClientRect();L=xe-Te.left,W=ye-Te.top,ae._fullLayout._calcInverseTransform(ae);var Ae=ae._fullLayout._invTransform,Le=d.apply3DTransform(Ae)(L,W);L=Le[0],W=Le[1],H={a:K.aaxis.range[0],b:K.baxis.range[1],c:K.caxis.range[1]},te=H,G=K.aaxis.range[1]-H.a,ee=u(K.graphDiv._fullLayout[K.id].bgcolor).getLuminance(),U="M0,"+K.h+"L"+K.w/2+", 0L"+K.w+","+K.h+"Z",Q=!1,V=ie.append("path").attr("class","zoombox").attr("transform",f(K.x0,K.y0)).style({fill:ee>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",U),X=ie.append("path").attr("class","zoombox-corners").attr("transform",f(K.x0,K.y0)).style({fill:h.background,stroke:h.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),K.clearOutline(ae)}(0,de,_e)):ue==="pan"?(K.dragOptions.moveFn=we,K.dragOptions.clickFn=pe,K.dragOptions.doneFn=Z,H={a:K.aaxis.range[0],b:K.baxis.range[1],c:K.caxis.range[1]},te=H,K.clearOutline(ae)):(k(ue)||S(ue))&&T(re,de,_e,K.dragOptions,ue)}},ne.onmousemove=function(re){_.hover(ae,re,K.id),ae._fullLayout._lasthover=ne,ae._fullLayout._hoversubplot=K.id},ne.onmouseout=function(re){ae._dragging||x.unhover(ae,re)},x.init(this.dragOptions)}},73972:function(i,o,a){var s=a(47769),u=a(64213),c=a(75138),d=a(41965),f=a(24401).addStyleRule,p=a(1426),h=a(9012),g=a(10820),b=p.extendFlat,v=p.extendDeepAll;function m(M){var O=M.name,D=M.categories,P=M.meta;if(o.modules[O])s.log("Type "+O+" already registered");else{o.subplotsRegistry[M.basePlotModule.name]||function(N){var R=N.name;if(o.subplotsRegistry[R])s.log("Plot type "+R+" already registered.");else for(var q in w(N),o.subplotsRegistry[R]=N,o.componentsRegistry)C(q,N.name)}(M.basePlotModule);for(var E={},I=0;I-1&&(x[w[g]].title={text:""});for(g=0;g")!==-1?"":I.html(F).text()});return I.remove(),A}(P)).replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(g,"'"),u.isIE()&&(P=(P=(P=P.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("#$2")')).replace(/(\\')/gi,'"')),P}},75341:function(i,o,a){var s=a(71828);i.exports=function(u,c){for(var d=0;dA+E||!s(I))}for(var j=0;jg))return f}return p!==void 0?p:d.dflt},o.coerceColor=function(d,f,p){return u(f).isValid()?f:p!==void 0?p:d.dflt},o.coerceEnumerated=function(d,f,p){return d.coerceNumber&&(f=+f),d.values.indexOf(f)!==-1?f:p!==void 0?p:d.dflt},o.getValue=function(d,f){var p;return Array.isArray(d)?f0?se+=pe:S<0&&(se-=pe)}return se}function ee(ie){var se=S,pe=ie.b,ke=te(ie);return s.inbox(pe-se,ke-se,F+(ke-se)/(ke-pe)-1)}var U=v[k+"a"],Q=v[C+"a"];O=Math.abs(U.r2c(U.range[1])-U.r2c(U.range[0]));var V=s.getDistanceFunction(x,T,M,function(ie){return(T(ie)+M(ie))/2});if(s.getClosest(D,V,v),v.index!==!1&&D[v.index].p!==h){z||(L=function(ie){return Math.min(N(ie),ie.p-E.bargroupwidth/2)},W=function(ie){return Math.max(R(ie),ie.p+E.bargroupwidth/2)});var X=D[v.index],K=P.base?X.b+X.s:X.s;v[C+"0"]=v[C+"1"]=Q.c2p(X[C],!0),v[C+"LabelVal"]=K;var ne=E.extents[E.extents.round(X.p)];v[k+"0"]=U.c2p(I?L(X):ne[0],!0),v[k+"1"]=U.c2p(I?W(X):ne[1],!0);var ae=X.orig_p!==void 0;return v[k+"LabelVal"]=ae?X.orig_p:X.p,v.labelLabel=p(U,v[k+"LabelVal"],P[k+"hoverformat"]),v.valueLabel=p(Q,v[C+"LabelVal"],P[C+"hoverformat"]),v.baseLabel=p(Q,X.b,P[C+"hoverformat"]),v.spikeDistance=(function(ie){var se=S,pe=ie.b,ke=te(ie);return s.inbox(pe-se,ke-se,j+(ke-se)/(ke-pe)-1)}(X)+function(ie){return H(N(ie),R(ie),j)}(X))/2,v[k+"Spike"]=U.c2p(X.p,!0),d(X,P,v),v.hovertemplate=P.hovertemplate,v}}function b(v,m){var y=m.mcc||v.marker.color,x=m.mlcc||v.marker.line.color,_=f(v,m);return c.opacity(y)?y:c.opacity(x)&&_?x:void 0}i.exports={hoverPoints:function(v,m,y,x,_){var w=g(v,m,y,x,_);if(w){var S=w.cd,k=S[0].trace,C=S[w.index];return w.color=b(k,C),u.getComponentMethod("errorbars","hoverInfo")(C,k,w),[w]}},hoverOnBars:g,getTraceColor:b}},60822:function(i,o,a){i.exports={attributes:a(1486),layoutAttributes:a(43641),supplyDefaults:a(90769).supplyDefaults,crossTraceDefaults:a(90769).crossTraceDefaults,supplyLayoutDefaults:a(13957),calc:a(92290),crossTraceCalc:a(11661).crossTraceCalc,colorbar:a(4898),arraysToCalcdata:a(75341),plot:a(17295).plot,style:a(16688).style,styleOnSelect:a(16688).styleOnSelect,hoverPoints:a(95423).hoverPoints,eventData:a(58065),selectPoints:a(81974),moduleType:"trace",name:"bar",basePlotModule:a(93612),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}},43641:function(i){i.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},13957:function(i,o,a){var s=a(73972),u=a(89298),c=a(71828),d=a(43641);i.exports=function(f,p,h){function g(k,C){return c.coerce(f,p,d,k,C)}for(var b=!1,v=!1,m=!1,y={},x=g("barmode"),_=0;_0}function I(j){return j==="auto"?0:j}function A(j,B){var z=Math.PI/180*B,N=Math.abs(Math.sin(z)),R=Math.abs(Math.cos(z));return{x:j.width*R+j.height*N,y:j.width*N+j.height*R}}function F(j,B,z,N,R,q){var Y=!!q.isHorizontal,L=!!q.constrained,W=q.angle||0,H=q.anchor||"end",G=H==="end",te=H==="start",ee=((q.leftToRight||0)+1)/2,U=1-ee,Q=R.width,V=R.height,X=Math.abs(B-j),K=Math.abs(N-z),ne=X>2*T&&K>2*T?T:0;X-=2*ne,K-=2*ne;var ae=I(W);W!=="auto"||Q<=X&&V<=K||!(Q>X||V>K)||(Q>K||V>X)&&Q.01?ye:function(Re,Ie,Ne){return Ne&&Re===Ie?Re:Math.abs(Re-Ie)>=2?ye(Re):Re>Ie?Math.ceil(Re):Math.floor(Re)};re=Te(re,de,ne),de=Te(de,re,ne),_e=Te(_e,ue,!ne),ue=Te(ue,_e,!ne)}var Ae=P(c.ensureSingle(we,"path"),W,R,q);if(Ae.style("vector-effect",H?"none":"non-scaling-stroke").attr("d",isNaN((de-re)*(ue-_e))||me&&j._context.staticPlot?"M0,0Z":"M"+re+","+_e+"V"+ue+"H"+de+"V"+_e+"Z").call(p.setClipUrl,B.layerClipId,j),!W.uniformtext.mode&&ae){var Le=p.makePointStyleFns(U);p.singlePointStyle(Ce,Ae,U,Le,j)}(function(Re,Ie,Ne,ze,qe,We,Ge,ot,Je,st,bt){var Be,je=Ie.xaxis,tt=Ie.yaxis,it=Re._fullLayout;function St(Et,mt,pt){return c.ensureSingle(Et,"text").text(mt).attr({class:"bartext bartext-"+Be,"text-anchor":"middle","data-notex":1}).call(p.font,pt).call(d.convertToTspans,Re)}var et=ze[0].trace,ct=et.orientation==="h",ht=function(Et,mt,pt,yt,qt){var Rt,jt=mt[0].trace;return Rt=jt.texttemplate?function(Tt,Pt,Ot,It,Lt){var zt=Pt[0].trace,Xt=c.castOption(zt,Ot,"texttemplate");if(!Xt)return"";var Kt,Bt,Ut,on,yn=zt.type==="histogram",pn=zt.type==="waterfall",cn=zt.type==="funnel",hn=zt.orientation==="h";function Jt(On){return g(on,on.c2l(On),!0).text}hn?(Kt="y",Bt=Lt,Ut="x",on=It):(Kt="x",Bt=It,Ut="y",on=Lt);var _n,sn=Pt[Ot],en={};en.label=sn.p,en.labelLabel=en[Kt+"Label"]=(_n=sn.p,g(Bt,Bt.c2l(_n),!0).text);var Nn=c.castOption(zt,sn.i,"text");(Nn===0||Nn)&&(en.text=Nn),en.value=sn.s,en.valueLabel=en[Ut+"Label"]=Jt(sn.s);var An={};C(An,zt,sn.i),(yn||An.x===void 0)&&(An.x=hn?en.value:en.label),(yn||An.y===void 0)&&(An.y=hn?en.label:en.value),(yn||An.xLabel===void 0)&&(An.xLabel=hn?en.valueLabel:en.labelLabel),(yn||An.yLabel===void 0)&&(An.yLabel=hn?en.labelLabel:en.valueLabel),pn&&(en.delta=+sn.rawS||sn.s,en.deltaLabel=Jt(en.delta),en.final=sn.v,en.finalLabel=Jt(en.final),en.initial=en.final-en.delta,en.initialLabel=Jt(en.initial)),cn&&(en.value=sn.s,en.valueLabel=Jt(en.value),en.percentInitial=sn.begR,en.percentInitialLabel=c.formatPercent(sn.begR),en.percentPrevious=sn.difR,en.percentPreviousLabel=c.formatPercent(sn.difR),en.percentTotal=sn.sumR,en.percenTotalLabel=c.formatPercent(sn.sumR));var Wn=c.castOption(zt,sn.i,"customdata");return Wn&&(en.customdata=Wn),c.texttemplateString(Xt,en,Tt._d3locale,An,en,zt._meta||{})}(Et,mt,pt,yt,qt):jt.textinfo?function(Tt,Pt,Ot,It){var Lt=Tt[0].trace,zt=Lt.orientation==="h",Xt=Lt.type==="waterfall",Kt=Lt.type==="funnel";function Bt(Wn){return g(zt?Ot:It,+Wn,!0).text}var Ut,on,yn=Lt.textinfo,pn=Tt[Pt],cn=yn.split("+"),hn=[],Jt=function(Wn){return cn.indexOf(Wn)!==-1};if(Jt("label")&&hn.push((on=Tt[Pt].p,g(zt?It:Ot,on,!0).text)),Jt("text")&&((Ut=c.castOption(Lt,pn.i,"text"))===0||Ut)&&hn.push(Ut),Xt){var _n=+pn.rawS||pn.s,sn=pn.v,en=sn-_n;Jt("initial")&&hn.push(Bt(en)),Jt("delta")&&hn.push(Bt(_n)),Jt("final")&&hn.push(Bt(sn))}if(Kt){Jt("value")&&hn.push(Bt(pn.s));var Nn=0;Jt("percent initial")&&Nn++,Jt("percent previous")&&Nn++,Jt("percent total")&&Nn++;var An=Nn>1;Jt("percent initial")&&(Ut=c.formatPercent(pn.begR),An&&(Ut+=" of initial"),hn.push(Ut)),Jt("percent previous")&&(Ut=c.formatPercent(pn.difR),An&&(Ut+=" of previous"),hn.push(Ut)),Jt("percent total")&&(Ut=c.formatPercent(pn.sumR),An&&(Ut+=" of total"),hn.push(Ut))}return hn.join("
")}(mt,pt,yt,qt):x.getValue(jt.text,pt),x.coerceString(S,Rt)}(it,ze,qe,je,tt);Be=function(Et,mt){var pt=x.getValue(Et.textposition,mt);return x.coerceEnumerated(k,pt)}(et,qe);var $t=st.mode==="stack"||st.mode==="relative",kt=ze[qe],Wt=!$t||kt._outmost;if(ht&&Be!=="none"&&(!kt.isBlank&&We!==Ge&&ot!==Je||Be!=="auto"&&Be!=="inside")){var wt=it.font,be=y.getBarColor(ze[qe],et),Me=y.getInsideTextFont(et,qe,wt,be),Ve=y.getOutsideTextFont(et,qe,wt),Ue=Ne.datum();ct?je.type==="log"&&Ue.s0<=0&&(We=je.range[0]0&&rt>0&&(Qe<=gt&&rt<=nt||Qe<=nt&&rt<=gt||(ct?gt>=Qe*(nt/rt):nt>=rt*(gt/Qe)))?Be="inside":(Be="outside",Ze.remove(),Ze=null)):Be="inside"),!Ze){var Nt=(Ze=St(Ne,ht,ut=c.ensureUniformFontSize(Re,Be==="outside"?Ve:Me))).attr("transform");if(Ze.attr("transform",""),Qe=(Ye=p.bBox(Ze.node())).width,rt=Ye.height,Ze.attr("transform",Nt),Qe<=0||rt<=0)return void Ze.remove()}var Gt,Ct=et.textangle;Gt=Be==="outside"?function(Et,mt,pt,yt,qt,Rt){var jt,Tt=!!Rt.isHorizontal,Pt=!!Rt.constrained,Ot=Rt.angle||0,It=qt.width,Lt=qt.height,zt=Math.abs(mt-Et),Xt=Math.abs(yt-pt);jt=Tt?Xt>2*T?T:0:zt>2*T?T:0;var Kt=1;Pt&&(Kt=Tt?Math.min(1,Xt/Lt):Math.min(1,zt/It));var Bt=I(Ot),Ut=A(qt,Bt),on=(Tt?Ut.x:Ut.y)/2,yn=(qt.left+qt.right)/2,pn=(qt.top+qt.bottom)/2,cn=(Et+mt)/2,hn=(pt+yt)/2,Jt=0,_n=0,sn=Tt?D(mt,Et):D(pt,yt);return Tt?(cn=mt-sn*jt,Jt=sn*on):(hn=yt+sn*jt,_n=-sn*on),{textX:yn,textY:pn,targetX:cn,targetY:hn,anchorX:Jt,anchorY:_n,scale:Kt,rotate:Bt}}(We,Ge,ot,Je,Ye,{isHorizontal:ct,constrained:et.constraintext==="both"||et.constraintext==="outside",angle:Ct}):F(We,Ge,ot,Je,Ye,{isHorizontal:ct,constrained:et.constraintext==="both"||et.constraintext==="inside",angle:Ct,anchor:et.insidetextanchor}),Gt.fontSize=ut.size,v(et.type==="histogram"?"bar":et.type,Gt,it),kt.transform=Gt;var Ft=P(Ze,it,st,bt);c.setTransormAndDisplay(Ft,Gt)}else Ne.select("text").remove()})(j,B,we,te,Oe,re,de,_e,ue,R,q),B.layerClipId&&p.hideOutsideRangePoint(Ce,we.select("text"),Y,L,U.xcalendar,U.ycalendar)});var ke=U.cliponaxis===!1;p.setClipUrl(ee,ke?null:B.layerClipId,j)});h.getComponentMethod("errorbars","plot")(j,G,B,R)},toMoveInsideBar:F}},81974:function(i){function o(a,s,u,c,d){var f=s.c2p(c?a.s0:a.p0,!0),p=s.c2p(c?a.s1:a.p1,!0),h=u.c2p(c?a.p0:a.s0,!0),g=u.c2p(c?a.p1:a.s1,!0);return d?[(f+p)/2,(h+g)/2]:c?[p,(h+g)/2]:[(f+p)/2,g]}i.exports=function(a,s){var u,c=a.cd,d=a.xaxis,f=a.yaxis,p=c[0].trace,h=p.type==="funnel",g=p.orientation==="h",b=[];if(s===!1)for(u=0;u1||P.bargap===0&&P.bargroupgap===0&&!E[0].trace.marker.line.width)&&s.select(this).attr("shape-rendering","crispEdges")}),O.selectAll("g.points").each(function(E){y(s.select(this),E[0].trace,M)}),f.getComponentMethod("errorbars","style")(O)},styleTextPoints:x,styleOnSelect:function(M,O,D){var P=O[0].trace;P.selectedpoints?function(E,I,A){c.selectedPointStyle(E.selectAll("path"),I),function(F,j,B){F.each(function(z){var N,R=s.select(this);if(z.selected){N=d.ensureUniformFontSize(B,_(R,z,j,B));var q=j.selected.textfont&&j.selected.textfont.color;q&&(N.color=q),c.font(R,N)}else c.selectedTextStyle(R,j)})}(E.selectAll("text"),I,A)}(D,P,M):(y(D,P,M),f.getComponentMethod("errorbars","style")(D))},getInsideTextFont:S,getOutsideTextFont:k,getBarColor:T,resizeText:p}},98340:function(i,o,a){var s=a(7901),u=a(52075).hasColorscale,c=a(1586),d=a(71828).coercePattern;i.exports=function(f,p,h,g,b){var v=h("marker.color",g),m=u(f,"marker");m&&c(f,p,b,h,{prefix:"marker.",cLetter:"c"}),h("marker.line.color",s.defaultLine),u(f,"marker.line")&&c(f,p,b,h,{prefix:"marker.line.",cLetter:"c"}),h("marker.line.width"),h("marker.opacity"),d(h,"marker.pattern",v,m),h("selected.marker.color"),h("unselected.marker.color")}},72597:function(i,o,a){var s=a(39898),u=a(71828);function c(d){return"_"+d+"Text_minsize"}i.exports={recordMinTextSize:function(d,f,p){if(p.uniformtext.mode){var h=c(d),g=p.uniformtext.minsize,b=f.scale*f.fontSize;f.hide=bz.uf};if(k._hasPreCompStats){var V=k[O],X=function(Ie){return M.d2c((k[Ie]||[])[C])},K=1/0,ne=-1/0;for(C=0;C=z.q1&&z.q3>=z.med){var ie=X("lowerfence");z.lf=ie!==f&&ie<=z.q1?ie:m(z,R,q);var se=X("upperfence");z.uf=se!==f&&se>=z.q3?se:y(z,R,q);var pe=X("mean");z.mean=pe!==f?pe:q?d.mean(R,q):(z.q1+z.q3)/2;var ke=X("sd");z.sd=pe!==f&&ke>=0?ke:q?d.stdev(R,q,z.mean):z.q3-z.q1,z.lo=x(z),z.uo=_(z);var Ce=X("notchspan");Ce=Ce!==f&&Ce>0?Ce:w(z,q),z.ln=z.med-Ce,z.un=z.med+Ce;var Oe=z.lf,Pe=z.uf;k.boxpoints&&R.length&&(Oe=Math.min(Oe,R[0]),Pe=Math.max(Pe,R[q-1])),k.notched&&(Oe=Math.min(Oe,z.ln),Pe=Math.max(Pe,z.un)),z.min=Oe,z.max=Pe}else{var ce;d.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+z.q1,"median = "+z.med,"q3 = "+z.q3].join(` +`)),ce=z.med!==f?z.med:z.q1!==f?z.q3!==f?(z.q1+z.q3)/2:z.q1:z.q3!==f?z.q3:0,z.med=ce,z.q1=z.q3=ce,z.lf=z.uf=ce,z.mean=z.sd=ce,z.ln=z.un=ce,z.min=z.max=ce}K=Math.min(K,z.min),ne=Math.max(ne,z.max),z.pts2=N.filter(Q),j.push(z)}}k._extremes[M._id]=u.findExtremes(M,[K,ne],{padded:!0})}else{var we=M.makeCalcdata(k,O),Z=function(Ie,Ne){for(var ze=Ie.length,qe=new Array(ze+1),We=0;We=0&&_e0){var Ae,Le;(z={}).pos=z[P]=ee[C],N=z.pts=de[C].sort(b),q=(R=z[O]=N.map(v)).length,z.min=R[0],z.max=R[q-1],z.mean=d.mean(R,q),z.sd=d.stdev(R,q,z.mean)*k.sdmultiple,z.med=d.interp(R,.5),q%2&&(ye||Te)?(ye?(Ae=R.slice(0,q/2),Le=R.slice(q/2+1)):Te&&(Ae=R.slice(0,q/2+1),Le=R.slice(q/2)),z.q1=d.interp(Ae,.5),z.q3=d.interp(Le,.5)):(z.q1=d.interp(R,.25),z.q3=d.interp(R,.75)),z.lf=m(z,R,q),z.uf=y(z,R,q),z.lo=x(z),z.uo=_(z);var Re=w(z,q);z.ln=z.med-Re,z.un=z.med+Re,ue=Math.min(ue,z.ln),me=Math.max(me,z.un),z.pts2=N.filter(Q),j.push(z)}k._extremes[M._id]=u.findExtremes(M,k.notched?we.concat([ue,me]):we,{padded:!0})}return function(Ie,Ne){if(d.isArrayOrTypedArray(Ne.selectedpoints))for(var ze=0;ze0?(j[0].t={num:I[B],dPos:U,posLetter:P,valLetter:O,labels:{med:p(S,"median:"),min:p(S,"min:"),q1:p(S,"q1:"),q3:p(S,"q3:"),max:p(S,"max:"),mean:k.boxmean==="sd"||k.sizemode==="sd"?p(S,"mean ± σ:").replace("σ",k.sdmultiple===1?"σ":k.sdmultiple+"σ"):p(S,"mean:"),lf:p(S,"lower fence:"),uf:p(S,"upper fence:")}},I[B]++,j):[{t:{empty:!0}}]};var h={text:"tx",hovertext:"htx"};function g(S,k,C){for(var T in h)d.isArrayOrTypedArray(k[T])&&(Array.isArray(C)?d.isArrayOrTypedArray(k[T][C[0]])&&(S[h[T]]=k[T][C[0]][C[1]]):S[h[T]]=k[T][C])}function b(S,k){return S.v-k.v}function v(S){return S.v}function m(S,k,C){return C===0?S.q1:Math.min(S.q1,k[Math.min(d.findBin(2.5*S.q1-1.5*S.q3,k,!0)+1,C-1)])}function y(S,k,C){return C===0?S.q3:Math.max(S.q3,k[Math.max(d.findBin(2.5*S.q3-1.5*S.q1,k),0)])}function x(S){return 4*S.q1-3*S.q3}function _(S){return 4*S.q3-3*S.q1}function w(S,k){return k===0?0:1.57*(S.q3-S.q1)/Math.sqrt(k)}},37188:function(i,o,a){var s=a(89298),u=a(71828),c=a(99082).getAxisGroup,d=["v","h"];function f(p,h,g,b){var v,m,y,x=h.calcdata,_=h._fullLayout,w=b._id,S=w.charAt(0),k=[],C=0;for(v=0;v1,P=1-_[p+"gap"],E=1-_[p+"groupgap"];for(v=0;v0){var ae=N.pointpos,ie=N.jitter,se=N.marker.size/2,pe=0;ae+ie>=0&&((pe=K*(ae+ie))>B?(ne=!0,V=se,U=pe):pe>te&&(V=se,U=B)),pe<=B&&(U=B);var ke=0;ae-ie<=0&&((ke=-K*(ae-ie))>z?(ne=!0,X=se,Q=ke):ke>ee&&(X=se,Q=z)),ke<=z&&(Q=z)}else U=B,Q=z;var Ce=new Array(y.length);for(m=0;m0?(D="v",P=I>0?Math.min(F,A):Math.min(A)):I>0?(D="h",P=Math.min(F)):P=0;if(P){m._length=P;var q=y("orientation",D);m._hasPreCompStats?q==="v"&&I===0?(y("x0",0),y("dx",1)):q==="h"&&E===0&&(y("y0",0),y("dy",1)):q==="v"&&I===0?y("x0"):q==="h"&&E===0&&y("y0"),u.getComponentMethod("calendars","handleTraceDefaults")(v,m,["x","y"],x)}else m.visible=!1}function b(v,m,y,x){var _=x.prefix,w=s.coerce2(v,m,h,"marker.outliercolor"),S=y("marker.line.outliercolor"),k="outliers";m._hasPreCompStats?k="all":(w||S)&&(k="suspectedoutliers");var C=y(_+"points",k);C?(y("jitter",C==="all"?.3:0),y("pointpos",C==="all"?-1.5:0),y("marker.symbol"),y("marker.opacity"),y("marker.size"),y("marker.angle"),y("marker.color",m.line.color),y("marker.line.color"),y("marker.line.width"),C==="suspectedoutliers"&&(y("marker.line.outliercolor",m.marker.color),y("marker.line.outlierwidth")),y("selected.marker.color"),y("unselected.marker.color"),y("selected.marker.size"),y("unselected.marker.size"),y("text"),y("hovertext")):delete m.marker;var T=y("hoveron");T!=="all"&&T.indexOf("points")===-1||y("hovertemplate"),s.coerceSelectionMarkerOpacity(m,y)}i.exports={supplyDefaults:function(v,m,y,x){function _(P,E){return s.coerce(v,m,h,P,E)}if(g(v,m,_,x),m.visible!==!1){d(v,m,x,_),_("xhoverformat"),_("yhoverformat");var w=m._hasPreCompStats;w&&(_("lowerfence"),_("upperfence")),_("line.color",(v.marker||{}).color||y),_("line.width"),_("fillcolor",c.addOpacity(m.line.color,.5));var S=!1;if(w){var k=_("mean"),C=_("sd");k&&k.length&&(S=!0,C&&C.length&&(S="sd"))}_("whiskerwidth");var T,M=_("sizemode");M==="quartiles"&&(T=_("boxmean",S)),_("showwhiskers",M==="quartiles"),M!=="sd"&&T!=="sd"||_("sdmultiple"),_("width"),_("quartilemethod");var O=!1;if(w){var D=_("notchspan");D&&D.length&&(O=!0)}else s.validate(v.notchwidth,h.notchwidth)&&(O=!0);_("notched",O)&&_("notchwidth"),b(v,m,_,{prefix:"box"})}},crossTraceDefaults:function(v,m){var y,x;function _(k){return s.coerce(x._input,x,h,k)}for(var w=0;wC.lo&&(R.so=!0)}return O});k.enter().append("path").classed("point",!0),k.exit().remove(),k.call(c.translatePoints,m,y)}function p(h,g,b,v){var m,y,x=g.val,_=g.pos,w=!!_.rangebreaks,S=v.bPos,k=v.bPosPxOffset||0,C=b.boxmean||(b.meanline||{}).visible;Array.isArray(v.bdPos)?(m=v.bdPos[0],y=v.bdPos[1]):(m=v.bdPos,y=v.bdPos);var T=h.selectAll("path.mean").data(b.type==="box"&&b.boxmean||b.type==="violin"&&b.box.visible&&b.meanline.visible?u.identity:[]);T.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),T.exit().remove(),T.each(function(M){var O=_.c2l(M.pos+S,!0),D=_.l2p(O-m)+k,P=_.l2p(O+y)+k,E=w?(D+P)/2:_.l2p(O)+k,I=x.c2p(M.mean,!0),A=x.c2p(M.mean-M.sd,!0),F=x.c2p(M.mean+M.sd,!0);b.orientation==="h"?s.select(this).attr("d","M"+I+","+D+"V"+P+(C==="sd"?"m0,0L"+A+","+E+"L"+I+","+D+"L"+F+","+E+"Z":"")):s.select(this).attr("d","M"+D+","+I+"H"+P+(C==="sd"?"m0,0L"+E+","+A+"L"+D+","+I+"L"+E+","+F+"Z":""))})}i.exports={plot:function(h,g,b,v){var m=h._context.staticPlot,y=g.xaxis,x=g.yaxis;u.makeTraceGroups(v,b,"trace boxes").each(function(_){var w,S,k=s.select(this),C=_[0],T=C.t,M=C.trace;T.wdPos=T.bdPos*M.whiskerwidth,M.visible!==!0||T.empty?k.remove():(M.orientation==="h"?(w=x,S=y):(w=y,S=x),d(k,{pos:w,val:S},M,T,m),f(k,{x:y,y:x},M,T),p(k,{pos:w,val:S},M,T))})},plotBoxAndWhiskers:d,plotPoints:f,plotBoxMean:p}},24626:function(i){i.exports=function(o,a){var s,u,c=o.cd,d=o.xaxis,f=o.yaxis,p=[];if(a===!1)for(s=0;sf.level||f.starts.length&&d===f.level)}break;case"constraint":if(u.prefixBoundary=!1,u.edgepaths.length)return;var p=u.x.length,h=u.y.length,g=-1/0,b=1/0;for(s=0;s":y>g&&(u.prefixBoundary=!0);break;case"<":(yg||u.starts.length&&m===b)&&(u.prefixBoundary=!0);break;case"][":v=Math.min(y[0],y[1]),m=Math.max(y[0],y[1]),vg&&(u.prefixBoundary=!0)}}}},90654:function(i,o,a){var s=a(21081),u=a(86068),c=a(53572);i.exports={min:"zmin",max:"zmax",calc:function(d,f,p){var h=f.contours,g=f.line,b=h.size||1,v=h.coloring,m=u(f,{isColorbar:!0});if(v==="heatmap"){var y=s.extractOpts(f);p._fillgradient=y.reversescale?s.flipScale(y.colorscale):y.colorscale,p._zrange=[y.min,y.max]}else v==="fill"&&(p._fillcolor=m);p._line={color:v==="lines"?m:g.color,width:h.showlines!==!1?g.width:0,dash:g.dash},p._levels={start:h.start,end:c(h),size:b}}}},36914:function(i){i.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},83179:function(i,o,a){var s=a(92770),u=a(14523),c=a(7901),d=c.addOpacity,f=c.opacity,p=a(74808),h=p.CONSTRAINT_REDUCTION,g=p.COMPARISON_OPS2;i.exports=function(b,v,m,y,x,_){var w,S,k,C=v.contours,T=m("contours.operation");C._operation=h[T],function(M,O){var D;g.indexOf(O.operation)===-1?(M("contours.value",[0,1]),Array.isArray(O.value)?O.value.length>2?O.value=O.value.slice(2):O.length===0?O.value=[0,1]:O.length<2?(D=parseFloat(O.value[0]),O.value=[D,D+1]):O.value=[parseFloat(O.value[0]),parseFloat(O.value[1])]:s(O.value)&&(D=parseFloat(O.value),O.value=[D,D+1])):(M("contours.value",0),s(O.value)||(Array.isArray(O.value)?O.value=parseFloat(O.value[0]):O.value=0))}(m,C),T==="="?w=C.showlines=!0:(w=m("contours.showlines"),k=m("fillcolor",d((b.line||{}).color||x,.5))),w&&(S=m("line.color",k&&f(k)?d(v.fillcolor,1):x),m("line.width",2),m("line.dash")),m("line.smoothing"),u(m,y,S,_)}},64237:function(i,o,a){var s=a(74808),u=a(92770);function c(p,h){var g,b=Array.isArray(h);function v(m){return u(m)?+m:null}return s.COMPARISON_OPS2.indexOf(p)!==-1?g=v(b?h[0]:h):s.INTERVAL_OPS.indexOf(p)!==-1?g=b?[v(h[0]),v(h[1])]:[v(h),v(h)]:s.SET_OPS.indexOf(p)!==-1&&(g=b?h.map(v):[v(h)]),g}function d(p){return function(h){h=c(p,h);var g=Math.min(h[0],h[1]),b=Math.max(h[0],h[1]);return{start:g,end:b,size:b-g}}}function f(p){return function(h){return{start:h=c(p,h),end:1/0,size:1/0}}}i.exports={"[]":d("[]"),"][":d("]["),">":f(">"),"<":f("<"),"=":f("=")}},67217:function(i){i.exports=function(o,a,s,u){var c=u("contours.start"),d=u("contours.end"),f=c===!1||d===!1,p=s("contours.size");!(f?a.autocontour=!0:s("autocontour",!1))&&p||s("ncontours")}},84857:function(i,o,a){var s=a(71828);function u(c){return s.extendFlat({},c,{edgepaths:s.extendDeep([],c.edgepaths),paths:s.extendDeep([],c.paths),starts:s.extendDeep([],c.starts)})}i.exports=function(c,d){var f,p,h,g=function(m){return m.reverse()},b=function(m){return m};switch(d){case"=":case"<":return c;case">":for(c.length!==1&&s.warn("Contour data invalid for the specified inequality operation."),p=c[0],f=0;f1e3){s.warn("Too many contours, clipping at 1000",d);break}return b}},53572:function(i){i.exports=function(o){return o.end+o.size/1e6}},81696:function(i,o,a){var s=a(71828),u=a(36914);function c(p,h,g,b){return Math.abs(p[0]-h[0])20&&ne?K===208||K===1114?ie=ae[0]===0?1:-1:se=ae[1]===0?1:-1:u.BOTTOMSTART.indexOf(K)!==-1?se=1:u.LEFTSTART.indexOf(K)!==-1?ie=1:u.TOPSTART.indexOf(K)!==-1?se=-1:ie=-1,[ie,se]}(x,g,h),w=[f(p,h,[-_[0],-_[1]])],S=p.z.length,k=p.z[0].length,C=h.slice(),T=_.slice();for(m=0;m<1e4;m++){if(x>20?(x=u.CHOOSESADDLE[x][(_[0]||_[1])<0?0:1],p.crossings[y]=u.SADDLEREMAINDER[x]):delete p.crossings[y],!(_=u.NEWDELTA[x])){s.log("Found bad marching index:",x,h,p.level);break}w.push(f(p,h,_)),h[0]+=_[0],h[1]+=_[1],y=h.join(","),c(w[w.length-1],w[w.length-2],b,v)&&w.pop();var M=_[0]&&(h[0]<0||h[0]>k-2)||_[1]&&(h[1]<0||h[1]>S-2);if(h[0]===C[0]&&h[1]===C[1]&&_[0]===T[0]&&_[1]===T[1]||g&&M)break;x=p.crossings[y]}m===1e4&&s.log("Infinite loop in contour?");var O,D,P,E,I,A,F,j,B,z,N,R,q,Y,L,W=c(w[0],w[w.length-1],b,v),H=0,G=.2*p.smoothing,te=[],ee=0;for(m=1;m=ee;m--)if((O=te[m])=ee&&O+te[D]j&&B--,p.edgepaths[B]=N.concat(w,z));break}X||(p.edgepaths[j]=w.concat(z))}for(j=0;j=T)&&(p<=C&&(p=C),h>=T&&(h=T),b=Math.floor((h-p)/g)+1,v=0),x=0;xC&&(S.unshift(C),k.unshift(k[0])),S[S.length-1]c?0:1)+(d[0][1]>c?0:2)+(d[1][1]>c?0:4)+(d[1][0]>c?0:8);return f===5||f===10?c>(d[0][0]+d[0][1]+d[1][0]+d[1][1])/4?f===5?713:1114:f===5?104:208:f===15?0:f}i.exports=function(c){var d,f,p,h,g,b,v,m,y,x=c[0].z,_=x.length,w=x[0].length,S=_===2||w===2;for(f=0;f<_-1;f++)for(h=[],f===0&&(h=h.concat(s.BOTTOMSTART)),f===_-2&&(h=h.concat(s.TOPSTART)),d=0;d=0&&(D=L,E=I):Math.abs(O[1]-D[1])<.01?Math.abs(O[1]-L[1])<.01&&(L[0]-O[0])*(D[0]-L[0])>=0&&(D=L,E=I):u.log("endpt to newendpt is not vert. or horz.",O,D,L)}if(O=D,E>=0)break;j+="L"+D}if(E===T.edgepaths.length){u.log("unclosed perimeter path");break}B=E,(N=z.indexOf(B)===-1)&&(B=z[0],j+="Z")}for(B=0;BD.center?D.right-I:I-D.left)/(j+Math.abs(Math.sin(F)*E)),N=(A>D.middle?D.bottom-A:A-D.top)/(Math.abs(B)+Math.cos(F)*E);if(z<1||N<1)return 1/0;var R=w.EDGECOST*(1/(z-1)+1/(N-1));R+=w.ANGLECOST*F*F;for(var q=I-j,Y=A-B,L=I+j,W=A+B,H=0;H2*w.MAXCOST)break;N&&(I/=2),A=(E=F-I/2)+1.5*I}if(z<=w.MAXCOST)return j},o.addLabelData=function(T,M,O,D){var P=M.fontSize,E=M.width+P/3,I=Math.max(0,M.height-P/3),A=T.x,F=T.y,j=T.theta,B=Math.sin(j),z=Math.cos(j),N=function(q,Y){return[A+q*z-Y*B,F+q*B+Y*z]},R=[N(-E/2,-I/2),N(-E/2,I/2),N(E/2,I/2),N(E/2,-I/2)];O.push({text:M.text,x:A,y:F,dy:M.dy,theta:j,level:M.level,width:E,height:I}),D.push(R)},o.drawLabels=function(T,M,O,D,P){var E=T.selectAll("text").data(M,function(F){return F.text+","+F.x+","+F.y+","+F.theta});if(E.exit().remove(),E.enter().append("text").attr({"data-notex":1,"text-anchor":"middle"}).each(function(F){var j=F.x+Math.sin(F.theta)*F.dy,B=F.y-Math.cos(F.theta)*F.dy;s.select(this).text(F.text).attr({x:j,y:B,transform:"rotate("+180*F.theta/Math.PI+" "+j+" "+B+")"}).call(f.convertToTspans,O)}),P){for(var I="",A=0;Ap.end&&(p.start=p.end=(p.start+p.end)/2),d._input.contours||(d._input.contours={}),u.extendFlat(d._input.contours,{start:p.start,end:p.end,size:p.size}),d._input.autocontour=!0}else if(p.type!=="constraint"){var v,m=p.start,y=p.end,x=d._input.contours;m>y&&(p.start=x.start=y,y=p.end=x.end=m,m=p.start),p.size>0||(v=m===y?1:c(m,y,d.ncontours).dtick,x.size=p.size=v)}}},84426:function(i,o,a){var s=a(39898),u=a(91424),c=a(70035),d=a(86068);i.exports=function(f){var p=s.select(f).selectAll("g.contour");p.style("opacity",function(h){return h[0].trace.opacity}),p.each(function(h){var g=s.select(this),b=h[0].trace,v=b.contours,m=b.line,y=v.size||1,x=v.start,_=v.type==="constraint",w=!_&&v.coloring==="lines",S=!_&&v.coloring==="fill",k=w||S?d(b):null;g.selectAll("g.contourlevel").each(function(M){s.select(this).selectAll("path").call(u.lineGroupStyle,m.width,w?k(M.level):m.color,m.dash)});var C=v.labelfont;if(g.selectAll("g.contourlabels text").each(function(M){u.font(s.select(this),{family:C.family,size:C.size,color:C.color||(w?k(M.level):m.color)})}),_)g.selectAll("g.contourfill path").style("fill",b.fillcolor);else if(S){var T;g.selectAll("g.contourfill path").style("fill",function(M){return T===void 0&&(T=M.level),k(M.level+.5*y)}),T===void 0&&(T=x),g.selectAll("g.contourbg path").style("fill",k(T-.5*y))}}),c(f)}},8724:function(i,o,a){var s=a(1586),u=a(14523);i.exports=function(c,d,f,p,h){var g,b=f("contours.coloring"),v="";b==="fill"&&(g=f("contours.showlines")),g!==!1&&(b!=="lines"&&(v=f("line.color","#000")),f("line.width",.5),f("line.dash")),b!=="none"&&(c.showlegend!==!0&&(d.showlegend=!1),d._dfltShowLegend=!1,s(c,d,p,f,{prefix:"",cLetter:"z"})),f("line.smoothing"),u(f,p,v,h)}},21606:function(i,o,a){var s=a(82196),u=a(9012),c=a(41940),d=a(12663).axisHoverFormat,f=a(5386).fF,p=a(5386).si,h=a(50693),g=a(1426).extendFlat;i.exports=g({z:{valType:"data_array",editType:"calc"},x:g({},s.x,{impliedEdits:{xtype:"array"}}),x0:g({},s.x0,{impliedEdits:{xtype:"scaled"}}),dx:g({},s.dx,{impliedEdits:{xtype:"scaled"}}),y:g({},s.y,{impliedEdits:{ytype:"array"}}),y0:g({},s.y0,{impliedEdits:{ytype:"scaled"}}),dy:g({},s.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:g({},s.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:g({},s.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:g({},s.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:g({},s.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:g({},s.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:g({},s.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:d("x"),yhoverformat:d("y"),zhoverformat:d("z",1),hovertemplate:f(),texttemplate:p({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:c({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:g({},u.showlegend,{dflt:!1})},{transforms:void 0},h("",{cLetter:"z",autoColorDflt:!1}))},90757:function(i,o,a){var s=a(73972),u=a(71828),c=a(89298),d=a(42973),f=a(17562),p=a(78803),h=a(68296),g=a(4742),b=a(824),v=a(43907),m=a(70769),y=a(50606).BADNUM;function x(_){for(var w=[],S=_.length,k=0;k1){var X=(V[V.length-1]-V[0])/(V.length-1),K=Math.abs(X/100);for(I=0;IK)return!1}return!0}(F.rangebreaks||j.rangebreaks)&&(E=function(V,X,K){for(var ne=[],ae=-1,ie=0;ie=0;h--)(g=((y[[(d=(p=x[h])[0])-1,f=p[1]]]||S)[2]+(y[[d+1,f]]||S)[2]+(y[[d,f-1]]||S)[2]+(y[[d,f+1]]||S)[2])/20)&&(b[p]=[d,f,g],x.splice(h,1),v=!0);if(!v)throw"findEmpties iterated with no new neighbors";for(p in b)y[p]=b[p],m.push(b[p])}return m.sort(function(C,T){return T[2]-C[2]})}},46248:function(i,o,a){var s=a(30211),u=a(71828),c=a(89298),d=a(21081).extractOpts;i.exports=function(f,p,h,g,b){b||(b={});var v,m,y,x,_=b.isContour,w=f.cd[0],S=w.trace,k=f.xa,C=f.ya,T=w.x,M=w.y,O=w.z,D=w.xCenter,P=w.yCenter,E=w.zmask,I=S.zhoverformat,A=T,F=M;if(f.index!==!1){try{y=Math.round(f.index[1]),x=Math.round(f.index[0])}catch{return void u.error("Error hovering on heatmap, pointNumber must be [row,col], found:",f.index)}if(y<0||y>=O[0].length||x<0||x>O.length)return}else{if(s.inbox(p-T[0],p-T[T.length-1],0)>0||s.inbox(h-M[0],h-M[M.length-1],0)>0)return;if(_){var j;for(A=[2*T[0]-T[1]],j=1;jT&&(O=Math.max(O,Math.abs(f[b][v]-C)/(M-T))))}return O}i.exports=function(f,p){var h,g=1;for(d(f,p),h=0;h.01;h++)g=d(f,p,c(g));return g>.01&&s.log("interp2d didn't converge quickly",g),f}},58623:function(i,o,a){var s=a(71828);i.exports=function(u,c){u("texttemplate");var d=s.extendFlat({},c.font,{color:"auto",size:"auto"});s.coerceFont(u,"textfont",d)}},70769:function(i,o,a){var s=a(73972),u=a(71828).isArrayOrTypedArray;i.exports=function(c,d,f,p,h,g){var b,v,m,y=[],x=s.traceIs(c,"contour"),_=s.traceIs(c,"histogram"),w=s.traceIs(c,"gl2d");if(u(d)&&d.length>1&&!_&&g.type!=="category"){var S=d.length;if(!(S<=h))return x?d.slice(0,h):d.slice(0,h+1);if(x||w)y=d.slice(0,h);else if(h===1)y=[d[0]-.5,d[0]+.5];else{for(y=[1.5*d[0]-.5*d[1]],m=1;m0;)z=A.c2p(V[Y]),Y--;for(z0;)q=F.c2p(X[Y]),Y--;q=A._length||z<=0||R>=F._length||q<=0)return H.selectAll("image").data([]).exit().remove(),void C(H);Oe==="fast"?(ce=pe,we=se):(ce=Z,we=re);var de=document.createElement("canvas");de.width=ce,de.height=we;var _e,ue,me=de.getContext("2d",{willReadFrequently:!0}),xe=m(te,{noNumericCheck:!0,returnArray:!0});Oe==="fast"?(_e=ke?function(_n){return pe-1-_n}:p.identity,ue=Ce?function(_n){return se-1-_n}:p.identity):(_e=function(_n){return p.constrain(Math.round(A.c2p(V[_n])-B),0,Z)},ue=function(_n){return p.constrain(Math.round(F.c2p(X[_n])-R),0,re)});var ye,Te,Ae,Le,Re=ue(0),Ie=[Re,Re],Ne=ke?0:1,ze=Ce?0:1,qe=0,We=0,Ge=0,ot=0;function Je(_n,sn){if(_n!==void 0){var en=xe(_n);return en[0]=Math.round(en[0]),en[1]=Math.round(en[1]),en[2]=Math.round(en[2]),qe+=sn,We+=en[0]*sn,Ge+=en[1]*sn,ot+=en[2]*sn,en}return[0,0,0,0]}function st(_n,sn,en,Nn){var An=_n[en.bin0];if(An===void 0)return Je(void 0,1);var Wn,On=_n[en.bin1],qn=sn[en.bin0],br=sn[en.bin1],Za=On-An||0,lo=qn-An||0;return Wn=On===void 0?br===void 0?0:qn===void 0?2*(br-An):2*(2*br-qn-An)/3:br===void 0?qn===void 0?0:2*(2*An-On-qn)/3:qn===void 0?2*(2*br-On-An)/3:br+An-On-qn,Je(An+en.frac*Za+Nn.frac*(lo+en.frac*Wn))}if(Oe!=="default"){var bt,Be=0;try{bt=new Uint8Array(ce*we*4)}catch{bt=new Array(ce*we*4)}if(Oe==="smooth"){var je,tt,it,St=K||V,et=ne||X,ct=new Array(St.length),ht=new Array(et.length),$t=new Array(Z),kt=K?M:T,Wt=ne?M:T;for(Y=0;Ymt||mt>F._length))for(L=Gt;Lyt||yt>A._length)){var qt=g({x:pt,y:Et},te,D._fullLayout);qt.x=pt,qt.y=Et;var Rt=G.z[Y][L];Rt===void 0?(qt.z="",qt.zLabel=""):(qt.z=Rt,qt.zLabel=f.tickText(ut,Rt,"hover").text);var jt=G.text&&G.text[Y]&&G.text[Y][L];jt!==void 0&&jt!==!1||(jt=""),qt.text=jt;var Tt=p.texttemplateString(Qe,qt,D._fullLayout._d3locale,qt,te._meta||{});if(Tt){var Pt=Tt.split("
"),Ot=Pt.length,It=0;for(W=0;W0&&(T=!0);for(var D=0;Dp){var h=p-d[u];return d[u]=p,h}}return 0},max:function(u,c,d,f){var p=f[c];if(s(p)){if(p=Number(p),!s(d[u]))return d[u]=p,p;if(d[u]h?x>d?x>1.1*u?u:x>1.1*c?c:d:x>f?f:x>p?p:h:Math.pow(10,Math.floor(Math.log(x)/Math.LN10))}function m(x,_,w,S,k,C){if(S&&x>d){var T=y(_,k,C),M=y(w,k,C),O=x===u?0:1;return T[O]!==M[O]}return Math.floor(w/x)-Math.floor(_/x)>.1}function y(x,_,w){var S=_.c2d(x,u,w).split("-");return S[0]===""&&(S.unshift(),S[0]="-"+S[0]),S}i.exports=function(x,_,w,S,k){var C,T,M=-1.1*_,O=-.1*_,D=x-O,P=w[0],E=w[1],I=Math.min(b(P+O,P+D,S,k),b(E+O,E+D,S,k)),A=Math.min(b(P+M,P+O,S,k),b(E+M,E+O,S,k));if(I>A&&Ad){var F=C===u?1:6,j=C===u?"M12":"M1";return function(B,z){var N=S.c2d(B,u,k),R=N.indexOf("-",F);R>0&&(N=N.substr(0,R));var q=S.d2c(N,0,k);if(qx.r2l(X)&&(ne=d.tickIncrement(ne,A.size,!0,T)),ee.start=x.l2r(ne),V||u.nestedProperty(y,P+".start").set(ee.start)}var ae=A.end,ie=x.r2l(te.end),se=ie!==void 0;if((A.endFound||se)&&ie!==x.r2l(ae)){var pe=se?ie:u.aggNums(Math.max,null,M);ee.end=x.l2r(pe),se||u.nestedProperty(y,P+".start").set(ee.end)}var ke="autobin"+_;return y._input[ke]===!1&&(y._input[P]=u.extendFlat({},y[P]||{}),delete y._input[ke],delete y[ke]),[ee,M]}i.exports={calc:function(m,y){var x,_,w,S,k=[],C=[],T=y.orientation==="h",M=d.getFromId(m,T?y.yaxis:y.xaxis),O=T?"y":"x",D={x:"y",y:"x"}[O],P=y[O+"calendar"],E=y.cumulative,I=v(m,y,M,O),A=I[0],F=I[1],j=typeof A.size=="string",B=[],z=j?B:A,N=[],R=[],q=[],Y=0,L=y.histnorm,W=y.histfunc,H=L.indexOf("density")!==-1;E.enabled&&H&&(L=L.replace(/ ?density$/,""),H=!1);var G,te=W==="max"||W==="min"?null:0,ee=p.count,U=h[L],Q=!1,V=function(re){return M.r2c(re,0,P)};for(u.isArrayOrTypedArray(y[D])&&W!=="count"&&(G=y[D],Q=W==="avg",ee=p[W]),x=V(A.start),w=V(A.end)+(x-d.tickIncrement(x,A.size,!1,P))/1e6;x=0&&S=0;ue--)Te(ue);else if(de==="increasing"){for(ue=1;ue=0;ue--)re[ue]+=re[ue+1];_e==="exclude"&&(re.push(0),re.shift())}}(C,E.direction,E.currentbin);var Oe=Math.min(k.length,C.length),Pe=[],ce=0,we=Oe-1;for(x=0;x=ce;x--)if(C[x]){we=x;break}for(x=ce;x<=we;x++)if(s(k[x])&&s(C[x])){var Z={p:k[x],s:C[x],b:0};E.enabled||(Z.pts=q[x],ie?Z.ph0=Z.ph1=q[x].length?F[q[x][0]]:k[x]:(y._computePh=!0,Z.ph0=ne(B[x]),Z.ph1=ne(B[x+1],!0))),Pe.push(Z)}return Pe.length===1&&(Pe[0].width1=d.tickIncrement(Pe[0].p,A.size,!1,P)-Pe[0].p),f(Pe,y),u.isArrayOrTypedArray(y.selectedpoints)&&u.tagSelected(Pe,y,ke),Pe},calcAllAutoBins:v}},72406:function(i){i.exports={eventDataKeys:["binNumber"]}},82222:function(i,o,a){var s=a(71828),u=a(41675),c=a(73972).traceIs,d=a(26125),f=s.nestedProperty,p=a(99082).getAxisGroup,h=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],g=["x","y"];i.exports=function(b,v){var m,y,x,_,w,S,k,C=v._histogramBinOpts={},T=[],M={},O=[];function D(H,G){return s.coerce(m._input,m,m._module.attributes,H,G)}function P(H){return H.orientation==="v"?"x":"y"}function E(H,G,te){var ee=H.uid+"__"+te;G||(G=ee);var U=function(K,ne){return u.getFromTrace({_fullLayout:v},K,ne).type}(H,te),Q=H[te+"calendar"]||"",V=C[G],X=!0;V&&(U===V.axType&&Q===V.calendar?(X=!1,V.traces.push(H),V.dirs.push(te)):(G=ee,U!==V.axType&&s.warn(["Attempted to group the bins of trace",H.index,"set on a","type:"+U,"axis","with bins on","type:"+V.axType,"axis."].join(" ")),Q!==V.calendar&&s.warn(["Attempted to group the bins of trace",H.index,"set with a",Q,"calendar","with bins",V.calendar?"on a "+V.calendar+" calendar":"w/o a set calendar"].join(" ")))),X&&(C[G]={traces:[H],dirs:[te],axType:U,calendar:H[te+"calendar"]||""}),H["_"+te+"bingroup"]=G}for(w=0;wB&&I.splice(B,I.length-B),j.length>B&&j.splice(B,j.length-B);var z=[],N=[],R=[],q=typeof E.size=="string",Y=typeof F.size=="string",L=[],W=[],H=q?L:E,G=Y?W:F,te=0,ee=[],U=[],Q=y.histnorm,V=y.histfunc,X=Q.indexOf("density")!==-1,K=V==="max"||V==="min"?null:0,ne=c.count,ae=d[Q],ie=!1,se=[],pe=[],ke="z"in y?y.z:"marker"in y&&Array.isArray(y.marker.color)?y.marker.color:"";ke&&V!=="count"&&(ie=V==="avg",ne=c[V]);var Ce=E.size,Oe=O(E.start),Pe=O(E.end)+(Oe-u.tickIncrement(Oe,Ce,!1,T))/1e6;for(x=Oe;x=0&&w=0&&S0||s.inbox(p-h.y0,p-(h.y0+h.h*g.dy),0)>0)){var m,y=Math.floor((f-h.x0)/g.dx),x=Math.floor(Math.abs(p-h.y0)/g.dy);if(g._hasZ?m=h.z[x][y]:g._hasSource&&(m=g._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(y,x,1,1).data),m){var _,w=h.hi||g.hoverinfo;if(w){var S=w.split("+");S.indexOf("all")!==-1&&(S=["color"]),S.indexOf("color")!==-1&&(_=!0)}var k,C=c.colormodel[g.colormodel],T=C.colormodel||g.colormodel,M=T.length,O=g._scaler(m),D=C.suffix,P=[];(g.hovertemplate||_)&&(P.push("["+[O[0]+D[0],O[1]+D[1],O[2]+D[2]].join(", ")),M===4&&P.push(", "+O[3]+D[3]),P.push("]"),P=P.join(""),d.extraText=T.toUpperCase()+": "+P),Array.isArray(g.hovertext)&&Array.isArray(g.hovertext[x])?k=g.hovertext[x][y]:Array.isArray(g.text)&&Array.isArray(g.text[x])&&(k=g.text[x][y]);var E=v.c2p(h.y0+(x+.5)*g.dy),I=h.x0+(y+.5)*g.dx,A=h.y0+(x+.5)*g.dy,F="["+m.slice(0,g.colormodel.length).join(", ")+"]";return[u.extendFlat(d,{index:[x,y],x0:b.c2p(h.x0+y*g.dx),x1:b.c2p(h.x0+(y+1)*g.dx),y0:E,y1:E,color:O,xVal:I,xLabelVal:I,yVal:A,yLabelVal:A,zLabelVal:F,text:k,hovertemplateLabels:{zLabel:F,colorLabel:P,"color[0]Label":O[0]+D[0],"color[1]Label":O[1]+D[1],"color[2]Label":O[2]+D[2],"color[3]Label":O[3]+D[3]}})]}}}},94507:function(i,o,a){i.exports={attributes:a(17230),supplyDefaults:a(13245),calc:a(71113),plot:a(60775),style:a(12826),hoverPoints:a(28749),eventData:a(30835),moduleType:"trace",name:"image",basePlotModule:a(93612),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}},60775:function(i,o,a){var s=a(39898),u=a(71828),c=u.strTranslate,d=a(77922),f=a(51877),p=a(3883),h=a(32396).STYLE;i.exports=function(g,b,v,m){var y=b.xaxis,x=b.yaxis,_=!g._context._exportedPlot&&p();u.makeTraceGroups(m,v,"im").each(function(w){var S=s.select(this),k=w[0],C=k.trace,T=(C.zsmooth==="fast"||C.zsmooth===!1&&_)&&!C._hasZ&&C._hasSource&&y.type==="linear"&&x.type==="linear";C._realImage=T;var M,O,D,P,E,I,A=k.z,F=k.x0,j=k.y0,B=k.w,z=k.h,N=C.dx,R=C.dy;for(I=0;M===void 0&&I0;)O=y.c2p(F+I*N),I--;for(I=0;P===void 0&&I0;)E=x.c2p(j+I*R),I--;OG[0];if(te||ee){var U=M+q/2,Q=P+Y/2;W+="transform:"+c(U+"px",Q+"px")+"scale("+(te?-1:1)+","+(ee?-1:1)+")"+c(-U+"px",-Q+"px")+";"}}L.attr("style",W);var V=new Promise(function(K){if(C._hasZ)K();else if(C._hasSource)if(C._canvas&&C._canvas.el.width===B&&C._canvas.el.height===z&&C._canvas.source===C.source)K();else{var ne=document.createElement("canvas");ne.width=B,ne.height=z;var ae=ne.getContext("2d",{willReadFrequently:!0});C._image=C._image||new Image;var ie=C._image;ie.onload=function(){ae.drawImage(ie,0,0),C._canvas={el:ne,source:C.source},K()},ie.setAttribute("src",C.source)}}).then(function(){var K,ne;if(C._hasZ)ne=X(function(ie,se){return A[se][ie]}),K=ne.toDataURL("image/png");else if(C._hasSource)if(T)K=C.source;else{var ae=C._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,B,z).data;ne=X(function(ie,se){var pe=4*(se*B+ie);return[ae[pe],ae[pe+1],ae[pe+2],ae[pe+3]]}),K=ne.toDataURL("image/png")}L.attr({"xlink:href":K,height:Y,width:q,x:M,y:P})});g._promises.push(V)}function X(K){var ne=document.createElement("canvas");ne.width=q,ne.height=Y;var ae,ie=ne.getContext("2d",{willReadFrequently:!0}),se=function(de){return u.constrain(Math.round(y.c2p(F+de*N)-M),0,q)},pe=function(de){return u.constrain(Math.round(x.c2p(j+de*R)-P),0,Y)},ke=f.colormodel[C.colormodel],Ce=ke.colormodel||C.colormodel,Oe=ke.fmt;for(I=0;I=0}),(g.type==="funnelarea"?D:g.sort)&&m.sort(function(F,j){return j.v-F.v}),m[0]&&(m[0].vTotal=O),m},crossTraceCalc:function(h,g){var b=(g||{}).type;b||(b="pie");var v=h._fullLayout,m=h.calcdata,y=v[b+"colorway"],x=v["_"+b+"colormap"];v["extend"+b+"colors"]&&(y=p(y,d));for(var _=0,w=0;w0){_=!0;break}}_||(x=0)}return{hasLabels:m,hasValues:y,len:x}}function g(b,v,m,y,x){y("marker.line.width")&&y("marker.line.color",x?void 0:m.paper_bgcolor);var _=y("marker.colors");p(y,"marker.pattern",_),b.marker&&!v.marker.pattern.fgcolor&&(v.marker.pattern.fgcolor=b.marker.colors),v.marker.pattern.bgcolor||(v.marker.pattern.bgcolor=m.paper_bgcolor)}i.exports={handleLabelsAndValues:h,handleMarkerDefaults:g,supplyDefaults:function(b,v,m,y){function x(D,P){return u.coerce(b,v,c,D,P)}var _=h(x("labels"),x("values")),w=_.len;if(v._hasLabels=_.hasLabels,v._hasValues=_.hasValues,!v._hasLabels&&v._hasValues&&(x("label0"),x("dlabel")),w){v._length=w,g(b,v,y,x,!0),x("scalegroup");var S,k=x("text"),C=x("texttemplate");if(C||(S=x("textinfo",Array.isArray(k)?"text+percent":"percent")),x("hovertext"),x("hovertemplate"),C||S&&S!=="none"){var T=x("textposition");f(b,v,y,x,T,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(T)||T==="auto"||T==="outside")&&x("automargin"),(T==="inside"||T==="auto"||Array.isArray(T))&&x("insidetextorientation")}d(v,y,x);var M=x("hole");if(x("title.text")){var O=x("title.position",M?"middle center":"top center");M||O!=="middle center"||(v.title.position="top center"),u.coerceFont(x,"title.font",y.font)}x("sort"),x("direction"),x("rotation"),x("pull")}else v.visible=!1}}},20007:function(i,o,a){var s=a(23469).appendArrayMultiPointValues;i.exports=function(u,c){var d={curveNumber:c.index,pointNumbers:u.pts,data:c._input,fullData:c,label:u.label,color:u.color,value:u.v,percent:u.percent,text:u.text,bbox:u.bbox,v:u.v};return u.pts.length===1&&(d.pointNumber=d.i=u.pts[0]),s(d,c,u.pts),c.type==="funnelarea"&&(delete d.v,delete d.i),d}},22209:function(i,o,a){var s=a(91424),u=a(7901);i.exports=function(c,d,f,p){var h=f.marker.pattern;h&&h.shape?s.pointStyle(c,f,p,d):u.fill(c,d.color)}},53581:function(i,o,a){var s=a(71828);function u(c){return c.indexOf("e")!==-1?c.replace(/[.]?0+e/,"e"):c.indexOf(".")!==-1?c.replace(/[.]?0+$/,""):c}o.formatPiePercent=function(c,d){var f=u((100*c).toPrecision(3));return s.numSeparate(f,d)+"%"},o.formatPieValue=function(c,d){var f=u(c.toPrecision(10));return s.numSeparate(f,d)},o.getFirstFilled=function(c,d){if(Array.isArray(c))for(var f=0;f"),name:K.hovertemplate||ne.indexOf("name")!==-1?K.name:void 0,idealAlign:V.pxmid[0]<0?"left":"right",color:_.castOption(Oe.bgcolor,V.pts)||V.color,borderColor:_.castOption(Oe.bordercolor,V.pts),fontFamily:_.castOption(Pe.family,V.pts),fontSize:_.castOption(Pe.size,V.pts),fontColor:_.castOption(Pe.color,V.pts),nameLength:_.castOption(Oe.namelength,V.pts),textAlign:_.castOption(Oe.align,V.pts),hovertemplate:_.castOption(K.hovertemplate,V.pts),hovertemplateLabels:V,eventData:[w(V,K)]},{container:X._hoverlayer.node(),outerContainer:X._paper.node(),gd:W,inOut_bbox:ce}),V.bbox=ce[0],U._hasHoverLabel=!0}U._hasHoverEvent=!0,W.emit("plotly_hover",{points:[w(V,K)],event:s.event})}}),L.on("mouseout",function(V){var X=W._fullLayout,K=W._fullData[U.index],ne=s.select(this).datum();U._hasHoverEvent&&(V.originalEvent=s.event,W.emit("plotly_unhover",{points:[w(ne,K)],event:s.event}),U._hasHoverEvent=!1),U._hasHoverLabel&&(c.loneUnhover(X._hoverlayer.node()),U._hasHoverLabel=!1)}),L.on("click",function(V){var X=W._fullLayout,K=W._fullData[U.index];W._dragging||X.hovermode===!1||(W._hoverdata=[w(V,K)],c.click(W,s.event))})}function C(L,W,H){var G=_.castOption(L.insidetextfont.color,W.pts);!G&&L._input.textfont&&(G=_.castOption(L._input.textfont.color,W.pts));var te=_.castOption(L.insidetextfont.family,W.pts)||_.castOption(L.textfont.family,W.pts)||H.family,ee=_.castOption(L.insidetextfont.size,W.pts)||_.castOption(L.textfont.size,W.pts)||H.size;return{color:G||d.contrast(W.color),family:te,size:ee}}function T(L,W){for(var H,G,te=0;teye&&ye>Ae||Te=-4;ke-=2)Ce(Math.PI*ke,"tan");for(ke=4;ke>=-4;ke-=2)Ce(Math.PI*(ke+1),"tan")}if(ne||ie){for(ke=4;ke>=-4;ke-=2)Ce(Math.PI*(ke+1.5),"rad");for(ke=4;ke>=-4;ke-=2)Ce(Math.PI*(ke+.5),"rad")}}if(Q||se||ne){var Oe=Math.sqrt(L.width*L.width+L.height*L.height);if((ee={scale:te*G*2/Oe,rCenter:1-te,rotate:0}).textPosAngle=(W.startangle+W.stopangle)/2,ee.scale>=1)return ee;pe.push(ee)}(se||ie)&&((ee=O(L,G,U,V,X)).textPosAngle=(W.startangle+W.stopangle)/2,pe.push(ee)),(se||ae)&&((ee=D(L,G,U,V,X)).textPosAngle=(W.startangle+W.stopangle)/2,pe.push(ee));for(var Pe=0,ce=0,we=0;we=1)break}return pe[Pe]}function O(L,W,H,G,te){W=Math.max(0,W-2*x);var ee=L.width/L.height,U=I(ee,G,W,H);return{scale:2*U/L.height,rCenter:P(ee,U/W),rotate:E(te)}}function D(L,W,H,G,te){W=Math.max(0,W-2*x);var ee=L.height/L.width,U=I(ee,G,W,H);return{scale:2*U/L.width,rCenter:P(ee,U/W),rotate:E(te+Math.PI/2)}}function P(L,W){return Math.cos(W)-L*W}function E(L){return(180/Math.PI*L+720)%180-90}function I(L,W,H,G){var te=L+1/(2*Math.tan(W));return H*Math.min(1/(Math.sqrt(te*te+.5)+te),G/(Math.sqrt(L*L+G/2)+L))}function A(L,W){return L.v!==W.vTotal||W.trace.hole?Math.min(1/(1+1/Math.sin(L.halfangle)),L.ring/2):1}function F(L,W){var H=W.pxmid[0],G=W.pxmid[1],te=L.width/2,ee=L.height/2;return H<0&&(te*=-1),G<0&&(ee*=-1),{scale:1,rCenter:1,rotate:0,x:te+Math.abs(ee)*(te>0?1:-1)/2,y:ee/(1+H*H/(G*G)),outside:!0}}function j(L,W){var H,G,te,ee=L.trace,U={x:L.cx,y:L.cy},Q={tx:0,ty:0};Q.ty+=ee.title.font.size,te=z(ee),ee.title.position.indexOf("top")!==-1?(U.y-=(1+te)*L.r,Q.ty-=L.titleBox.height):ee.title.position.indexOf("bottom")!==-1&&(U.y+=(1+te)*L.r);var V,X=L.r/((V=L.trace.aspectratio)===void 0?1:V),K=W.w*(ee.domain.x[1]-ee.domain.x[0])/2;return ee.title.position.indexOf("left")!==-1?(K+=X,U.x-=(1+te)*X,Q.tx+=L.titleBox.width/2):ee.title.position.indexOf("center")!==-1?K*=2:ee.title.position.indexOf("right")!==-1&&(K+=X,U.x+=(1+te)*X,Q.tx-=L.titleBox.width/2),H=K/L.titleBox.width,G=B(L,W)/L.titleBox.height,{x:U.x,y:U.y,scale:Math.min(H,G),tx:Q.tx,ty:Q.ty}}function B(L,W){var H=L.trace,G=W.h*(H.domain.y[1]-H.domain.y[0]);return Math.min(L.titleBox.height,G/2)}function z(L){var W,H=L.pull;if(!H)return 0;if(Array.isArray(H))for(H=0,W=0;WH&&(H=L.pull[W]);return H}function N(L,W){for(var H=[],G=0;G1?we=(ce=ie.r)/pe.aspectratio:ce=(we=ie.r)*pe.aspectratio,Pe=(ce*=(1+pe.baseratio)/2)*we}Ce=Math.min(Ce,Pe/ie.vTotal)}for(se=0;se")}if(ee){var ke=p.castOption(te,W.i,"texttemplate");if(ke){var Ce=function(Pe){return{label:Pe.label,value:Pe.v,valueLabel:_.formatPieValue(Pe.v,G.separators),percent:Pe.v/H.vTotal,percentLabel:_.formatPiePercent(Pe.v/H.vTotal,G.separators),color:Pe.color,text:Pe.text,customdata:p.castOption(te,Pe.i,"customdata")}}(W),Oe=_.getFirstFilled(te.text,W.pts);(S(Oe)||Oe==="")&&(Ce.text=Oe),W.text=p.texttemplateString(ke,Ce,L._fullLayout._d3locale,Ce,te._meta||{})}else W.text=""}}function Y(L,W){var H=L.rotate*Math.PI/180,G=Math.cos(H),te=Math.sin(H),ee=(W.left+W.right)/2,U=(W.top+W.bottom)/2;L.textX=ee*G-U*te,L.textY=ee*te+U*G,L.noCenter=!0}i.exports={plot:function(L,W){var H=L._context.staticPlot,G=L._fullLayout,te=G._size;y("pie",G),T(W,L),N(W,te);var ee=p.makeTraceGroups(G._pielayer,W,"trace").each(function(U){var Q=s.select(this),V=U[0],X=V.trace;(function(K){var ne,ae,ie,se=K[0],pe=se.r,ke=se.trace,Ce=_.getRotationAngle(ke.rotation),Oe=2*Math.PI/se.vTotal,Pe="px0",ce="px1";if(ke.direction==="counterclockwise"){for(ne=0;nese.vTotal/2?1:0,ae.halfangle=Math.PI*Math.min(ae.v/se.vTotal,.5),ae.ring=1-ke.hole,ae.rInscribed=A(ae,se))})(U),Q.attr("stroke-linejoin","round"),Q.each(function(){var K=s.select(this).selectAll("g.slice").data(U);K.enter().append("g").classed("slice",!0),K.exit().remove();var ne=[[[],[]],[[],[]]],ae=!1;K.each(function(ce,we){if(ce.hidden)s.select(this).selectAll("path,g").remove();else{ce.pointNumber=ce.i,ce.curveNumber=X.index,ne[ce.pxmid[1]<0?0:1][ce.pxmid[0]<0?0:1].push(ce);var Z=V.cx,re=V.cy,de=s.select(this),_e=de.selectAll("path.surface").data([ce]);if(_e.enter().append("path").classed("surface",!0).style({"pointer-events":H?"none":"all"}),de.call(k,L,U),X.pull){var ue=+_.castOption(X.pull,ce.pts)||0;ue>0&&(Z+=ue*ce.pxmid[0],re+=ue*ce.pxmid[1])}ce.cxFinal=Z,ce.cyFinal=re;var me=X.hole;if(ce.v===V.vTotal){var xe="M"+(Z+ce.px0[0])+","+(re+ce.px0[1])+Re(ce.px0,ce.pxmid,!0,1)+Re(ce.pxmid,ce.px0,!0,1)+"Z";me?_e.attr("d","M"+(Z+me*ce.px0[0])+","+(re+me*ce.px0[1])+Re(ce.px0,ce.pxmid,!1,me)+Re(ce.pxmid,ce.px0,!1,me)+"Z"+xe):_e.attr("d",xe)}else{var ye=Re(ce.px0,ce.px1,!0,1);if(me){var Te=1-me;_e.attr("d","M"+(Z+me*ce.px1[0])+","+(re+me*ce.px1[1])+Re(ce.px1,ce.px0,!1,me)+"l"+Te*ce.px0[0]+","+Te*ce.px0[1]+ye+"Z")}else _e.attr("d","M"+Z+","+re+"l"+ce.px0[0]+","+ce.px0[1]+ye+"Z")}q(L,ce,V);var Ae=_.castOption(X.textposition,ce.pts),Le=de.selectAll("g.slicetext").data(ce.text&&Ae!=="none"?[0]:[]);Le.enter().append("g").classed("slicetext",!0),Le.exit().remove(),Le.each(function(){var Ie=p.ensureSingle(s.select(this),"text","",function(st){st.attr("data-notex",1)}),Ne=p.ensureUniformFontSize(L,Ae==="outside"?function(st,bt,Be){return{color:_.castOption(st.outsidetextfont.color,bt.pts)||_.castOption(st.textfont.color,bt.pts)||Be.color,family:_.castOption(st.outsidetextfont.family,bt.pts)||_.castOption(st.textfont.family,bt.pts)||Be.family,size:_.castOption(st.outsidetextfont.size,bt.pts)||_.castOption(st.textfont.size,bt.pts)||Be.size}}(X,ce,G.font):C(X,ce,G.font));Ie.text(ce.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(f.font,Ne).call(b.convertToTspans,L);var ze,qe=f.bBox(Ie.node());if(Ae==="outside")ze=F(qe,ce);else if(ze=M(qe,ce,V),Ae==="auto"&&ze.scale<1){var We=p.ensureUniformFontSize(L,X.outsidetextfont);Ie.call(f.font,We),ze=F(qe=f.bBox(Ie.node()),ce)}var Ge=ze.textPosAngle,ot=Ge===void 0?ce.pxmid:R(V.r,Ge);if(ze.targetX=Z+ot[0]*ze.rCenter+(ze.x||0),ze.targetY=re+ot[1]*ze.rCenter+(ze.y||0),Y(ze,qe),ze.outside){var Je=ze.targetY;ce.yLabelMin=Je-qe.height/2,ce.yLabelMid=Je,ce.yLabelMax=Je+qe.height/2,ce.labelExtraX=0,ce.labelExtraY=0,ae=!0}ze.fontSize=Ne.size,m(X.type,ze,G),U[we].transform=ze,p.setTransormAndDisplay(Ie,ze)})}function Re(Ie,Ne,ze,qe){var We=qe*(Ne[0]-Ie[0]),Ge=qe*(Ne[1]-Ie[1]);return"a"+qe*V.r+","+qe*V.r+" 0 "+ce.largeArc+(ze?" 1 ":" 0 ")+We+","+Ge}});var ie=s.select(this).selectAll("g.titletext").data(X.title.text?[0]:[]);if(ie.enter().append("g").classed("titletext",!0),ie.exit().remove(),ie.each(function(){var ce,we=p.ensureSingle(s.select(this),"text","",function(re){re.attr("data-notex",1)}),Z=X.title.text;X._meta&&(Z=p.templateString(Z,X._meta)),we.text(Z).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(f.font,X.title.font).call(b.convertToTspans,L),ce=X.title.position==="middle center"?function(re){var de=Math.sqrt(re.titleBox.width*re.titleBox.width+re.titleBox.height*re.titleBox.height);return{x:re.cx,y:re.cy,scale:re.trace.hole*re.r*2/de,tx:0,ty:-re.titleBox.height/2+re.trace.title.font.size}}(V):j(V,te),we.attr("transform",g(ce.x,ce.y)+h(Math.min(1,ce.scale))+g(ce.tx,ce.ty))}),ae&&function(ce,we){var Z,re,de,_e,ue,me,xe,ye,Te,Ae,Le,Re,Ie;function Ne(Ge,ot){return Ge.pxmid[1]-ot.pxmid[1]}function ze(Ge,ot){return ot.pxmid[1]-Ge.pxmid[1]}function qe(Ge,ot){ot||(ot={});var Je,st,bt,Be,je=ot.labelExtraY+(re?ot.yLabelMax:ot.yLabelMin),tt=re?Ge.yLabelMin:Ge.yLabelMax,it=re?Ge.yLabelMax:Ge.yLabelMin,St=Ge.cyFinal+ue(Ge.px0[1],Ge.px1[1]),et=je-tt;if(et*xe>0&&(Ge.labelExtraY=et),Array.isArray(we.pull))for(st=0;st=(_.castOption(we.pull,bt.pts)||0)||((Ge.pxmid[1]-bt.pxmid[1])*xe>0?(et=bt.cyFinal+ue(bt.px0[1],bt.px1[1])-tt-Ge.labelExtraY)*xe>0&&(Ge.labelExtraY+=et):(it+Ge.labelExtraY-St)*xe>0&&(Je=3*me*Math.abs(st-Ae.indexOf(Ge)),(Be=bt.cxFinal+_e(bt.px0[0],bt.px1[0])+Je-(Ge.cxFinal+Ge.pxmid[0])-Ge.labelExtraX)*me>0&&(Ge.labelExtraX+=Be)))}for(re=0;re<2;re++)for(de=re?Ne:ze,ue=re?Math.max:Math.min,xe=re?1:-1,Z=0;Z<2;Z++){for(_e=Z?Math.max:Math.min,me=Z?1:-1,(ye=ce[re][Z]).sort(de),Te=ce[1-re][Z],Ae=Te.concat(ye),Re=[],Le=0;LeMath.abs(ye)?ue+="l"+ye*Z.pxmid[0]/Z.pxmid[1]+","+ye+"H"+(_e+Z.labelExtraX+me):ue+="l"+Z.labelExtraX+","+xe+"v"+(ye-xe)+"h"+me}else ue+="V"+(Z.yLabelMid+Z.labelExtraY)+"h"+me;p.ensureSingle(re,"path","textline").call(d.stroke,we.outsidetextfont.color).attr({"stroke-width":Math.min(2,we.outsidetextfont.size/8),d:ue,fill:"none"})}else re.select("path.textline").remove()})}(K,X),ae&&X.automargin){var se=f.bBox(Q.node()),pe=X.domain,ke=te.w*(pe.x[1]-pe.x[0]),Ce=te.h*(pe.y[1]-pe.y[0]),Oe=(.5*ke-V.r)/te.w,Pe=(.5*Ce-V.r)/te.h;u.autoMargin(L,"pie."+X.uid+".automargin",{xl:pe.x[0]-Oe,xr:pe.x[1]+Oe,yb:pe.y[0]-Pe,yt:pe.y[1]+Pe,l:Math.max(V.cx-V.r-se.left,0),r:Math.max(se.right-(V.cx+V.r),0),b:Math.max(se.bottom-(V.cy+V.r),0),t:Math.max(V.cy-V.r-se.top,0),pad:5})}})});setTimeout(function(){ee.selectAll("tspan").each(function(){var U=s.select(this);U.attr("dy")&&U.attr("dy",U.attr("dy"))})},0)},formatSliceLabel:q,transformInsideText:M,determineInsideTextFont:C,positionTitleOutside:j,prerenderTitles:T,layoutAreas:N,attachFxHandlers:k,computeTransform:Y}},68357:function(i,o,a){var s=a(39898),u=a(63463),c=a(72597).resizeText;i.exports=function(d){var f=d._fullLayout._pielayer.selectAll(".trace");c(d,f,"pie"),f.each(function(p){var h=p[0].trace,g=s.select(this);g.style({opacity:h.opacity}),g.selectAll("path.surface").each(function(b){s.select(this).call(u,b,h,d)})})}},63463:function(i,o,a){var s=a(7901),u=a(53581).castOption,c=a(22209);i.exports=function(d,f,p,h){var g=p.marker.line,b=u(g.color,f.pts)||s.defaultLine,v=u(g.width,f.pts)||0;d.call(c,f,p,h).style("stroke-width",v).call(s.stroke,b)}},75225:function(i,o,a){var s=a(71828);i.exports=function(u,c){for(var d=0;dC&&q[M].gap;)M--;for(D=q[M].s,T=q.length-1;T>M;T--)q[T].s=D;for(;Cj[y]&&y=0;y--){var x=d[y];if(x.type==="scatter"&&x.xaxis===v.xaxis&&x.yaxis===v.yaxis){x.opacity=void 0;break}}}}}},17438:function(i,o,a){var s=a(71828),u=a(73972),c=a(82196),d=a(47581),f=a(34098),p=a(67513),h=a(73927),g=a(565),b=a(49508),v=a(11058),m=a(94039),y=a(82410),x=a(28908),_=a(71828).coercePattern;i.exports=function(w,S,k,C){function T(F,j){return s.coerce(w,S,c,F,j)}var M=p(w,S,C,T);if(M||(S.visible=!1),S.visible){h(w,S,C,T),T("xhoverformat"),T("yhoverformat");var O=g(w,S,C,T);C.scattermode==="group"&&S.orientation===void 0&&T("orientation","v");var D=!O&&M=Math.min(ke,Ce)&&w<=Math.max(ke,Ce)?0:1/0}var Oe=Math.max(3,pe.mrc||0),Pe=1-1/Oe,ce=Math.abs(x.c2p(pe.x)-w);return ce=Math.min(ke,Ce)&&S<=Math.max(ke,Ce)?0:1/0}var Oe=Math.max(3,pe.mrc||0),Pe=1-1/Oe,ce=Math.abs(_.c2p(pe.y)-S);return ceie!=(ee=L[q][1])>=ie&&(H=L[q-1][0],G=L[q][0],ee-te&&(W=H+(G-H)*(ie-te)/(ee-te),X=Math.min(X,W),K=Math.max(K,W)));X=Math.max(X,0),K=Math.min(K,x._length);var se=f.defaultLine;return f.opacity(y.fillcolor)?se=y.fillcolor:f.opacity((y.line||{}).color)&&(se=y.line.color),s.extendFlat(h,{distance:h.maxHoverDistance,x0:X,x1:K,y0:ie,y1:ie,color:se,hovertemplate:!1}),delete h.index,y.text&&!Array.isArray(y.text)?h.text=String(y.text):h.text=y.name,[h]}}}},67368:function(i,o,a){var s=a(34098);i.exports={hasLines:s.hasLines,hasMarkers:s.hasMarkers,hasText:s.hasText,isBubble:s.isBubble,attributes:a(82196),layoutAttributes:a(21479),supplyDefaults:a(17438),crossTraceDefaults:a(34936),supplyLayoutDefaults:a(79334),calc:a(47761).calc,crossTraceCalc:a(72626),arraysToCalcdata:a(75225),plot:a(32663),colorbar:a(4898),formatLabels:a(8225),style:a(16296).style,styleOnSelect:a(16296).styleOnSelect,hoverPoints:a(33720),selectPoints:a(98002),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:a(93612),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}},21479:function(i){i.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}},79334:function(i,o,a){var s=a(71828),u=a(21479);i.exports=function(c,d){var f,p=d.barmode==="group";d.scattermode==="group"&&(f=p?d.bargap:.2,s.coerce(c,d,u,"scattergap",f))}},11058:function(i,o,a){var s=a(71828).isArrayOrTypedArray,u=a(52075).hasColorscale,c=a(1586);i.exports=function(d,f,p,h,g,b){b||(b={});var v=(d.marker||{}).color;g("line.color",p),u(d,"line")?c(d,f,h,g,{prefix:"line.",cLetter:"c"}):g("line.color",!s(v)&&v||p),g("line.width"),b.noDash||g("line.dash"),b.backoff&&g("line.backoff")}},34621:function(i,o,a){var s=a(91424),u=a(50606),c=u.BADNUM,d=u.LOG_CLIP,f=d+.5,p=d-.5,h=a(71828),g=h.segmentsIntersect,b=h.constrain,v=a(47581);i.exports=function(m,y){var x,_,w,S,k,C,T,M,O,D,P,E,I,A,F,j,B,z,N=y.trace||{},R=y.xaxis,q=y.yaxis,Y=R.type==="log",L=q.type==="log",W=R._length,H=q._length,G=y.backoff,te=N.marker,ee=y.connectGaps,U=y.baseTolerance,Q=y.shape,V=Q==="linear",X=N.fill&&N.fill!=="none",K=[],ne=v.minTolerance,ae=m.length,ie=new Array(ae),se=0;function pe(et){var ct=m[et];if(!ct)return!1;var ht=y.linearized?R.l2p(ct.x):R.c2p(ct.x),$t=y.linearized?q.l2p(ct.y):q.c2p(ct.y);if(ht===c){if(Y&&(ht=R.c2p(ct.x,!0)),ht===c)return!1;L&&$t===c&&(ht*=Math.abs(R._m*H*(R._m>0?f:p)/(q._m*W*(q._m>0?f:p)))),ht*=1e3}if($t===c){if(L&&($t=q.c2p(ct.y,!0)),$t===c)return!1;$t*=1e3}return[ht,$t]}function ke(et,ct,ht,$t){var kt=ht-et,Wt=$t-ct,wt=.5-et,be=.5-ct,Me=kt*kt+Wt*Wt,Ve=kt*wt+Wt*be;if(Ve>0&&Vexe||et[1]Te)return[b(et[0],me,xe),b(et[1],ye,Te)]}function Re(et,ct){return et[0]===ct[0]&&(et[0]===me||et[0]===xe)||et[1]===ct[1]&&(et[1]===ye||et[1]===Te)||void 0}function Ie(et,ct,ht){return function($t,kt){var Wt=Le($t),wt=Le(kt),be=[];if(Wt&&wt&&Re(Wt,wt))return be;Wt&&be.push(Wt),wt&&be.push(wt);var Me=2*h.constrain(($t[et]+kt[et])/2,ct,ht)-((Wt||$t)[et]+(wt||kt)[et]);return Me&&((Wt&&wt?Me>0==Wt[et]>wt[et]?Wt:wt:Wt||wt)[et]+=Me),be}}function Ne(et){var ct=et[0],ht=et[1],$t=ct===ie[se-1][0],kt=ht===ie[se-1][1];if(!$t||!kt)if(se>1){var Wt=ct===ie[se-2][0],wt=ht===ie[se-2][1];$t&&(ct===me||ct===xe)&&Wt?wt?se--:ie[se-1]=et:kt&&(ht===ye||ht===Te)&&wt?Wt?se--:ie[se-1]=et:ie[se++]=et}else ie[se++]=et}function ze(et){ie[se-1][0]!==et[0]&&ie[se-1][1]!==et[1]&&Ne([we,Z]),Ne(et),re=null,we=Z=0}Q==="linear"||Q==="spline"?_e=function(et,ct){for(var ht=[],$t=0,kt=0;kt<4;kt++){var Wt=Ae[kt],wt=g(et[0],et[1],ct[0],ct[1],Wt[0],Wt[1],Wt[2],Wt[3]);wt&&(!$t||Math.abs(wt.x-ht[0][0])>1||Math.abs(wt.y-ht[0][1])>1)&&(wt=[wt.x,wt.y],$t&&Oe(wt,et)xe?xe:0,ce=et[1]Te?Te:0,Pe||ce){if(se)if(re){var ct=_e(re,et);ct.length>1&&(ze(ct[0]),ie[se++]=ct[1])}else de=_e(ie[se-1],et)[0],ie[se++]=de;else ie[se++]=[Pe||et[0],ce||et[1]];var ht=ie[se-1];Pe&&ce&&(ht[0]!==Pe||ht[1]!==ce)?(re&&(we!==Pe&&Z!==ce?Ne(we&&Z?($t=re,Wt=(kt=et)[0]-$t[0],wt=(kt[1]-$t[1])/Wt,($t[1]*kt[0]-kt[1]*$t[0])/Wt>0?[wt>0?me:xe,Te]:[wt>0?xe:me,ye]):[we||Pe,Z||ce]):we&&Z&&Ne([we,Z])),Ne([Pe,ce])):we-Pe&&Z-ce&&Ne([Pe||we,ce||Z]),re=et,we=Pe,Z=ce}else re&&ze(_e(re,et)[0]),ie[se++]=et;var $t,kt,Wt,wt}for(x=0;xCe(C,Ge))break;w=C,(I=O[0]*M[0]+O[1]*M[1])>P?(P=I,S=C,T=!1):I=m.length||!C)break;We(C),_=C}}else We(S)}re&&Ne([we||re[0],Z||re[1]]),K.push(ie.slice(0,se))}var ot=Q.slice(Q.length-1);if(G&&ot!=="h"&&ot!=="v"){for(var Je=!1,st=-1,bt=[],Be=0;Be=0?h=y:(h=y=m,m++),h0?Math.max(b,p):0}}},4898:function(i){i.exports={container:"marker",min:"cmin",max:"cmax"}},49508:function(i,o,a){var s=a(7901),u=a(52075).hasColorscale,c=a(1586),d=a(34098);i.exports=function(f,p,h,g,b,v){var m=d.isBubble(f),y=(f.line||{}).color;v=v||{},y&&(h=y),b("marker.symbol"),b("marker.opacity",m?.7:1),b("marker.size"),v.noAngle||(b("marker.angle"),v.noAngleRef||b("marker.angleref"),v.noStandOff||b("marker.standoff")),b("marker.color",h),u(f,"marker")&&c(f,p,g,b,{prefix:"marker.",cLetter:"c"}),v.noSelect||(b("selected.marker.color"),b("unselected.marker.color"),b("selected.marker.size"),b("unselected.marker.size")),v.noLine||(b("marker.line.color",y&&!Array.isArray(y)&&p.marker.color!==y?y:m?s.background:s.defaultLine),u(f,"marker.line")&&c(f,p,g,b,{prefix:"marker.line.",cLetter:"c"}),b("marker.line.width",m?1:0)),m&&(b("marker.sizeref"),b("marker.sizemin"),b("marker.sizemode")),v.gradient&&b("marker.gradient.type")!=="none"&&b("marker.gradient.color")}},73927:function(i,o,a){var s=a(71828).dateTick0,u=a(50606).ONEWEEK;function c(d,f){return s(f,d%u==0?1:0)}i.exports=function(d,f,p,h,g){if(g||(g={x:!0,y:!0}),g.x){var b=h("xperiod");b&&(h("xperiod0",c(b,f.xcalendar)),h("xperiodalignment"))}if(g.y){var v=h("yperiod");v&&(h("yperiod0",c(v,f.ycalendar)),h("yperiodalignment"))}}},32663:function(i,o,a){var s=a(39898),u=a(73972),c=a(71828),d=c.ensureSingle,f=c.identity,p=a(91424),h=a(34098),g=a(34621),b=a(68687),v=a(61082).tester;function m(y,x,_,w,S,k,C){var T,M=y._context.staticPlot;(function(_e,ue,me,xe,ye){var Te=me.xaxis,Ae=me.yaxis,Le=s.extent(c.simpleMap(Te.range,Te.r2c)),Re=s.extent(c.simpleMap(Ae.range,Ae.r2c)),Ie=xe[0].trace;if(h.hasMarkers(Ie)){var Ne=Ie.marker.maxdisplayed;if(Ne!==0){var ze=xe.filter(function(ot){return ot.x>=Le[0]&&ot.x<=Le[1]&&ot.y>=Re[0]&&ot.y<=Re[1]}),qe=Math.ceil(ze.length/Ne),We=0;ye.forEach(function(ot,Je){var st=ot[0].trace;h.hasMarkers(st)&&st.marker.maxdisplayed>0&&Je0;function D(_e){return O?_e.transition():_e}var P=_.xaxis,E=_.yaxis,I=w[0].trace,A=I.line,F=s.select(k),j=d(F,"g","errorbars"),B=d(F,"g","lines"),z=d(F,"g","points"),N=d(F,"g","text");if(u.getComponentMethod("errorbars","plot")(y,j,_,C),I.visible===!0){var R,q;D(F).style("opacity",I.opacity);var Y=I.fill.charAt(I.fill.length-1);Y!=="x"&&Y!=="y"&&(Y=""),w[0][_.isRangePlot?"nodeRangePlot3":"node3"]=F;var L,W,H="",G=[],te=I._prevtrace;te&&(H=te._prevRevpath||"",q=te._nextFill,G=te._polygons);var ee,U,Q,V,X,K,ne,ae="",ie="",se=[],pe=c.noop;if(R=I._ownFill,h.hasLines(I)||I.fill!=="none"){for(q&&q.datum(w),["hv","vh","hvh","vhv"].indexOf(A.shape)!==-1?(ee=p.steps(A.shape),U=p.steps(A.shape.split("").reverse().join(""))):ee=U=A.shape==="spline"?function(_e){var ue=_e[_e.length-1];return _e.length>1&&_e[0][0]===ue[0]&&_e[0][1]===ue[1]?p.smoothclosed(_e.slice(1),A.smoothing):p.smoothopen(_e,A.smoothing)}:function(_e){return"M"+_e.join("L")},Q=function(_e){return U(_e.reverse())},se=g(w,{xaxis:P,yaxis:E,trace:I,connectGaps:I.connectgaps,baseTolerance:Math.max(A.width||1,3)/4,shape:A.shape,backoff:A.backoff,simplify:A.simplify,fill:I.fill}),ne=I._polygons=new Array(se.length),T=0;T0,D=b(y,x,_);(C=w.selectAll("g.trace").data(D,function(P){return P[0].trace.uid})).enter().append("g").attr("class",function(P){return"trace scatter trace"+P[0].trace.uid}).style("stroke-miterlimit",2),C.order(),function(P,E,I){E.each(function(A){var F=d(s.select(this),"g","fills");p.setClipUrl(F,I.layerClipId,P);var j=A[0].trace,B=[];j._ownfill&&B.push("_ownFill"),j._nexttrace&&B.push("_nextFill");var z=F.selectAll("g").data(B,f);z.enter().append("g"),z.exit().each(function(N){j[N]=null}).remove(),z.order().each(function(N){j[N]=d(s.select(this),"path","js-fill")})})}(y,C,x),O?(k&&(T=k()),s.transition().duration(S.duration).ease(S.easing).each("end",function(){T&&T()}).each("interrupt",function(){T&&T()}).each(function(){w.selectAll("g.trace").each(function(P,E){m(y,E,x,P,D,this,S)})})):C.each(function(P,E){m(y,E,x,P,D,this,S)}),M&&C.exit().remove(),w.selectAll("path:not([d])").remove()}},98002:function(i,o,a){var s=a(34098);i.exports=function(u,c){var d,f,p,h,g=u.cd,b=u.xaxis,v=u.yaxis,m=[],y=g[0].trace;if(!s.hasMarkers(y)&&!s.hasText(y))return[];if(c===!1)for(d=0;d"),h.hovertemplate=x.hovertemplate,p}function M(O,D){C.push(O._hovertitle+": "+D)}}},52979:function(i,o,a){i.exports={attributes:a(50413),supplyDefaults:a(46008),colorbar:a(4898),formatLabels:a(93645),calc:a(54337),plot:a(7507),style:a(16296).style,styleOnSelect:a(16296).styleOnSelect,hoverPoints:a(47250),selectPoints:a(98002),eventData:a(4524),moduleType:"trace",name:"scatterternary",basePlotModule:a(61639),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}},7507:function(i,o,a){var s=a(32663);i.exports=function(u,c,d){var f=c.plotContainer;f.select(".scatterlayer").selectAll("*").remove();for(var p=c.xaxis,h=c.yaxis,g={xaxis:p,yaxis:h,plot:f,layerClipId:c._hasClipOnAxisFalse?c.clipIdRelative:null},b=c.layers.frontplot.select("g.scatterlayer"),v=0;v0){var O,D,P,E,I,A=p.xa,F=p.ya;w.orientation==="h"?(I=h,O="y",P=F,D="x",E=A):(I=g,O="x",P=A,D="y",E=F);var j=_[p.index];if(I>=j.span[0]&&I<=j.span[1]){var B=u.extendFlat({},p),z=E.c2p(I,!0),N=f.getKdeValue(j,w,I),R=f.getPositionOnKdePath(j,w,z),q=P._offset,Y=P._length;B[O+"0"]=R[0],B[O+"1"]=R[1],B[D+"0"]=B[D+"1"]=z,B[D+"Label"]=D+": "+c.hoverLabelText(E,I,w[D+"hoverformat"])+", "+_[0].t.labels.kde+" "+N.toFixed(3);for(var L=0,W=0;Wz&&(z=Y,N=q)}}return z?A(N):f};case"rms":return function(F,j){for(var B=0,z=0,N=0;N":return function(G){return H(G)>L};case">=":return function(G){return H(G)>=L};case"[]":return function(G){var te=H(G);return te>=L[0]&&te<=L[1]};case"()":return function(G){var te=H(G);return te>L[0]&&te=L[0]&&teL[0]&&te<=L[1]};case"][":return function(G){var te=H(G);return te<=L[0]||te>=L[1]};case")(":return function(G){var te=H(G);return teL[1]};case"](":return function(G){var te=H(G);return te<=L[0]||te>L[1]};case")[":return function(G){var te=H(G);return te=L[1]};case"{}":return function(G){return L.indexOf(H(G))!==-1};case"}{":return function(G){return L.indexOf(H(G))===-1}}}(m,c.getDataToCoordFunc(b,v,x,y),w),D={},P={},E=0;k?(T=function(j){D[j.astr]=s.extendDeep([],j.get()),j.set(new Array(_))},M=function(j,B){var z=D[j.astr][B];j.get()[B]=z}):(T=function(j){D[j.astr]=s.extendDeep([],j.get()),j.set([])},M=function(j,B){var z=D[j.astr][B];j.get().push(z)}),F(T);for(var I=d(v.transforms,m),A=0;A<_;A++)O(y[A])?(F(M,A),P[E++]=I(A)):k&&E++;m._indexToPoints=P,v._length=E}}function F(j,B){for(var z=0;z1?"%{group} (%{trace})":"%{group}");var y=p.styles,x=v.styles=[];if(y)for(b=0;bb)throw new RangeError('The value "'+Z+'" is invalid for option "size"');var re=new Uint8Array(Z);return Object.setPrototypeOf(re,m.prototype),re}function m(Z,re,de){if(typeof Z=="number"){if(typeof re=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _(Z)}return y(Z,re,de)}function y(Z,re,de){if(typeof Z=="string")return function(me,xe){if(typeof xe=="string"&&xe!==""||(xe="utf8"),!m.isEncoding(xe))throw new TypeError("Unknown encoding: "+xe);var ye=0|C(me,xe),Te=v(ye),Ae=Te.write(me,xe);return Ae!==ye&&(Te=Te.slice(0,Ae)),Te}(Z,re);if(ArrayBuffer.isView(Z))return function(me){if(Ce(me,Uint8Array)){var xe=new Uint8Array(me);return S(xe.buffer,xe.byteOffset,xe.byteLength)}return w(me)}(Z);if(Z==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+f(Z));if(Ce(Z,ArrayBuffer)||Z&&Ce(Z.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ce(Z,SharedArrayBuffer)||Z&&Ce(Z.buffer,SharedArrayBuffer)))return S(Z,re,de);if(typeof Z=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var _e=Z.valueOf&&Z.valueOf();if(_e!=null&&_e!==Z)return m.from(_e,re,de);var ue=function(me){if(m.isBuffer(me)){var xe=0|k(me.length),ye=v(xe);return ye.length===0||me.copy(ye,0,0,xe),ye}return me.length!==void 0?typeof me.length!="number"||Oe(me.length)?v(0):w(me):me.type==="Buffer"&&Array.isArray(me.data)?w(me.data):void 0}(Z);if(ue)return ue;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Z[Symbol.toPrimitive]=="function")return m.from(Z[Symbol.toPrimitive]("string"),re,de);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+f(Z))}function x(Z){if(typeof Z!="number")throw new TypeError('"size" argument must be of type number');if(Z<0)throw new RangeError('The value "'+Z+'" is invalid for option "size"')}function _(Z){return x(Z),v(Z<0?0:0|k(Z))}function w(Z){for(var re=Z.length<0?0:0|k(Z.length),de=v(re),_e=0;_e=b)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b.toString(16)+" bytes");return 0|Z}function C(Z,re){if(m.isBuffer(Z))return Z.length;if(ArrayBuffer.isView(Z)||Ce(Z,ArrayBuffer))return Z.byteLength;if(typeof Z!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+f(Z));var de=Z.length,_e=arguments.length>2&&arguments[2]===!0;if(!_e&&de===0)return 0;for(var ue=!1;;)switch(re){case"ascii":case"latin1":case"binary":return de;case"utf8":case"utf-8":return se(Z).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*de;case"hex":return de>>>1;case"base64":return pe(Z).length;default:if(ue)return _e?-1:se(Z).length;re=(""+re).toLowerCase(),ue=!0}}function T(Z,re,de){var _e=!1;if((re===void 0||re<0)&&(re=0),re>this.length||((de===void 0||de>this.length)&&(de=this.length),de<=0)||(de>>>=0)<=(re>>>=0))return"";for(Z||(Z="utf8");;)switch(Z){case"hex":return q(this,re,de);case"utf8":case"utf-8":return B(this,re,de);case"ascii":return N(this,re,de);case"latin1":case"binary":return R(this,re,de);case"base64":return j(this,re,de);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y(this,re,de);default:if(_e)throw new TypeError("Unknown encoding: "+Z);Z=(Z+"").toLowerCase(),_e=!0}}function M(Z,re,de){var _e=Z[re];Z[re]=Z[de],Z[de]=_e}function O(Z,re,de,_e,ue){if(Z.length===0)return-1;if(typeof de=="string"?(_e=de,de=0):de>2147483647?de=2147483647:de<-2147483648&&(de=-2147483648),Oe(de=+de)&&(de=ue?0:Z.length-1),de<0&&(de=Z.length+de),de>=Z.length){if(ue)return-1;de=Z.length-1}else if(de<0){if(!ue)return-1;de=0}if(typeof re=="string"&&(re=m.from(re,_e)),m.isBuffer(re))return re.length===0?-1:D(Z,re,de,_e,ue);if(typeof re=="number")return re&=255,typeof Uint8Array.prototype.indexOf=="function"?ue?Uint8Array.prototype.indexOf.call(Z,re,de):Uint8Array.prototype.lastIndexOf.call(Z,re,de):D(Z,[re],de,_e,ue);throw new TypeError("val must be string, number or Buffer")}function D(Z,re,de,_e,ue){var me,xe=1,ye=Z.length,Te=re.length;if(_e!==void 0&&((_e=String(_e).toLowerCase())==="ucs2"||_e==="ucs-2"||_e==="utf16le"||_e==="utf-16le")){if(Z.length<2||re.length<2)return-1;xe=2,ye/=2,Te/=2,de/=2}function Ae(Ne,ze){return xe===1?Ne[ze]:Ne.readUInt16BE(ze*xe)}if(ue){var Le=-1;for(me=de;meye&&(de=ye-Te),me=de;me>=0;me--){for(var Re=!0,Ie=0;Ieue&&(_e=ue):_e=ue;var me,xe=re.length;for(_e>xe/2&&(_e=xe/2),me=0;me<_e;++me){var ye=parseInt(re.substr(2*me,2),16);if(Oe(ye))return me;Z[de+me]=ye}return me}function E(Z,re,de,_e){return ke(se(re,Z.length-de),Z,de,_e)}function I(Z,re,de,_e){return ke(function(ue){for(var me=[],xe=0;xe>8,Te=xe%256,Ae.push(Te),Ae.push(ye);return Ae}(re,Z.length-de),Z,de,_e)}function j(Z,re,de){return re===0&&de===Z.length?p.fromByteArray(Z):p.fromByteArray(Z.slice(re,de))}function B(Z,re,de){de=Math.min(Z.length,de);for(var _e=[],ue=re;ue239?4:me>223?3:me>191?2:1;if(ue+ye<=de){var Te=void 0,Ae=void 0,Le=void 0,Re=void 0;switch(ye){case 1:me<128&&(xe=me);break;case 2:(192&(Te=Z[ue+1]))==128&&(Re=(31&me)<<6|63&Te)>127&&(xe=Re);break;case 3:Te=Z[ue+1],Ae=Z[ue+2],(192&Te)==128&&(192&Ae)==128&&(Re=(15&me)<<12|(63&Te)<<6|63&Ae)>2047&&(Re<55296||Re>57343)&&(xe=Re);break;case 4:Te=Z[ue+1],Ae=Z[ue+2],Le=Z[ue+3],(192&Te)==128&&(192&Ae)==128&&(192&Le)==128&&(Re=(15&me)<<18|(63&Te)<<12|(63&Ae)<<6|63&Le)>65535&&Re<1114112&&(xe=Re)}}xe===null?(xe=65533,ye=1):xe>65535&&(xe-=65536,_e.push(xe>>>10&1023|55296),xe=56320|1023&xe),_e.push(xe),ue+=ye}return function(Ie){var Ne=Ie.length;if(Ne<=z)return String.fromCharCode.apply(String,Ie);for(var ze="",qe=0;qe"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(m.prototype,"parent",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.buffer}}),Object.defineProperty(m.prototype,"offset",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.byteOffset}}),m.poolSize=8192,m.from=function(Z,re,de){return y(Z,re,de)},Object.setPrototypeOf(m.prototype,Uint8Array.prototype),Object.setPrototypeOf(m,Uint8Array),m.alloc=function(Z,re,de){return function(_e,ue,me){return x(_e),_e<=0?v(_e):ue!==void 0?typeof me=="string"?v(_e).fill(ue,me):v(_e).fill(ue):v(_e)}(Z,re,de)},m.allocUnsafe=function(Z){return _(Z)},m.allocUnsafeSlow=function(Z){return _(Z)},m.isBuffer=function(Z){return Z!=null&&Z._isBuffer===!0&&Z!==m.prototype},m.compare=function(Z,re){if(Ce(Z,Uint8Array)&&(Z=m.from(Z,Z.offset,Z.byteLength)),Ce(re,Uint8Array)&&(re=m.from(re,re.offset,re.byteLength)),!m.isBuffer(Z)||!m.isBuffer(re))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Z===re)return 0;for(var de=Z.length,_e=re.length,ue=0,me=Math.min(de,_e);ue_e.length?(m.isBuffer(me)||(me=m.from(me)),me.copy(_e,ue)):Uint8Array.prototype.set.call(_e,me,ue);else{if(!m.isBuffer(me))throw new TypeError('"list" argument must be an Array of Buffers');me.copy(_e,ue)}ue+=me.length}return _e},m.byteLength=C,m.prototype._isBuffer=!0,m.prototype.swap16=function(){var Z=this.length;if(Z%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var re=0;rere&&(Z+=" ... "),""},g&&(m.prototype[g]=m.prototype.inspect),m.prototype.compare=function(Z,re,de,_e,ue){if(Ce(Z,Uint8Array)&&(Z=m.from(Z,Z.offset,Z.byteLength)),!m.isBuffer(Z))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+f(Z));if(re===void 0&&(re=0),de===void 0&&(de=Z?Z.length:0),_e===void 0&&(_e=0),ue===void 0&&(ue=this.length),re<0||de>Z.length||_e<0||ue>this.length)throw new RangeError("out of range index");if(_e>=ue&&re>=de)return 0;if(_e>=ue)return-1;if(re>=de)return 1;if(this===Z)return 0;for(var me=(ue>>>=0)-(_e>>>=0),xe=(de>>>=0)-(re>>>=0),ye=Math.min(me,xe),Te=this.slice(_e,ue),Ae=Z.slice(re,de),Le=0;Le>>=0,isFinite(de)?(de>>>=0,_e===void 0&&(_e="utf8")):(_e=de,de=void 0)}var ue=this.length-re;if((de===void 0||de>ue)&&(de=ue),Z.length>0&&(de<0||re<0)||re>this.length)throw new RangeError("Attempt to write outside buffer bounds");_e||(_e="utf8");for(var me=!1;;)switch(_e){case"hex":return P(this,Z,re,de);case"utf8":case"utf-8":return E(this,Z,re,de);case"ascii":case"latin1":case"binary":return I(this,Z,re,de);case"base64":return A(this,Z,re,de);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,Z,re,de);default:if(me)throw new TypeError("Unknown encoding: "+_e);_e=(""+_e).toLowerCase(),me=!0}},m.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var z=4096;function N(Z,re,de){var _e="";de=Math.min(Z.length,de);for(var ue=re;ue_e)&&(de=_e);for(var ue="",me=re;mede)throw new RangeError("Trying to access beyond buffer length")}function W(Z,re,de,_e,ue,me){if(!m.isBuffer(Z))throw new TypeError('"buffer" argument must be a Buffer instance');if(re>ue||reZ.length)throw new RangeError("Index out of range")}function H(Z,re,de,_e,ue){K(re,_e,ue,Z,de,7);var me=Number(re&BigInt(4294967295));Z[de++]=me,me>>=8,Z[de++]=me,me>>=8,Z[de++]=me,me>>=8,Z[de++]=me;var xe=Number(re>>BigInt(32)&BigInt(4294967295));return Z[de++]=xe,xe>>=8,Z[de++]=xe,xe>>=8,Z[de++]=xe,xe>>=8,Z[de++]=xe,de}function G(Z,re,de,_e,ue){K(re,_e,ue,Z,de,7);var me=Number(re&BigInt(4294967295));Z[de+7]=me,me>>=8,Z[de+6]=me,me>>=8,Z[de+5]=me,me>>=8,Z[de+4]=me;var xe=Number(re>>BigInt(32)&BigInt(4294967295));return Z[de+3]=xe,xe>>=8,Z[de+2]=xe,xe>>=8,Z[de+1]=xe,xe>>=8,Z[de]=xe,de+8}function te(Z,re,de,_e,ue,me){if(de+_e>Z.length)throw new RangeError("Index out of range");if(de<0)throw new RangeError("Index out of range")}function ee(Z,re,de,_e,ue){return re=+re,de>>>=0,ue||te(Z,0,de,4),h.write(Z,re,de,_e,23,4),de+4}function U(Z,re,de,_e,ue){return re=+re,de>>>=0,ue||te(Z,0,de,8),h.write(Z,re,de,_e,52,8),de+8}m.prototype.slice=function(Z,re){var de=this.length;(Z=~~Z)<0?(Z+=de)<0&&(Z=0):Z>de&&(Z=de),(re=re===void 0?de:~~re)<0?(re+=de)<0&&(re=0):re>de&&(re=de),re>>=0,re>>>=0,de||L(Z,re,this.length);for(var _e=this[Z],ue=1,me=0;++me>>=0,re>>>=0,de||L(Z,re,this.length);for(var _e=this[Z+--re],ue=1;re>0&&(ue*=256);)_e+=this[Z+--re]*ue;return _e},m.prototype.readUint8=m.prototype.readUInt8=function(Z,re){return Z>>>=0,re||L(Z,1,this.length),this[Z]},m.prototype.readUint16LE=m.prototype.readUInt16LE=function(Z,re){return Z>>>=0,re||L(Z,2,this.length),this[Z]|this[Z+1]<<8},m.prototype.readUint16BE=m.prototype.readUInt16BE=function(Z,re){return Z>>>=0,re||L(Z,2,this.length),this[Z]<<8|this[Z+1]},m.prototype.readUint32LE=m.prototype.readUInt32LE=function(Z,re){return Z>>>=0,re||L(Z,4,this.length),(this[Z]|this[Z+1]<<8|this[Z+2]<<16)+16777216*this[Z+3]},m.prototype.readUint32BE=m.prototype.readUInt32BE=function(Z,re){return Z>>>=0,re||L(Z,4,this.length),16777216*this[Z]+(this[Z+1]<<16|this[Z+2]<<8|this[Z+3])},m.prototype.readBigUInt64LE=ce(function(Z){ne(Z>>>=0,"offset");var re=this[Z],de=this[Z+7];re!==void 0&&de!==void 0||ae(Z,this.length-8);var _e=re+this[++Z]*Math.pow(2,8)+this[++Z]*Math.pow(2,16)+this[++Z]*Math.pow(2,24),ue=this[++Z]+this[++Z]*Math.pow(2,8)+this[++Z]*Math.pow(2,16)+de*Math.pow(2,24);return BigInt(_e)+(BigInt(ue)<>>=0,"offset");var re=this[Z],de=this[Z+7];re!==void 0&&de!==void 0||ae(Z,this.length-8);var _e=re*Math.pow(2,24)+this[++Z]*Math.pow(2,16)+this[++Z]*Math.pow(2,8)+this[++Z],ue=this[++Z]*Math.pow(2,24)+this[++Z]*Math.pow(2,16)+this[++Z]*Math.pow(2,8)+de;return(BigInt(_e)<>>=0,re>>>=0,de||L(Z,re,this.length);for(var _e=this[Z],ue=1,me=0;++me=(ue*=128)&&(_e-=Math.pow(2,8*re)),_e},m.prototype.readIntBE=function(Z,re,de){Z>>>=0,re>>>=0,de||L(Z,re,this.length);for(var _e=re,ue=1,me=this[Z+--_e];_e>0&&(ue*=256);)me+=this[Z+--_e]*ue;return me>=(ue*=128)&&(me-=Math.pow(2,8*re)),me},m.prototype.readInt8=function(Z,re){return Z>>>=0,re||L(Z,1,this.length),128&this[Z]?-1*(255-this[Z]+1):this[Z]},m.prototype.readInt16LE=function(Z,re){Z>>>=0,re||L(Z,2,this.length);var de=this[Z]|this[Z+1]<<8;return 32768&de?4294901760|de:de},m.prototype.readInt16BE=function(Z,re){Z>>>=0,re||L(Z,2,this.length);var de=this[Z+1]|this[Z]<<8;return 32768&de?4294901760|de:de},m.prototype.readInt32LE=function(Z,re){return Z>>>=0,re||L(Z,4,this.length),this[Z]|this[Z+1]<<8|this[Z+2]<<16|this[Z+3]<<24},m.prototype.readInt32BE=function(Z,re){return Z>>>=0,re||L(Z,4,this.length),this[Z]<<24|this[Z+1]<<16|this[Z+2]<<8|this[Z+3]},m.prototype.readBigInt64LE=ce(function(Z){ne(Z>>>=0,"offset");var re=this[Z],de=this[Z+7];re!==void 0&&de!==void 0||ae(Z,this.length-8);var _e=this[Z+4]+this[Z+5]*Math.pow(2,8)+this[Z+6]*Math.pow(2,16)+(de<<24);return(BigInt(_e)<>>=0,"offset");var re=this[Z],de=this[Z+7];re!==void 0&&de!==void 0||ae(Z,this.length-8);var _e=(re<<24)+this[++Z]*Math.pow(2,16)+this[++Z]*Math.pow(2,8)+this[++Z];return(BigInt(_e)<>>=0,re||L(Z,4,this.length),h.read(this,Z,!0,23,4)},m.prototype.readFloatBE=function(Z,re){return Z>>>=0,re||L(Z,4,this.length),h.read(this,Z,!1,23,4)},m.prototype.readDoubleLE=function(Z,re){return Z>>>=0,re||L(Z,8,this.length),h.read(this,Z,!0,52,8)},m.prototype.readDoubleBE=function(Z,re){return Z>>>=0,re||L(Z,8,this.length),h.read(this,Z,!1,52,8)},m.prototype.writeUintLE=m.prototype.writeUIntLE=function(Z,re,de,_e){Z=+Z,re>>>=0,de>>>=0,_e||W(this,Z,re,de,Math.pow(2,8*de)-1,0);var ue=1,me=0;for(this[re]=255&Z;++me>>=0,de>>>=0,_e||W(this,Z,re,de,Math.pow(2,8*de)-1,0);var ue=de-1,me=1;for(this[re+ue]=255&Z;--ue>=0&&(me*=256);)this[re+ue]=Z/me&255;return re+de},m.prototype.writeUint8=m.prototype.writeUInt8=function(Z,re,de){return Z=+Z,re>>>=0,de||W(this,Z,re,1,255,0),this[re]=255&Z,re+1},m.prototype.writeUint16LE=m.prototype.writeUInt16LE=function(Z,re,de){return Z=+Z,re>>>=0,de||W(this,Z,re,2,65535,0),this[re]=255&Z,this[re+1]=Z>>>8,re+2},m.prototype.writeUint16BE=m.prototype.writeUInt16BE=function(Z,re,de){return Z=+Z,re>>>=0,de||W(this,Z,re,2,65535,0),this[re]=Z>>>8,this[re+1]=255&Z,re+2},m.prototype.writeUint32LE=m.prototype.writeUInt32LE=function(Z,re,de){return Z=+Z,re>>>=0,de||W(this,Z,re,4,4294967295,0),this[re+3]=Z>>>24,this[re+2]=Z>>>16,this[re+1]=Z>>>8,this[re]=255&Z,re+4},m.prototype.writeUint32BE=m.prototype.writeUInt32BE=function(Z,re,de){return Z=+Z,re>>>=0,de||W(this,Z,re,4,4294967295,0),this[re]=Z>>>24,this[re+1]=Z>>>16,this[re+2]=Z>>>8,this[re+3]=255&Z,re+4},m.prototype.writeBigUInt64LE=ce(function(Z){return H(this,Z,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),m.prototype.writeBigUInt64BE=ce(function(Z){return G(this,Z,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),m.prototype.writeIntLE=function(Z,re,de,_e){if(Z=+Z,re>>>=0,!_e){var ue=Math.pow(2,8*de-1);W(this,Z,re,de,ue-1,-ue)}var me=0,xe=1,ye=0;for(this[re]=255&Z;++me>0)-ye&255;return re+de},m.prototype.writeIntBE=function(Z,re,de,_e){if(Z=+Z,re>>>=0,!_e){var ue=Math.pow(2,8*de-1);W(this,Z,re,de,ue-1,-ue)}var me=de-1,xe=1,ye=0;for(this[re+me]=255&Z;--me>=0&&(xe*=256);)Z<0&&ye===0&&this[re+me+1]!==0&&(ye=1),this[re+me]=(Z/xe>>0)-ye&255;return re+de},m.prototype.writeInt8=function(Z,re,de){return Z=+Z,re>>>=0,de||W(this,Z,re,1,127,-128),Z<0&&(Z=255+Z+1),this[re]=255&Z,re+1},m.prototype.writeInt16LE=function(Z,re,de){return Z=+Z,re>>>=0,de||W(this,Z,re,2,32767,-32768),this[re]=255&Z,this[re+1]=Z>>>8,re+2},m.prototype.writeInt16BE=function(Z,re,de){return Z=+Z,re>>>=0,de||W(this,Z,re,2,32767,-32768),this[re]=Z>>>8,this[re+1]=255&Z,re+2},m.prototype.writeInt32LE=function(Z,re,de){return Z=+Z,re>>>=0,de||W(this,Z,re,4,2147483647,-2147483648),this[re]=255&Z,this[re+1]=Z>>>8,this[re+2]=Z>>>16,this[re+3]=Z>>>24,re+4},m.prototype.writeInt32BE=function(Z,re,de){return Z=+Z,re>>>=0,de||W(this,Z,re,4,2147483647,-2147483648),Z<0&&(Z=4294967295+Z+1),this[re]=Z>>>24,this[re+1]=Z>>>16,this[re+2]=Z>>>8,this[re+3]=255&Z,re+4},m.prototype.writeBigInt64LE=ce(function(Z){return H(this,Z,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),m.prototype.writeBigInt64BE=ce(function(Z){return G(this,Z,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),m.prototype.writeFloatLE=function(Z,re,de){return ee(this,Z,re,!0,de)},m.prototype.writeFloatBE=function(Z,re,de){return ee(this,Z,re,!1,de)},m.prototype.writeDoubleLE=function(Z,re,de){return U(this,Z,re,!0,de)},m.prototype.writeDoubleBE=function(Z,re,de){return U(this,Z,re,!1,de)},m.prototype.copy=function(Z,re,de,_e){if(!m.isBuffer(Z))throw new TypeError("argument should be a Buffer");if(de||(de=0),_e||_e===0||(_e=this.length),re>=Z.length&&(re=Z.length),re||(re=0),_e>0&&_e=this.length)throw new RangeError("Index out of range");if(_e<0)throw new RangeError("sourceEnd out of bounds");_e>this.length&&(_e=this.length),Z.length-re<_e-de&&(_e=Z.length-re+de);var ue=_e-de;return this===Z&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(re,de,_e):Uint8Array.prototype.set.call(Z,this.subarray(de,_e),re),ue},m.prototype.fill=function(Z,re,de,_e){if(typeof Z=="string"){if(typeof re=="string"?(_e=re,re=0,de=this.length):typeof de=="string"&&(_e=de,de=this.length),_e!==void 0&&typeof _e!="string")throw new TypeError("encoding must be a string");if(typeof _e=="string"&&!m.isEncoding(_e))throw new TypeError("Unknown encoding: "+_e);if(Z.length===1){var ue=Z.charCodeAt(0);(_e==="utf8"&&ue<128||_e==="latin1")&&(Z=ue)}}else typeof Z=="number"?Z&=255:typeof Z=="boolean"&&(Z=Number(Z));if(re<0||this.length>>=0,de=de===void 0?this.length:de>>>0,Z||(Z=0),typeof Z=="number")for(me=re;me"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var Le,Re=d(xe);if(ye){var Ie=d(this).constructor;Le=Reflect.construct(Re,arguments,Ie)}else Le=Re.apply(this,arguments);return function(Ne,ze){if(ze&&(f(ze)==="object"||typeof ze=="function"))return ze;if(ze!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return c(Ne)}(this,Le)});function Ae(){var Le;return function(Re,Ie){if(!(Re instanceof Ie))throw new TypeError("Cannot call a class as a function")}(this,Ae),Le=Te.call(this),Object.defineProperty(c(Le),"message",{value:re.apply(c(Le),arguments),writable:!0,configurable:!0}),Le.name="".concat(Le.name," [").concat(Z,"]"),Le.stack,delete Le.name,Le}return ue=Ae,(me=[{key:"code",get:function(){return Z},set:function(Le){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Le,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(Z,"]: ").concat(this.message)}}])&&s(ue.prototype,me),Object.defineProperty(ue,"prototype",{writable:!1}),Ae}(de)}function X(Z){for(var re="",de=Z.length,_e=Z[0]==="-"?1:0;de>=_e+4;de-=3)re="_".concat(Z.slice(de-3,de)).concat(re);return"".concat(Z.slice(0,de)).concat(re)}function K(Z,re,de,_e,ue,me){if(Z>de||Z= 0".concat(ye," and < 2").concat(ye," ** ").concat(8*(me+1)).concat(ye):">= -(2".concat(ye," ** ").concat(8*(me+1)-1).concat(ye,") and < 2 ** ")+"".concat(8*(me+1)-1).concat(ye),new Q.ERR_OUT_OF_RANGE("value",xe,Z)}(function(Te,Ae,Le){ne(Ae,"offset"),Te[Ae]!==void 0&&Te[Ae+Le]!==void 0||ae(Ae,Te.length-(Le+1))})(_e,ue,me)}function ne(Z,re){if(typeof Z!="number")throw new Q.ERR_INVALID_ARG_TYPE(re,"number",Z)}function ae(Z,re,de){throw Math.floor(Z)!==Z?(ne(Z,de),new Q.ERR_OUT_OF_RANGE("offset","an integer",Z)):re<0?new Q.ERR_BUFFER_OUT_OF_BOUNDS:new Q.ERR_OUT_OF_RANGE("offset",">= ".concat(0," and <= ").concat(re),Z)}V("ERR_BUFFER_OUT_OF_BOUNDS",function(Z){return Z?"".concat(Z," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError),V("ERR_INVALID_ARG_TYPE",function(Z,re){return'The "'.concat(Z,'" argument must be of type number. Received type ').concat(f(re))},TypeError),V("ERR_OUT_OF_RANGE",function(Z,re,de){var _e='The value of "'.concat(Z,'" is out of range.'),ue=de;return Number.isInteger(de)&&Math.abs(de)>Math.pow(2,32)?ue=X(String(de)):typeof de=="bigint"&&(ue=String(de),(de>Math.pow(BigInt(2),BigInt(32))||de<-Math.pow(BigInt(2),BigInt(32)))&&(ue=X(ue)),ue+="n"),_e+" It must be ".concat(re,". Received ").concat(ue)},RangeError);var ie=/[^+/0-9A-Za-z-_]/g;function se(Z,re){var de;re=re||1/0;for(var _e=Z.length,ue=null,me=[],xe=0;xe<_e;++xe){if((de=Z.charCodeAt(xe))>55295&&de<57344){if(!ue){if(de>56319){(re-=3)>-1&&me.push(239,191,189);continue}if(xe+1===_e){(re-=3)>-1&&me.push(239,191,189);continue}ue=de;continue}if(de<56320){(re-=3)>-1&&me.push(239,191,189),ue=de;continue}de=65536+(ue-55296<<10|de-56320)}else ue&&(re-=3)>-1&&me.push(239,191,189);if(ue=null,de<128){if((re-=1)<0)break;me.push(de)}else if(de<2048){if((re-=2)<0)break;me.push(de>>6|192,63&de|128)}else if(de<65536){if((re-=3)<0)break;me.push(de>>12|224,de>>6&63|128,63&de|128)}else{if(!(de<1114112))throw new Error("Invalid code point");if((re-=4)<0)break;me.push(de>>18|240,de>>12&63|128,de>>6&63|128,63&de|128)}}return me}function pe(Z){return p.toByteArray(function(re){if((re=(re=re.split("=")[0]).trim().replace(ie,"")).length<2)return"";for(;re.length%4!=0;)re+="=";return re}(Z))}function ke(Z,re,de,_e){var ue;for(ue=0;ue<_e&&!(ue+de>=re.length||ue>=Z.length);++ue)re[ue+de]=Z[ue];return ue}function Ce(Z,re){return Z instanceof re||Z!=null&&Z.constructor!=null&&Z.constructor.name!=null&&Z.constructor.name===re.name}function Oe(Z){return Z!=Z}var Pe=function(){for(var Z="0123456789abcdef",re=new Array(256),de=0;de<16;++de)for(var _e=16*de,ue=0;ue<16;++ue)re[_e+ue]=Z[de]+Z[ue];return re}();function ce(Z){return typeof BigInt>"u"?we:Z}function we(){throw new Error("BigInt not supported")}},35791:function(i){i.exports=u,i.exports.isMobile=u,i.exports.default=u;var o=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,a=/CrOS/,s=/android|ipad|playbook|silk/i;function u(c){c||(c={});var d=c.ua;if(d||typeof navigator>"u"||(d=navigator.userAgent),d&&d.headers&&typeof d.headers["user-agent"]=="string"&&(d=d.headers["user-agent"]),typeof d!="string")return!1;var f=o.test(d)&&!a.test(d)||!!c.tablet&&s.test(d);return!f&&c.tablet&&c.featureDetect&&navigator&&navigator.maxTouchPoints>1&&d.indexOf("Macintosh")!==-1&&d.indexOf("Safari")!==-1&&(f=!0),f}},39898:function(i,o,a){var s,u;(function(){var c={version:"3.8.0"},d=[].slice,f=function($){return d.call($)},p=self.document;function h($){return $&&($.ownerDocument||$.document||$).documentElement}function g($){return $&&($.ownerDocument&&$.ownerDocument.defaultView||$.document&&$||$.defaultView)}if(p)try{f(p.documentElement.childNodes)[0].nodeType}catch{f=function(J){for(var oe=J.length,fe=new Array(oe);oe--;)fe[oe]=J[oe];return fe}}if(Date.now||(Date.now=function(){return+new Date}),p)try{p.createElement("DIV").style.setProperty("opacity",0,"")}catch{var b=this.Element.prototype,v=b.setAttribute,m=b.setAttributeNS,y=this.CSSStyleDeclaration.prototype,x=y.setProperty;b.setAttribute=function(J,oe){v.call(this,J,oe+"")},b.setAttributeNS=function(J,oe,fe){m.call(this,J,oe,fe+"")},y.setProperty=function(J,oe,fe){x.call(this,J,oe+"",fe)}}function _($,J){return $J?1:$>=J?0:NaN}function w($){return $===null?NaN:+$}function S($){return!isNaN($)}function k($){return{left:function(J,oe,fe,he){for(arguments.length<3&&(fe=0),arguments.length<4&&(he=J.length);fe>>1;$(J[ve],oe)<0?fe=ve+1:he=ve}return fe},right:function(J,oe,fe,he){for(arguments.length<3&&(fe=0),arguments.length<4&&(he=J.length);fe>>1;$(J[ve],oe)>0?he=ve:fe=ve+1}return fe}}}c.ascending=_,c.descending=function($,J){return J<$?-1:J>$?1:J>=$?0:NaN},c.min=function($,J){var oe,fe,he=-1,ve=$.length;if(arguments.length===1){for(;++he=fe){oe=fe;break}for(;++hefe&&(oe=fe)}else{for(;++he=fe){oe=fe;break}for(;++hefe&&(oe=fe)}return oe},c.max=function($,J){var oe,fe,he=-1,ve=$.length;if(arguments.length===1){for(;++he=fe){oe=fe;break}for(;++heoe&&(oe=fe)}else{for(;++he=fe){oe=fe;break}for(;++heoe&&(oe=fe)}return oe},c.extent=function($,J){var oe,fe,he,ve=-1,De=$.length;if(arguments.length===1){for(;++ve=fe){oe=he=fe;break}for(;++vefe&&(oe=fe),he=fe){oe=he=fe;break}for(;++vefe&&(oe=fe),he1)return De/($e-1)},c.deviation=function(){var $=c.variance.apply(this,arguments);return $&&Math.sqrt($)};var C=k(_);function T($){return $.length}c.bisectLeft=C.left,c.bisect=c.bisectRight=C.right,c.bisector=function($){return k($.length===1?function(J,oe){return _($(J),oe)}:$)},c.shuffle=function($,J,oe){(ve=arguments.length)<3&&(oe=$.length,ve<2&&(J=0));for(var fe,he,ve=oe-J;ve;)he=Math.random()*ve--|0,fe=$[ve+J],$[ve+J]=$[he+J],$[he+J]=fe;return $},c.permute=function($,J){for(var oe=J.length,fe=new Array(oe);oe--;)fe[oe]=$[J[oe]];return fe},c.pairs=function($){for(var J=0,oe=$.length-1,fe=$[0],he=new Array(oe<0?0:oe);J=0;)for(J=(fe=$[he]).length;--J>=0;)oe[--De]=fe[J];return oe};var M=Math.abs;function O($,J){for(var oe in J)Object.defineProperty($.prototype,oe,{value:J[oe],enumerable:!1})}function D(){this._=Object.create(null)}c.range=function($,J,oe){if(arguments.length<3&&(oe=1,arguments.length<2&&(J=$,$=0)),(J-$)/oe==1/0)throw new Error("infinite range");var fe,he=[],ve=function(Ee){for(var $e=1;Ee*$e%1;)$e*=10;return $e}(M(oe)),De=-1;if($*=ve,J*=ve,(oe*=ve)<0)for(;(fe=$+oe*++De)>J;)he.push(fe/ve);else for(;(fe=$+oe*++De)=fe.length)return J?J.call(oe,$e):$?$e.sort($):$e;for(var He,Xe,at,vt,Mt=-1,ft=$e.length,xt=fe[Fe++],lt=new D;++Mt=fe.length)return Ee;var Fe=[],He=he[$e++];return Ee.forEach(function(Xe,at){Fe.push({key:Xe,values:De(at,$e)})}),He?Fe.sort(function(Xe,at){return He(Xe.key,at.key)}):Fe}return oe.map=function(Ee,$e){return ve($e,Ee,0)},oe.entries=function(Ee){return De(ve(c.map,Ee,0),0)},oe.key=function(Ee){return fe.push(Ee),oe},oe.sortKeys=function(Ee){return he[fe.length-1]=Ee,oe},oe.sortValues=function(Ee){return $=Ee,oe},oe.rollup=function(Ee){return J=Ee,oe},oe},c.set=function($){var J=new R;if($)for(var oe=0,fe=$.length;oe=0&&(fe=$.slice(oe+1),$=$.slice(0,oe)),$)return arguments.length<2?this[$].on(fe):this[$].on(fe,J);if(arguments.length===2){if(J==null)for($ in this)this.hasOwnProperty($)&&this[$].on(fe,null);return this}},c.event=null,c.requote=function($){return $.replace(V,"\\$&")};var V=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,X={}.__proto__?function($,J){$.__proto__=J}:function($,J){for(var oe in J)$[oe]=J[oe]};function K($){return X($,se),$}var ne=function($,J){return J.querySelector($)},ae=function($,J){return J.querySelectorAll($)},ie=function($,J){var oe=$.matches||$[L($,"matchesSelector")];return ie=function(fe,he){return oe.call(fe,he)},ie($,J)};typeof Sizzle=="function"&&(ne=function($,J){return Sizzle($,J)[0]||null},ae=Sizzle,ie=Sizzle.matchesSelector),c.selection=function(){return c.select(p.documentElement)};var se=c.selection.prototype=[];function pe($){return typeof $=="function"?$:function(){return ne($,this)}}function ke($){return typeof $=="function"?$:function(){return ae($,this)}}se.select=function($){var J,oe,fe,he,ve=[];$=pe($);for(var De=-1,Ee=this.length;++De=0&&(oe=$.slice(0,J))!=="xmlns"&&($=$.slice(J+1)),Oe.hasOwnProperty(oe)?{space:Oe[oe],local:$}:$}},se.attr=function($,J){if(arguments.length<2){if(typeof $=="string"){var oe=this.node();return($=c.ns.qualify($)).local?oe.getAttributeNS($.space,$.local):oe.getAttribute($)}for(J in $)this.each(Pe(J,$[J]));return this}return this.each(Pe($,J))},se.classed=function($,J){if(arguments.length<2){if(typeof $=="string"){var oe=this.node(),fe=($=Z($)).length,he=-1;if(J=oe.classList){for(;++he=0;)(oe=fe[he])&&(ve&&ve!==oe.nextSibling&&ve.parentNode.insertBefore(oe,ve),ve=oe);return this},se.sort=function($){$=Ae.apply(this,arguments);for(var J=-1,oe=this.length;++J0&&($=$.slice(0,he));var De=ze.get($);function Ee(){var $e=this[fe];$e&&(this.removeEventListener($,$e,$e.$),delete this[fe])}return De&&($=De,ve=We),he?J?function(){var $e=ve(J,f(arguments));Ee.call(this),this.addEventListener($,this[fe]=$e,$e.$=oe),$e._=J}:Ee:J?H:function(){var $e,Fe=new RegExp("^__on([^.]+)"+c.requote($)+"$");for(var He in this)if($e=He.match(Fe)){var Xe=this[He];this.removeEventListener($e[1],Xe,Xe.$),delete this[He]}}}c.selection.enter=Re,c.selection.enter.prototype=Ie,Ie.append=se.append,Ie.empty=se.empty,Ie.node=se.node,Ie.call=se.call,Ie.size=se.size,Ie.select=function($){for(var J,oe,fe,he,ve,De=[],Ee=-1,$e=this.length;++Ee<$e;){fe=(he=this[Ee]).update,De.push(J=[]),J.parentNode=he.parentNode;for(var Fe=-1,He=he.length;++Fe=fe&&(fe=De+1);!($e=Fe[fe])&&++fe1?ct:$<-1?-ct:Math.asin($)}function Wt($){return(($=Math.exp($))+1/$)/2}var wt=Math.SQRT2;c.interpolateZoom=function($,J){var oe,fe,he=$[0],ve=$[1],De=$[2],Ee=J[0],$e=J[1],Fe=J[2],He=Ee-he,Xe=$e-ve,at=He*He+Xe*Xe;if(at0&&(rn=rn.transition().duration(at)),rn.call(_t.event)}function tn(){De&&De.domain(ve.range().map(function(rn){return(rn-Fe.x)/Fe.k}).map(ve.invert)),$e&&$e.domain(Ee.range().map(function(rn){return(rn-Fe.y)/Fe.k}).map(Ee.invert))}function Tn(rn){vt++||rn({type:"zoomstart"})}function kn(rn){tn(),rn({type:"zoom",scale:Fe.k,translate:[Fe.x,Fe.y]})}function Rn(rn){--vt||(rn({type:"zoomend"}),J=null)}function Cn(){var rn=this,bn=At.of(rn,arguments),Un=0,Gn=c.select(g(rn)).on(ft,function(){Un=1,Vt(c.mouse(rn),nr),kn(bn)}).on(xt,function(){Gn.on(ft,null).on(xt,null),Ar(Un),Rn(bn)}),nr=dt(c.mouse(rn)),Ar=Je(rn);Gg.call(rn),Tn(bn)}function Xn(){var rn,bn=this,Un=At.of(bn,arguments),Gn={},nr=0,Ar=".zoom-"+c.event.changedTouches[0].identifier,ha="touchmove"+Ar,Jr="touchend"+Ar,Aa=[],ma=c.select(bn),Da=Je(bn);function so(){var $a=c.touches(bn);return rn=Fe.k,$a.forEach(function(ga){ga.identifier in Gn&&(Gn[ga.identifier]=dt(ga))}),$a}function Xi(){var $a=c.event.target;c.select($a).on(ha,pl).on(Jr,hl),Aa.push($a);for(var ga=c.event.changedTouches,xo=0,wo=ga.length;xo1){Ul=Do[0];var ks=Do[1],Kg=Ul[0]-ks[0],zO=Ul[1]-ks[1];nr=Kg*Kg+zO*zO}}function pl(){var $a,ga,xo,wo,Do=c.touches(bn);Gg.call(bn);for(var vi=0,Ul=Do.length;vi360?Ee-=360:Ee<0&&(Ee+=360),Ee<60?fe+(he-fe)*Ee/60:Ee<180?he:Ee<240?fe+(he-fe)*(240-Ee)/60:fe}(De))}return $=isNaN($)?0:($%=360)<0?$+360:$,J=isNaN(J)||J<0?0:J>1?1:J,fe=2*(oe=oe<0?0:oe>1?1:oe)-(he=oe<=.5?oe*(1+J):oe+J-oe*J),new Rt(ve($+120),ve($),ve($-120))}function rt($,J,oe){return this instanceof rt?(this.h=+$,this.c=+J,void(this.l=+oe)):arguments.length<2?$ instanceof rt?new rt($.h,$.c,$.l):function(fe,he,ve){return fe>0?new rt(Math.atan2(ve,he)*$t,Math.sqrt(he*he+ve*ve),fe):new rt(NaN,NaN,fe)}($ instanceof nt?$.l:($=zt(($=c.rgb($)).r,$.g,$.b)).l,$.a,$.b):new rt($,J,oe)}Ye.brighter=function($){return $=Math.pow(.7,arguments.length?$:1),new Ze(this.h,this.s,this.l/$)},Ye.darker=function($){return $=Math.pow(.7,arguments.length?$:1),new Ze(this.h,this.s,$*this.l)},Ye.rgb=function(){return Qe(this.h,this.s,this.l)},c.hcl=rt;var ut=rt.prototype=new Ue;function gt($,J,oe){return isNaN($)&&($=0),isNaN(J)&&(J=0),new nt(oe,Math.cos($*=ht)*J,Math.sin($)*J)}function nt($,J,oe){return this instanceof nt?(this.l=+$,this.a=+J,void(this.b=+oe)):arguments.length<2?$ instanceof nt?new nt($.l,$.a,$.b):$ instanceof rt?gt($.h,$.c,$.l):zt(($=Rt($)).r,$.g,$.b):new nt($,J,oe)}ut.brighter=function($){return new rt(this.h,this.c,Math.min(100,this.l+Nt*(arguments.length?$:1)))},ut.darker=function($){return new rt(this.h,this.c,Math.max(0,this.l-Nt*(arguments.length?$:1)))},ut.rgb=function(){return gt(this.h,this.c,this.l).rgb()},c.lab=nt;var Nt=18,Gt=.95047,Ct=1,Ft=1.08883,Et=nt.prototype=new Ue;function mt($,J,oe){var fe=($+16)/116,he=fe+J/500,ve=fe-oe/200;return new Rt(qt(3.2404542*(he=pt(he)*Gt)-1.5371385*(fe=pt(fe)*Ct)-.4985314*(ve=pt(ve)*Ft)),qt(-.969266*he+1.8760108*fe+.041556*ve),qt(.0556434*he-.2040259*fe+1.0572252*ve))}function pt($){return $>.206893034?$*$*$:($-.13793103448275862)/7.787037}function yt($){return $>.008856?Math.pow($,.3333333333333333):7.787037*$+.13793103448275862}function qt($){return Math.round(255*($<=.00304?12.92*$:1.055*Math.pow($,.4166666666666667)-.055))}function Rt($,J,oe){return this instanceof Rt?(this.r=~~$,this.g=~~J,void(this.b=~~oe)):arguments.length<2?$ instanceof Rt?new Rt($.r,$.g,$.b):It(""+$,Rt,Qe):new Rt($,J,oe)}function jt($){return new Rt($>>16,$>>8&255,255&$)}function Tt($){return jt($)+""}Et.brighter=function($){return new nt(Math.min(100,this.l+Nt*(arguments.length?$:1)),this.a,this.b)},Et.darker=function($){return new nt(Math.max(0,this.l-Nt*(arguments.length?$:1)),this.a,this.b)},Et.rgb=function(){return mt(this.l,this.a,this.b)},c.rgb=Rt;var Pt=Rt.prototype=new Ue;function Ot($){return $<16?"0"+Math.max(0,$).toString(16):Math.min(255,$).toString(16)}function It($,J,oe){var fe,he,ve,De=0,Ee=0,$e=0;if(fe=/([a-z]+)\((.*)\)/.exec($=$.toLowerCase()))switch(he=fe[2].split(","),fe[1]){case"hsl":return oe(parseFloat(he[0]),parseFloat(he[1])/100,parseFloat(he[2])/100);case"rgb":return J(Kt(he[0]),Kt(he[1]),Kt(he[2]))}return(ve=Bt.get($))?J(ve.r,ve.g,ve.b):($==null||$.charAt(0)!=="#"||isNaN(ve=parseInt($.slice(1),16))||($.length===4?(De=(3840&ve)>>4,De|=De>>4,Ee=240&ve,Ee|=Ee>>4,$e=15&ve,$e|=$e<<4):$.length===7&&(De=(16711680&ve)>>16,Ee=(65280&ve)>>8,$e=255&ve)),J(De,Ee,$e))}function Lt($,J,oe){var fe,he,ve=Math.min($/=255,J/=255,oe/=255),De=Math.max($,J,oe),Ee=De-ve,$e=(De+ve)/2;return Ee?(he=$e<.5?Ee/(De+ve):Ee/(2-De-ve),fe=$==De?(J-oe)/Ee+(J0&&$e<1?0:fe),new Ze(fe,he,$e)}function zt($,J,oe){var fe=yt((.4124564*($=Xt($))+.3575761*(J=Xt(J))+.1804375*(oe=Xt(oe)))/Gt),he=yt((.2126729*$+.7151522*J+.072175*oe)/Ct);return nt(116*he-16,500*(fe-he),200*(he-yt((.0193339*$+.119192*J+.9503041*oe)/Ft)))}function Xt($){return($/=255)<=.04045?$/12.92:Math.pow(($+.055)/1.055,2.4)}function Kt($){var J=parseFloat($);return $.charAt($.length-1)==="%"?Math.round(2.55*J):J}Pt.brighter=function($){$=Math.pow(.7,arguments.length?$:1);var J=this.r,oe=this.g,fe=this.b,he=30;return J||oe||fe?(J&&J=200&&Xe<300||Xe===304){try{He=oe.call(he,Ee)}catch(at){return void ve.error.call(he,at)}ve.load.call(he,He)}else ve.error.call(he,Ee)}return self.XDomainRequest&&!("withCredentials"in Ee)&&/^(http(s)?:)?\/\//.test($)&&(Ee=new XDomainRequest),"onload"in Ee?Ee.onload=Ee.onerror=Fe:Ee.onreadystatechange=function(){Ee.readyState>3&&Fe()},Ee.onprogress=function(He){var Xe=c.event;c.event=He;try{ve.progress.call(he,Ee)}finally{c.event=Xe}},he.header=function(He,Xe){return He=(He+"").toLowerCase(),arguments.length<2?De[He]:(Xe==null?delete De[He]:De[He]=Xe+"",he)},he.mimeType=function(He){return arguments.length?(J=He==null?null:He+"",he):J},he.responseType=function(He){return arguments.length?($e=He,he):$e},he.response=function(He){return oe=He,he},["get","post"].forEach(function(He){he[He]=function(){return he.send.apply(he,[He].concat(f(arguments)))}}),he.send=function(He,Xe,at){if(arguments.length===2&&typeof Xe=="function"&&(at=Xe,Xe=null),Ee.open(He,$,!0),J==null||"accept"in De||(De.accept=J+",*/*"),Ee.setRequestHeader)for(var vt in De)Ee.setRequestHeader(vt,De[vt]);return J!=null&&Ee.overrideMimeType&&Ee.overrideMimeType(J),$e!=null&&(Ee.responseType=$e),at!=null&&he.on("error",at).on("load",function(Mt){at(null,Mt)}),ve.beforesend.call(he,Ee),Ee.send(Xe??null),he},he.abort=function(){return Ee.abort(),he},c.rebind(he,ve,"on"),fe==null?he:he.get(function(He){return He.length===1?function(Xe,at){He(Xe==null?at:null)}:He}(fe))}Bt.forEach(function($,J){Bt.set($,jt(J))}),c.functor=Ut,c.xhr=on(q),c.dsv=function($,J){var oe=new RegExp('["'+$+` +]`),fe=$.charCodeAt(0);function he(Fe,He,Xe){arguments.length<3&&(Xe=He,He=null);var at=yn(Fe,J,He==null?ve:De(He),Xe);return at.row=function(vt){return arguments.length?at.response((He=vt)==null?ve:De(vt)):He},at}function ve(Fe){return he.parse(Fe.responseText)}function De(Fe){return function(He){return he.parse(He.responseText,Fe)}}function Ee(Fe){return Fe.map($e).join($)}function $e(Fe){return oe.test(Fe)?'"'+Fe.replace(/\"/g,'""')+'"':Fe}return he.parse=function(Fe,He){var Xe;return he.parseRows(Fe,function(at,vt){if(Xe)return Xe(at,vt-1);var Mt=function(ft){for(var xt={},lt=at.length,At=0;At=xt)return Mt;if(at)return at=!1,vt;var Ht=lt;if(Fe.charCodeAt(Ht)===34){for(var Vt=Ht;Vt++24?(isFinite(J)&&(clearTimeout(Jt),Jt=setTimeout(en,J)),hn=0):(hn=1,_n(en))}function Nn(){for(var $=Date.now(),J=pn;J;)$>=J.t&&J.c($-J.t)&&(J.c=null),J=J.n;return $}function An(){for(var $,J=pn,oe=1/0;J;)J.c?(J.t1&&(J=$[ve[De-2]],oe=$[ve[De-1]],fe=$[Ee],(oe[0]-J[0])*(fe[1]-J[1])-(oe[1]-J[1])*(fe[0]-J[0])<=0);)--De;ve[De++]=Ee}return ve.slice(0,De)}function br($,J){return $[0]-J[0]||$[1]-J[1]}c.timer=function(){sn.apply(this,arguments)},c.timer.flush=function(){Nn(),An()},c.round=function($,J){return J?Math.round($*(J=Math.pow(10,J)))/J:Math.round($)},c.geom={},c.geom.hull=function($){var J=Wn,oe=On;if(arguments.length)return fe($);function fe(he){if(he.length<3)return[];var ve,De=Ut(J),Ee=Ut(oe),$e=he.length,Fe=[],He=[];for(ve=0;ve<$e;ve++)Fe.push([+De.call(this,he[ve],ve),+Ee.call(this,he[ve],ve),ve]);for(Fe.sort(br),ve=0;ve<$e;ve++)He.push([Fe[ve][0],-Fe[ve][1]]);var Xe=qn(Fe),at=qn(He),vt=at[0]===Xe[0],Mt=at[at.length-1]===Xe[Xe.length-1],ft=[];for(ve=Xe.length-1;ve>=0;--ve)ft.push(he[Fe[Xe[ve]][2]]);for(ve=+vt;veje)Ee=Ee.L;else{if(!((he=ve-Vr(Ee,De))>je)){fe>-je?(J=Ee.P,oe=Ee):he>-je?(J=Ee,oe=Ee.N):J=oe=Ee;break}if(!Ee.R){J=Ee;break}Ee=Ee.R}var $e=Vn($);if(Zr.insert(J,$e),J||oe){if(J===oe)return Dn(J),oe=Vn(J.site),Zr.insert($e,oe),$e.edge=oe.edge=_a(J.site,$e.site),Ja(J),void Ja(oe);if(oe){Dn(J),Dn(oe);var Fe=J.site,He=Fe.x,Xe=Fe.y,at=$.x-He,vt=$.y-Xe,Mt=oe.site,ft=Mt.x-He,xt=Mt.y-Xe,lt=2*(at*xt-vt*ft),At=at*at+vt*vt,_t=ft*ft+xt*xt,dt={x:(xt*At-vt*_t)/lt+He,y:(at*_t-ft*At)/lt+Xe};_s(oe.edge,Fe,Mt,dt),$e.edge=_a(Fe,$,null,dt),oe.edge=_a($,Mt,null,dt),Ja(J),Ja(oe)}else $e.edge=_a(J.site,$e.site)}}function pa($,J){var oe=$.site,fe=oe.x,he=oe.y,ve=he-J;if(!ve)return fe;var De=$.P;if(!De)return-1/0;var Ee=(oe=De.site).x,$e=oe.y,Fe=$e-J;if(!Fe)return Ee;var He=Ee-fe,Xe=1/ve-1/Fe,at=He/Fe;return Xe?(-at+Math.sqrt(at*at-2*Xe*(He*He/(-2*Fe)-$e+Fe/2+he-ve/2)))/Xe+fe:(fe+Ee)/2}function Vr($,J){var oe=$.N;if(oe)return pa(oe,J);var fe=$.site;return fe.y===J?fe.x:1/0}function Qr($){this.site=$,this.edges=[]}function mi($,J){return J.angle-$.angle}function Ao(){dl(this),this.x=this.y=this.arc=this.site=this.cy=null}function Ja($){var J=$.P,oe=$.N;if(J&&oe){var fe=J.site,he=$.site,ve=oe.site;if(fe!==ve){var De=he.x,Ee=he.y,$e=fe.x-De,Fe=fe.y-Ee,He=ve.x-De,Xe=2*($e*(xt=ve.y-Ee)-Fe*He);if(!(Xe>=-tt)){var at=$e*$e+Fe*Fe,vt=He*He+xt*xt,Mt=(xt*at-Fe*vt)/Xe,ft=($e*vt-He*at)/Xe,xt=ft+Ee,lt=Zn.pop()||new Ao;lt.arc=$,lt.site=he,lt.x=Mt+De,lt.y=xt+Math.sqrt(Mt*Mt+ft*ft),lt.cy=xt,$.circle=lt;for(var At=null,_t=zn._;_t;)if(lt.y<_t.y||lt.y===_t.y&<.x<=_t.x){if(!_t.L){At=_t.P;break}_t=_t.L}else{if(!_t.R){At=_t;break}_t=_t.R}zn.insert(At,lt),At||(Qa=lt)}}}}function Dn($){var J=$.circle;J&&(J.P||(Qa=J.N),zn.remove(J),Zn.push(J),dl(J),$.circle=null)}function ia($,J){var oe=$.b;if(oe)return!0;var fe,he,ve=$.a,De=J[0][0],Ee=J[1][0],$e=J[0][1],Fe=J[1][1],He=$.l,Xe=$.r,at=He.x,vt=He.y,Mt=Xe.x,ft=Xe.y,xt=(at+Mt)/2,lt=(vt+ft)/2;if(ft===vt){if(xt=Ee)return;if(at>Mt){if(ve){if(ve.y>=Fe)return}else ve={x:xt,y:$e};oe={x:xt,y:Fe}}else{if(ve){if(ve.y<$e)return}else ve={x:xt,y:Fe};oe={x:xt,y:$e}}}else if(he=lt-(fe=(at-Mt)/(ft-vt))*xt,fe<-1||fe>1)if(at>Mt){if(ve){if(ve.y>=Fe)return}else ve={x:($e-he)/fe,y:$e};oe={x:(Fe-he)/fe,y:Fe}}else{if(ve){if(ve.y<$e)return}else ve={x:(Fe-he)/fe,y:Fe};oe={x:($e-he)/fe,y:$e}}else if(vt=Ee)return}else ve={x:De,y:fe*De+he};oe={x:Ee,y:fe*Ee+he}}else{if(ve){if(ve.x0)){if(lt/=tn,tn<0){if(lt0){if(lt>nn)return;lt>Vt&&(Vt=lt)}if(lt=Xe-dt,tn||!(lt<0)){if(lt/=tn,tn<0){if(lt>nn)return;lt>Vt&&(Vt=lt)}else if(tn>0){if(lt0)){if(lt/=Tn,Tn<0){if(lt0){if(lt>nn)return;lt>Vt&&(Vt=lt)}if(lt=at-Ht,Tn||!(lt<0)){if(lt/=Tn,Tn<0){if(lt>nn)return;lt>Vt&&(Vt=lt)}else if(Tn>0){if(lt0&&(xt.a={x:dt+Vt*tn,y:Ht+Vt*Tn}),nn<1&&(xt.b={x:dt+nn*tn,y:Ht+nn*Tn}),xt}}}}}),ft=vt.length;ft--;)(!ia($e=vt[ft],Ee)||!Mt($e)||M($e.a.x-$e.b.x)je||M(Xe-Fe)>je)&&(Mt.splice(vt,0,new Ts((tn=at.site,Tn=lt,kn=M(He-At)je?{x:At,y:M($e-At)je?{x:M(Fe-Ht)je?{x:_t,y:M($e-_t)je?{x:M(Fe-dt)=He&<.x<=at&<.y>=Xe&<.y<=vt?[[He,vt],[at,vt],[at,Xe],[He,Xe]]:[]).point=$e[ft]}),Fe}function Ee($e){return $e.map(function(Fe,He){return{x:Math.round(fe(Fe,He)/je)*je,y:Math.round(he(Fe,He)/je)*je,i:He}})}return De.links=function($e){return Bc(Ee($e)).edges.filter(function(Fe){return Fe.l&&Fe.r}).map(function(Fe){return{source:$e[Fe.l.i],target:$e[Fe.r.i]}})},De.triangles=function($e){var Fe=[];return Bc(Ee($e)).cells.forEach(function(He,Xe){for(var at,vt,Mt,ft,xt=He.site,lt=He.edges.sort(mi),At=-1,_t=lt.length,dt=lt[_t-1].edge,Ht=dt.l===xt?dt.r:dt.l;++At<_t;)at=Ht,Ht=(dt=lt[At].edge).l===xt?dt.r:dt.l,Xeve&&(he=J.slice(ve,he),Ee[De]?Ee[De]+=he:Ee[++De]=he),(oe=oe[0])===(fe=fe[0])?Ee[De]?Ee[De]+=fe:Ee[++De]=fe:(Ee[++De]=null,$e.push({i:De,x:ql(oe,fe)})),ve=ew.lastIndex;return velt&&(lt=He.x),He.y>At&&(At=He.y),Xe.push(He.x),at.push(He.y);else for(vt=0;vtlt&&(lt=Ht),Vt>At&&(At=Vt),Xe.push(Ht),at.push(Vt)}var nn=lt-ft,tn=At-xt;function Tn(Cn,Xn,lr,$r,rn,bn,Un,Gn){if(!isNaN(lr)&&!isNaN($r))if(Cn.leaf){var nr=Cn.x,Ar=Cn.y;if(nr!=null)if(M(nr-lr)+M(Ar-$r)<.01)kn(Cn,Xn,lr,$r,rn,bn,Un,Gn);else{var ha=Cn.point;Cn.x=Cn.y=Cn.point=null,kn(Cn,ha,nr,Ar,rn,bn,Un,Gn),kn(Cn,Xn,lr,$r,rn,bn,Un,Gn)}else Cn.x=lr,Cn.y=$r,Cn.point=Xn}else kn(Cn,Xn,lr,$r,rn,bn,Un,Gn)}function kn(Cn,Xn,lr,$r,rn,bn,Un,Gn){var nr=.5*(rn+Un),Ar=.5*(bn+Gn),ha=lr>=nr,Jr=$r>=Ar,Aa=Jr<<1|ha;Cn.leaf=!1,ha?rn=nr:Un=nr,Jr?bn=Ar:Gn=Ar,Tn(Cn=Cn.nodes[Aa]||(Cn.nodes[Aa]={leaf:!0,nodes:[],point:null,x:null,y:null}),Xn,lr,$r,rn,bn,Un,Gn)}nn>tn?At=xt+nn:lt=ft+tn;var Rn={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(Cn){Tn(Rn,Cn,+_t(Cn,++vt),+dt(Cn,vt),ft,xt,lt,At)}};if(Rn.visit=function(Cn){Qf(Cn,Rn,ft,xt,lt,At)},Rn.find=function(Cn){return function(Xn,lr,$r,rn,bn,Un,Gn){var nr,Ar=1/0;return function ha(Jr,Aa,ma,Da,so){if(!(Aa>Un||ma>Gn||Da=Do)<<1|lr>=wo,Ul=vi+4;vi=0&&!(oe=c.interpolators[fe]($,J)););return oe}function Fg($,J){var oe,fe=[],he=[],ve=$.length,De=J.length,Ee=Math.min($.length,J.length);for(oe=0;oe=1)return 1;var J=$*$,oe=J*$;return 4*($<.5?oe:3*($-J)+oe-.75)}function dK($){return 1-Math.cos($*ct)}function fK($){return Math.pow(2,10*($-1))}function pK($){return 1-Math.sqrt(1-$*$)}function hK($){return $<.36363636363636365?7.5625*$*$:$<.7272727272727273?7.5625*($-=.5454545454545454)*$+.75:$<.9090909090909091?7.5625*($-=.8181818181818182)*$+.9375:7.5625*($-=.9545454545454546)*$+.984375}function VP($,J){return J-=$,function(oe){return Math.round($+J*oe)}}function GP($){var J,oe,fe,he=[$.a,$.b],ve=[$.c,$.d],De=XP(he),Ee=YP(he,ve),$e=XP(((J=ve)[0]+=(fe=-Ee)*(oe=he)[0],J[1]+=fe*oe[1],J))||0;he[0]*ve[1]=0?$.slice(0,oe):$,he=oe>=0?$.slice(oe+1):"in";return fe=iK.get(fe)||qP,he=lK.get(he)||q,J=he(fe.apply(null,d.call(arguments,1))),function(ve){return ve<=0?0:ve>=1?1:J(ve)}},c.interpolateHcl=function($,J){$=c.hcl($),J=c.hcl(J);var oe=$.h,fe=$.c,he=$.l,ve=J.h-oe,De=J.c-fe,Ee=J.l-he;return isNaN(De)&&(De=0,fe=isNaN(fe)?J.c:fe),isNaN(ve)?(ve=0,oe=isNaN(oe)?J.h:oe):ve>180?ve-=360:ve<-180&&(ve+=360),function($e){return gt(oe+ve*$e,fe+De*$e,he+Ee*$e)+""}},c.interpolateHsl=function($,J){$=c.hsl($),J=c.hsl(J);var oe=$.h,fe=$.s,he=$.l,ve=J.h-oe,De=J.s-fe,Ee=J.l-he;return isNaN(De)&&(De=0,fe=isNaN(fe)?J.s:fe),isNaN(ve)?(ve=0,oe=isNaN(oe)?J.h:oe):ve>180?ve-=360:ve<-180&&(ve+=360),function($e){return Qe(oe+ve*$e,fe+De*$e,he+Ee*$e)+""}},c.interpolateLab=function($,J){$=c.lab($),J=c.lab(J);var oe=$.l,fe=$.a,he=$.b,ve=J.l-oe,De=J.a-fe,Ee=J.b-he;return function($e){return mt(oe+ve*$e,fe+De*$e,he+Ee*$e)+""}},c.interpolateRound=VP,c.transform=function($){var J=p.createElementNS(c.ns.prefix.svg,"g");return(c.transform=function(oe){if(oe!=null){J.setAttribute("transform",oe);var fe=J.transform.baseVal.consolidate()}return new GP(fe?fe.matrix:mK)})($)},GP.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var mK={a:1,b:0,c:0,d:1,e:0,f:0};function Wc($){return $.length?$.pop()+",":""}function KP($,J){var oe=[],fe=[];return $=c.transform($),J=c.transform(J),function(he,ve,De,Ee){if(he[0]!==ve[0]||he[1]!==ve[1]){var $e=De.push("translate(",null,",",null,")");Ee.push({i:$e-4,x:ql(he[0],ve[0])},{i:$e-2,x:ql(he[1],ve[1])})}else(ve[0]||ve[1])&&De.push("translate("+ve+")")}($.translate,J.translate,oe,fe),function(he,ve,De,Ee){he!==ve?(he-ve>180?ve+=360:ve-he>180&&(he+=360),Ee.push({i:De.push(Wc(De)+"rotate(",null,")")-2,x:ql(he,ve)})):ve&&De.push(Wc(De)+"rotate("+ve+")")}($.rotate,J.rotate,oe,fe),function(he,ve,De,Ee){he!==ve?Ee.push({i:De.push(Wc(De)+"skewX(",null,")")-2,x:ql(he,ve)}):ve&&De.push(Wc(De)+"skewX("+ve+")")}($.skew,J.skew,oe,fe),function(he,ve,De,Ee){if(he[0]!==ve[0]||he[1]!==ve[1]){var $e=De.push(Wc(De)+"scale(",null,",",null,")");Ee.push({i:$e-4,x:ql(he[0],ve[0])},{i:$e-2,x:ql(he[1],ve[1])})}else ve[0]===1&&ve[1]===1||De.push(Wc(De)+"scale("+ve+")")}($.scale,J.scale,oe,fe),$=J=null,function(he){for(var ve,De=-1,Ee=fe.length;++De0?oe=dt:($.c=null,$.t=NaN,$=null,Ee.end({type:"end",alpha:oe=0})):dt>0&&(Ee.start({type:"start",alpha:oe=dt}),$=sn(De.tick)),De):oe},De.start=function(){var dt,Ht,Vt,nn=xt.length,tn=lt.length,Tn=$e[0],kn=$e[1];for(dt=0;dt=0;)oe.push(he[fe])}function fl($,J){for(var oe=[$],fe=[];($=oe.pop())!=null;)if(fe.push($),(ve=$.children)&&(he=ve.length))for(var he,ve,De=-1;++De=0;)De.push(He=Fe[$e]),He.parent=ve,He.depth=ve.depth+1;oe&&(ve.value=0),ve.children=Fe}else oe&&(ve.value=+oe.call(fe,ve,ve.depth)||0),delete ve.children;return fl(he,function(Xe){var at,vt;$&&(at=Xe.children)&&at.sort($),oe&&(vt=Xe.parent)&&(vt.value+=Xe.value)}),Ee}return fe.sort=function(he){return arguments.length?($=he,fe):$},fe.children=function(he){return arguments.length?(J=he,fe):J},fe.value=function(he){return arguments.length?(oe=he,fe):oe},fe.revalue=function(he){return oe&&(ep(he,function(ve){ve.children&&(ve.value=0)}),fl(he,function(ve){var De;ve.children||(ve.value=+oe.call(fe,ve,ve.depth)||0),(De=ve.parent)&&(De.value+=ve.value)})),he},fe},c.layout.partition=function(){var $=c.layout.hierarchy(),J=[1,1];function oe(ve,De,Ee,$e){var Fe=ve.children;if(ve.x=De,ve.y=ve.depth*$e,ve.dx=Ee,ve.dy=$e,Fe&&(He=Fe.length)){var He,Xe,at,vt=-1;for(Ee=ve.value?Ee/ve.value:0;++vtEe&&(Ee=fe),De.push(fe)}for(oe=0;oehe&&(fe=oe,he=J);return fe}function $K($){return $.reduce(NK,0)}function NK($,J){return $+J[1]}function FK($,J){return eO($,Math.ceil(Math.log(J.length)/Math.LN2+1))}function eO($,J){for(var oe=-1,fe=+$[0],he=($[1]-fe)/J,ve=[];++oe<=J;)ve[oe]=he*oe+fe;return ve}function jK($){return[c.min($),c.max($)]}function zK($,J){return $.value-J.value}function rw($,J){var oe=$._pack_next;$._pack_next=J,J._pack_prev=$,J._pack_next=oe,oe._pack_prev=J}function tO($,J){$._pack_next=J,J._pack_prev=$}function nO($,J){var oe=J.x-$.x,fe=J.y-$.y,he=$.r+J.r;return .999*he*he>oe*oe+fe*fe}function rO($){if((J=$.children)&&($e=J.length)){var J,oe,fe,he,ve,De,Ee,$e,Fe=1/0,He=-1/0,Xe=1/0,at=-1/0;if(J.forEach(BK),(oe=J[0]).x=-oe.r,oe.y=0,_t(oe),$e>1&&((fe=J[1]).x=fe.r,fe.y=0,_t(fe),$e>2))for(oO(oe,fe,he=J[2]),_t(he),rw(oe,he),oe._pack_prev=he,rw(he,fe),fe=oe._pack_next,ve=3;ve<$e;ve++){oO(oe,fe,he=J[ve]);var vt=0,Mt=1,ft=1;for(De=fe._pack_next;De!==fe;De=De._pack_next,Mt++)if(nO(De,he)){vt=1;break}if(vt==1)for(Ee=oe._pack_prev;Ee!==De._pack_prev&&!nO(Ee,he);Ee=Ee._pack_prev,ft++);vt?(Mt0)for(De=-1;++De=Xe[0]&&$e<=Xe[1]&&((Ee=Fe[c.bisect(at,$e,1,Mt)-1]).y+=ft,Ee.push(ve[De]));return Fe}return he.value=function(ve){return arguments.length?(J=ve,he):J},he.range=function(ve){return arguments.length?(oe=Ut(ve),he):oe},he.bins=function(ve){return arguments.length?(fe=typeof ve=="number"?function(De){return eO(De,ve)}:Ut(ve),he):fe},he.frequency=function(ve){return arguments.length?($=!!ve,he):$},he},c.layout.pack=function(){var $,J=c.layout.hierarchy().sort(zK),oe=0,fe=[1,1];function he(ve,De){var Ee=J.call(this,ve,De),$e=Ee[0],Fe=fe[0],He=fe[1],Xe=$==null?Math.sqrt:typeof $=="function"?$:function(){return $};if($e.x=$e.y=0,fl($e,function(vt){vt.r=+Xe(vt.value)}),fl($e,rO),oe){var at=oe*($?1:Math.max(2*$e.r/Fe,2*$e.r/He))/2;fl($e,function(vt){vt.r+=at}),fl($e,rO),fl($e,function(vt){vt.r-=at})}return aO($e,Fe/2,He/2,$?1:1/Math.max(2*$e.r/Fe,2*$e.r/He)),Ee}return he.size=function(ve){return arguments.length?(fe=ve,he):fe},he.radius=function(ve){return arguments.length?($=ve==null||typeof ve=="function"?ve:+ve,he):$},he.padding=function(ve){return arguments.length?(oe=+ve,he):oe},Jf(he,J)},c.layout.tree=function(){var $=c.layout.hierarchy().sort(null).value(null),J=iO,oe=[1,1],fe=null;function he($e,Fe){var He=$.call(this,$e,Fe),Xe=He[0],at=function(_t){for(var dt,Ht={A:null,children:[_t]},Vt=[Ht];(dt=Vt.pop())!=null;)for(var nn,tn=dt.children,Tn=0,kn=tn.length;TnMt.x&&(Mt=_t),_t.depth>ft.depth&&(ft=_t)});var xt=J(vt,Mt)/2-vt.x,lt=oe[0]/(Mt.x+J(Mt,vt)/2+xt),At=oe[1]/(ft.depth||1);ep(Xe,function(_t){_t.x=(_t.x+xt)*lt,_t.y=_t.depth*At})}return He}function ve($e){var Fe=$e.children,He=$e.parent.children,Xe=$e.i?He[$e.i-1]:null;if(Fe.length){(function(vt){for(var Mt,ft=0,xt=0,lt=vt.children,At=lt.length;--At>=0;)(Mt=lt[At]).z+=ft,Mt.m+=ft,ft+=Mt.s+(xt+=Mt.c)})($e);var at=(Fe[0].z+Fe[Fe.length-1].z)/2;Xe?($e.z=Xe.z+J($e._,Xe._),$e.m=$e.z-at):$e.z=at}else Xe&&($e.z=Xe.z+J($e._,Xe._));$e.parent.A=function(vt,Mt,ft){if(Mt){for(var xt,lt=vt,At=vt,_t=Mt,dt=lt.parent.children[0],Ht=lt.m,Vt=At.m,nn=_t.m,tn=dt.m;_t=ow(_t),lt=aw(lt),_t&<)dt=aw(dt),(At=ow(At)).a=vt,(xt=_t.z+nn-lt.z-Ht+J(_t._,lt._))>0&&(qK(UK(_t,vt,ft),vt,xt),Ht+=xt,Vt+=xt),nn+=_t.m,Ht+=lt.m,tn+=dt.m,Vt+=At.m;_t&&!ow(At)&&(At.t=_t,At.m+=nn-Vt),lt&&!aw(dt)&&(dt.t=lt,dt.m+=Ht-tn,ft=vt)}return ft}($e,Xe,$e.parent.A||He[0])}function De($e){$e._.x=$e.z+$e.parent.m,$e.m+=$e.parent.m}function Ee($e){$e.x*=oe[0],$e.y=$e.depth*oe[1]}return he.separation=function($e){return arguments.length?(J=$e,he):J},he.size=function($e){return arguments.length?(fe=(oe=$e)==null?Ee:null,he):fe?null:oe},he.nodeSize=function($e){return arguments.length?(fe=(oe=$e)==null?null:Ee,he):fe?oe:null},Jf(he,$)},c.layout.cluster=function(){var $=c.layout.hierarchy().sort(null).value(null),J=iO,oe=[1,1],fe=!1;function he(ve,De){var Ee,$e=$.call(this,ve,De),Fe=$e[0],He=0;fl(Fe,function(ft){var xt=ft.children;xt&&xt.length?(ft.x=function(lt){return lt.reduce(function(At,_t){return At+_t.x},0)/lt.length}(xt),ft.y=function(lt){return 1+c.max(lt,function(At){return At.y})}(xt)):(ft.x=Ee?He+=J(ft,Ee):0,ft.y=0,Ee=ft)});var Xe=lO(Fe),at=sO(Fe),vt=Xe.x-J(Xe,at)/2,Mt=at.x+J(at,Xe)/2;return fl(Fe,fe?function(ft){ft.x=(ft.x-Fe.x)*oe[0],ft.y=(Fe.y-ft.y)*oe[1]}:function(ft){ft.x=(ft.x-vt)/(Mt-vt)*oe[0],ft.y=(1-(Fe.y?ft.y/Fe.y:1))*oe[1]}),$e}return he.separation=function(ve){return arguments.length?(J=ve,he):J},he.size=function(ve){return arguments.length?(fe=(oe=ve)==null,he):fe?null:oe},he.nodeSize=function(ve){return arguments.length?(fe=(oe=ve)!=null,he):fe?oe:null},Jf(he,$)},c.layout.treemap=function(){var $,J=c.layout.hierarchy(),oe=Math.round,fe=[1,1],he=null,ve=iw,De=!1,Ee="squarify",$e=.5*(1+Math.sqrt(5));function Fe(ft,xt){for(var lt,At,_t=-1,dt=ft.length;++_t0;)Ht.push(lt=Vt[_t-1]),Ht.area+=lt.area,Ee!=="squarify"||(At=at(Ht,tn))<=nn?(Vt.pop(),nn=At):(Ht.area-=Ht.pop().area,vt(Ht,tn,dt,!1),tn=Math.min(dt.dx,dt.dy),Ht.length=Ht.area=0,nn=1/0);Ht.length&&(vt(Ht,tn,dt,!0),Ht.length=Ht.area=0),xt.forEach(He)}}function Xe(ft){var xt=ft.children;if(xt&&xt.length){var lt,At=ve(ft),_t=xt.slice(),dt=[];for(Fe(_t,At.dx*At.dy/ft.value),dt.area=0;lt=_t.pop();)dt.push(lt),dt.area+=lt.area,lt.z!=null&&(vt(dt,lt.z?At.dx:At.dy,At,!_t.length),dt.length=dt.area=0);xt.forEach(Xe)}}function at(ft,xt){for(var lt,At=ft.area,_t=0,dt=1/0,Ht=-1,Vt=ft.length;++Ht_t&&(_t=lt));return xt*=xt,(At*=At)?Math.max(xt*_t*$e/At,At/(xt*dt*$e)):1/0}function vt(ft,xt,lt,At){var _t,dt=-1,Ht=ft.length,Vt=lt.x,nn=lt.y,tn=xt?oe(ft.area/xt):0;if(xt==lt.dx){for((At||tn>lt.dy)&&(tn=lt.dy);++dtlt.dx)&&(tn=lt.dx);++dt1);return $+J*fe*Math.sqrt(-2*Math.log(ve)/ve)}},logNormal:function(){var $=c.random.normal.apply(c,arguments);return function(){return Math.exp($())}},bates:function($){var J=c.random.irwinHall($);return function(){return J()/$}},irwinHall:function($){return function(){for(var J=0,oe=0;oe<$;oe++)J+=Math.random();return J}}},c.scale={};var VK={floor:q,ceil:q};function GK($,J,oe,fe){var he=[],ve=[],De=0,Ee=Math.min($.length,J.length)-1;for($[Ee]<$[0]&&($=$.slice().reverse(),J=J.slice().reverse());++De<=Ee;)he.push(oe($[De-1],$[De])),ve.push(fe(J[De-1],J[De]));return function($e){var Fe=c.bisect($,$e,1,Ee)-1;return ve[Fe](he[Fe]($e))}}function dO($,J,oe,fe){var he,ve;function De(){var $e=Math.min($.length,J.length)>2?GK:HK,Fe=fe?vK:gK;return he=$e($,J,Fe,oe),ve=$e(J,$,Fe,xu),Ee}function Ee($e){return he($e)}return Ee.invert=function($e){return ve($e)},Ee.domain=function($e){return arguments.length?($=$e.map(Number),De()):$},Ee.range=function($e){return arguments.length?(J=$e,De()):J},Ee.rangeRound=function($e){return Ee.range($e).interpolate(VP)},Ee.clamp=function($e){return arguments.length?(fe=$e,De()):fe},Ee.interpolate=function($e){return arguments.length?(oe=$e,De()):oe},Ee.ticks=function($e){return uw($,$e)},Ee.tickFormat=function($e,Fe){return d3_scale_linearTickFormat($,$e,Fe)},Ee.nice=function($e){return pO($,$e),De()},Ee.copy=function(){return dO($,J,oe,fe)},De()}function fO($,J){return c.rebind($,J,"range","rangeRound","interpolate","clamp")}function pO($,J){return lw($,cO(sw($,J)[2])),lw($,cO(sw($,J)[2])),$}function sw($,J){J==null&&(J=10);var oe=jg($),fe=oe[1]-oe[0],he=Math.pow(10,Math.floor(Math.log(fe/J)/Math.LN10)),ve=J/fe*he;return ve<=.15?he*=10:ve<=.35?he*=5:ve<=.75&&(he*=2),oe[0]=Math.ceil(oe[0]/he)*he,oe[1]=Math.floor(oe[1]/he)*he+.5*he,oe[2]=he,oe}function uw($,J){return c.range.apply(c,sw($,J))}function hO($,J,oe,fe){function he(Ee){return(oe?Math.log(Ee<0?0:Ee):-Math.log(Ee>0?0:-Ee))/Math.log(J)}function ve(Ee){return oe?Math.pow(J,Ee):-Math.pow(J,-Ee)}function De(Ee){return $(he(Ee))}return De.invert=function(Ee){return ve($.invert(Ee))},De.domain=function(Ee){return arguments.length?(oe=Ee[0]>=0,$.domain((fe=Ee.map(Number)).map(he)),De):fe},De.base=function(Ee){return arguments.length?(J=+Ee,$.domain(fe.map(he)),De):J},De.nice=function(){var Ee=lw(fe.map(he),oe?Math:YK);return $.domain(Ee),fe=Ee.map(ve),De},De.ticks=function(){var Ee=jg(fe),$e=[],Fe=Ee[0],He=Ee[1],Xe=Math.floor(he(Fe)),at=Math.ceil(he(He)),vt=J%1?2:J;if(isFinite(at-Xe)){if(oe){for(;Xe0;Mt--)$e.push(ve(Xe)*Mt);for(Xe=0;$e[Xe]He;at--);$e=$e.slice(Xe,at)}return $e},De.copy=function(){return hO($.copy(),J,oe,fe)},fO(De,$)}c.scale.linear=function(){return dO([0,1],[0,1],xu,!1)},c.scale.log=function(){return hO(c.scale.linear().domain([0,1]),10,!0,[1,10])};var YK={floor:function($){return-Math.ceil(-$)},ceil:function($){return-Math.floor(-$)}};function mO($,J,oe){var fe=Bg(J),he=Bg(1/J);function ve(De){return $(fe(De))}return ve.invert=function(De){return he($.invert(De))},ve.domain=function(De){return arguments.length?($.domain((oe=De.map(Number)).map(fe)),ve):oe},ve.ticks=function(De){return uw(oe,De)},ve.tickFormat=function(De,Ee){return d3_scale_linearTickFormat(oe,De,Ee)},ve.nice=function(De){return ve.domain(pO(oe,De))},ve.exponent=function(De){return arguments.length?(fe=Bg(J=De),he=Bg(1/J),$.domain(oe.map(fe)),ve):J},ve.copy=function(){return mO($.copy(),J,oe)},fO(ve,$)}function Bg($){return function(J){return J<0?-Math.pow(-J,$):Math.pow(J,$)}}function gO($,J){var oe,fe,he;function ve(Ee){return fe[((oe.get(Ee)||(J.t==="range"?oe.set(Ee,$.push(Ee)):NaN))-1)%fe.length]}function De(Ee,$e){return c.range($.length).map(function(Fe){return Ee+$e*Fe})}return ve.domain=function(Ee){if(!arguments.length)return $;$=[],oe=new D;for(var $e,Fe=-1,He=Ee.length;++Fe0?oe[ve-1]:$[0],veat?0:1;if(He=et)return $e(He,Mt)+(Fe?$e(Fe,1-Mt):"")+"Z";var ft,xt,lt,At,_t,dt,Ht,Vt,nn,tn,Tn,kn,Rn=0,Cn=0,Xn=[];if((At=(+De.apply(this,arguments)||0)/2)&&(lt=fe===Wg?Math.sqrt(Fe*Fe+He*He):+fe.apply(this,arguments),Mt||(Cn*=-1),He&&(Cn=kt(lt/He*Math.sin(At))),Fe&&(Rn=kt(lt/Fe*Math.sin(At)))),He){_t=He*Math.cos(Xe+Cn),dt=He*Math.sin(Xe+Cn),Ht=He*Math.cos(at-Cn),Vt=He*Math.sin(at-Cn);var lr=Math.abs(at-Xe-2*Cn)<=it?0:1;if(Cn&&qg(_t,dt,Ht,Vt)===Mt^lr){var $r=(Xe+at)/2;_t=He*Math.cos($r),dt=He*Math.sin($r),Ht=Vt=null}}else _t=dt=0;if(Fe){nn=Fe*Math.cos(at-Rn),tn=Fe*Math.sin(at-Rn),Tn=Fe*Math.cos(Xe+Rn),kn=Fe*Math.sin(Xe+Rn);var rn=Math.abs(Xe-at+2*Rn)<=it?0:1;if(Rn&&qg(nn,tn,Tn,kn)===1-Mt^rn){var bn=(Xe+at)/2;nn=Fe*Math.cos(bn),tn=Fe*Math.sin(bn),Tn=kn=null}}else nn=tn=0;if(vt>je&&(ft=Math.min(Math.abs(He-Fe)/2,+oe.apply(this,arguments)))>.001){xt=Fe0?0:1}function Ug($,J,oe,fe,he){var ve=$[0]-J[0],De=$[1]-J[1],Ee=(he?fe:-fe)/Math.sqrt(ve*ve+De*De),$e=Ee*De,Fe=-Ee*ve,He=$[0]+$e,Xe=$[1]+Fe,at=J[0]+$e,vt=J[1]+Fe,Mt=(He+at)/2,ft=(Xe+vt)/2,xt=at-He,lt=vt-Xe,At=xt*xt+lt*lt,_t=oe-fe,dt=He*vt-at*Xe,Ht=(lt<0?-1:1)*Math.sqrt(Math.max(0,_t*_t*At-dt*dt)),Vt=(dt*lt-xt*Ht)/At,nn=(-dt*xt-lt*Ht)/At,tn=(dt*lt+xt*Ht)/At,Tn=(-dt*xt+lt*Ht)/At,kn=Vt-Mt,Rn=nn-ft,Cn=tn-Mt,Xn=Tn-ft;return kn*kn+Rn*Rn>Cn*Cn+Xn*Xn&&(Vt=tn,nn=Tn),[[Vt-$e,nn-Fe],[Vt*oe/_t,nn*oe/_t]]}function TO(){return!0}function SO($){var J=Wn,oe=On,fe=TO,he=Yi,ve=he.key,De=.7;function Ee($e){var Fe,He=[],Xe=[],at=-1,vt=$e.length,Mt=Ut(J),ft=Ut(oe);function xt(){He.push("M",he($(Xe),De))}for(;++at1&&he.push("H",fe[0]),he.join("")},"step-before":dw,"step-after":fw,basis:CO,"basis-open":function($){if($.length<4)return Yi($);for(var J,oe=[],fe=-1,he=$.length,ve=[0],De=[0];++fe<3;)J=$[fe],ve.push(J[0]),De.push(J[1]);for(oe.push(gi(Ss,ve)+","+gi(Ss,De)),--fe;++fe9&&(ve=3*oe/Math.sqrt(ve),Ee[$e]=ve*fe,Ee[$e+1]=ve*he);for($e=-1;++$e<=Fe;)ve=(J[Math.min(Fe,$e+1)][0]-J[Math.max(0,$e-1)][0])/(6*(1+Ee[$e]*Ee[$e])),De.push([ve||0,Ee[$e]*ve||0]);return De}($))}});function Yi($){return $.length>1?$.join("L"):$+"Z"}function kO($){return $.join("L")+"Z"}function dw($){for(var J=0,oe=$.length,fe=$[0],he=[fe[0],",",fe[1]];++J1){Ee=J[1],ve=$[$e],$e++,fe+="C"+(he[0]+De[0])+","+(he[1]+De[1])+","+(ve[0]-Ee[0])+","+(ve[1]-Ee[1])+","+ve[0]+","+ve[1];for(var Fe=2;Feit)+",1 "+He}function $e(Fe,He,Xe,at){return"Q 0,0 "+at}return ve.radius=function(Fe){return arguments.length?(oe=Ut(Fe),ve):oe},ve.source=function(Fe){return arguments.length?($=Ut(Fe),ve):$},ve.target=function(Fe){return arguments.length?(J=Ut(Fe),ve):J},ve.startAngle=function(Fe){return arguments.length?(fe=Ut(Fe),ve):fe},ve.endAngle=function(Fe){return arguments.length?(he=Ut(Fe),ve):he},ve},c.svg.diagonal=function(){var $=DO,J=EO,oe=RO;function fe(he,ve){var De=$.call(this,he,ve),Ee=J.call(this,he,ve),$e=(De.y+Ee.y)/2,Fe=[De,{x:De.x,y:$e},{x:Ee.x,y:$e},Ee];return"M"+(Fe=Fe.map(oe))[0]+"C"+Fe[1]+" "+Fe[2]+" "+Fe[3]}return fe.source=function(he){return arguments.length?($=Ut(he),fe):$},fe.target=function(he){return arguments.length?(J=Ut(he),fe):J},fe.projection=function(he){return arguments.length?(oe=he,fe):oe},fe},c.svg.diagonal.radial=function(){var $=c.svg.diagonal(),J=RO,oe=$.projection;return $.projection=function(fe){return arguments.length?oe(function(he){return function(){var ve=he.apply(this,arguments),De=ve[0],Ee=ve[1]-ct;return[De*Math.cos(Ee),De*Math.sin(Ee)]}}(J=fe)):J},$},c.svg.symbol=function(){var $=oZ,J=aZ;function oe(fe,he){return(IO.get($.call(this,fe,he))||LO)(J.call(this,fe,he))}return oe.type=function(fe){return arguments.length?($=Ut(fe),oe):$},oe.size=function(fe){return arguments.length?(J=Ut(fe),oe):J},oe};var IO=c.map({circle:LO,cross:function($){var J=Math.sqrt($/5)/2;return"M"+-3*J+","+-J+"H"+-J+"V"+-3*J+"H"+J+"V"+-J+"H"+3*J+"V"+J+"H"+J+"V"+3*J+"H"+-J+"V"+J+"H"+-3*J+"Z"},diamond:function($){var J=Math.sqrt($/(2*$O)),oe=J*$O;return"M0,"+-J+"L"+oe+",0 0,"+J+" "+-oe+",0Z"},square:function($){var J=Math.sqrt($)/2;return"M"+-J+","+-J+"L"+J+","+-J+" "+J+","+J+" "+-J+","+J+"Z"},"triangle-down":function($){var J=Math.sqrt($/Vg),oe=J*Vg/2;return"M0,"+oe+"L"+J+","+-oe+" "+-J+","+-oe+"Z"},"triangle-up":function($){var J=Math.sqrt($/Vg),oe=J*Vg/2;return"M0,"+-oe+"L"+J+","+oe+" "+-J+","+oe+"Z"}});c.svg.symbolTypes=IO.keys();var Vg=Math.sqrt(3),$O=Math.tan(30*ht);se.transition=function($){for(var J,oe,fe=wu||++FO,he=vw($),ve=[],De=Yg||{time:Date.now(),ease:cK,delay:0,duration:250},Ee=-1,$e=this.length;++Ee<$e;){ve.push(J=[]);for(var Fe=this[Ee],He=-1,Xe=Fe.length;++He0;)Fe[--lt].call($,xt);if(ft>=1)return Xe.event&&Xe.event.end.call($,$.__data__,J),--He.count?delete He[fe]:delete $[oe],1}Xe||(ve=he.time,De=sn(function(Mt){var ft=Xe.delay;if(De.t=ft+ve,ft<=Mt)return at(Mt-ft);De.c=at},0,ve),Xe=He[fe]={tween:new D,time:ve,timer:De,delay:he.delay,duration:he.duration,ease:he.ease,index:J},he=null,++He.count)}Ta.call=se.call,Ta.empty=se.empty,Ta.node=se.node,Ta.size=se.size,c.transition=function($,J){return $&&$.transition?wu?$.transition(J):$:c.selection().transition($)},c.transition.prototype=Ta,Ta.select=function($){var J,oe,fe,he=this.id,ve=this.namespace,De=[];$=pe($);for(var Ee=-1,$e=this.length;++Ee<$e;){De.push(J=[]);for(var Fe=this[Ee],He=-1,Xe=Fe.length;++Herect,.s>rect").attr("width",ve[1]-ve[0])}function vt(ft){ft.select(".extent").attr("y",De[0]),ft.selectAll(".extent,.e>rect,.w>rect").attr("height",De[1]-De[0])}function Mt(){var ft,xt,lt=this,At=c.select(c.event.target),_t=oe.of(lt,arguments),dt=c.select(lt),Ht=At.datum(),Vt=!/^(n|s)$/.test(Ht)&&fe,nn=!/^(e|w)$/.test(Ht)&&he,tn=At.classed("extent"),Tn=Je(lt),kn=c.mouse(lt),Rn=c.select(g(lt)).on("keydown.brush",function(){c.event.keyCode==32&&(tn||(ft=null,kn[0]-=ve[1],kn[1]-=De[1],tn=2),ee())}).on("keyup.brush",function(){c.event.keyCode==32&&tn==2&&(kn[0]+=ve[1],kn[1]+=De[1],tn=0,ee())});if(c.event.changedTouches?Rn.on("touchmove.brush",lr).on("touchend.brush",rn):Rn.on("mousemove.brush",lr).on("mouseup.brush",rn),dt.interrupt().selectAll("*").interrupt(),tn)kn[0]=ve[0]-kn[0],kn[1]=De[0]-kn[1];else if(Ht){var Cn=+/w$/.test(Ht),Xn=+/^n/.test(Ht);xt=[ve[1-Cn]-kn[0],De[1-Xn]-kn[1]],kn[0]=ve[Cn],kn[1]=De[Xn]}else c.event.altKey&&(ft=kn.slice());function lr(){var bn=c.mouse(lt),Un=!1;xt&&(bn[0]+=xt[0],bn[1]+=xt[1]),tn||(c.event.altKey?(ft||(ft=[(ve[0]+ve[1])/2,(De[0]+De[1])/2]),kn[0]=ve[+(bn[0]1?L-1:0),H=1;H1?L-1:0),H=1;H1?L-1:0),H=1;H1?L-1:0),H=1;H"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}()?Reflect.construct:function(I,A,F){var j=[null];j.push.apply(j,A);var z=new(Function.bind.apply(I,j));return F&&g(z,F.prototype),z},m.apply(null,arguments)}function g(D,P){return g=Object.setPrototypeOf||function(E,I){return E.__proto__=I,E},g(D,P)}function b(D){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(P){return P.__proto__||Object.getPrototypeOf(P)},b(D)}function v(D){return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},v(D)}var h=a(43827).inspect,y=a(79616).codes.ERR_INVALID_ARG_TYPE;function w(D,P,E){return(E===void 0||E>D.length)&&(E=D.length),D.substring(E-P.length,E)===P}var _="",x="",T="",k="",S={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function C(D){var P=Object.keys(D),E=Object.create(Object.getPrototypeOf(D));return P.forEach(function(I){E[I]=D[I]}),Object.defineProperty(E,"message",{value:D.message}),E}function M(D){return h(D,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var O=function(D){function P(A){var F;if(function(te,ee){if(!(te instanceof ee))throw new TypeError("Cannot call a class as a function")}(this,P),v(A)!=="object"||A===null)throw new y("options","Object",A);var j=A.message,z=A.operator,B=A.stackStartFn,N=A.actual,R=A.expected,q=Error.stackTraceLimit;if(Error.stackTraceLimit=0,j!=null)F=d(this,b(P).call(this,String(j)));else if(s.stderr&&s.stderr.isTTY&&(s.stderr&&s.stderr.getColorDepth&&s.stderr.getColorDepth()!==1?(_="\x1B[34m",x="\x1B[32m",k="\x1B[39m",T="\x1B[31m"):(_="",x="",k="",T="")),v(N)==="object"&&N!==null&&v(R)==="object"&&R!==null&&"stack"in N&&N instanceof Error&&"stack"in R&&R instanceof Error&&(N=C(N),R=C(R)),z==="deepStrictEqual"||z==="strictEqual")F=d(this,b(P).call(this,function(te,ee,H){var Z="",G="",X=0,Q="",re=!1,ae=M(te),ie=ae.split(` +`).concat(G.join(` +`))}throw W}},M.strict=S(R,M,{equal:M.strictEqual,deepEqual:M.deepStrictEqual,notEqual:M.notStrictEqual,notDeepEqual:M.notDeepStrictEqual}),M.strict.strict=M.strict},73894:function(i,o,a){var s=a(90386);function u(D,P,E){return P in D?Object.defineProperty(D,P,{value:E,enumerable:!0,configurable:!0,writable:!0}):D[P]=E,D}function c(D,P){for(var E=0;E"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}()?Reflect.construct:function(I,A,F){var j=[null];j.push.apply(j,A);var B=new(Function.bind.apply(I,j));return F&&g(B,F.prototype),B},h.apply(null,arguments)}function g(D,P){return g=Object.setPrototypeOf||function(E,I){return E.__proto__=I,E},g(D,P)}function b(D){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(P){return P.__proto__||Object.getPrototypeOf(P)},b(D)}function v(D){return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},v(D)}var m=a(43827).inspect,y=a(79616).codes.ERR_INVALID_ARG_TYPE;function x(D,P,E){return(E===void 0||E>D.length)&&(E=D.length),D.substring(E-P.length,E)===P}var _="",w="",S="",k="",C={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function T(D){var P=Object.keys(D),E=Object.create(Object.getPrototypeOf(D));return P.forEach(function(I){E[I]=D[I]}),Object.defineProperty(E,"message",{value:D.message}),E}function M(D){return m(D,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var O=function(D){function P(A){var F;if(function(te,ee){if(!(te instanceof ee))throw new TypeError("Cannot call a class as a function")}(this,P),v(A)!=="object"||A===null)throw new y("options","Object",A);var j=A.message,B=A.operator,z=A.stackStartFn,N=A.actual,R=A.expected,q=Error.stackTraceLimit;if(Error.stackTraceLimit=0,j!=null)F=d(this,b(P).call(this,String(j)));else if(s.stderr&&s.stderr.isTTY&&(s.stderr&&s.stderr.getColorDepth&&s.stderr.getColorDepth()!==1?(_="\x1B[34m",w="\x1B[32m",k="\x1B[39m",S="\x1B[31m"):(_="",w="",k="",S="")),v(N)==="object"&&N!==null&&v(R)==="object"&&R!==null&&"stack"in N&&N instanceof Error&&"stack"in R&&R instanceof Error&&(N=T(N),R=T(R)),B==="deepStrictEqual"||B==="strictEqual")F=d(this,b(P).call(this,function(te,ee,U){var Q="",V="",X=0,K="",ne=!1,ae=M(te),ie=ae.split(` `),se=M(ee).split(` -`),he=0,Se="";if(H==="strictEqual"&&v(te)==="object"&&v(ee)==="object"&&te!==null&&ee!==null&&(H="strictEqualObject"),ie.length===1&&se.length===1&&ie[0]!==se[0]){var Oe=ie[0].length+se[0].length;if(Oe<=10){if(!(v(te)==="object"&&te!==null||v(ee)==="object"&&ee!==null||te===0&&ee===0))return"".concat(S[H],` +`),pe=0,ke="";if(U==="strictEqual"&&v(te)==="object"&&v(ee)==="object"&&te!==null&&ee!==null&&(U="strictEqualObject"),ie.length===1&&se.length===1&&ie[0]!==se[0]){var Ce=ie[0].length+se[0].length;if(Ce<=10){if(!(v(te)==="object"&&te!==null||v(ee)==="object"&&ee!==null||te===0&&ee===0))return"".concat(C[U],` `)+"".concat(ie[0]," !== ").concat(se[0],` -`)}else if(H!=="strictEqualObject"&&Oe<(s.stderr&&s.stderr.isTTY?s.stderr.columns:80)){for(;ie[0][he]===se[0][he];)he++;he>2&&(Se=` - `.concat(function(ye,Te){if(Te=Math.floor(Te),ye.length==0||Te==0)return"";var Ae=ye.length*Te;for(Te=Math.floor(Math.log(Te)/Math.log(2));Te;)ye+=ye,Te--;return ye+ye.substring(0,Ae-ye.length)}(" ",he),"^"),he=0)}}for(var Pe=ie[ie.length-1],Me=se[se.length-1];Pe===Me&&(he++<2?Q=` - `.concat(Pe).concat(Q):Z=Pe,ie.pop(),se.pop(),ie.length!==0&&se.length!==0);)Pe=ie[ie.length-1],Me=se[se.length-1];var ce=Math.max(ie.length,se.length);if(ce===0){var we=ae.split(` -`);if(we.length>30)for(we[26]="".concat(_,"...").concat(k);we.length>27;)we.pop();return"".concat(S.notIdentical,` +`)}else if(U!=="strictEqualObject"&&Ce<(s.stderr&&s.stderr.isTTY?s.stderr.columns:80)){for(;ie[0][pe]===se[0][pe];)pe++;pe>2&&(ke=` + `.concat(function(ye,Te){if(Te=Math.floor(Te),ye.length==0||Te==0)return"";var Ae=ye.length*Te;for(Te=Math.floor(Math.log(Te)/Math.log(2));Te;)ye+=ye,Te--;return ye+ye.substring(0,Ae-ye.length)}(" ",pe),"^"),pe=0)}}for(var Oe=ie[ie.length-1],Pe=se[se.length-1];Oe===Pe&&(pe++<2?K=` + `.concat(Oe).concat(K):Q=Oe,ie.pop(),se.pop(),ie.length!==0&&se.length!==0);)Oe=ie[ie.length-1],Pe=se[se.length-1];var ce=Math.max(ie.length,se.length);if(ce===0){var we=ae.split(` +`);if(we.length>30)for(we[26]="".concat(_,"...").concat(k);we.length>27;)we.pop();return"".concat(C.notIdentical,` `).concat(we.join(` `),` -`)}he>3&&(Q=` -`.concat(_,"...").concat(k).concat(Q),re=!0),Z!==""&&(Q=` - `.concat(Z).concat(Q),Z="");var K=0,ne=S[H]+` -`.concat(x,"+ actual").concat(k," ").concat(T,"- expected").concat(k),de=" ".concat(_,"...").concat(k," Lines skipped");for(he=0;he1&&he>2&&(_e>4?(G+=` -`.concat(_,"...").concat(k),re=!0):_e>3&&(G+=` - `.concat(se[he-2]),K++),G+=` - `.concat(se[he-1]),K++),X=he,Z+=` -`.concat(T,"-").concat(k," ").concat(se[he]),K++;else if(se.length1&&he>2&&(_e>4?(G+=` -`.concat(_,"...").concat(k),re=!0):_e>3&&(G+=` - `.concat(ie[he-2]),K++),G+=` - `.concat(ie[he-1]),K++),X=he,G+=` -`.concat(x,"+").concat(k," ").concat(ie[he]),K++;else{var ue=se[he],pe=ie[he],xe=pe!==ue&&(!w(pe,",")||pe.slice(0,-1)!==ue);xe&&w(ue,",")&&ue.slice(0,-1)===pe&&(xe=!1,pe+=","),xe?(_e>1&&he>2&&(_e>4?(G+=` -`.concat(_,"...").concat(k),re=!0):_e>3&&(G+=` - `.concat(ie[he-2]),K++),G+=` - `.concat(ie[he-1]),K++),X=he,G+=` -`.concat(x,"+").concat(k," ").concat(pe),Z+=` -`.concat(T,"-").concat(k," ").concat(ue),K+=2):(G+=Z,Z="",_e!==1&&he!==0||(G+=` - `.concat(pe),K++))}if(K>20&&he30)for(L[26]="".concat(_,"...").concat(k);L.length>27;)L.pop();F=L.length===1?d(this,b(P).call(this,"".concat(Y," ").concat(L[0]))):d(this,b(P).call(this,"".concat(Y,` +`)}pe>3&&(K=` +`.concat(_,"...").concat(k).concat(K),ne=!0),Q!==""&&(K=` + `.concat(Q).concat(K),Q="");var Z=0,re=C[U]+` +`.concat(w,"+ actual").concat(k," ").concat(S,"- expected").concat(k),de=" ".concat(_,"...").concat(k," Lines skipped");for(pe=0;pe1&&pe>2&&(_e>4?(V+=` +`.concat(_,"...").concat(k),ne=!0):_e>3&&(V+=` + `.concat(se[pe-2]),Z++),V+=` + `.concat(se[pe-1]),Z++),X=pe,Q+=` +`.concat(S,"-").concat(k," ").concat(se[pe]),Z++;else if(se.length1&&pe>2&&(_e>4?(V+=` +`.concat(_,"...").concat(k),ne=!0):_e>3&&(V+=` + `.concat(ie[pe-2]),Z++),V+=` + `.concat(ie[pe-1]),Z++),X=pe,V+=` +`.concat(w,"+").concat(k," ").concat(ie[pe]),Z++;else{var ue=se[pe],me=ie[pe],xe=me!==ue&&(!x(me,",")||me.slice(0,-1)!==ue);xe&&x(ue,",")&&ue.slice(0,-1)===me&&(xe=!1,me+=","),xe?(_e>1&&pe>2&&(_e>4?(V+=` +`.concat(_,"...").concat(k),ne=!0):_e>3&&(V+=` + `.concat(ie[pe-2]),Z++),V+=` + `.concat(ie[pe-1]),Z++),X=pe,V+=` +`.concat(w,"+").concat(k," ").concat(me),Q+=` +`.concat(S,"-").concat(k," ").concat(ue),Z+=2):(V+=Q,Q="",_e!==1&&pe!==0||(V+=` + `.concat(me),Z++))}if(Z>20&&pe30)for(L[26]="".concat(_,"...").concat(k);L.length>27;)L.pop();F=L.length===1?d(this,b(P).call(this,"".concat(Y," ").concat(L[0]))):d(this,b(P).call(this,"".concat(Y,` `).concat(L.join(` `),` -`)))}else{var W=M(N),U="",V=S[z];z==="notDeepEqual"||z==="notEqual"?(W="".concat(S[z],` +`)))}else{var W=M(N),H="",G=C[B];B==="notDeepEqual"||B==="notEqual"?(W="".concat(C[B],` -`).concat(W)).length>1024&&(W="".concat(W.slice(0,1021),"...")):(U="".concat(M(R)),W.length>512&&(W="".concat(W.slice(0,509),"...")),U.length>512&&(U="".concat(U.slice(0,509),"...")),z==="deepEqual"||z==="equal"?W="".concat(V,` +`).concat(W)).length>1024&&(W="".concat(W.slice(0,1021),"...")):(H="".concat(M(R)),W.length>512&&(W="".concat(W.slice(0,509),"...")),H.length>512&&(H="".concat(H.slice(0,509),"...")),B==="deepEqual"||B==="equal"?W="".concat(G,` `).concat(W,` should equal -`):U=" ".concat(z," ").concat(U)),F=d(this,b(P).call(this,"".concat(W).concat(U)))}return Error.stackTraceLimit=q,F.generatedMessage=!j,Object.defineProperty(f(F),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),F.code="ERR_ASSERTION",F.actual=N,F.expected=R,F.operator=z,Error.captureStackTrace&&Error.captureStackTrace(f(F),B),F.stack,F.name="AssertionError",d(F)}var E,I;return function(A,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(F&&F.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),F&&g(A,F)}(P,D),E=P,I=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:h.custom,value:function(A,F){return h(this,function(j){for(var z=1;z2?"one of ".concat(v," ").concat(b.slice(0,h-1).join(", "),", or ")+b[h-1]:h===2?"one of ".concat(v," ").concat(b[0]," or ").concat(b[1]):"of ".concat(v," ").concat(b[0])}return"of ".concat(v," ").concat(String(b))}m("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),m("ERR_INVALID_ARG_TYPE",function(b,v,h){var y,w,_,x,T;if(d===void 0&&(d=a(32791)),d(typeof b=="string","'name' must be a string"),typeof v=="string"&&(w="not ",v.substr(0,4)===w)?(y="must not be",v=v.replace(/^not /,"")):y="must be",function(S,C,M){return(M===void 0||M>S.length)&&(M=S.length),S.substring(M-9,M)===C}(b," argument"))_="The ".concat(b," ").concat(y," ").concat(g(v,"type"));else{var k=(typeof T!="number"&&(T=0),T+1>(x=b).length||x.indexOf(".",T)===-1?"argument":"property");_='The "'.concat(b,'" ').concat(k," ").concat(y," ").concat(g(v,"type"))}return _+". Received type ".concat(s(h))},TypeError),m("ERR_INVALID_ARG_VALUE",function(b,v){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";f===void 0&&(f=a(43827));var y=f.inspect(v);return y.length>128&&(y="".concat(y.slice(0,128),"...")),"The argument '".concat(b,"' ").concat(h,". Received ").concat(y)},TypeError),m("ERR_INVALID_RETURN_VALUE",function(b,v,h){var y;return y=h&&h.constructor&&h.constructor.name?"instance of ".concat(h.constructor.name):"type ".concat(s(h)),"Expected ".concat(b,' to be returned from the "').concat(v,'"')+" function but got ".concat(y,".")},TypeError),m("ERR_MISSING_ARGS",function(){for(var b=arguments.length,v=new Array(b),h=0;h0,"At least one arg needs to be specified");var y="The ",w=v.length;switch(v=v.map(function(_){return'"'.concat(_,'"')}),w){case 1:y+="".concat(v[0]," argument");break;case 2:y+="".concat(v[0]," and ").concat(v[1]," arguments");break;default:y+=v.slice(0,w-1).join(", "),y+=", and ".concat(v[w-1]," arguments")}return"".concat(y," must be specified")},TypeError),i.exports.codes=p},74061:function(i,o,a){function s(X,Q){return function(re){if(Array.isArray(re))return re}(X)||function(re,ae){var ie=[],se=!0,he=!1,Se=void 0;try{for(var Oe,Pe=re[Symbol.iterator]();!(se=(Oe=Pe.next()).done)&&(ie.push(Oe.value),!ae||ie.length!==ae);se=!0);}catch(Me){he=!0,Se=Me}finally{try{se||Pe.return==null||Pe.return()}finally{if(he)throw Se}}return ie}(X,Q)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function u(X){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Q){return typeof Q}:function(Q){return Q&&typeof Symbol=="function"&&Q.constructor===Symbol&&Q!==Symbol.prototype?"symbol":typeof Q},u(X)}var c=/a/g.flags!==void 0,d=function(X){var Q=[];return X.forEach(function(re){return Q.push(re)}),Q},f=function(X){var Q=[];return X.forEach(function(re,ae){return Q.push([ae,re])}),Q},p=Object.is?Object.is:a(64003),m=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},g=Number.isNaN?Number.isNaN:a(15567);function b(X){return X.call.bind(X)}var v=b(Object.prototype.hasOwnProperty),h=b(Object.prototype.propertyIsEnumerable),y=b(Object.prototype.toString),w=a(43827).types,_=w.isAnyArrayBuffer,x=w.isArrayBufferView,T=w.isDate,k=w.isMap,S=w.isRegExp,C=w.isSet,M=w.isNativeError,O=w.isBoxedPrimitive,D=w.isNumberObject,P=w.isStringObject,E=w.isBooleanObject,I=w.isBigIntObject,A=w.isSymbolObject,F=w.isFloat32Array,j=w.isFloat64Array;function z(X){if(X.length===0||X.length>10)return!0;for(var Q=0;Q57)return!0}return X.length===10&&X>=Math.pow(2,32)}function B(X){return Object.keys(X).filter(z).concat(m(X).filter(Object.prototype.propertyIsEnumerable.bind(X)))}function N(X,Q){if(X===Q)return 0;for(var re=X.length,ae=Q.length,ie=0,se=Math.min(re,ae);ie0?h-4:h;for(b=0;b>16&255,w[_++]=g>>8&255,w[_++]=255&g;return y===2&&(g=s[m.charCodeAt(b)]<<2|s[m.charCodeAt(b+1)]>>4,w[_++]=255&g),y===1&&(g=s[m.charCodeAt(b)]<<10|s[m.charCodeAt(b+1)]<<4|s[m.charCodeAt(b+2)]>>2,w[_++]=g>>8&255,w[_++]=255&g),w},o.fromByteArray=function(m){for(var g,b=m.length,v=b%3,h=[],y=16383,w=0,_=b-v;w<_;w+=y)h.push(p(m,w,w+y>_?_:w+y));return v===1?(g=m[b-1],h.push(a[g>>2]+a[g<<4&63]+"==")):v===2&&(g=(m[b-2]<<8)+m[b-1],h.push(a[g>>10]+a[g>>4&63]+a[g<<2&63]+"=")),h.join("")};for(var a=[],s=[],u=typeof Uint8Array<"u"?Uint8Array:Array,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0;d<64;++d)a[d]=c[d],s[c.charCodeAt(d)]=d;function f(m){var g=m.length;if(g%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var b=m.indexOf("=");return b===-1&&(b=g),[b,b===g?0:4-b%4]}function p(m,g,b){for(var v,h,y=[],w=g;w>18&63]+a[h>>12&63]+a[h>>6&63]+a[63&h]);return y.join("")}s[45]=62,s[95]=63},6614:function(i,o,a){var s=a(68318),u=a(68222),c=u(s("String.prototype.indexOf"));i.exports=function(d,f){var p=s(d,!!f);return typeof p=="function"&&c(d,".prototype.")>-1?u(p):p}},68222:function(i,o,a){var s=a(77575),u=a(68318),c=u("%Function.prototype.apply%"),d=u("%Function.prototype.call%"),f=u("%Reflect.apply%",!0)||s.call(d,c),p=u("%Object.getOwnPropertyDescriptor%",!0),m=u("%Object.defineProperty%",!0),g=u("%Math.max%");if(m)try{m({},"a",{value:1})}catch{m=null}i.exports=function(v){var h=f(s,d,arguments);return p&&m&&p(h,"length").configurable&&m(h,"length",{value:1+g(0,v.length-(arguments.length-1))}),h};var b=function(){return f(s,c,arguments)};m?m(i.exports,"apply",{value:b}):i.exports.apply=b},60721:function(i,o,a){function s(_,x){if((T=(_=x?_.toExponential(x-1):_.toExponential()).indexOf("e"))<0)return null;var T,k=_.slice(0,T);return[k.length>1?k[0]+k.slice(2):k,+_.slice(T+1)]}a.d(o,{WU:function(){return v},FF:function(){return w}});var u,c=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function d(_){if(!(x=c.exec(_)))throw new Error("invalid format: "+_);var x;return new f({fill:x[1],align:x[2],sign:x[3],symbol:x[4],zero:x[5],width:x[6],comma:x[7],precision:x[8]&&x[8].slice(1),trim:x[9],type:x[10]})}function f(_){this.fill=_.fill===void 0?" ":_.fill+"",this.align=_.align===void 0?">":_.align+"",this.sign=_.sign===void 0?"-":_.sign+"",this.symbol=_.symbol===void 0?"":_.symbol+"",this.zero=!!_.zero,this.width=_.width===void 0?void 0:+_.width,this.comma=!!_.comma,this.precision=_.precision===void 0?void 0:+_.precision,this.trim=!!_.trim,this.type=_.type===void 0?"":_.type+""}function p(_,x){var T=s(_,x);if(!T)return _+"";var k=T[0],S=T[1];return S<0?"0."+new Array(-S).join("0")+k:k.length>S+1?k.slice(0,S+1)+"."+k.slice(S+1):k+new Array(S-k.length+2).join("0")}d.prototype=f.prototype,f.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,0|this.width))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var m={"%":function(_,x){return(100*_).toFixed(x)},b:function(_){return Math.round(_).toString(2)},c:function(_){return _+""},d:function(_){return Math.abs(_=Math.round(_))>=1e21?_.toLocaleString("en").replace(/,/g,""):_.toString(10)},e:function(_,x){return _.toExponential(x)},f:function(_,x){return _.toFixed(x)},g:function(_,x){return _.toPrecision(x)},o:function(_){return Math.round(_).toString(8)},p:function(_,x){return p(100*_,x)},r:p,s:function(_,x){var T=s(_,x);if(!T)return _+"";var k=T[0],S=T[1],C=S-(u=3*Math.max(-8,Math.min(8,Math.floor(S/3))))+1,M=k.length;return C===M?k:C>M?k+new Array(C-M+1).join("0"):C>0?k.slice(0,C)+"."+k.slice(C):"0."+new Array(1-C).join("0")+s(_,Math.max(0,x+C-1))[0]},X:function(_){return Math.round(_).toString(16).toUpperCase()},x:function(_){return Math.round(_).toString(16)}};function g(_){return _}var b,v,h=Array.prototype.map,y=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function w(_){var x,T,k=_.grouping===void 0||_.thousands===void 0?g:(x=h.call(_.grouping,Number),T=_.thousands+"",function(A,F){for(var j=A.length,z=[],B=0,N=x[0],R=0;j>0&&N>0&&(R+N+1>F&&(N=Math.max(1,F-R)),z.push(A.substring(j-=N,j+N)),!((R+=N+1)>F));)N=x[B=(B+1)%x.length];return z.reverse().join(T)}),S=_.currency===void 0?"":_.currency[0]+"",C=_.currency===void 0?"":_.currency[1]+"",M=_.decimal===void 0?".":_.decimal+"",O=_.numerals===void 0?g:function(A){return function(F){return F.replace(/[0-9]/g,function(j){return A[+j]})}}(h.call(_.numerals,String)),D=_.percent===void 0?"%":_.percent+"",P=_.minus===void 0?"-":_.minus+"",E=_.nan===void 0?"NaN":_.nan+"";function I(A){var F=(A=d(A)).fill,j=A.align,z=A.sign,B=A.symbol,N=A.zero,R=A.width,q=A.comma,Y=A.precision,L=A.trim,W=A.type;W==="n"?(q=!0,W="g"):m[W]||(Y===void 0&&(Y=12),L=!0,W="g"),(N||F==="0"&&j==="=")&&(N=!0,F="0",j="=");var U=B==="$"?S:B==="#"&&/[boxX]/.test(W)?"0"+W.toLowerCase():"",V=B==="$"?C:/[%p]/.test(W)?D:"",te=m[W],ee=/[defgprs%]/.test(W);function H(Z){var G,X,Q,re=U,ae=V;if(W==="c")ae=te(Z)+ae,Z="";else{var ie=(Z=+Z)<0||1/Z<0;if(Z=isNaN(Z)?E:te(Math.abs(Z),Y),L&&(Z=function(Se){e:for(var Oe,Pe=Se.length,Me=1,ce=-1;Me0&&(ce=0)}return ce>0?Se.slice(0,ce)+Se.slice(Oe+1):Se}(Z)),ie&&+Z==0&&z!=="+"&&(ie=!1),re=(ie?z==="("?z:P:z==="-"||z==="("?"":z)+re,ae=(W==="s"?y[8+u/3]:"")+ae+(ie&&z==="("?")":""),ee){for(G=-1,X=Z.length;++G(Q=Z.charCodeAt(G))||Q>57){ae=(Q===46?M+Z.slice(G+1):Z.slice(G))+ae,Z=Z.slice(0,G);break}}}q&&!N&&(Z=k(Z,1/0));var se=re.length+Z.length+ae.length,he=se>1)+re+Z+ae+he.slice(se);break;default:Z=he+re+Z+ae}return O(Z)}return Y=Y===void 0?6:/[gprs]/.test(W)?Math.max(1,Math.min(21,Y)):Math.max(0,Math.min(20,Y)),H.toString=function(){return A+""},H}return{format:I,formatPrefix:function(A,F){var j,z=I(((A=d(A)).type="f",A)),B=3*Math.max(-8,Math.min(8,Math.floor((j=F,((j=s(Math.abs(j)))?j[1]:NaN)/3)))),N=Math.pow(10,-B),R=y[8+B/3];return function(q){return z(N*q)+R}}}}b=w({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),v=b.format,b.formatPrefix},84096:function(i,o,a){a.d(o,{i$:function(){return y},Dq:function(){return v},g0:function(){return w}});var s=a(58176),u=a(48480),c=a(59879),d=a(82301),f=a(34823),p=a(79791);function m(We){if(0<=We.y&&We.y<100){var ze=new Date(-1,We.m,We.d,We.H,We.M,We.S,We.L);return ze.setFullYear(We.y),ze}return new Date(We.y,We.m,We.d,We.H,We.M,We.S,We.L)}function g(We){if(0<=We.y&&We.y<100){var ze=new Date(Date.UTC(-1,We.m,We.d,We.H,We.M,We.S,We.L));return ze.setUTCFullYear(We.y),ze}return new Date(Date.UTC(We.y,We.m,We.d,We.H,We.M,We.S,We.L))}function b(We,ze,tt){return{y:We,m:ze,d:tt,H:0,M:0,S:0,L:0}}function v(We){var ze=We.dateTime,tt=We.date,it=We.time,St=We.periods,Ze=We.days,ut=We.shortDays,ht=We.months,Rt=We.shortMonths,Ct=M(St),Wt=O(St),_t=M(Ze),be=O(Ze),Ce=M(ut),Ge=O(ut),He=M(ht),et=O(ht),Ke=M(Rt),Ye=O(Rt),nt={a:function(Mt){return ut[Mt.getDay()]},A:function(Mt){return Ze[Mt.getDay()]},b:function(Mt){return Rt[Mt.getMonth()]},B:function(Mt){return ht[Mt.getMonth()]},c:null,d:Z,e:Z,f:ae,H:G,I:X,j:Q,L:re,m:ie,M:se,p:function(Mt){return St[+(Mt.getHours()>=12)]},q:function(Mt){return 1+~~(Mt.getMonth()/3)},Q:dt,s:vt,S:he,u:Se,U:Oe,V:Pe,w:Me,W:ce,x:null,X:null,y:we,Y:K,Z:ne,"%":st},ct={a:function(Mt){return ut[Mt.getUTCDay()]},A:function(Mt){return Ze[Mt.getUTCDay()]},b:function(Mt){return Rt[Mt.getUTCMonth()]},B:function(Mt){return ht[Mt.getUTCMonth()]},c:null,d:de,e:de,f:ye,H:_e,I:ue,j:pe,L:xe,m:Te,M:Ae,p:function(Mt){return St[+(Mt.getUTCHours()>=12)]},q:function(Mt){return 1+~~(Mt.getUTCMonth()/3)},Q:dt,s:vt,S:Re,u:Le,U:$e,V:Fe,w:Be,W:Ue,x:null,X:null,y:qe,Y:Xe,Z:ot,"%":st},yt={a:function(Mt,jt,Lt){var gt=Ce.exec(jt.slice(Lt));return gt?(Mt.w=Ge[gt[0].toLowerCase()],Lt+gt[0].length):-1},A:function(Mt,jt,Lt){var gt=_t.exec(jt.slice(Lt));return gt?(Mt.w=be[gt[0].toLowerCase()],Lt+gt[0].length):-1},b:function(Mt,jt,Lt){var gt=Ke.exec(jt.slice(Lt));return gt?(Mt.m=Ye[gt[0].toLowerCase()],Lt+gt[0].length):-1},B:function(Mt,jt,Lt){var gt=He.exec(jt.slice(Lt));return gt?(Mt.m=et[gt[0].toLowerCase()],Lt+gt[0].length):-1},c:function(Mt,jt,Lt){return Yt(Mt,ze,jt,Lt)},d:R,e:R,f:V,H:Y,I:Y,j:q,L:U,m:N,M:L,p:function(Mt,jt,Lt){var gt=Ct.exec(jt.slice(Lt));return gt?(Mt.p=Wt[gt[0].toLowerCase()],Lt+gt[0].length):-1},q:B,Q:ee,s:H,S:W,u:P,U:E,V:I,w:D,W:A,x:function(Mt,jt,Lt){return Yt(Mt,tt,jt,Lt)},X:function(Mt,jt,Lt){return Yt(Mt,it,jt,Lt)},y:j,Y:F,Z:z,"%":te};function rt(Mt,jt){return function(Lt){var gt,mt,xt,Ut=[],It=-1,zt=0,kt=Mt.length;for(Lt instanceof Date||(Lt=new Date(+Lt));++It53)return null;"w"in xt||(xt.w=1),"Z"in xt?(mt=(gt=g(b(xt.y,0,1))).getUTCDay(),gt=mt>4||mt===0?s.l6.ceil(gt):(0,s.l6)(gt),gt=u.Z.offset(gt,7*(xt.V-1)),xt.y=gt.getUTCFullYear(),xt.m=gt.getUTCMonth(),xt.d=gt.getUTCDate()+(xt.w+6)%7):(mt=(gt=m(b(xt.y,0,1))).getDay(),gt=mt>4||mt===0?c.wA.ceil(gt):(0,c.wA)(gt),gt=d.Z.offset(gt,7*(xt.V-1)),xt.y=gt.getFullYear(),xt.m=gt.getMonth(),xt.d=gt.getDate()+(xt.w+6)%7)}else("W"in xt||"U"in xt)&&("w"in xt||(xt.w="u"in xt?xt.u%7:"W"in xt?1:0),mt="Z"in xt?g(b(xt.y,0,1)).getUTCDay():m(b(xt.y,0,1)).getDay(),xt.m=0,xt.d="W"in xt?(xt.w+6)%7+7*xt.W-(mt+5)%7:xt.w+7*xt.U-(mt+6)%7);return"Z"in xt?(xt.H+=xt.Z/100|0,xt.M+=xt.Z%100,g(xt)):m(xt)}}function Yt(Mt,jt,Lt,gt){for(var mt,xt,Ut=0,It=jt.length,zt=Lt.length;Ut=zt)return-1;if((mt=jt.charCodeAt(Ut++))===37){if(mt=jt.charAt(Ut++),!(xt=yt[mt in _?jt.charAt(Ut++):mt])||(gt=xt(Mt,Lt,gt))<0)return-1}else if(mt!=Lt.charCodeAt(gt++))return-1}return gt}return nt.x=rt(tt,nt),nt.X=rt(it,nt),nt.c=rt(ze,nt),ct.x=rt(tt,ct),ct.X=rt(it,ct),ct.c=rt(ze,ct),{format:function(Mt){var jt=rt(Mt+="",nt);return jt.toString=function(){return Mt},jt},parse:function(Mt){var jt=Ft(Mt+="",!1);return jt.toString=function(){return Mt},jt},utcFormat:function(Mt){var jt=rt(Mt+="",ct);return jt.toString=function(){return Mt},jt},utcParse:function(Mt){var jt=Ft(Mt+="",!0);return jt.toString=function(){return Mt},jt}}}var h,y,w,_={"-":"",_:" ",0:"0"},x=/^\s*\d+/,T=/^%/,k=/[\\^$*+?|[\]().{}]/g;function S(We,ze,tt){var it=We<0?"-":"",St=(it?-We:We)+"",Ze=St.length;return it+(Ze68?1900:2e3),tt+it[0].length):-1}function z(We,ze,tt){var it=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(ze.slice(tt,tt+6));return it?(We.Z=it[1]?0:-(it[2]+(it[3]||"00")),tt+it[0].length):-1}function B(We,ze,tt){var it=x.exec(ze.slice(tt,tt+1));return it?(We.q=3*it[0]-3,tt+it[0].length):-1}function N(We,ze,tt){var it=x.exec(ze.slice(tt,tt+2));return it?(We.m=it[0]-1,tt+it[0].length):-1}function R(We,ze,tt){var it=x.exec(ze.slice(tt,tt+2));return it?(We.d=+it[0],tt+it[0].length):-1}function q(We,ze,tt){var it=x.exec(ze.slice(tt,tt+3));return it?(We.m=0,We.d=+it[0],tt+it[0].length):-1}function Y(We,ze,tt){var it=x.exec(ze.slice(tt,tt+2));return it?(We.H=+it[0],tt+it[0].length):-1}function L(We,ze,tt){var it=x.exec(ze.slice(tt,tt+2));return it?(We.M=+it[0],tt+it[0].length):-1}function W(We,ze,tt){var it=x.exec(ze.slice(tt,tt+2));return it?(We.S=+it[0],tt+it[0].length):-1}function U(We,ze,tt){var it=x.exec(ze.slice(tt,tt+3));return it?(We.L=+it[0],tt+it[0].length):-1}function V(We,ze,tt){var it=x.exec(ze.slice(tt,tt+6));return it?(We.L=Math.floor(it[0]/1e3),tt+it[0].length):-1}function te(We,ze,tt){var it=T.exec(ze.slice(tt,tt+1));return it?tt+it[0].length:-1}function ee(We,ze,tt){var it=x.exec(ze.slice(tt));return it?(We.Q=+it[0],tt+it[0].length):-1}function H(We,ze,tt){var it=x.exec(ze.slice(tt));return it?(We.s=+it[0],tt+it[0].length):-1}function Z(We,ze){return S(We.getDate(),ze,2)}function G(We,ze){return S(We.getHours(),ze,2)}function X(We,ze){return S(We.getHours()%12||12,ze,2)}function Q(We,ze){return S(1+d.Z.count((0,f.Z)(We),We),ze,3)}function re(We,ze){return S(We.getMilliseconds(),ze,3)}function ae(We,ze){return re(We,ze)+"000"}function ie(We,ze){return S(We.getMonth()+1,ze,2)}function se(We,ze){return S(We.getMinutes(),ze,2)}function he(We,ze){return S(We.getSeconds(),ze,2)}function Se(We){var ze=We.getDay();return ze===0?7:ze}function Oe(We,ze){return S(c.OM.count((0,f.Z)(We)-1,We),ze,2)}function Pe(We,ze){var tt=We.getDay();return We=tt>=4||tt===0?(0,c.bL)(We):c.bL.ceil(We),S(c.bL.count((0,f.Z)(We),We)+((0,f.Z)(We).getDay()===4),ze,2)}function Me(We){return We.getDay()}function ce(We,ze){return S(c.wA.count((0,f.Z)(We)-1,We),ze,2)}function we(We,ze){return S(We.getFullYear()%100,ze,2)}function K(We,ze){return S(We.getFullYear()%1e4,ze,4)}function ne(We){var ze=We.getTimezoneOffset();return(ze>0?"-":(ze*=-1,"+"))+S(ze/60|0,"0",2)+S(ze%60,"0",2)}function de(We,ze){return S(We.getUTCDate(),ze,2)}function _e(We,ze){return S(We.getUTCHours(),ze,2)}function ue(We,ze){return S(We.getUTCHours()%12||12,ze,2)}function pe(We,ze){return S(1+u.Z.count((0,p.Z)(We),We),ze,3)}function xe(We,ze){return S(We.getUTCMilliseconds(),ze,3)}function ye(We,ze){return xe(We,ze)+"000"}function Te(We,ze){return S(We.getUTCMonth()+1,ze,2)}function Ae(We,ze){return S(We.getUTCMinutes(),ze,2)}function Re(We,ze){return S(We.getUTCSeconds(),ze,2)}function Le(We){var ze=We.getUTCDay();return ze===0?7:ze}function $e(We,ze){return S(s.Ox.count((0,p.Z)(We)-1,We),ze,2)}function Fe(We,ze){var tt=We.getUTCDay();return We=tt>=4||tt===0?(0,s.hB)(We):s.hB.ceil(We),S(s.hB.count((0,p.Z)(We),We)+((0,p.Z)(We).getUTCDay()===4),ze,2)}function Be(We){return We.getUTCDay()}function Ue(We,ze){return S(s.l6.count((0,p.Z)(We)-1,We),ze,2)}function qe(We,ze){return S(We.getUTCFullYear()%100,ze,2)}function Xe(We,ze){return S(We.getUTCFullYear()%1e4,ze,4)}function ot(){return"+0000"}function st(){return"%"}function dt(We){return+We}function vt(We){return Math.floor(+We/1e3)}h=v({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),y=h.format,h.parse,w=h.utcFormat,h.utcParse},82301:function(i,o,a){a.d(o,{a:function(){return d}});var s=a(30052),u=a(54263),c=(0,s.Z)(function(f){f.setHours(0,0,0,0)},function(f,p){f.setDate(f.getDate()+p)},function(f,p){return(p-f-(p.getTimezoneOffset()-f.getTimezoneOffset())*u.yB)/u.UD},function(f){return f.getDate()-1});o.Z=c;var d=c.range},54263:function(i,o,a){a.d(o,{UD:function(){return d},Y2:function(){return c},Ym:function(){return s},iM:function(){return f},yB:function(){return u}});var s=1e3,u=6e4,c=36e5,d=864e5,f=6048e5},81041:function(i,o,a){a.r(o),a.d(o,{timeDay:function(){return x.Z},timeDays:function(){return x.a},timeFriday:function(){return T.mC},timeFridays:function(){return T.b$},timeHour:function(){return w},timeHours:function(){return _},timeInterval:function(){return s.Z},timeMillisecond:function(){return c},timeMilliseconds:function(){return d},timeMinute:function(){return v},timeMinutes:function(){return h},timeMonday:function(){return T.wA},timeMondays:function(){return T.bJ},timeMonth:function(){return S},timeMonths:function(){return C},timeSaturday:function(){return T.EY},timeSaturdays:function(){return T.Ff},timeSecond:function(){return m},timeSeconds:function(){return g},timeSunday:function(){return T.OM},timeSundays:function(){return T.vm},timeThursday:function(){return T.bL},timeThursdays:function(){return T.$t},timeTuesday:function(){return T.sy},timeTuesdays:function(){return T.aU},timeWednesday:function(){return T.zg},timeWednesdays:function(){return T.Ld},timeWeek:function(){return T.OM},timeWeeks:function(){return T.vm},timeYear:function(){return M.Z},timeYears:function(){return M.g},utcDay:function(){return F.Z},utcDays:function(){return F.y},utcFriday:function(){return j.QQ},utcFridays:function(){return j.fz},utcHour:function(){return I},utcHours:function(){return A},utcMillisecond:function(){return c},utcMilliseconds:function(){return d},utcMinute:function(){return D},utcMinutes:function(){return P},utcMonday:function(){return j.l6},utcMondays:function(){return j.$3},utcMonth:function(){return B},utcMonths:function(){return N},utcSaturday:function(){return j.g4},utcSaturdays:function(){return j.Q_},utcSecond:function(){return m},utcSeconds:function(){return g},utcSunday:function(){return j.Ox},utcSundays:function(){return j.SU},utcThursday:function(){return j.hB},utcThursdays:function(){return j.xj},utcTuesday:function(){return j.J1},utcTuesdays:function(){return j.DK},utcWednesday:function(){return j.b3},utcWednesdays:function(){return j.uy},utcWeek:function(){return j.Ox},utcWeeks:function(){return j.SU},utcYear:function(){return R.Z},utcYears:function(){return R.D}});var s=a(30052),u=(0,s.Z)(function(){},function(q,Y){q.setTime(+q+Y)},function(q,Y){return Y-q});u.every=function(q){return q=Math.floor(q),isFinite(q)&&q>0?q>1?(0,s.Z)(function(Y){Y.setTime(Math.floor(Y/q)*q)},function(Y,L){Y.setTime(+Y+L*q)},function(Y,L){return(L-Y)/q}):u:null};var c=u,d=u.range,f=a(54263),p=(0,s.Z)(function(q){q.setTime(q-q.getMilliseconds())},function(q,Y){q.setTime(+q+Y*f.Ym)},function(q,Y){return(Y-q)/f.Ym},function(q){return q.getUTCSeconds()}),m=p,g=p.range,b=(0,s.Z)(function(q){q.setTime(q-q.getMilliseconds()-q.getSeconds()*f.Ym)},function(q,Y){q.setTime(+q+Y*f.yB)},function(q,Y){return(Y-q)/f.yB},function(q){return q.getMinutes()}),v=b,h=b.range,y=(0,s.Z)(function(q){q.setTime(q-q.getMilliseconds()-q.getSeconds()*f.Ym-q.getMinutes()*f.yB)},function(q,Y){q.setTime(+q+Y*f.Y2)},function(q,Y){return(Y-q)/f.Y2},function(q){return q.getHours()}),w=y,_=y.range,x=a(82301),T=a(59879),k=(0,s.Z)(function(q){q.setDate(1),q.setHours(0,0,0,0)},function(q,Y){q.setMonth(q.getMonth()+Y)},function(q,Y){return Y.getMonth()-q.getMonth()+12*(Y.getFullYear()-q.getFullYear())},function(q){return q.getMonth()}),S=k,C=k.range,M=a(34823),O=(0,s.Z)(function(q){q.setUTCSeconds(0,0)},function(q,Y){q.setTime(+q+Y*f.yB)},function(q,Y){return(Y-q)/f.yB},function(q){return q.getUTCMinutes()}),D=O,P=O.range,E=(0,s.Z)(function(q){q.setUTCMinutes(0,0,0)},function(q,Y){q.setTime(+q+Y*f.Y2)},function(q,Y){return(Y-q)/f.Y2},function(q){return q.getUTCHours()}),I=E,A=E.range,F=a(48480),j=a(58176),z=(0,s.Z)(function(q){q.setUTCDate(1),q.setUTCHours(0,0,0,0)},function(q,Y){q.setUTCMonth(q.getUTCMonth()+Y)},function(q,Y){return Y.getUTCMonth()-q.getUTCMonth()+12*(Y.getUTCFullYear()-q.getUTCFullYear())},function(q){return q.getUTCMonth()}),B=z,N=z.range,R=a(79791)},30052:function(i,o,a){a.d(o,{Z:function(){return c}});var s=new Date,u=new Date;function c(d,f,p,m){function g(b){return d(b=arguments.length===0?new Date:new Date(+b)),b}return g.floor=function(b){return d(b=new Date(+b)),b},g.ceil=function(b){return d(b=new Date(b-1)),f(b,1),d(b),b},g.round=function(b){var v=g(b),h=g.ceil(b);return b-v0))return w;do w.push(y=new Date(+b)),f(b,h),d(b);while(y=v)for(;d(v),!b(v);)v.setTime(v-1)},function(v,h){if(v>=v)if(h<0)for(;++h<=0;)for(;f(v,-1),!b(v););else for(;--h>=0;)for(;f(v,1),!b(v););})},p&&(g.count=function(b,v){return s.setTime(+b),u.setTime(+v),d(s),d(u),Math.floor(p(s,u))},g.every=function(b){return b=Math.floor(b),isFinite(b)&&b>0?b>1?g.filter(m?function(v){return m(v)%b==0}:function(v){return g.count(0,v)%b==0}):g:null}),g}},48480:function(i,o,a){a.d(o,{y:function(){return d}});var s=a(30052),u=a(54263),c=(0,s.Z)(function(f){f.setUTCHours(0,0,0,0)},function(f,p){f.setUTCDate(f.getUTCDate()+p)},function(f,p){return(p-f)/u.UD},function(f){return f.getUTCDate()-1});o.Z=c;var d=c.range},58176:function(i,o,a){a.d(o,{$3:function(){return y},DK:function(){return w},J1:function(){return p},Ox:function(){return d},QQ:function(){return b},Q_:function(){return k},SU:function(){return h},b3:function(){return m},fz:function(){return T},g4:function(){return v},hB:function(){return g},l6:function(){return f},uy:function(){return _},xj:function(){return x}});var s=a(30052),u=a(54263);function c(S){return(0,s.Z)(function(C){C.setUTCDate(C.getUTCDate()-(C.getUTCDay()+7-S)%7),C.setUTCHours(0,0,0,0)},function(C,M){C.setUTCDate(C.getUTCDate()+7*M)},function(C,M){return(M-C)/u.iM})}var d=c(0),f=c(1),p=c(2),m=c(3),g=c(4),b=c(5),v=c(6),h=d.range,y=f.range,w=p.range,_=m.range,x=g.range,T=b.range,k=v.range},79791:function(i,o,a){a.d(o,{D:function(){return c}});var s=a(30052),u=(0,s.Z)(function(d){d.setUTCMonth(0,1),d.setUTCHours(0,0,0,0)},function(d,f){d.setUTCFullYear(d.getUTCFullYear()+f)},function(d,f){return f.getUTCFullYear()-d.getUTCFullYear()},function(d){return d.getUTCFullYear()});u.every=function(d){return isFinite(d=Math.floor(d))&&d>0?(0,s.Z)(function(f){f.setUTCFullYear(Math.floor(f.getUTCFullYear()/d)*d),f.setUTCMonth(0,1),f.setUTCHours(0,0,0,0)},function(f,p){f.setUTCFullYear(f.getUTCFullYear()+p*d)}):null},o.Z=u;var c=u.range},59879:function(i,o,a){a.d(o,{$t:function(){return x},EY:function(){return v},Ff:function(){return k},Ld:function(){return _},OM:function(){return d},aU:function(){return w},b$:function(){return T},bJ:function(){return y},bL:function(){return g},mC:function(){return b},sy:function(){return p},vm:function(){return h},wA:function(){return f},zg:function(){return m}});var s=a(30052),u=a(54263);function c(S){return(0,s.Z)(function(C){C.setDate(C.getDate()-(C.getDay()+7-S)%7),C.setHours(0,0,0,0)},function(C,M){C.setDate(C.getDate()+7*M)},function(C,M){return(M-C-(M.getTimezoneOffset()-C.getTimezoneOffset())*u.yB)/u.iM})}var d=c(0),f=c(1),p=c(2),m=c(3),g=c(4),b=c(5),v=c(6),h=d.range,y=f.range,w=p.range,_=m.range,x=g.range,T=b.range,k=v.range},34823:function(i,o,a){a.d(o,{g:function(){return c}});var s=a(30052),u=(0,s.Z)(function(d){d.setMonth(0,1),d.setHours(0,0,0,0)},function(d,f){d.setFullYear(d.getFullYear()+f)},function(d,f){return f.getFullYear()-d.getFullYear()},function(d){return d.getFullYear()});u.every=function(d){return isFinite(d=Math.floor(d))&&d>0?(0,s.Z)(function(f){f.setFullYear(Math.floor(f.getFullYear()/d)*d),f.setMonth(0,1),f.setHours(0,0,0,0)},function(f,p){f.setFullYear(f.getFullYear()+p*d)}):null},o.Z=u;var c=u.range},17045:function(i,o,a){var s=a(8709),u=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",c=Object.prototype.toString,d=Array.prototype.concat,f=Object.defineProperty,p=a(55622)(),m=f&&p,g=function(v,h,y,w){if(h in v){if(w===!0){if(v[h]===y)return}else if(typeof(_=w)!="function"||c.call(_)!=="[object Function]"||!w())return}var _;m?f(v,h,{configurable:!0,enumerable:!1,value:y,writable:!0}):v[h]=y},b=function(v,h){var y=arguments.length>2?arguments[2]:{},w=s(h);u&&(w=d.call(w,Object.getOwnPropertySymbols(h)));for(var _=0;_0&&M.length>S&&!M.warned){M.warned=!0;var D=new Error("Possible EventEmitter memory leak detected. "+M.length+" "+String(x)+" listeners added. Use emitter.setMaxListeners() to increase limit");D.name="MaxListenersExceededWarning",D.emitter=_,D.type=x,D.count=M.length,O=D,console&&console.warn&&console.warn(O)}return _}function g(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function b(_,x,T){var k={fired:!1,wrapFn:void 0,target:_,type:x,listener:T},S=g.bind(k);return S.listener=T,k.wrapFn=S,S}function v(_,x,T){var k=_._events;if(k===void 0)return[];var S=k[x];return S===void 0?[]:typeof S=="function"?T?[S.listener||S]:[S]:T?function(C){for(var M=new Array(C.length),O=0;O0&&(C=x[0]),C instanceof Error)throw C;var M=new Error("Unhandled error."+(C?" ("+C.message+")":""));throw M.context=C,M}var O=S[_];if(O===void 0)return!1;if(typeof O=="function")s(O,this,x);else{var D=O.length,P=y(O,D);for(T=0;T=0;C--)if(T[C]===x||T[C].listener===x){M=T[C].listener,S=C;break}if(S<0)return this;S===0?T.shift():function(O,D){for(;D+1=0;k--)this.removeListener(_,x[k]);return this},c.prototype.listeners=function(_){return v(this,_,!0)},c.prototype.rawListeners=function(_){return v(this,_,!1)},c.listenerCount=function(_,x){return typeof _.listenerCount=="function"?_.listenerCount(x):h.call(_,x)},c.prototype.listenerCount=h,c.prototype.eventNames=function(){return this._eventsCount>0?o(this._events):[]}},92770:function(i,o,a){var s=a(18546);i.exports=function(u){var c=typeof u;if(c==="string"){var d=u;if((u=+u)==0&&s(d))return!1}else if(c!=="number")return!1;return u-u<1}},31353:function(i,o,a){var s=a(85395),u=Object.prototype.toString,c=Object.prototype.hasOwnProperty;i.exports=function(d,f,p){if(!s(f))throw new TypeError("iterator must be a function");var m;arguments.length>=3&&(m=p),u.call(d)==="[object Array]"?function(g,b,v){for(var h=0,y=g.length;h"u"?s:v(Uint8Array),w={"%AggregateError%":typeof AggregateError>"u"?s:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?s:ArrayBuffer,"%ArrayIteratorPrototype%":b?v([][Symbol.iterator]()):s,"%AsyncFromSyncIteratorPrototype%":s,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":typeof Atomics>"u"?s:Atomics,"%BigInt%":typeof BigInt>"u"?s:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?s:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?s:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?s:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?s:Float32Array,"%Float64Array%":typeof Float64Array>"u"?s:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?s:FinalizationRegistry,"%Function%":c,"%GeneratorFunction%":h,"%Int8Array%":typeof Int8Array>"u"?s:Int8Array,"%Int16Array%":typeof Int16Array>"u"?s:Int16Array,"%Int32Array%":typeof Int32Array>"u"?s:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":b?v(v([][Symbol.iterator]())):s,"%JSON%":typeof JSON=="object"?JSON:s,"%Map%":typeof Map>"u"?s:Map,"%MapIteratorPrototype%":typeof Map<"u"&&b?v(new Map()[Symbol.iterator]()):s,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?s:Promise,"%Proxy%":typeof Proxy>"u"?s:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?s:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?s:Set,"%SetIteratorPrototype%":typeof Set<"u"&&b?v(new Set()[Symbol.iterator]()):s,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?s:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":b?v(""[Symbol.iterator]()):s,"%Symbol%":b?Symbol:s,"%SyntaxError%":u,"%ThrowTypeError%":g,"%TypedArray%":y,"%TypeError%":d,"%Uint8Array%":typeof Uint8Array>"u"?s:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?s:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?s:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?s:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?s:WeakMap,"%WeakRef%":typeof WeakRef>"u"?s:WeakRef,"%WeakSet%":typeof WeakSet>"u"?s:WeakSet};try{null.error}catch(F){var _=v(v(F));w["%Error.prototype%"]=_}var x=function F(j){var z;if(j==="%AsyncFunction%")z=f("async function () {}");else if(j==="%GeneratorFunction%")z=f("function* () {}");else if(j==="%AsyncGeneratorFunction%")z=f("async function* () {}");else if(j==="%AsyncGenerator%"){var B=F("%AsyncGeneratorFunction%");B&&(z=B.prototype)}else if(j==="%AsyncIteratorPrototype%"){var N=F("%AsyncGenerator%");N&&(z=v(N.prototype))}return w[j]=z,z},T={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},k=a(77575),S=a(35065),C=k.call(Function.call,Array.prototype.concat),M=k.call(Function.apply,Array.prototype.splice),O=k.call(Function.call,String.prototype.replace),D=k.call(Function.call,String.prototype.slice),P=k.call(Function.call,RegExp.prototype.exec),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,I=/\\(\\)?/g,A=function(F,j){var z,B=F;if(S(T,B)&&(B="%"+(z=T[B])[0]+"%"),S(w,B)){var N=w[B];if(N===h&&(N=x(B)),N===void 0&&!j)throw new d("intrinsic "+F+" exists, but is not available. Please file an issue!");return{alias:z,name:B,value:N}}throw new u("intrinsic "+F+" does not exist!")};i.exports=function(F,j){if(typeof F!="string"||F.length===0)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof j!="boolean")throw new d('"allowMissing" argument must be a boolean');if(P(/^%?[^%]*%?$/,F)===null)throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var z=function(Z){var G=D(Z,0,1),X=D(Z,-1);if(G==="%"&&X!=="%")throw new u("invalid intrinsic syntax, expected closing `%`");if(X==="%"&&G!=="%")throw new u("invalid intrinsic syntax, expected opening `%`");var Q=[];return O(Z,E,function(re,ae,ie,se){Q[Q.length]=ie?O(se,I,"$1"):ae||re}),Q}(F),B=z.length>0?z[0]:"",N=A("%"+B+"%",j),R=N.name,q=N.value,Y=!1,L=N.alias;L&&(B=L[0],M(z,C([0,1],L)));for(var W=1,U=!0;W=z.length){var H=p(q,V);q=(U=!!H)&&"get"in H&&!("originalValue"in H.get)?H.get:q[V]}else U=S(q,V),q=q[V];U&&!Y&&(w[R]=q)}}return q}},85400:function(i){i.exports=function(o,a){var s=a[0],u=a[1],c=a[2],d=a[3],f=a[4],p=a[5],m=a[6],g=a[7],b=a[8],v=a[9],h=a[10],y=a[11],w=a[12],_=a[13],x=a[14],T=a[15];return o[0]=p*(h*T-y*x)-v*(m*T-g*x)+_*(m*y-g*h),o[1]=-(u*(h*T-y*x)-v*(c*T-d*x)+_*(c*y-d*h)),o[2]=u*(m*T-g*x)-p*(c*T-d*x)+_*(c*g-d*m),o[3]=-(u*(m*y-g*h)-p*(c*y-d*h)+v*(c*g-d*m)),o[4]=-(f*(h*T-y*x)-b*(m*T-g*x)+w*(m*y-g*h)),o[5]=s*(h*T-y*x)-b*(c*T-d*x)+w*(c*y-d*h),o[6]=-(s*(m*T-g*x)-f*(c*T-d*x)+w*(c*g-d*m)),o[7]=s*(m*y-g*h)-f*(c*y-d*h)+b*(c*g-d*m),o[8]=f*(v*T-y*_)-b*(p*T-g*_)+w*(p*y-g*v),o[9]=-(s*(v*T-y*_)-b*(u*T-d*_)+w*(u*y-d*v)),o[10]=s*(p*T-g*_)-f*(u*T-d*_)+w*(u*g-d*p),o[11]=-(s*(p*y-g*v)-f*(u*y-d*v)+b*(u*g-d*p)),o[12]=-(f*(v*x-h*_)-b*(p*x-m*_)+w*(p*h-m*v)),o[13]=s*(v*x-h*_)-b*(u*x-c*_)+w*(u*h-c*v),o[14]=-(s*(p*x-m*_)-f*(u*x-c*_)+w*(u*m-c*p)),o[15]=s*(p*h-m*v)-f*(u*h-c*v)+b*(u*m-c*p),o}},42331:function(i){i.exports=function(o){var a=new Float32Array(16);return a[0]=o[0],a[1]=o[1],a[2]=o[2],a[3]=o[3],a[4]=o[4],a[5]=o[5],a[6]=o[6],a[7]=o[7],a[8]=o[8],a[9]=o[9],a[10]=o[10],a[11]=o[11],a[12]=o[12],a[13]=o[13],a[14]=o[14],a[15]=o[15],a}},31042:function(i){i.exports=function(o,a){return o[0]=a[0],o[1]=a[1],o[2]=a[2],o[3]=a[3],o[4]=a[4],o[5]=a[5],o[6]=a[6],o[7]=a[7],o[8]=a[8],o[9]=a[9],o[10]=a[10],o[11]=a[11],o[12]=a[12],o[13]=a[13],o[14]=a[14],o[15]=a[15],o}},11902:function(i){i.exports=function(){var o=new Float32Array(16);return o[0]=1,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=1,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=1,o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o}},89887:function(i){i.exports=function(o){var a=o[0],s=o[1],u=o[2],c=o[3],d=o[4],f=o[5],p=o[6],m=o[7],g=o[8],b=o[9],v=o[10],h=o[11],y=o[12],w=o[13],_=o[14],x=o[15];return(a*f-s*d)*(v*x-h*_)-(a*p-u*d)*(b*x-h*w)+(a*m-c*d)*(b*_-v*w)+(s*p-u*f)*(g*x-h*y)-(s*m-c*f)*(g*_-v*y)+(u*m-c*p)*(g*w-b*y)}},27812:function(i){i.exports=function(o,a){var s=a[0],u=a[1],c=a[2],d=a[3],f=s+s,p=u+u,m=c+c,g=s*f,b=u*f,v=u*p,h=c*f,y=c*p,w=c*m,_=d*f,x=d*p,T=d*m;return o[0]=1-v-w,o[1]=b+T,o[2]=h-x,o[3]=0,o[4]=b-T,o[5]=1-g-w,o[6]=y+_,o[7]=0,o[8]=h+x,o[9]=y-_,o[10]=1-g-v,o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o}},34045:function(i){i.exports=function(o,a,s){var u,c,d,f=s[0],p=s[1],m=s[2],g=Math.sqrt(f*f+p*p+m*m);return Math.abs(g)<1e-6?null:(f*=g=1/g,p*=g,m*=g,u=Math.sin(a),d=1-(c=Math.cos(a)),o[0]=f*f*d+c,o[1]=p*f*d+m*u,o[2]=m*f*d-p*u,o[3]=0,o[4]=f*p*d-m*u,o[5]=p*p*d+c,o[6]=m*p*d+f*u,o[7]=0,o[8]=f*m*d+p*u,o[9]=p*m*d-f*u,o[10]=m*m*d+c,o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o)}},45973:function(i){i.exports=function(o,a,s){var u=a[0],c=a[1],d=a[2],f=a[3],p=u+u,m=c+c,g=d+d,b=u*p,v=u*m,h=u*g,y=c*m,w=c*g,_=d*g,x=f*p,T=f*m,k=f*g;return o[0]=1-(y+_),o[1]=v+k,o[2]=h-T,o[3]=0,o[4]=v-k,o[5]=1-(b+_),o[6]=w+x,o[7]=0,o[8]=h+T,o[9]=w-x,o[10]=1-(b+y),o[11]=0,o[12]=s[0],o[13]=s[1],o[14]=s[2],o[15]=1,o}},81472:function(i){i.exports=function(o,a){return o[0]=a[0],o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=a[1],o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=a[2],o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o}},14669:function(i){i.exports=function(o,a){return o[0]=1,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=1,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=1,o[11]=0,o[12]=a[0],o[13]=a[1],o[14]=a[2],o[15]=1,o}},75262:function(i){i.exports=function(o,a){var s=Math.sin(a),u=Math.cos(a);return o[0]=1,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=u,o[6]=s,o[7]=0,o[8]=0,o[9]=-s,o[10]=u,o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o}},331:function(i){i.exports=function(o,a){var s=Math.sin(a),u=Math.cos(a);return o[0]=u,o[1]=0,o[2]=-s,o[3]=0,o[4]=0,o[5]=1,o[6]=0,o[7]=0,o[8]=s,o[9]=0,o[10]=u,o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o}},11049:function(i){i.exports=function(o,a){var s=Math.sin(a),u=Math.cos(a);return o[0]=u,o[1]=s,o[2]=0,o[3]=0,o[4]=-s,o[5]=u,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=1,o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o}},75195:function(i){i.exports=function(o,a,s,u,c,d,f){var p=1/(s-a),m=1/(c-u),g=1/(d-f);return o[0]=2*d*p,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=2*d*m,o[6]=0,o[7]=0,o[8]=(s+a)*p,o[9]=(c+u)*m,o[10]=(f+d)*g,o[11]=-1,o[12]=0,o[13]=0,o[14]=f*d*2*g,o[15]=0,o}},71551:function(i){i.exports=function(o){return o[0]=1,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=1,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=1,o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o}},79576:function(i,o,a){i.exports={create:a(11902),clone:a(42331),copy:a(31042),identity:a(71551),transpose:a(88654),invert:a(95874),adjoint:a(85400),determinant:a(89887),multiply:a(91362),translate:a(31283),scale:a(10789),rotate:a(65074),rotateX:a(35545),rotateY:a(94918),rotateZ:a(15692),fromRotation:a(34045),fromRotationTranslation:a(45973),fromScaling:a(81472),fromTranslation:a(14669),fromXRotation:a(75262),fromYRotation:a(331),fromZRotation:a(11049),fromQuat:a(27812),frustum:a(75195),perspective:a(7864),perspectiveFromFieldOfView:a(35279),ortho:a(60378),lookAt:a(65551),str:a(6726)}},95874:function(i){i.exports=function(o,a){var s=a[0],u=a[1],c=a[2],d=a[3],f=a[4],p=a[5],m=a[6],g=a[7],b=a[8],v=a[9],h=a[10],y=a[11],w=a[12],_=a[13],x=a[14],T=a[15],k=s*p-u*f,S=s*m-c*f,C=s*g-d*f,M=u*m-c*p,O=u*g-d*p,D=c*g-d*m,P=b*_-v*w,E=b*x-h*w,I=b*T-y*w,A=v*x-h*_,F=v*T-y*_,j=h*T-y*x,z=k*j-S*F+C*A+M*I-O*E+D*P;return z?(z=1/z,o[0]=(p*j-m*F+g*A)*z,o[1]=(c*F-u*j-d*A)*z,o[2]=(_*D-x*O+T*M)*z,o[3]=(h*O-v*D-y*M)*z,o[4]=(m*I-f*j-g*E)*z,o[5]=(s*j-c*I+d*E)*z,o[6]=(x*C-w*D-T*S)*z,o[7]=(b*D-h*C+y*S)*z,o[8]=(f*F-p*I+g*P)*z,o[9]=(u*I-s*F-d*P)*z,o[10]=(w*O-_*C+T*k)*z,o[11]=(v*C-b*O-y*k)*z,o[12]=(p*E-f*A-m*P)*z,o[13]=(s*A-u*E+c*P)*z,o[14]=(_*S-w*M-x*k)*z,o[15]=(b*M-v*S+h*k)*z,o):null}},65551:function(i,o,a){var s=a(71551);i.exports=function(u,c,d,f){var p,m,g,b,v,h,y,w,_,x,T=c[0],k=c[1],S=c[2],C=f[0],M=f[1],O=f[2],D=d[0],P=d[1],E=d[2];return Math.abs(T-D)<1e-6&&Math.abs(k-P)<1e-6&&Math.abs(S-E)<1e-6?s(u):(y=T-D,w=k-P,_=S-E,p=M*(_*=x=1/Math.sqrt(y*y+w*w+_*_))-O*(w*=x),m=O*(y*=x)-C*_,g=C*w-M*y,(x=Math.sqrt(p*p+m*m+g*g))?(p*=x=1/x,m*=x,g*=x):(p=0,m=0,g=0),b=w*g-_*m,v=_*p-y*g,h=y*m-w*p,(x=Math.sqrt(b*b+v*v+h*h))?(b*=x=1/x,v*=x,h*=x):(b=0,v=0,h=0),u[0]=p,u[1]=b,u[2]=y,u[3]=0,u[4]=m,u[5]=v,u[6]=w,u[7]=0,u[8]=g,u[9]=h,u[10]=_,u[11]=0,u[12]=-(p*T+m*k+g*S),u[13]=-(b*T+v*k+h*S),u[14]=-(y*T+w*k+_*S),u[15]=1,u)}},91362:function(i){i.exports=function(o,a,s){var u=a[0],c=a[1],d=a[2],f=a[3],p=a[4],m=a[5],g=a[6],b=a[7],v=a[8],h=a[9],y=a[10],w=a[11],_=a[12],x=a[13],T=a[14],k=a[15],S=s[0],C=s[1],M=s[2],O=s[3];return o[0]=S*u+C*p+M*v+O*_,o[1]=S*c+C*m+M*h+O*x,o[2]=S*d+C*g+M*y+O*T,o[3]=S*f+C*b+M*w+O*k,S=s[4],C=s[5],M=s[6],O=s[7],o[4]=S*u+C*p+M*v+O*_,o[5]=S*c+C*m+M*h+O*x,o[6]=S*d+C*g+M*y+O*T,o[7]=S*f+C*b+M*w+O*k,S=s[8],C=s[9],M=s[10],O=s[11],o[8]=S*u+C*p+M*v+O*_,o[9]=S*c+C*m+M*h+O*x,o[10]=S*d+C*g+M*y+O*T,o[11]=S*f+C*b+M*w+O*k,S=s[12],C=s[13],M=s[14],O=s[15],o[12]=S*u+C*p+M*v+O*_,o[13]=S*c+C*m+M*h+O*x,o[14]=S*d+C*g+M*y+O*T,o[15]=S*f+C*b+M*w+O*k,o}},60378:function(i){i.exports=function(o,a,s,u,c,d,f){var p=1/(a-s),m=1/(u-c),g=1/(d-f);return o[0]=-2*p,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=-2*m,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=2*g,o[11]=0,o[12]=(a+s)*p,o[13]=(c+u)*m,o[14]=(f+d)*g,o[15]=1,o}},7864:function(i){i.exports=function(o,a,s,u,c){var d=1/Math.tan(a/2),f=1/(u-c);return o[0]=d/s,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=d,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=(c+u)*f,o[11]=-1,o[12]=0,o[13]=0,o[14]=2*c*u*f,o[15]=0,o}},35279:function(i){i.exports=function(o,a,s,u){var c=Math.tan(a.upDegrees*Math.PI/180),d=Math.tan(a.downDegrees*Math.PI/180),f=Math.tan(a.leftDegrees*Math.PI/180),p=Math.tan(a.rightDegrees*Math.PI/180),m=2/(f+p),g=2/(c+d);return o[0]=m,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=g,o[6]=0,o[7]=0,o[8]=-(f-p)*m*.5,o[9]=(c-d)*g*.5,o[10]=u/(s-u),o[11]=-1,o[12]=0,o[13]=0,o[14]=u*s/(s-u),o[15]=0,o}},65074:function(i){i.exports=function(o,a,s,u){var c,d,f,p,m,g,b,v,h,y,w,_,x,T,k,S,C,M,O,D,P,E,I,A,F=u[0],j=u[1],z=u[2],B=Math.sqrt(F*F+j*j+z*z);return Math.abs(B)<1e-6?null:(F*=B=1/B,j*=B,z*=B,c=Math.sin(s),f=1-(d=Math.cos(s)),p=a[0],m=a[1],g=a[2],b=a[3],v=a[4],h=a[5],y=a[6],w=a[7],_=a[8],x=a[9],T=a[10],k=a[11],S=F*F*f+d,C=j*F*f+z*c,M=z*F*f-j*c,O=F*j*f-z*c,D=j*j*f+d,P=z*j*f+F*c,E=F*z*f+j*c,I=j*z*f-F*c,A=z*z*f+d,o[0]=p*S+v*C+_*M,o[1]=m*S+h*C+x*M,o[2]=g*S+y*C+T*M,o[3]=b*S+w*C+k*M,o[4]=p*O+v*D+_*P,o[5]=m*O+h*D+x*P,o[6]=g*O+y*D+T*P,o[7]=b*O+w*D+k*P,o[8]=p*E+v*I+_*A,o[9]=m*E+h*I+x*A,o[10]=g*E+y*I+T*A,o[11]=b*E+w*I+k*A,a!==o&&(o[12]=a[12],o[13]=a[13],o[14]=a[14],o[15]=a[15]),o)}},35545:function(i){i.exports=function(o,a,s){var u=Math.sin(s),c=Math.cos(s),d=a[4],f=a[5],p=a[6],m=a[7],g=a[8],b=a[9],v=a[10],h=a[11];return a!==o&&(o[0]=a[0],o[1]=a[1],o[2]=a[2],o[3]=a[3],o[12]=a[12],o[13]=a[13],o[14]=a[14],o[15]=a[15]),o[4]=d*c+g*u,o[5]=f*c+b*u,o[6]=p*c+v*u,o[7]=m*c+h*u,o[8]=g*c-d*u,o[9]=b*c-f*u,o[10]=v*c-p*u,o[11]=h*c-m*u,o}},94918:function(i){i.exports=function(o,a,s){var u=Math.sin(s),c=Math.cos(s),d=a[0],f=a[1],p=a[2],m=a[3],g=a[8],b=a[9],v=a[10],h=a[11];return a!==o&&(o[4]=a[4],o[5]=a[5],o[6]=a[6],o[7]=a[7],o[12]=a[12],o[13]=a[13],o[14]=a[14],o[15]=a[15]),o[0]=d*c-g*u,o[1]=f*c-b*u,o[2]=p*c-v*u,o[3]=m*c-h*u,o[8]=d*u+g*c,o[9]=f*u+b*c,o[10]=p*u+v*c,o[11]=m*u+h*c,o}},15692:function(i){i.exports=function(o,a,s){var u=Math.sin(s),c=Math.cos(s),d=a[0],f=a[1],p=a[2],m=a[3],g=a[4],b=a[5],v=a[6],h=a[7];return a!==o&&(o[8]=a[8],o[9]=a[9],o[10]=a[10],o[11]=a[11],o[12]=a[12],o[13]=a[13],o[14]=a[14],o[15]=a[15]),o[0]=d*c+g*u,o[1]=f*c+b*u,o[2]=p*c+v*u,o[3]=m*c+h*u,o[4]=g*c-d*u,o[5]=b*c-f*u,o[6]=v*c-p*u,o[7]=h*c-m*u,o}},10789:function(i){i.exports=function(o,a,s){var u=s[0],c=s[1],d=s[2];return o[0]=a[0]*u,o[1]=a[1]*u,o[2]=a[2]*u,o[3]=a[3]*u,o[4]=a[4]*c,o[5]=a[5]*c,o[6]=a[6]*c,o[7]=a[7]*c,o[8]=a[8]*d,o[9]=a[9]*d,o[10]=a[10]*d,o[11]=a[11]*d,o[12]=a[12],o[13]=a[13],o[14]=a[14],o[15]=a[15],o}},6726:function(i){i.exports=function(o){return"mat4("+o[0]+", "+o[1]+", "+o[2]+", "+o[3]+", "+o[4]+", "+o[5]+", "+o[6]+", "+o[7]+", "+o[8]+", "+o[9]+", "+o[10]+", "+o[11]+", "+o[12]+", "+o[13]+", "+o[14]+", "+o[15]+")"}},31283:function(i){i.exports=function(o,a,s){var u,c,d,f,p,m,g,b,v,h,y,w,_=s[0],x=s[1],T=s[2];return a===o?(o[12]=a[0]*_+a[4]*x+a[8]*T+a[12],o[13]=a[1]*_+a[5]*x+a[9]*T+a[13],o[14]=a[2]*_+a[6]*x+a[10]*T+a[14],o[15]=a[3]*_+a[7]*x+a[11]*T+a[15]):(u=a[0],c=a[1],d=a[2],f=a[3],p=a[4],m=a[5],g=a[6],b=a[7],v=a[8],h=a[9],y=a[10],w=a[11],o[0]=u,o[1]=c,o[2]=d,o[3]=f,o[4]=p,o[5]=m,o[6]=g,o[7]=b,o[8]=v,o[9]=h,o[10]=y,o[11]=w,o[12]=u*_+p*x+v*T+a[12],o[13]=c*_+m*x+h*T+a[13],o[14]=d*_+g*x+y*T+a[14],o[15]=f*_+b*x+w*T+a[15]),o}},88654:function(i){i.exports=function(o,a){if(o===a){var s=a[1],u=a[2],c=a[3],d=a[6],f=a[7],p=a[11];o[1]=a[4],o[2]=a[8],o[3]=a[12],o[4]=s,o[6]=a[9],o[7]=a[13],o[8]=u,o[9]=d,o[11]=a[14],o[12]=c,o[13]=f,o[14]=p}else o[0]=a[0],o[1]=a[4],o[2]=a[8],o[3]=a[12],o[4]=a[1],o[5]=a[5],o[6]=a[9],o[7]=a[13],o[8]=a[2],o[9]=a[6],o[10]=a[10],o[11]=a[14],o[12]=a[3],o[13]=a[7],o[14]=a[11],o[15]=a[15];return o}},40383:function(i,o,a){var s=a(68318)("%Object.getOwnPropertyDescriptor%",!0);if(s)try{s([],"length")}catch{s=null}i.exports=s},57035:function(i,o,a){var s,u=a(54404);s=typeof a.g.matchMedia=="function"?!a.g.matchMedia("(hover: none)").matches:u,i.exports=s},38520:function(i,o,a){var s=a(54404);i.exports=s&&function(){var u=!1;try{var c=Object.defineProperty({},"passive",{get:function(){u=!0}});window.addEventListener("test",null,c),window.removeEventListener("test",null,c)}catch{u=!1}return u}()},55622:function(i,o,a){var s=a(68318)("%Object.defineProperty%",!0),u=function(){if(s)try{return s({},"a",{value:1}),!0}catch{return!1}return!1};u.hasArrayLengthDefineBug=function(){if(!u())return null;try{return s([],"length",{value:1}).length!==1}catch{return!0}},i.exports=u},57877:function(i,o,a){var s=typeof Symbol<"u"&&Symbol,u=a(35638);i.exports=function(){return typeof s=="function"&&typeof Symbol=="function"&&typeof s("foo")=="symbol"&&typeof Symbol("bar")=="symbol"&&u()}},35638:function(i){i.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var o={},a=Symbol("test"),s=Object(a);if(typeof a=="string"||Object.prototype.toString.call(a)!=="[object Symbol]"||Object.prototype.toString.call(s)!=="[object Symbol]")return!1;for(a in o[a]=42,o)return!1;if(typeof Object.keys=="function"&&Object.keys(o).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(o).length!==0)return!1;var u=Object.getOwnPropertySymbols(o);if(u.length!==1||u[0]!==a||!Object.prototype.propertyIsEnumerable.call(o,a))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(o,a);if(c.value!==42||c.enumerable!==!0)return!1}return!0}},84543:function(i,o,a){var s=a(35638);i.exports=function(){return s()&&!!Symbol.toStringTag}},35065:function(i,o,a){var s=a(77575);i.exports=s.call(Function.call,Object.prototype.hasOwnProperty)},95280:function(i,o){o.read=function(a,s,u,c,d){var f,p,m=8*d-c-1,g=(1<>1,v=-7,h=u?d-1:0,y=u?-1:1,w=a[s+h];for(h+=y,f=w&(1<<-v)-1,w>>=-v,v+=m;v>0;f=256*f+a[s+h],h+=y,v-=8);for(p=f&(1<<-v)-1,f>>=-v,v+=c;v>0;p=256*p+a[s+h],h+=y,v-=8);if(f===0)f=1-b;else{if(f===g)return p?NaN:1/0*(w?-1:1);p+=Math.pow(2,c),f-=b}return(w?-1:1)*p*Math.pow(2,f-c)},o.write=function(a,s,u,c,d,f){var p,m,g,b=8*f-d-1,v=(1<>1,y=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=c?0:f-1,_=c?1:-1,x=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(m=isNaN(s)?1:0,p=v):(p=Math.floor(Math.log(s)/Math.LN2),s*(g=Math.pow(2,-p))<1&&(p--,g*=2),(s+=p+h>=1?y/g:y*Math.pow(2,1-h))*g>=2&&(p++,g/=2),p+h>=v?(m=0,p=v):p+h>=1?(m=(s*g-1)*Math.pow(2,d),p+=h):(m=s*Math.pow(2,h-1)*Math.pow(2,d),p=0));d>=8;a[u+w]=255&m,w+=_,m/=256,d-=8);for(p=p<0;a[u+w]=255&p,w+=_,p/=256,b-=8);a[u+w-_]|=128*x}},42018:function(i){typeof Object.create=="function"?i.exports=function(o,a){a&&(o.super_=a,o.prototype=Object.create(a.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}))}:i.exports=function(o,a){if(a){o.super_=a;var s=function(){};s.prototype=a.prototype,o.prototype=new s,o.prototype.constructor=o}}},47216:function(i,o,a){var s=a(84543)(),u=a(6614)("Object.prototype.toString"),c=function(p){return!(s&&p&&typeof p=="object"&&Symbol.toStringTag in p)&&u(p)==="[object Arguments]"},d=function(p){return!!c(p)||p!==null&&typeof p=="object"&&typeof p.length=="number"&&p.length>=0&&u(p)!=="[object Array]"&&u(p.callee)==="[object Function]"},f=function(){return c(arguments)}();c.isLegacyArguments=d,i.exports=f?c:d},54404:function(i){i.exports=!0},85395:function(i){var o,a,s=Function.prototype.toString,u=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply;if(typeof u=="function"&&typeof Object.defineProperty=="function")try{o=Object.defineProperty({},"length",{get:function(){throw a}}),a={},u(function(){throw 42},null,o)}catch(h){h!==a&&(u=null)}else u=null;var c=/^\s*class\b/,d=function(h){try{var y=s.call(h);return c.test(y)}catch{return!1}},f=function(h){try{return!d(h)&&(s.call(h),!0)}catch{return!1}},p=Object.prototype.toString,m=typeof Symbol=="function"&&!!Symbol.toStringTag,g=!(0 in[,]),b=function(){return!1};if(typeof document=="object"){var v=document.all;p.call(v)===p.call(document.all)&&(b=function(h){if((g||!h)&&(h===void 0||typeof h=="object"))try{var y=p.call(h);return(y==="[object HTMLAllCollection]"||y==="[object HTML document.all class]"||y==="[object HTMLCollection]"||y==="[object Object]")&&h("")==null}catch{}return!1})}i.exports=u?function(h){if(b(h))return!0;if(!h||typeof h!="function"&&typeof h!="object")return!1;try{u(h,null,o)}catch(y){if(y!==a)return!1}return!d(h)&&f(h)}:function(h){if(b(h))return!0;if(!h||typeof h!="function"&&typeof h!="object")return!1;if(m)return f(h);if(d(h))return!1;var y=p.call(h);return!(y!=="[object Function]"&&y!=="[object GeneratorFunction]"&&!/^\[object HTML/.test(y))&&f(h)}},65481:function(i,o,a){var s,u=Object.prototype.toString,c=Function.prototype.toString,d=/^\s*(?:function)?\*/,f=a(84543)(),p=Object.getPrototypeOf;i.exports=function(m){if(typeof m!="function")return!1;if(d.test(c.call(m)))return!0;if(!f)return u.call(m)==="[object GeneratorFunction]";if(!p)return!1;if(s===void 0){var g=function(){if(!f)return!1;try{return Function("return function*() {}")()}catch{}}();s=!!g&&p(g)}return p(m)===s}},64274:function(i){i.exports=function(o){return o!=o}},15567:function(i,o,a){var s=a(68222),u=a(17045),c=a(64274),d=a(14922),f=a(22442),p=s(d(),Number);u(p,{getPolyfill:d,implementation:c,shim:f}),i.exports=p},14922:function(i,o,a){var s=a(64274);i.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:s}},22442:function(i,o,a){var s=a(17045),u=a(14922);i.exports=function(){var c=u();return s(Number,{isNaN:c},{isNaN:function(){return Number.isNaN!==c}}),c}},18546:function(i){i.exports=function(o){for(var a,s=o.length,u=0;u13)&&a!==32&&a!==133&&a!==160&&a!==5760&&a!==6158&&(a<8192||a>8205)&&a!==8232&&a!==8233&&a!==8239&&a!==8287&&a!==8288&&a!==12288&&a!==65279)return!1;return!0}},9187:function(i,o,a){var s=a(31353),u=a(72077),c=a(6614),d=c("Object.prototype.toString"),f=a(84543)(),p=a(40383),m=typeof globalThis>"u"?a.g:globalThis,g=u(),b=c("Array.prototype.indexOf",!0)||function(w,_){for(var x=0;x-1}return!!p&&function(x){var T=!1;return s(h,function(k,S){if(!T)try{T=k.call(x)===S}catch{}}),T}(w)}},48956:function(i){var o={left:0,top:0};i.exports=function(a,s,u){s=s||a.currentTarget||a.srcElement,Array.isArray(u)||(u=[0,0]);var c,d=a.clientX||0,f=a.clientY||0,p=(c=s)===window||c===document||c===document.body?o:c.getBoundingClientRect();return u[0]=d-p.left,u[1]=f-p.top,u}},7417:function(i,o,a){var s,u,c,d;u="Promise",d=function(){var f,p,m,g=Object.prototype.toString,b=typeof setImmediate<"u"?function(O){return setImmediate(O)}:setTimeout;try{Object.defineProperty({},"x",{}),f=function(O,D,P,E){return Object.defineProperty(O,D,{value:P,writable:!0,configurable:E!==!1})}}catch{f=function(D,P,E){return D[P]=E,D}}function v(O,D){m.add(O,D),p||(p=b(m.drain))}function h(O){var D,P=typeof O;return O==null||P!="object"&&P!="function"||(D=O.then),typeof D=="function"&&D}function y(){for(var O=0;O0&&v(y,P))}catch(E){x.call(new k(P),E)}}}function x(O){var D=this;D.triggered||(D.triggered=!0,D.def&&(D=D.def),D.msg=O,D.state=2,D.chain.length>0&&v(y,D))}function T(O,D,P,E){for(var I=0;I"u")return!1;for(var y in window)try{if(!v["$"+y]&&u.call(window,y)&&window[y]!==null&&typeof window[y]=="object")try{b(window[y])}catch{return!0}}catch{return!0}return!1}();s=function(y){var w=y!==null&&typeof y=="object",_=c.call(y)==="[object Function]",x=d(y),T=w&&c.call(y)==="[object String]",k=[];if(!w&&!_&&!x)throw new TypeError("Object.keys called on a non-object");var S=m&&_;if(T&&y.length>0&&!u.call(y,0))for(var C=0;C0)for(var M=0;M"u"||!h)return b(E);try{return b(E)}catch{return!1}}(y),P=0;P=0&&o.call(a.callee)==="[object Function]"),u}},95616:function(i){i.exports=function(u){var c=[];return u.replace(a,function(d,f,p){var m=f.toLowerCase();for(p=function(g){var b=g.match(s);return b?b.map(Number):[]}(p),m=="m"&&p.length>2&&(c.push([f].concat(p.splice(0,2))),m="l",f=f=="m"?"l":"L");;){if(p.length==o[m])return p.unshift(f),c.push(p);if(p.lengthd!=y>d&&c<(h-b)*(d-v)/(y-v)+b&&(f=!f)}return f}},52142:function(i,o,a){var s,u=a(69444),c=a(29023),d=a(87263),f=a(11328),p=a(55968),m=a(10670),g=!1,b=c();function v(h,y,w){var _=s.segments(h),x=s.segments(y),T=w(s.combine(_,x));return s.polygon(T)}s={buildLog:function(h){return h===!0?g=u():h===!1&&(g=!1),g!==!1&&g.list},epsilon:function(h){return b.epsilon(h)},segments:function(h){var y=d(!0,b,g);return h.regions.forEach(y.addRegion),{segments:y.calculate(h.inverted),inverted:h.inverted}},combine:function(h,y){return{combined:d(!1,b,g).calculate(h.segments,h.inverted,y.segments,y.inverted),inverted1:h.inverted,inverted2:y.inverted}},selectUnion:function(h){return{segments:p.union(h.combined,g),inverted:h.inverted1||h.inverted2}},selectIntersect:function(h){return{segments:p.intersect(h.combined,g),inverted:h.inverted1&&h.inverted2}},selectDifference:function(h){return{segments:p.difference(h.combined,g),inverted:h.inverted1&&!h.inverted2}},selectDifferenceRev:function(h){return{segments:p.differenceRev(h.combined,g),inverted:!h.inverted1&&h.inverted2}},selectXor:function(h){return{segments:p.xor(h.combined,g),inverted:h.inverted1!==h.inverted2}},polygon:function(h){return{regions:f(h.segments,b,g),inverted:h.inverted}},polygonFromGeoJSON:function(h){return m.toPolygon(s,h)},polygonToGeoJSON:function(h){return m.fromPolygon(s,b,h)},union:function(h,y){return v(h,y,s.selectUnion)},intersect:function(h,y){return v(h,y,s.selectIntersect)},difference:function(h,y){return v(h,y,s.selectDifference)},differenceRev:function(h,y){return v(h,y,s.selectDifferenceRev)},xor:function(h,y){return v(h,y,s.selectXor)}},typeof window=="object"&&(window.PolyBool=s),i.exports=s},69444:function(i){i.exports=function(){var o,a=0,s=!1;function u(c,d){return o.list.push({type:c,data:d?JSON.parse(JSON.stringify(d)):void 0}),o}return o={list:[],segmentId:function(){return a++},checkIntersection:function(c,d){return u("check",{seg1:c,seg2:d})},segmentChop:function(c,d){return u("div_seg",{seg:c,pt:d}),u("chop",{seg:c,pt:d})},statusRemove:function(c){return u("pop_seg",{seg:c})},segmentUpdate:function(c){return u("seg_update",{seg:c})},segmentNew:function(c,d){return u("new_seg",{seg:c,primary:d})},segmentRemove:function(c){return u("rem_seg",{seg:c})},tempStatus:function(c,d,f){return u("temp_status",{seg:c,above:d,below:f})},rewind:function(c){return u("rewind",{seg:c})},status:function(c,d,f){return u("status",{seg:c,above:d,below:f})},vert:function(c){return c===s?o:(s=c,u("vert",{x:c}))},log:function(c){return typeof c!="string"&&(c=JSON.stringify(c,!1," ")),u("log",{txt:c})},reset:function(){return u("reset")},selected:function(c){return u("selected",{segs:c})},chainStart:function(c){return u("chain_start",{seg:c})},chainRemoveHead:function(c,d){return u("chain_rem_head",{index:c,pt:d})},chainRemoveTail:function(c,d){return u("chain_rem_tail",{index:c,pt:d})},chainNew:function(c,d){return u("chain_new",{pt1:c,pt2:d})},chainMatch:function(c){return u("chain_match",{index:c})},chainClose:function(c){return u("chain_close",{index:c})},chainAddHead:function(c,d){return u("chain_add_head",{index:c,pt:d})},chainAddTail:function(c,d){return u("chain_add_tail",{index:c,pt:d})},chainConnect:function(c,d){return u("chain_con",{index1:c,index2:d})},chainReverse:function(c){return u("chain_rev",{index:c})},chainJoin:function(c,d){return u("chain_join",{index1:c,index2:d})},done:function(){return u("done")}}}},29023:function(i){i.exports=function(o){typeof o!="number"&&(o=1e-10);var a={epsilon:function(s){return typeof s=="number"&&(o=s),o},pointAboveOrOnLine:function(s,u,c){var d=u[0],f=u[1],p=c[0],m=c[1],g=s[0];return(p-d)*(s[1]-f)-(m-f)*(g-d)>=-o},pointBetween:function(s,u,c){var d=s[1]-u[1],f=c[0]-u[0],p=s[0]-u[0],m=c[1]-u[1],g=p*f+d*m;return!(g-o)},pointsSameX:function(s,u){return Math.abs(s[0]-u[0])o!=p-d>o&&(f-b)*(d-v)/(p-v)+b-c>o&&(m=!m),f=b,p=v}return m}};return a}},10670:function(i){var o={toPolygon:function(a,s){function u(f){if(f.length<=0)return a.segments({inverted:!1,regions:[]});function p(b){var v=b.slice(0,b.length-1);return a.segments({inverted:!1,regions:[v]})}for(var m=p(f[0]),g=1;g0})}function x(F,j){var z=F.seg,B=j.seg,N=z.start,R=z.end,q=B.start,Y=B.end;d&&d.checkIntersection(z,B);var L=c.linesIntersect(N,R,q,Y);if(L===!1){if(!c.pointsCollinear(N,R,q)||c.pointsSame(N,Y)||c.pointsSame(R,q))return!1;var W=c.pointsSame(N,q),U=c.pointsSame(R,Y);if(W&&U)return j;var V=!W&&c.pointBetween(N,q,Y),te=!U&&c.pointBetween(R,q,Y);if(W)return te?b(j,R):b(F,Y),j;V&&(U||(te?b(j,R):b(F,Y)),b(j,N))}else L.alongA===0&&(L.alongB===-1?b(F,q):L.alongB===0?b(F,L.pt):L.alongB===1&&b(F,Y)),L.alongB===0&&(L.alongA===-1?b(j,N):L.alongA===0?b(j,L.pt):L.alongA===1&&b(j,R));return!1}for(var T=[];!p.isEmpty();){var k=p.getHead();if(d&&d.vert(k.pt[0]),k.isStart){let F=function(){if(C){var j=x(k,C);if(j)return j}return!!M&&x(k,M)};var A=F;d&&d.segmentNew(k.seg,k.primary);var S=_(k),C=S.before?S.before.ev:null,M=S.after?S.after.ev:null;d&&d.tempStatus(k.seg,!!C&&C.seg,!!M&&M.seg);var O,D,P=F();if(P&&(u?(D=k.seg.myFill.below===null||k.seg.myFill.above!==k.seg.myFill.below)&&(P.seg.myFill.above=!P.seg.myFill.above):P.seg.otherFill=k.seg.myFill,d&&d.segmentUpdate(P.seg),k.other.remove(),k.remove()),p.getHead()!==k){d&&d.rewind(k.seg);continue}u?(D=k.seg.myFill.below===null||k.seg.myFill.above!==k.seg.myFill.below,k.seg.myFill.below=M?M.seg.myFill.above:h,k.seg.myFill.above=D?!k.seg.myFill.below:k.seg.myFill.below):k.seg.otherFill===null&&(O=M?k.primary===M.primary?M.seg.otherFill.above:M.seg.myFill.above:k.primary?y:h,k.seg.otherFill={above:O,below:O}),d&&d.status(k.seg,!!C&&C.seg,!!M&&M.seg),k.other.status=S.insert(s.node({ev:k}))}else{var E=k.status;if(E===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(w.exists(E.prev)&&w.exists(E.next)&&x(E.prev.ev,E.next.ev),d&&d.statusRemove(E.ev.seg),E.remove(),!k.primary){var I=k.seg.myFill;k.seg.myFill=k.seg.otherFill,k.seg.otherFill=I}T.push(k.seg)}p.getHead().remove()}return d&&d.done(),T}return u?{addRegion:function(h){for(var y,w,_,x=h[h.length-1],T=0;T0&&!this.aborted;){var d=this.ifds_to_read.shift();d.offset&&this.scan_ifd(d.id,d.offset,u)}},s.prototype.read_uint16=function(u){var c=this.input;if(u+2>c.length)throw o("unexpected EOF","EBADDATA");return this.big_endian?256*c[u]+c[u+1]:c[u]+256*c[u+1]},s.prototype.read_uint32=function(u){var c=this.input;if(u+4>c.length)throw o("unexpected EOF","EBADDATA");return this.big_endian?16777216*c[u]+65536*c[u+1]+256*c[u+2]+c[u+3]:c[u]+256*c[u+1]+65536*c[u+2]+16777216*c[u+3]},s.prototype.is_subifd_link=function(u,c){return u===0&&c===34665||u===0&&c===34853||u===34665&&c===40965},s.prototype.exif_format_length=function(u){switch(u){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}},s.prototype.exif_format_read=function(u,c){var d;switch(u){case 1:case 2:return this.input[c];case 6:return(d=this.input[c])|33554430*(128&d);case 3:return this.read_uint16(c);case 8:return(d=this.read_uint16(c))|131070*(32768&d);case 4:return this.read_uint32(c);case 9:return 0|this.read_uint32(c);default:return null}},s.prototype.scan_ifd=function(u,c,d){var f=this.read_uint16(c);c+=2;for(var p=0;pthis.input.length)throw o("unexpected EOF","EBADDATA");for(var _=[],x=y,T=0;T0&&(this.ifds_to_read.push({id:m,offset:_[0]}),w=!0),d({is_big_endian:this.big_endian,ifd:u,tag:m,format:g,count:b,entry_offset:c+this.start,data_length:h,data_offset:y+this.start,value:_,is_subifd_link:w})===!1)return void(this.aborted=!0);c+=12}u===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(c)})},i.exports.ExifParser=s,i.exports.get_orientation=function(u){var c=0;try{return new s(u,0,u.length).each(function(d){if(d.ifd===0&&d.tag===274&&Array.isArray(d.value))return c=d.value[0],!1}),c}catch{return-1}}},76767:function(i,o,a){var s=a(14847).n8,u=a(14847).Ag;function c(b,v){if(b.length<4+v)return null;var h=u(b,v);return b.length>4&15,y=15&b[4],w=b[5]>>4&15,_=s(b,6),x=8,T=0;T<_;T++){var k=s(b,x),S=s(b,x+=2),C=f(b,x+=2,w),M=s(b,x+=w);if(x+=2,S===0&&M===1){var O=f(b,x,h),D=f(b,x+h,y);v.item_loc[k]={length:D,offset:O+C}}x+=M*(h+y)}}function m(b,v){for(var h=s(b,4),y=6,w=0;wS.width||k.width===S.width&&k.height>S.height?k:S}),w=h.reduce(function(k,S){return k.height>S.height||k.height===S.height&&k.width>S.width?k:S}),y.width>w.height||y.width===w.height&&y.height>w.width?y:w),x=1;v.transforms.forEach(function(k){var S={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},C={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(k.type==="imir"&&(x=k.value===0?C[x]:S[x=S[x=C[x]]]),k.type==="irot")for(var M=0;M1&&(_.variants=w.variants),w.orientation&&(_.orientation=w.orientation),w.exif_location&&w.exif_location.offset+w.exif_location.length<=m.length){var x=c(m,w.exif_location.offset),T=m.slice(w.exif_location.offset+x+4,w.exif_location.offset+w.exif_location.length),k=f.get_orientation(T);k>0&&(_.orientation=k)}return _}}}}}}},2504:function(i,o,a){var s=a(14847).eG,u=a(14847).OF,c=a(14847).mP,d=s("BM");i.exports=function(f){if(!(f.length<26)&&u(f,0,d))return{width:c(f,18),height:c(f,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}},47342:function(i,o,a){var s=a(14847).eG,u=a(14847).OF,c=a(14847).mP,d=s("GIF87a"),f=s("GIF89a");i.exports=function(p){if(!(p.length<10)&&(u(p,0,d)||u(p,0,f)))return{width:c(p,6),height:c(p,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}},31355:function(i,o,a){var s=a(14847).mP;i.exports=function(u){var c=s(u,0),d=s(u,2),f=s(u,4);if(c===0&&d===1&&f){for(var p=[],m={width:0,height:0},g=0;gm.width||v>m.height)&&(m=h)}return{width:m.width,height:m.height,variants:p,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}},54261:function(i,o,a){var s=a(14847).n8,u=a(14847).eG,c=a(14847).OF,d=a(71371),f=u("Exif\0\0");i.exports=function(p){if(!(p.length<2)&&p[0]===255&&p[1]===216&&p[2]===255)for(var m=2;;){for(;;){if(p.length-m<2)return;if(p[m++]===255)break}for(var g,b,v=p[m++];v===255;)v=p[m++];if(208<=v&&v<=217||v===1)g=0;else{if(!(192<=v&&v<=254)||p.length-m<2)return;g=s(p,m)-2,m+=2}if(v===217||v===218)return;if(v===225&&g>=10&&c(p,m,f)&&(b=d.get_orientation(p.slice(m+6,m+g))),g>=5&&192<=v&&v<=207&&v!==196&&v!==200&&v!==204){if(p.length-m0&&(h.orientation=b),h}m+=g}}},6303:function(i,o,a){var s=a(14847).eG,u=a(14847).OF,c=a(14847).Ag,d=s(`‰PNG\r +`):H=" ".concat(B," ").concat(H)),F=d(this,b(P).call(this,"".concat(W).concat(H)))}return Error.stackTraceLimit=q,F.generatedMessage=!j,Object.defineProperty(f(F),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),F.code="ERR_ASSERTION",F.actual=N,F.expected=R,F.operator=B,Error.captureStackTrace&&Error.captureStackTrace(f(F),z),F.stack,F.name="AssertionError",d(F)}var E,I;return function(A,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(F&&F.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),F&&g(A,F)}(P,D),E=P,I=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:m.custom,value:function(A,F){return m(this,function(j){for(var B=1;B2?"one of ".concat(v," ").concat(b.slice(0,m-1).join(", "),", or ")+b[m-1]:m===2?"one of ".concat(v," ").concat(b[0]," or ").concat(b[1]):"of ".concat(v," ").concat(b[0])}return"of ".concat(v," ").concat(String(b))}h("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),h("ERR_INVALID_ARG_TYPE",function(b,v,m){var y,x,_,w,S;if(d===void 0&&(d=a(32791)),d(typeof b=="string","'name' must be a string"),typeof v=="string"&&(x="not ",v.substr(0,4)===x)?(y="must not be",v=v.replace(/^not /,"")):y="must be",function(C,T,M){return(M===void 0||M>C.length)&&(M=C.length),C.substring(M-9,M)===T}(b," argument"))_="The ".concat(b," ").concat(y," ").concat(g(v,"type"));else{var k=(typeof S!="number"&&(S=0),S+1>(w=b).length||w.indexOf(".",S)===-1?"argument":"property");_='The "'.concat(b,'" ').concat(k," ").concat(y," ").concat(g(v,"type"))}return _+". Received type ".concat(s(m))},TypeError),h("ERR_INVALID_ARG_VALUE",function(b,v){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";f===void 0&&(f=a(43827));var y=f.inspect(v);return y.length>128&&(y="".concat(y.slice(0,128),"...")),"The argument '".concat(b,"' ").concat(m,". Received ").concat(y)},TypeError),h("ERR_INVALID_RETURN_VALUE",function(b,v,m){var y;return y=m&&m.constructor&&m.constructor.name?"instance of ".concat(m.constructor.name):"type ".concat(s(m)),"Expected ".concat(b,' to be returned from the "').concat(v,'"')+" function but got ".concat(y,".")},TypeError),h("ERR_MISSING_ARGS",function(){for(var b=arguments.length,v=new Array(b),m=0;m0,"At least one arg needs to be specified");var y="The ",x=v.length;switch(v=v.map(function(_){return'"'.concat(_,'"')}),x){case 1:y+="".concat(v[0]," argument");break;case 2:y+="".concat(v[0]," and ").concat(v[1]," arguments");break;default:y+=v.slice(0,x-1).join(", "),y+=", and ".concat(v[x-1]," arguments")}return"".concat(y," must be specified")},TypeError),i.exports.codes=p},74061:function(i,o,a){function s(X,K){return function(ne){if(Array.isArray(ne))return ne}(X)||function(ne,ae){var ie=[],se=!0,pe=!1,ke=void 0;try{for(var Ce,Oe=ne[Symbol.iterator]();!(se=(Ce=Oe.next()).done)&&(ie.push(Ce.value),!ae||ie.length!==ae);se=!0);}catch(Pe){pe=!0,ke=Pe}finally{try{se||Oe.return==null||Oe.return()}finally{if(pe)throw ke}}return ie}(X,K)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function u(X){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(K){return typeof K}:function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},u(X)}var c=/a/g.flags!==void 0,d=function(X){var K=[];return X.forEach(function(ne){return K.push(ne)}),K},f=function(X){var K=[];return X.forEach(function(ne,ae){return K.push([ae,ne])}),K},p=Object.is?Object.is:a(64003),h=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},g=Number.isNaN?Number.isNaN:a(15567);function b(X){return X.call.bind(X)}var v=b(Object.prototype.hasOwnProperty),m=b(Object.prototype.propertyIsEnumerable),y=b(Object.prototype.toString),x=a(43827).types,_=x.isAnyArrayBuffer,w=x.isArrayBufferView,S=x.isDate,k=x.isMap,C=x.isRegExp,T=x.isSet,M=x.isNativeError,O=x.isBoxedPrimitive,D=x.isNumberObject,P=x.isStringObject,E=x.isBooleanObject,I=x.isBigIntObject,A=x.isSymbolObject,F=x.isFloat32Array,j=x.isFloat64Array;function B(X){if(X.length===0||X.length>10)return!0;for(var K=0;K57)return!0}return X.length===10&&X>=Math.pow(2,32)}function z(X){return Object.keys(X).filter(B).concat(h(X).filter(Object.prototype.propertyIsEnumerable.bind(X)))}function N(X,K){if(X===K)return 0;for(var ne=X.length,ae=K.length,ie=0,se=Math.min(ne,ae);ie0?m-4:m;for(b=0;b>16&255,x[_++]=g>>8&255,x[_++]=255&g;return y===2&&(g=s[h.charCodeAt(b)]<<2|s[h.charCodeAt(b+1)]>>4,x[_++]=255&g),y===1&&(g=s[h.charCodeAt(b)]<<10|s[h.charCodeAt(b+1)]<<4|s[h.charCodeAt(b+2)]>>2,x[_++]=g>>8&255,x[_++]=255&g),x},o.fromByteArray=function(h){for(var g,b=h.length,v=b%3,m=[],y=16383,x=0,_=b-v;x<_;x+=y)m.push(p(h,x,x+y>_?_:x+y));return v===1?(g=h[b-1],m.push(a[g>>2]+a[g<<4&63]+"==")):v===2&&(g=(h[b-2]<<8)+h[b-1],m.push(a[g>>10]+a[g>>4&63]+a[g<<2&63]+"=")),m.join("")};for(var a=[],s=[],u=typeof Uint8Array<"u"?Uint8Array:Array,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0;d<64;++d)a[d]=c[d],s[c.charCodeAt(d)]=d;function f(h){var g=h.length;if(g%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var b=h.indexOf("=");return b===-1&&(b=g),[b,b===g?0:4-b%4]}function p(h,g,b){for(var v,m,y=[],x=g;x>18&63]+a[m>>12&63]+a[m>>6&63]+a[63&m]);return y.join("")}s[45]=62,s[95]=63},6614:function(i,o,a){var s=a(68318),u=a(68222),c=u(s("String.prototype.indexOf"));i.exports=function(d,f){var p=s(d,!!f);return typeof p=="function"&&c(d,".prototype.")>-1?u(p):p}},68222:function(i,o,a){var s=a(77575),u=a(68318),c=u("%Function.prototype.apply%"),d=u("%Function.prototype.call%"),f=u("%Reflect.apply%",!0)||s.call(d,c),p=u("%Object.getOwnPropertyDescriptor%",!0),h=u("%Object.defineProperty%",!0),g=u("%Math.max%");if(h)try{h({},"a",{value:1})}catch{h=null}i.exports=function(v){var m=f(s,d,arguments);return p&&h&&p(m,"length").configurable&&h(m,"length",{value:1+g(0,v.length-(arguments.length-1))}),m};var b=function(){return f(s,c,arguments)};h?h(i.exports,"apply",{value:b}):i.exports.apply=b},60721:function(i,o,a){function s(_,w){if((S=(_=w?_.toExponential(w-1):_.toExponential()).indexOf("e"))<0)return null;var S,k=_.slice(0,S);return[k.length>1?k[0]+k.slice(2):k,+_.slice(S+1)]}a.d(o,{WU:function(){return v},FF:function(){return x}});var u,c=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function d(_){if(!(w=c.exec(_)))throw new Error("invalid format: "+_);var w;return new f({fill:w[1],align:w[2],sign:w[3],symbol:w[4],zero:w[5],width:w[6],comma:w[7],precision:w[8]&&w[8].slice(1),trim:w[9],type:w[10]})}function f(_){this.fill=_.fill===void 0?" ":_.fill+"",this.align=_.align===void 0?">":_.align+"",this.sign=_.sign===void 0?"-":_.sign+"",this.symbol=_.symbol===void 0?"":_.symbol+"",this.zero=!!_.zero,this.width=_.width===void 0?void 0:+_.width,this.comma=!!_.comma,this.precision=_.precision===void 0?void 0:+_.precision,this.trim=!!_.trim,this.type=_.type===void 0?"":_.type+""}function p(_,w){var S=s(_,w);if(!S)return _+"";var k=S[0],C=S[1];return C<0?"0."+new Array(-C).join("0")+k:k.length>C+1?k.slice(0,C+1)+"."+k.slice(C+1):k+new Array(C-k.length+2).join("0")}d.prototype=f.prototype,f.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,0|this.width))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var h={"%":function(_,w){return(100*_).toFixed(w)},b:function(_){return Math.round(_).toString(2)},c:function(_){return _+""},d:function(_){return Math.abs(_=Math.round(_))>=1e21?_.toLocaleString("en").replace(/,/g,""):_.toString(10)},e:function(_,w){return _.toExponential(w)},f:function(_,w){return _.toFixed(w)},g:function(_,w){return _.toPrecision(w)},o:function(_){return Math.round(_).toString(8)},p:function(_,w){return p(100*_,w)},r:p,s:function(_,w){var S=s(_,w);if(!S)return _+"";var k=S[0],C=S[1],T=C-(u=3*Math.max(-8,Math.min(8,Math.floor(C/3))))+1,M=k.length;return T===M?k:T>M?k+new Array(T-M+1).join("0"):T>0?k.slice(0,T)+"."+k.slice(T):"0."+new Array(1-T).join("0")+s(_,Math.max(0,w+T-1))[0]},X:function(_){return Math.round(_).toString(16).toUpperCase()},x:function(_){return Math.round(_).toString(16)}};function g(_){return _}var b,v,m=Array.prototype.map,y=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function x(_){var w,S,k=_.grouping===void 0||_.thousands===void 0?g:(w=m.call(_.grouping,Number),S=_.thousands+"",function(A,F){for(var j=A.length,B=[],z=0,N=w[0],R=0;j>0&&N>0&&(R+N+1>F&&(N=Math.max(1,F-R)),B.push(A.substring(j-=N,j+N)),!((R+=N+1)>F));)N=w[z=(z+1)%w.length];return B.reverse().join(S)}),C=_.currency===void 0?"":_.currency[0]+"",T=_.currency===void 0?"":_.currency[1]+"",M=_.decimal===void 0?".":_.decimal+"",O=_.numerals===void 0?g:function(A){return function(F){return F.replace(/[0-9]/g,function(j){return A[+j]})}}(m.call(_.numerals,String)),D=_.percent===void 0?"%":_.percent+"",P=_.minus===void 0?"-":_.minus+"",E=_.nan===void 0?"NaN":_.nan+"";function I(A){var F=(A=d(A)).fill,j=A.align,B=A.sign,z=A.symbol,N=A.zero,R=A.width,q=A.comma,Y=A.precision,L=A.trim,W=A.type;W==="n"?(q=!0,W="g"):h[W]||(Y===void 0&&(Y=12),L=!0,W="g"),(N||F==="0"&&j==="=")&&(N=!0,F="0",j="=");var H=z==="$"?C:z==="#"&&/[boxX]/.test(W)?"0"+W.toLowerCase():"",G=z==="$"?T:/[%p]/.test(W)?D:"",te=h[W],ee=/[defgprs%]/.test(W);function U(Q){var V,X,K,ne=H,ae=G;if(W==="c")ae=te(Q)+ae,Q="";else{var ie=(Q=+Q)<0||1/Q<0;if(Q=isNaN(Q)?E:te(Math.abs(Q),Y),L&&(Q=function(ke){e:for(var Ce,Oe=ke.length,Pe=1,ce=-1;Pe0&&(ce=0)}return ce>0?ke.slice(0,ce)+ke.slice(Ce+1):ke}(Q)),ie&&+Q==0&&B!=="+"&&(ie=!1),ne=(ie?B==="("?B:P:B==="-"||B==="("?"":B)+ne,ae=(W==="s"?y[8+u/3]:"")+ae+(ie&&B==="("?")":""),ee){for(V=-1,X=Q.length;++V(K=Q.charCodeAt(V))||K>57){ae=(K===46?M+Q.slice(V+1):Q.slice(V))+ae,Q=Q.slice(0,V);break}}}q&&!N&&(Q=k(Q,1/0));var se=ne.length+Q.length+ae.length,pe=se>1)+ne+Q+ae+pe.slice(se);break;default:Q=pe+ne+Q+ae}return O(Q)}return Y=Y===void 0?6:/[gprs]/.test(W)?Math.max(1,Math.min(21,Y)):Math.max(0,Math.min(20,Y)),U.toString=function(){return A+""},U}return{format:I,formatPrefix:function(A,F){var j,B=I(((A=d(A)).type="f",A)),z=3*Math.max(-8,Math.min(8,Math.floor((j=F,((j=s(Math.abs(j)))?j[1]:NaN)/3)))),N=Math.pow(10,-z),R=y[8+z/3];return function(q){return B(N*q)+R}}}}b=x({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),v=b.format,b.formatPrefix},84096:function(i,o,a){a.d(o,{i$:function(){return y},Dq:function(){return v},g0:function(){return x}});var s=a(58176),u=a(48480),c=a(59879),d=a(82301),f=a(34823),p=a(79791);function h(Be){if(0<=Be.y&&Be.y<100){var je=new Date(-1,Be.m,Be.d,Be.H,Be.M,Be.S,Be.L);return je.setFullYear(Be.y),je}return new Date(Be.y,Be.m,Be.d,Be.H,Be.M,Be.S,Be.L)}function g(Be){if(0<=Be.y&&Be.y<100){var je=new Date(Date.UTC(-1,Be.m,Be.d,Be.H,Be.M,Be.S,Be.L));return je.setUTCFullYear(Be.y),je}return new Date(Date.UTC(Be.y,Be.m,Be.d,Be.H,Be.M,Be.S,Be.L))}function b(Be,je,tt){return{y:Be,m:je,d:tt,H:0,M:0,S:0,L:0}}function v(Be){var je=Be.dateTime,tt=Be.date,it=Be.time,St=Be.periods,et=Be.days,ct=Be.shortDays,ht=Be.months,$t=Be.shortMonths,kt=M(St),Wt=O(St),wt=M(et),be=O(et),Me=M(ct),Ve=O(ct),Ue=M(ht),Ze=O(ht),Ye=M($t),Qe=O($t),rt={a:function(Ct){return ct[Ct.getDay()]},A:function(Ct){return et[Ct.getDay()]},b:function(Ct){return $t[Ct.getMonth()]},B:function(Ct){return ht[Ct.getMonth()]},c:null,d:Q,e:Q,f:ae,H:V,I:X,j:K,L:ne,m:ie,M:se,p:function(Ct){return St[+(Ct.getHours()>=12)]},q:function(Ct){return 1+~~(Ct.getMonth()/3)},Q:st,s:bt,S:pe,u:ke,U:Ce,V:Oe,w:Pe,W:ce,x:null,X:null,y:we,Y:Z,Z:re,"%":Je},ut={a:function(Ct){return ct[Ct.getUTCDay()]},A:function(Ct){return et[Ct.getUTCDay()]},b:function(Ct){return $t[Ct.getUTCMonth()]},B:function(Ct){return ht[Ct.getUTCMonth()]},c:null,d:de,e:de,f:ye,H:_e,I:ue,j:me,L:xe,m:Te,M:Ae,p:function(Ct){return St[+(Ct.getUTCHours()>=12)]},q:function(Ct){return 1+~~(Ct.getUTCMonth()/3)},Q:st,s:bt,S:Le,u:Re,U:Ie,V:Ne,w:ze,W:qe,x:null,X:null,y:We,Y:Ge,Z:ot,"%":Je},gt={a:function(Ct,Ft,Et){var mt=Me.exec(Ft.slice(Et));return mt?(Ct.w=Ve[mt[0].toLowerCase()],Et+mt[0].length):-1},A:function(Ct,Ft,Et){var mt=wt.exec(Ft.slice(Et));return mt?(Ct.w=be[mt[0].toLowerCase()],Et+mt[0].length):-1},b:function(Ct,Ft,Et){var mt=Ye.exec(Ft.slice(Et));return mt?(Ct.m=Qe[mt[0].toLowerCase()],Et+mt[0].length):-1},B:function(Ct,Ft,Et){var mt=Ue.exec(Ft.slice(Et));return mt?(Ct.m=Ze[mt[0].toLowerCase()],Et+mt[0].length):-1},c:function(Ct,Ft,Et){return Gt(Ct,je,Ft,Et)},d:R,e:R,f:G,H:Y,I:Y,j:q,L:H,m:N,M:L,p:function(Ct,Ft,Et){var mt=kt.exec(Ft.slice(Et));return mt?(Ct.p=Wt[mt[0].toLowerCase()],Et+mt[0].length):-1},q:z,Q:ee,s:U,S:W,u:P,U:E,V:I,w:D,W:A,x:function(Ct,Ft,Et){return Gt(Ct,tt,Ft,Et)},X:function(Ct,Ft,Et){return Gt(Ct,it,Ft,Et)},y:j,Y:F,Z:B,"%":te};function nt(Ct,Ft){return function(Et){var mt,pt,yt,qt=[],Rt=-1,jt=0,Tt=Ct.length;for(Et instanceof Date||(Et=new Date(+Et));++Rt53)return null;"w"in yt||(yt.w=1),"Z"in yt?(pt=(mt=g(b(yt.y,0,1))).getUTCDay(),mt=pt>4||pt===0?s.l6.ceil(mt):(0,s.l6)(mt),mt=u.Z.offset(mt,7*(yt.V-1)),yt.y=mt.getUTCFullYear(),yt.m=mt.getUTCMonth(),yt.d=mt.getUTCDate()+(yt.w+6)%7):(pt=(mt=h(b(yt.y,0,1))).getDay(),mt=pt>4||pt===0?c.wA.ceil(mt):(0,c.wA)(mt),mt=d.Z.offset(mt,7*(yt.V-1)),yt.y=mt.getFullYear(),yt.m=mt.getMonth(),yt.d=mt.getDate()+(yt.w+6)%7)}else("W"in yt||"U"in yt)&&("w"in yt||(yt.w="u"in yt?yt.u%7:"W"in yt?1:0),pt="Z"in yt?g(b(yt.y,0,1)).getUTCDay():h(b(yt.y,0,1)).getDay(),yt.m=0,yt.d="W"in yt?(yt.w+6)%7+7*yt.W-(pt+5)%7:yt.w+7*yt.U-(pt+6)%7);return"Z"in yt?(yt.H+=yt.Z/100|0,yt.M+=yt.Z%100,g(yt)):h(yt)}}function Gt(Ct,Ft,Et,mt){for(var pt,yt,qt=0,Rt=Ft.length,jt=Et.length;qt=jt)return-1;if((pt=Ft.charCodeAt(qt++))===37){if(pt=Ft.charAt(qt++),!(yt=gt[pt in _?Ft.charAt(qt++):pt])||(mt=yt(Ct,Et,mt))<0)return-1}else if(pt!=Et.charCodeAt(mt++))return-1}return mt}return rt.x=nt(tt,rt),rt.X=nt(it,rt),rt.c=nt(je,rt),ut.x=nt(tt,ut),ut.X=nt(it,ut),ut.c=nt(je,ut),{format:function(Ct){var Ft=nt(Ct+="",rt);return Ft.toString=function(){return Ct},Ft},parse:function(Ct){var Ft=Nt(Ct+="",!1);return Ft.toString=function(){return Ct},Ft},utcFormat:function(Ct){var Ft=nt(Ct+="",ut);return Ft.toString=function(){return Ct},Ft},utcParse:function(Ct){var Ft=Nt(Ct+="",!0);return Ft.toString=function(){return Ct},Ft}}}var m,y,x,_={"-":"",_:" ",0:"0"},w=/^\s*\d+/,S=/^%/,k=/[\\^$*+?|[\]().{}]/g;function C(Be,je,tt){var it=Be<0?"-":"",St=(it?-Be:Be)+"",et=St.length;return it+(et68?1900:2e3),tt+it[0].length):-1}function B(Be,je,tt){var it=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(je.slice(tt,tt+6));return it?(Be.Z=it[1]?0:-(it[2]+(it[3]||"00")),tt+it[0].length):-1}function z(Be,je,tt){var it=w.exec(je.slice(tt,tt+1));return it?(Be.q=3*it[0]-3,tt+it[0].length):-1}function N(Be,je,tt){var it=w.exec(je.slice(tt,tt+2));return it?(Be.m=it[0]-1,tt+it[0].length):-1}function R(Be,je,tt){var it=w.exec(je.slice(tt,tt+2));return it?(Be.d=+it[0],tt+it[0].length):-1}function q(Be,je,tt){var it=w.exec(je.slice(tt,tt+3));return it?(Be.m=0,Be.d=+it[0],tt+it[0].length):-1}function Y(Be,je,tt){var it=w.exec(je.slice(tt,tt+2));return it?(Be.H=+it[0],tt+it[0].length):-1}function L(Be,je,tt){var it=w.exec(je.slice(tt,tt+2));return it?(Be.M=+it[0],tt+it[0].length):-1}function W(Be,je,tt){var it=w.exec(je.slice(tt,tt+2));return it?(Be.S=+it[0],tt+it[0].length):-1}function H(Be,je,tt){var it=w.exec(je.slice(tt,tt+3));return it?(Be.L=+it[0],tt+it[0].length):-1}function G(Be,je,tt){var it=w.exec(je.slice(tt,tt+6));return it?(Be.L=Math.floor(it[0]/1e3),tt+it[0].length):-1}function te(Be,je,tt){var it=S.exec(je.slice(tt,tt+1));return it?tt+it[0].length:-1}function ee(Be,je,tt){var it=w.exec(je.slice(tt));return it?(Be.Q=+it[0],tt+it[0].length):-1}function U(Be,je,tt){var it=w.exec(je.slice(tt));return it?(Be.s=+it[0],tt+it[0].length):-1}function Q(Be,je){return C(Be.getDate(),je,2)}function V(Be,je){return C(Be.getHours(),je,2)}function X(Be,je){return C(Be.getHours()%12||12,je,2)}function K(Be,je){return C(1+d.Z.count((0,f.Z)(Be),Be),je,3)}function ne(Be,je){return C(Be.getMilliseconds(),je,3)}function ae(Be,je){return ne(Be,je)+"000"}function ie(Be,je){return C(Be.getMonth()+1,je,2)}function se(Be,je){return C(Be.getMinutes(),je,2)}function pe(Be,je){return C(Be.getSeconds(),je,2)}function ke(Be){var je=Be.getDay();return je===0?7:je}function Ce(Be,je){return C(c.OM.count((0,f.Z)(Be)-1,Be),je,2)}function Oe(Be,je){var tt=Be.getDay();return Be=tt>=4||tt===0?(0,c.bL)(Be):c.bL.ceil(Be),C(c.bL.count((0,f.Z)(Be),Be)+((0,f.Z)(Be).getDay()===4),je,2)}function Pe(Be){return Be.getDay()}function ce(Be,je){return C(c.wA.count((0,f.Z)(Be)-1,Be),je,2)}function we(Be,je){return C(Be.getFullYear()%100,je,2)}function Z(Be,je){return C(Be.getFullYear()%1e4,je,4)}function re(Be){var je=Be.getTimezoneOffset();return(je>0?"-":(je*=-1,"+"))+C(je/60|0,"0",2)+C(je%60,"0",2)}function de(Be,je){return C(Be.getUTCDate(),je,2)}function _e(Be,je){return C(Be.getUTCHours(),je,2)}function ue(Be,je){return C(Be.getUTCHours()%12||12,je,2)}function me(Be,je){return C(1+u.Z.count((0,p.Z)(Be),Be),je,3)}function xe(Be,je){return C(Be.getUTCMilliseconds(),je,3)}function ye(Be,je){return xe(Be,je)+"000"}function Te(Be,je){return C(Be.getUTCMonth()+1,je,2)}function Ae(Be,je){return C(Be.getUTCMinutes(),je,2)}function Le(Be,je){return C(Be.getUTCSeconds(),je,2)}function Re(Be){var je=Be.getUTCDay();return je===0?7:je}function Ie(Be,je){return C(s.Ox.count((0,p.Z)(Be)-1,Be),je,2)}function Ne(Be,je){var tt=Be.getUTCDay();return Be=tt>=4||tt===0?(0,s.hB)(Be):s.hB.ceil(Be),C(s.hB.count((0,p.Z)(Be),Be)+((0,p.Z)(Be).getUTCDay()===4),je,2)}function ze(Be){return Be.getUTCDay()}function qe(Be,je){return C(s.l6.count((0,p.Z)(Be)-1,Be),je,2)}function We(Be,je){return C(Be.getUTCFullYear()%100,je,2)}function Ge(Be,je){return C(Be.getUTCFullYear()%1e4,je,4)}function ot(){return"+0000"}function Je(){return"%"}function st(Be){return+Be}function bt(Be){return Math.floor(+Be/1e3)}m=v({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),y=m.format,m.parse,x=m.utcFormat,m.utcParse},82301:function(i,o,a){a.d(o,{a:function(){return d}});var s=a(30052),u=a(54263),c=(0,s.Z)(function(f){f.setHours(0,0,0,0)},function(f,p){f.setDate(f.getDate()+p)},function(f,p){return(p-f-(p.getTimezoneOffset()-f.getTimezoneOffset())*u.yB)/u.UD},function(f){return f.getDate()-1});o.Z=c;var d=c.range},54263:function(i,o,a){a.d(o,{UD:function(){return d},Y2:function(){return c},Ym:function(){return s},iM:function(){return f},yB:function(){return u}});var s=1e3,u=6e4,c=36e5,d=864e5,f=6048e5},81041:function(i,o,a){a.r(o),a.d(o,{timeDay:function(){return w.Z},timeDays:function(){return w.a},timeFriday:function(){return S.mC},timeFridays:function(){return S.b$},timeHour:function(){return x},timeHours:function(){return _},timeInterval:function(){return s.Z},timeMillisecond:function(){return c},timeMilliseconds:function(){return d},timeMinute:function(){return v},timeMinutes:function(){return m},timeMonday:function(){return S.wA},timeMondays:function(){return S.bJ},timeMonth:function(){return C},timeMonths:function(){return T},timeSaturday:function(){return S.EY},timeSaturdays:function(){return S.Ff},timeSecond:function(){return h},timeSeconds:function(){return g},timeSunday:function(){return S.OM},timeSundays:function(){return S.vm},timeThursday:function(){return S.bL},timeThursdays:function(){return S.$t},timeTuesday:function(){return S.sy},timeTuesdays:function(){return S.aU},timeWednesday:function(){return S.zg},timeWednesdays:function(){return S.Ld},timeWeek:function(){return S.OM},timeWeeks:function(){return S.vm},timeYear:function(){return M.Z},timeYears:function(){return M.g},utcDay:function(){return F.Z},utcDays:function(){return F.y},utcFriday:function(){return j.QQ},utcFridays:function(){return j.fz},utcHour:function(){return I},utcHours:function(){return A},utcMillisecond:function(){return c},utcMilliseconds:function(){return d},utcMinute:function(){return D},utcMinutes:function(){return P},utcMonday:function(){return j.l6},utcMondays:function(){return j.$3},utcMonth:function(){return z},utcMonths:function(){return N},utcSaturday:function(){return j.g4},utcSaturdays:function(){return j.Q_},utcSecond:function(){return h},utcSeconds:function(){return g},utcSunday:function(){return j.Ox},utcSundays:function(){return j.SU},utcThursday:function(){return j.hB},utcThursdays:function(){return j.xj},utcTuesday:function(){return j.J1},utcTuesdays:function(){return j.DK},utcWednesday:function(){return j.b3},utcWednesdays:function(){return j.uy},utcWeek:function(){return j.Ox},utcWeeks:function(){return j.SU},utcYear:function(){return R.Z},utcYears:function(){return R.D}});var s=a(30052),u=(0,s.Z)(function(){},function(q,Y){q.setTime(+q+Y)},function(q,Y){return Y-q});u.every=function(q){return q=Math.floor(q),isFinite(q)&&q>0?q>1?(0,s.Z)(function(Y){Y.setTime(Math.floor(Y/q)*q)},function(Y,L){Y.setTime(+Y+L*q)},function(Y,L){return(L-Y)/q}):u:null};var c=u,d=u.range,f=a(54263),p=(0,s.Z)(function(q){q.setTime(q-q.getMilliseconds())},function(q,Y){q.setTime(+q+Y*f.Ym)},function(q,Y){return(Y-q)/f.Ym},function(q){return q.getUTCSeconds()}),h=p,g=p.range,b=(0,s.Z)(function(q){q.setTime(q-q.getMilliseconds()-q.getSeconds()*f.Ym)},function(q,Y){q.setTime(+q+Y*f.yB)},function(q,Y){return(Y-q)/f.yB},function(q){return q.getMinutes()}),v=b,m=b.range,y=(0,s.Z)(function(q){q.setTime(q-q.getMilliseconds()-q.getSeconds()*f.Ym-q.getMinutes()*f.yB)},function(q,Y){q.setTime(+q+Y*f.Y2)},function(q,Y){return(Y-q)/f.Y2},function(q){return q.getHours()}),x=y,_=y.range,w=a(82301),S=a(59879),k=(0,s.Z)(function(q){q.setDate(1),q.setHours(0,0,0,0)},function(q,Y){q.setMonth(q.getMonth()+Y)},function(q,Y){return Y.getMonth()-q.getMonth()+12*(Y.getFullYear()-q.getFullYear())},function(q){return q.getMonth()}),C=k,T=k.range,M=a(34823),O=(0,s.Z)(function(q){q.setUTCSeconds(0,0)},function(q,Y){q.setTime(+q+Y*f.yB)},function(q,Y){return(Y-q)/f.yB},function(q){return q.getUTCMinutes()}),D=O,P=O.range,E=(0,s.Z)(function(q){q.setUTCMinutes(0,0,0)},function(q,Y){q.setTime(+q+Y*f.Y2)},function(q,Y){return(Y-q)/f.Y2},function(q){return q.getUTCHours()}),I=E,A=E.range,F=a(48480),j=a(58176),B=(0,s.Z)(function(q){q.setUTCDate(1),q.setUTCHours(0,0,0,0)},function(q,Y){q.setUTCMonth(q.getUTCMonth()+Y)},function(q,Y){return Y.getUTCMonth()-q.getUTCMonth()+12*(Y.getUTCFullYear()-q.getUTCFullYear())},function(q){return q.getUTCMonth()}),z=B,N=B.range,R=a(79791)},30052:function(i,o,a){a.d(o,{Z:function(){return c}});var s=new Date,u=new Date;function c(d,f,p,h){function g(b){return d(b=arguments.length===0?new Date:new Date(+b)),b}return g.floor=function(b){return d(b=new Date(+b)),b},g.ceil=function(b){return d(b=new Date(b-1)),f(b,1),d(b),b},g.round=function(b){var v=g(b),m=g.ceil(b);return b-v0))return x;do x.push(y=new Date(+b)),f(b,m),d(b);while(y=v)for(;d(v),!b(v);)v.setTime(v-1)},function(v,m){if(v>=v)if(m<0)for(;++m<=0;)for(;f(v,-1),!b(v););else for(;--m>=0;)for(;f(v,1),!b(v););})},p&&(g.count=function(b,v){return s.setTime(+b),u.setTime(+v),d(s),d(u),Math.floor(p(s,u))},g.every=function(b){return b=Math.floor(b),isFinite(b)&&b>0?b>1?g.filter(h?function(v){return h(v)%b==0}:function(v){return g.count(0,v)%b==0}):g:null}),g}},48480:function(i,o,a){a.d(o,{y:function(){return d}});var s=a(30052),u=a(54263),c=(0,s.Z)(function(f){f.setUTCHours(0,0,0,0)},function(f,p){f.setUTCDate(f.getUTCDate()+p)},function(f,p){return(p-f)/u.UD},function(f){return f.getUTCDate()-1});o.Z=c;var d=c.range},58176:function(i,o,a){a.d(o,{$3:function(){return y},DK:function(){return x},J1:function(){return p},Ox:function(){return d},QQ:function(){return b},Q_:function(){return k},SU:function(){return m},b3:function(){return h},fz:function(){return S},g4:function(){return v},hB:function(){return g},l6:function(){return f},uy:function(){return _},xj:function(){return w}});var s=a(30052),u=a(54263);function c(C){return(0,s.Z)(function(T){T.setUTCDate(T.getUTCDate()-(T.getUTCDay()+7-C)%7),T.setUTCHours(0,0,0,0)},function(T,M){T.setUTCDate(T.getUTCDate()+7*M)},function(T,M){return(M-T)/u.iM})}var d=c(0),f=c(1),p=c(2),h=c(3),g=c(4),b=c(5),v=c(6),m=d.range,y=f.range,x=p.range,_=h.range,w=g.range,S=b.range,k=v.range},79791:function(i,o,a){a.d(o,{D:function(){return c}});var s=a(30052),u=(0,s.Z)(function(d){d.setUTCMonth(0,1),d.setUTCHours(0,0,0,0)},function(d,f){d.setUTCFullYear(d.getUTCFullYear()+f)},function(d,f){return f.getUTCFullYear()-d.getUTCFullYear()},function(d){return d.getUTCFullYear()});u.every=function(d){return isFinite(d=Math.floor(d))&&d>0?(0,s.Z)(function(f){f.setUTCFullYear(Math.floor(f.getUTCFullYear()/d)*d),f.setUTCMonth(0,1),f.setUTCHours(0,0,0,0)},function(f,p){f.setUTCFullYear(f.getUTCFullYear()+p*d)}):null},o.Z=u;var c=u.range},59879:function(i,o,a){a.d(o,{$t:function(){return w},EY:function(){return v},Ff:function(){return k},Ld:function(){return _},OM:function(){return d},aU:function(){return x},b$:function(){return S},bJ:function(){return y},bL:function(){return g},mC:function(){return b},sy:function(){return p},vm:function(){return m},wA:function(){return f},zg:function(){return h}});var s=a(30052),u=a(54263);function c(C){return(0,s.Z)(function(T){T.setDate(T.getDate()-(T.getDay()+7-C)%7),T.setHours(0,0,0,0)},function(T,M){T.setDate(T.getDate()+7*M)},function(T,M){return(M-T-(M.getTimezoneOffset()-T.getTimezoneOffset())*u.yB)/u.iM})}var d=c(0),f=c(1),p=c(2),h=c(3),g=c(4),b=c(5),v=c(6),m=d.range,y=f.range,x=p.range,_=h.range,w=g.range,S=b.range,k=v.range},34823:function(i,o,a){a.d(o,{g:function(){return c}});var s=a(30052),u=(0,s.Z)(function(d){d.setMonth(0,1),d.setHours(0,0,0,0)},function(d,f){d.setFullYear(d.getFullYear()+f)},function(d,f){return f.getFullYear()-d.getFullYear()},function(d){return d.getFullYear()});u.every=function(d){return isFinite(d=Math.floor(d))&&d>0?(0,s.Z)(function(f){f.setFullYear(Math.floor(f.getFullYear()/d)*d),f.setMonth(0,1),f.setHours(0,0,0,0)},function(f,p){f.setFullYear(f.getFullYear()+p*d)}):null},o.Z=u;var c=u.range},17045:function(i,o,a){var s=a(8709),u=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",c=Object.prototype.toString,d=Array.prototype.concat,f=Object.defineProperty,p=a(55622)(),h=f&&p,g=function(v,m,y,x){if(m in v){if(x===!0){if(v[m]===y)return}else if(typeof(_=x)!="function"||c.call(_)!=="[object Function]"||!x())return}var _;h?f(v,m,{configurable:!0,enumerable:!1,value:y,writable:!0}):v[m]=y},b=function(v,m){var y=arguments.length>2?arguments[2]:{},x=s(m);u&&(x=d.call(x,Object.getOwnPropertySymbols(m)));for(var _=0;_0&&M.length>C&&!M.warned){M.warned=!0;var D=new Error("Possible EventEmitter memory leak detected. "+M.length+" "+String(w)+" listeners added. Use emitter.setMaxListeners() to increase limit");D.name="MaxListenersExceededWarning",D.emitter=_,D.type=w,D.count=M.length,O=D,console&&console.warn&&console.warn(O)}return _}function g(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function b(_,w,S){var k={fired:!1,wrapFn:void 0,target:_,type:w,listener:S},C=g.bind(k);return C.listener=S,k.wrapFn=C,C}function v(_,w,S){var k=_._events;if(k===void 0)return[];var C=k[w];return C===void 0?[]:typeof C=="function"?S?[C.listener||C]:[C]:S?function(T){for(var M=new Array(T.length),O=0;O0&&(T=w[0]),T instanceof Error)throw T;var M=new Error("Unhandled error."+(T?" ("+T.message+")":""));throw M.context=T,M}var O=C[_];if(O===void 0)return!1;if(typeof O=="function")s(O,this,w);else{var D=O.length,P=y(O,D);for(S=0;S=0;T--)if(S[T]===w||S[T].listener===w){M=S[T].listener,C=T;break}if(C<0)return this;C===0?S.shift():function(O,D){for(;D+1=0;k--)this.removeListener(_,w[k]);return this},c.prototype.listeners=function(_){return v(this,_,!0)},c.prototype.rawListeners=function(_){return v(this,_,!1)},c.listenerCount=function(_,w){return typeof _.listenerCount=="function"?_.listenerCount(w):m.call(_,w)},c.prototype.listenerCount=m,c.prototype.eventNames=function(){return this._eventsCount>0?o(this._events):[]}},92770:function(i,o,a){var s=a(18546);i.exports=function(u){var c=typeof u;if(c==="string"){var d=u;if((u=+u)==0&&s(d))return!1}else if(c!=="number")return!1;return u-u<1}},31353:function(i,o,a){var s=a(85395),u=Object.prototype.toString,c=Object.prototype.hasOwnProperty;i.exports=function(d,f,p){if(!s(f))throw new TypeError("iterator must be a function");var h;arguments.length>=3&&(h=p),u.call(d)==="[object Array]"?function(g,b,v){for(var m=0,y=g.length;m"u"?s:v(Uint8Array),x={"%AggregateError%":typeof AggregateError>"u"?s:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?s:ArrayBuffer,"%ArrayIteratorPrototype%":b?v([][Symbol.iterator]()):s,"%AsyncFromSyncIteratorPrototype%":s,"%AsyncFunction%":m,"%AsyncGenerator%":m,"%AsyncGeneratorFunction%":m,"%AsyncIteratorPrototype%":m,"%Atomics%":typeof Atomics>"u"?s:Atomics,"%BigInt%":typeof BigInt>"u"?s:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?s:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?s:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?s:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?s:Float32Array,"%Float64Array%":typeof Float64Array>"u"?s:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?s:FinalizationRegistry,"%Function%":c,"%GeneratorFunction%":m,"%Int8Array%":typeof Int8Array>"u"?s:Int8Array,"%Int16Array%":typeof Int16Array>"u"?s:Int16Array,"%Int32Array%":typeof Int32Array>"u"?s:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":b?v(v([][Symbol.iterator]())):s,"%JSON%":typeof JSON=="object"?JSON:s,"%Map%":typeof Map>"u"?s:Map,"%MapIteratorPrototype%":typeof Map<"u"&&b?v(new Map()[Symbol.iterator]()):s,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?s:Promise,"%Proxy%":typeof Proxy>"u"?s:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?s:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?s:Set,"%SetIteratorPrototype%":typeof Set<"u"&&b?v(new Set()[Symbol.iterator]()):s,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?s:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":b?v(""[Symbol.iterator]()):s,"%Symbol%":b?Symbol:s,"%SyntaxError%":u,"%ThrowTypeError%":g,"%TypedArray%":y,"%TypeError%":d,"%Uint8Array%":typeof Uint8Array>"u"?s:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?s:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?s:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?s:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?s:WeakMap,"%WeakRef%":typeof WeakRef>"u"?s:WeakRef,"%WeakSet%":typeof WeakSet>"u"?s:WeakSet};try{null.error}catch(F){var _=v(v(F));x["%Error.prototype%"]=_}var w=function F(j){var B;if(j==="%AsyncFunction%")B=f("async function () {}");else if(j==="%GeneratorFunction%")B=f("function* () {}");else if(j==="%AsyncGeneratorFunction%")B=f("async function* () {}");else if(j==="%AsyncGenerator%"){var z=F("%AsyncGeneratorFunction%");z&&(B=z.prototype)}else if(j==="%AsyncIteratorPrototype%"){var N=F("%AsyncGenerator%");N&&(B=v(N.prototype))}return x[j]=B,B},S={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},k=a(77575),C=a(35065),T=k.call(Function.call,Array.prototype.concat),M=k.call(Function.apply,Array.prototype.splice),O=k.call(Function.call,String.prototype.replace),D=k.call(Function.call,String.prototype.slice),P=k.call(Function.call,RegExp.prototype.exec),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,I=/\\(\\)?/g,A=function(F,j){var B,z=F;if(C(S,z)&&(z="%"+(B=S[z])[0]+"%"),C(x,z)){var N=x[z];if(N===m&&(N=w(z)),N===void 0&&!j)throw new d("intrinsic "+F+" exists, but is not available. Please file an issue!");return{alias:B,name:z,value:N}}throw new u("intrinsic "+F+" does not exist!")};i.exports=function(F,j){if(typeof F!="string"||F.length===0)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof j!="boolean")throw new d('"allowMissing" argument must be a boolean');if(P(/^%?[^%]*%?$/,F)===null)throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var B=function(Q){var V=D(Q,0,1),X=D(Q,-1);if(V==="%"&&X!=="%")throw new u("invalid intrinsic syntax, expected closing `%`");if(X==="%"&&V!=="%")throw new u("invalid intrinsic syntax, expected opening `%`");var K=[];return O(Q,E,function(ne,ae,ie,se){K[K.length]=ie?O(se,I,"$1"):ae||ne}),K}(F),z=B.length>0?B[0]:"",N=A("%"+z+"%",j),R=N.name,q=N.value,Y=!1,L=N.alias;L&&(z=L[0],M(B,T([0,1],L)));for(var W=1,H=!0;W=B.length){var U=p(q,G);q=(H=!!U)&&"get"in U&&!("originalValue"in U.get)?U.get:q[G]}else H=C(q,G),q=q[G];H&&!Y&&(x[R]=q)}}return q}},85400:function(i){i.exports=function(o,a){var s=a[0],u=a[1],c=a[2],d=a[3],f=a[4],p=a[5],h=a[6],g=a[7],b=a[8],v=a[9],m=a[10],y=a[11],x=a[12],_=a[13],w=a[14],S=a[15];return o[0]=p*(m*S-y*w)-v*(h*S-g*w)+_*(h*y-g*m),o[1]=-(u*(m*S-y*w)-v*(c*S-d*w)+_*(c*y-d*m)),o[2]=u*(h*S-g*w)-p*(c*S-d*w)+_*(c*g-d*h),o[3]=-(u*(h*y-g*m)-p*(c*y-d*m)+v*(c*g-d*h)),o[4]=-(f*(m*S-y*w)-b*(h*S-g*w)+x*(h*y-g*m)),o[5]=s*(m*S-y*w)-b*(c*S-d*w)+x*(c*y-d*m),o[6]=-(s*(h*S-g*w)-f*(c*S-d*w)+x*(c*g-d*h)),o[7]=s*(h*y-g*m)-f*(c*y-d*m)+b*(c*g-d*h),o[8]=f*(v*S-y*_)-b*(p*S-g*_)+x*(p*y-g*v),o[9]=-(s*(v*S-y*_)-b*(u*S-d*_)+x*(u*y-d*v)),o[10]=s*(p*S-g*_)-f*(u*S-d*_)+x*(u*g-d*p),o[11]=-(s*(p*y-g*v)-f*(u*y-d*v)+b*(u*g-d*p)),o[12]=-(f*(v*w-m*_)-b*(p*w-h*_)+x*(p*m-h*v)),o[13]=s*(v*w-m*_)-b*(u*w-c*_)+x*(u*m-c*v),o[14]=-(s*(p*w-h*_)-f*(u*w-c*_)+x*(u*h-c*p)),o[15]=s*(p*m-h*v)-f*(u*m-c*v)+b*(u*h-c*p),o}},42331:function(i){i.exports=function(o){var a=new Float32Array(16);return a[0]=o[0],a[1]=o[1],a[2]=o[2],a[3]=o[3],a[4]=o[4],a[5]=o[5],a[6]=o[6],a[7]=o[7],a[8]=o[8],a[9]=o[9],a[10]=o[10],a[11]=o[11],a[12]=o[12],a[13]=o[13],a[14]=o[14],a[15]=o[15],a}},31042:function(i){i.exports=function(o,a){return o[0]=a[0],o[1]=a[1],o[2]=a[2],o[3]=a[3],o[4]=a[4],o[5]=a[5],o[6]=a[6],o[7]=a[7],o[8]=a[8],o[9]=a[9],o[10]=a[10],o[11]=a[11],o[12]=a[12],o[13]=a[13],o[14]=a[14],o[15]=a[15],o}},11902:function(i){i.exports=function(){var o=new Float32Array(16);return o[0]=1,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=1,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=1,o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o}},89887:function(i){i.exports=function(o){var a=o[0],s=o[1],u=o[2],c=o[3],d=o[4],f=o[5],p=o[6],h=o[7],g=o[8],b=o[9],v=o[10],m=o[11],y=o[12],x=o[13],_=o[14],w=o[15];return(a*f-s*d)*(v*w-m*_)-(a*p-u*d)*(b*w-m*x)+(a*h-c*d)*(b*_-v*x)+(s*p-u*f)*(g*w-m*y)-(s*h-c*f)*(g*_-v*y)+(u*h-c*p)*(g*x-b*y)}},27812:function(i){i.exports=function(o,a){var s=a[0],u=a[1],c=a[2],d=a[3],f=s+s,p=u+u,h=c+c,g=s*f,b=u*f,v=u*p,m=c*f,y=c*p,x=c*h,_=d*f,w=d*p,S=d*h;return o[0]=1-v-x,o[1]=b+S,o[2]=m-w,o[3]=0,o[4]=b-S,o[5]=1-g-x,o[6]=y+_,o[7]=0,o[8]=m+w,o[9]=y-_,o[10]=1-g-v,o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o}},34045:function(i){i.exports=function(o,a,s){var u,c,d,f=s[0],p=s[1],h=s[2],g=Math.sqrt(f*f+p*p+h*h);return Math.abs(g)<1e-6?null:(f*=g=1/g,p*=g,h*=g,u=Math.sin(a),d=1-(c=Math.cos(a)),o[0]=f*f*d+c,o[1]=p*f*d+h*u,o[2]=h*f*d-p*u,o[3]=0,o[4]=f*p*d-h*u,o[5]=p*p*d+c,o[6]=h*p*d+f*u,o[7]=0,o[8]=f*h*d+p*u,o[9]=p*h*d-f*u,o[10]=h*h*d+c,o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o)}},45973:function(i){i.exports=function(o,a,s){var u=a[0],c=a[1],d=a[2],f=a[3],p=u+u,h=c+c,g=d+d,b=u*p,v=u*h,m=u*g,y=c*h,x=c*g,_=d*g,w=f*p,S=f*h,k=f*g;return o[0]=1-(y+_),o[1]=v+k,o[2]=m-S,o[3]=0,o[4]=v-k,o[5]=1-(b+_),o[6]=x+w,o[7]=0,o[8]=m+S,o[9]=x-w,o[10]=1-(b+y),o[11]=0,o[12]=s[0],o[13]=s[1],o[14]=s[2],o[15]=1,o}},81472:function(i){i.exports=function(o,a){return o[0]=a[0],o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=a[1],o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=a[2],o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o}},14669:function(i){i.exports=function(o,a){return o[0]=1,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=1,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=1,o[11]=0,o[12]=a[0],o[13]=a[1],o[14]=a[2],o[15]=1,o}},75262:function(i){i.exports=function(o,a){var s=Math.sin(a),u=Math.cos(a);return o[0]=1,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=u,o[6]=s,o[7]=0,o[8]=0,o[9]=-s,o[10]=u,o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o}},331:function(i){i.exports=function(o,a){var s=Math.sin(a),u=Math.cos(a);return o[0]=u,o[1]=0,o[2]=-s,o[3]=0,o[4]=0,o[5]=1,o[6]=0,o[7]=0,o[8]=s,o[9]=0,o[10]=u,o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o}},11049:function(i){i.exports=function(o,a){var s=Math.sin(a),u=Math.cos(a);return o[0]=u,o[1]=s,o[2]=0,o[3]=0,o[4]=-s,o[5]=u,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=1,o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o}},75195:function(i){i.exports=function(o,a,s,u,c,d,f){var p=1/(s-a),h=1/(c-u),g=1/(d-f);return o[0]=2*d*p,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=2*d*h,o[6]=0,o[7]=0,o[8]=(s+a)*p,o[9]=(c+u)*h,o[10]=(f+d)*g,o[11]=-1,o[12]=0,o[13]=0,o[14]=f*d*2*g,o[15]=0,o}},71551:function(i){i.exports=function(o){return o[0]=1,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=1,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=1,o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o}},79576:function(i,o,a){i.exports={create:a(11902),clone:a(42331),copy:a(31042),identity:a(71551),transpose:a(88654),invert:a(95874),adjoint:a(85400),determinant:a(89887),multiply:a(91362),translate:a(31283),scale:a(10789),rotate:a(65074),rotateX:a(35545),rotateY:a(94918),rotateZ:a(15692),fromRotation:a(34045),fromRotationTranslation:a(45973),fromScaling:a(81472),fromTranslation:a(14669),fromXRotation:a(75262),fromYRotation:a(331),fromZRotation:a(11049),fromQuat:a(27812),frustum:a(75195),perspective:a(7864),perspectiveFromFieldOfView:a(35279),ortho:a(60378),lookAt:a(65551),str:a(6726)}},95874:function(i){i.exports=function(o,a){var s=a[0],u=a[1],c=a[2],d=a[3],f=a[4],p=a[5],h=a[6],g=a[7],b=a[8],v=a[9],m=a[10],y=a[11],x=a[12],_=a[13],w=a[14],S=a[15],k=s*p-u*f,C=s*h-c*f,T=s*g-d*f,M=u*h-c*p,O=u*g-d*p,D=c*g-d*h,P=b*_-v*x,E=b*w-m*x,I=b*S-y*x,A=v*w-m*_,F=v*S-y*_,j=m*S-y*w,B=k*j-C*F+T*A+M*I-O*E+D*P;return B?(B=1/B,o[0]=(p*j-h*F+g*A)*B,o[1]=(c*F-u*j-d*A)*B,o[2]=(_*D-w*O+S*M)*B,o[3]=(m*O-v*D-y*M)*B,o[4]=(h*I-f*j-g*E)*B,o[5]=(s*j-c*I+d*E)*B,o[6]=(w*T-x*D-S*C)*B,o[7]=(b*D-m*T+y*C)*B,o[8]=(f*F-p*I+g*P)*B,o[9]=(u*I-s*F-d*P)*B,o[10]=(x*O-_*T+S*k)*B,o[11]=(v*T-b*O-y*k)*B,o[12]=(p*E-f*A-h*P)*B,o[13]=(s*A-u*E+c*P)*B,o[14]=(_*C-x*M-w*k)*B,o[15]=(b*M-v*C+m*k)*B,o):null}},65551:function(i,o,a){var s=a(71551);i.exports=function(u,c,d,f){var p,h,g,b,v,m,y,x,_,w,S=c[0],k=c[1],C=c[2],T=f[0],M=f[1],O=f[2],D=d[0],P=d[1],E=d[2];return Math.abs(S-D)<1e-6&&Math.abs(k-P)<1e-6&&Math.abs(C-E)<1e-6?s(u):(y=S-D,x=k-P,_=C-E,p=M*(_*=w=1/Math.sqrt(y*y+x*x+_*_))-O*(x*=w),h=O*(y*=w)-T*_,g=T*x-M*y,(w=Math.sqrt(p*p+h*h+g*g))?(p*=w=1/w,h*=w,g*=w):(p=0,h=0,g=0),b=x*g-_*h,v=_*p-y*g,m=y*h-x*p,(w=Math.sqrt(b*b+v*v+m*m))?(b*=w=1/w,v*=w,m*=w):(b=0,v=0,m=0),u[0]=p,u[1]=b,u[2]=y,u[3]=0,u[4]=h,u[5]=v,u[6]=x,u[7]=0,u[8]=g,u[9]=m,u[10]=_,u[11]=0,u[12]=-(p*S+h*k+g*C),u[13]=-(b*S+v*k+m*C),u[14]=-(y*S+x*k+_*C),u[15]=1,u)}},91362:function(i){i.exports=function(o,a,s){var u=a[0],c=a[1],d=a[2],f=a[3],p=a[4],h=a[5],g=a[6],b=a[7],v=a[8],m=a[9],y=a[10],x=a[11],_=a[12],w=a[13],S=a[14],k=a[15],C=s[0],T=s[1],M=s[2],O=s[3];return o[0]=C*u+T*p+M*v+O*_,o[1]=C*c+T*h+M*m+O*w,o[2]=C*d+T*g+M*y+O*S,o[3]=C*f+T*b+M*x+O*k,C=s[4],T=s[5],M=s[6],O=s[7],o[4]=C*u+T*p+M*v+O*_,o[5]=C*c+T*h+M*m+O*w,o[6]=C*d+T*g+M*y+O*S,o[7]=C*f+T*b+M*x+O*k,C=s[8],T=s[9],M=s[10],O=s[11],o[8]=C*u+T*p+M*v+O*_,o[9]=C*c+T*h+M*m+O*w,o[10]=C*d+T*g+M*y+O*S,o[11]=C*f+T*b+M*x+O*k,C=s[12],T=s[13],M=s[14],O=s[15],o[12]=C*u+T*p+M*v+O*_,o[13]=C*c+T*h+M*m+O*w,o[14]=C*d+T*g+M*y+O*S,o[15]=C*f+T*b+M*x+O*k,o}},60378:function(i){i.exports=function(o,a,s,u,c,d,f){var p=1/(a-s),h=1/(u-c),g=1/(d-f);return o[0]=-2*p,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=-2*h,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=2*g,o[11]=0,o[12]=(a+s)*p,o[13]=(c+u)*h,o[14]=(f+d)*g,o[15]=1,o}},7864:function(i){i.exports=function(o,a,s,u,c){var d=1/Math.tan(a/2),f=1/(u-c);return o[0]=d/s,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=d,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=(c+u)*f,o[11]=-1,o[12]=0,o[13]=0,o[14]=2*c*u*f,o[15]=0,o}},35279:function(i){i.exports=function(o,a,s,u){var c=Math.tan(a.upDegrees*Math.PI/180),d=Math.tan(a.downDegrees*Math.PI/180),f=Math.tan(a.leftDegrees*Math.PI/180),p=Math.tan(a.rightDegrees*Math.PI/180),h=2/(f+p),g=2/(c+d);return o[0]=h,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=g,o[6]=0,o[7]=0,o[8]=-(f-p)*h*.5,o[9]=(c-d)*g*.5,o[10]=u/(s-u),o[11]=-1,o[12]=0,o[13]=0,o[14]=u*s/(s-u),o[15]=0,o}},65074:function(i){i.exports=function(o,a,s,u){var c,d,f,p,h,g,b,v,m,y,x,_,w,S,k,C,T,M,O,D,P,E,I,A,F=u[0],j=u[1],B=u[2],z=Math.sqrt(F*F+j*j+B*B);return Math.abs(z)<1e-6?null:(F*=z=1/z,j*=z,B*=z,c=Math.sin(s),f=1-(d=Math.cos(s)),p=a[0],h=a[1],g=a[2],b=a[3],v=a[4],m=a[5],y=a[6],x=a[7],_=a[8],w=a[9],S=a[10],k=a[11],C=F*F*f+d,T=j*F*f+B*c,M=B*F*f-j*c,O=F*j*f-B*c,D=j*j*f+d,P=B*j*f+F*c,E=F*B*f+j*c,I=j*B*f-F*c,A=B*B*f+d,o[0]=p*C+v*T+_*M,o[1]=h*C+m*T+w*M,o[2]=g*C+y*T+S*M,o[3]=b*C+x*T+k*M,o[4]=p*O+v*D+_*P,o[5]=h*O+m*D+w*P,o[6]=g*O+y*D+S*P,o[7]=b*O+x*D+k*P,o[8]=p*E+v*I+_*A,o[9]=h*E+m*I+w*A,o[10]=g*E+y*I+S*A,o[11]=b*E+x*I+k*A,a!==o&&(o[12]=a[12],o[13]=a[13],o[14]=a[14],o[15]=a[15]),o)}},35545:function(i){i.exports=function(o,a,s){var u=Math.sin(s),c=Math.cos(s),d=a[4],f=a[5],p=a[6],h=a[7],g=a[8],b=a[9],v=a[10],m=a[11];return a!==o&&(o[0]=a[0],o[1]=a[1],o[2]=a[2],o[3]=a[3],o[12]=a[12],o[13]=a[13],o[14]=a[14],o[15]=a[15]),o[4]=d*c+g*u,o[5]=f*c+b*u,o[6]=p*c+v*u,o[7]=h*c+m*u,o[8]=g*c-d*u,o[9]=b*c-f*u,o[10]=v*c-p*u,o[11]=m*c-h*u,o}},94918:function(i){i.exports=function(o,a,s){var u=Math.sin(s),c=Math.cos(s),d=a[0],f=a[1],p=a[2],h=a[3],g=a[8],b=a[9],v=a[10],m=a[11];return a!==o&&(o[4]=a[4],o[5]=a[5],o[6]=a[6],o[7]=a[7],o[12]=a[12],o[13]=a[13],o[14]=a[14],o[15]=a[15]),o[0]=d*c-g*u,o[1]=f*c-b*u,o[2]=p*c-v*u,o[3]=h*c-m*u,o[8]=d*u+g*c,o[9]=f*u+b*c,o[10]=p*u+v*c,o[11]=h*u+m*c,o}},15692:function(i){i.exports=function(o,a,s){var u=Math.sin(s),c=Math.cos(s),d=a[0],f=a[1],p=a[2],h=a[3],g=a[4],b=a[5],v=a[6],m=a[7];return a!==o&&(o[8]=a[8],o[9]=a[9],o[10]=a[10],o[11]=a[11],o[12]=a[12],o[13]=a[13],o[14]=a[14],o[15]=a[15]),o[0]=d*c+g*u,o[1]=f*c+b*u,o[2]=p*c+v*u,o[3]=h*c+m*u,o[4]=g*c-d*u,o[5]=b*c-f*u,o[6]=v*c-p*u,o[7]=m*c-h*u,o}},10789:function(i){i.exports=function(o,a,s){var u=s[0],c=s[1],d=s[2];return o[0]=a[0]*u,o[1]=a[1]*u,o[2]=a[2]*u,o[3]=a[3]*u,o[4]=a[4]*c,o[5]=a[5]*c,o[6]=a[6]*c,o[7]=a[7]*c,o[8]=a[8]*d,o[9]=a[9]*d,o[10]=a[10]*d,o[11]=a[11]*d,o[12]=a[12],o[13]=a[13],o[14]=a[14],o[15]=a[15],o}},6726:function(i){i.exports=function(o){return"mat4("+o[0]+", "+o[1]+", "+o[2]+", "+o[3]+", "+o[4]+", "+o[5]+", "+o[6]+", "+o[7]+", "+o[8]+", "+o[9]+", "+o[10]+", "+o[11]+", "+o[12]+", "+o[13]+", "+o[14]+", "+o[15]+")"}},31283:function(i){i.exports=function(o,a,s){var u,c,d,f,p,h,g,b,v,m,y,x,_=s[0],w=s[1],S=s[2];return a===o?(o[12]=a[0]*_+a[4]*w+a[8]*S+a[12],o[13]=a[1]*_+a[5]*w+a[9]*S+a[13],o[14]=a[2]*_+a[6]*w+a[10]*S+a[14],o[15]=a[3]*_+a[7]*w+a[11]*S+a[15]):(u=a[0],c=a[1],d=a[2],f=a[3],p=a[4],h=a[5],g=a[6],b=a[7],v=a[8],m=a[9],y=a[10],x=a[11],o[0]=u,o[1]=c,o[2]=d,o[3]=f,o[4]=p,o[5]=h,o[6]=g,o[7]=b,o[8]=v,o[9]=m,o[10]=y,o[11]=x,o[12]=u*_+p*w+v*S+a[12],o[13]=c*_+h*w+m*S+a[13],o[14]=d*_+g*w+y*S+a[14],o[15]=f*_+b*w+x*S+a[15]),o}},88654:function(i){i.exports=function(o,a){if(o===a){var s=a[1],u=a[2],c=a[3],d=a[6],f=a[7],p=a[11];o[1]=a[4],o[2]=a[8],o[3]=a[12],o[4]=s,o[6]=a[9],o[7]=a[13],o[8]=u,o[9]=d,o[11]=a[14],o[12]=c,o[13]=f,o[14]=p}else o[0]=a[0],o[1]=a[4],o[2]=a[8],o[3]=a[12],o[4]=a[1],o[5]=a[5],o[6]=a[9],o[7]=a[13],o[8]=a[2],o[9]=a[6],o[10]=a[10],o[11]=a[14],o[12]=a[3],o[13]=a[7],o[14]=a[11],o[15]=a[15];return o}},40383:function(i,o,a){var s=a(68318)("%Object.getOwnPropertyDescriptor%",!0);if(s)try{s([],"length")}catch{s=null}i.exports=s},57035:function(i,o,a){var s,u=a(54404);s=typeof a.g.matchMedia=="function"?!a.g.matchMedia("(hover: none)").matches:u,i.exports=s},38520:function(i,o,a){var s=a(54404);i.exports=s&&function(){var u=!1;try{var c=Object.defineProperty({},"passive",{get:function(){u=!0}});window.addEventListener("test",null,c),window.removeEventListener("test",null,c)}catch{u=!1}return u}()},55622:function(i,o,a){var s=a(68318)("%Object.defineProperty%",!0),u=function(){if(s)try{return s({},"a",{value:1}),!0}catch{return!1}return!1};u.hasArrayLengthDefineBug=function(){if(!u())return null;try{return s([],"length",{value:1}).length!==1}catch{return!0}},i.exports=u},57877:function(i,o,a){var s=typeof Symbol<"u"&&Symbol,u=a(35638);i.exports=function(){return typeof s=="function"&&typeof Symbol=="function"&&typeof s("foo")=="symbol"&&typeof Symbol("bar")=="symbol"&&u()}},35638:function(i){i.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var o={},a=Symbol("test"),s=Object(a);if(typeof a=="string"||Object.prototype.toString.call(a)!=="[object Symbol]"||Object.prototype.toString.call(s)!=="[object Symbol]")return!1;for(a in o[a]=42,o)return!1;if(typeof Object.keys=="function"&&Object.keys(o).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(o).length!==0)return!1;var u=Object.getOwnPropertySymbols(o);if(u.length!==1||u[0]!==a||!Object.prototype.propertyIsEnumerable.call(o,a))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(o,a);if(c.value!==42||c.enumerable!==!0)return!1}return!0}},84543:function(i,o,a){var s=a(35638);i.exports=function(){return s()&&!!Symbol.toStringTag}},35065:function(i,o,a){var s=a(77575);i.exports=s.call(Function.call,Object.prototype.hasOwnProperty)},95280:function(i,o){o.read=function(a,s,u,c,d){var f,p,h=8*d-c-1,g=(1<>1,v=-7,m=u?d-1:0,y=u?-1:1,x=a[s+m];for(m+=y,f=x&(1<<-v)-1,x>>=-v,v+=h;v>0;f=256*f+a[s+m],m+=y,v-=8);for(p=f&(1<<-v)-1,f>>=-v,v+=c;v>0;p=256*p+a[s+m],m+=y,v-=8);if(f===0)f=1-b;else{if(f===g)return p?NaN:1/0*(x?-1:1);p+=Math.pow(2,c),f-=b}return(x?-1:1)*p*Math.pow(2,f-c)},o.write=function(a,s,u,c,d,f){var p,h,g,b=8*f-d-1,v=(1<>1,y=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=c?0:f-1,_=c?1:-1,w=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(h=isNaN(s)?1:0,p=v):(p=Math.floor(Math.log(s)/Math.LN2),s*(g=Math.pow(2,-p))<1&&(p--,g*=2),(s+=p+m>=1?y/g:y*Math.pow(2,1-m))*g>=2&&(p++,g/=2),p+m>=v?(h=0,p=v):p+m>=1?(h=(s*g-1)*Math.pow(2,d),p+=m):(h=s*Math.pow(2,m-1)*Math.pow(2,d),p=0));d>=8;a[u+x]=255&h,x+=_,h/=256,d-=8);for(p=p<0;a[u+x]=255&p,x+=_,p/=256,b-=8);a[u+x-_]|=128*w}},42018:function(i){typeof Object.create=="function"?i.exports=function(o,a){a&&(o.super_=a,o.prototype=Object.create(a.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}))}:i.exports=function(o,a){if(a){o.super_=a;var s=function(){};s.prototype=a.prototype,o.prototype=new s,o.prototype.constructor=o}}},47216:function(i,o,a){var s=a(84543)(),u=a(6614)("Object.prototype.toString"),c=function(p){return!(s&&p&&typeof p=="object"&&Symbol.toStringTag in p)&&u(p)==="[object Arguments]"},d=function(p){return!!c(p)||p!==null&&typeof p=="object"&&typeof p.length=="number"&&p.length>=0&&u(p)!=="[object Array]"&&u(p.callee)==="[object Function]"},f=function(){return c(arguments)}();c.isLegacyArguments=d,i.exports=f?c:d},54404:function(i){i.exports=!0},85395:function(i){var o,a,s=Function.prototype.toString,u=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply;if(typeof u=="function"&&typeof Object.defineProperty=="function")try{o=Object.defineProperty({},"length",{get:function(){throw a}}),a={},u(function(){throw 42},null,o)}catch(m){m!==a&&(u=null)}else u=null;var c=/^\s*class\b/,d=function(m){try{var y=s.call(m);return c.test(y)}catch{return!1}},f=function(m){try{return!d(m)&&(s.call(m),!0)}catch{return!1}},p=Object.prototype.toString,h=typeof Symbol=="function"&&!!Symbol.toStringTag,g=!(0 in[,]),b=function(){return!1};if(typeof document=="object"){var v=document.all;p.call(v)===p.call(document.all)&&(b=function(m){if((g||!m)&&(m===void 0||typeof m=="object"))try{var y=p.call(m);return(y==="[object HTMLAllCollection]"||y==="[object HTML document.all class]"||y==="[object HTMLCollection]"||y==="[object Object]")&&m("")==null}catch{}return!1})}i.exports=u?function(m){if(b(m))return!0;if(!m||typeof m!="function"&&typeof m!="object")return!1;try{u(m,null,o)}catch(y){if(y!==a)return!1}return!d(m)&&f(m)}:function(m){if(b(m))return!0;if(!m||typeof m!="function"&&typeof m!="object")return!1;if(h)return f(m);if(d(m))return!1;var y=p.call(m);return!(y!=="[object Function]"&&y!=="[object GeneratorFunction]"&&!/^\[object HTML/.test(y))&&f(m)}},65481:function(i,o,a){var s,u=Object.prototype.toString,c=Function.prototype.toString,d=/^\s*(?:function)?\*/,f=a(84543)(),p=Object.getPrototypeOf;i.exports=function(h){if(typeof h!="function")return!1;if(d.test(c.call(h)))return!0;if(!f)return u.call(h)==="[object GeneratorFunction]";if(!p)return!1;if(s===void 0){var g=function(){if(!f)return!1;try{return Function("return function*() {}")()}catch{}}();s=!!g&&p(g)}return p(h)===s}},64274:function(i){i.exports=function(o){return o!=o}},15567:function(i,o,a){var s=a(68222),u=a(17045),c=a(64274),d=a(14922),f=a(22442),p=s(d(),Number);u(p,{getPolyfill:d,implementation:c,shim:f}),i.exports=p},14922:function(i,o,a){var s=a(64274);i.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:s}},22442:function(i,o,a){var s=a(17045),u=a(14922);i.exports=function(){var c=u();return s(Number,{isNaN:c},{isNaN:function(){return Number.isNaN!==c}}),c}},18546:function(i){i.exports=function(o){for(var a,s=o.length,u=0;u13)&&a!==32&&a!==133&&a!==160&&a!==5760&&a!==6158&&(a<8192||a>8205)&&a!==8232&&a!==8233&&a!==8239&&a!==8287&&a!==8288&&a!==12288&&a!==65279)return!1;return!0}},9187:function(i,o,a){var s=a(31353),u=a(72077),c=a(6614),d=c("Object.prototype.toString"),f=a(84543)(),p=a(40383),h=typeof globalThis>"u"?a.g:globalThis,g=u(),b=c("Array.prototype.indexOf",!0)||function(x,_){for(var w=0;w-1}return!!p&&function(w){var S=!1;return s(m,function(k,C){if(!S)try{S=k.call(w)===C}catch{}}),S}(x)}},48956:function(i){var o={left:0,top:0};i.exports=function(a,s,u){s=s||a.currentTarget||a.srcElement,Array.isArray(u)||(u=[0,0]);var c,d=a.clientX||0,f=a.clientY||0,p=(c=s)===window||c===document||c===document.body?o:c.getBoundingClientRect();return u[0]=d-p.left,u[1]=f-p.top,u}},7417:function(i,o,a){var s,u,c,d;u="Promise",d=function(){var f,p,h,g=Object.prototype.toString,b=typeof setImmediate<"u"?function(O){return setImmediate(O)}:setTimeout;try{Object.defineProperty({},"x",{}),f=function(O,D,P,E){return Object.defineProperty(O,D,{value:P,writable:!0,configurable:E!==!1})}}catch{f=function(D,P,E){return D[P]=E,D}}function v(O,D){h.add(O,D),p||(p=b(h.drain))}function m(O){var D,P=typeof O;return O==null||P!="object"&&P!="function"||(D=O.then),typeof D=="function"&&D}function y(){for(var O=0;O0&&v(y,P))}catch(E){w.call(new k(P),E)}}}function w(O){var D=this;D.triggered||(D.triggered=!0,D.def&&(D=D.def),D.msg=O,D.state=2,D.chain.length>0&&v(y,D))}function S(O,D,P,E){for(var I=0;I"u")return!1;for(var y in window)try{if(!v["$"+y]&&u.call(window,y)&&window[y]!==null&&typeof window[y]=="object")try{b(window[y])}catch{return!0}}catch{return!0}return!1}();s=function(y){var x=y!==null&&typeof y=="object",_=c.call(y)==="[object Function]",w=d(y),S=x&&c.call(y)==="[object String]",k=[];if(!x&&!_&&!w)throw new TypeError("Object.keys called on a non-object");var C=h&&_;if(S&&y.length>0&&!u.call(y,0))for(var T=0;T0)for(var M=0;M"u"||!m)return b(E);try{return b(E)}catch{return!1}}(y),P=0;P=0&&o.call(a.callee)==="[object Function]"),u}},95616:function(i){i.exports=function(u){var c=[];return u.replace(a,function(d,f,p){var h=f.toLowerCase();for(p=function(g){var b=g.match(s);return b?b.map(Number):[]}(p),h=="m"&&p.length>2&&(c.push([f].concat(p.splice(0,2))),h="l",f=f=="m"?"l":"L");;){if(p.length==o[h])return p.unshift(f),c.push(p);if(p.lengthd!=y>d&&c<(m-b)*(d-v)/(y-v)+b&&(f=!f)}return f}},52142:function(i,o,a){var s,u=a(69444),c=a(29023),d=a(87263),f=a(11328),p=a(55968),h=a(10670),g=!1,b=c();function v(m,y,x){var _=s.segments(m),w=s.segments(y),S=x(s.combine(_,w));return s.polygon(S)}s={buildLog:function(m){return m===!0?g=u():m===!1&&(g=!1),g!==!1&&g.list},epsilon:function(m){return b.epsilon(m)},segments:function(m){var y=d(!0,b,g);return m.regions.forEach(y.addRegion),{segments:y.calculate(m.inverted),inverted:m.inverted}},combine:function(m,y){return{combined:d(!1,b,g).calculate(m.segments,m.inverted,y.segments,y.inverted),inverted1:m.inverted,inverted2:y.inverted}},selectUnion:function(m){return{segments:p.union(m.combined,g),inverted:m.inverted1||m.inverted2}},selectIntersect:function(m){return{segments:p.intersect(m.combined,g),inverted:m.inverted1&&m.inverted2}},selectDifference:function(m){return{segments:p.difference(m.combined,g),inverted:m.inverted1&&!m.inverted2}},selectDifferenceRev:function(m){return{segments:p.differenceRev(m.combined,g),inverted:!m.inverted1&&m.inverted2}},selectXor:function(m){return{segments:p.xor(m.combined,g),inverted:m.inverted1!==m.inverted2}},polygon:function(m){return{regions:f(m.segments,b,g),inverted:m.inverted}},polygonFromGeoJSON:function(m){return h.toPolygon(s,m)},polygonToGeoJSON:function(m){return h.fromPolygon(s,b,m)},union:function(m,y){return v(m,y,s.selectUnion)},intersect:function(m,y){return v(m,y,s.selectIntersect)},difference:function(m,y){return v(m,y,s.selectDifference)},differenceRev:function(m,y){return v(m,y,s.selectDifferenceRev)},xor:function(m,y){return v(m,y,s.selectXor)}},typeof window=="object"&&(window.PolyBool=s),i.exports=s},69444:function(i){i.exports=function(){var o,a=0,s=!1;function u(c,d){return o.list.push({type:c,data:d?JSON.parse(JSON.stringify(d)):void 0}),o}return o={list:[],segmentId:function(){return a++},checkIntersection:function(c,d){return u("check",{seg1:c,seg2:d})},segmentChop:function(c,d){return u("div_seg",{seg:c,pt:d}),u("chop",{seg:c,pt:d})},statusRemove:function(c){return u("pop_seg",{seg:c})},segmentUpdate:function(c){return u("seg_update",{seg:c})},segmentNew:function(c,d){return u("new_seg",{seg:c,primary:d})},segmentRemove:function(c){return u("rem_seg",{seg:c})},tempStatus:function(c,d,f){return u("temp_status",{seg:c,above:d,below:f})},rewind:function(c){return u("rewind",{seg:c})},status:function(c,d,f){return u("status",{seg:c,above:d,below:f})},vert:function(c){return c===s?o:(s=c,u("vert",{x:c}))},log:function(c){return typeof c!="string"&&(c=JSON.stringify(c,!1," ")),u("log",{txt:c})},reset:function(){return u("reset")},selected:function(c){return u("selected",{segs:c})},chainStart:function(c){return u("chain_start",{seg:c})},chainRemoveHead:function(c,d){return u("chain_rem_head",{index:c,pt:d})},chainRemoveTail:function(c,d){return u("chain_rem_tail",{index:c,pt:d})},chainNew:function(c,d){return u("chain_new",{pt1:c,pt2:d})},chainMatch:function(c){return u("chain_match",{index:c})},chainClose:function(c){return u("chain_close",{index:c})},chainAddHead:function(c,d){return u("chain_add_head",{index:c,pt:d})},chainAddTail:function(c,d){return u("chain_add_tail",{index:c,pt:d})},chainConnect:function(c,d){return u("chain_con",{index1:c,index2:d})},chainReverse:function(c){return u("chain_rev",{index:c})},chainJoin:function(c,d){return u("chain_join",{index1:c,index2:d})},done:function(){return u("done")}}}},29023:function(i){i.exports=function(o){typeof o!="number"&&(o=1e-10);var a={epsilon:function(s){return typeof s=="number"&&(o=s),o},pointAboveOrOnLine:function(s,u,c){var d=u[0],f=u[1],p=c[0],h=c[1],g=s[0];return(p-d)*(s[1]-f)-(h-f)*(g-d)>=-o},pointBetween:function(s,u,c){var d=s[1]-u[1],f=c[0]-u[0],p=s[0]-u[0],h=c[1]-u[1],g=p*f+d*h;return!(g-o)},pointsSameX:function(s,u){return Math.abs(s[0]-u[0])o!=p-d>o&&(f-b)*(d-v)/(p-v)+b-c>o&&(h=!h),f=b,p=v}return h}};return a}},10670:function(i){var o={toPolygon:function(a,s){function u(f){if(f.length<=0)return a.segments({inverted:!1,regions:[]});function p(b){var v=b.slice(0,b.length-1);return a.segments({inverted:!1,regions:[v]})}for(var h=p(f[0]),g=1;g0})}function w(F,j){var B=F.seg,z=j.seg,N=B.start,R=B.end,q=z.start,Y=z.end;d&&d.checkIntersection(B,z);var L=c.linesIntersect(N,R,q,Y);if(L===!1){if(!c.pointsCollinear(N,R,q)||c.pointsSame(N,Y)||c.pointsSame(R,q))return!1;var W=c.pointsSame(N,q),H=c.pointsSame(R,Y);if(W&&H)return j;var G=!W&&c.pointBetween(N,q,Y),te=!H&&c.pointBetween(R,q,Y);if(W)return te?b(j,R):b(F,Y),j;G&&(H||(te?b(j,R):b(F,Y)),b(j,N))}else L.alongA===0&&(L.alongB===-1?b(F,q):L.alongB===0?b(F,L.pt):L.alongB===1&&b(F,Y)),L.alongB===0&&(L.alongA===-1?b(j,N):L.alongA===0?b(j,L.pt):L.alongA===1&&b(j,R));return!1}for(var S=[];!p.isEmpty();){var k=p.getHead();if(d&&d.vert(k.pt[0]),k.isStart){let F=function(){if(T){var j=w(k,T);if(j)return j}return!!M&&w(k,M)};var A=F;d&&d.segmentNew(k.seg,k.primary);var C=_(k),T=C.before?C.before.ev:null,M=C.after?C.after.ev:null;d&&d.tempStatus(k.seg,!!T&&T.seg,!!M&&M.seg);var O,D,P=F();if(P&&(u?(D=k.seg.myFill.below===null||k.seg.myFill.above!==k.seg.myFill.below)&&(P.seg.myFill.above=!P.seg.myFill.above):P.seg.otherFill=k.seg.myFill,d&&d.segmentUpdate(P.seg),k.other.remove(),k.remove()),p.getHead()!==k){d&&d.rewind(k.seg);continue}u?(D=k.seg.myFill.below===null||k.seg.myFill.above!==k.seg.myFill.below,k.seg.myFill.below=M?M.seg.myFill.above:m,k.seg.myFill.above=D?!k.seg.myFill.below:k.seg.myFill.below):k.seg.otherFill===null&&(O=M?k.primary===M.primary?M.seg.otherFill.above:M.seg.myFill.above:k.primary?y:m,k.seg.otherFill={above:O,below:O}),d&&d.status(k.seg,!!T&&T.seg,!!M&&M.seg),k.other.status=C.insert(s.node({ev:k}))}else{var E=k.status;if(E===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(x.exists(E.prev)&&x.exists(E.next)&&w(E.prev.ev,E.next.ev),d&&d.statusRemove(E.ev.seg),E.remove(),!k.primary){var I=k.seg.myFill;k.seg.myFill=k.seg.otherFill,k.seg.otherFill=I}S.push(k.seg)}p.getHead().remove()}return d&&d.done(),S}return u?{addRegion:function(m){for(var y,x,_,w=m[m.length-1],S=0;S0&&!this.aborted;){var d=this.ifds_to_read.shift();d.offset&&this.scan_ifd(d.id,d.offset,u)}},s.prototype.read_uint16=function(u){var c=this.input;if(u+2>c.length)throw o("unexpected EOF","EBADDATA");return this.big_endian?256*c[u]+c[u+1]:c[u]+256*c[u+1]},s.prototype.read_uint32=function(u){var c=this.input;if(u+4>c.length)throw o("unexpected EOF","EBADDATA");return this.big_endian?16777216*c[u]+65536*c[u+1]+256*c[u+2]+c[u+3]:c[u]+256*c[u+1]+65536*c[u+2]+16777216*c[u+3]},s.prototype.is_subifd_link=function(u,c){return u===0&&c===34665||u===0&&c===34853||u===34665&&c===40965},s.prototype.exif_format_length=function(u){switch(u){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}},s.prototype.exif_format_read=function(u,c){var d;switch(u){case 1:case 2:return this.input[c];case 6:return(d=this.input[c])|33554430*(128&d);case 3:return this.read_uint16(c);case 8:return(d=this.read_uint16(c))|131070*(32768&d);case 4:return this.read_uint32(c);case 9:return 0|this.read_uint32(c);default:return null}},s.prototype.scan_ifd=function(u,c,d){var f=this.read_uint16(c);c+=2;for(var p=0;pthis.input.length)throw o("unexpected EOF","EBADDATA");for(var _=[],w=y,S=0;S0&&(this.ifds_to_read.push({id:h,offset:_[0]}),x=!0),d({is_big_endian:this.big_endian,ifd:u,tag:h,format:g,count:b,entry_offset:c+this.start,data_length:m,data_offset:y+this.start,value:_,is_subifd_link:x})===!1)return void(this.aborted=!0);c+=12}u===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(c)})},i.exports.ExifParser=s,i.exports.get_orientation=function(u){var c=0;try{return new s(u,0,u.length).each(function(d){if(d.ifd===0&&d.tag===274&&Array.isArray(d.value))return c=d.value[0],!1}),c}catch{return-1}}},76767:function(i,o,a){var s=a(14847).n8,u=a(14847).Ag;function c(b,v){if(b.length<4+v)return null;var m=u(b,v);return b.length>4&15,y=15&b[4],x=b[5]>>4&15,_=s(b,6),w=8,S=0;S<_;S++){var k=s(b,w),C=s(b,w+=2),T=f(b,w+=2,x),M=s(b,w+=x);if(w+=2,C===0&&M===1){var O=f(b,w,m),D=f(b,w+m,y);v.item_loc[k]={length:D,offset:O+T}}w+=M*(m+y)}}function h(b,v){for(var m=s(b,4),y=6,x=0;xC.width||k.width===C.width&&k.height>C.height?k:C}),x=m.reduce(function(k,C){return k.height>C.height||k.height===C.height&&k.width>C.width?k:C}),y.width>x.height||y.width===x.height&&y.height>x.width?y:x),w=1;v.transforms.forEach(function(k){var C={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},T={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(k.type==="imir"&&(w=k.value===0?T[w]:C[w=C[w=T[w]]]),k.type==="irot")for(var M=0;M1&&(_.variants=x.variants),x.orientation&&(_.orientation=x.orientation),x.exif_location&&x.exif_location.offset+x.exif_location.length<=h.length){var w=c(h,x.exif_location.offset),S=h.slice(x.exif_location.offset+w+4,x.exif_location.offset+x.exif_location.length),k=f.get_orientation(S);k>0&&(_.orientation=k)}return _}}}}}}},2504:function(i,o,a){var s=a(14847).eG,u=a(14847).OF,c=a(14847).mP,d=s("BM");i.exports=function(f){if(!(f.length<26)&&u(f,0,d))return{width:c(f,18),height:c(f,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}},47342:function(i,o,a){var s=a(14847).eG,u=a(14847).OF,c=a(14847).mP,d=s("GIF87a"),f=s("GIF89a");i.exports=function(p){if(!(p.length<10)&&(u(p,0,d)||u(p,0,f)))return{width:c(p,6),height:c(p,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}},31355:function(i,o,a){var s=a(14847).mP;i.exports=function(u){var c=s(u,0),d=s(u,2),f=s(u,4);if(c===0&&d===1&&f){for(var p=[],h={width:0,height:0},g=0;gh.width||v>h.height)&&(h=m)}return{width:h.width,height:h.height,variants:p,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}},54261:function(i,o,a){var s=a(14847).n8,u=a(14847).eG,c=a(14847).OF,d=a(71371),f=u("Exif\0\0");i.exports=function(p){if(!(p.length<2)&&p[0]===255&&p[1]===216&&p[2]===255)for(var h=2;;){for(;;){if(p.length-h<2)return;if(p[h++]===255)break}for(var g,b,v=p[h++];v===255;)v=p[h++];if(208<=v&&v<=217||v===1)g=0;else{if(!(192<=v&&v<=254)||p.length-h<2)return;g=s(p,h)-2,h+=2}if(v===217||v===218)return;if(v===225&&g>=10&&c(p,h,f)&&(b=d.get_orientation(p.slice(h+6,h+g))),g>=5&&192<=v&&v<=207&&v!==196&&v!==200&&v!==204){if(p.length-h0&&(m.orientation=b),m}h+=g}}},6303:function(i,o,a){var s=a(14847).eG,u=a(14847).OF,c=a(14847).Ag,d=s(`‰PNG\r  -`),f=s("IHDR");i.exports=function(p){if(!(p.length<24)&&u(p,0,d)&&u(p,12,f))return{width:c(p,16),height:c(p,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}},38689:function(i,o,a){var s=a(14847).eG,u=a(14847).OF,c=a(14847).Ag,d=s("8BPS\0");i.exports=function(f){if(!(f.length<22)&&u(f,0,d))return{width:c(f,18),height:c(f,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}},6881:function(i){function o(m){return typeof m=="number"&&isFinite(m)&&m>0}var a=/<[-_.:a-zA-Z0-9][^>]*>/,s=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,u=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,c=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,d=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,f=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function p(m){return f.test(m)?m.match(f)[0]:"px"}i.exports=function(m){if(function(C){var M,O=0,D=C.length;for(C[0]===239&&C[1]===187&&C[2]===191&&(O=3);O>14&16383),type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function v(h,y){return{width:1+(h[y+6]<<16|h[y+5]<<8|h[y+4]),height:1+(h[y+9]<h.length)){for(;y+8=10?w=w||g(h,y+8):T==="VP8L"&&k>=9?w=w||b(h,y+8):T==="VP8X"&&k>=10?w=w||v(h,y+8):T==="EXIF"&&(_=f.get_orientation(h.slice(y+8,y+8+k)),y=1/0),y+=8+k}else y++;if(w)return _>0&&(w.orientation=_),w}}}},91497:function(i,o,a){i.exports={avif:a(24461),bmp:a(2504),gif:a(47342),ico:a(31355),jpeg:a(54261),png:a(6303),psd:a(38689),svg:a(6881),tiff:a(66278),webp:a(90784)}},33575:function(i,o,a){var s=a(91497);i.exports=function(u){return function(c){for(var d=Object.keys(s),f=0;f1)for(var x=1;x2?"one of ".concat(c," ").concat(u.slice(0,d-1).join(", "),", or ")+u[d-1]:d===2?"one of ".concat(c," ").concat(u[0]," or ").concat(u[1]):"of ".concat(c," ").concat(u[0])}return"of ".concat(c," ").concat(String(u))}a("ERR_INVALID_OPT_VALUE",function(u,c){return'The value "'+c+'" is invalid for option "'+u+'"'},TypeError),a("ERR_INVALID_ARG_TYPE",function(u,c,d){var f,p,m,g,b;if(typeof c=="string"&&(p="not ",c.substr(0,4)===p)?(f="must not be",c=c.replace(/^not /,"")):f="must be",function(h,y,w){return(w===void 0||w>h.length)&&(w=h.length),h.substring(w-9,w)===y}(u," argument"))m="The ".concat(u," ").concat(f," ").concat(s(c,"type"));else{var v=(typeof b!="number"&&(b=0),b+1>(g=u).length||g.indexOf(".",b)===-1?"argument":"property");m='The "'.concat(u,'" ').concat(v," ").concat(f," ").concat(s(c,"type"))}return m+". Received type ".concat(typeof d)},TypeError),a("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),a("ERR_METHOD_NOT_IMPLEMENTED",function(u){return"The "+u+" method is not implemented"}),a("ERR_STREAM_PREMATURE_CLOSE","Premature close"),a("ERR_STREAM_DESTROYED",function(u){return"Cannot call "+u+" after a stream was destroyed"}),a("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),a("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),a("ERR_STREAM_WRITE_AFTER_END","write after end"),a("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),a("ERR_UNKNOWN_ENCODING",function(u){return"Unknown encoding: "+u},TypeError),a("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),i.exports.q=o},37865:function(i,o,a){var s=a(90386),u=Object.keys||function(h){var y=[];for(var w in h)y.push(w);return y};i.exports=g;var c=a(40410),d=a(37493);a(42018)(g,c);for(var f=u(d.prototype),p=0;p0)if(typeof H=="string"||re.objectMode||Object.getPrototypeOf(H)===p.prototype||(H=function(ae){return p.from(ae)}(H)),G)re.endEmitted?M(ee,new C):I(ee,re,H,!0);else if(re.ended)M(ee,new k);else{if(re.destroyed)return!1;re.reading=!1,re.decoder&&!Z?(H=re.decoder.write(H),re.objectMode||H.length!==0?I(ee,re,H,!1):B(ee,re)):I(ee,re,H,!1)}else G||(re.reading=!1,B(ee,re));return!re.ended&&(re.lengthH.highWaterMark&&(H.highWaterMark=function(Z){return Z>=A?Z=A:(Z--,Z|=Z>>>1,Z|=Z>>>2,Z|=Z>>>4,Z|=Z>>>8,Z|=Z>>>16,Z++),Z}(ee)),ee<=H.length?ee:H.ended?H.length:(H.needReadable=!0,0))}function j(ee){var H=ee._readableState;c("emitReadable",H.needReadable,H.emittedReadable),H.needReadable=!1,H.emittedReadable||(c("emitReadable",H.flowing),H.emittedReadable=!0,u.nextTick(z,ee))}function z(ee){var H=ee._readableState;c("emitReadable_",H.destroyed,H.length,H.ended),H.destroyed||!H.length&&!H.ended||(ee.emit("readable"),H.emittedReadable=!1),H.needReadable=!H.flowing&&!H.ended&&H.length<=H.highWaterMark,L(ee)}function B(ee,H){H.readingMore||(H.readingMore=!0,u.nextTick(N,ee,H))}function N(ee,H){for(;!H.reading&&!H.ended&&(H.length0,H.resumeScheduled&&!H.paused?H.flowing=!0:ee.listenerCount("data")>0&&ee.resume()}function q(ee){c("readable nexttick read 0"),ee.read(0)}function Y(ee,H){c("resume",H.reading),H.reading||ee.read(0),H.resumeScheduled=!1,ee.emit("resume"),L(ee),H.flowing&&!H.reading&&ee.read(0)}function L(ee){var H=ee._readableState;for(c("flow",H.flowing);H.flowing&&ee.read()!==null;);}function W(ee,H){return H.length===0?null:(H.objectMode?Z=H.buffer.shift():!ee||ee>=H.length?(Z=H.decoder?H.buffer.join(""):H.buffer.length===1?H.buffer.first():H.buffer.concat(H.length),H.buffer.clear()):Z=H.buffer.consume(ee,H.decoder),Z);var Z}function U(ee){var H=ee._readableState;c("endReadable",H.endEmitted),H.endEmitted||(H.ended=!0,u.nextTick(V,H,ee))}function V(ee,H){if(c("endReadableNT",ee.endEmitted,ee.length),!ee.endEmitted&&ee.length===0&&(ee.endEmitted=!0,H.readable=!1,H.emit("end"),ee.autoDestroy)){var Z=H._writableState;(!Z||Z.autoDestroy&&Z.finished)&&H.destroy()}}function te(ee,H){for(var Z=0,G=ee.length;Z=H.highWaterMark:H.length>0)||H.ended))return c("read: emitReadable",H.length,H.ended),H.length===0&&H.ended?U(this):j(this),null;if((ee=F(ee,H))===0&&H.ended)return H.length===0&&U(this),null;var G,X=H.needReadable;return c("need readable",X),(H.length===0||H.length-ee0?W(ee,H):null)===null?(H.needReadable=H.length<=H.highWaterMark,ee=0):(H.length-=ee,H.awaitDrain=0),H.length===0&&(H.ended||(H.needReadable=!0),Z!==ee&&H.ended&&U(this)),G!==null&&this.emit("data",G),G},P.prototype._read=function(ee){M(this,new S("_read()"))},P.prototype.pipe=function(ee,H){var Z=this,G=this._readableState;switch(G.pipesCount){case 0:G.pipes=ee;break;case 1:G.pipes=[G.pipes,ee];break;default:G.pipes.push(ee)}G.pipesCount+=1,c("pipe count=%d opts=%j",G.pipesCount,H);var X=H&&H.end===!1||ee===u.stdout||ee===u.stderr?Oe:Q;function Q(){c("onend"),ee.end()}G.endEmitted?u.nextTick(X):Z.once("end",X),ee.on("unpipe",function Pe(Me,ce){c("onunpipe"),Me===Z&&ce&&ce.hasUnpiped===!1&&(ce.hasUnpiped=!0,c("cleanup"),ee.removeListener("close",he),ee.removeListener("finish",Se),ee.removeListener("drain",re),ee.removeListener("error",se),ee.removeListener("unpipe",Pe),Z.removeListener("end",Q),Z.removeListener("end",Oe),Z.removeListener("data",ie),ae=!0,!G.awaitDrain||ee._writableState&&!ee._writableState.needDrain||re())});var re=function(Pe){return function(){var Me=Pe._readableState;c("pipeOnDrain",Me.awaitDrain),Me.awaitDrain&&Me.awaitDrain--,Me.awaitDrain===0&&d(Pe,"data")&&(Me.flowing=!0,L(Pe))}}(Z);ee.on("drain",re);var ae=!1;function ie(Pe){c("ondata");var Me=ee.write(Pe);c("dest.write",Me),Me===!1&&((G.pipesCount===1&&G.pipes===ee||G.pipesCount>1&&te(G.pipes,ee)!==-1)&&!ae&&(c("false write response, pause",G.awaitDrain),G.awaitDrain++),Z.pause())}function se(Pe){c("onerror",Pe),Oe(),ee.removeListener("error",se),d(ee,"error")===0&&M(ee,Pe)}function he(){ee.removeListener("finish",Se),Oe()}function Se(){c("onfinish"),ee.removeListener("close",he),Oe()}function Oe(){c("unpipe"),Z.unpipe(ee)}return Z.on("data",ie),function(Pe,Me,ce){if(typeof Pe.prependListener=="function")return Pe.prependListener(Me,ce);Pe._events&&Pe._events[Me]?Array.isArray(Pe._events[Me])?Pe._events[Me].unshift(ce):Pe._events[Me]=[ce,Pe._events[Me]]:Pe.on(Me,ce)}(ee,"error",se),ee.once("close",he),ee.once("finish",Se),ee.emit("pipe",Z),G.flowing||(c("pipe resume"),Z.resume()),ee},P.prototype.unpipe=function(ee){var H=this._readableState,Z={hasUnpiped:!1};if(H.pipesCount===0)return this;if(H.pipesCount===1)return ee&&ee!==H.pipes||(ee||(ee=H.pipes),H.pipes=null,H.pipesCount=0,H.flowing=!1,ee&&ee.emit("unpipe",this,Z)),this;if(!ee){var G=H.pipes,X=H.pipesCount;H.pipes=null,H.pipesCount=0,H.flowing=!1;for(var Q=0;Q0,G.flowing!==!1&&this.resume()):ee==="readable"&&(G.endEmitted||G.readableListening||(G.readableListening=G.needReadable=!0,G.flowing=!1,G.emittedReadable=!1,c("on readable",G.length,G.reading),G.length?j(this):G.reading||u.nextTick(q,this))),Z},P.prototype.addListener=P.prototype.on,P.prototype.removeListener=function(ee,H){var Z=f.prototype.removeListener.call(this,ee,H);return ee==="readable"&&u.nextTick(R,this),Z},P.prototype.removeAllListeners=function(ee){var H=f.prototype.removeAllListeners.apply(this,arguments);return ee!=="readable"&&ee!==void 0||u.nextTick(R,this),H},P.prototype.resume=function(){var ee=this._readableState;return ee.flowing||(c("resume"),ee.flowing=!ee.readableListening,function(H,Z){Z.resumeScheduled||(Z.resumeScheduled=!0,u.nextTick(Y,H,Z))}(this,ee)),ee.paused=!1,this},P.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},P.prototype.wrap=function(ee){var H=this,Z=this._readableState,G=!1;for(var X in ee.on("end",function(){if(c("wrapped end"),Z.decoder&&!Z.ended){var re=Z.decoder.end();re&&re.length&&H.push(re)}H.push(null)}),ee.on("data",function(re){c("wrapped data"),Z.decoder&&(re=Z.decoder.write(re)),Z.objectMode&&re==null||(Z.objectMode||re&&re.length)&&(H.push(re)||(G=!0,ee.pause()))}),ee)this[X]===void 0&&typeof ee[X]=="function"&&(this[X]=function(re){return function(){return ee[re].apply(ee,arguments)}}(X));for(var Q=0;Q-1))throw new C(B);return this._writableState.defaultEncoding=B,this},Object.defineProperty(P.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),P.prototype._write=function(B,N,R){R(new w("_write()"))},P.prototype._writev=null,P.prototype.end=function(B,N,R){var q=this._writableState;return typeof B=="function"?(R=B,B=null,N=null):typeof N=="function"&&(R=N,N=null),B!=null&&this.write(B,N),q.corked&&(q.corked=1,this.uncork()),q.ending||function(Y,L,W){L.ending=!0,z(Y,L),W&&(L.finished?u.nextTick(W):Y.once("finish",W)),L.ended=!0,Y.writable=!1}(this,q,R),this},Object.defineProperty(P.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(B){this._writableState&&(this._writableState.destroyed=B)}}),P.prototype.destroy=b.destroy,P.prototype._undestroy=b.undestroy,P.prototype._destroy=function(B,N){N(B)}},68221:function(i,o,a){var s,u=a(90386);function c(k,S,C){return S in k?Object.defineProperty(k,S,{value:C,enumerable:!0,configurable:!0,writable:!0}):k[S]=C,k}var d=a(12726),f=Symbol("lastResolve"),p=Symbol("lastReject"),m=Symbol("error"),g=Symbol("ended"),b=Symbol("lastPromise"),v=Symbol("handlePromise"),h=Symbol("stream");function y(k,S){return{value:k,done:S}}function w(k){var S=k[f];if(S!==null){var C=k[h].read();C!==null&&(k[b]=null,k[f]=null,k[p]=null,S(y(C,!1)))}}function _(k){u.nextTick(w,k)}var x=Object.getPrototypeOf(function(){}),T=Object.setPrototypeOf((c(s={get stream(){return this[h]},next:function(){var k=this,S=this[m];if(S!==null)return Promise.reject(S);if(this[g])return Promise.resolve(y(void 0,!0));if(this[h].destroyed)return new Promise(function(D,P){u.nextTick(function(){k[m]?P(k[m]):D(y(void 0,!0))})});var C,M=this[b];if(M)C=new Promise(function(D,P){return function(E,I){D.then(function(){P[g]?E(y(void 0,!0)):P[v](E,I)},I)}}(M,this));else{var O=this[h].read();if(O!==null)return Promise.resolve(y(O,!1));C=new Promise(this[v])}return this[b]=C,C}},Symbol.asyncIterator,function(){return this}),c(s,"return",function(){var k=this;return new Promise(function(S,C){k[h].destroy(null,function(M){M?C(M):S(y(void 0,!0))})})}),s),x);i.exports=function(k){var S,C=Object.create(T,(c(S={},h,{value:k,writable:!0}),c(S,f,{value:null,writable:!0}),c(S,p,{value:null,writable:!0}),c(S,m,{value:null,writable:!0}),c(S,g,{value:k._readableState.endEmitted,writable:!0}),c(S,v,{value:function(M,O){var D=C[h].read();D?(C[b]=null,C[f]=null,C[p]=null,M(y(D,!1))):(C[f]=M,C[p]=O)},writable:!0}),S));return C[b]=null,d(k,function(M){if(M&&M.code!=="ERR_STREAM_PREMATURE_CLOSE"){var O=C[p];return O!==null&&(C[b]=null,C[f]=null,C[p]=null,O(M)),void(C[m]=M)}var D=C[f];D!==null&&(C[b]=null,C[f]=null,C[p]=null,D(y(void 0,!0))),C[g]=!0}),k.on("readable",_.bind(null,C)),C}},31125:function(i,o,a){function s(m,g){var b=Object.keys(m);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(m);g&&(v=v.filter(function(h){return Object.getOwnPropertyDescriptor(m,h).enumerable})),b.push.apply(b,v)}return b}function u(m,g,b){return g in m?Object.defineProperty(m,g,{value:b,enumerable:!0,configurable:!0,writable:!0}):m[g]=b,m}function c(m,g){for(var b=0;b0?this.tail.next=h:this.head=h,this.tail=h,++this.length}},{key:"unshift",value:function(v){var h={data:v,next:this.head};this.length===0&&(this.tail=h),this.head=h,++this.length}},{key:"shift",value:function(){if(this.length!==0){var v=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,v}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(v){if(this.length===0)return"";for(var h=this.head,y=""+h.data;h=h.next;)y+=v+h.data;return y}},{key:"concat",value:function(v){if(this.length===0)return d.alloc(0);for(var h,y,w,_=d.allocUnsafe(v>>>0),x=this.head,T=0;x;)h=x.data,y=_,w=T,d.prototype.copy.call(h,y,w),T+=x.data.length,x=x.next;return _}},{key:"consume",value:function(v,h){var y;return v_.length?_.length:v;if(x===_.length?w+=_:w+=_.slice(0,v),(v-=x)==0){x===_.length?(++y,h.next?this.head=h.next:this.head=this.tail=null):(this.head=h,h.data=_.slice(x));break}++y}return this.length-=y,w}},{key:"_getBuffer",value:function(v){var h=d.allocUnsafe(v),y=this.head,w=1;for(y.data.copy(h),v-=y.data.length;y=y.next;){var _=y.data,x=v>_.length?_.length:v;if(_.copy(h,h.length-v,0,x),(v-=x)==0){x===_.length?(++w,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=_.slice(x));break}++w}return this.length-=w,h}},{key:p,value:function(v,h){return f(this,function(y){for(var w=1;w0,function(k){h||(h=k),k&&w.forEach(p),T||(w.forEach(p),y(h))})});return b.reduce(m)}},56306:function(i,o,a){var s=a(74322).q.ERR_INVALID_OPT_VALUE;i.exports={getHighWaterMark:function(u,c,d,f){var p=function(m,g,b){return m.highWaterMark!=null?m.highWaterMark:g?m[b]:null}(c,f,d);if(p!=null){if(!isFinite(p)||Math.floor(p)!==p||p<0)throw new s(f?d:"highWaterMark",p);return Math.floor(p)}return u.objectMode?16:16384}}},71405:function(i,o,a){i.exports=a(15398).EventEmitter},68019:function(i,o,a){var s=a(71665).Buffer,u=s.isEncoding||function(y){switch((y=""+y)&&y.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function c(y){var w;switch(this.encoding=function(_){var x=function(T){if(!T)return"utf8";for(var k;;)switch(T){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return T;default:if(k)return;T=(""+T).toLowerCase(),k=!0}}(_);if(typeof x!="string"&&(s.isEncoding===u||!u(_)))throw new Error("Unknown encoding: "+_);return x||_}(y),this.encoding){case"utf16le":this.text=p,this.end=m,w=4;break;case"utf8":this.fillLast=f,w=4;break;case"base64":this.text=g,this.end=b,w=3;break;default:return this.write=v,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=s.allocUnsafe(w)}function d(y){return y<=127?0:y>>5==6?2:y>>4==14?3:y>>3==30?4:y>>6==2?-1:-2}function f(y){var w=this.lastTotal-this.lastNeed,_=function(x,T,k){if((192&T[0])!=128)return x.lastNeed=0,"�";if(x.lastNeed>1&&T.length>1){if((192&T[1])!=128)return x.lastNeed=1,"�";if(x.lastNeed>2&&T.length>2&&(192&T[2])!=128)return x.lastNeed=2,"�"}}(this,y);return _!==void 0?_:this.lastNeed<=y.length?(y.copy(this.lastChar,w,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(y.copy(this.lastChar,w,0,y.length),void(this.lastNeed-=y.length))}function p(y,w){if((y.length-w)%2==0){var _=y.toString("utf16le",w);if(_){var x=_.charCodeAt(_.length-1);if(x>=55296&&x<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1],_.slice(0,-1)}return _}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=y[y.length-1],y.toString("utf16le",w,y.length-1)}function m(y){var w=y&&y.length?this.write(y):"";if(this.lastNeed){var _=this.lastTotal-this.lastNeed;return w+this.lastChar.toString("utf16le",0,_)}return w}function g(y,w){var _=(y.length-w)%3;return _===0?y.toString("base64",w):(this.lastNeed=3-_,this.lastTotal=3,_===1?this.lastChar[0]=y[y.length-1]:(this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1]),y.toString("base64",w,y.length-_))}function b(y){var w=y&&y.length?this.write(y):"";return this.lastNeed?w+this.lastChar.toString("base64",0,3-this.lastNeed):w}function v(y){return y.toString(this.encoding)}function h(y){return y&&y.length?this.write(y):""}o.s=c,c.prototype.write=function(y){if(y.length===0)return"";var w,_;if(this.lastNeed){if((w=this.fillLast(y))===void 0)return"";_=this.lastNeed,this.lastNeed=0}else _=0;return _=0?(M>0&&(T.lastNeed=M-1),M):--C=0?(M>0&&(T.lastNeed=M-2),M):--C=0?(M>0&&(M===2?M=0:T.lastNeed=M-3),M):0}(this,y,w);if(!this.lastNeed)return y.toString("utf8",w);this.lastTotal=_;var x=y.length-(_-this.lastNeed);return y.copy(this.lastChar,0,x),y.toString("utf8",w,x)},c.prototype.fillLast=function(y){if(this.lastNeed<=y.length)return y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,y.length),this.lastNeed-=y.length}},90715:function(i,o,a){var s=a(32791),u=a(41633)("stream-parser");i.exports=function(T){var k=T&&typeof T._transform=="function",S=T&&typeof T._write=="function";if(!k&&!S)throw new Error("must pass a Writable or Transform stream in");u("extending Parser into stream"),T._bytes=g,T._skipBytes=b,k&&(T._passthrough=v),k?T._transform=y:T._write=h};var c=-1,d=0,f=1,p=2;function m(T){u("initializing parser stream"),T._parserBytesLeft=0,T._parserBuffers=[],T._parserBuffered=0,T._parserState=c,T._parserCallback=null,typeof T.push=="function"&&(T._parserOutput=T.push.bind(T)),T._parserInit=!0}function g(T,k){s(!this._parserCallback,'there is already a "callback" set!'),s(isFinite(T)&&T>0,'can only buffer a finite number of bytes > 0, got "'+T+'"'),this._parserInit||m(this),u("buffering %o bytes",T),this._parserBytesLeft=T,this._parserCallback=k,this._parserState=d}function b(T,k){s(!this._parserCallback,'there is already a "callback" set!'),s(T>0,'can only skip > 0 bytes, got "'+T+'"'),this._parserInit||m(this),u("skipping %o bytes",T),this._parserBytesLeft=T,this._parserCallback=k,this._parserState=f}function v(T,k){s(!this._parserCallback,'There is already a "callback" set!'),s(T>0,'can only pass through > 0 bytes, got "'+T+'"'),this._parserInit||m(this),u("passing through %o bytes",T),this._parserBytesLeft=T,this._parserCallback=k,this._parserState=p}function h(T,k,S){this._parserInit||m(this),u("write(%o bytes)",T.length),typeof k=="function"&&(S=k),_(this,T,null,S)}function y(T,k,S){this._parserInit||m(this),u("transform(%o bytes)",T.length),typeof k!="function"&&(k=this._parserOutput),_(this,T,k,S)}function w(T,k,S,C){if(T._parserBytesLeft-=k.length,u("%o bytes left for stream piece",T._parserBytesLeft),T._parserState===d?(T._parserBuffers.push(k),T._parserBuffered+=k.length):T._parserState===p&&S(k),T._parserBytesLeft!==0)return C;var M=T._parserCallback;if(M&&T._parserState===d&&T._parserBuffers.length>1&&(k=Buffer.concat(T._parserBuffers,T._parserBuffered)),T._parserState!==d&&(k=null),T._parserCallback=null,T._parserBuffered=0,T._parserState=c,T._parserBuffers.splice(0),M){var O=[];k&&O.push(k),S&&O.push(S);var D=M.length>O.length;D&&O.push(x(C));var P=M.apply(T,O);if(!D||C===P)return C}}var _=x(function T(k,S,C,M){return k._parserBytesLeft<=0?M(new Error("got data but not currently parsing anything")):S.length<=k._parserBytesLeft?function(){return w(k,S,C,M)}:function(){var O=S.slice(0,k._parserBytesLeft);return w(k,O,C,function(D){return D?M(D):S.length>O.length?function(){return T(k,S.slice(O.length),C,M)}:void 0})}});function x(T){return function(){for(var k=T.apply(this,arguments);typeof k=="function";)k=k();return k}}},41633:function(i,o,a){var s=a(90386);function u(){var c;try{c=o.storage.debug}catch{}return!c&&s!==void 0&&"env"in s&&(c=s.env.DEBUG),c}(o=i.exports=a(74469)).log=function(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},o.formatArgs=function(c){var d=this.useColors;if(c[0]=(d?"%c":"")+this.namespace+(d?" %c":" ")+c[0]+(d?"%c ":" ")+"+"+o.humanize(this.diff),d){var f="color: "+this.color;c.splice(1,0,f,"color: inherit");var p=0,m=0;c[0].replace(/%[a-zA-Z%]/g,function(g){g!=="%%"&&(p++,g==="%c"&&(m=p))}),c.splice(m,0,f)}},o.save=function(c){try{c==null?o.storage.removeItem("debug"):o.storage.debug=c}catch{}},o.load=u,o.useColors=function(){return!(typeof window>"u"||!window.process||window.process.type!=="renderer")||typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},o.storage=typeof chrome<"u"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch{}}(),o.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],o.formatters.j=function(c){try{return JSON.stringify(c)}catch(d){return"[UnexpectedJSONParseError]: "+d.message}},o.enable(u())},74469:function(i,o,a){var s;function u(c){function d(){if(d.enabled){var f=d,p=+new Date,m=p-(s||p);f.diff=m,f.prev=s,f.curr=p,s=p;for(var g=new Array(arguments.length),b=0;b0)return function(g){if(!((g=String(g)).length>100)){var b=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(g);if(b){var v=parseFloat(b[1]);switch((b[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*v;case"days":case"day":case"d":return v*u;case"hours":case"hour":case"hrs":case"hr":case"h":return v*s;case"minutes":case"minute":case"mins":case"min":case"m":return v*a;case"seconds":case"second":case"secs":case"sec":case"s":return v*o;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return v;default:return}}}}(d);if(m==="number"&&isNaN(d)===!1)return f.long?c(p=d,u,"day")||c(p,s,"hour")||c(p,a,"minute")||c(p,o,"second")||p+" ms":function(g){return g>=u?Math.round(g/u)+"d":g>=s?Math.round(g/s)+"h":g>=a?Math.round(g/a)+"m":g>=o?Math.round(g/o)+"s":g+"ms"}(d);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(d))}},84267:function(i,o,a){var s;(function(u){var c=/^\s+/,d=/\s+$/,f=0,p=u.round,m=u.min,g=u.max,b=u.random;function v(G,X){if(X=X||{},(G=G||"")instanceof v)return G;if(!(this instanceof v))return new v(G,X);var Q=function(re){var ae,ie,se,he={r:0,g:0,b:0},Se=1,Oe=null,Pe=null,Me=null,ce=!1,we=!1;return typeof re=="string"&&(re=function(K){K=K.replace(c,"").replace(d,"").toLowerCase();var ne,de=!1;if(j[K])K=j[K],de=!0;else if(K=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(ne=H.rgb.exec(K))?{r:ne[1],g:ne[2],b:ne[3]}:(ne=H.rgba.exec(K))?{r:ne[1],g:ne[2],b:ne[3],a:ne[4]}:(ne=H.hsl.exec(K))?{h:ne[1],s:ne[2],l:ne[3]}:(ne=H.hsla.exec(K))?{h:ne[1],s:ne[2],l:ne[3],a:ne[4]}:(ne=H.hsv.exec(K))?{h:ne[1],s:ne[2],v:ne[3]}:(ne=H.hsva.exec(K))?{h:ne[1],s:ne[2],v:ne[3],a:ne[4]}:(ne=H.hex8.exec(K))?{r:q(ne[1]),g:q(ne[2]),b:q(ne[3]),a:U(ne[4]),format:de?"name":"hex8"}:(ne=H.hex6.exec(K))?{r:q(ne[1]),g:q(ne[2]),b:q(ne[3]),format:de?"name":"hex"}:(ne=H.hex4.exec(K))?{r:q(ne[1]+""+ne[1]),g:q(ne[2]+""+ne[2]),b:q(ne[3]+""+ne[3]),a:U(ne[4]+""+ne[4]),format:de?"name":"hex8"}:!!(ne=H.hex3.exec(K))&&{r:q(ne[1]+""+ne[1]),g:q(ne[2]+""+ne[2]),b:q(ne[3]+""+ne[3]),format:de?"name":"hex"}}(re)),typeof re=="object"&&(Z(re.r)&&Z(re.g)&&Z(re.b)?(ae=re.r,ie=re.g,se=re.b,he={r:255*N(ae,255),g:255*N(ie,255),b:255*N(se,255)},ce=!0,we=String(re.r).substr(-1)==="%"?"prgb":"rgb"):Z(re.h)&&Z(re.s)&&Z(re.v)?(Oe=L(re.s),Pe=L(re.v),he=function(K,ne,de){K=6*N(K,360),ne=N(ne,100),de=N(de,100);var _e=u.floor(K),ue=K-_e,pe=de*(1-ne),xe=de*(1-ue*ne),ye=de*(1-(1-ue)*ne),Te=_e%6;return{r:255*[de,xe,pe,pe,ye,de][Te],g:255*[ye,de,de,xe,pe,pe][Te],b:255*[pe,pe,ye,de,de,xe][Te]}}(re.h,Oe,Pe),ce=!0,we="hsv"):Z(re.h)&&Z(re.s)&&Z(re.l)&&(Oe=L(re.s),Me=L(re.l),he=function(K,ne,de){var _e,ue,pe;function xe(Ae,Re,Le){return Le<0&&(Le+=1),Le>1&&(Le-=1),Le<1/6?Ae+6*(Re-Ae)*Le:Le<.5?Re:Le<2/3?Ae+(Re-Ae)*(2/3-Le)*6:Ae}if(K=N(K,360),ne=N(ne,100),de=N(de,100),ne===0)_e=ue=pe=de;else{var ye=de<.5?de*(1+ne):de+ne-de*ne,Te=2*de-ye;_e=xe(Te,ye,K+1/3),ue=xe(Te,ye,K),pe=xe(Te,ye,K-1/3)}return{r:255*_e,g:255*ue,b:255*pe}}(re.h,Oe,Me),ce=!0,we="hsl"),re.hasOwnProperty("a")&&(Se=re.a)),Se=B(Se),{ok:ce,format:re.format||we,r:m(255,g(he.r,0)),g:m(255,g(he.g,0)),b:m(255,g(he.b,0)),a:Se}}(G);this._originalInput=G,this._r=Q.r,this._g=Q.g,this._b=Q.b,this._a=Q.a,this._roundA=p(100*this._a)/100,this._format=X.format||Q.format,this._gradientType=X.gradientType,this._r<1&&(this._r=p(this._r)),this._g<1&&(this._g=p(this._g)),this._b<1&&(this._b=p(this._b)),this._ok=Q.ok,this._tc_id=f++}function h(G,X,Q){G=N(G,255),X=N(X,255),Q=N(Q,255);var re,ae,ie=g(G,X,Q),se=m(G,X,Q),he=(ie+se)/2;if(ie==se)re=ae=0;else{var Se=ie-se;switch(ae=he>.5?Se/(2-ie-se):Se/(ie+se),ie){case G:re=(X-Q)/Se+(X>1)+720)%360;--X;)re.h=(re.h+ae)%360,ie.push(v(re));return ie}function F(G,X){X=X||6;for(var Q=v(G).toHsv(),re=Q.h,ae=Q.s,ie=Q.v,se=[],he=1/X;X--;)se.push(v({h:re,s:ae,v:ie})),ie=(ie+he)%1;return se}v.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var G=this.toRgb();return(299*G.r+587*G.g+114*G.b)/1e3},getLuminance:function(){var G,X,Q,re=this.toRgb();return G=re.r/255,X=re.g/255,Q=re.b/255,.2126*(G<=.03928?G/12.92:u.pow((G+.055)/1.055,2.4))+.7152*(X<=.03928?X/12.92:u.pow((X+.055)/1.055,2.4))+.0722*(Q<=.03928?Q/12.92:u.pow((Q+.055)/1.055,2.4))},setAlpha:function(G){return this._a=B(G),this._roundA=p(100*this._a)/100,this},toHsv:function(){var G=y(this._r,this._g,this._b);return{h:360*G.h,s:G.s,v:G.v,a:this._a}},toHsvString:function(){var G=y(this._r,this._g,this._b),X=p(360*G.h),Q=p(100*G.s),re=p(100*G.v);return this._a==1?"hsv("+X+", "+Q+"%, "+re+"%)":"hsva("+X+", "+Q+"%, "+re+"%, "+this._roundA+")"},toHsl:function(){var G=h(this._r,this._g,this._b);return{h:360*G.h,s:G.s,l:G.l,a:this._a}},toHslString:function(){var G=h(this._r,this._g,this._b),X=p(360*G.h),Q=p(100*G.s),re=p(100*G.l);return this._a==1?"hsl("+X+", "+Q+"%, "+re+"%)":"hsla("+X+", "+Q+"%, "+re+"%, "+this._roundA+")"},toHex:function(G){return w(this._r,this._g,this._b,G)},toHexString:function(G){return"#"+this.toHex(G)},toHex8:function(G){return function(X,Q,re,ae,ie){var se=[Y(p(X).toString(16)),Y(p(Q).toString(16)),Y(p(re).toString(16)),Y(W(ae))];return ie&&se[0].charAt(0)==se[0].charAt(1)&&se[1].charAt(0)==se[1].charAt(1)&&se[2].charAt(0)==se[2].charAt(1)&&se[3].charAt(0)==se[3].charAt(1)?se[0].charAt(0)+se[1].charAt(0)+se[2].charAt(0)+se[3].charAt(0):se.join("")}(this._r,this._g,this._b,this._a,G)},toHex8String:function(G){return"#"+this.toHex8(G)},toRgb:function(){return{r:p(this._r),g:p(this._g),b:p(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+p(this._r)+", "+p(this._g)+", "+p(this._b)+")":"rgba("+p(this._r)+", "+p(this._g)+", "+p(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:p(100*N(this._r,255))+"%",g:p(100*N(this._g,255))+"%",b:p(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+p(100*N(this._r,255))+"%, "+p(100*N(this._g,255))+"%, "+p(100*N(this._b,255))+"%)":"rgba("+p(100*N(this._r,255))+"%, "+p(100*N(this._g,255))+"%, "+p(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(z[w(this._r,this._g,this._b,!0)]||!1)},toFilter:function(G){var X="#"+_(this._r,this._g,this._b,this._a),Q=X,re=this._gradientType?"GradientType = 1, ":"";if(G){var ae=v(G);Q="#"+_(ae._r,ae._g,ae._b,ae._a)}return"progid:DXImageTransform.Microsoft.gradient("+re+"startColorstr="+X+",endColorstr="+Q+")"},toString:function(G){var X=!!G;G=G||this._format;var Q=!1,re=this._a<1&&this._a>=0;return X||!re||G!=="hex"&&G!=="hex6"&&G!=="hex3"&&G!=="hex4"&&G!=="hex8"&&G!=="name"?(G==="rgb"&&(Q=this.toRgbString()),G==="prgb"&&(Q=this.toPercentageRgbString()),G!=="hex"&&G!=="hex6"||(Q=this.toHexString()),G==="hex3"&&(Q=this.toHexString(!0)),G==="hex4"&&(Q=this.toHex8String(!0)),G==="hex8"&&(Q=this.toHex8String()),G==="name"&&(Q=this.toName()),G==="hsl"&&(Q=this.toHslString()),G==="hsv"&&(Q=this.toHsvString()),Q||this.toHexString()):G==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return v(this.toString())},_applyModification:function(G,X){var Q=G.apply(null,[this].concat([].slice.call(X)));return this._r=Q._r,this._g=Q._g,this._b=Q._b,this.setAlpha(Q._a),this},lighten:function(){return this._applyModification(S,arguments)},brighten:function(){return this._applyModification(C,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(x,arguments)},saturate:function(){return this._applyModification(T,arguments)},greyscale:function(){return this._applyModification(k,arguments)},spin:function(){return this._applyModification(O,arguments)},_applyCombination:function(G,X){return G.apply(null,[this].concat([].slice.call(X)))},analogous:function(){return this._applyCombination(A,arguments)},complement:function(){return this._applyCombination(D,arguments)},monochromatic:function(){return this._applyCombination(F,arguments)},splitcomplement:function(){return this._applyCombination(I,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(E,arguments)}},v.fromRatio=function(G,X){if(typeof G=="object"){var Q={};for(var re in G)G.hasOwnProperty(re)&&(Q[re]=re==="a"?G[re]:L(G[re]));G=Q}return v(G,X)},v.equals=function(G,X){return!(!G||!X)&&v(G).toRgbString()==v(X).toRgbString()},v.random=function(){return v.fromRatio({r:b(),g:b(),b:b()})},v.mix=function(G,X,Q){Q=Q===0?0:Q||50;var re=v(G).toRgb(),ae=v(X).toRgb(),ie=Q/100;return v({r:(ae.r-re.r)*ie+re.r,g:(ae.g-re.g)*ie+re.g,b:(ae.b-re.b)*ie+re.b,a:(ae.a-re.a)*ie+re.a})},v.readability=function(G,X){var Q=v(G),re=v(X);return(u.max(Q.getLuminance(),re.getLuminance())+.05)/(u.min(Q.getLuminance(),re.getLuminance())+.05)},v.isReadable=function(G,X,Q){var re,ae,ie,se,he,Se=v.readability(G,X);switch(ae=!1,(ie=Q,(se=((ie=ie||{level:"AA",size:"small"}).level||"AA").toUpperCase())!=="AA"&&se!=="AAA"&&(se="AA"),(he=(ie.size||"small").toLowerCase())!=="small"&&he!=="large"&&(he="small"),re={level:se,size:he}).level+re.size){case"AAsmall":case"AAAlarge":ae=Se>=4.5;break;case"AAlarge":ae=Se>=3;break;case"AAAsmall":ae=Se>=7}return ae},v.mostReadable=function(G,X,Q){var re,ae,ie,se,he=null,Se=0;ae=(Q=Q||{}).includeFallbackColors,ie=Q.level,se=Q.size;for(var Oe=0;OeSe&&(Se=re,he=v(X[Oe]));return v.isReadable(G,he,{level:ie,size:se})||!ae?he:(Q.includeFallbackColors=!1,v.mostReadable(G,["#fff","#000"],Q))};var j=v.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},z=v.hexNames=function(G){var X={};for(var Q in G)G.hasOwnProperty(Q)&&(X[G[Q]]=Q);return X}(j);function B(G){return G=parseFloat(G),(isNaN(G)||G<0||G>1)&&(G=1),G}function N(G,X){(function(re){return typeof re=="string"&&re.indexOf(".")!=-1&&parseFloat(re)===1})(G)&&(G="100%");var Q=function(re){return typeof re=="string"&&re.indexOf("%")!=-1}(G);return G=m(X,g(0,parseFloat(G))),Q&&(G=parseInt(G*X,10)/100),u.abs(G-X)<1e-6?1:G%X/parseFloat(X)}function R(G){return m(1,g(0,G))}function q(G){return parseInt(G,16)}function Y(G){return G.length==1?"0"+G:""+G}function L(G){return G<=1&&(G=100*G+"%"),G}function W(G){return u.round(255*parseFloat(G)).toString(16)}function U(G){return q(G)/255}var V,te,ee,H=(te="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",ee="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+te),rgba:new RegExp("rgba"+ee),hsl:new RegExp("hsl"+te),hsla:new RegExp("hsla"+ee),hsv:new RegExp("hsv"+te),hsva:new RegExp("hsva"+ee),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function Z(G){return!!H.CSS_UNIT.exec(G)}i.exports?i.exports=v:(s=(function(){return v}).call(o,a,o,i))===void 0||(i.exports=s)})(Math)},20588:function(i,o,a){function s(u){try{if(!a.g.localStorage)return!1}catch{return!1}var c=a.g.localStorage[u];return c!=null&&String(c).toLowerCase()==="true"}i.exports=function(u,c){if(s("noDeprecation"))return u;var d=!1;return function(){if(!d){if(s("throwDeprecation"))throw new Error(c);s("traceDeprecation")?console.trace(c):console.warn(c),d=!0}return u.apply(this,arguments)}}},45920:function(i){i.exports=function(o){return o&&typeof o=="object"&&typeof o.copy=="function"&&typeof o.fill=="function"&&typeof o.readUInt8=="function"}},4936:function(i,o,a){var s=a(47216),u=a(65481),c=a(21099),d=a(9187);function f(N){return N.call.bind(N)}var p=typeof BigInt<"u",m=typeof Symbol<"u",g=f(Object.prototype.toString),b=f(Number.prototype.valueOf),v=f(String.prototype.valueOf),h=f(Boolean.prototype.valueOf);if(p)var y=f(BigInt.prototype.valueOf);if(m)var w=f(Symbol.prototype.valueOf);function _(N,R){if(typeof N!="object")return!1;try{return R(N),!0}catch{return!1}}function x(N){return g(N)==="[object Map]"}function T(N){return g(N)==="[object Set]"}function k(N){return g(N)==="[object WeakMap]"}function S(N){return g(N)==="[object WeakSet]"}function C(N){return g(N)==="[object ArrayBuffer]"}function M(N){return typeof ArrayBuffer<"u"&&(C.working?C(N):N instanceof ArrayBuffer)}function O(N){return g(N)==="[object DataView]"}function D(N){return typeof DataView<"u"&&(O.working?O(N):N instanceof DataView)}o.isArgumentsObject=s,o.isGeneratorFunction=u,o.isTypedArray=d,o.isPromise=function(N){return typeof Promise<"u"&&N instanceof Promise||N!==null&&typeof N=="object"&&typeof N.then=="function"&&typeof N.catch=="function"},o.isArrayBufferView=function(N){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(N):d(N)||D(N)},o.isUint8Array=function(N){return c(N)==="Uint8Array"},o.isUint8ClampedArray=function(N){return c(N)==="Uint8ClampedArray"},o.isUint16Array=function(N){return c(N)==="Uint16Array"},o.isUint32Array=function(N){return c(N)==="Uint32Array"},o.isInt8Array=function(N){return c(N)==="Int8Array"},o.isInt16Array=function(N){return c(N)==="Int16Array"},o.isInt32Array=function(N){return c(N)==="Int32Array"},o.isFloat32Array=function(N){return c(N)==="Float32Array"},o.isFloat64Array=function(N){return c(N)==="Float64Array"},o.isBigInt64Array=function(N){return c(N)==="BigInt64Array"},o.isBigUint64Array=function(N){return c(N)==="BigUint64Array"},x.working=typeof Map<"u"&&x(new Map),o.isMap=function(N){return typeof Map<"u"&&(x.working?x(N):N instanceof Map)},T.working=typeof Set<"u"&&T(new Set),o.isSet=function(N){return typeof Set<"u"&&(T.working?T(N):N instanceof Set)},k.working=typeof WeakMap<"u"&&k(new WeakMap),o.isWeakMap=function(N){return typeof WeakMap<"u"&&(k.working?k(N):N instanceof WeakMap)},S.working=typeof WeakSet<"u"&&S(new WeakSet),o.isWeakSet=function(N){return S(N)},C.working=typeof ArrayBuffer<"u"&&C(new ArrayBuffer),o.isArrayBuffer=M,O.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&O(new DataView(new ArrayBuffer(1),0,1)),o.isDataView=D;var P=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function E(N){return g(N)==="[object SharedArrayBuffer]"}function I(N){return P!==void 0&&(E.working===void 0&&(E.working=E(new P)),E.working?E(N):N instanceof P)}function A(N){return _(N,b)}function F(N){return _(N,v)}function j(N){return _(N,h)}function z(N){return p&&_(N,y)}function B(N){return m&&_(N,w)}o.isSharedArrayBuffer=I,o.isAsyncFunction=function(N){return g(N)==="[object AsyncFunction]"},o.isMapIterator=function(N){return g(N)==="[object Map Iterator]"},o.isSetIterator=function(N){return g(N)==="[object Set Iterator]"},o.isGeneratorObject=function(N){return g(N)==="[object Generator]"},o.isWebAssemblyCompiledModule=function(N){return g(N)==="[object WebAssembly.Module]"},o.isNumberObject=A,o.isStringObject=F,o.isBooleanObject=j,o.isBigIntObject=z,o.isSymbolObject=B,o.isBoxedPrimitive=function(N){return A(N)||F(N)||j(N)||z(N)||B(N)},o.isAnyArrayBuffer=function(N){return typeof Uint8Array<"u"&&(M(N)||I(N))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(N){Object.defineProperty(o,N,{enumerable:!1,value:function(){throw new Error(N+" is not supported in userland")}})})},43827:function(i,o,a){var s=a(90386),u=Object.getOwnPropertyDescriptors||function(B){for(var N=Object.keys(B),R={},q=0;q=Y)return U;switch(U){case"%s":return String(q[R++]);case"%d":return Number(q[R++]);case"%j":try{return JSON.stringify(q[R++])}catch{return"[Circular]"}default:return U}}),W=q[R];R=3&&(R.depth=arguments[2]),arguments.length>=4&&(R.colors=arguments[3]),_(N)?R.showHidden=N:N&&o._extend(R,N),S(R.showHidden)&&(R.showHidden=!1),S(R.depth)&&(R.depth=2),S(R.colors)&&(R.colors=!1),S(R.customInspect)&&(R.customInspect=!0),R.colors&&(R.stylize=g),v(R,B,R.depth)}function g(B,N){var R=m.styles[N];return R?"\x1B["+m.colors[R][0]+"m"+B+"\x1B["+m.colors[R][1]+"m":B}function b(B,N){return B}function v(B,N,R){if(B.customInspect&&N&&P(N.inspect)&&N.inspect!==o.inspect&&(!N.constructor||N.constructor.prototype!==N)){var q=N.inspect(R,B);return k(q)||(q=v(B,q,R)),q}var Y=function(Z,G){if(S(G))return Z.stylize("undefined","undefined");if(k(G)){var X="'"+JSON.stringify(G).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Z.stylize(X,"string")}return T(G)?Z.stylize(""+G,"number"):_(G)?Z.stylize(""+G,"boolean"):x(G)?Z.stylize("null","null"):void 0}(B,N);if(Y)return Y;var L=Object.keys(N),W=function(Z){var G={};return Z.forEach(function(X,Q){G[X]=!0}),G}(L);if(B.showHidden&&(L=Object.getOwnPropertyNames(N)),D(N)&&(L.indexOf("message")>=0||L.indexOf("description")>=0))return h(N);if(L.length===0){if(P(N)){var U=N.name?": "+N.name:"";return B.stylize("[Function"+U+"]","special")}if(C(N))return B.stylize(RegExp.prototype.toString.call(N),"regexp");if(O(N))return B.stylize(Date.prototype.toString.call(N),"date");if(D(N))return h(N)}var V,te="",ee=!1,H=["{","}"];return w(N)&&(ee=!0,H=["[","]"]),P(N)&&(te=" [Function"+(N.name?": "+N.name:"")+"]"),C(N)&&(te=" "+RegExp.prototype.toString.call(N)),O(N)&&(te=" "+Date.prototype.toUTCString.call(N)),D(N)&&(te=" "+h(N)),L.length!==0||ee&&N.length!=0?R<0?C(N)?B.stylize(RegExp.prototype.toString.call(N),"regexp"):B.stylize("[Object]","special"):(B.seen.push(N),V=ee?function(Z,G,X,Q,re){for(var ae=[],ie=0,se=G.length;ie60?X[0]+(G===""?"":G+` - `)+" "+Z.join(`, - `)+" "+X[1]:X[0]+G+" "+Z.join(", ")+" "+X[1]}(V,te,H)):H[0]+te+H[1]}function h(B){return"["+Error.prototype.toString.call(B)+"]"}function y(B,N,R,q,Y,L){var W,U,V;if((V=Object.getOwnPropertyDescriptor(N,Y)||{value:N[Y]}).get?U=V.set?B.stylize("[Getter/Setter]","special"):B.stylize("[Getter]","special"):V.set&&(U=B.stylize("[Setter]","special")),F(q,Y)||(W="["+Y+"]"),U||(B.seen.indexOf(V.value)<0?(U=x(R)?v(B,V.value,null):v(B,V.value,R-1)).indexOf(` -`)>-1&&(U=L?U.split(` +`),f=s("IHDR");i.exports=function(p){if(!(p.length<24)&&u(p,0,d)&&u(p,12,f))return{width:c(p,16),height:c(p,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}},38689:function(i,o,a){var s=a(14847).eG,u=a(14847).OF,c=a(14847).Ag,d=s("8BPS\0");i.exports=function(f){if(!(f.length<22)&&u(f,0,d))return{width:c(f,18),height:c(f,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}},6881:function(i){function o(h){return typeof h=="number"&&isFinite(h)&&h>0}var a=/<[-_.:a-zA-Z0-9][^>]*>/,s=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,u=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,c=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,d=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,f=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function p(h){return f.test(h)?h.match(f)[0]:"px"}i.exports=function(h){if(function(T){var M,O=0,D=T.length;for(T[0]===239&&T[1]===187&&T[2]===191&&(O=3);O>14&16383),type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function v(m,y){return{width:1+(m[y+6]<<16|m[y+5]<<8|m[y+4]),height:1+(m[y+9]<m.length)){for(;y+8=10?x=x||g(m,y+8):S==="VP8L"&&k>=9?x=x||b(m,y+8):S==="VP8X"&&k>=10?x=x||v(m,y+8):S==="EXIF"&&(_=f.get_orientation(m.slice(y+8,y+8+k)),y=1/0),y+=8+k}else y++;if(x)return _>0&&(x.orientation=_),x}}}},91497:function(i,o,a){i.exports={avif:a(24461),bmp:a(2504),gif:a(47342),ico:a(31355),jpeg:a(54261),png:a(6303),psd:a(38689),svg:a(6881),tiff:a(66278),webp:a(90784)}},33575:function(i,o,a){var s=a(91497);i.exports=function(u){return function(c){for(var d=Object.keys(s),f=0;f1)for(var w=1;w2?"one of ".concat(c," ").concat(u.slice(0,d-1).join(", "),", or ")+u[d-1]:d===2?"one of ".concat(c," ").concat(u[0]," or ").concat(u[1]):"of ".concat(c," ").concat(u[0])}return"of ".concat(c," ").concat(String(u))}a("ERR_INVALID_OPT_VALUE",function(u,c){return'The value "'+c+'" is invalid for option "'+u+'"'},TypeError),a("ERR_INVALID_ARG_TYPE",function(u,c,d){var f,p,h,g,b;if(typeof c=="string"&&(p="not ",c.substr(0,4)===p)?(f="must not be",c=c.replace(/^not /,"")):f="must be",function(m,y,x){return(x===void 0||x>m.length)&&(x=m.length),m.substring(x-9,x)===y}(u," argument"))h="The ".concat(u," ").concat(f," ").concat(s(c,"type"));else{var v=(typeof b!="number"&&(b=0),b+1>(g=u).length||g.indexOf(".",b)===-1?"argument":"property");h='The "'.concat(u,'" ').concat(v," ").concat(f," ").concat(s(c,"type"))}return h+". Received type ".concat(typeof d)},TypeError),a("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),a("ERR_METHOD_NOT_IMPLEMENTED",function(u){return"The "+u+" method is not implemented"}),a("ERR_STREAM_PREMATURE_CLOSE","Premature close"),a("ERR_STREAM_DESTROYED",function(u){return"Cannot call "+u+" after a stream was destroyed"}),a("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),a("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),a("ERR_STREAM_WRITE_AFTER_END","write after end"),a("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),a("ERR_UNKNOWN_ENCODING",function(u){return"Unknown encoding: "+u},TypeError),a("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),i.exports.q=o},37865:function(i,o,a){var s=a(90386),u=Object.keys||function(m){var y=[];for(var x in m)y.push(x);return y};i.exports=g;var c=a(40410),d=a(37493);a(42018)(g,c);for(var f=u(d.prototype),p=0;p0)if(typeof U=="string"||ne.objectMode||Object.getPrototypeOf(U)===p.prototype||(U=function(ae){return p.from(ae)}(U)),V)ne.endEmitted?M(ee,new T):I(ee,ne,U,!0);else if(ne.ended)M(ee,new k);else{if(ne.destroyed)return!1;ne.reading=!1,ne.decoder&&!Q?(U=ne.decoder.write(U),ne.objectMode||U.length!==0?I(ee,ne,U,!1):z(ee,ne)):I(ee,ne,U,!1)}else V||(ne.reading=!1,z(ee,ne));return!ne.ended&&(ne.lengthU.highWaterMark&&(U.highWaterMark=function(Q){return Q>=A?Q=A:(Q--,Q|=Q>>>1,Q|=Q>>>2,Q|=Q>>>4,Q|=Q>>>8,Q|=Q>>>16,Q++),Q}(ee)),ee<=U.length?ee:U.ended?U.length:(U.needReadable=!0,0))}function j(ee){var U=ee._readableState;c("emitReadable",U.needReadable,U.emittedReadable),U.needReadable=!1,U.emittedReadable||(c("emitReadable",U.flowing),U.emittedReadable=!0,u.nextTick(B,ee))}function B(ee){var U=ee._readableState;c("emitReadable_",U.destroyed,U.length,U.ended),U.destroyed||!U.length&&!U.ended||(ee.emit("readable"),U.emittedReadable=!1),U.needReadable=!U.flowing&&!U.ended&&U.length<=U.highWaterMark,L(ee)}function z(ee,U){U.readingMore||(U.readingMore=!0,u.nextTick(N,ee,U))}function N(ee,U){for(;!U.reading&&!U.ended&&(U.length0,U.resumeScheduled&&!U.paused?U.flowing=!0:ee.listenerCount("data")>0&&ee.resume()}function q(ee){c("readable nexttick read 0"),ee.read(0)}function Y(ee,U){c("resume",U.reading),U.reading||ee.read(0),U.resumeScheduled=!1,ee.emit("resume"),L(ee),U.flowing&&!U.reading&&ee.read(0)}function L(ee){var U=ee._readableState;for(c("flow",U.flowing);U.flowing&&ee.read()!==null;);}function W(ee,U){return U.length===0?null:(U.objectMode?Q=U.buffer.shift():!ee||ee>=U.length?(Q=U.decoder?U.buffer.join(""):U.buffer.length===1?U.buffer.first():U.buffer.concat(U.length),U.buffer.clear()):Q=U.buffer.consume(ee,U.decoder),Q);var Q}function H(ee){var U=ee._readableState;c("endReadable",U.endEmitted),U.endEmitted||(U.ended=!0,u.nextTick(G,U,ee))}function G(ee,U){if(c("endReadableNT",ee.endEmitted,ee.length),!ee.endEmitted&&ee.length===0&&(ee.endEmitted=!0,U.readable=!1,U.emit("end"),ee.autoDestroy)){var Q=U._writableState;(!Q||Q.autoDestroy&&Q.finished)&&U.destroy()}}function te(ee,U){for(var Q=0,V=ee.length;Q=U.highWaterMark:U.length>0)||U.ended))return c("read: emitReadable",U.length,U.ended),U.length===0&&U.ended?H(this):j(this),null;if((ee=F(ee,U))===0&&U.ended)return U.length===0&&H(this),null;var V,X=U.needReadable;return c("need readable",X),(U.length===0||U.length-ee0?W(ee,U):null)===null?(U.needReadable=U.length<=U.highWaterMark,ee=0):(U.length-=ee,U.awaitDrain=0),U.length===0&&(U.ended||(U.needReadable=!0),Q!==ee&&U.ended&&H(this)),V!==null&&this.emit("data",V),V},P.prototype._read=function(ee){M(this,new C("_read()"))},P.prototype.pipe=function(ee,U){var Q=this,V=this._readableState;switch(V.pipesCount){case 0:V.pipes=ee;break;case 1:V.pipes=[V.pipes,ee];break;default:V.pipes.push(ee)}V.pipesCount+=1,c("pipe count=%d opts=%j",V.pipesCount,U);var X=U&&U.end===!1||ee===u.stdout||ee===u.stderr?Ce:K;function K(){c("onend"),ee.end()}V.endEmitted?u.nextTick(X):Q.once("end",X),ee.on("unpipe",function Oe(Pe,ce){c("onunpipe"),Pe===Q&&ce&&ce.hasUnpiped===!1&&(ce.hasUnpiped=!0,c("cleanup"),ee.removeListener("close",pe),ee.removeListener("finish",ke),ee.removeListener("drain",ne),ee.removeListener("error",se),ee.removeListener("unpipe",Oe),Q.removeListener("end",K),Q.removeListener("end",Ce),Q.removeListener("data",ie),ae=!0,!V.awaitDrain||ee._writableState&&!ee._writableState.needDrain||ne())});var ne=function(Oe){return function(){var Pe=Oe._readableState;c("pipeOnDrain",Pe.awaitDrain),Pe.awaitDrain&&Pe.awaitDrain--,Pe.awaitDrain===0&&d(Oe,"data")&&(Pe.flowing=!0,L(Oe))}}(Q);ee.on("drain",ne);var ae=!1;function ie(Oe){c("ondata");var Pe=ee.write(Oe);c("dest.write",Pe),Pe===!1&&((V.pipesCount===1&&V.pipes===ee||V.pipesCount>1&&te(V.pipes,ee)!==-1)&&!ae&&(c("false write response, pause",V.awaitDrain),V.awaitDrain++),Q.pause())}function se(Oe){c("onerror",Oe),Ce(),ee.removeListener("error",se),d(ee,"error")===0&&M(ee,Oe)}function pe(){ee.removeListener("finish",ke),Ce()}function ke(){c("onfinish"),ee.removeListener("close",pe),Ce()}function Ce(){c("unpipe"),Q.unpipe(ee)}return Q.on("data",ie),function(Oe,Pe,ce){if(typeof Oe.prependListener=="function")return Oe.prependListener(Pe,ce);Oe._events&&Oe._events[Pe]?Array.isArray(Oe._events[Pe])?Oe._events[Pe].unshift(ce):Oe._events[Pe]=[ce,Oe._events[Pe]]:Oe.on(Pe,ce)}(ee,"error",se),ee.once("close",pe),ee.once("finish",ke),ee.emit("pipe",Q),V.flowing||(c("pipe resume"),Q.resume()),ee},P.prototype.unpipe=function(ee){var U=this._readableState,Q={hasUnpiped:!1};if(U.pipesCount===0)return this;if(U.pipesCount===1)return ee&&ee!==U.pipes||(ee||(ee=U.pipes),U.pipes=null,U.pipesCount=0,U.flowing=!1,ee&&ee.emit("unpipe",this,Q)),this;if(!ee){var V=U.pipes,X=U.pipesCount;U.pipes=null,U.pipesCount=0,U.flowing=!1;for(var K=0;K0,V.flowing!==!1&&this.resume()):ee==="readable"&&(V.endEmitted||V.readableListening||(V.readableListening=V.needReadable=!0,V.flowing=!1,V.emittedReadable=!1,c("on readable",V.length,V.reading),V.length?j(this):V.reading||u.nextTick(q,this))),Q},P.prototype.addListener=P.prototype.on,P.prototype.removeListener=function(ee,U){var Q=f.prototype.removeListener.call(this,ee,U);return ee==="readable"&&u.nextTick(R,this),Q},P.prototype.removeAllListeners=function(ee){var U=f.prototype.removeAllListeners.apply(this,arguments);return ee!=="readable"&&ee!==void 0||u.nextTick(R,this),U},P.prototype.resume=function(){var ee=this._readableState;return ee.flowing||(c("resume"),ee.flowing=!ee.readableListening,function(U,Q){Q.resumeScheduled||(Q.resumeScheduled=!0,u.nextTick(Y,U,Q))}(this,ee)),ee.paused=!1,this},P.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},P.prototype.wrap=function(ee){var U=this,Q=this._readableState,V=!1;for(var X in ee.on("end",function(){if(c("wrapped end"),Q.decoder&&!Q.ended){var ne=Q.decoder.end();ne&&ne.length&&U.push(ne)}U.push(null)}),ee.on("data",function(ne){c("wrapped data"),Q.decoder&&(ne=Q.decoder.write(ne)),Q.objectMode&&ne==null||(Q.objectMode||ne&&ne.length)&&(U.push(ne)||(V=!0,ee.pause()))}),ee)this[X]===void 0&&typeof ee[X]=="function"&&(this[X]=function(ne){return function(){return ee[ne].apply(ee,arguments)}}(X));for(var K=0;K-1))throw new T(z);return this._writableState.defaultEncoding=z,this},Object.defineProperty(P.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),P.prototype._write=function(z,N,R){R(new x("_write()"))},P.prototype._writev=null,P.prototype.end=function(z,N,R){var q=this._writableState;return typeof z=="function"?(R=z,z=null,N=null):typeof N=="function"&&(R=N,N=null),z!=null&&this.write(z,N),q.corked&&(q.corked=1,this.uncork()),q.ending||function(Y,L,W){L.ending=!0,B(Y,L),W&&(L.finished?u.nextTick(W):Y.once("finish",W)),L.ended=!0,Y.writable=!1}(this,q,R),this},Object.defineProperty(P.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(z){this._writableState&&(this._writableState.destroyed=z)}}),P.prototype.destroy=b.destroy,P.prototype._undestroy=b.undestroy,P.prototype._destroy=function(z,N){N(z)}},68221:function(i,o,a){var s,u=a(90386);function c(k,C,T){return C in k?Object.defineProperty(k,C,{value:T,enumerable:!0,configurable:!0,writable:!0}):k[C]=T,k}var d=a(12726),f=Symbol("lastResolve"),p=Symbol("lastReject"),h=Symbol("error"),g=Symbol("ended"),b=Symbol("lastPromise"),v=Symbol("handlePromise"),m=Symbol("stream");function y(k,C){return{value:k,done:C}}function x(k){var C=k[f];if(C!==null){var T=k[m].read();T!==null&&(k[b]=null,k[f]=null,k[p]=null,C(y(T,!1)))}}function _(k){u.nextTick(x,k)}var w=Object.getPrototypeOf(function(){}),S=Object.setPrototypeOf((c(s={get stream(){return this[m]},next:function(){var k=this,C=this[h];if(C!==null)return Promise.reject(C);if(this[g])return Promise.resolve(y(void 0,!0));if(this[m].destroyed)return new Promise(function(D,P){u.nextTick(function(){k[h]?P(k[h]):D(y(void 0,!0))})});var T,M=this[b];if(M)T=new Promise(function(D,P){return function(E,I){D.then(function(){P[g]?E(y(void 0,!0)):P[v](E,I)},I)}}(M,this));else{var O=this[m].read();if(O!==null)return Promise.resolve(y(O,!1));T=new Promise(this[v])}return this[b]=T,T}},Symbol.asyncIterator,function(){return this}),c(s,"return",function(){var k=this;return new Promise(function(C,T){k[m].destroy(null,function(M){M?T(M):C(y(void 0,!0))})})}),s),w);i.exports=function(k){var C,T=Object.create(S,(c(C={},m,{value:k,writable:!0}),c(C,f,{value:null,writable:!0}),c(C,p,{value:null,writable:!0}),c(C,h,{value:null,writable:!0}),c(C,g,{value:k._readableState.endEmitted,writable:!0}),c(C,v,{value:function(M,O){var D=T[m].read();D?(T[b]=null,T[f]=null,T[p]=null,M(y(D,!1))):(T[f]=M,T[p]=O)},writable:!0}),C));return T[b]=null,d(k,function(M){if(M&&M.code!=="ERR_STREAM_PREMATURE_CLOSE"){var O=T[p];return O!==null&&(T[b]=null,T[f]=null,T[p]=null,O(M)),void(T[h]=M)}var D=T[f];D!==null&&(T[b]=null,T[f]=null,T[p]=null,D(y(void 0,!0))),T[g]=!0}),k.on("readable",_.bind(null,T)),T}},31125:function(i,o,a){function s(h,g){var b=Object.keys(h);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(h);g&&(v=v.filter(function(m){return Object.getOwnPropertyDescriptor(h,m).enumerable})),b.push.apply(b,v)}return b}function u(h,g,b){return g in h?Object.defineProperty(h,g,{value:b,enumerable:!0,configurable:!0,writable:!0}):h[g]=b,h}function c(h,g){for(var b=0;b0?this.tail.next=m:this.head=m,this.tail=m,++this.length}},{key:"unshift",value:function(v){var m={data:v,next:this.head};this.length===0&&(this.tail=m),this.head=m,++this.length}},{key:"shift",value:function(){if(this.length!==0){var v=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,v}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(v){if(this.length===0)return"";for(var m=this.head,y=""+m.data;m=m.next;)y+=v+m.data;return y}},{key:"concat",value:function(v){if(this.length===0)return d.alloc(0);for(var m,y,x,_=d.allocUnsafe(v>>>0),w=this.head,S=0;w;)m=w.data,y=_,x=S,d.prototype.copy.call(m,y,x),S+=w.data.length,w=w.next;return _}},{key:"consume",value:function(v,m){var y;return v_.length?_.length:v;if(w===_.length?x+=_:x+=_.slice(0,v),(v-=w)==0){w===_.length?(++y,m.next?this.head=m.next:this.head=this.tail=null):(this.head=m,m.data=_.slice(w));break}++y}return this.length-=y,x}},{key:"_getBuffer",value:function(v){var m=d.allocUnsafe(v),y=this.head,x=1;for(y.data.copy(m),v-=y.data.length;y=y.next;){var _=y.data,w=v>_.length?_.length:v;if(_.copy(m,m.length-v,0,w),(v-=w)==0){w===_.length?(++x,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=_.slice(w));break}++x}return this.length-=x,m}},{key:p,value:function(v,m){return f(this,function(y){for(var x=1;x0,function(k){m||(m=k),k&&x.forEach(p),S||(x.forEach(p),y(m))})});return b.reduce(h)}},56306:function(i,o,a){var s=a(74322).q.ERR_INVALID_OPT_VALUE;i.exports={getHighWaterMark:function(u,c,d,f){var p=function(h,g,b){return h.highWaterMark!=null?h.highWaterMark:g?h[b]:null}(c,f,d);if(p!=null){if(!isFinite(p)||Math.floor(p)!==p||p<0)throw new s(f?d:"highWaterMark",p);return Math.floor(p)}return u.objectMode?16:16384}}},71405:function(i,o,a){i.exports=a(15398).EventEmitter},68019:function(i,o,a){var s=a(71665).Buffer,u=s.isEncoding||function(y){switch((y=""+y)&&y.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function c(y){var x;switch(this.encoding=function(_){var w=function(S){if(!S)return"utf8";for(var k;;)switch(S){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return S;default:if(k)return;S=(""+S).toLowerCase(),k=!0}}(_);if(typeof w!="string"&&(s.isEncoding===u||!u(_)))throw new Error("Unknown encoding: "+_);return w||_}(y),this.encoding){case"utf16le":this.text=p,this.end=h,x=4;break;case"utf8":this.fillLast=f,x=4;break;case"base64":this.text=g,this.end=b,x=3;break;default:return this.write=v,void(this.end=m)}this.lastNeed=0,this.lastTotal=0,this.lastChar=s.allocUnsafe(x)}function d(y){return y<=127?0:y>>5==6?2:y>>4==14?3:y>>3==30?4:y>>6==2?-1:-2}function f(y){var x=this.lastTotal-this.lastNeed,_=function(w,S,k){if((192&S[0])!=128)return w.lastNeed=0,"�";if(w.lastNeed>1&&S.length>1){if((192&S[1])!=128)return w.lastNeed=1,"�";if(w.lastNeed>2&&S.length>2&&(192&S[2])!=128)return w.lastNeed=2,"�"}}(this,y);return _!==void 0?_:this.lastNeed<=y.length?(y.copy(this.lastChar,x,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(y.copy(this.lastChar,x,0,y.length),void(this.lastNeed-=y.length))}function p(y,x){if((y.length-x)%2==0){var _=y.toString("utf16le",x);if(_){var w=_.charCodeAt(_.length-1);if(w>=55296&&w<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1],_.slice(0,-1)}return _}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=y[y.length-1],y.toString("utf16le",x,y.length-1)}function h(y){var x=y&&y.length?this.write(y):"";if(this.lastNeed){var _=this.lastTotal-this.lastNeed;return x+this.lastChar.toString("utf16le",0,_)}return x}function g(y,x){var _=(y.length-x)%3;return _===0?y.toString("base64",x):(this.lastNeed=3-_,this.lastTotal=3,_===1?this.lastChar[0]=y[y.length-1]:(this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1]),y.toString("base64",x,y.length-_))}function b(y){var x=y&&y.length?this.write(y):"";return this.lastNeed?x+this.lastChar.toString("base64",0,3-this.lastNeed):x}function v(y){return y.toString(this.encoding)}function m(y){return y&&y.length?this.write(y):""}o.s=c,c.prototype.write=function(y){if(y.length===0)return"";var x,_;if(this.lastNeed){if((x=this.fillLast(y))===void 0)return"";_=this.lastNeed,this.lastNeed=0}else _=0;return _=0?(M>0&&(S.lastNeed=M-1),M):--T=0?(M>0&&(S.lastNeed=M-2),M):--T=0?(M>0&&(M===2?M=0:S.lastNeed=M-3),M):0}(this,y,x);if(!this.lastNeed)return y.toString("utf8",x);this.lastTotal=_;var w=y.length-(_-this.lastNeed);return y.copy(this.lastChar,0,w),y.toString("utf8",x,w)},c.prototype.fillLast=function(y){if(this.lastNeed<=y.length)return y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,y.length),this.lastNeed-=y.length}},90715:function(i,o,a){var s=a(32791),u=a(41633)("stream-parser");i.exports=function(S){var k=S&&typeof S._transform=="function",C=S&&typeof S._write=="function";if(!k&&!C)throw new Error("must pass a Writable or Transform stream in");u("extending Parser into stream"),S._bytes=g,S._skipBytes=b,k&&(S._passthrough=v),k?S._transform=y:S._write=m};var c=-1,d=0,f=1,p=2;function h(S){u("initializing parser stream"),S._parserBytesLeft=0,S._parserBuffers=[],S._parserBuffered=0,S._parserState=c,S._parserCallback=null,typeof S.push=="function"&&(S._parserOutput=S.push.bind(S)),S._parserInit=!0}function g(S,k){s(!this._parserCallback,'there is already a "callback" set!'),s(isFinite(S)&&S>0,'can only buffer a finite number of bytes > 0, got "'+S+'"'),this._parserInit||h(this),u("buffering %o bytes",S),this._parserBytesLeft=S,this._parserCallback=k,this._parserState=d}function b(S,k){s(!this._parserCallback,'there is already a "callback" set!'),s(S>0,'can only skip > 0 bytes, got "'+S+'"'),this._parserInit||h(this),u("skipping %o bytes",S),this._parserBytesLeft=S,this._parserCallback=k,this._parserState=f}function v(S,k){s(!this._parserCallback,'There is already a "callback" set!'),s(S>0,'can only pass through > 0 bytes, got "'+S+'"'),this._parserInit||h(this),u("passing through %o bytes",S),this._parserBytesLeft=S,this._parserCallback=k,this._parserState=p}function m(S,k,C){this._parserInit||h(this),u("write(%o bytes)",S.length),typeof k=="function"&&(C=k),_(this,S,null,C)}function y(S,k,C){this._parserInit||h(this),u("transform(%o bytes)",S.length),typeof k!="function"&&(k=this._parserOutput),_(this,S,k,C)}function x(S,k,C,T){if(S._parserBytesLeft-=k.length,u("%o bytes left for stream piece",S._parserBytesLeft),S._parserState===d?(S._parserBuffers.push(k),S._parserBuffered+=k.length):S._parserState===p&&C(k),S._parserBytesLeft!==0)return T;var M=S._parserCallback;if(M&&S._parserState===d&&S._parserBuffers.length>1&&(k=Buffer.concat(S._parserBuffers,S._parserBuffered)),S._parserState!==d&&(k=null),S._parserCallback=null,S._parserBuffered=0,S._parserState=c,S._parserBuffers.splice(0),M){var O=[];k&&O.push(k),C&&O.push(C);var D=M.length>O.length;D&&O.push(w(T));var P=M.apply(S,O);if(!D||T===P)return T}}var _=w(function S(k,C,T,M){return k._parserBytesLeft<=0?M(new Error("got data but not currently parsing anything")):C.length<=k._parserBytesLeft?function(){return x(k,C,T,M)}:function(){var O=C.slice(0,k._parserBytesLeft);return x(k,O,T,function(D){return D?M(D):C.length>O.length?function(){return S(k,C.slice(O.length),T,M)}:void 0})}});function w(S){return function(){for(var k=S.apply(this,arguments);typeof k=="function";)k=k();return k}}},41633:function(i,o,a){var s=a(90386);function u(){var c;try{c=o.storage.debug}catch{}return!c&&s!==void 0&&"env"in s&&(c=s.env.DEBUG),c}(o=i.exports=a(74469)).log=function(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},o.formatArgs=function(c){var d=this.useColors;if(c[0]=(d?"%c":"")+this.namespace+(d?" %c":" ")+c[0]+(d?"%c ":" ")+"+"+o.humanize(this.diff),d){var f="color: "+this.color;c.splice(1,0,f,"color: inherit");var p=0,h=0;c[0].replace(/%[a-zA-Z%]/g,function(g){g!=="%%"&&(p++,g==="%c"&&(h=p))}),c.splice(h,0,f)}},o.save=function(c){try{c==null?o.storage.removeItem("debug"):o.storage.debug=c}catch{}},o.load=u,o.useColors=function(){return!(typeof window>"u"||!window.process||window.process.type!=="renderer")||typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},o.storage=typeof chrome<"u"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch{}}(),o.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],o.formatters.j=function(c){try{return JSON.stringify(c)}catch(d){return"[UnexpectedJSONParseError]: "+d.message}},o.enable(u())},74469:function(i,o,a){var s;function u(c){function d(){if(d.enabled){var f=d,p=+new Date,h=p-(s||p);f.diff=h,f.prev=s,f.curr=p,s=p;for(var g=new Array(arguments.length),b=0;b0)return function(g){if(!((g=String(g)).length>100)){var b=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(g);if(b){var v=parseFloat(b[1]);switch((b[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*v;case"days":case"day":case"d":return v*u;case"hours":case"hour":case"hrs":case"hr":case"h":return v*s;case"minutes":case"minute":case"mins":case"min":case"m":return v*a;case"seconds":case"second":case"secs":case"sec":case"s":return v*o;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return v;default:return}}}}(d);if(h==="number"&&isNaN(d)===!1)return f.long?c(p=d,u,"day")||c(p,s,"hour")||c(p,a,"minute")||c(p,o,"second")||p+" ms":function(g){return g>=u?Math.round(g/u)+"d":g>=s?Math.round(g/s)+"h":g>=a?Math.round(g/a)+"m":g>=o?Math.round(g/o)+"s":g+"ms"}(d);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(d))}},84267:function(i,o,a){var s;(function(u){var c=/^\s+/,d=/\s+$/,f=0,p=u.round,h=u.min,g=u.max,b=u.random;function v(V,X){if(X=X||{},(V=V||"")instanceof v)return V;if(!(this instanceof v))return new v(V,X);var K=function(ne){var ae,ie,se,pe={r:0,g:0,b:0},ke=1,Ce=null,Oe=null,Pe=null,ce=!1,we=!1;return typeof ne=="string"&&(ne=function(Z){Z=Z.replace(c,"").replace(d,"").toLowerCase();var re,de=!1;if(j[Z])Z=j[Z],de=!0;else if(Z=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(re=U.rgb.exec(Z))?{r:re[1],g:re[2],b:re[3]}:(re=U.rgba.exec(Z))?{r:re[1],g:re[2],b:re[3],a:re[4]}:(re=U.hsl.exec(Z))?{h:re[1],s:re[2],l:re[3]}:(re=U.hsla.exec(Z))?{h:re[1],s:re[2],l:re[3],a:re[4]}:(re=U.hsv.exec(Z))?{h:re[1],s:re[2],v:re[3]}:(re=U.hsva.exec(Z))?{h:re[1],s:re[2],v:re[3],a:re[4]}:(re=U.hex8.exec(Z))?{r:q(re[1]),g:q(re[2]),b:q(re[3]),a:H(re[4]),format:de?"name":"hex8"}:(re=U.hex6.exec(Z))?{r:q(re[1]),g:q(re[2]),b:q(re[3]),format:de?"name":"hex"}:(re=U.hex4.exec(Z))?{r:q(re[1]+""+re[1]),g:q(re[2]+""+re[2]),b:q(re[3]+""+re[3]),a:H(re[4]+""+re[4]),format:de?"name":"hex8"}:!!(re=U.hex3.exec(Z))&&{r:q(re[1]+""+re[1]),g:q(re[2]+""+re[2]),b:q(re[3]+""+re[3]),format:de?"name":"hex"}}(ne)),typeof ne=="object"&&(Q(ne.r)&&Q(ne.g)&&Q(ne.b)?(ae=ne.r,ie=ne.g,se=ne.b,pe={r:255*N(ae,255),g:255*N(ie,255),b:255*N(se,255)},ce=!0,we=String(ne.r).substr(-1)==="%"?"prgb":"rgb"):Q(ne.h)&&Q(ne.s)&&Q(ne.v)?(Ce=L(ne.s),Oe=L(ne.v),pe=function(Z,re,de){Z=6*N(Z,360),re=N(re,100),de=N(de,100);var _e=u.floor(Z),ue=Z-_e,me=de*(1-re),xe=de*(1-ue*re),ye=de*(1-(1-ue)*re),Te=_e%6;return{r:255*[de,xe,me,me,ye,de][Te],g:255*[ye,de,de,xe,me,me][Te],b:255*[me,me,ye,de,de,xe][Te]}}(ne.h,Ce,Oe),ce=!0,we="hsv"):Q(ne.h)&&Q(ne.s)&&Q(ne.l)&&(Ce=L(ne.s),Pe=L(ne.l),pe=function(Z,re,de){var _e,ue,me;function xe(Ae,Le,Re){return Re<0&&(Re+=1),Re>1&&(Re-=1),Re<1/6?Ae+6*(Le-Ae)*Re:Re<.5?Le:Re<2/3?Ae+(Le-Ae)*(2/3-Re)*6:Ae}if(Z=N(Z,360),re=N(re,100),de=N(de,100),re===0)_e=ue=me=de;else{var ye=de<.5?de*(1+re):de+re-de*re,Te=2*de-ye;_e=xe(Te,ye,Z+1/3),ue=xe(Te,ye,Z),me=xe(Te,ye,Z-1/3)}return{r:255*_e,g:255*ue,b:255*me}}(ne.h,Ce,Pe),ce=!0,we="hsl"),ne.hasOwnProperty("a")&&(ke=ne.a)),ke=z(ke),{ok:ce,format:ne.format||we,r:h(255,g(pe.r,0)),g:h(255,g(pe.g,0)),b:h(255,g(pe.b,0)),a:ke}}(V);this._originalInput=V,this._r=K.r,this._g=K.g,this._b=K.b,this._a=K.a,this._roundA=p(100*this._a)/100,this._format=X.format||K.format,this._gradientType=X.gradientType,this._r<1&&(this._r=p(this._r)),this._g<1&&(this._g=p(this._g)),this._b<1&&(this._b=p(this._b)),this._ok=K.ok,this._tc_id=f++}function m(V,X,K){V=N(V,255),X=N(X,255),K=N(K,255);var ne,ae,ie=g(V,X,K),se=h(V,X,K),pe=(ie+se)/2;if(ie==se)ne=ae=0;else{var ke=ie-se;switch(ae=pe>.5?ke/(2-ie-se):ke/(ie+se),ie){case V:ne=(X-K)/ke+(X>1)+720)%360;--X;)ne.h=(ne.h+ae)%360,ie.push(v(ne));return ie}function F(V,X){X=X||6;for(var K=v(V).toHsv(),ne=K.h,ae=K.s,ie=K.v,se=[],pe=1/X;X--;)se.push(v({h:ne,s:ae,v:ie})),ie=(ie+pe)%1;return se}v.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var V=this.toRgb();return(299*V.r+587*V.g+114*V.b)/1e3},getLuminance:function(){var V,X,K,ne=this.toRgb();return V=ne.r/255,X=ne.g/255,K=ne.b/255,.2126*(V<=.03928?V/12.92:u.pow((V+.055)/1.055,2.4))+.7152*(X<=.03928?X/12.92:u.pow((X+.055)/1.055,2.4))+.0722*(K<=.03928?K/12.92:u.pow((K+.055)/1.055,2.4))},setAlpha:function(V){return this._a=z(V),this._roundA=p(100*this._a)/100,this},toHsv:function(){var V=y(this._r,this._g,this._b);return{h:360*V.h,s:V.s,v:V.v,a:this._a}},toHsvString:function(){var V=y(this._r,this._g,this._b),X=p(360*V.h),K=p(100*V.s),ne=p(100*V.v);return this._a==1?"hsv("+X+", "+K+"%, "+ne+"%)":"hsva("+X+", "+K+"%, "+ne+"%, "+this._roundA+")"},toHsl:function(){var V=m(this._r,this._g,this._b);return{h:360*V.h,s:V.s,l:V.l,a:this._a}},toHslString:function(){var V=m(this._r,this._g,this._b),X=p(360*V.h),K=p(100*V.s),ne=p(100*V.l);return this._a==1?"hsl("+X+", "+K+"%, "+ne+"%)":"hsla("+X+", "+K+"%, "+ne+"%, "+this._roundA+")"},toHex:function(V){return x(this._r,this._g,this._b,V)},toHexString:function(V){return"#"+this.toHex(V)},toHex8:function(V){return function(X,K,ne,ae,ie){var se=[Y(p(X).toString(16)),Y(p(K).toString(16)),Y(p(ne).toString(16)),Y(W(ae))];return ie&&se[0].charAt(0)==se[0].charAt(1)&&se[1].charAt(0)==se[1].charAt(1)&&se[2].charAt(0)==se[2].charAt(1)&&se[3].charAt(0)==se[3].charAt(1)?se[0].charAt(0)+se[1].charAt(0)+se[2].charAt(0)+se[3].charAt(0):se.join("")}(this._r,this._g,this._b,this._a,V)},toHex8String:function(V){return"#"+this.toHex8(V)},toRgb:function(){return{r:p(this._r),g:p(this._g),b:p(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+p(this._r)+", "+p(this._g)+", "+p(this._b)+")":"rgba("+p(this._r)+", "+p(this._g)+", "+p(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:p(100*N(this._r,255))+"%",g:p(100*N(this._g,255))+"%",b:p(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+p(100*N(this._r,255))+"%, "+p(100*N(this._g,255))+"%, "+p(100*N(this._b,255))+"%)":"rgba("+p(100*N(this._r,255))+"%, "+p(100*N(this._g,255))+"%, "+p(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(B[x(this._r,this._g,this._b,!0)]||!1)},toFilter:function(V){var X="#"+_(this._r,this._g,this._b,this._a),K=X,ne=this._gradientType?"GradientType = 1, ":"";if(V){var ae=v(V);K="#"+_(ae._r,ae._g,ae._b,ae._a)}return"progid:DXImageTransform.Microsoft.gradient("+ne+"startColorstr="+X+",endColorstr="+K+")"},toString:function(V){var X=!!V;V=V||this._format;var K=!1,ne=this._a<1&&this._a>=0;return X||!ne||V!=="hex"&&V!=="hex6"&&V!=="hex3"&&V!=="hex4"&&V!=="hex8"&&V!=="name"?(V==="rgb"&&(K=this.toRgbString()),V==="prgb"&&(K=this.toPercentageRgbString()),V!=="hex"&&V!=="hex6"||(K=this.toHexString()),V==="hex3"&&(K=this.toHexString(!0)),V==="hex4"&&(K=this.toHex8String(!0)),V==="hex8"&&(K=this.toHex8String()),V==="name"&&(K=this.toName()),V==="hsl"&&(K=this.toHslString()),V==="hsv"&&(K=this.toHsvString()),K||this.toHexString()):V==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return v(this.toString())},_applyModification:function(V,X){var K=V.apply(null,[this].concat([].slice.call(X)));return this._r=K._r,this._g=K._g,this._b=K._b,this.setAlpha(K._a),this},lighten:function(){return this._applyModification(C,arguments)},brighten:function(){return this._applyModification(T,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(w,arguments)},saturate:function(){return this._applyModification(S,arguments)},greyscale:function(){return this._applyModification(k,arguments)},spin:function(){return this._applyModification(O,arguments)},_applyCombination:function(V,X){return V.apply(null,[this].concat([].slice.call(X)))},analogous:function(){return this._applyCombination(A,arguments)},complement:function(){return this._applyCombination(D,arguments)},monochromatic:function(){return this._applyCombination(F,arguments)},splitcomplement:function(){return this._applyCombination(I,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(E,arguments)}},v.fromRatio=function(V,X){if(typeof V=="object"){var K={};for(var ne in V)V.hasOwnProperty(ne)&&(K[ne]=ne==="a"?V[ne]:L(V[ne]));V=K}return v(V,X)},v.equals=function(V,X){return!(!V||!X)&&v(V).toRgbString()==v(X).toRgbString()},v.random=function(){return v.fromRatio({r:b(),g:b(),b:b()})},v.mix=function(V,X,K){K=K===0?0:K||50;var ne=v(V).toRgb(),ae=v(X).toRgb(),ie=K/100;return v({r:(ae.r-ne.r)*ie+ne.r,g:(ae.g-ne.g)*ie+ne.g,b:(ae.b-ne.b)*ie+ne.b,a:(ae.a-ne.a)*ie+ne.a})},v.readability=function(V,X){var K=v(V),ne=v(X);return(u.max(K.getLuminance(),ne.getLuminance())+.05)/(u.min(K.getLuminance(),ne.getLuminance())+.05)},v.isReadable=function(V,X,K){var ne,ae,ie,se,pe,ke=v.readability(V,X);switch(ae=!1,(ie=K,(se=((ie=ie||{level:"AA",size:"small"}).level||"AA").toUpperCase())!=="AA"&&se!=="AAA"&&(se="AA"),(pe=(ie.size||"small").toLowerCase())!=="small"&&pe!=="large"&&(pe="small"),ne={level:se,size:pe}).level+ne.size){case"AAsmall":case"AAAlarge":ae=ke>=4.5;break;case"AAlarge":ae=ke>=3;break;case"AAAsmall":ae=ke>=7}return ae},v.mostReadable=function(V,X,K){var ne,ae,ie,se,pe=null,ke=0;ae=(K=K||{}).includeFallbackColors,ie=K.level,se=K.size;for(var Ce=0;Ceke&&(ke=ne,pe=v(X[Ce]));return v.isReadable(V,pe,{level:ie,size:se})||!ae?pe:(K.includeFallbackColors=!1,v.mostReadable(V,["#fff","#000"],K))};var j=v.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},B=v.hexNames=function(V){var X={};for(var K in V)V.hasOwnProperty(K)&&(X[V[K]]=K);return X}(j);function z(V){return V=parseFloat(V),(isNaN(V)||V<0||V>1)&&(V=1),V}function N(V,X){(function(ne){return typeof ne=="string"&&ne.indexOf(".")!=-1&&parseFloat(ne)===1})(V)&&(V="100%");var K=function(ne){return typeof ne=="string"&&ne.indexOf("%")!=-1}(V);return V=h(X,g(0,parseFloat(V))),K&&(V=parseInt(V*X,10)/100),u.abs(V-X)<1e-6?1:V%X/parseFloat(X)}function R(V){return h(1,g(0,V))}function q(V){return parseInt(V,16)}function Y(V){return V.length==1?"0"+V:""+V}function L(V){return V<=1&&(V=100*V+"%"),V}function W(V){return u.round(255*parseFloat(V)).toString(16)}function H(V){return q(V)/255}var G,te,ee,U=(te="[\\s|\\(]+("+(G="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+G+")[,|\\s]+("+G+")\\s*\\)?",ee="[\\s|\\(]+("+G+")[,|\\s]+("+G+")[,|\\s]+("+G+")[,|\\s]+("+G+")\\s*\\)?",{CSS_UNIT:new RegExp(G),rgb:new RegExp("rgb"+te),rgba:new RegExp("rgba"+ee),hsl:new RegExp("hsl"+te),hsla:new RegExp("hsla"+ee),hsv:new RegExp("hsv"+te),hsva:new RegExp("hsva"+ee),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function Q(V){return!!U.CSS_UNIT.exec(V)}i.exports?i.exports=v:(s=(function(){return v}).call(o,a,o,i))===void 0||(i.exports=s)})(Math)},20588:function(i,o,a){function s(u){try{if(!a.g.localStorage)return!1}catch{return!1}var c=a.g.localStorage[u];return c!=null&&String(c).toLowerCase()==="true"}i.exports=function(u,c){if(s("noDeprecation"))return u;var d=!1;return function(){if(!d){if(s("throwDeprecation"))throw new Error(c);s("traceDeprecation")?console.trace(c):console.warn(c),d=!0}return u.apply(this,arguments)}}},45920:function(i){i.exports=function(o){return o&&typeof o=="object"&&typeof o.copy=="function"&&typeof o.fill=="function"&&typeof o.readUInt8=="function"}},4936:function(i,o,a){var s=a(47216),u=a(65481),c=a(21099),d=a(9187);function f(N){return N.call.bind(N)}var p=typeof BigInt<"u",h=typeof Symbol<"u",g=f(Object.prototype.toString),b=f(Number.prototype.valueOf),v=f(String.prototype.valueOf),m=f(Boolean.prototype.valueOf);if(p)var y=f(BigInt.prototype.valueOf);if(h)var x=f(Symbol.prototype.valueOf);function _(N,R){if(typeof N!="object")return!1;try{return R(N),!0}catch{return!1}}function w(N){return g(N)==="[object Map]"}function S(N){return g(N)==="[object Set]"}function k(N){return g(N)==="[object WeakMap]"}function C(N){return g(N)==="[object WeakSet]"}function T(N){return g(N)==="[object ArrayBuffer]"}function M(N){return typeof ArrayBuffer<"u"&&(T.working?T(N):N instanceof ArrayBuffer)}function O(N){return g(N)==="[object DataView]"}function D(N){return typeof DataView<"u"&&(O.working?O(N):N instanceof DataView)}o.isArgumentsObject=s,o.isGeneratorFunction=u,o.isTypedArray=d,o.isPromise=function(N){return typeof Promise<"u"&&N instanceof Promise||N!==null&&typeof N=="object"&&typeof N.then=="function"&&typeof N.catch=="function"},o.isArrayBufferView=function(N){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(N):d(N)||D(N)},o.isUint8Array=function(N){return c(N)==="Uint8Array"},o.isUint8ClampedArray=function(N){return c(N)==="Uint8ClampedArray"},o.isUint16Array=function(N){return c(N)==="Uint16Array"},o.isUint32Array=function(N){return c(N)==="Uint32Array"},o.isInt8Array=function(N){return c(N)==="Int8Array"},o.isInt16Array=function(N){return c(N)==="Int16Array"},o.isInt32Array=function(N){return c(N)==="Int32Array"},o.isFloat32Array=function(N){return c(N)==="Float32Array"},o.isFloat64Array=function(N){return c(N)==="Float64Array"},o.isBigInt64Array=function(N){return c(N)==="BigInt64Array"},o.isBigUint64Array=function(N){return c(N)==="BigUint64Array"},w.working=typeof Map<"u"&&w(new Map),o.isMap=function(N){return typeof Map<"u"&&(w.working?w(N):N instanceof Map)},S.working=typeof Set<"u"&&S(new Set),o.isSet=function(N){return typeof Set<"u"&&(S.working?S(N):N instanceof Set)},k.working=typeof WeakMap<"u"&&k(new WeakMap),o.isWeakMap=function(N){return typeof WeakMap<"u"&&(k.working?k(N):N instanceof WeakMap)},C.working=typeof WeakSet<"u"&&C(new WeakSet),o.isWeakSet=function(N){return C(N)},T.working=typeof ArrayBuffer<"u"&&T(new ArrayBuffer),o.isArrayBuffer=M,O.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&O(new DataView(new ArrayBuffer(1),0,1)),o.isDataView=D;var P=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function E(N){return g(N)==="[object SharedArrayBuffer]"}function I(N){return P!==void 0&&(E.working===void 0&&(E.working=E(new P)),E.working?E(N):N instanceof P)}function A(N){return _(N,b)}function F(N){return _(N,v)}function j(N){return _(N,m)}function B(N){return p&&_(N,y)}function z(N){return h&&_(N,x)}o.isSharedArrayBuffer=I,o.isAsyncFunction=function(N){return g(N)==="[object AsyncFunction]"},o.isMapIterator=function(N){return g(N)==="[object Map Iterator]"},o.isSetIterator=function(N){return g(N)==="[object Set Iterator]"},o.isGeneratorObject=function(N){return g(N)==="[object Generator]"},o.isWebAssemblyCompiledModule=function(N){return g(N)==="[object WebAssembly.Module]"},o.isNumberObject=A,o.isStringObject=F,o.isBooleanObject=j,o.isBigIntObject=B,o.isSymbolObject=z,o.isBoxedPrimitive=function(N){return A(N)||F(N)||j(N)||B(N)||z(N)},o.isAnyArrayBuffer=function(N){return typeof Uint8Array<"u"&&(M(N)||I(N))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(N){Object.defineProperty(o,N,{enumerable:!1,value:function(){throw new Error(N+" is not supported in userland")}})})},43827:function(i,o,a){var s=a(90386),u=Object.getOwnPropertyDescriptors||function(z){for(var N=Object.keys(z),R={},q=0;q=Y)return H;switch(H){case"%s":return String(q[R++]);case"%d":return Number(q[R++]);case"%j":try{return JSON.stringify(q[R++])}catch{return"[Circular]"}default:return H}}),W=q[R];R=3&&(R.depth=arguments[2]),arguments.length>=4&&(R.colors=arguments[3]),_(N)?R.showHidden=N:N&&o._extend(R,N),C(R.showHidden)&&(R.showHidden=!1),C(R.depth)&&(R.depth=2),C(R.colors)&&(R.colors=!1),C(R.customInspect)&&(R.customInspect=!0),R.colors&&(R.stylize=g),v(R,z,R.depth)}function g(z,N){var R=h.styles[N];return R?"\x1B["+h.colors[R][0]+"m"+z+"\x1B["+h.colors[R][1]+"m":z}function b(z,N){return z}function v(z,N,R){if(z.customInspect&&N&&P(N.inspect)&&N.inspect!==o.inspect&&(!N.constructor||N.constructor.prototype!==N)){var q=N.inspect(R,z);return k(q)||(q=v(z,q,R)),q}var Y=function(Q,V){if(C(V))return Q.stylize("undefined","undefined");if(k(V)){var X="'"+JSON.stringify(V).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Q.stylize(X,"string")}return S(V)?Q.stylize(""+V,"number"):_(V)?Q.stylize(""+V,"boolean"):w(V)?Q.stylize("null","null"):void 0}(z,N);if(Y)return Y;var L=Object.keys(N),W=function(Q){var V={};return Q.forEach(function(X,K){V[X]=!0}),V}(L);if(z.showHidden&&(L=Object.getOwnPropertyNames(N)),D(N)&&(L.indexOf("message")>=0||L.indexOf("description")>=0))return m(N);if(L.length===0){if(P(N)){var H=N.name?": "+N.name:"";return z.stylize("[Function"+H+"]","special")}if(T(N))return z.stylize(RegExp.prototype.toString.call(N),"regexp");if(O(N))return z.stylize(Date.prototype.toString.call(N),"date");if(D(N))return m(N)}var G,te="",ee=!1,U=["{","}"];return x(N)&&(ee=!0,U=["[","]"]),P(N)&&(te=" [Function"+(N.name?": "+N.name:"")+"]"),T(N)&&(te=" "+RegExp.prototype.toString.call(N)),O(N)&&(te=" "+Date.prototype.toUTCString.call(N)),D(N)&&(te=" "+m(N)),L.length!==0||ee&&N.length!=0?R<0?T(N)?z.stylize(RegExp.prototype.toString.call(N),"regexp"):z.stylize("[Object]","special"):(z.seen.push(N),G=ee?function(Q,V,X,K,ne){for(var ae=[],ie=0,se=V.length;ie60?X[0]+(V===""?"":V+` + `)+" "+Q.join(`, + `)+" "+X[1]:X[0]+V+" "+Q.join(", ")+" "+X[1]}(G,te,U)):U[0]+te+U[1]}function m(z){return"["+Error.prototype.toString.call(z)+"]"}function y(z,N,R,q,Y,L){var W,H,G;if((G=Object.getOwnPropertyDescriptor(N,Y)||{value:N[Y]}).get?H=G.set?z.stylize("[Getter/Setter]","special"):z.stylize("[Getter]","special"):G.set&&(H=z.stylize("[Setter]","special")),F(q,Y)||(W="["+Y+"]"),H||(z.seen.indexOf(G.value)<0?(H=w(R)?v(z,G.value,null):v(z,G.value,R-1)).indexOf(` +`)>-1&&(H=L?H.split(` `).map(function(te){return" "+te}).join(` `).slice(2):` -`+U.split(` +`+H.split(` `).map(function(te){return" "+te}).join(` -`)):U=B.stylize("[Circular]","special")),S(W)){if(L&&Y.match(/^\d+$/))return U;(W=JSON.stringify(""+Y)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(W=W.slice(1,-1),W=B.stylize(W,"name")):(W=W.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),W=B.stylize(W,"string"))}return W+": "+U}function w(B){return Array.isArray(B)}function _(B){return typeof B=="boolean"}function x(B){return B===null}function T(B){return typeof B=="number"}function k(B){return typeof B=="string"}function S(B){return B===void 0}function C(B){return M(B)&&E(B)==="[object RegExp]"}function M(B){return typeof B=="object"&&B!==null}function O(B){return M(B)&&E(B)==="[object Date]"}function D(B){return M(B)&&(E(B)==="[object Error]"||B instanceof Error)}function P(B){return typeof B=="function"}function E(B){return Object.prototype.toString.call(B)}function I(B){return B<10?"0"+B.toString(10):B.toString(10)}o.debuglog=function(B){if(B=B.toUpperCase(),!d[B])if(f.test(B)){var N=s.pid;d[B]=function(){var R=o.format.apply(o,arguments);console.error("%s %d: %s",B,N,R)}}else d[B]=function(){};return d[B]},o.inspect=m,m.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},m.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},o.types=a(4936),o.isArray=w,o.isBoolean=_,o.isNull=x,o.isNullOrUndefined=function(B){return B==null},o.isNumber=T,o.isString=k,o.isSymbol=function(B){return typeof B=="symbol"},o.isUndefined=S,o.isRegExp=C,o.types.isRegExp=C,o.isObject=M,o.isDate=O,o.types.isDate=O,o.isError=D,o.types.isNativeError=D,o.isFunction=P,o.isPrimitive=function(B){return B===null||typeof B=="boolean"||typeof B=="number"||typeof B=="string"||typeof B=="symbol"||B===void 0},o.isBuffer=a(45920);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function F(B,N){return Object.prototype.hasOwnProperty.call(B,N)}o.log=function(){var B,N;console.log("%s - %s",(N=[I((B=new Date).getHours()),I(B.getMinutes()),I(B.getSeconds())].join(":"),[B.getDate(),A[B.getMonth()],N].join(" ")),o.format.apply(o,arguments))},o.inherits=a(42018),o._extend=function(B,N){if(!N||!M(N))return B;for(var R=Object.keys(N),q=R.length;q--;)B[R[q]]=N[R[q]];return B};var j=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function z(B,N){if(!B){var R=new Error("Promise was rejected with a falsy value");R.reason=B,B=R}return N(B)}o.promisify=function(B){if(typeof B!="function")throw new TypeError('The "original" argument must be of type Function');if(j&&B[j]){var N;if(typeof(N=B[j])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(N,j,{value:N,enumerable:!1,writable:!1,configurable:!0}),N}function N(){for(var R,q,Y=new Promise(function(U,V){R=U,q=V}),L=[],W=0;W"u"?a.g:globalThis,g=u(),b=c("String.prototype.slice"),v={},h=Object.getPrototypeOf;p&&d&&h&&s(g,function(w){if(typeof m[w]=="function"){var _=new m[w];if(Symbol.toStringTag in _){var x=h(_),T=d(x,Symbol.toStringTag);if(!T){var k=h(x);T=d(k,Symbol.toStringTag)}v[w]=T.get}}});var y=a(9187);i.exports=function(w){return!!y(w)&&(p&&Symbol.toStringTag in w?function(_){var x=!1;return s(v,function(T,k){if(!x)try{var S=T.call(_);S===k&&(x=S)}catch{}}),x}(w):b(f(w),8,-1))}},3961:function(i,o,a){var s=a(63489),u=a(56131),c=s.instance();function d(h){this.local=this.regionalOptions[h||""]||this.regionalOptions[""]}d.prototype=new s.baseCalendar,u(d.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(h,y){if(typeof h=="string"){var w=h.match(p);return w?w[0]:""}var _=this._validateYear(h),x=h.month(),T=""+this.toChineseMonth(_,x);return y&&T.length<2&&(T="0"+T),this.isIntercalaryMonth(_,x)&&(T+="i"),T},monthNames:function(h){if(typeof h=="string"){var y=h.match(m);return y?y[0]:""}var w=this._validateYear(h),_=h.month(),x=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(w,_)-1];return this.isIntercalaryMonth(w,_)&&(x="闰"+x),x},monthNamesShort:function(h){if(typeof h=="string"){var y=h.match(g);return y?y[0]:""}var w=this._validateYear(h),_=h.month(),x=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(w,_)-1];return this.isIntercalaryMonth(w,_)&&(x="闰"+x),x},parseMonth:function(h,y){h=this._validateYear(h);var w,_=parseInt(y);if(isNaN(_))y[0]==="闰"&&(w=!0,y=y.substring(1)),y[y.length-1]==="月"&&(y=y.substring(0,y.length-1)),_=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(y);else{var x=y[y.length-1];w=x==="i"||x==="I"}return this.toMonthIndex(h,_,w)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(h,y){if(h.year&&(h=h.year()),typeof h!="number"||h<1888||h>2111)throw y.replace(/\{0\}/,this.local.name);return h},toMonthIndex:function(h,y,w){var _=this.intercalaryMonth(h);if(w&&y!==_||y<1||y>12)throw s.local.invalidMonth.replace(/\{0\}/,this.local.name);return _?!w&&y<=_?y-1:y:y-1},toChineseMonth:function(h,y){h.year&&(y=(h=h.year()).month());var w=this.intercalaryMonth(h);if(y<0||y>(w?12:11))throw s.local.invalidMonth.replace(/\{0\}/,this.local.name);return w?y>13},isIntercalaryMonth:function(h,y){h.year&&(y=(h=h.year()).month());var w=this.intercalaryMonth(h);return!!w&&w===y},leapYear:function(h){return this.intercalaryMonth(h)!==0},weekOfYear:function(h,y,w){var _,x=this._validateYear(h,s.local.invalidyear),T=v[x-v[0]],k=T>>9&4095,S=T>>5&15,C=31&T;(_=c.newDate(k,S,C)).add(4-(_.dayOfWeek()||7),"d");var M=this.toJD(h,y,w)-_.toJD();return 1+Math.floor(M/7)},monthsInYear:function(h){return this.leapYear(h)?13:12},daysInMonth:function(h,y){h.year&&(y=h.month(),h=h.year()),h=this._validateYear(h);var w=b[h-b[0]];if(y>(w>>13?12:11))throw s.local.invalidMonth.replace(/\{0\}/,this.local.name);return w&1<<12-y?30:29},weekDay:function(h,y,w){return(this.dayOfWeek(h,y,w)||7)<6},toJD:function(h,y,w){var _=this._validate(h,T,w,s.local.invalidDate);h=this._validateYear(_.year()),y=_.month(),w=_.day();var x=this.isIntercalaryMonth(h,y),T=this.toChineseMonth(h,y),k=function(S,C,M,O,D){var P,E,I;if(typeof S=="object")E=S,P=C||{};else{var A;if(!(typeof S=="number"&&S>=1888&&S<=2111))throw new Error("Lunar year outside range 1888-2111");if(!(typeof C=="number"&&C>=1&&C<=12))throw new Error("Lunar month outside range 1 - 12");if(!(typeof M=="number"&&M>=1&&M<=30))throw new Error("Lunar day outside range 1 - 30");typeof O=="object"?(A=!1,P=O):(A=!!O,P={}),E={year:S,month:C,day:M,isIntercalary:A}}I=E.day-1;var F,j=b[E.year-b[0]],z=j>>13;F=z&&(E.month>z||E.isIntercalary)?E.month:E.month-1;for(var B=0;B>9&4095,(N>>5&15)-1,(31&N)+I);return P.year=R.getFullYear(),P.month=1+R.getMonth(),P.day=R.getDate(),P}(h,T,w,x);return c.toJD(k.year,k.month,k.day)},fromJD:function(h){var y=c.fromJD(h),w=function(x,T,k,S){var C,M;if(typeof x=="object")C=x,M=T||{};else{if(!(typeof x=="number"&&x>=1888&&x<=2111))throw new Error("Solar year outside range 1888-2111");if(!(typeof T=="number"&&T>=1&&T<=12))throw new Error("Solar month outside range 1 - 12");if(!(typeof k=="number"&&k>=1&&k<=31))throw new Error("Solar day outside range 1 - 31");C={year:x,month:T,day:k},M={}}var O=v[C.year-v[0]],D=C.year<<9|C.month<<5|C.day;M.year=D>=O?C.year:C.year-1,O=v[M.year-v[0]];var P,E=new Date(O>>9&4095,(O>>5&15)-1,31&O),I=new Date(C.year,C.month-1,C.day);P=Math.round((I-E)/864e5);var A,F=b[M.year-b[0]];for(A=0;A<13;A++){var j=F&1<<12-A?30:29;if(P>13;return!z||A=2&&g<=6},extraInfo:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate);return{century:d[Math.floor((g.year()-1)/100)+1]||""}},toJD:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate);return f=g.year()+(g.year()<0?1:0),p=g.month(),(m=g.day())+(p>1?16:0)+(p>2?32*(p-2):0)+400*(f-1)+this.jdEpoch-1},fromJD:function(f){f=Math.floor(f+.5)-Math.floor(this.jdEpoch)-1;var p=Math.floor(f/400)+1;f-=400*(p-1),f+=f>15?16:0;var m=Math.floor(f/32)+1,g=f-32*(m-1)+1;return this.newDate(p<=0?p-1:p,m,g)}});var d={20:"Fruitbat",21:"Anchovy"};s.calendars.discworld=c},37715:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var f=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear);return(d=f.year()+(f.year()<0?1:0))%4==3||d%4==-1},monthsInYear:function(d){return this._validate(d,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear),13},weekOfYear:function(d,f,p){var m=this.newDate(d,f,p);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(d,f){var p=this._validate(d,f,this.minDay,s.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===13&&this.leapYear(p.year())?1:0)},weekDay:function(d,f,p){return(this.dayOfWeek(d,f,p)||7)<6},toJD:function(d,f,p){var m=this._validate(d,f,p,s.local.invalidDate);return(d=m.year())<0&&d++,m.day()+30*(m.month()-1)+365*(d-1)+Math.floor(d/4)+this.jdEpoch-1},fromJD:function(d){var f=Math.floor(d)+.5-this.jdEpoch,p=Math.floor((f-Math.floor((f+366)/1461))/365)+1;p<=0&&p--,f=Math.floor(d)+.5-this.newDate(p,1,1).toJD();var m=Math.floor(f/30)+1,g=f-30*(m-1)+1;return this.newDate(p,m,g)}}),s.calendars.ethiopian=c},99384:function(i,o,a){var s=a(63489),u=a(56131);function c(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}function d(f,p){return f-p*Math.floor(f/p)}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return this._leapYear(p.year())},_leapYear:function(f){return d(7*(f=f<0?f+1:f)+1,19)<7},monthsInYear:function(f){return this._validate(f,this.minMonth,this.minDay,s.local.invalidYear),this._leapYear(f.year?f.year():f)?13:12},weekOfYear:function(f,p,m){var g=this.newDate(f,p,m);return g.add(-g.dayOfWeek(),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInYear:function(f){return f=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear).year(),this.toJD(f===-1?1:f+1,7,1)-this.toJD(f,7,1)},daysInMonth:function(f,p){return f.year&&(p=f.month(),f=f.year()),this._validate(f,p,this.minDay,s.local.invalidMonth),p===12&&this.leapYear(f)||p===8&&d(this.daysInYear(f),10)===5?30:p===9&&d(this.daysInYear(f),10)===3?29:this.daysPerMonth[p-1]},weekDay:function(f,p,m){return this.dayOfWeek(f,p,m)!==6},extraInfo:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate);return{yearType:(this.leapYear(g)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(g)%10-3]}},toJD:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate);f=g.year(),p=g.month(),m=g.day();var b=f<=0?f+1:f,v=this.jdEpoch+this._delay1(b)+this._delay2(b)+m+1;if(p<7){for(var h=7;h<=this.monthsInYear(f);h++)v+=this.daysInMonth(f,h);for(h=1;h=this.toJD(p===-1?1:p+1,7,1);)p++;for(var m=fthis.toJD(p,m,this.daysInMonth(p,m));)m++;var g=f-this.toJD(p,m,1)+1;return this.newDate(p,m,g)}}),s.calendars.hebrew=c},43805:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(d){return(11*this._validate(d,this.minMonth,this.minDay,s.local.invalidYear).year()+14)%30<11},weekOfYear:function(d,f,p){var m=this.newDate(d,f,p);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(d){return this.leapYear(d)?355:354},daysInMonth:function(d,f){var p=this._validate(d,f,this.minDay,s.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(d,f,p){return this.dayOfWeek(d,f,p)!==5},toJD:function(d,f,p){var m=this._validate(d,f,p,s.local.invalidDate);return d=m.year(),f=m.month(),d=d<=0?d+1:d,(p=m.day())+Math.ceil(29.5*(f-1))+354*(d-1)+Math.floor((3+11*d)/30)+this.jdEpoch-1},fromJD:function(d){d=Math.floor(d)+.5;var f=Math.floor((30*(d-this.jdEpoch)+10646)/10631);f=f<=0?f-1:f;var p=Math.min(12,Math.ceil((d-29-this.toJD(f,1,1))/29.5)+1),m=d-this.toJD(f,p,1)+1;return this.newDate(f,p,m)}}),s.calendars.islamic=c},88874:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var f=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear);return(d=f.year()<0?f.year()+1:f.year())%4==0},weekOfYear:function(d,f,p){var m=this.newDate(d,f,p);return m.add(4-(m.dayOfWeek()||7),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(d,f){var p=this._validate(d,f,this.minDay,s.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(d,f,p){return(this.dayOfWeek(d,f,p)||7)<6},toJD:function(d,f,p){var m=this._validate(d,f,p,s.local.invalidDate);return d=m.year(),f=m.month(),p=m.day(),d<0&&d++,f<=2&&(d--,f+=12),Math.floor(365.25*(d+4716))+Math.floor(30.6001*(f+1))+p-1524.5},fromJD:function(d){var f=Math.floor(d+.5)+1524,p=Math.floor((f-122.1)/365.25),m=Math.floor(365.25*p),g=Math.floor((f-m)/30.6001),b=g-Math.floor(g<14?1:13),v=p-Math.floor(b>2?4716:4715),h=f-m-Math.floor(30.6001*g);return v<=0&&v--,this.newDate(v,b,h)}}),s.calendars.julian=c},83290:function(i,o,a){var s=a(63489),u=a(56131);function c(p){this.local=this.regionalOptions[p||""]||this.regionalOptions[""]}function d(p,m){return p-m*Math.floor(p/m)}function f(p,m){return d(p-1,m)+1}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(p){return this._validate(p,this.minMonth,this.minDay,s.local.invalidYear),!1},formatYear:function(p){p=this._validate(p,this.minMonth,this.minDay,s.local.invalidYear).year();var m=Math.floor(p/400);return p%=400,p+=p<0?400:0,m+"."+Math.floor(p/20)+"."+p%20},forYear:function(p){if((p=p.split(".")).length<3)throw"Invalid Mayan year";for(var m=0,g=0;g19||g>0&&b<0)throw"Invalid Mayan year";m=20*m+b}return m},monthsInYear:function(p){return this._validate(p,this.minMonth,this.minDay,s.local.invalidYear),18},weekOfYear:function(p,m,g){return this._validate(p,m,g,s.local.invalidDate),0},daysInYear:function(p){return this._validate(p,this.minMonth,this.minDay,s.local.invalidYear),360},daysInMonth:function(p,m){return this._validate(p,m,this.minDay,s.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(p,m,g){return this._validate(p,m,g,s.local.invalidDate).day()},weekDay:function(p,m,g){return this._validate(p,m,g,s.local.invalidDate),!0},extraInfo:function(p,m,g){var b=this._validate(p,m,g,s.local.invalidDate).toJD(),v=this._toHaab(b),h=this._toTzolkin(b);return{haabMonthName:this.local.haabMonths[v[0]-1],haabMonth:v[0],haabDay:v[1],tzolkinDayName:this.local.tzolkinMonths[h[0]-1],tzolkinDay:h[0],tzolkinTrecena:h[1]}},_toHaab:function(p){var m=d(8+(p-=this.jdEpoch)+340,365);return[Math.floor(m/20)+1,d(m,20)]},_toTzolkin:function(p){return[f(20+(p-=this.jdEpoch),20),f(p+4,13)]},toJD:function(p,m,g){var b=this._validate(p,m,g,s.local.invalidDate);return b.day()+20*b.month()+360*b.year()+this.jdEpoch},fromJD:function(p){p=Math.floor(p)+.5-this.jdEpoch;var m=Math.floor(p/360);p%=360,p+=p<0?360:0;var g=Math.floor(p/20),b=p%20;return this.newDate(m,g,b)}}),s.calendars.mayan=c},29108:function(i,o,a){var s=a(63489),u=a(56131);function c(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar;var d=s.instance("gregorian");u(c.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear);return d.leapYear(p.year()+(p.year()<1?1:0)+1469)},weekOfYear:function(f,p,m){var g=this.newDate(f,p,m);return g.add(1-(g.dayOfWeek()||7),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInMonth:function(f,p){var m=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===12&&this.leapYear(m.year())?1:0)},weekDay:function(f,p,m){return(this.dayOfWeek(f,p,m)||7)<6},toJD:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidMonth);(f=g.year())<0&&f++;for(var b=g.day(),v=1;v=this.toJD(p+1,1,1);)p++;for(var m=f-Math.floor(this.toJD(p,1,1)+.5)+1,g=1;m>this.daysInMonth(p,g);)m-=this.daysInMonth(p,g),g++;return this.newDate(p,g,m)}}),s.calendars.nanakshahi=c},55422:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(d){return this.daysInYear(d)!==this.daysPerYear},weekOfYear:function(d,f,p){var m=this.newDate(d,f,p);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(d){if(d=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear).year(),this.NEPALI_CALENDAR_DATA[d]===void 0)return this.daysPerYear;for(var f=0,p=this.minMonth;p<=12;p++)f+=this.NEPALI_CALENDAR_DATA[d][p];return f},daysInMonth:function(d,f){return d.year&&(f=d.month(),d=d.year()),this._validate(d,f,this.minDay,s.local.invalidMonth),this.NEPALI_CALENDAR_DATA[d]===void 0?this.daysPerMonth[f-1]:this.NEPALI_CALENDAR_DATA[d][f]},weekDay:function(d,f,p){return this.dayOfWeek(d,f,p)!==6},toJD:function(d,f,p){var m=this._validate(d,f,p,s.local.invalidDate);d=m.year(),f=m.month(),p=m.day();var g=s.instance(),b=0,v=f,h=d;this._createMissingCalendarData(d);var y=d-(v>9||v===9&&p>=this.NEPALI_CALENDAR_DATA[h][0]?56:57);for(f!==9&&(b=p,v--);v!==9;)v<=0&&(v=12,h--),b+=this.NEPALI_CALENDAR_DATA[h][v],v--;return f===9?(b+=p-this.NEPALI_CALENDAR_DATA[h][0])<0&&(b+=g.daysInYear(y)):b+=this.NEPALI_CALENDAR_DATA[h][9]-this.NEPALI_CALENDAR_DATA[h][0],g.newDate(y,1,1).add(b,"d").toJD()},fromJD:function(d){var f=s.instance().fromJD(d),p=f.year(),m=f.dayOfYear(),g=p+56;this._createMissingCalendarData(g);for(var b=9,v=this.NEPALI_CALENDAR_DATA[g][0],h=this.NEPALI_CALENDAR_DATA[g][b]-v+1;m>h;)++b>12&&(b=1,g++),h+=this.NEPALI_CALENDAR_DATA[g][b];var y=this.NEPALI_CALENDAR_DATA[g][b]-(h-m);return this.newDate(g,b,y)},_createMissingCalendarData:function(d){var f=this.daysPerMonth.slice(0);f.unshift(17);for(var p=d-1;p0?474:473))%2820+474+38)%2816<682},weekOfYear:function(f,p,m){var g=this.newDate(f,p,m);return g.add(-(g.dayOfWeek()+1)%7,"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInMonth:function(f,p){var m=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===12&&this.leapYear(m.year())?1:0)},weekDay:function(f,p,m){return this.dayOfWeek(f,p,m)!==5},toJD:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate);f=g.year(),p=g.month(),m=g.day();var b=f-(f>=0?474:473),v=474+d(b,2820);return m+(p<=7?31*(p-1):30*(p-1)+6)+Math.floor((682*v-110)/2816)+365*(v-1)+1029983*Math.floor(b/2820)+this.jdEpoch-1},fromJD:function(f){var p=(f=Math.floor(f)+.5)-this.toJD(475,1,1),m=Math.floor(p/1029983),g=d(p,1029983),b=2820;if(g!==1029982){var v=Math.floor(g/366),h=d(g,366);b=Math.floor((2134*v+2816*h+2815)/1028522)+v+1}var y=b+2820*m+474;y=y<=0?y-1:y;var w=f-this.toJD(y,1,1)+1,_=w<=186?Math.ceil(w/31):Math.ceil((w-6)/30),x=f-this.toJD(y,_,1)+1;return this.newDate(y,_,x)}}),s.calendars.persian=c,s.calendars.jalali=c},31320:function(i,o,a){var s=a(63489),u=a(56131),c=s.instance();function d(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}d.prototype=new s.baseCalendar,u(d.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(p.year()),c.leapYear(f)},weekOfYear:function(f,p,m){var g=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(g.year()),c.weekOfYear(f,g.month(),g.day())},daysInMonth:function(f,p){var m=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===2&&this.leapYear(m.year())?1:0)},weekDay:function(f,p,m){return(this.dayOfWeek(f,p,m)||7)<6},toJD:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate);return f=this._t2gYear(g.year()),c.toJD(f,g.month(),g.day())},fromJD:function(f){var p=c.fromJD(f),m=this._g2tYear(p.year());return this.newDate(m,p.month(),p.day())},_t2gYear:function(f){return f+this.yearsOffset+(f>=-this.yearsOffset&&f<=-1?1:0)},_g2tYear:function(f){return f-this.yearsOffset-(f>=1&&f<=this.yearsOffset?1:0)}}),s.calendars.taiwan=d},51367:function(i,o,a){var s=a(63489),u=a(56131),c=s.instance();function d(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}d.prototype=new s.baseCalendar,u(d.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(p.year()),c.leapYear(f)},weekOfYear:function(f,p,m){var g=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(g.year()),c.weekOfYear(f,g.month(),g.day())},daysInMonth:function(f,p){var m=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[m.month()-1]+(m.month()===2&&this.leapYear(m.year())?1:0)},weekDay:function(f,p,m){return(this.dayOfWeek(f,p,m)||7)<6},toJD:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate);return f=this._t2gYear(g.year()),c.toJD(f,g.month(),g.day())},fromJD:function(f){var p=c.fromJD(f),m=this._g2tYear(p.year());return this.newDate(m,p.month(),p.day())},_t2gYear:function(f){return f-this.yearsOffset-(f>=1&&f<=this.yearsOffset?1:0)},_g2tYear:function(f){return f+this.yearsOffset+(f>=-this.yearsOffset&&f<=-1?1:0)}}),s.calendars.thai=d},21457:function(i,o,a){var s=a(63489),u=a(56131);function c(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return this.daysInYear(p.year())===355},weekOfYear:function(f,p,m){var g=this.newDate(f,p,m);return g.add(-g.dayOfWeek(),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInYear:function(f){for(var p=0,m=1;m<=12;m++)p+=this.daysInMonth(f,m);return p},daysInMonth:function(f,p){for(var m=this._validate(f,p,this.minDay,s.local.invalidMonth).toJD()-24e5+.5,g=0,b=0;bm)return d[g]-d[g-1];g++}return 30},weekDay:function(f,p,m){return this.dayOfWeek(f,p,m)!==5},toJD:function(f,p,m){var g=this._validate(f,p,m,s.local.invalidDate),b=12*(g.year()-1)+g.month()-15292;return g.day()+d[b-1]-1+24e5-.5},fromJD:function(f){for(var p=f-24e5+.5,m=0,g=0;gp);g++)m++;var b=m+15292,v=Math.floor((b-1)/12),h=v+1,y=b-12*v,w=p-d[m-1]+1;return this.newDate(h,y,w)},isValid:function(f,p,m){var g=s.baseCalendar.prototype.isValid.apply(this,arguments);return g&&(g=(f=f.year!=null?f.year:f)>=1276&&f<=1500),g},_validate:function(f,p,m,g){var b=s.baseCalendar.prototype._validate.apply(this,arguments);if(b.year<1276||b.year>1500)throw g.replace(/\{0\}/,this.local.name);return b}}),s.calendars.ummalqura=c;var d=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},63489:function(i,o,a){var s=a(56131);function u(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function c(g,b,v,h){if(this._calendar=g,this._year=b,this._month=v,this._day=h,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(m.local.invalidDate||m.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function d(g,b){return"000000".substring(0,b-(g=""+g).length)+g}function f(){this.shortYearCutoff="+10"}function p(g){this.local=this.regionalOptions[g]||this.regionalOptions[""]}s(u.prototype,{instance:function(g,b){g=(g||"gregorian").toLowerCase(),b=b||"";var v=this._localCals[g+"-"+b];if(!v&&this.calendars[g]&&(v=new this.calendars[g](b),this._localCals[g+"-"+b]=v),!v)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,g);return v},newDate:function(g,b,v,h,y){return(h=(g!=null&&g.year?g.calendar():typeof h=="string"?this.instance(h,y):h)||this.instance()).newDate(g,b,v)},substituteDigits:function(g){return function(b){return(b+"").replace(/[0-9]/g,function(v){return g[v]})}},substituteChineseDigits:function(g,b){return function(v){for(var h="",y=0;v>0;){var w=v%10;h=(w===0?"":g[w]+b[y])+h,y++,v=Math.floor(v/10)}return h.indexOf(g[1]+b[1])===0&&(h=h.substr(1)),h||g[0]}}}),s(c.prototype,{newDate:function(g,b,v){return this._calendar.newDate(g??this,b,v)},year:function(g){return arguments.length===0?this._year:this.set(g,"y")},month:function(g){return arguments.length===0?this._month:this.set(g,"m")},day:function(g){return arguments.length===0?this._day:this.set(g,"d")},date:function(g,b,v){if(!this._calendar.isValid(g,b,v))throw(m.local.invalidDate||m.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=g,this._month=b,this._day=v,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(g,b){return this._calendar.add(this,g,b)},set:function(g,b){return this._calendar.set(this,g,b)},compareTo:function(g){if(this._calendar.name!==g._calendar.name)throw(m.local.differentCalendars||m.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,g._calendar.local.name);var b=this._year!==g._year?this._year-g._year:this._month!==g._month?this.monthOfYear()-g.monthOfYear():this._day-g._day;return b===0?0:b<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(g){return this._calendar.fromJD(g)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(g){return this._calendar.fromJSDate(g)},toString:function(){return(this.year()<0?"-":"")+d(Math.abs(this.year()),4)+"-"+d(this.month(),2)+"-"+d(this.day(),2)}}),s(f.prototype,{_validateLevel:0,newDate:function(g,b,v){return g==null?this.today():(g.year&&(this._validate(g,b,v,m.local.invalidDate||m.regionalOptions[""].invalidDate),v=g.day(),b=g.month(),g=g.year()),new c(this,g,b,v))},today:function(){return this.fromJSDate(new Date)},epoch:function(g){return this._validate(g,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(g){var b=this._validate(g,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear);return(b.year()<0?"-":"")+d(Math.abs(b.year()),4)},monthsInYear:function(g){return this._validate(g,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear),12},monthOfYear:function(g,b){var v=this._validate(g,b,this.minDay,m.local.invalidMonth||m.regionalOptions[""].invalidMonth);return(v.month()+this.monthsInYear(v)-this.firstMonth)%this.monthsInYear(v)+this.minMonth},fromMonthOfYear:function(g,b){var v=(b+this.firstMonth-2*this.minMonth)%this.monthsInYear(g)+this.minMonth;return this._validate(g,v,this.minDay,m.local.invalidMonth||m.regionalOptions[""].invalidMonth),v},daysInYear:function(g){var b=this._validate(g,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear);return this.leapYear(b)?366:365},dayOfYear:function(g,b,v){var h=this._validate(g,b,v,m.local.invalidDate||m.regionalOptions[""].invalidDate);return h.toJD()-this.newDate(h.year(),this.fromMonthOfYear(h.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(g,b,v){var h=this._validate(g,b,v,m.local.invalidDate||m.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(h))+2)%this.daysInWeek()},extraInfo:function(g,b,v){return this._validate(g,b,v,m.local.invalidDate||m.regionalOptions[""].invalidDate),{}},add:function(g,b,v){return this._validate(g,this.minMonth,this.minDay,m.local.invalidDate||m.regionalOptions[""].invalidDate),this._correctAdd(g,this._add(g,b,v),b,v)},_add:function(g,b,v){if(this._validateLevel++,v==="d"||v==="w"){var h=g.toJD()+b*(v==="w"?this.daysInWeek():1),y=g.calendar().fromJD(h);return this._validateLevel--,[y.year(),y.month(),y.day()]}try{var w=g.year()+(v==="y"?b:0),_=g.monthOfYear()+(v==="m"?b:0);y=g.day(),v==="y"?(g.month()!==this.fromMonthOfYear(w,_)&&(_=this.newDate(w,g.month(),this.minDay).monthOfYear()),_=Math.min(_,this.monthsInYear(w)),y=Math.min(y,this.daysInMonth(w,this.fromMonthOfYear(w,_)))):v==="m"&&(function(T){for(;_k-1+T.minMonth;)w++,_-=k,k=T.monthsInYear(w)}(this),y=Math.min(y,this.daysInMonth(w,this.fromMonthOfYear(w,_))));var x=[w,this.fromMonthOfYear(w,_),y];return this._validateLevel--,x}catch(T){throw this._validateLevel--,T}},_correctAdd:function(g,b,v,h){if(!(this.hasYearZero||h!=="y"&&h!=="m"||b[0]!==0&&g.year()>0==b[0]>0)){var y={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[h],w=v<0?-1:1;b=this._add(g,v*y[0]+w*y[1],y[2])}return g.date(b[0],b[1],b[2])},set:function(g,b,v){this._validate(g,this.minMonth,this.minDay,m.local.invalidDate||m.regionalOptions[""].invalidDate);var h=v==="y"?b:g.year(),y=v==="m"?b:g.month(),w=v==="d"?b:g.day();return v!=="y"&&v!=="m"||(w=Math.min(w,this.daysInMonth(h,y))),g.date(h,y,w)},isValid:function(g,b,v){this._validateLevel++;var h=this.hasYearZero||g!==0;if(h){var y=this.newDate(g,b,this.minDay);h=b>=this.minMonth&&b-this.minMonth=this.minDay&&v-this.minDay13.5?13:1),k=y-(T>2.5?4716:4715);return k<=0&&k--,this.newDate(k,T,x)},toJSDate:function(g,b,v){var h=this._validate(g,b,v,m.local.invalidDate||m.regionalOptions[""].invalidDate),y=new Date(h.year(),h.month()-1,h.day());return y.setHours(0),y.setMinutes(0),y.setSeconds(0),y.setMilliseconds(0),y.setHours(y.getHours()>12?y.getHours()+2:0),y},fromJSDate:function(g){return this.newDate(g.getFullYear(),g.getMonth()+1,g.getDate())}});var m=i.exports=new u;m.cdate=c,m.baseCalendar=f,m.calendars.gregorian=p},94338:function(i,o,a){var s=a(56131),u=a(63489);s(u.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),u.local=u.regionalOptions[""],s(u.cdate.prototype,{formatDate:function(c,d){return typeof c!="string"&&(d=c,c=""),this._calendar.formatDate(c||"",this,d)}}),s(u.baseCalendar.prototype,{UNIX_EPOCH:u.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:u.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(c,d,f){if(typeof c!="string"&&(f=d,d=c,c=""),!d)return"";if(d.calendar()!==this)throw u.local.invalidFormat||u.regionalOptions[""].invalidFormat;c=c||this.local.dateFormat;for(var p,m,g,b=(f=f||{}).dayNamesShort||this.local.dayNamesShort,v=f.dayNames||this.local.dayNames,h=f.monthNumbers||this.local.monthNumbers,y=f.monthNamesShort||this.local.monthNamesShort,w=f.monthNames||this.local.monthNames,_=(f.calculateWeek||this.local.calculateWeek,function(E,I){for(var A=1;P+A1}),x=function(E,I,A,F){var j=""+I;if(_(E,F))for(;j.length1},O=function(N,R){var q=M(N,R),Y=[2,3,q?4:2,q?4:2,10,11,20]["oyYJ@!".indexOf(N)+1],L=new RegExp("^-?\\d{1,"+Y+"}"),W=d.substring(F).match(L);if(!W)throw(u.local.missingNumberAt||u.regionalOptions[""].missingNumberAt).replace(/\{0\}/,F);return F+=W[0].length,parseInt(W[0],10)},D=this,P=function(){if(typeof v=="function"){M("m");var N=v.call(D,d.substring(F));return F+=N.length,N}return O("m")},E=function(N,R,q,Y){for(var L=M(N,Y)?q:R,W=0;W-1){x=1,T=k;for(var B=this.daysInMonth(_,x);T>B;B=this.daysInMonth(_,x))x++,T-=B}return w>-1?this.fromJD(w):this.newDate(_,x,T)},determineDate:function(c,d,f,p,m){f&&typeof f!="object"&&(m=p,p=f,f=null),typeof p!="string"&&(m=p,p="");var g=this;return d=d?d.newDate():null,c==null?d:typeof c=="string"?function(b){try{return g.parseDate(p,b,m)}catch{}for(var v=((b=b.toLowerCase()).match(/^c/)&&f?f.newDate():null)||g.today(),h=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,y=h.exec(b);y;)v.add(parseInt(y[1],10),y[2]||"d"),y=h.exec(b);return v}(c):typeof c=="number"?isNaN(c)||c===1/0||c===-1/0?d:g.today().add(c,"d"):g.newDate(c)}})},69862:function(){},40964:function(){},72077:function(i,o,a){var s=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],u=typeof globalThis>"u"?a.g:globalThis;i.exports=function(){for(var c=[],d=0;d"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function b(_){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(T){return T.__proto__||Object.getPrototypeOf(T)},b(_)}var v=["AfterExport","AfterPlot","Animated","AnimatingFrame","AnimationInterrupted","AutoSize","BeforeExport","BeforeHover","ButtonClicked","Click","ClickAnnotation","Deselect","DoubleClick","Framework","Hover","LegendClick","LegendDoubleClick","Relayout","Relayouting","Restyle","Redraw","Selected","Selecting","SliderChange","SliderEnd","SliderStart","SunburstClick","Transitioning","TransitionInterrupted","Unhover","WebGlContextLost"],h=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick"],y=typeof window<"u";function w(_){var x=function(T){c(S,T);var k=f(S);function S(C){var M;return a(this,S),M=k.call(this,C),M.p=Promise.resolve(),M.resizeHandler=null,M.handlers={},M.syncWindowResize=M.syncWindowResize.bind(m(M)),M.syncEventHandlers=M.syncEventHandlers.bind(m(M)),M.attachUpdateEvents=M.attachUpdateEvents.bind(m(M)),M.getRef=M.getRef.bind(m(M)),M.handleUpdate=M.handleUpdate.bind(m(M)),M.figureCallback=M.figureCallback.bind(m(M)),M.updatePlotly=M.updatePlotly.bind(m(M)),M}return u(S,[{key:"updatePlotly",value:function(M,O,D){var P=this;this.p=this.p.then(function(){if(!P.unmounting){if(!P.el)throw new Error("Missing element reference");return _.react(P.el,{data:P.props.data,layout:P.props.layout,config:P.props.config,frames:P.props.frames})}}).then(function(){P.unmounting||(P.syncWindowResize(M),P.syncEventHandlers(),P.figureCallback(O),D&&P.attachUpdateEvents())}).catch(function(E){P.props.onError&&P.props.onError(E)})}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(M){this.unmounting=!1;var O=M.frames&&M.frames.length?M.frames.length:0,D=this.props.frames&&this.props.frames.length?this.props.frames.length:0,P=!(M.layout===this.props.layout&&M.data===this.props.data&&M.config===this.props.config&&D===O),E=M.revision!==void 0,I=M.revision!==this.props.revision;!P&&(!E||E&&!I)||this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&y&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),_.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var M=this;!this.el||!this.el.removeListener||h.forEach(function(O){M.el.on(O,M.handleUpdate)})}},{key:"removeUpdateEvents",value:function(){var M=this;!this.el||!this.el.removeListener||h.forEach(function(O){M.el.removeListener(O,M.handleUpdate)})}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(M){if(typeof M=="function"){var O=this.el,D=O.data,P=O.layout,E=this.el._transitionData?this.el._transitionData._frames:null,I={data:D,layout:P,frames:E};M(I,this.el)}}},{key:"syncWindowResize",value:function(M){var O=this;y&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return _.Plots.resize(O.el)},window.addEventListener("resize",this.resizeHandler),M&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(M){this.el=M,this.props.debug&&y&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var M=this;v.forEach(function(O){var D=M.props["on"+O],P=M.handlers[O],E=!!P;D&&!E?M.addEventHandler(O,D):!D&&E?M.removeEventHandler(O):D&&E&&D!==P&&(M.removeEventHandler(O),M.addEventHandler(O,D))})}},{key:"addEventHandler",value:function(M,O){this.handlers[M]=O,this.el.on(this.getPlotlyEventName(M),this.handlers[M])}},{key:"removeEventHandler",value:function(M){this.el.removeListener(this.getPlotlyEventName(M),this.handlers[M]),delete this.handlers[M]}},{key:"getPlotlyEventName",value:function(M){return"plotly_"+M.toLowerCase()}},{key:"render",value:function(){return n.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),S}(n.Component);return x.propTypes={data:r.default.arrayOf(r.default.object),config:r.default.object,layout:r.default.object,frames:r.default.arrayOf(r.default.object),revision:r.default.number,onInitialized:r.default.func,onPurge:r.default.func,onError:r.default.func,onUpdate:r.default.func,debug:r.default.bool,style:r.default.object,className:r.default.string,useResizeHandler:r.default.bool,divId:r.default.string},v.forEach(function(T){x.propTypes["on"+T]=r.default.func}),x.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},x}})(zz);const zpe=lr(zz),Bz=zpe(jpe),Bpe=Je.createContext(null),Wz=()=>ge.useContext(Bpe),ub=e=>{var i;const t=Wz(),n=e.data.some(({type:o})=>o==="histogram"),l=(t==null?void 0:t.isXaxisAsCategorical)&&!n?{type:"category",categoryorder:"category ascending"}:{};return ke.jsx("div",{children:ke.jsx(Bz,{data:e.data,layout:{...e.layout,title:void 0,xaxis:{...(i=e.layout)==null?void 0:i.xaxis,...l}},config:{responsive:!0},style:{width:"100%",minHeight:300+100*(1+e.widgetSize/2),maxHeight:400}})})};var qz={},Uz={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Uz);var Cn=Uz.exports,kw={exports:{}},aD;function Ir(){return aD||(aD=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r{let t;const n=new Set,r=(s,u)=>{const c=typeof s=="function"?s(t):s;if(!Object.is(c,t)){const d=t;t=u??typeof c!="object"?c:Object.assign({},t,c),n.forEach(f=>f(t,d))}},l=()=>t,a={setState:r,getState:l,subscribe:s=>(n.add(s),()=>n.delete(s)),destroy:()=>{(Hpe?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,l,a),a},Gz=e=>e?cD(e):cD;var Yz={exports:{}},Xz={},Kz={exports:{}},Zz={};/** +`)):H=z.stylize("[Circular]","special")),C(W)){if(L&&Y.match(/^\d+$/))return H;(W=JSON.stringify(""+Y)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(W=W.slice(1,-1),W=z.stylize(W,"name")):(W=W.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),W=z.stylize(W,"string"))}return W+": "+H}function x(z){return Array.isArray(z)}function _(z){return typeof z=="boolean"}function w(z){return z===null}function S(z){return typeof z=="number"}function k(z){return typeof z=="string"}function C(z){return z===void 0}function T(z){return M(z)&&E(z)==="[object RegExp]"}function M(z){return typeof z=="object"&&z!==null}function O(z){return M(z)&&E(z)==="[object Date]"}function D(z){return M(z)&&(E(z)==="[object Error]"||z instanceof Error)}function P(z){return typeof z=="function"}function E(z){return Object.prototype.toString.call(z)}function I(z){return z<10?"0"+z.toString(10):z.toString(10)}o.debuglog=function(z){if(z=z.toUpperCase(),!d[z])if(f.test(z)){var N=s.pid;d[z]=function(){var R=o.format.apply(o,arguments);console.error("%s %d: %s",z,N,R)}}else d[z]=function(){};return d[z]},o.inspect=h,h.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},h.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},o.types=a(4936),o.isArray=x,o.isBoolean=_,o.isNull=w,o.isNullOrUndefined=function(z){return z==null},o.isNumber=S,o.isString=k,o.isSymbol=function(z){return typeof z=="symbol"},o.isUndefined=C,o.isRegExp=T,o.types.isRegExp=T,o.isObject=M,o.isDate=O,o.types.isDate=O,o.isError=D,o.types.isNativeError=D,o.isFunction=P,o.isPrimitive=function(z){return z===null||typeof z=="boolean"||typeof z=="number"||typeof z=="string"||typeof z=="symbol"||z===void 0},o.isBuffer=a(45920);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function F(z,N){return Object.prototype.hasOwnProperty.call(z,N)}o.log=function(){var z,N;console.log("%s - %s",(N=[I((z=new Date).getHours()),I(z.getMinutes()),I(z.getSeconds())].join(":"),[z.getDate(),A[z.getMonth()],N].join(" ")),o.format.apply(o,arguments))},o.inherits=a(42018),o._extend=function(z,N){if(!N||!M(N))return z;for(var R=Object.keys(N),q=R.length;q--;)z[R[q]]=N[R[q]];return z};var j=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function B(z,N){if(!z){var R=new Error("Promise was rejected with a falsy value");R.reason=z,z=R}return N(z)}o.promisify=function(z){if(typeof z!="function")throw new TypeError('The "original" argument must be of type Function');if(j&&z[j]){var N;if(typeof(N=z[j])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(N,j,{value:N,enumerable:!1,writable:!1,configurable:!0}),N}function N(){for(var R,q,Y=new Promise(function(H,G){R=H,q=G}),L=[],W=0;W"u"?a.g:globalThis,g=u(),b=c("String.prototype.slice"),v={},m=Object.getPrototypeOf;p&&d&&m&&s(g,function(x){if(typeof h[x]=="function"){var _=new h[x];if(Symbol.toStringTag in _){var w=m(_),S=d(w,Symbol.toStringTag);if(!S){var k=m(w);S=d(k,Symbol.toStringTag)}v[x]=S.get}}});var y=a(9187);i.exports=function(x){return!!y(x)&&(p&&Symbol.toStringTag in x?function(_){var w=!1;return s(v,function(S,k){if(!w)try{var C=S.call(_);C===k&&(w=C)}catch{}}),w}(x):b(f(x),8,-1))}},3961:function(i,o,a){var s=a(63489),u=a(56131),c=s.instance();function d(m){this.local=this.regionalOptions[m||""]||this.regionalOptions[""]}d.prototype=new s.baseCalendar,u(d.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(m,y){if(typeof m=="string"){var x=m.match(p);return x?x[0]:""}var _=this._validateYear(m),w=m.month(),S=""+this.toChineseMonth(_,w);return y&&S.length<2&&(S="0"+S),this.isIntercalaryMonth(_,w)&&(S+="i"),S},monthNames:function(m){if(typeof m=="string"){var y=m.match(h);return y?y[0]:""}var x=this._validateYear(m),_=m.month(),w=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(x,_)-1];return this.isIntercalaryMonth(x,_)&&(w="闰"+w),w},monthNamesShort:function(m){if(typeof m=="string"){var y=m.match(g);return y?y[0]:""}var x=this._validateYear(m),_=m.month(),w=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(x,_)-1];return this.isIntercalaryMonth(x,_)&&(w="闰"+w),w},parseMonth:function(m,y){m=this._validateYear(m);var x,_=parseInt(y);if(isNaN(_))y[0]==="闰"&&(x=!0,y=y.substring(1)),y[y.length-1]==="月"&&(y=y.substring(0,y.length-1)),_=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(y);else{var w=y[y.length-1];x=w==="i"||w==="I"}return this.toMonthIndex(m,_,x)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(m,y){if(m.year&&(m=m.year()),typeof m!="number"||m<1888||m>2111)throw y.replace(/\{0\}/,this.local.name);return m},toMonthIndex:function(m,y,x){var _=this.intercalaryMonth(m);if(x&&y!==_||y<1||y>12)throw s.local.invalidMonth.replace(/\{0\}/,this.local.name);return _?!x&&y<=_?y-1:y:y-1},toChineseMonth:function(m,y){m.year&&(y=(m=m.year()).month());var x=this.intercalaryMonth(m);if(y<0||y>(x?12:11))throw s.local.invalidMonth.replace(/\{0\}/,this.local.name);return x?y>13},isIntercalaryMonth:function(m,y){m.year&&(y=(m=m.year()).month());var x=this.intercalaryMonth(m);return!!x&&x===y},leapYear:function(m){return this.intercalaryMonth(m)!==0},weekOfYear:function(m,y,x){var _,w=this._validateYear(m,s.local.invalidyear),S=v[w-v[0]],k=S>>9&4095,C=S>>5&15,T=31&S;(_=c.newDate(k,C,T)).add(4-(_.dayOfWeek()||7),"d");var M=this.toJD(m,y,x)-_.toJD();return 1+Math.floor(M/7)},monthsInYear:function(m){return this.leapYear(m)?13:12},daysInMonth:function(m,y){m.year&&(y=m.month(),m=m.year()),m=this._validateYear(m);var x=b[m-b[0]];if(y>(x>>13?12:11))throw s.local.invalidMonth.replace(/\{0\}/,this.local.name);return x&1<<12-y?30:29},weekDay:function(m,y,x){return(this.dayOfWeek(m,y,x)||7)<6},toJD:function(m,y,x){var _=this._validate(m,S,x,s.local.invalidDate);m=this._validateYear(_.year()),y=_.month(),x=_.day();var w=this.isIntercalaryMonth(m,y),S=this.toChineseMonth(m,y),k=function(C,T,M,O,D){var P,E,I;if(typeof C=="object")E=C,P=T||{};else{var A;if(!(typeof C=="number"&&C>=1888&&C<=2111))throw new Error("Lunar year outside range 1888-2111");if(!(typeof T=="number"&&T>=1&&T<=12))throw new Error("Lunar month outside range 1 - 12");if(!(typeof M=="number"&&M>=1&&M<=30))throw new Error("Lunar day outside range 1 - 30");typeof O=="object"?(A=!1,P=O):(A=!!O,P={}),E={year:C,month:T,day:M,isIntercalary:A}}I=E.day-1;var F,j=b[E.year-b[0]],B=j>>13;F=B&&(E.month>B||E.isIntercalary)?E.month:E.month-1;for(var z=0;z>9&4095,(N>>5&15)-1,(31&N)+I);return P.year=R.getFullYear(),P.month=1+R.getMonth(),P.day=R.getDate(),P}(m,S,x,w);return c.toJD(k.year,k.month,k.day)},fromJD:function(m){var y=c.fromJD(m),x=function(w,S,k,C){var T,M;if(typeof w=="object")T=w,M=S||{};else{if(!(typeof w=="number"&&w>=1888&&w<=2111))throw new Error("Solar year outside range 1888-2111");if(!(typeof S=="number"&&S>=1&&S<=12))throw new Error("Solar month outside range 1 - 12");if(!(typeof k=="number"&&k>=1&&k<=31))throw new Error("Solar day outside range 1 - 31");T={year:w,month:S,day:k},M={}}var O=v[T.year-v[0]],D=T.year<<9|T.month<<5|T.day;M.year=D>=O?T.year:T.year-1,O=v[M.year-v[0]];var P,E=new Date(O>>9&4095,(O>>5&15)-1,31&O),I=new Date(T.year,T.month-1,T.day);P=Math.round((I-E)/864e5);var A,F=b[M.year-b[0]];for(A=0;A<13;A++){var j=F&1<<12-A?30:29;if(P>13;return!B||A=2&&g<=6},extraInfo:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate);return{century:d[Math.floor((g.year()-1)/100)+1]||""}},toJD:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate);return f=g.year()+(g.year()<0?1:0),p=g.month(),(h=g.day())+(p>1?16:0)+(p>2?32*(p-2):0)+400*(f-1)+this.jdEpoch-1},fromJD:function(f){f=Math.floor(f+.5)-Math.floor(this.jdEpoch)-1;var p=Math.floor(f/400)+1;f-=400*(p-1),f+=f>15?16:0;var h=Math.floor(f/32)+1,g=f-32*(h-1)+1;return this.newDate(p<=0?p-1:p,h,g)}});var d={20:"Fruitbat",21:"Anchovy"};s.calendars.discworld=c},37715:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var f=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear);return(d=f.year()+(f.year()<0?1:0))%4==3||d%4==-1},monthsInYear:function(d){return this._validate(d,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear),13},weekOfYear:function(d,f,p){var h=this.newDate(d,f,p);return h.add(-h.dayOfWeek(),"d"),Math.floor((h.dayOfYear()-1)/7)+1},daysInMonth:function(d,f){var p=this._validate(d,f,this.minDay,s.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===13&&this.leapYear(p.year())?1:0)},weekDay:function(d,f,p){return(this.dayOfWeek(d,f,p)||7)<6},toJD:function(d,f,p){var h=this._validate(d,f,p,s.local.invalidDate);return(d=h.year())<0&&d++,h.day()+30*(h.month()-1)+365*(d-1)+Math.floor(d/4)+this.jdEpoch-1},fromJD:function(d){var f=Math.floor(d)+.5-this.jdEpoch,p=Math.floor((f-Math.floor((f+366)/1461))/365)+1;p<=0&&p--,f=Math.floor(d)+.5-this.newDate(p,1,1).toJD();var h=Math.floor(f/30)+1,g=f-30*(h-1)+1;return this.newDate(p,h,g)}}),s.calendars.ethiopian=c},99384:function(i,o,a){var s=a(63489),u=a(56131);function c(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}function d(f,p){return f-p*Math.floor(f/p)}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return this._leapYear(p.year())},_leapYear:function(f){return d(7*(f=f<0?f+1:f)+1,19)<7},monthsInYear:function(f){return this._validate(f,this.minMonth,this.minDay,s.local.invalidYear),this._leapYear(f.year?f.year():f)?13:12},weekOfYear:function(f,p,h){var g=this.newDate(f,p,h);return g.add(-g.dayOfWeek(),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInYear:function(f){return f=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear).year(),this.toJD(f===-1?1:f+1,7,1)-this.toJD(f,7,1)},daysInMonth:function(f,p){return f.year&&(p=f.month(),f=f.year()),this._validate(f,p,this.minDay,s.local.invalidMonth),p===12&&this.leapYear(f)||p===8&&d(this.daysInYear(f),10)===5?30:p===9&&d(this.daysInYear(f),10)===3?29:this.daysPerMonth[p-1]},weekDay:function(f,p,h){return this.dayOfWeek(f,p,h)!==6},extraInfo:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate);return{yearType:(this.leapYear(g)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(g)%10-3]}},toJD:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate);f=g.year(),p=g.month(),h=g.day();var b=f<=0?f+1:f,v=this.jdEpoch+this._delay1(b)+this._delay2(b)+h+1;if(p<7){for(var m=7;m<=this.monthsInYear(f);m++)v+=this.daysInMonth(f,m);for(m=1;m=this.toJD(p===-1?1:p+1,7,1);)p++;for(var h=fthis.toJD(p,h,this.daysInMonth(p,h));)h++;var g=f-this.toJD(p,h,1)+1;return this.newDate(p,h,g)}}),s.calendars.hebrew=c},43805:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(d){return(11*this._validate(d,this.minMonth,this.minDay,s.local.invalidYear).year()+14)%30<11},weekOfYear:function(d,f,p){var h=this.newDate(d,f,p);return h.add(-h.dayOfWeek(),"d"),Math.floor((h.dayOfYear()-1)/7)+1},daysInYear:function(d){return this.leapYear(d)?355:354},daysInMonth:function(d,f){var p=this._validate(d,f,this.minDay,s.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(d,f,p){return this.dayOfWeek(d,f,p)!==5},toJD:function(d,f,p){var h=this._validate(d,f,p,s.local.invalidDate);return d=h.year(),f=h.month(),d=d<=0?d+1:d,(p=h.day())+Math.ceil(29.5*(f-1))+354*(d-1)+Math.floor((3+11*d)/30)+this.jdEpoch-1},fromJD:function(d){d=Math.floor(d)+.5;var f=Math.floor((30*(d-this.jdEpoch)+10646)/10631);f=f<=0?f-1:f;var p=Math.min(12,Math.ceil((d-29-this.toJD(f,1,1))/29.5)+1),h=d-this.toJD(f,p,1)+1;return this.newDate(f,p,h)}}),s.calendars.islamic=c},88874:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var f=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear);return(d=f.year()<0?f.year()+1:f.year())%4==0},weekOfYear:function(d,f,p){var h=this.newDate(d,f,p);return h.add(4-(h.dayOfWeek()||7),"d"),Math.floor((h.dayOfYear()-1)/7)+1},daysInMonth:function(d,f){var p=this._validate(d,f,this.minDay,s.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(d,f,p){return(this.dayOfWeek(d,f,p)||7)<6},toJD:function(d,f,p){var h=this._validate(d,f,p,s.local.invalidDate);return d=h.year(),f=h.month(),p=h.day(),d<0&&d++,f<=2&&(d--,f+=12),Math.floor(365.25*(d+4716))+Math.floor(30.6001*(f+1))+p-1524.5},fromJD:function(d){var f=Math.floor(d+.5)+1524,p=Math.floor((f-122.1)/365.25),h=Math.floor(365.25*p),g=Math.floor((f-h)/30.6001),b=g-Math.floor(g<14?1:13),v=p-Math.floor(b>2?4716:4715),m=f-h-Math.floor(30.6001*g);return v<=0&&v--,this.newDate(v,b,m)}}),s.calendars.julian=c},83290:function(i,o,a){var s=a(63489),u=a(56131);function c(p){this.local=this.regionalOptions[p||""]||this.regionalOptions[""]}function d(p,h){return p-h*Math.floor(p/h)}function f(p,h){return d(p-1,h)+1}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(p){return this._validate(p,this.minMonth,this.minDay,s.local.invalidYear),!1},formatYear:function(p){p=this._validate(p,this.minMonth,this.minDay,s.local.invalidYear).year();var h=Math.floor(p/400);return p%=400,p+=p<0?400:0,h+"."+Math.floor(p/20)+"."+p%20},forYear:function(p){if((p=p.split(".")).length<3)throw"Invalid Mayan year";for(var h=0,g=0;g19||g>0&&b<0)throw"Invalid Mayan year";h=20*h+b}return h},monthsInYear:function(p){return this._validate(p,this.minMonth,this.minDay,s.local.invalidYear),18},weekOfYear:function(p,h,g){return this._validate(p,h,g,s.local.invalidDate),0},daysInYear:function(p){return this._validate(p,this.minMonth,this.minDay,s.local.invalidYear),360},daysInMonth:function(p,h){return this._validate(p,h,this.minDay,s.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(p,h,g){return this._validate(p,h,g,s.local.invalidDate).day()},weekDay:function(p,h,g){return this._validate(p,h,g,s.local.invalidDate),!0},extraInfo:function(p,h,g){var b=this._validate(p,h,g,s.local.invalidDate).toJD(),v=this._toHaab(b),m=this._toTzolkin(b);return{haabMonthName:this.local.haabMonths[v[0]-1],haabMonth:v[0],haabDay:v[1],tzolkinDayName:this.local.tzolkinMonths[m[0]-1],tzolkinDay:m[0],tzolkinTrecena:m[1]}},_toHaab:function(p){var h=d(8+(p-=this.jdEpoch)+340,365);return[Math.floor(h/20)+1,d(h,20)]},_toTzolkin:function(p){return[f(20+(p-=this.jdEpoch),20),f(p+4,13)]},toJD:function(p,h,g){var b=this._validate(p,h,g,s.local.invalidDate);return b.day()+20*b.month()+360*b.year()+this.jdEpoch},fromJD:function(p){p=Math.floor(p)+.5-this.jdEpoch;var h=Math.floor(p/360);p%=360,p+=p<0?360:0;var g=Math.floor(p/20),b=p%20;return this.newDate(h,g,b)}}),s.calendars.mayan=c},29108:function(i,o,a){var s=a(63489),u=a(56131);function c(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar;var d=s.instance("gregorian");u(c.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear);return d.leapYear(p.year()+(p.year()<1?1:0)+1469)},weekOfYear:function(f,p,h){var g=this.newDate(f,p,h);return g.add(1-(g.dayOfWeek()||7),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInMonth:function(f,p){var h=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===12&&this.leapYear(h.year())?1:0)},weekDay:function(f,p,h){return(this.dayOfWeek(f,p,h)||7)<6},toJD:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidMonth);(f=g.year())<0&&f++;for(var b=g.day(),v=1;v=this.toJD(p+1,1,1);)p++;for(var h=f-Math.floor(this.toJD(p,1,1)+.5)+1,g=1;h>this.daysInMonth(p,g);)h-=this.daysInMonth(p,g),g++;return this.newDate(p,g,h)}}),s.calendars.nanakshahi=c},55422:function(i,o,a){var s=a(63489),u=a(56131);function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(d){return this.daysInYear(d)!==this.daysPerYear},weekOfYear:function(d,f,p){var h=this.newDate(d,f,p);return h.add(-h.dayOfWeek(),"d"),Math.floor((h.dayOfYear()-1)/7)+1},daysInYear:function(d){if(d=this._validate(d,this.minMonth,this.minDay,s.local.invalidYear).year(),this.NEPALI_CALENDAR_DATA[d]===void 0)return this.daysPerYear;for(var f=0,p=this.minMonth;p<=12;p++)f+=this.NEPALI_CALENDAR_DATA[d][p];return f},daysInMonth:function(d,f){return d.year&&(f=d.month(),d=d.year()),this._validate(d,f,this.minDay,s.local.invalidMonth),this.NEPALI_CALENDAR_DATA[d]===void 0?this.daysPerMonth[f-1]:this.NEPALI_CALENDAR_DATA[d][f]},weekDay:function(d,f,p){return this.dayOfWeek(d,f,p)!==6},toJD:function(d,f,p){var h=this._validate(d,f,p,s.local.invalidDate);d=h.year(),f=h.month(),p=h.day();var g=s.instance(),b=0,v=f,m=d;this._createMissingCalendarData(d);var y=d-(v>9||v===9&&p>=this.NEPALI_CALENDAR_DATA[m][0]?56:57);for(f!==9&&(b=p,v--);v!==9;)v<=0&&(v=12,m--),b+=this.NEPALI_CALENDAR_DATA[m][v],v--;return f===9?(b+=p-this.NEPALI_CALENDAR_DATA[m][0])<0&&(b+=g.daysInYear(y)):b+=this.NEPALI_CALENDAR_DATA[m][9]-this.NEPALI_CALENDAR_DATA[m][0],g.newDate(y,1,1).add(b,"d").toJD()},fromJD:function(d){var f=s.instance().fromJD(d),p=f.year(),h=f.dayOfYear(),g=p+56;this._createMissingCalendarData(g);for(var b=9,v=this.NEPALI_CALENDAR_DATA[g][0],m=this.NEPALI_CALENDAR_DATA[g][b]-v+1;h>m;)++b>12&&(b=1,g++),m+=this.NEPALI_CALENDAR_DATA[g][b];var y=this.NEPALI_CALENDAR_DATA[g][b]-(m-h);return this.newDate(g,b,y)},_createMissingCalendarData:function(d){var f=this.daysPerMonth.slice(0);f.unshift(17);for(var p=d-1;p0?474:473))%2820+474+38)%2816<682},weekOfYear:function(f,p,h){var g=this.newDate(f,p,h);return g.add(-(g.dayOfWeek()+1)%7,"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInMonth:function(f,p){var h=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===12&&this.leapYear(h.year())?1:0)},weekDay:function(f,p,h){return this.dayOfWeek(f,p,h)!==5},toJD:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate);f=g.year(),p=g.month(),h=g.day();var b=f-(f>=0?474:473),v=474+d(b,2820);return h+(p<=7?31*(p-1):30*(p-1)+6)+Math.floor((682*v-110)/2816)+365*(v-1)+1029983*Math.floor(b/2820)+this.jdEpoch-1},fromJD:function(f){var p=(f=Math.floor(f)+.5)-this.toJD(475,1,1),h=Math.floor(p/1029983),g=d(p,1029983),b=2820;if(g!==1029982){var v=Math.floor(g/366),m=d(g,366);b=Math.floor((2134*v+2816*m+2815)/1028522)+v+1}var y=b+2820*h+474;y=y<=0?y-1:y;var x=f-this.toJD(y,1,1)+1,_=x<=186?Math.ceil(x/31):Math.ceil((x-6)/30),w=f-this.toJD(y,_,1)+1;return this.newDate(y,_,w)}}),s.calendars.persian=c,s.calendars.jalali=c},31320:function(i,o,a){var s=a(63489),u=a(56131),c=s.instance();function d(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}d.prototype=new s.baseCalendar,u(d.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(p.year()),c.leapYear(f)},weekOfYear:function(f,p,h){var g=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(g.year()),c.weekOfYear(f,g.month(),g.day())},daysInMonth:function(f,p){var h=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===2&&this.leapYear(h.year())?1:0)},weekDay:function(f,p,h){return(this.dayOfWeek(f,p,h)||7)<6},toJD:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate);return f=this._t2gYear(g.year()),c.toJD(f,g.month(),g.day())},fromJD:function(f){var p=c.fromJD(f),h=this._g2tYear(p.year());return this.newDate(h,p.month(),p.day())},_t2gYear:function(f){return f+this.yearsOffset+(f>=-this.yearsOffset&&f<=-1?1:0)},_g2tYear:function(f){return f-this.yearsOffset-(f>=1&&f<=this.yearsOffset?1:0)}}),s.calendars.taiwan=d},51367:function(i,o,a){var s=a(63489),u=a(56131),c=s.instance();function d(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}d.prototype=new s.baseCalendar,u(d.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(p.year()),c.leapYear(f)},weekOfYear:function(f,p,h){var g=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return f=this._t2gYear(g.year()),c.weekOfYear(f,g.month(),g.day())},daysInMonth:function(f,p){var h=this._validate(f,p,this.minDay,s.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===2&&this.leapYear(h.year())?1:0)},weekDay:function(f,p,h){return(this.dayOfWeek(f,p,h)||7)<6},toJD:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate);return f=this._t2gYear(g.year()),c.toJD(f,g.month(),g.day())},fromJD:function(f){var p=c.fromJD(f),h=this._g2tYear(p.year());return this.newDate(h,p.month(),p.day())},_t2gYear:function(f){return f-this.yearsOffset-(f>=1&&f<=this.yearsOffset?1:0)},_g2tYear:function(f){return f+this.yearsOffset+(f>=-this.yearsOffset&&f<=-1?1:0)}}),s.calendars.thai=d},21457:function(i,o,a){var s=a(63489),u=a(56131);function c(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}c.prototype=new s.baseCalendar,u(c.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(f){var p=this._validate(f,this.minMonth,this.minDay,s.local.invalidYear);return this.daysInYear(p.year())===355},weekOfYear:function(f,p,h){var g=this.newDate(f,p,h);return g.add(-g.dayOfWeek(),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInYear:function(f){for(var p=0,h=1;h<=12;h++)p+=this.daysInMonth(f,h);return p},daysInMonth:function(f,p){for(var h=this._validate(f,p,this.minDay,s.local.invalidMonth).toJD()-24e5+.5,g=0,b=0;bh)return d[g]-d[g-1];g++}return 30},weekDay:function(f,p,h){return this.dayOfWeek(f,p,h)!==5},toJD:function(f,p,h){var g=this._validate(f,p,h,s.local.invalidDate),b=12*(g.year()-1)+g.month()-15292;return g.day()+d[b-1]-1+24e5-.5},fromJD:function(f){for(var p=f-24e5+.5,h=0,g=0;gp);g++)h++;var b=h+15292,v=Math.floor((b-1)/12),m=v+1,y=b-12*v,x=p-d[h-1]+1;return this.newDate(m,y,x)},isValid:function(f,p,h){var g=s.baseCalendar.prototype.isValid.apply(this,arguments);return g&&(g=(f=f.year!=null?f.year:f)>=1276&&f<=1500),g},_validate:function(f,p,h,g){var b=s.baseCalendar.prototype._validate.apply(this,arguments);if(b.year<1276||b.year>1500)throw g.replace(/\{0\}/,this.local.name);return b}}),s.calendars.ummalqura=c;var d=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},63489:function(i,o,a){var s=a(56131);function u(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function c(g,b,v,m){if(this._calendar=g,this._year=b,this._month=v,this._day=m,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(h.local.invalidDate||h.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function d(g,b){return"000000".substring(0,b-(g=""+g).length)+g}function f(){this.shortYearCutoff="+10"}function p(g){this.local=this.regionalOptions[g]||this.regionalOptions[""]}s(u.prototype,{instance:function(g,b){g=(g||"gregorian").toLowerCase(),b=b||"";var v=this._localCals[g+"-"+b];if(!v&&this.calendars[g]&&(v=new this.calendars[g](b),this._localCals[g+"-"+b]=v),!v)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,g);return v},newDate:function(g,b,v,m,y){return(m=(g!=null&&g.year?g.calendar():typeof m=="string"?this.instance(m,y):m)||this.instance()).newDate(g,b,v)},substituteDigits:function(g){return function(b){return(b+"").replace(/[0-9]/g,function(v){return g[v]})}},substituteChineseDigits:function(g,b){return function(v){for(var m="",y=0;v>0;){var x=v%10;m=(x===0?"":g[x]+b[y])+m,y++,v=Math.floor(v/10)}return m.indexOf(g[1]+b[1])===0&&(m=m.substr(1)),m||g[0]}}}),s(c.prototype,{newDate:function(g,b,v){return this._calendar.newDate(g??this,b,v)},year:function(g){return arguments.length===0?this._year:this.set(g,"y")},month:function(g){return arguments.length===0?this._month:this.set(g,"m")},day:function(g){return arguments.length===0?this._day:this.set(g,"d")},date:function(g,b,v){if(!this._calendar.isValid(g,b,v))throw(h.local.invalidDate||h.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=g,this._month=b,this._day=v,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(g,b){return this._calendar.add(this,g,b)},set:function(g,b){return this._calendar.set(this,g,b)},compareTo:function(g){if(this._calendar.name!==g._calendar.name)throw(h.local.differentCalendars||h.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,g._calendar.local.name);var b=this._year!==g._year?this._year-g._year:this._month!==g._month?this.monthOfYear()-g.monthOfYear():this._day-g._day;return b===0?0:b<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(g){return this._calendar.fromJD(g)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(g){return this._calendar.fromJSDate(g)},toString:function(){return(this.year()<0?"-":"")+d(Math.abs(this.year()),4)+"-"+d(this.month(),2)+"-"+d(this.day(),2)}}),s(f.prototype,{_validateLevel:0,newDate:function(g,b,v){return g==null?this.today():(g.year&&(this._validate(g,b,v,h.local.invalidDate||h.regionalOptions[""].invalidDate),v=g.day(),b=g.month(),g=g.year()),new c(this,g,b,v))},today:function(){return this.fromJSDate(new Date)},epoch:function(g){return this._validate(g,this.minMonth,this.minDay,h.local.invalidYear||h.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(g){var b=this._validate(g,this.minMonth,this.minDay,h.local.invalidYear||h.regionalOptions[""].invalidYear);return(b.year()<0?"-":"")+d(Math.abs(b.year()),4)},monthsInYear:function(g){return this._validate(g,this.minMonth,this.minDay,h.local.invalidYear||h.regionalOptions[""].invalidYear),12},monthOfYear:function(g,b){var v=this._validate(g,b,this.minDay,h.local.invalidMonth||h.regionalOptions[""].invalidMonth);return(v.month()+this.monthsInYear(v)-this.firstMonth)%this.monthsInYear(v)+this.minMonth},fromMonthOfYear:function(g,b){var v=(b+this.firstMonth-2*this.minMonth)%this.monthsInYear(g)+this.minMonth;return this._validate(g,v,this.minDay,h.local.invalidMonth||h.regionalOptions[""].invalidMonth),v},daysInYear:function(g){var b=this._validate(g,this.minMonth,this.minDay,h.local.invalidYear||h.regionalOptions[""].invalidYear);return this.leapYear(b)?366:365},dayOfYear:function(g,b,v){var m=this._validate(g,b,v,h.local.invalidDate||h.regionalOptions[""].invalidDate);return m.toJD()-this.newDate(m.year(),this.fromMonthOfYear(m.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(g,b,v){var m=this._validate(g,b,v,h.local.invalidDate||h.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(m))+2)%this.daysInWeek()},extraInfo:function(g,b,v){return this._validate(g,b,v,h.local.invalidDate||h.regionalOptions[""].invalidDate),{}},add:function(g,b,v){return this._validate(g,this.minMonth,this.minDay,h.local.invalidDate||h.regionalOptions[""].invalidDate),this._correctAdd(g,this._add(g,b,v),b,v)},_add:function(g,b,v){if(this._validateLevel++,v==="d"||v==="w"){var m=g.toJD()+b*(v==="w"?this.daysInWeek():1),y=g.calendar().fromJD(m);return this._validateLevel--,[y.year(),y.month(),y.day()]}try{var x=g.year()+(v==="y"?b:0),_=g.monthOfYear()+(v==="m"?b:0);y=g.day(),v==="y"?(g.month()!==this.fromMonthOfYear(x,_)&&(_=this.newDate(x,g.month(),this.minDay).monthOfYear()),_=Math.min(_,this.monthsInYear(x)),y=Math.min(y,this.daysInMonth(x,this.fromMonthOfYear(x,_)))):v==="m"&&(function(S){for(;_k-1+S.minMonth;)x++,_-=k,k=S.monthsInYear(x)}(this),y=Math.min(y,this.daysInMonth(x,this.fromMonthOfYear(x,_))));var w=[x,this.fromMonthOfYear(x,_),y];return this._validateLevel--,w}catch(S){throw this._validateLevel--,S}},_correctAdd:function(g,b,v,m){if(!(this.hasYearZero||m!=="y"&&m!=="m"||b[0]!==0&&g.year()>0==b[0]>0)){var y={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[m],x=v<0?-1:1;b=this._add(g,v*y[0]+x*y[1],y[2])}return g.date(b[0],b[1],b[2])},set:function(g,b,v){this._validate(g,this.minMonth,this.minDay,h.local.invalidDate||h.regionalOptions[""].invalidDate);var m=v==="y"?b:g.year(),y=v==="m"?b:g.month(),x=v==="d"?b:g.day();return v!=="y"&&v!=="m"||(x=Math.min(x,this.daysInMonth(m,y))),g.date(m,y,x)},isValid:function(g,b,v){this._validateLevel++;var m=this.hasYearZero||g!==0;if(m){var y=this.newDate(g,b,this.minDay);m=b>=this.minMonth&&b-this.minMonth=this.minDay&&v-this.minDay13.5?13:1),k=y-(S>2.5?4716:4715);return k<=0&&k--,this.newDate(k,S,w)},toJSDate:function(g,b,v){var m=this._validate(g,b,v,h.local.invalidDate||h.regionalOptions[""].invalidDate),y=new Date(m.year(),m.month()-1,m.day());return y.setHours(0),y.setMinutes(0),y.setSeconds(0),y.setMilliseconds(0),y.setHours(y.getHours()>12?y.getHours()+2:0),y},fromJSDate:function(g){return this.newDate(g.getFullYear(),g.getMonth()+1,g.getDate())}});var h=i.exports=new u;h.cdate=c,h.baseCalendar=f,h.calendars.gregorian=p},94338:function(i,o,a){var s=a(56131),u=a(63489);s(u.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),u.local=u.regionalOptions[""],s(u.cdate.prototype,{formatDate:function(c,d){return typeof c!="string"&&(d=c,c=""),this._calendar.formatDate(c||"",this,d)}}),s(u.baseCalendar.prototype,{UNIX_EPOCH:u.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:u.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(c,d,f){if(typeof c!="string"&&(f=d,d=c,c=""),!d)return"";if(d.calendar()!==this)throw u.local.invalidFormat||u.regionalOptions[""].invalidFormat;c=c||this.local.dateFormat;for(var p,h,g,b=(f=f||{}).dayNamesShort||this.local.dayNamesShort,v=f.dayNames||this.local.dayNames,m=f.monthNumbers||this.local.monthNumbers,y=f.monthNamesShort||this.local.monthNamesShort,x=f.monthNames||this.local.monthNames,_=(f.calculateWeek||this.local.calculateWeek,function(E,I){for(var A=1;P+A1}),w=function(E,I,A,F){var j=""+I;if(_(E,F))for(;j.length1},O=function(N,R){var q=M(N,R),Y=[2,3,q?4:2,q?4:2,10,11,20]["oyYJ@!".indexOf(N)+1],L=new RegExp("^-?\\d{1,"+Y+"}"),W=d.substring(F).match(L);if(!W)throw(u.local.missingNumberAt||u.regionalOptions[""].missingNumberAt).replace(/\{0\}/,F);return F+=W[0].length,parseInt(W[0],10)},D=this,P=function(){if(typeof v=="function"){M("m");var N=v.call(D,d.substring(F));return F+=N.length,N}return O("m")},E=function(N,R,q,Y){for(var L=M(N,Y)?q:R,W=0;W-1){w=1,S=k;for(var z=this.daysInMonth(_,w);S>z;z=this.daysInMonth(_,w))w++,S-=z}return x>-1?this.fromJD(x):this.newDate(_,w,S)},determineDate:function(c,d,f,p,h){f&&typeof f!="object"&&(h=p,p=f,f=null),typeof p!="string"&&(h=p,p="");var g=this;return d=d?d.newDate():null,c==null?d:typeof c=="string"?function(b){try{return g.parseDate(p,b,h)}catch{}for(var v=((b=b.toLowerCase()).match(/^c/)&&f?f.newDate():null)||g.today(),m=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,y=m.exec(b);y;)v.add(parseInt(y[1],10),y[2]||"d"),y=m.exec(b);return v}(c):typeof c=="number"?isNaN(c)||c===1/0||c===-1/0?d:g.today().add(c,"d"):g.newDate(c)}})},69862:function(){},40964:function(){},72077:function(i,o,a){var s=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],u=typeof globalThis>"u"?a.g:globalThis;i.exports=function(){for(var c=[],d=0;d"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function b(_){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(S){return S.__proto__||Object.getPrototypeOf(S)},b(_)}var v=["AfterExport","AfterPlot","Animated","AnimatingFrame","AnimationInterrupted","AutoSize","BeforeExport","BeforeHover","ButtonClicked","Click","ClickAnnotation","Deselect","DoubleClick","Framework","Hover","LegendClick","LegendDoubleClick","Relayout","Relayouting","Restyle","Redraw","Selected","Selecting","SliderChange","SliderEnd","SliderStart","SunburstClick","Transitioning","TransitionInterrupted","Unhover","WebGlContextLost"],m=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick"],y=typeof window<"u";function x(_){var w=function(S){c(C,S);var k=f(C);function C(T){var M;return a(this,C),M=k.call(this,T),M.p=Promise.resolve(),M.resizeHandler=null,M.handlers={},M.syncWindowResize=M.syncWindowResize.bind(h(M)),M.syncEventHandlers=M.syncEventHandlers.bind(h(M)),M.attachUpdateEvents=M.attachUpdateEvents.bind(h(M)),M.getRef=M.getRef.bind(h(M)),M.handleUpdate=M.handleUpdate.bind(h(M)),M.figureCallback=M.figureCallback.bind(h(M)),M.updatePlotly=M.updatePlotly.bind(h(M)),M}return u(C,[{key:"updatePlotly",value:function(M,O,D){var P=this;this.p=this.p.then(function(){if(!P.unmounting){if(!P.el)throw new Error("Missing element reference");return _.react(P.el,{data:P.props.data,layout:P.props.layout,config:P.props.config,frames:P.props.frames})}}).then(function(){P.unmounting||(P.syncWindowResize(M),P.syncEventHandlers(),P.figureCallback(O),D&&P.attachUpdateEvents())}).catch(function(E){P.props.onError&&P.props.onError(E)})}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(M){this.unmounting=!1;var O=M.frames&&M.frames.length?M.frames.length:0,D=this.props.frames&&this.props.frames.length?this.props.frames.length:0,P=!(M.layout===this.props.layout&&M.data===this.props.data&&M.config===this.props.config&&D===O),E=M.revision!==void 0,I=M.revision!==this.props.revision;!P&&(!E||E&&!I)||this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&y&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),_.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var M=this;!this.el||!this.el.removeListener||m.forEach(function(O){M.el.on(O,M.handleUpdate)})}},{key:"removeUpdateEvents",value:function(){var M=this;!this.el||!this.el.removeListener||m.forEach(function(O){M.el.removeListener(O,M.handleUpdate)})}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(M){if(typeof M=="function"){var O=this.el,D=O.data,P=O.layout,E=this.el._transitionData?this.el._transitionData._frames:null,I={data:D,layout:P,frames:E};M(I,this.el)}}},{key:"syncWindowResize",value:function(M){var O=this;y&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return _.Plots.resize(O.el)},window.addEventListener("resize",this.resizeHandler),M&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(M){this.el=M,this.props.debug&&y&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var M=this;v.forEach(function(O){var D=M.props["on"+O],P=M.handlers[O],E=!!P;D&&!E?M.addEventHandler(O,D):!D&&E?M.removeEventHandler(O):D&&E&&D!==P&&(M.removeEventHandler(O),M.addEventHandler(O,D))})}},{key:"addEventHandler",value:function(M,O){this.handlers[M]=O,this.el.on(this.getPlotlyEventName(M),this.handlers[M])}},{key:"removeEventHandler",value:function(M){this.el.removeListener(this.getPlotlyEventName(M),this.handlers[M]),delete this.handlers[M]}},{key:"getPlotlyEventName",value:function(M){return"plotly_"+M.toLowerCase()}},{key:"render",value:function(){return n.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),C}(n.Component);return w.propTypes={data:r.default.arrayOf(r.default.object),config:r.default.object,layout:r.default.object,frames:r.default.arrayOf(r.default.object),revision:r.default.number,onInitialized:r.default.func,onPurge:r.default.func,onError:r.default.func,onUpdate:r.default.func,debug:r.default.bool,style:r.default.object,className:r.default.string,useResizeHandler:r.default.bool,divId:r.default.string},v.forEach(function(S){w.propTypes["on"+S]=r.default.func}),w.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},w}})(CB);const spe=dr(CB),MB=spe(lpe),Rd={data:{barpolar:[{marker:{line:{color:"rgb(17,17,17)",width:.5},pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"barpolar"}],bar:[{error_x:{color:"#f2f5fa"},error_y:{color:"#f2f5fa"},marker:{line:{color:"rgb(17,17,17)",width:.5},pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"bar"}],carpet:[{aaxis:{endlinecolor:"#A2B1C6",gridcolor:"#506784",linecolor:"#506784",minorgridcolor:"#506784",startlinecolor:"#A2B1C6"},baxis:{endlinecolor:"#A2B1C6",gridcolor:"#506784",linecolor:"#506784",minorgridcolor:"#506784",startlinecolor:"#A2B1C6"},type:"carpet"}],choropleth:[{colorbar:{outlinewidth:0,ticks:""},type:"choropleth"}],contourcarpet:[{colorbar:{outlinewidth:0,ticks:""},type:"contourcarpet"}],contour:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"contour"}],heatmapgl:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"heatmapgl"}],heatmap:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"heatmap"}],histogram2dcontour:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"histogram2dcontour"}],histogram2d:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"histogram2d"}],histogram:[{marker:{pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"histogram"}],mesh3d:[{colorbar:{outlinewidth:0,ticks:""},type:"mesh3d"}],parcoords:[{line:{colorbar:{outlinewidth:0,ticks:""}},type:"parcoords"}],pie:[{automargin:!0,type:"pie"}],scatter3d:[{line:{colorbar:{outlinewidth:0,ticks:""}},marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatter3d"}],scattercarpet:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scattercarpet"}],scattergeo:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scattergeo"}],scattergl:[{marker:{line:{color:"#283442"}},type:"scattergl"}],scattermapbox:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scattermapbox"}],scatterpolargl:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatterpolargl"}],scatterpolar:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatterpolar"}],scatter:[{marker:{line:{color:"#283442"}},type:"scatter"}],scatterternary:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatterternary"}],surface:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"surface"}],table:[{cells:{fill:{color:"#506784"},line:{color:"rgb(17,17,17)"}},header:{fill:{color:"#2a3f5f"},line:{color:"rgb(17,17,17)"}},type:"table"}]},layout:{annotationdefaults:{arrowcolor:"#f2f5fa",arrowhead:0,arrowwidth:1},autotypenumbers:"strict",coloraxis:{colorbar:{outlinewidth:0,ticks:""}},colorscale:{diverging:[[0,"#8e0152"],[.1,"#c51b7d"],[.2,"#de77ae"],[.3,"#f1b6da"],[.4,"#fde0ef"],[.5,"#f7f7f7"],[.6,"#e6f5d0"],[.7,"#b8e186"],[.8,"#7fbc41"],[.9,"#4d9221"],[1,"#276419"]],sequential:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],sequentialminus:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]},colorway:["#636efa","#EF553B","#00cc96","#ab63fa","#FFA15A","#19d3f3","#FF6692","#B6E880","#FF97FF","#FECB52"],font:{color:"#f2f5fa"},geo:{bgcolor:"rgb(17,17,17)",lakecolor:"rgb(17,17,17)",landcolor:"rgb(17,17,17)",showlakes:!0,showland:!0,subunitcolor:"#506784"},hoverlabel:{align:"left"},hovermode:"closest",mapbox:{style:"dark"},paper_bgcolor:"rgb(17,17,17)",plot_bgcolor:"rgb(17,17,17)",polar:{angularaxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""},bgcolor:"rgb(17,17,17)",radialaxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""}},scene:{xaxis:{backgroundcolor:"rgb(17,17,17)",gridcolor:"#506784",gridwidth:2,linecolor:"#506784",showbackground:!0,ticks:"",zerolinecolor:"#C8D4E3"},yaxis:{backgroundcolor:"rgb(17,17,17)",gridcolor:"#506784",gridwidth:2,linecolor:"#506784",showbackground:!0,ticks:"",zerolinecolor:"#C8D4E3"},zaxis:{backgroundcolor:"rgb(17,17,17)",gridcolor:"#506784",gridwidth:2,linecolor:"#506784",showbackground:!0,ticks:"",zerolinecolor:"#C8D4E3"}},shapedefaults:{line:{color:"#f2f5fa"}},sliderdefaults:{bgcolor:"#C8D4E3",bordercolor:"rgb(17,17,17)",borderwidth:1,tickwidth:0},ternary:{aaxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""},baxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""},bgcolor:"rgb(17,17,17)",caxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""}},title:{x:.05},updatemenudefaults:{bgcolor:"#506784",borderwidth:0,showactive:!1},xaxis:{automargin:!0,gridcolor:"#283442",linecolor:"#506784",ticks:"",title:{standoff:15},zerolinecolor:"#283442",zerolinewidth:2},yaxis:{automargin:!0,gridcolor:"#283442",linecolor:"#506784",ticks:"",title:{standoff:15},zerolinecolor:"#283442",zerolinewidth:2}}},upe=Ke.createContext(null),PB=()=>ge.useContext(upe),Db=e=>{var a,s,u,c;const t=PB(),n=hg(),r=e.data.some(({type:d})=>d==="histogram"),l=(t==null?void 0:t.isXaxisAsCategorical)&&!r,i=n==="dark"?{template:{...Rd,layout:{...Rd.layout,colorway:((s=(a=e.layout.template)==null?void 0:a.layout)==null?void 0:s.colorway)||((u=Rd.layout)==null?void 0:u.colorway)}}}:void 0,o=l?{type:"category",categoryorder:"category ascending"}:void 0;return Se.jsx("div",{children:Se.jsx(MB,{data:e.data,layout:{...e.layout,...i,title:void 0,xaxis:{...(c=e.layout)==null?void 0:c.xaxis,...o}},config:{responsive:!0},style:{width:"100%",minHeight:300+100*(1+e.widgetSize/2),maxHeight:400}})})};var OB={},AB={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(AB);var Hn=AB.exports,n_={exports:{}},O7;function jr(){return O7||(O7=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r{let t;const n=new Set,r=(s,u)=>{const c=typeof s=="function"?s(t):s;if(!Object.is(c,t)){const d=t;t=u??typeof c!="object"?c:Object.assign({},t,c),n.forEach(f=>f(t,d))}},l=()=>t,a={setState:r,getState:l,subscribe:s=>(n.add(s),()=>n.delete(s)),destroy:()=>{(ppe?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,l,a),a},RB=e=>e?I7(e):I7;var LB={exports:{}},IB={},$B={exports:{}},NB={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -359,7 +363,7 @@ should equal * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Bd=ge;function Vpe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Gpe=typeof Object.is=="function"?Object.is:Vpe,Ype=Bd.useState,Xpe=Bd.useEffect,Kpe=Bd.useLayoutEffect,Zpe=Bd.useDebugValue;function Qpe(e,t){var n=t(),r=Ype({inst:{value:n,getSnapshot:t}}),l=r[0].inst,i=r[1];return Kpe(function(){l.value=n,l.getSnapshot=t,Lw(l)&&i({inst:l})},[e,n,t]),Xpe(function(){return Lw(l)&&i({inst:l}),e(function(){Lw(l)&&i({inst:l})})},[e]),Zpe(n),n}function Lw(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Gpe(e,n)}catch{return!0}}function Jpe(e,t){return t()}var ehe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Jpe:Qpe;Zz.useSyncExternalStore=Bd.useSyncExternalStore!==void 0?Bd.useSyncExternalStore:ehe;Kz.exports=Zz;var Qz=Kz.exports;/** + */var ef=ge;function hpe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mpe=typeof Object.is=="function"?Object.is:hpe,gpe=ef.useState,vpe=ef.useEffect,ype=ef.useLayoutEffect,bpe=ef.useDebugValue;function xpe(e,t){var n=t(),r=gpe({inst:{value:n,getSnapshot:t}}),l=r[0].inst,i=r[1];return ype(function(){l.value=n,l.getSnapshot=t,f_(l)&&i({inst:l})},[e,n,t]),vpe(function(){return f_(l)&&i({inst:l}),e(function(){f_(l)&&i({inst:l})})},[e]),bpe(n),n}function f_(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!mpe(e,n)}catch{return!0}}function wpe(e,t){return t()}var _pe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?wpe:xpe;NB.useSyncExternalStore=ef.useSyncExternalStore!==void 0?ef.useSyncExternalStore:_pe;$B.exports=NB;var FB=$B.exports;/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * @@ -367,27 +371,27 @@ should equal * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var cb=ge,the=Qz;function nhe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var rhe=typeof Object.is=="function"?Object.is:nhe,ahe=the.useSyncExternalStore,ohe=cb.useRef,ihe=cb.useEffect,lhe=cb.useMemo,she=cb.useDebugValue;Xz.useSyncExternalStoreWithSelector=function(e,t,n,r,l){var i=ohe(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=lhe(function(){function s(p){if(!u){if(u=!0,c=p,p=r(p),l!==void 0&&o.hasValue){var m=o.value;if(l(m,p))return d=m}return d=p}if(m=d,rhe(c,p))return m;var g=r(p);return l!==void 0&&l(m,g)?m:(c=p,d=g)}var u=!1,c,d,f=n===void 0?null:n;return[function(){return s(t())},f===null?void 0:function(){return s(f())}]},[t,n,r,l]);var a=ahe(e,i[0],i[1]);return ihe(function(){o.hasValue=!0,o.value=a},[a]),she(a),a};Yz.exports=Xz;var uhe=Yz.exports;const che=lr(uhe),{useSyncExternalStoreWithSelector:dhe}=che;function Jz(e,t=e.getState,n){const r=dhe(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return ge.useDebugValue(r),r}const dD=e=>{const t=typeof e=="function"?Gz(e):e,n=(r,l)=>Jz(t,r,l);return Object.assign(n,t),n},eB=e=>e?dD(e):dD;var fhe=e=>eB(e);const phe=Object.freeze(Object.defineProperty({__proto__:null,create:eB,createStore:Gz,default:fhe,useStore:Jz},Symbol.toStringTag,{value:"Module"})),hhe=Qn(phe);var l0={exports:{}},Iw={exports:{}},fD;function mhe(){return fD||(fD=1,function(e,t){(function(n,r){e.exports=r()})(Oo,function(){var n=typeof Promise=="function",r=typeof self=="object"?self:Oo,l=typeof Symbol<"u",i=typeof Map<"u",o=typeof Set<"u",a=typeof WeakMap<"u",s=typeof WeakSet<"u",u=typeof DataView<"u",c=l&&typeof Symbol.iterator<"u",d=l&&typeof Symbol.toStringTag<"u",f=o&&typeof Set.prototype.entries=="function",p=i&&typeof Map.prototype.entries=="function",m=f&&Object.getPrototypeOf(new Set().entries()),g=p&&Object.getPrototypeOf(new Map().entries()),b=c&&typeof Array.prototype[Symbol.iterator]=="function",v=b&&Object.getPrototypeOf([][Symbol.iterator]()),h=c&&typeof String.prototype[Symbol.iterator]=="function",y=h&&Object.getPrototypeOf(""[Symbol.iterator]()),w=8,_=-1;function x(T){var k=typeof T;if(k!=="object")return k;if(T===null)return"null";if(T===r)return"global";if(Array.isArray(T)&&(d===!1||!(Symbol.toStringTag in T)))return"Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&T===window.location)return"Location";if(typeof window.document=="object"&&T===window.document)return"Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&T===window.navigator.mimeTypes)return"MimeTypeArray";if(typeof window.navigator.plugins=="object"&&T===window.navigator.plugins)return"PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&T instanceof window.HTMLElement){if(T.tagName==="BLOCKQUOTE")return"HTMLQuoteElement";if(T.tagName==="TD")return"HTMLTableDataCellElement";if(T.tagName==="TH")return"HTMLTableHeaderCellElement"}}var S=d&&T[Symbol.toStringTag];if(typeof S=="string")return S;var C=Object.getPrototypeOf(T);return C===RegExp.prototype?"RegExp":C===Date.prototype?"Date":n&&C===Promise.prototype?"Promise":o&&C===Set.prototype?"Set":i&&C===Map.prototype?"Map":s&&C===WeakSet.prototype?"WeakSet":a&&C===WeakMap.prototype?"WeakMap":u&&C===DataView.prototype?"DataView":i&&C===g?"Map Iterator":o&&C===m?"Set Iterator":b&&C===v?"Array Iterator":h&&C===y?"String Iterator":C===null?"Object":Object.prototype.toString.call(T).slice(w,_)}return x})}(Iw)),Iw.exports}var pD;function tB(){if(pD)return l0.exports;pD=1;/*! + */var Eb=ge,Tpe=FB;function Spe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kpe=typeof Object.is=="function"?Object.is:Spe,Cpe=Tpe.useSyncExternalStore,Mpe=Eb.useRef,Ppe=Eb.useEffect,Ope=Eb.useMemo,Ape=Eb.useDebugValue;IB.useSyncExternalStoreWithSelector=function(e,t,n,r,l){var i=Mpe(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=Ope(function(){function s(p){if(!u){if(u=!0,c=p,p=r(p),l!==void 0&&o.hasValue){var h=o.value;if(l(h,p))return d=h}return d=p}if(h=d,kpe(c,p))return h;var g=r(p);return l!==void 0&&l(h,g)?h:(c=p,d=g)}var u=!1,c,d,f=n===void 0?null:n;return[function(){return s(t())},f===null?void 0:function(){return s(f())}]},[t,n,r,l]);var a=Cpe(e,i[0],i[1]);return Ppe(function(){o.hasValue=!0,o.value=a},[a]),Ape(a),a};LB.exports=IB;var Dpe=LB.exports;const Epe=dr(Dpe),{useSyncExternalStoreWithSelector:Rpe}=Epe;function jB(e,t=e.getState,n){const r=Rpe(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return ge.useDebugValue(r),r}const $7=e=>{const t=typeof e=="function"?RB(e):e,n=(r,l)=>jB(t,r,l);return Object.assign(n,t),n},zB=e=>e?$7(e):$7;var Lpe=e=>zB(e);const Ipe=Object.freeze(Object.defineProperty({__proto__:null,create:zB,createStore:RB,default:Lpe,useStore:jB},Symbol.toStringTag,{value:"Module"})),$pe=er(Ipe);var S0={exports:{}},p_={exports:{}},N7;function Npe(){return N7||(N7=1,function(e,t){(function(n,r){e.exports=r()})($o,function(){var n=typeof Promise=="function",r=typeof self=="object"?self:$o,l=typeof Symbol<"u",i=typeof Map<"u",o=typeof Set<"u",a=typeof WeakMap<"u",s=typeof WeakSet<"u",u=typeof DataView<"u",c=l&&typeof Symbol.iterator<"u",d=l&&typeof Symbol.toStringTag<"u",f=o&&typeof Set.prototype.entries=="function",p=i&&typeof Map.prototype.entries=="function",h=f&&Object.getPrototypeOf(new Set().entries()),g=p&&Object.getPrototypeOf(new Map().entries()),b=c&&typeof Array.prototype[Symbol.iterator]=="function",v=b&&Object.getPrototypeOf([][Symbol.iterator]()),m=c&&typeof String.prototype[Symbol.iterator]=="function",y=m&&Object.getPrototypeOf(""[Symbol.iterator]()),x=8,_=-1;function w(S){var k=typeof S;if(k!=="object")return k;if(S===null)return"null";if(S===r)return"global";if(Array.isArray(S)&&(d===!1||!(Symbol.toStringTag in S)))return"Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&S===window.location)return"Location";if(typeof window.document=="object"&&S===window.document)return"Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&S===window.navigator.mimeTypes)return"MimeTypeArray";if(typeof window.navigator.plugins=="object"&&S===window.navigator.plugins)return"PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&S instanceof window.HTMLElement){if(S.tagName==="BLOCKQUOTE")return"HTMLQuoteElement";if(S.tagName==="TD")return"HTMLTableDataCellElement";if(S.tagName==="TH")return"HTMLTableHeaderCellElement"}}var C=d&&S[Symbol.toStringTag];if(typeof C=="string")return C;var T=Object.getPrototypeOf(S);return T===RegExp.prototype?"RegExp":T===Date.prototype?"Date":n&&T===Promise.prototype?"Promise":o&&T===Set.prototype?"Set":i&&T===Map.prototype?"Map":s&&T===WeakSet.prototype?"WeakSet":a&&T===WeakMap.prototype?"WeakMap":u&&T===DataView.prototype?"DataView":i&&T===g?"Map Iterator":o&&T===h?"Set Iterator":b&&T===v?"Array Iterator":m&&T===y?"String Iterator":T===null?"Object":Object.prototype.toString.call(S).slice(x,_)}return w})}(p_)),p_.exports}var F7;function BB(){if(F7)return S0.exports;F7=1;/*! * deep-eql * Copyright(c) 2013 Jake Luer * MIT Licensed - */var e=mhe();function t(){this._key="chai/deep-eql__"+Math.random()+Date.now()}t.prototype={get:function(T){return T[this._key]},set:function(T,k){Object.isExtensible(T)&&Object.defineProperty(T,this._key,{value:k,configurable:!0})}};var n=typeof WeakMap=="function"?WeakMap:t;/*! + */var e=Npe();function t(){this._key="chai/deep-eql__"+Math.random()+Date.now()}t.prototype={get:function(S){return S[this._key]},set:function(S,k){Object.isExtensible(S)&&Object.defineProperty(S,this._key,{value:k,configurable:!0})}};var n=typeof WeakMap=="function"?WeakMap:t;/*! * Check to see if the MemoizeMap has recorded a result of the two operands * * @param {Mixed} leftHandOperand * @param {Mixed} rightHandOperand * @param {MemoizeMap} memoizeMap * @returns {Boolean|null} result -*/function r(x,T,k){if(!k||w(x)||w(T))return null;var S=k.get(x);if(S){var C=S.get(T);if(typeof C=="boolean")return C}return null}/*! +*/function r(w,S,k){if(!k||x(w)||x(S))return null;var C=k.get(w);if(C){var T=C.get(S);if(typeof T=="boolean")return T}return null}/*! * Set the result of the equality into the MemoizeMap * * @param {Mixed} leftHandOperand * @param {Mixed} rightHandOperand * @param {MemoizeMap} memoizeMap * @param {Boolean} result -*/function l(x,T,k,S){if(!(!k||w(x)||w(T))){var C=k.get(x);C?C.set(T,S):(C=new n,C.set(T,S),k.set(x,C))}}/*! +*/function l(w,S,k,C){if(!(!k||x(w)||x(S))){var T=k.get(w);T?T.set(S,C):(T=new n,T.set(S,C),k.set(w,T))}}/*! * Primary Export - */l0.exports=i,l0.exports.MemoizeMap=n;function i(x,T,k){if(k&&k.comparator)return a(x,T,k);var S=o(x,T);return S!==null?S:a(x,T,k)}function o(x,T){return x===T?x!==0||1/x===1/T:x!==x&&T!==T?!0:w(x)||w(T)?!1:null}/*! + */S0.exports=i,S0.exports.MemoizeMap=n;function i(w,S,k){if(k&&k.comparator)return a(w,S,k);var C=o(w,S);return C!==null?C:a(w,S,k)}function o(w,S){return w===S?w!==0||1/w===1/S:w!==w&&S!==S?!0:x(w)||x(S)?!1:null}/*! * The main logic of the `deepEqual` function. * * @param {Mixed} leftHandOperand @@ -398,55 +402,55 @@ should equal complex objects for a speed boost. By passing `false` you can disable memoization, but this will cause circular references to blow the stack. * @return {Boolean} equal match -*/function a(x,T,k){k=k||{},k.memoize=k.memoize===!1?!1:k.memoize||new n;var S=k&&k.comparator,C=r(x,T,k.memoize);if(C!==null)return C;var M=r(T,x,k.memoize);if(M!==null)return M;if(S){var O=S(x,T);if(O===!1||O===!0)return l(x,T,k.memoize,O),O;var D=o(x,T);if(D!==null)return D}var P=e(x);if(P!==e(T))return l(x,T,k.memoize,!1),!1;l(x,T,k.memoize,!0);var E=s(x,T,P,k);return l(x,T,k.memoize,E),E}function s(x,T,k,S){switch(k){case"String":case"Number":case"Boolean":case"Date":return i(x.valueOf(),T.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return x===T;case"Error":return h(x,T,["name","message","code"],S);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return d(x,T,S);case"RegExp":return u(x,T);case"Generator":return f(x,T,S);case"DataView":return d(new Uint8Array(x.buffer),new Uint8Array(T.buffer),S);case"ArrayBuffer":return d(new Uint8Array(x),new Uint8Array(T),S);case"Set":return c(x,T,S);case"Map":return c(x,T,S);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return x.equals(T);case"Temporal.Duration":return x.total("nanoseconds")===T.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return x.toString()===T.toString();default:return y(x,T,S)}}/*! +*/function a(w,S,k){k=k||{},k.memoize=k.memoize===!1?!1:k.memoize||new n;var C=k&&k.comparator,T=r(w,S,k.memoize);if(T!==null)return T;var M=r(S,w,k.memoize);if(M!==null)return M;if(C){var O=C(w,S);if(O===!1||O===!0)return l(w,S,k.memoize,O),O;var D=o(w,S);if(D!==null)return D}var P=e(w);if(P!==e(S))return l(w,S,k.memoize,!1),!1;l(w,S,k.memoize,!0);var E=s(w,S,P,k);return l(w,S,k.memoize,E),E}function s(w,S,k,C){switch(k){case"String":case"Number":case"Boolean":case"Date":return i(w.valueOf(),S.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return w===S;case"Error":return m(w,S,["name","message","code"],C);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return d(w,S,C);case"RegExp":return u(w,S);case"Generator":return f(w,S,C);case"DataView":return d(new Uint8Array(w.buffer),new Uint8Array(S.buffer),C);case"ArrayBuffer":return d(new Uint8Array(w),new Uint8Array(S),C);case"Set":return c(w,S,C);case"Map":return c(w,S,C);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return w.equals(S);case"Temporal.Duration":return w.total("nanoseconds")===S.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return w.toString()===S.toString();default:return y(w,S,C)}}/*! * Compare two Regular Expressions for equality. * * @param {RegExp} leftHandOperand * @param {RegExp} rightHandOperand * @return {Boolean} result - */function u(x,T){return x.toString()===T.toString()}/*! + */function u(w,S){return w.toString()===S.toString()}/*! * Compare two Sets/Maps for equality. Faster than other equality functions. * * @param {Set} leftHandOperand * @param {Set} rightHandOperand * @param {Object} [options] (Optional) * @return {Boolean} result - */function c(x,T,k){if(x.size!==T.size)return!1;if(x.size===0)return!0;var S=[],C=[];return x.forEach(function(O,D){S.push([O,D])}),T.forEach(function(O,D){C.push([O,D])}),d(S.sort(),C.sort(),k)}/*! + */function c(w,S,k){if(w.size!==S.size)return!1;if(w.size===0)return!0;var C=[],T=[];return w.forEach(function(O,D){C.push([O,D])}),S.forEach(function(O,D){T.push([O,D])}),d(C.sort(),T.sort(),k)}/*! * Simple equality for flat iterable objects such as Arrays, TypedArrays or Node.js buffers. * * @param {Iterable} leftHandOperand * @param {Iterable} rightHandOperand * @param {Object} [options] (Optional) * @return {Boolean} result - */function d(x,T,k){var S=x.length;if(S!==T.length)return!1;if(S===0)return!0;for(var C=-1;++C=0)&&(l[o]=n[o]);return l}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(qw)),qw.exports}var jD;function uf(){return jD||(jD=1,function(e){var t=$he();function n(r,l){if(r==null)return{};var i=t(r,l),o,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(r,o)&&(i[o]=r[o])}return i}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Ww)),Ww.exports}var zD;function Nhe(){return zD||(zD=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Ihe),r=t(Ir()),l=t(uf()),i=t(ge),o=["forwardedRef"];function a(u){var c=u.forwardedRef,d=(0,l.default)(u,o);return i.default.createElement(n.default,(0,r.default)({elevation:2},d,{ref:c}))}var s=i.default.forwardRef(function(c,d){return i.default.createElement(a,(0,r.default)({},c,{forwardedRef:d}))});e.default=s}(Bw)),Bw}var Uw={};const fc=Qn(qie);var Hw={exports:{}},BD;function Fhe(){return BD||(BD=1,function(e,t){(function(r,l){e.exports=l(ge)})(Oo,function(n){return function(r){var l={};function i(o){if(l[o])return l[o].exports;var a=l[o]={exports:{},id:o,loaded:!1};return r[o].call(a.exports,a,a.exports,i),a.loaded=!0,a.exports}return i.m=r,i.c=l,i.p="",i(0)}([function(r,l,i){Object.defineProperty(l,"__esModule",{value:!0});var o=function(){function m(g,b){for(var v=0;vn.length)&&(r=n.length);for(var l=0,i=new Array(r);l0&&E++,g.hasDetailPanel&&E++,g.isTreeData&&E++,s.default.createElement(o.default,{style:{height:P*(v.paging&&v.emptyRowsWhenPaging?g.pageSize:1)},key:"empty-0"},s.default.createElement(a.default,{style:{paddingTop:0,paddingBottom:0,textAlign:"center"},colSpan:g.columns.reduce(function(I,A){return A.hidden?I:I+1},E),key:"empty-"},b.emptyDataSourceMessage))}else if(v.emptyRowsWhenPaging)return s.default.createElement(s.default.Fragment,null,(0,i.default)(Array(O)).map(function(I,A){return s.default.createElement(o.default,{style:{height:P},key:"empty-"+A})}),O>0&&s.default.createElement(o.default,{style:{height:1},key:"empty-last1"}))}function _(O){return O.map(function(D,P){if(D.tableData.editing||g.bulkEditOpen)return s.default.createElement(g.components.EditRow,{columns:y,components:g.components,data:D,errorState:g.errorState,icons:h,localization:b.editRow,key:"row-"+D.tableData.uuid,mode:g.bulkEditOpen?"bulk":D.tableData.editing,isTreeData:g.isTreeData,detailPanel:g.detailPanel,onEditingCanceled:g.onEditingCanceled,onEditingApproved:g.onEditingApproved,bulkEditChangedRows:g.bulkEditChangedRows,getFieldValue:g.getFieldValue,onBulkEditRowChanged:g.onBulkEditRowChanged,scrollWidth:g.scrollWidth});var E=g.isTreeData?[D.tableData.uuid]:[P+g.pageSize*g.currentPage];return s.default.createElement(g.components.Row,{components:g.components,data:D,index:P,errorState:g.errorState,key:"row-"+D.tableData.uuid,level:0,onRowSelected:g.onRowSelected,actions:g.actions,columns:g.columns,getFieldValue:g.getFieldValue,detailPanel:g.detailPanel,path:E,onToggleDetailPanel:g.onToggleDetailPanel,onRowClick:g.onRowClick,onRowDoubleClick:g.onRowDoubleClick,isTreeData:g.isTreeData,onTreeExpandChanged:g.onTreeExpandChanged,onEditingCanceled:g.onEditingCanceled,onEditingApproved:g.onEditingApproved,hasAnyEditingRow:g.hasAnyEditingRow,treeDataMaxLevel:g.treeDataMaxLevel,cellEditable:g.cellEditable,onCellEditStarted:g.onCellEditStarted,onCellEditFinished:g.onCellEditFinished,onRowEditStarted:g.onRowEditStarted,scrollWidth:g.scrollWidth})})}function x(O,D){return D.map(function(P,E){return s.default.createElement(g.components.GroupRow,{actions:g.actions,cellEditable:g.cellEditable,columns:g.columns,components:g.components,detailPanel:g.detailPanel,getFieldValue:g.getFieldValue,groupData:P,groups:O,hasAnyEditingRow:g.hasAnyEditingRow,icons:h,isTreeData:g.isTreeData,key:P.value==null?""+E:P.value,level:0,localization:b.editRow,onBulkEditRowChanged:g.onBulkEditRowChanged,onCellEditFinished:g.onCellEditFinished,onCellEditStarted:g.onCellEditStarted,onEditingApproved:g.onEditingApproved,onEditingCanceled:g.onEditingCanceled,onGroupExpandChanged:g.onGroupExpandChanged,onRowClick:g.onRowClick,onGroupSelected:g.onGroupSelected,onRowSelected:g.onRowSelected,onToggleDetailPanel:g.onToggleDetailPanel,onTreeExpandChanged:g.onTreeExpandChanged,path:[E+g.pageSize*g.currentPage],scrollWidth:g.scrollWidth,treeDataMaxLevel:g.treeDataMaxLevel})})}function T(){return g.showAddRow&&s.default.createElement(g.components.EditRow,{columns:y,components:g.components,data:g.initialFormData,detailPanel:g.detailPanel,errorState:g.errorState,getFieldValue:g.getFieldValue,icons:h,isTreeData:g.isTreeData,key:"key-add-row",localization:b.editRow,mode:"add",onEditingApproved:g.onEditingApproved,onEditingCanceled:g.onEditingCanceled,scrollWidth:g.scrollWidth})}var k=g.renderData,S=g.columns.filter(function(O){return O.tableData.groupOrder>-1}).sort(function(O,D){return O.tableData.groupOrder-D.tableData.groupOrder}),C=0;v.paging&&g.pageSize>k.length&&(C=g.pageSize-k.length);var M=s.default.useMemo(function(){return g.renderSummaryRow?function(O){return g.renderSummaryRow(f(f({},O),{},{data:g.data,currentData:g.currentData}))}:void 0},[g.data]);return s.default.createElement(r.default,{ref:g.forwardedRef},v.filtering&&s.default.createElement(g.components.FilterRow,{columns:y,icons:h,hasActions:g.actions.some(function(O){return O.position==="row"||typeof O=="function"}),onFilterChanged:g.onFilterChanged,localization:b.filterRow,hasDetailPanel:!!g.detailPanel,isTreeData:g.isTreeData,scrollWidth:g.scrollWidth,hideFilterIcons:g.options.hideFilterIcons}),v.addRowPosition==="first"&&T(),S.length>0?x(S,k):_(k),v.addRowPosition==="last"&&T(),s.default.createElement(g.components.SummaryRow,{columns:y,renderSummaryRow:M,rowProps:g}),w(C,k))}p.defaultProps={actions:[],currentPage:0,data:[],pageSize:5,renderData:[],selection:!1},p.propTypes={actions:u.default.array,bulkEditChangedRows:u.default.object,bulkEditOpen:u.default.bool,cellEditable:u.default.object,columns:u.default.array.isRequired,components:u.default.object.isRequired,currentPage:u.default.number,data:u.default.array,detailPanel:u.default.oneOfType([u.default.func,u.default.arrayOf(u.default.oneOfType([u.default.object,u.default.func]))]),errorState:u.default.oneOfType([u.default.object,u.default.bool]),forwardedRef:u.default.oneOfType([u.default.func,u.default.object]),getFieldValue:u.default.func.isRequired,hasAnyEditingRow:u.default.bool,hasDetailPanel:u.default.bool.isRequired,initialFormData:u.default.object,isTreeData:u.default.bool.isRequired,onBulkEditRowChanged:u.default.func,onCellEditFinished:u.default.func,onCellEditStarted:u.default.func,onEditingApproved:u.default.func,onEditingCanceled:u.default.func,onFilterChanged:u.default.func,onGroupExpandChanged:u.default.func,onRowClick:u.default.func,onRowDoubleClick:u.default.func,onGroupSelected:u.default.func,onRowSelected:u.default.func,onToggleDetailPanel:u.default.func.isRequired,onTreeExpandChanged:u.default.func.isRequired,pageSize:u.default.number,renderData:u.default.array,renderSummaryRow:u.default.func,scrollWidth:u.default.number.isRequired,selection:u.default.bool.isRequired,showAddRow:u.default.bool,treeDataMaxLevel:u.default.number};var m=s.default.forwardRef(function(b,v){return s.default.createElement(p,(0,n.default)({},b,{forwardedRef:v}))});e.default=m}(Vw)),Vw}var Jw={},e_={exports:{}},KD;function db(){return KD||(KD=1,function(e){function t(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(e_)),e_.exports}var t_={exports:{}},ZD;function fb(){return ZD||(ZD=1,function(e){var t=Vz();function n(l,i){for(var o=0;o1?"s":"")+" required, but only "+t.length+" present")}function Tn(e){_n(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||ns(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function rk(e,t){_n(2,arguments);var n=Tn(e),r=kr(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function hb(e,t){_n(2,arguments);var n=Tn(e).getTime(),r=kr(t);return new Date(n+r)}function Yhe(e,t){_n(2,arguments);var n=kr(t);return hb(e,n*1e3)}var Xhe=6e4;function Khe(e,t){_n(2,arguments);var n=kr(t);return hb(e,n*Xhe)}var Zhe=36e5;function Qhe(e,t){_n(2,arguments);var n=kr(t);return hb(e,n*Zhe)}function Jhe(e,t){_n(2,arguments);var n=kr(t),r=n*7;return rk(e,r)}function av(e,t){_n(2,arguments);var n=Tn(e),r=kr(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var l=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var o=i.getDate();return l>=o?i:(n.setFullYear(i.getFullYear(),i.getMonth(),l),n)}function r7(e,t){_n(2,arguments);var n=kr(t);return av(e,n*12)}function eme(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t);return n.getFullYear()-r.getFullYear()}function Lh(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t),l=n.getTime()-r.getTime();return l<0?-1:l>0?1:l}function tme(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t),l=Lh(n,r),i=Math.abs(eme(n,r));n.setFullYear(1584),r.setFullYear(1584);var o=Lh(n,r)===-l,a=l*(i-Number(o));return a===0?0:a}function nme(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t),l=n.getFullYear()-r.getFullYear(),i=n.getMonth()-r.getMonth();return l*12+i}function ak(e){_n(1,arguments);var t=Tn(e);return t.setHours(23,59,59,999),t}function ok(e){_n(1,arguments);var t=Tn(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function rme(e){_n(1,arguments);var t=Tn(e);return ak(t).getTime()===ok(t).getTime()}function cB(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t),l=Lh(n,r),i=Math.abs(nme(n,r)),o;if(i<1)o=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-l*i);var a=Lh(n,r)===-l;rme(Tn(e))&&i===1&&Lh(e,r)===1&&(a=!1),o=l*(i-Number(a))}return o===0?0:o}var a7={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},ame="trunc";function tg(e){return e?a7[e]:a7[ame]}function ome(e,t,n){_n(2,arguments);var r=cB(e,t)/3;return tg(void 0)(r)}function oy(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Wd(e){_n(1,arguments);var t=Tn(e);return t.setHours(0,0,0,0),t}var ime=864e5;function lme(e,t){_n(2,arguments);var n=Wd(e),r=Wd(t),l=n.getTime()-oy(n),i=r.getTime()-oy(r);return Math.round((l-i)/ime)}function o7(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function dB(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t),l=o7(n,r),i=Math.abs(lme(n,r));n.setDate(n.getDate()-l*i);var o=+(o7(n,r)===-l),a=l*(i-o);return a===0?0:a}function sme(e,t,n){_n(2,arguments);var r=dB(e,t)/7;return tg(void 0)(r)}var mb=6e4,gb=36e5,ume=1e3;function vb(e,t){return _n(2,arguments),Tn(e).getTime()-Tn(t).getTime()}function cme(e,t,n){_n(2,arguments);var r=vb(e,t)/gb;return tg(void 0)(r)}function dme(e,t,n){_n(2,arguments);var r=vb(e,t)/mb;return tg(void 0)(r)}function fme(e,t,n){_n(2,arguments);var r=vb(e,t)/1e3;return tg(void 0)(r)}function pme(e,t){var n;_n(1,arguments);var r=e||{},l=Tn(r.start),i=Tn(r.end),o=i.getTime();if(!(l.getTime()<=o))throw new RangeError("Invalid interval");var a=[],s=l;s.setHours(0,0,0,0);var u=Number((n=void 0)!==null&&n!==void 0?n:1);if(u<1||isNaN(u))throw new RangeError("`options.step` must be a number greater than 1");for(;s.getTime()<=o;)a.push(Tn(s)),s.setDate(s.getDate()+u),s.setHours(0,0,0,0);return a}var hme={};function ou(){return hme}function l_(e,t){var n,r,l,i,o,a,s,u;_n(1,arguments);var c=ou(),d=kr((n=(r=(l=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(a=o.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&l!==void 0?l:c.weekStartsOn)!==null&&r!==void 0?r:(s=c.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Tn(e),p=f.getDay(),m=(p=l.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function yme(e){_n(1,arguments);var t=hB(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=qd(n);return r}var bme=6048e5;function mB(e){_n(1,arguments);var t=Tn(e),n=qd(t).getTime()-yme(t).getTime();return Math.round(n/bme)+1}function Xu(e,t){var n,r,l,i,o,a,s,u;_n(1,arguments);var c=ou(),d=kr((n=(r=(l=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(a=o.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&l!==void 0?l:c.weekStartsOn)!==null&&r!==void 0?r:(s=c.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Tn(e),p=f.getUTCDay(),m=(p=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(d+1,0,p),m.setUTCHours(0,0,0,0);var g=Xu(m,t),b=new Date(0);b.setUTCFullYear(d,0,p),b.setUTCHours(0,0,0,0);var v=Xu(b,t);return c.getTime()>=g.getTime()?d+1:c.getTime()>=v.getTime()?d:d-1}function xme(e,t){var n,r,l,i,o,a,s,u;_n(1,arguments);var c=ou(),d=kr((n=(r=(l=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(a=o.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&l!==void 0?l:c.firstWeekContainsDate)!==null&&r!==void 0?r:(s=c.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),f=FM(e,t),p=new Date(0);p.setUTCFullYear(f,0,d),p.setUTCHours(0,0,0,0);var m=Xu(p,t);return m}var wme=6048e5;function gB(e,t){_n(1,arguments);var n=Tn(e),r=Xu(n,t).getTime()-xme(n,t).getTime();return Math.round(r/wme)+1}function tr(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?r:1-r;return tr(n==="yy"?l%100:l,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):tr(r+1,2)},d:function(t,n){return tr(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return tr(t.getUTCHours()%12||12,n.length)},H:function(t,n){return tr(t.getUTCHours(),n.length)},m:function(t,n){return tr(t.getUTCMinutes(),n.length)},s:function(t,n){return tr(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,l=t.getUTCMilliseconds(),i=Math.floor(l*Math.pow(10,r-3));return tr(i,n.length)}},jc={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},_me={G:function(t,n,r){var l=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(l,{width:"abbreviated"});case"GGGGG":return r.era(l,{width:"narrow"});case"GGGG":default:return r.era(l,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var l=t.getUTCFullYear(),i=l>0?l:1-l;return r.ordinalNumber(i,{unit:"year"})}return _s.y(t,n)},Y:function(t,n,r,l){var i=FM(t,l),o=i>0?i:1-i;if(n==="YY"){var a=o%100;return tr(a,2)}return n==="Yo"?r.ordinalNumber(o,{unit:"year"}):tr(o,n.length)},R:function(t,n){var r=hB(t);return tr(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return tr(r,n.length)},Q:function(t,n,r){var l=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(l);case"QQ":return tr(l,2);case"Qo":return r.ordinalNumber(l,{unit:"quarter"});case"QQQ":return r.quarter(l,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(l,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(l,{width:"wide",context:"formatting"})}},q:function(t,n,r){var l=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(l);case"qq":return tr(l,2);case"qo":return r.ordinalNumber(l,{unit:"quarter"});case"qqq":return r.quarter(l,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(l,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(l,{width:"wide",context:"standalone"})}},M:function(t,n,r){var l=t.getUTCMonth();switch(n){case"M":case"MM":return _s.M(t,n);case"Mo":return r.ordinalNumber(l+1,{unit:"month"});case"MMM":return r.month(l,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(l,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(l,{width:"wide",context:"formatting"})}},L:function(t,n,r){var l=t.getUTCMonth();switch(n){case"L":return String(l+1);case"LL":return tr(l+1,2);case"Lo":return r.ordinalNumber(l+1,{unit:"month"});case"LLL":return r.month(l,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(l,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(l,{width:"wide",context:"standalone"})}},w:function(t,n,r,l){var i=gB(t,l);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):tr(i,n.length)},I:function(t,n,r){var l=mB(t);return n==="Io"?r.ordinalNumber(l,{unit:"week"}):tr(l,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):_s.d(t,n)},D:function(t,n,r){var l=vme(t);return n==="Do"?r.ordinalNumber(l,{unit:"dayOfYear"}):tr(l,n.length)},E:function(t,n,r){var l=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(l,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(l,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(l,{width:"short",context:"formatting"});case"EEEE":default:return r.day(l,{width:"wide",context:"formatting"})}},e:function(t,n,r,l){var i=t.getUTCDay(),o=(i-l.weekStartsOn+8)%7||7;switch(n){case"e":return String(o);case"ee":return tr(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,r,l){var i=t.getUTCDay(),o=(i-l.weekStartsOn+8)%7||7;switch(n){case"c":return String(o);case"cc":return tr(o,n.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,r){var l=t.getUTCDay(),i=l===0?7:l;switch(n){case"i":return String(i);case"ii":return tr(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(l,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(l,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(l,{width:"short",context:"formatting"});case"iiii":default:return r.day(l,{width:"wide",context:"formatting"})}},a:function(t,n,r){var l=t.getUTCHours(),i=l/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,r){var l=t.getUTCHours(),i;switch(l===12?i=jc.noon:l===0?i=jc.midnight:i=l/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,r){var l=t.getUTCHours(),i;switch(l>=17?i=jc.evening:l>=12?i=jc.afternoon:l>=4?i=jc.morning:i=jc.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var l=t.getUTCHours()%12;return l===0&&(l=12),r.ordinalNumber(l,{unit:"hour"})}return _s.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):_s.H(t,n)},K:function(t,n,r){var l=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(l,{unit:"hour"}):tr(l,n.length)},k:function(t,n,r){var l=t.getUTCHours();return l===0&&(l=24),n==="ko"?r.ordinalNumber(l,{unit:"hour"}):tr(l,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):_s.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):_s.s(t,n)},S:function(t,n){return _s.S(t,n)},X:function(t,n,r,l){var i=l._originalDate||t,o=i.getTimezoneOffset();if(o===0)return"Z";switch(n){case"X":return l7(o);case"XXXX":case"XX":return wu(o);case"XXXXX":case"XXX":default:return wu(o,":")}},x:function(t,n,r,l){var i=l._originalDate||t,o=i.getTimezoneOffset();switch(n){case"x":return l7(o);case"xxxx":case"xx":return wu(o);case"xxxxx":case"xxx":default:return wu(o,":")}},O:function(t,n,r,l){var i=l._originalDate||t,o=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+i7(o,":");case"OOOO":default:return"GMT"+wu(o,":")}},z:function(t,n,r,l){var i=l._originalDate||t,o=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+i7(o,":");case"zzzz":default:return"GMT"+wu(o,":")}},t:function(t,n,r,l){var i=l._originalDate||t,o=Math.floor(i.getTime()/1e3);return tr(o,n.length)},T:function(t,n,r,l){var i=l._originalDate||t,o=i.getTime();return tr(o,n.length)}};function i7(e,t){var n=e>0?"-":"+",r=Math.abs(e),l=Math.floor(r/60),i=r%60;if(i===0)return n+String(l);var o=t;return n+String(l)+o+tr(i,2)}function l7(e,t){if(e%60===0){var n=e>0?"-":"+";return n+tr(Math.abs(e)/60,2)}return wu(e,t)}function wu(e,t){var n=t||"",r=e>0?"-":"+",l=Math.abs(e),i=tr(Math.floor(l/60),2),o=tr(l%60,2);return r+i+n+o}var s7=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},vB=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},Tme=function(t,n){var r=t.match(/(P+)(p+)?/)||[],l=r[1],i=r[2];if(!i)return s7(t,n);var o;switch(l){case"P":o=n.dateTime({width:"short"});break;case"PP":o=n.dateTime({width:"medium"});break;case"PPP":o=n.dateTime({width:"long"});break;case"PPPP":default:o=n.dateTime({width:"full"});break}return o.replace("{{date}}",s7(l,n)).replace("{{time}}",vB(i,n))},ik={p:vB,P:Tme},kme=["D","DD"],Sme=["YY","YYYY"];function yB(e){return kme.indexOf(e)!==-1}function bB(e){return Sme.indexOf(e)!==-1}function iy(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Cme={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Mme=function(t,n,r){var l,i=Cme[t];return typeof i=="string"?l=i:n===1?l=i.one:l=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+l:l+" ago":l};function u_(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var Pme={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ome={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ame={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Dme={date:u_({formats:Pme,defaultWidth:"full"}),time:u_({formats:Ome,defaultWidth:"full"}),dateTime:u_({formats:Ame,defaultWidth:"full"})},Eme={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Rme=function(t,n,r,l){return Eme[t]};function yp(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",l;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):i;l=e.formattingValues[o]||e.formattingValues[i]}else{var a=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;l=e.values[s]||e.values[a]}var u=e.argumentCallback?e.argumentCallback(t):t;return l[u]}}var Lme={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ime={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},$me={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Nme={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Fme={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},jme={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},zme=function(t,n){var r=Number(t),l=r%100;if(l>20||l<10)switch(l%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Bme={ordinalNumber:zme,era:yp({values:Lme,defaultWidth:"wide"}),quarter:yp({values:Ime,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:yp({values:$me,defaultWidth:"wide"}),day:yp({values:Nme,defaultWidth:"wide"}),dayPeriod:yp({values:Fme,defaultWidth:"wide",formattingValues:jme,defaultFormattingWidth:"wide"})};function bp(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,l=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(l);if(!i)return null;var o=i[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(a)?qme(a,function(d){return d.test(o)}):Wme(a,function(d){return d.test(o)}),u;u=e.valueCallback?e.valueCallback(s):s,u=n.valueCallback?n.valueCallback(u):u;var c=t.slice(o.length);return{value:u,rest:c}}}function Wme(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function qme(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var l=r[0],i=t.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;var a=t.slice(l.length);return{value:o,rest:a}}}var Hme=/^(\d+)(th|st|nd|rd)?/i,Vme=/\d+/i,Gme={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Yme={any:[/^b/i,/^(a|c)/i]},Xme={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Kme={any:[/1/i,/2/i,/3/i,/4/i]},Zme={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Qme={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Jme={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},ege={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},tge={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},nge={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},rge={ordinalNumber:Ume({matchPattern:Hme,parsePattern:Vme,valueCallback:function(t){return parseInt(t,10)}}),era:bp({matchPatterns:Gme,defaultMatchWidth:"wide",parsePatterns:Yme,defaultParseWidth:"any"}),quarter:bp({matchPatterns:Xme,defaultMatchWidth:"wide",parsePatterns:Kme,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:bp({matchPatterns:Zme,defaultMatchWidth:"wide",parsePatterns:Qme,defaultParseWidth:"any"}),day:bp({matchPatterns:Jme,defaultMatchWidth:"wide",parsePatterns:ege,defaultParseWidth:"any"}),dayPeriod:bp({matchPatterns:tge,defaultMatchWidth:"any",parsePatterns:nge,defaultParseWidth:"any"})},yb={code:"en-US",formatDistance:Mme,formatLong:Dme,formatRelative:Rme,localize:Bme,match:rge,options:{weekStartsOn:0,firstWeekContainsDate:1}},age=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,oge=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ige=/^'([^]*?)'?$/,lge=/''/g,sge=/[a-zA-Z]/;function xB(e,t,n){var r,l,i,o,a,s,u,c,d,f,p,m,g,b,v,h,y,w;_n(2,arguments);var _=String(t),x=ou(),T=(r=(l=n==null?void 0:n.locale)!==null&&l!==void 0?l:x.locale)!==null&&r!==void 0?r:yb,k=kr((i=(o=(a=(s=n==null?void 0:n.firstWeekContainsDate)!==null&&s!==void 0?s:n==null||(u=n.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&a!==void 0?a:x.firstWeekContainsDate)!==null&&o!==void 0?o:(d=x.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(k>=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=kr((p=(m=(g=(b=n==null?void 0:n.weekStartsOn)!==null&&b!==void 0?b:n==null||(v=n.locale)===null||v===void 0||(h=v.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&g!==void 0?g:x.weekStartsOn)!==null&&m!==void 0?m:(y=x.locale)===null||y===void 0||(w=y.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&p!==void 0?p:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var C=Tn(e);if(!fB(C))throw new RangeError("Invalid time value");var M=oy(C),O=pB(C,M),D={firstWeekContainsDate:k,weekStartsOn:S,locale:T,_originalDate:C},P=_.match(oge).map(function(E){var I=E[0];if(I==="p"||I==="P"){var A=ik[I];return A(E,T.formatLong)}return E}).join("").match(age).map(function(E){if(E==="''")return"'";var I=E[0];if(I==="'")return uge(E);var A=_me[I];if(A)return!(n!=null&&n.useAdditionalWeekYearTokens)&&bB(E)&&iy(E,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&yB(E)&&iy(E,t,String(e)),A(O,E,T.localize,D);if(I.match(sge))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");return E}).join("");return P}function uge(e){var t=e.match(ige);return t?t[1].replace(lge,"'"):e}const cge=Object.freeze(Object.defineProperty({__proto__:null,default:xB},Symbol.toStringTag,{value:"Module"}));function dge(e){_n(1,arguments);var t=Tn(e),n=t.getDate();return n}function fge(e){_n(1,arguments);var t=Tn(e),n=t.getDay();return n}function wB(e){_n(1,arguments);var t=Tn(e),n=t.getFullYear(),r=t.getMonth(),l=new Date(0);return l.setFullYear(n,r+1,0),l.setHours(0,0,0,0),l.getDate()}function pge(e){_n(1,arguments);var t=Tn(e),n=t.getHours();return n}function hge(e){_n(1,arguments);var t=Tn(e),n=t.getMinutes();return n}function mge(e){_n(1,arguments);var t=Tn(e),n=t.getMonth();return n}function gge(e){_n(1,arguments);var t=Tn(e),n=t.getSeconds();return n}function vge(e){return _n(1,arguments),Tn(e).getFullYear()}function s0(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t);return n.getTime()>r.getTime()}function zc(e,t){_n(2,arguments);var n=Tn(e),r=Tn(t);return n.getTime()e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,a;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return i=u.done,u},e:function(u){o=!0,a=u},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}}}function kge(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function hr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jv(e,t)}function ly(e){return ly=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ly(e)}function Sge(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Cge(e,t){if(t&&(ns(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return An(e)}function mr(e){var t=Sge();return function(){var r=ly(e),l;if(t){var i=ly(this).constructor;l=Reflect.construct(r,arguments,i)}else l=r.apply(this,arguments);return Cge(this,l)}}function sr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mge(e,t){if(ns(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ns(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _B(e){var t=Mge(e,"string");return ns(t)==="symbol"?t:String(t)}function Pge(e,t){for(var n=0;n0,r=n?t:1-t,l;if(r<=50)l=e||100;else{var i=r+50,o=Math.floor(i/100)*100,a=e>=i%100;l=e+o-(a?100:0)}return n?l:1-l}function CB(e){return e%400===0||e%4===0&&e%100!==0}var Rge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o0}},{key:"set",value:function(l,i,o){var a=l.getUTCFullYear();if(o.isTwoDigitYear){var s=SB(o.year,a);return l.setUTCFullYear(s,0,1),l.setUTCHours(0,0,0,0),l}var u=!("era"in i)||i.era===1?o.year:1-o.year;return l.setUTCFullYear(u,0,1),l.setUTCHours(0,0,0,0),l}}]),n}(_r),Lge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o0}},{key:"set",value:function(l,i,o,a){var s=FM(l,a);if(o.isTwoDigitYear){var u=SB(o.year,s);return l.setUTCFullYear(u,0,a.firstWeekContainsDate),l.setUTCHours(0,0,0,0),Xu(l,a)}var c=!("era"in i)||i.era===1?o.year:1-o.year;return l.setUTCFullYear(c,0,a.firstWeekContainsDate),l.setUTCHours(0,0,0,0),Xu(l,a)}}]),n}(_r),Ige=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=4}},{key:"set",value:function(l,i,o){return l.setUTCMonth((o-1)*3,1),l.setUTCHours(0,0,0,0),l}}]),n}(_r),Fge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=4}},{key:"set",value:function(l,i,o){return l.setUTCMonth((o-1)*3,1),l.setUTCHours(0,0,0,0),l}}]),n}(_r),jge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=11}},{key:"set",value:function(l,i,o){return l.setUTCMonth(o,1),l.setUTCHours(0,0,0,0),l}}]),n}(_r),zge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=11}},{key:"set",value:function(l,i,o){return l.setUTCMonth(o,1),l.setUTCHours(0,0,0,0),l}}]),n}(_r);function Bge(e,t,n){_n(2,arguments);var r=Tn(e),l=kr(t),i=gB(r,n)-l;return r.setUTCDate(r.getUTCDate()-i*7),r}var Wge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=53}},{key:"set",value:function(l,i,o,a){return Xu(Bge(l,o,a),a)}}]),n}(_r);function qge(e,t){_n(2,arguments);var n=Tn(e),r=kr(t),l=mB(n)-r;return n.setUTCDate(n.getUTCDate()-l*7),n}var Uge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=53}},{key:"set",value:function(l,i,o){return qd(qge(l,o))}}]),n}(_r),Hge=[31,28,31,30,31,30,31,31,30,31,30,31],Vge=[31,29,31,30,31,30,31,31,30,31,30,31],Gge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=Vge[s]:i>=1&&i<=Hge[s]}},{key:"set",value:function(l,i,o){return l.setUTCDate(o),l.setUTCHours(0,0,0,0),l}}]),n}(_r),Yge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(l,i,o){return l.setUTCMonth(0,o),l.setUTCHours(0,0,0,0),l}}]),n}(_r);function zM(e,t,n){var r,l,i,o,a,s,u,c;_n(2,arguments);var d=ou(),f=kr((r=(l=(i=(o=n==null?void 0:n.weekStartsOn)!==null&&o!==void 0?o:n==null||(a=n.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&l!==void 0?l:(u=d.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Tn(e),m=kr(t),g=p.getUTCDay(),b=m%7,v=(b+7)%7,h=(v=0&&i<=6}},{key:"set",value:function(l,i,o,a){return l=zM(l,o,a),l.setUTCHours(0,0,0,0),l}}]),n}(_r),Kge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=6}},{key:"set",value:function(l,i,o,a){return l=zM(l,o,a),l.setUTCHours(0,0,0,0),l}}]),n}(_r),Zge=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=6}},{key:"set",value:function(l,i,o,a){return l=zM(l,o,a),l.setUTCHours(0,0,0,0),l}}]),n}(_r);function Qge(e,t){_n(2,arguments);var n=kr(t);n%7===0&&(n=n-7);var r=1,l=Tn(e),i=l.getUTCDay(),o=n%7,a=(o+7)%7,s=(a=1&&i<=7}},{key:"set",value:function(l,i,o){return l=Qge(l,o),l.setUTCHours(0,0,0,0),l}}]),n}(_r),e0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=12}},{key:"set",value:function(l,i,o){var a=l.getUTCHours()>=12;return a&&o<12?l.setUTCHours(o+12,0,0,0):!a&&o===12?l.setUTCHours(0,0,0,0):l.setUTCHours(o,0,0,0),l}}]),n}(_r),a0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=23}},{key:"set",value:function(l,i,o){return l.setUTCHours(o,0,0,0),l}}]),n}(_r),o0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=11}},{key:"set",value:function(l,i,o){var a=l.getUTCHours()>=12;return a&&o<12?l.setUTCHours(o+12,0,0,0):l.setUTCHours(o,0,0,0),l}}]),n}(_r),i0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=24}},{key:"set",value:function(l,i,o){var a=o<=24?o%24:o;return l.setUTCHours(a,0,0,0),l}}]),n}(_r),l0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=59}},{key:"set",value:function(l,i,o){return l.setUTCMinutes(o,0,0),l}}]),n}(_r),s0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=59}},{key:"set",value:function(l,i,o){return l.setUTCSeconds(o,0),l}}]),n}(_r),u0e=function(e){hr(n,e);var t=mr(n);function n(){var r;sr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=kr((m=(g=(b=(v=r==null?void 0:r.weekStartsOn)!==null&&v!==void 0?v:r==null||(h=r.locale)===null||h===void 0||(y=h.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&b!==void 0?b:k.weekStartsOn)!==null&&g!==void 0?g:(w=k.locale)===null||w===void 0||(_=w.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&m!==void 0?m:0);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(T==="")return x===""?Tn(n):new Date(NaN);var O={firstWeekContainsDate:C,weekStartsOn:M,locale:S},D=[new Dge],P=T.match(g0e).map(function(U){var V=U[0];if(V in ik){var te=ik[V];return te(U,S.formatLong)}return U}).join("").match(m0e),E=[],I=d7(P),A;try{var F=function(){var V=A.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&bB(V)&&iy(V,T,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&yB(V)&&iy(V,T,e);var te=V[0],ee=h0e[te];if(ee){var H=ee.incompatibleTokens;if(Array.isArray(H)){var Z=E.find(function(X){return H.includes(X.token)||X.token===te});if(Z)throw new RangeError("The format string mustn't contain `".concat(Z.fullToken,"` and `").concat(V,"` at the same time"))}else if(ee.incompatibleTokens==="*"&&E.length>0)throw new RangeError("The format string mustn't contain `".concat(V,"` and any other token at the same time"));E.push({token:te,fullToken:V});var G=ee.run(x,V,S.match,O);if(!G)return{v:new Date(NaN)};D.push(G.setter),x=G.rest}else{if(te.match(x0e))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");if(V==="''"?V="'":te==="'"&&(V=_0e(V)),x.indexOf(V)===0)x=x.slice(V.length);else return{v:new Date(NaN)}}};for(I.s();!(A=I.n()).done;){var j=F();if(ns(j)==="object")return j.v}}catch(U){I.e(U)}finally{I.f()}if(x.length>0&&b0e.test(x))return new Date(NaN);var z=D.map(function(U){return U.priority}).sort(function(U,V){return V-U}).filter(function(U,V,te){return te.indexOf(U)===V}).map(function(U){return D.filter(function(V){return V.priority===U}).sort(function(V,te){return te.subPriority-V.subPriority})}).map(function(U){return U[0]}),B=Tn(n);if(isNaN(B.getTime()))return new Date(NaN);var N=pB(B,oy(B)),R={},q=d7(z),Y;try{for(q.s();!(Y=q.n()).done;){var L=Y.value;if(!L.validate(N,O))return new Date(NaN);var W=L.set(N,R,O);Array.isArray(W)?(N=W[0],kge(R,W[1])):N=W}}catch(U){q.e(U)}finally{q.f()}return N}function _0e(e){return e.match(v0e)[1].replace(y0e,"'")}function T0e(e,t){_n(2,arguments);var n=Tn(e),r=kr(t);return n.setDate(r),n}function k0e(e,t){_n(2,arguments);var n=Tn(e),r=kr(t);return n.setHours(r),n}function S0e(e,t){_n(2,arguments);var n=Tn(e),r=kr(t);return n.setMinutes(r),n}function C0e(e,t){_n(2,arguments);var n=Tn(e),r=kr(t),l=n.getFullYear(),i=n.getDate(),o=new Date(0);o.setFullYear(l,r,15),o.setHours(0,0,0,0);var a=wB(o);return n.setMonth(r,Math.min(i,a)),n}function M0e(e,t){_n(2,arguments);var n=Tn(e),r=kr(t);return n.setSeconds(r),n}function P0e(e,t){_n(2,arguments);var n=Tn(e),r=kr(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function u0(e){_n(1,arguments);var t=Tn(e);return t.setDate(1),t.setHours(0,0,0,0),t}function c_(e,t){var n,r,l,i,o,a,s,u;_n(1,arguments);var c=ou(),d=kr((n=(r=(l=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(a=o.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&l!==void 0?l:c.weekStartsOn)!==null&&r!==void 0?r:(s=c.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Tn(e),p=f.getDay(),m=(p2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],d0.timeZoneDelimiter.test(t.date)&&(t.date=e.split(d0.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var l=d0.timezone.exec(r);l?(t.time=r.replace(l[1],""),t.timezone=l[1]):t.time=r}return t}function R0e(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var l=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?l:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function L0e(e,t){if(t===null)return new Date(NaN);var n=e.match(O0e);if(!n)return new Date(NaN);var r=!!n[4],l=xp(n[1]),i=xp(n[2])-1,o=xp(n[3]),a=xp(n[4]),s=xp(n[5])-1;if(r)return B0e(t,a,s)?N0e(t,a,s):new Date(NaN);var u=new Date(0);return!j0e(t,i,o)||!z0e(t,l)?new Date(NaN):(u.setUTCFullYear(t,i,Math.max(l,o)),u)}function xp(e){return e?parseInt(e):1}function I0e(e){var t=e.match(A0e);if(!t)return NaN;var n=d_(t[1]),r=d_(t[2]),l=d_(t[3]);return W0e(n,r,l)?n*gb+r*mb+l*1e3:NaN}function d_(e){return e&&parseFloat(e.replace(",","."))||0}function $0e(e){if(e==="Z")return 0;var t=e.match(D0e);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),l=t[3]&&parseInt(t[3])||0;return q0e(r,l)?n*(r*gb+l*mb):NaN}function N0e(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var l=r.getUTCDay()||7,i=(t-1)*7+n+1-l;return r.setUTCDate(r.getUTCDate()+i),r}var F0e=[31,null,31,30,31,30,31,31,30,31,30,31];function PB(e){return e%400===0||e%4===0&&e%100!==0}function j0e(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(F0e[t]||(PB(e)?29:28))}function z0e(e,t){return t>=1&&t<=(PB(e)?366:365)}function B0e(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function W0e(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function q0e(e,t){return t>=0&&t<=59}const U0e=Object.freeze(Object.defineProperty({__proto__:null,default:MB},Symbol.toStringTag,{value:"Module"}));function H0e(e,t){var n,r;_n(1,arguments);var l=Tn(e);if(isNaN(l.getTime()))throw new RangeError("Invalid time value");var i=String((n=t==null?void 0:t.format)!==null&&n!==void 0?n:"extended"),o=String((r=t==null?void 0:t.representation)!==null&&r!==void 0?r:"complete");if(i!=="extended"&&i!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(o!=="date"&&o!=="time"&&o!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var a="",s="",u=i==="extended"?"-":"",c=i==="extended"?":":"";if(o!=="time"){var d=tr(l.getDate(),2),f=tr(l.getMonth()+1,2),p=tr(l.getFullYear(),4);a="".concat(p).concat(u).concat(f).concat(u).concat(d)}if(o!=="date"){var m=l.getTimezoneOffset();if(m!==0){var g=Math.abs(m),b=tr(Math.floor(g/60),2),v=tr(g%60,2),h=m<0?"+":"-";s="".concat(h).concat(b,":").concat(v)}else s="Z";var y=tr(l.getHours(),2),w=tr(l.getMinutes(),2),_=tr(l.getSeconds(),2),x=a===""?"":"T",T=[y,w,_].join(c);a="".concat(a).concat(x).concat(T).concat(s)}return a}function V0e(e,t){_n(2,arguments);var n=Tn(e).getTime(),r=Tn(t.start).getTime(),l=Tn(t.end).getTime();if(!(r<=l))throw new RangeError("Invalid interval");return n>=r&&n<=l}var lk={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(s,u){switch(s){case"P":return u.date({width:"short"});case"PP":return u.date({width:"medium"});case"PPP":return u.date({width:"long"});case"PPPP":default:return u.date({width:"full"})}},r=function(s,u){switch(s){case"p":return u.time({width:"short"});case"pp":return u.time({width:"medium"});case"ppp":return u.time({width:"long"});case"pppp":default:return u.time({width:"full"})}},l=function(s,u){var c=s.match(/(P+)(p+)?/)||[],d=c[1],f=c[2];if(!f)return n(s,u);var p;switch(d){case"P":p=u.dateTime({width:"short"});break;case"PP":p=u.dateTime({width:"medium"});break;case"PPP":p=u.dateTime({width:"long"});break;case"PPPP":default:p=u.dateTime({width:"full"});break}return p.replace("{{date}}",n(d,u)).replace("{{time}}",r(f,u))},i={p:r,P:l},o=i;t.default=o,e.exports=t.default})(lk,lk.exports);var G0e=lk.exports;const OB=lr(G0e),Y0e={dayOfMonth:"d",fullDate:"PP",fullDateWithWeekday:"PPPP",fullDateTime:"PP p",fullDateTime12h:"PP hh:mm aaa",fullDateTime24h:"PP HH:mm",fullTime:"p",fullTime12h:"hh:mm aaa",fullTime24h:"HH:mm",hours12h:"hh",hours24h:"HH",keyboardDate:"P",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aaa",keyboardDateTime24h:"P HH:mm",minutes:"mm",month:"LLLL",monthAndDate:"MMMM d",monthAndYear:"LLLL yyyy",monthShort:"MMM",weekday:"EEEE",weekdayShort:"EEE",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",seconds:"ss",shortDate:"MMM d",year:"yyyy"};class X0e{constructor({locale:t,formats:n}={}){this.lib="date-fns",this.is12HourCycleInCurrentLocale=()=>{var r;return this.locale?/a/.test((r=this.locale.formatLong)===null||r===void 0?void 0:r.time()):!0},this.getFormatHelperText=r=>{var l,i;const o=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,a=this.locale||yb;return(i=(l=r.match(o))===null||l===void 0?void 0:l.map(s=>{const u=s[0];if(u==="p"||u==="P"){const c=OB[u];return c(s,a.formatLong,{})}return s}).join("").replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase())!==null&&i!==void 0?i:r},this.parseISO=r=>MB(r),this.toISO=r=>H0e(r,{format:"extended"}),this.getCurrentLocaleCode=()=>{var r;return((r=this.locale)===null||r===void 0?void 0:r.code)||"en-US"},this.addSeconds=(r,l)=>Yhe(r,l),this.addMinutes=(r,l)=>Khe(r,l),this.addHours=(r,l)=>Qhe(r,l),this.addDays=(r,l)=>rk(r,l),this.addWeeks=(r,l)=>Jhe(r,l),this.addMonths=(r,l)=>av(r,l),this.addYears=(r,l)=>r7(r,l),this.isValid=r=>fB(this.date(r)),this.getDiff=(r,l,i)=>{var o;const a=(o=this.date(l))!==null&&o!==void 0?o:r;if(!this.isValid(a))return 0;switch(i){case"years":return tme(r,a);case"quarters":return ome(r,a);case"months":return cB(r,a);case"weeks":return sme(r,a);case"days":return dB(r,a);case"hours":return cme(r,a);case"minutes":return dme(r,a);case"seconds":return fme(r,a);default:return vb(r,a)}},this.isAfter=(r,l)=>s0(r,l),this.isBefore=(r,l)=>zc(r,l),this.startOfDay=r=>Wd(r),this.endOfDay=r=>ak(r),this.getHours=r=>pge(r),this.setHours=(r,l)=>k0e(r,l),this.setMinutes=(r,l)=>S0e(r,l),this.getSeconds=r=>gge(r),this.setSeconds=(r,l)=>M0e(r,l),this.isSameDay=(r,l)=>bge(r,l),this.isSameMonth=(r,l)=>wge(r,l),this.isSameYear=(r,l)=>xge(r,l),this.isSameHour=(r,l)=>_ge(r,l),this.startOfYear=r=>c0(r),this.endOfYear=r=>s_(r),this.startOfMonth=r=>u0(r),this.endOfMonth=r=>ok(r),this.startOfWeek=r=>c_(r,{locale:this.locale}),this.endOfWeek=r=>l_(r,{locale:this.locale}),this.getYear=r=>vge(r),this.setYear=(r,l)=>P0e(r,l),this.date=r=>typeof r>"u"?new Date:r===null?null:new Date(r),this.toJsDate=r=>r,this.parse=(r,l)=>r===""?null:w0e(r,l,new Date,{locale:this.locale}),this.format=(r,l)=>this.formatByString(r,this.formats[l]),this.formatByString=(r,l)=>xB(r,l,{locale:this.locale}),this.isEqual=(r,l)=>r===null&&l===null?!0:yge(r,l),this.isNull=r=>r===null,this.isAfterDay=(r,l)=>s0(r,ak(l)),this.isBeforeDay=(r,l)=>zc(r,Wd(l)),this.isBeforeYear=(r,l)=>zc(r,c0(l)),this.isAfterYear=(r,l)=>s0(r,s_(l)),this.isWithinRange=(r,[l,i])=>V0e(r,{start:l,end:i}),this.formatNumber=r=>r,this.getMinutes=r=>hge(r),this.getDate=r=>dge(r),this.setDate=(r,l)=>T0e(r,l),this.getMonth=r=>mge(r),this.getDaysInMonth=r=>wB(r),this.setMonth=(r,l)=>C0e(r,l),this.getMeridiemText=r=>r==="am"?"AM":"PM",this.getNextMonth=r=>av(r,1),this.getPreviousMonth=r=>av(r,-1),this.getMonthArray=r=>{const i=[c0(r)];for(;i.length<12;){const o=i[i.length-1];i.push(this.getNextMonth(o))}return i},this.mergeDateAndTime=(r,l)=>this.setSeconds(this.setMinutes(this.setHours(r,this.getHours(l)),this.getMinutes(l)),this.getSeconds(l)),this.getWeekdays=()=>{const r=new Date;return pme({start:c_(r,{locale:this.locale}),end:l_(r,{locale:this.locale})}).map(l=>this.formatByString(l,"EEEEEE"))},this.getWeekArray=r=>{const l=c_(u0(r),{locale:this.locale}),i=l_(ok(r),{locale:this.locale});let o=0,a=l;const s=[];let u=null;for(;zc(a,i);){const c=Math.floor(o/7);s[c]=s[c]||[];const d=fge(a);u!==d&&(u=d,s[c].push(a),o+=1),a=rk(a,1)}return s},this.getYearRange=(r,l)=>{const i=c0(r),o=s_(l),a=[];let s=i;for(;zc(s,o);)a.push(s),s=r7(s,1);return a},this.locale=t,this.formats=Object.assign({},Y0e,n)}isBeforeMonth(t,n){return zc(t,u0(n))}isAfterMonth(t,n){return s0(t,u0(n))}}const K0e={y:"year",yy:"year",yyy:"year",yyyy:"year",MMMM:"month",MM:"month",DD:"day",d:"day",dd:"day",H:"hour",HH:"hour",h:"hour",hh:"hour",mm:"minute",ss:"second",a:"am-pm",aa:"am-pm",aaa:"am-pm"};class Z0e extends X0e{constructor(...t){super(...t),this.formatTokenMap=K0e,this.expandFormat=n=>{const r=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return n.match(r).map(l=>{const i=l[0];if(i==="p"||i==="P"){const o=OB[i],a=this.locale||yb;return o(l,a.formatLong,{})}return l}).join("")},this.getFormatHelperText=n=>this.expandFormat(n).replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase()}}const Q0e=Object.freeze(Object.defineProperty({__proto__:null,AdapterDateFns:Z0e},Symbol.toStringTag,{value:"Module"})),AB=Qn(Q0e);function DB(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;te.indexOf(n)!==-1):e.indexOf(t)!==-1}const EB=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},RB=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?RB(t.shadowRoot):t:null};function J0e(e){return yn("PrivatePickersMonth",e)}const sk=hn("PrivatePickersMonth",["root","selected"]),eve=["disabled","onSelect","selected","value","tabIndex","hasFocus","onFocus","onBlur"],tve=e=>{const{classes:t,selected:n}=e;return vn({root:["root",n&&"selected"]},J0e,t)},nve=Et(dr,{name:"PrivatePickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${sk.selected}`]:t.selected}]})(({theme:e})=>Ie({flex:"1 0 33.33%",display:"flex",alignItems:"center",justifyContent:"center",color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:rr(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{pointerEvents:"none",color:e.palette.text.secondary},[`&.${sk.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),f7=()=>{},rve=e=>{const{disabled:t,onSelect:n,selected:r,value:l,tabIndex:i,hasFocus:o,onFocus:a=f7,onBlur:s=f7}=e,u=Kt(e,eve),c=tve(e),d=()=>{n(l)},f=ge.useRef(null);return no(()=>{if(o){var p;(p=f.current)==null||p.focus()}},[o]),ke.jsx(nve,Ie({ref:f,component:"button",type:"button",className:c.root,tabIndex:i,onClick:d,onKeyDown:EB(d),color:r?"primary":void 0,variant:r?"h5":"subtitle1",disabled:t,onFocus:p=>a(p,l),onBlur:p=>s(p,l)},u))},ia=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:Ie({},e)}}}}),ave={previousMonth:"Vorige maand",nextMonth:"Volgende maand",openPreviousView:"open vorige view",openNextView:"open volgende view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"jaarweergave is geopend, schakel over naar kalenderweergave":"kalenderweergave is geopend, switch naar jaarweergave",start:"Start",end:"Einde",cancelButtonLabel:"Annuleren",clearButtonLabel:"Resetten",okButtonLabel:"OK",todayButtonLabel:"Vandaag",clockLabelText:(e,t,n)=>`Selecteer ${e}. ${t===null?"Geen tijd geselecteerd":`Geselecteerde tijd is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} uren`,minutesClockNumberText:e=>`${e} minuten`,secondsClockNumberText:e=>`${e} seconden`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Kies datum, geselecteerde datum is ${t.format(t.date(e),"fullDate")}`:"Kies datum",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Kies tijd, geselecteerde tijd is ${t.format(t.date(e),"fullTime")}`:"Kies tijd",timeTableLabel:"kies tijd",dateTableLabel:"kies datum"},ove=ia(ave),ive={previousMonth:"Poprzedni miesiąc",nextMonth:"Następny miesiąc",openPreviousView:"otwórz poprzedni widok",openNextView:"otwórz następny widok",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"otwarty jest widok roku, przełącz na widok kalendarza":"otwarty jest widok kalendarza, przełącz na widok roku",start:"Początek",end:"Koniec",cancelButtonLabel:"Anuluj",clearButtonLabel:"Wyczyść",okButtonLabel:"Zatwierdź",todayButtonLabel:"Dzisiaj",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"Nie wybrano czasu":`Wybrany czas to ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} godzin`,minutesClockNumberText:e=>`${e} minut`,secondsClockNumberText:e=>`${e} sekund`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Wybierz datę, obecnie wybrana data to ${t.format(t.date(e),"fullDate")}`:"Wybierz datę",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Wybierz czas, obecnie wybrany czas to ${t.format(t.date(e),"fullTime")}`:"Wybierz czas",timeTableLabel:"wybierz czas",dateTableLabel:"wybierz datę"},lve=ia(ive),sve={previousMonth:"Mês anterior",nextMonth:"Próximo mês",openPreviousView:"Abrir próxima seleção",openNextView:"Abrir seleção anterior",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"Seleção de ano está aberta, alternando para seleção de calendário":"Seleção de calendários está aberta, alternando para seleção de ano",start:"Início",end:"Fim",cancelButtonLabel:"Cancelar",clearButtonLabel:"Limpar",okButtonLabel:"OK",todayButtonLabel:"Hoje",datePickerDefaultToolbarTitle:"Selecione a data",dateTimePickerDefaultToolbarTitle:"Selecione data e hora",timePickerDefaultToolbarTitle:"Selecione a hora",dateRangePickerDefaultToolbarTitle:"Selecione o intervalo entre datas",clockLabelText:(e,t,n)=>`Selecione ${e}. ${t===null?"Hora não selecionada":`Selecionado a hora ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} horas`,minutesClockNumberText:e=>`${e} minutos`,secondsClockNumberText:e=>`${e} segundos`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Escolha uma data, data selecionada ${t.format(t.date(e),"fullDate")}`:"Escolha uma data",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Escolha uma hora, hora selecionada ${t.format(t.date(e),"fullTime")}`:"Escolha uma hora",timeTableLabel:"escolha uma hora",dateTableLabel:"escolha uma data"},uve=ia(sve),cve={previousMonth:"Önceki ay",nextMonth:"Sonraki ay",openPreviousView:"sonraki görünüm",openNextView:"önceki görünüm",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"yıl görünümü açık, takvim görünümüne geç":"takvim görünümü açık, yıl görünümüne geç",inputModeToggleButtonAriaLabel:(e,t)=>e?`metin girişi görünümü açık, şuraya gidin: ${t} görünümü`:`${t} görünüm açık, metin girişi görünümüne gidin`,start:"Başlangıç",end:"Bitiş",cancelButtonLabel:"iptal",clearButtonLabel:"Temizle",okButtonLabel:"Tamam",todayButtonLabel:"Bugün",datePickerDefaultToolbarTitle:"Tarih Seç",dateTimePickerDefaultToolbarTitle:"Tarih & Saat seç",timePickerDefaultToolbarTitle:"Saat seç",dateRangePickerDefaultToolbarTitle:"Tarih aralığı seçin",clockLabelText:(e,t,n)=>`${e} seç. ${t===null?"Zaman seçilmedi":`Seçilen zaman: ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} saat`,minutesClockNumberText:e=>`${e} dakika`,secondsClockNumberText:e=>`${e} saniye`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Tarih seçin, seçilen tarih: ${t.format(e,"fullDate")}`:"Tarih seç",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Saat seçin, seçilen saat: ${t.format(e,"fullTime")}`:"Saat seç",timeTableLabel:"saat seç",dateTableLabel:"tarih seç"},dve=ia(cve),f0={hours:"Stunden",minutes:"Minuten",seconds:"Sekunden"},p7={calendar:"Kalenderansicht",clock:"Uhransicht"},fve={previousMonth:"Letzter Monat",nextMonth:"Nächster Monat",openPreviousView:"Letzte Ansicht öffnen",openNextView:"Nächste Ansicht öffnen",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"Jahresansicht ist geöffnet, zur Kalenderansicht wechseln":"Kalenderansicht ist geöffnet, zur Jahresansicht wechseln",inputModeToggleButtonAriaLabel:(e,t)=>e?`Texteingabeansicht ist geöffnet, zur ${p7[t]} wechseln`:`${p7[t]} ist geöffnet, zur Texteingabeansicht wechseln`,start:"Beginn",end:"Ende",cancelButtonLabel:"Abbrechen",clearButtonLabel:"Löschen",okButtonLabel:"OK",todayButtonLabel:"Heute",datePickerDefaultToolbarTitle:"Datum auswählen",dateTimePickerDefaultToolbarTitle:"Datum & Uhrzeit auswählen",timePickerDefaultToolbarTitle:"Uhrzeit auswählen",dateRangePickerDefaultToolbarTitle:"Datumsbereich auswählen",clockLabelText:(e,t,n)=>{var r;return`${(r=f0[e])!=null?r:e} auswählen. ${t===null?"Keine Uhrzeit ausgewählt":`Gewählte Uhrzeit ist ${n.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} ${f0.hours}`,minutesClockNumberText:e=>`${e} ${f0.minutes}`,secondsClockNumberText:e=>`${e} ${f0.seconds}`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Datum auswählen, gewähltes Datum ist ${t.format(t.date(e),"fullDate")}`:"Datum auswählen",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Uhrzeit auswählen, gewählte Uhrzeit ist ${t.format(t.date(e),"fullTime")}`:"Uhrzeit auswählen",timeTableLabel:"Uhrzeit auswählen",dateTableLabel:"Datum auswählen"},pve=ia(fve),hve={hours:"las horas",minutes:"los minutos",seconds:"los segundos"},mve={previousMonth:"Último mes",nextMonth:"Próximo mes",openPreviousView:"abrir la última vista",openNextView:"abrir la siguiente vista",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"la vista del año está abierta, cambie a la vista de calendario":"la vista de calendario está abierta, cambie a la vista del año",inputModeToggleButtonAriaLabel:(e,t)=>e?`la vista de entrada de texto está abierta, ir a la vista ${t}`:`la vista ${t} está abierta, ir a la vista de entrada de texto`,start:"Empezar",end:"Terminar",cancelButtonLabel:"Cancelar",clearButtonLabel:"Limpiar",okButtonLabel:"OK",todayButtonLabel:"Hoy",datePickerDefaultToolbarTitle:"Seleccionar fecha",dateTimePickerDefaultToolbarTitle:"Seleccionar fecha & hora",timePickerDefaultToolbarTitle:"Seleccionar hora",dateRangePickerDefaultToolbarTitle:"Seleccionar rango de fecha",clockLabelText:(e,t,n)=>`Seleccione ${hve[e]}. ${t===null?"Sin tiempo seleccionado":`El tiempo seleccionado es ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} horas`,minutesClockNumberText:e=>`${e} minutos`,secondsClockNumberText:e=>`${e} segundos`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Elige la fecha, la fecha elegida es ${t.format(t.date(e),"fullDate")}`:"Elige la fecha",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Elige la hora, la hora elegido es ${t.format(t.date(e),"fullTime")}`:"Elige la hora",timeTableLabel:"elige la fecha",dateTableLabel:"elige la hora"},gve=ia(mve),vve={previousMonth:"ماه گذشته",nextMonth:"ماه آینده",openPreviousView:"نمای قبلی",openNextView:"نمای بعدی",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"نمای سال باز است، رفتن به نمای تقویم":"نمای تقویم باز است، رفتن به نمای سال",inputModeToggleButtonAriaLabel:(e,t)=>e?`نمای ورودی متن باز است، رفتن به نمای ${t}`:`نمای ${t} باز است، رفتن به نمای ورودی متن`,start:"شروع",end:"پایان",cancelButtonLabel:"لغو",clearButtonLabel:"پاک کردن",okButtonLabel:"اوکی",todayButtonLabel:"امروز",datePickerDefaultToolbarTitle:"تاریخ را انتخاب کنید",dateTimePickerDefaultToolbarTitle:"تاریخ و ساعت را انتخاب کنید",timePickerDefaultToolbarTitle:"ساعت را انتخاب کنید",dateRangePickerDefaultToolbarTitle:"محدوده تاریخ را انتخاب کنید",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"هیچ ساعتی انتخاب نشده است":`ساعت انتخاب ${n.format(t,"fullTime")} می باشد`}`,hoursClockNumberText:e=>`${e} ساعت ها`,minutesClockNumberText:e=>`${e} دقیقه ها`,secondsClockNumberText:e=>`${e} ثانیه ها`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`تاریخ را انتخاب کنید، تاریخ انتخاب شده ${t.format(t.date(e),"fullDate")} می باشد`:"تاریخ را انتخاب کنید",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`ساعت را انتخاب کنید، ساعت انتخاب شده ${t.format(t.date(e),"fullTime")} می باشد`:"ساعت را انتخاب کنید",timeTableLabel:"انتخاب تاریخ",dateTableLabel:"انتخاب ساعت"},yve=ia(vve),bve={hours:"tunnit",minutes:"minuutit",seconds:"sekuntit"},h7={calendar:"kalenteri",clock:"kello"},xve={previousMonth:"Edellinen kuukausi",nextMonth:"Seuraava kuukausi",openPreviousView:"avaa edellinen kuukausi",openNextView:"avaa seuraava kuukausi",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"vuosinäkymä on auki, vaihda kalenterinäkymään":"kalenterinäkymä on auki, vaihda vuosinäkymään",inputModeToggleButtonAriaLabel:(e,t)=>e?`tekstikenttä on auki, mene ${h7[t]}näkymään`:`${h7[t]}näkymä on auki, mene tekstikenttään`,start:"Alku",end:"Loppu",cancelButtonLabel:"Peruuta",clearButtonLabel:"Tyhjennä",okButtonLabel:"OK",todayButtonLabel:"Tänään",datePickerDefaultToolbarTitle:"Valitse päivä",dateTimePickerDefaultToolbarTitle:"Valitse päivä ja aika",timePickerDefaultToolbarTitle:"Valitse aika",dateRangePickerDefaultToolbarTitle:"Valitse aikaväli",clockLabelText:(e,t,n)=>`Valitse ${bve[e]}. ${t===null?"Ei aikaa valittuna":`Valittu aika on ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} tuntia`,minutesClockNumberText:e=>`${e} minuuttia`,secondsClockNumberText:e=>`${e} sekunttia`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Valitse päivä, valittu päivä on ${t.format(t.date(e),"fullDate")}`:"Valitse päivä",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Valitse aika, valittu aika on ${t.format(t.date(e),"fullTime")}`:"Valitse aika",timeTableLabel:"valitse aika",dateTableLabel:"valitse päivä"},wve=ia(xve),_ve={hours:"Hodiny",minutes:"Minuty",seconds:"Sekundy"},m7={calendar:"kalendáře",clock:"času"},Tve={previousMonth:"Další měsíc",nextMonth:"Předchozí month",openPreviousView:"otevřít předchozí zobrazení",openNextView:"otevřít další zobrazení",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"roční zobrazení otevřeno, přepněte do zobrazení kalendáře":"zobrazení kalendáře otevřeno, přepněte do zobrazení roku",inputModeToggleButtonAriaLabel:(e,t)=>e?`Zobrazení pro zadávání textu je otevřené, přepněte do zobrazení ${m7[t]}`:`Zobrazení ${m7[t]} je otevřené, přepněte do zobrazení textového pole`,start:"Začátek",end:"Konec",cancelButtonLabel:"Zrušit",clearButtonLabel:"Vymazat",okButtonLabel:"Potvrdit",todayButtonLabel:"Dnes",datePickerDefaultToolbarTitle:"Vyberte datum",dateTimePickerDefaultToolbarTitle:"Vyberte datum a čas",timePickerDefaultToolbarTitle:"Vyberte čas",dateRangePickerDefaultToolbarTitle:"Vyberete rozmezí dat",clockLabelText:(e,t,n)=>{var r;return`${(r=_ve[e])!=null?r:e} vybrány. ${t===null?"Není vybrán čas":`Vybraný čas je ${n.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} hodin`,minutesClockNumberText:e=>`${e} minut`,secondsClockNumberText:e=>`${e} sekund`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Vybrané datum, vybrané datum je ${t.format(e,"fullDate")}`:"Vyberte datum",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Vybrané čas, vybraný čas je ${t.format(e,"fullTime")}`:"Vyberte čas",timeTableLabel:"vyberte čas",dateTableLabel:"vyberte datum"},kve=ia(Tve),Sve={hours:"heures",minutes:"minutes",seconds:"secondes"},g7={calendar:"calendrier",clock:"horloge"},Cve={previousMonth:"Mois précédent",nextMonth:"Mois suivant",openPreviousView:"Ouvrir la vue précédente",openNextView:"Ouvrir la vue suivante",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"La vue année est ouverte, ouvrir la vue calendrier":"La vue calendrier est ouverte, ouvrir la vue année",inputModeToggleButtonAriaLabel:(e,t)=>e?`passer du champ text au ${g7[t]}`:`passer du ${g7[t]} au champ text`,start:"Début",end:"Fin",cancelButtonLabel:"Annuler",clearButtonLabel:"Vider",okButtonLabel:"OK",todayButtonLabel:"Aujourd'hui",clockLabelText:(e,t,n)=>`Choix des ${Sve[e]}. ${t===null?"Aucune heure choisie":`L'heure choisie est ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} heures`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} secondes`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choisir la date, la date sélectionnée est ${t.format(t.date(e),"fullDate")}`:"Choisir la date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choisir l'heure, l'heure sélectionnée est ${t.format(t.date(e),"fullTime")}`:"Choisir l'heure",timeTableLabel:"choix de l'heure",dateTableLabel:"choix de la date"},Mve=ia(Cve),p0={hours:"Óra",minutes:"Perc",seconds:"Másodperc"},v7={calendar:"naptár",clock:"óra"},Pve={previousMonth:"Előző hónap",nextMonth:"Következő hónap",openPreviousView:"Előző nézet megnyitása",openNextView:"Következő nézet megnyitása",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"az évválasztó már nyitva, váltson a naptárnézetre":"a naptárnézet már nyitva, váltson az évválasztóra",inputModeToggleButtonAriaLabel:(e,t)=>e?`szöveges beviteli nézet aktív, váltás ${v7[t]} nézetre`:`${v7[t]} beviteli nézet aktív, váltás szöveges beviteli nézetre`,start:"Kezdő dátum",end:"Záró dátum",cancelButtonLabel:"Mégse",clearButtonLabel:"Törlés",okButtonLabel:"OK",todayButtonLabel:"Ma",datePickerDefaultToolbarTitle:"Dátum kiválasztása",dateTimePickerDefaultToolbarTitle:"Dátum és idő kiválasztása",timePickerDefaultToolbarTitle:"Idő kiválasztása",dateRangePickerDefaultToolbarTitle:"Dátumhatárok kiválasztása",clockLabelText:(e,t,n)=>{var r;return`${(r=p0[e])!=null?r:e} kiválasztása. ${t===null?"Nincs kiválasztva idő":`A kiválasztott idő ${n.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} ${p0.hours.toLowerCase()}`,minutesClockNumberText:e=>`${e} ${p0.minutes.toLowerCase()}`,secondsClockNumberText:e=>`${e} ${p0.seconds.toLowerCase()}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Válasszon dátumot, a kiválasztott dátum: ${t.format(e,"fullDate")}`:"Válasszon dátumot",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Válasszon időt, a kiválasztott idő: ${t.format(e,"fullTime")}`:"Válasszon időt",timeTableLabel:"válasszon időt",dateTableLabel:"válasszon dátumot"},Ove=ia(Pve),LB={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",inputModeToggleButtonAriaLabel:(e,t)=>e?`text input view is open, go to ${t} view`:`${t} view is open, go to text input view`,start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerDefaultToolbarTitle:"Select date",dateTimePickerDefaultToolbarTitle:"Select date & time",timePickerDefaultToolbarTitle:"Select time",dateRangePickerDefaultToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose date, selected date is ${t.format(t.date(e),"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose time, selected time is ${t.format(t.date(e),"fullTime")}`:"Choose time",timeTableLabel:"pick time",dateTableLabel:"pick date"},IB=LB,Ave=ia(LB),Dve={previousMonth:"Forrige måned",nextMonth:"Neste måned",openPreviousView:"åpne forrige visning",openNextView:"åpne neste visning",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"årsvisning er åpen, bytt til kalendervisning":"kalendervisning er åpen, bytt til årsvisning",start:"Start",end:"Slutt",cancelButtonLabel:"Avbryt",clearButtonLabel:"Fjern",okButtonLabel:"OK",todayButtonLabel:"I dag",clockLabelText:(e,t,n)=>`Velg ${e}. ${t===null?"Ingen tid valgt":`Valgt tid er ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} timer`,minutesClockNumberText:e=>`${e} minutter`,secondsClockNumberText:e=>`${e} sekunder`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velg dato, valgt dato er ${t.format(t.date(e),"fullDate")}`:"Velg dato",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velg tid, valgt tid er ${t.format(t.date(e),"fullTime")}`:"Velg tid",timeTableLabel:"velg tid",dateTableLabel:"velg dato"},Eve=ia(Dve),Rve={previousMonth:"Föregående månad",nextMonth:"Nästa månad",openPreviousView:"öppna föregående vy",openNextView:"öppna nästa vy",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"årsvyn är öppen, byt till kalendervy":"kalendervyn är öppen, byt till årsvy",start:"Start",end:"Slut",cancelButtonLabel:"Avbryt",clearButtonLabel:"Rensa",okButtonLabel:"OK",todayButtonLabel:"Idag",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"Ingen tid vald":`Vald tid är ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} timmar`,minutesClockNumberText:e=>`${e} minuter`,secondsClockNumberText:e=>`${e} sekunder`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Välj datum, valt datum är ${t.format(t.date(e),"fullDate")}`:"Välj datum",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Välj tid, vald tid är ${t.format(t.date(e),"fullTime")}`:"Välj tid",timeTableLabel:"välj tid",dateTableLabel:"välj datum"},Lve=ia(Rve),Ive={hours:"le ore",minutes:"i minuti",seconds:"i secondi"},$ve={previousMonth:"Mese precedente",nextMonth:"Mese successivo",openPreviousView:"apri la vista precedente",openNextView:"apri la vista successiva",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"la vista dell'anno è aperta, passare alla vista del calendario":"la vista dell'calendario è aperta, passare alla vista dell'anno",inputModeToggleButtonAriaLabel:(e,t)=>e?`la vista del campo di testo è aperta, passare alla vista ${t}`:`la vista aperta è: ${t}, vai alla vista del campo di testo`,start:"Inizio",end:"Fine",cancelButtonLabel:"Cancellare",clearButtonLabel:"Sgomberare",okButtonLabel:"OK",todayButtonLabel:"Oggi",datePickerDefaultToolbarTitle:"Seleziona data",dateTimePickerDefaultToolbarTitle:"Seleziona data e orario",timePickerDefaultToolbarTitle:"Seleziona orario",dateRangePickerDefaultToolbarTitle:"Seleziona intervallo di date",clockLabelText:(e,t,n)=>`Seleziona ${Ive[e]}. ${t===null?"Nessun orario selezionato":`L'ora selezionata è ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} ore`,minutesClockNumberText:e=>`${e} minuti`,secondsClockNumberText:e=>`${e} secondi`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Scegli la data, la data selezionata è ${t.format(t.date(e),"fullDate")}`:"Scegli la data",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Scegli l'ora, l'ora selezionata è ${t.format(t.date(e),"fullTime")}`:"Scegli l'ora",timeTableLabel:"scegli un'ora",dateTableLabel:"scegli una data"},Nve=ia($ve),Fve={hours:"小时",minutes:"分钟",seconds:"秒"},jve={previousMonth:"上个月",nextMonth:"下个月",openPreviousView:"前一个视图",openNextView:"下一个视图",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"年视图已打开,切换为日历视图":"日历视图已打开,切换为年视图",start:"开始",end:"结束",cancelButtonLabel:"取消",clearButtonLabel:"清除",okButtonLabel:"确认",todayButtonLabel:"今天",clockLabelText:(e,t,n)=>`Select ${Fve[e]}. ${t===null?"未选择时间":`已选择${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e}小时`,minutesClockNumberText:e=>`${e}分钟`,secondsClockNumberText:e=>`${e}秒`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`选择日期,已选择${t.format(t.date(e),"fullDate")}`:"选择日期",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`选择时间,已选择${t.format(t.date(e),"fullTime")}`:"选择时间",timeTableLabel:"选择时间",dateTableLabel:"选择日期"},zve=ia(jve),Bve={hours:"시간을",minutes:"분을",seconds:"초를"},Wve={previousMonth:"이전 달",nextMonth:"다음 달",openPreviousView:"이전 화면 보기",openNextView:"다음 화면 보기",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"연도 선택 화면에서 달력 화면으로 전환하기":"달력 화면에서 연도 선택 화면으로 전환하기",inputModeToggleButtonAriaLabel:(e,t)=>e?`텍스트 입력 화면에서 ${t} 화면으로 전환하기`:`${t} 화면에서 텍스트 입력 화면으로 전환하기`,start:"시작",end:"종료",cancelButtonLabel:"취소",clearButtonLabel:"초기화",okButtonLabel:"확인",todayButtonLabel:"오늘",datePickerDefaultToolbarTitle:"날짜 선택하기",dateTimePickerDefaultToolbarTitle:"날짜 & 시간 선택하기",timePickerDefaultToolbarTitle:"시간 선택하기",dateRangePickerDefaultToolbarTitle:"날짜 범위 선택하기",clockLabelText:(e,t,n)=>`${Bve[e]} 선택하세요. ${t===null?"시간을 선택하지 않았습니다.":`현재 선택된 시간은 ${n.format(t,"fullTime")}입니다.`}`,hoursClockNumberText:e=>`${e}시간`,minutesClockNumberText:e=>`${e}분`,secondsClockNumberText:e=>`${e}초`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`날짜를 선택하세요. 현재 선택된 날짜는 ${t.format(t.date(e),"fullDate")}입니다.`:"날짜를 선택하세요",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`시간을 선택하세요. 현재 선택된 시간은 ${t.format(t.date(e),"fullTime")}입니다.`:"시간을 선택하세요",timeTableLabel:"선택한 시간",dateTableLabel:"선택한 날짜"},qve=ia(Wve),Uve={previousMonth:"Fyrri mánuður",nextMonth:"Næsti mánuður",openPreviousView:"opna fyrri skoðun",openNextView:"opna næstu skoðun",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"ársskoðun er opin, skipta yfir í dagatalsskoðun":"dagatalsskoðun er opin, skipta yfir í ársskoðun",inputModeToggleButtonAriaLabel:(e,t)=>{const n=t==="calendar"?"dagatals":"klukku";return e?`textainnsláttur er opinn, fara í ${n}skoðun`:`${n}skoðun er opin, opna fyrir textainnslátt`},start:"Upphaf",end:"Endir",cancelButtonLabel:"Hætta við",clearButtonLabel:"Hreinsa",okButtonLabel:"OK",todayButtonLabel:"Í dag",datePickerDefaultToolbarTitle:"Velja dagsetningu",dateTimePickerDefaultToolbarTitle:"Velja dagsetningu og tíma",timePickerDefaultToolbarTitle:"Velja tíma",dateRangePickerDefaultToolbarTitle:"Velja tímabil",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"Enginn tími valinn":`Valinn tími er ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} klukkustundir`,minutesClockNumberText:e=>`${e} mínútur`,secondsClockNumberText:e=>`${e} sekúndur`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velja dagsetningu, valin dagsetning er ${t.format(t.date(e),"fullDate")}`:"Velja dagsetningu",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velja tíma, valinn tími er ${t.format(t.date(e),"fullTime")}`:"Velja tíma",timeTableLabel:"velja tíma",dateTableLabel:"velja dagsetningu"},Hve=ia(Uve),h0={hours:"時間",minutes:"分",seconds:"秒"},y7={calendar:"カレンダー表示",clock:"時計表示"},Vve={previousMonth:"先月",nextMonth:"来月",openPreviousView:"前の表示を開く",openNextView:"次の表示を開く",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"年選択表示からカレンダー表示に切り替える":"カレンダー表示から年選択表示に切り替える",inputModeToggleButtonAriaLabel:(e,t)=>e?`テキスト入力表示から${y7[t]}に切り替える`:`${y7[t]}からテキスト入力表示に切り替える`,start:"開始",end:"終了",cancelButtonLabel:"キャンセル",clearButtonLabel:"クリア",okButtonLabel:"確定",todayButtonLabel:"今日",datePickerDefaultToolbarTitle:"日付を選択",dateTimePickerDefaultToolbarTitle:"日時を選択",timePickerDefaultToolbarTitle:"時間を選択",dateRangePickerDefaultToolbarTitle:"日付の範囲を選択",clockLabelText:(e,t,n)=>{var r;return`${(r=h0[e])!=null?r:e}を選択してください ${t===null?"時間が選択されていません":`選択した時間は ${n.format(t,"fullTime")} です`}`},hoursClockNumberText:e=>`${e} ${h0.hours}`,minutesClockNumberText:e=>`${e} ${h0.minutes}`,secondsClockNumberText:e=>`${e} ${h0.seconds}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`日付を選択してください。選択した日付は ${t.format(e,"fullDate")} です`:"日付を選択してください",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`時間を選択してください。選択した時間は ${t.format(e,"fullTime")} です`:"時間を選択してください",timeTableLabel:"時間を選択",dateTableLabel:"日付を選択"},Gve=ia(Vve),Yve={previousMonth:"Попередній місяць",nextMonth:"Наступний місяць",openPreviousView:"відкрити попередній вигляд",openNextView:"відкрити наступний вигляд",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"річний вигляд відкрито, перейти до календарного вигляду":"календарний вигляд відкрито, перейти до річного вигляду",inputModeToggleButtonAriaLabel:(e,t)=>e?`текстове поле відкрите, перейти до ${t} вигляду`:`${t} вигляд наразі відкрито, перейти до текстового поля`,start:"Початок",end:"Кінець",cancelButtonLabel:"Відміна",clearButtonLabel:"Очистити",okButtonLabel:"OK",todayButtonLabel:"Сьогодні",datePickerDefaultToolbarTitle:"Вибрати дату",dateTimePickerDefaultToolbarTitle:"Вибрати дату і час",timePickerDefaultToolbarTitle:"Вибрати час",dateRangePickerDefaultToolbarTitle:"Вибрати календарний період",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"Час не вибраний":`Вибрано час ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} годин`,minutesClockNumberText:e=>`${e} хвилин`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Оберіть дату, обрана дата ${t.format(e,"fullDate")}`:"Оберіть дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Оберіть час, обраний час ${t.format(e,"fullTime")}`:"Оберіть час",timeTableLabel:"оберіть час",dateTableLabel:"оберіть дату"},Xve=ia(Yve),Kve={previousMonth:"پچھلا مہینہ",nextMonth:"اگلا مہینہ",openPreviousView:"پچھلا ویو کھولیں",openNextView:"اگلا ویو کھولیں",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"سال والا ویو کھلا ہے۔ کیلنڈر والا ویو کھولیں":"کیلنڈر والا ویو کھلا ہے۔ سال والا ویو کھولیں",inputModeToggleButtonAriaLabel:(e,t)=>e?`،ٹیکسٹ ویو کھلا ہے ${t} ویو کھولیں`:`${t} ویو کھلا ہے، ٹیکسٹ ویو کھولیں`,start:"شروع",end:"ختم",cancelButtonLabel:"کینسل",clearButtonLabel:"کلئیر",okButtonLabel:"اوکے",todayButtonLabel:"آج",datePickerDefaultToolbarTitle:"تاریخ منتخب کریں",dateTimePickerDefaultToolbarTitle:"تاریخ اور وقت منتخب کریں",timePickerDefaultToolbarTitle:"وقت منتخب کریں",dateRangePickerDefaultToolbarTitle:"تاریخوں کی رینج منتخب کریں",clockLabelText:(e,t,n)=>`${e} منتخب کریں ${t===null?"کوئی وقت منتخب نہیں":`منتخب وقت ہے ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} گھنٹے`,minutesClockNumberText:e=>`${e} منٹ`,secondsClockNumberText:e=>`${e} سیکنڈ`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`تاریخ منتخب کریں، منتخب شدہ تاریخ ہے ${t.format(e,"fullDate")}`:"تاریخ منتخب کریں",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`وقت منتخب کریں، منتخب شدہ وقت ہے ${t.format(e,"fullTime")}`:"وقت منتخب کریں",timeTableLabel:"وقت منتخب کریں",dateTableLabel:"تاریخ منتخب کریں"},Zve=ia(Kve),f_={hours:"гадзіны",minutes:"хвіліны",seconds:"секунды",calendar:"календара",clock:"часу"},Qve={previousMonth:"Папярэдні месяц",nextMonth:"Наступны месяц",openPreviousView:"адкрыць папярэдні выгляд",openNextView:"адкрыць наступны выгляд",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"гадавы выгляд адкрыты, перайсці да каляндарнага выгляду":"каляндарны выгляд адкрыты, перайсці да гадавога выгляду",inputModeToggleButtonAriaLabel:(e,t)=>e?`тэкставае поле адкрыта, перайсці да выгляду ${f_[t]}`:`Выгляд ${f_[t]} зараз адкрыты, перайсці да тэкставага поля`,start:"Пачатак",end:"Канец",cancelButtonLabel:"Адмена",clearButtonLabel:"Ачысціць",okButtonLabel:"OK",todayButtonLabel:"Сёння",datePickerDefaultToolbarTitle:"Абраць дату",dateTimePickerDefaultToolbarTitle:"Абраць дату і час",timePickerDefaultToolbarTitle:"Абраць час",dateRangePickerDefaultToolbarTitle:"Абраць каляндарны перыяд",clockLabelText:(e,t,n)=>`Абярыце ${f_[e]}. ${t===null?"Час не абраны":`Абраны час ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} гадзін`,minutesClockNumberText:e=>`${e} хвілін`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Абраць дату, абрана дата ${t.format(e,"fullDate")}`:"Абраць дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Абраць час, абрыны час ${t.format(e,"fullTime")}`:"Абраць час",timeTableLabel:"абраць час",dateTableLabel:"абраць дату"},Jve=ia(Qve),eye={hours:"часы",minutes:"минуты",seconds:"секунды"},b7={calendar:"календарный",clock:"часовой"},tye={previousMonth:"Предыдущий месяц",nextMonth:"Следующий месяц",openPreviousView:"открыть предыдущий вид",openNextView:"открыть следующий вид",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"открыт годовой вид, переключить на календарный вид":"открыт календарный вид, переключить на годовой вид",inputModeToggleButtonAriaLabel:(e,t)=>e?`Открыт текстовый вид, перейти на ${b7[t]} вид`:`Открыт ${b7[t]} вид, перейти на текстовый вид`,start:"Начало",end:"Конец",cancelButtonLabel:"Отмена",clearButtonLabel:"Очистить",okButtonLabel:"Ок",todayButtonLabel:"Сегодня",datePickerDefaultToolbarTitle:"Выбрать дату",dateTimePickerDefaultToolbarTitle:"Выбрать дату и время",timePickerDefaultToolbarTitle:"Выбрать время",dateRangePickerDefaultToolbarTitle:"Выбрать период",clockLabelText:(e,t,n)=>`Выбрать ${eye[e]}. ${t===null?"Время не выбрано":`Выбрано время ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} часов`,minutesClockNumberText:e=>`${e} минут`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Выберите дату, выбрана дата ${t.format(e,"fullDate")}`:"Выберите дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Выберите время, выбрано время ${t.format(e,"fullTime")}`:"Выберите время",timeTableLabel:"выбрать время",dateTableLabel:"выбрать дату"},nye=ia(tye),BM=ge.createContext(null);function rye(e){const t=pn({props:e,name:"MuiLocalizationProvider"}),{children:n,dateAdapter:r,dateFormats:l,dateLibInstance:i,locale:o,adapterLocale:a,localeText:s}=t,u=ge.useMemo(()=>new r({locale:a??o,formats:l,instance:i}),[r,o,a,l,i]),c=ge.useMemo(()=>({minDate:u.date("1900-01-01T00:00:00.000"),maxDate:u.date("2099-12-31T00:00:00.000")}),[u]),d=ge.useMemo(()=>({utils:u,defaultDates:c,localeText:Ie({},IB,s??{})}),[c,u,s]);return ke.jsx(BM.Provider,{value:d,children:n})}const ng=()=>{const e=ge.useContext(BM);if(e===null)throw new Error("MUI: Can not find utils in context. It looks like you forgot to wrap your component in LocalizationProvider, or pass dateAdapter prop directly.");return e},Br=()=>ng().utils,rg=()=>ng().defaultDates,Xi=()=>ng().localeText,ag=()=>{const e=Br();return ge.useRef(e.date()).current};function $B(e){return yn("MuiMonthPicker",e)}const aye=hn("MuiMonthPicker",["root"]),Ih=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:l,isDateDisabled:i,utils:o})=>{const a=o.startOfDay(o.date());n&&o.isBefore(l,a)&&(l=a),t&&o.isAfter(r,a)&&(r=a);let s=e,u=e;for(o.isBefore(e,l)&&(s=o.date(l),u=null),o.isAfter(e,r)&&(u&&(u=o.date(r)),s=null);s||u;){if(s&&o.isAfter(s,r)&&(s=null),u&&o.isBefore(u,l)&&(u=null),s){if(!i(s))return s;s=o.addDays(s,1)}if(u){if(!i(u))return u;u=o.addDays(u,-1)}}return null},WM=(e,t)=>{const n=e.date(t);return e.isValid(n)?n:null},Ci=(e,t,n)=>{if(t==null)return n;const r=e.date(t);return e.isValid(r)?r:n},oye=["className","date","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange"],iye=e=>{const{classes:t}=e;return vn({root:["root"]},$B,t)};function lye(e,t){const n=Br(),r=rg(),l=pn({props:e,name:t});return Ie({disableFuture:!1,disablePast:!1},l,{minDate:Ci(n,l.minDate,r.minDate),maxDate:Ci(n,l.maxDate,r.maxDate)})}const sye=Et("div",{name:"MuiMonthPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({width:310,display:"flex",flexWrap:"wrap",alignContent:"stretch",margin:"0 4px"}),NB=ge.forwardRef(function(t,n){const r=Br(),l=ag(),i=lye(t,"MuiMonthPicker"),{className:o,date:a,disabled:s,disableFuture:u,disablePast:c,maxDate:d,minDate:f,onChange:p,shouldDisableMonth:m,readOnly:g,disableHighlightToday:b,autoFocus:v=!1,onMonthFocus:h,hasFocus:y,onFocusedViewChange:w}=i,_=Kt(i,oye),x=i,T=iye(x),k=Ym(),S=ge.useMemo(()=>a??r.startOfMonth(l),[l,r,a]),C=ge.useMemo(()=>a!=null?r.getMonth(a):b?null:r.getMonth(l),[l,a,r,b]),[M,O]=ge.useState(()=>C||r.getMonth(l)),D=ge.useCallback(R=>{const q=r.startOfMonth(c&&r.isAfter(l,f)?l:f),Y=r.startOfMonth(u&&r.isBefore(l,d)?l:d);return r.isBefore(R,q)||r.isAfter(R,Y)?!0:m?m(R):!1},[u,c,d,f,l,m,r]),P=R=>{if(g)return;const q=r.setMonth(S,R);p(q,"finish")},[E,I]=Zl({name:"MonthPicker",state:"hasFocus",controlled:y,default:v}),A=ge.useCallback(R=>{I(R),w&&w(R)},[I,w]),F=ge.useCallback(R=>{D(r.setMonth(S,R))||(O(R),A(!0),h&&h(R))},[D,r,S,A,h]);ge.useEffect(()=>{O(R=>C!==null&&R!==C?C:R)},[C]);const j=yo(R=>{switch(R.key){case"ArrowUp":F((12+M-3)%12),R.preventDefault();break;case"ArrowDown":F((12+M+3)%12),R.preventDefault();break;case"ArrowLeft":F((12+M+(k.direction==="ltr"?-1:1))%12),R.preventDefault();break;case"ArrowRight":F((12+M+(k.direction==="ltr"?1:-1))%12),R.preventDefault();break}}),z=ge.useCallback((R,q)=>{F(q)},[F]),B=ge.useCallback(()=>{A(!1)},[A]),N=r.getMonth(l);return ke.jsx(sye,Ie({ref:n,className:ma(T.root,o),ownerState:x,onKeyDown:j},_,{children:r.getMonthArray(S).map(R=>{const q=r.getMonth(R),Y=r.format(R,"monthShort"),L=s||D(R);return ke.jsx(rve,{value:q,selected:q===C,tabIndex:q===M&&!L?0:-1,hasFocus:E&&q===M,onSelect:P,onFocus:z,onBlur:B,disabled:L,"aria-current":N===q?"date":void 0,children:Y},Y)})}))});function qM(e,t,n){const{value:r,onError:l}=e,i=ng(),o=ge.useRef(null),a=t({adapter:i,value:r,props:e});return ge.useEffect(()=>{l&&!n(a,o.current)&&l(a,r),o.current=a},[n,l,o,a,r]),a}const UM=({props:e,value:t,adapter:n})=>{const r=n.utils.date(),l=n.utils.date(t),i=Ci(n.utils,e.minDate,n.defaultDates.minDate),o=Ci(n.utils,e.maxDate,n.defaultDates.maxDate);if(l===null)return null;switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(e.shouldDisableDate&&e.shouldDisableDate(l)):return"shouldDisableDate";case!!(e.disableFuture&&n.utils.isAfterDay(l,r)):return"disableFuture";case!!(e.disablePast&&n.utils.isBeforeDay(l,r)):return"disablePast";case!!(i&&n.utils.isBeforeDay(l,i)):return"minDate";case!!(o&&n.utils.isAfterDay(l,o)):return"maxDate";default:return null}},FB=({shouldDisableDate:e,minDate:t,maxDate:n,disableFuture:r,disablePast:l})=>{const i=ng();return ge.useCallback(o=>UM({adapter:i,value:o,props:{shouldDisableDate:e,minDate:t,maxDate:n,disableFuture:r,disablePast:l}})!==null,[i,e,t,n,r,l])},uye=(e,t)=>e===t,HM=e=>qM(e,UM,uye),cye=(e,t,n)=>(r,l)=>{switch(l.type){case"changeMonth":return Ie({},r,{slideDirection:l.direction,currentMonth:l.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return Ie({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&l.focusedDay!=null&&n.isSameDay(l.focusedDay,r.focusedDay))return r;const i=l.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,l.focusedDay);return Ie({},r,{focusedDay:l.focusedDay,isMonthSwitchingAnimating:i&&!e&&!l.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(l.focusedDay):r.currentMonth,slideDirection:l.focusedDay!=null&&n.isAfterDay(l.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},dye=({date:e,defaultCalendarMonth:t,disableFuture:n,disablePast:r,disableSwitchToMonthOnDayFocus:l=!1,maxDate:i,minDate:o,onMonthChange:a,reduceAnimations:s,shouldDisableDate:u})=>{var c;const d=ag(),f=Br(),p=ge.useRef(cye(!!s,l,f)).current,[m,g]=ge.useReducer(p,{isMonthSwitchingAnimating:!1,focusedDay:e||d,currentMonth:f.startOfMonth((c=e??t)!=null?c:d),slideDirection:"left"}),b=ge.useCallback(_=>{g(Ie({type:"changeMonth"},_)),a&&a(_.newMonth)},[a]),v=ge.useCallback(_=>{const x=_??d;f.isSameMonth(x,m.currentMonth)||b({newMonth:f.startOfMonth(x),direction:f.isAfterDay(x,m.currentMonth)?"left":"right"})},[m.currentMonth,b,d,f]),h=FB({shouldDisableDate:u,minDate:o,maxDate:i,disableFuture:n,disablePast:r}),y=ge.useCallback(()=>{g({type:"finishMonthSwitchingAnimation"})},[]),w=ge.useCallback((_,x)=>{h(_)||g({type:"changeFocusedDay",focusedDay:_,withoutMonthSwitchingAnimation:x})},[h]);return{calendarState:m,changeMonth:v,changeFocusedDay:w,isDateDisabled:h,onMonthSwitchingAnimationEnd:y,handleChangeMonth:b}},fye=e=>yn("MuiPickersFadeTransitionGroup",e),pye=hn("MuiPickersFadeTransitionGroup",["root"]),hye=e=>{const{classes:t}=e;return vn({root:["root"]},fye,t)},x7=500,mye=Et(Km,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function jB(e){const t=pn({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:l,transKey:i}=t,o=hye(t);return l?n:ke.jsx(mye,{className:ma(o.root,r),children:ke.jsx(ib,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:x7,enter:x7/2,exit:0},children:n},i)})}const hm=36,og=2,VM=320,gye=358;function zB(e){return yn("MuiPickersDay",e)}const hh=hn("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),vye=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today"],yye=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:l,disabled:i,outsideCurrentMonth:o,showDaysOutsideCurrentMonth:a,classes:s}=e;return vn({root:["root",t&&"selected",i&&"disabled",!n&&"dayWithMargin",!r&&l&&"today",o&&a&&"dayOutsideMonth",o&&!a&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},zB,s)},BB=({theme:e,ownerState:t})=>Ie({},e.typography.caption,{width:hm,height:hm,borderRadius:"50%",padding:0,backgroundColor:e.palette.background.paper,color:e.palette.text.primary,"&:hover":{backgroundColor:rr(e.palette.action.active,e.palette.action.hoverOpacity)},"&:focus":{backgroundColor:rr(e.palette.action.active,e.palette.action.hoverOpacity),[`&.${hh.selected}`]:{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${hh.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium,transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),"&:hover":{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${hh.disabled}`]:{color:e.palette.text.disabled}},!t.disableMargin&&{margin:`0 ${og}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:e.palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${hh.selected})`]:{border:`1px solid ${e.palette.text.secondary}`}}),WB=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},bye=Et(Tl,{name:"MuiPickersDay",slot:"Root",overridesResolver:WB})(BB),xye=Et("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:WB})(({theme:e,ownerState:t})=>Ie({},BB({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),p_=()=>{},wye=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiPickersDay"}),{autoFocus:l=!1,className:i,day:o,disabled:a=!1,disableHighlightToday:s=!1,disableMargin:u=!1,isAnimating:c,onClick:d,onDaySelect:f,onFocus:p=p_,onBlur:m=p_,onKeyDown:g=p_,onMouseDown:b,outsideCurrentMonth:v,selected:h=!1,showDaysOutsideCurrentMonth:y=!1,children:w,today:_=!1}=r,x=Kt(r,vye),T=Ie({},r,{autoFocus:l,disabled:a,disableHighlightToday:s,disableMargin:u,selected:h,showDaysOutsideCurrentMonth:y,today:_}),k=yye(T),S=Br(),C=ge.useRef(null),M=Lr(C,n);no(()=>{l&&!a&&!c&&!v&&C.current.focus()},[l,a,c,v]);const O=P=>{b&&b(P),v&&P.preventDefault()},D=P=>{a||f(o,"finish"),v&&P.currentTarget.focus(),d&&d(P)};return v&&!y?ke.jsx(xye,{className:ma(k.root,k.hiddenDaySpacingFiller,i),ownerState:T,role:x.role}):ke.jsx(bye,Ie({className:ma(k.root,i),ownerState:T,ref:M,centerRipple:!0,disabled:a,tabIndex:h?0:-1,onKeyDown:P=>g(P,o),onFocus:P=>p(P,o),onBlur:P=>m(P,o),onClick:D,onMouseDown:O},x,{children:w||S.format(o,"dayOfMonth")}))}),_ye=(e,t)=>e.autoFocus===t.autoFocus&&e.isAnimating===t.isAnimating&&e.today===t.today&&e.disabled===t.disabled&&e.selected===t.selected&&e.disableMargin===t.disableMargin&&e.showDaysOutsideCurrentMonth===t.showDaysOutsideCurrentMonth&&e.disableHighlightToday===t.disableHighlightToday&&e.className===t.className&&e.sx===t.sx&&e.outsideCurrentMonth===t.outsideCurrentMonth&&e.onFocus===t.onFocus&&e.onBlur===t.onBlur&&e.onDaySelect===t.onDaySelect,qB=ge.memo(wye,_ye),Tye=e=>yn("PrivatePickersSlideTransition",e),Ka=hn("PrivatePickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),kye=["children","className","reduceAnimations","slideDirection","transKey"],Sye=e=>{const{classes:t}=e;return vn({root:["root"]},Tye,t)},UB=350,Cye=Et(Km,{name:"PrivatePickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Ka["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Ka["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Ka.slideEnterActive}`]:t.slideEnterActive},{[`.${Ka.slideExit}`]:t.slideExit},{[`.${Ka["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Ka["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:UB,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${Ka["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Ka["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Ka.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Ka.slideExit}`]:{transform:"translate(0%)"},[`& .${Ka["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Ka["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}}),Mye=e=>{const{children:t,className:n,reduceAnimations:r,slideDirection:l,transKey:i}=e,o=Kt(e,kye),a=Sye(e);if(r)return ke.jsx("div",{className:ma(a.root,n),children:t});const s={exit:Ka.slideExit,enterActive:Ka.slideEnterActive,enter:Ka[`slideEnter-${l}`],exitActive:Ka[`slideExitActiveLeft-${l}`]};return ke.jsx(Cye,{className:ma(a.root,n),childFactory:u=>ge.cloneElement(u,{classNames:s}),role:"presentation",children:ke.jsx(sM,Ie({mountOnEnter:!0,unmountOnExit:!0,timeout:UB,classNames:s},o,{children:t}),i)})},Pye=e=>yn("MuiDayPicker",e),Oye=hn("MuiDayPicker",["header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer"]),Aye=e=>{const{classes:t}=e;return vn({header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"]},Pye,t)},Dye=e=>e.charAt(0).toUpperCase(),HB=(hm+og*2)*6,Eye=Et("div",{name:"MuiDayPicker",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),Rye=Et(dr,{name:"MuiDayPicker",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.secondary})),Lye=Et("div",{name:"MuiDayPicker",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:HB}),Iye=Et(Mye,{name:"MuiDayPicker",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:HB}),$ye=Et("div",{name:"MuiDayPicker",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),Nye=Et("div",{name:"MuiDayPicker",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${og}px 0`,display:"flex",justifyContent:"center"});function Fye(e){const t=ag(),n=Br(),r=pn({props:e,name:"MuiDayPicker"}),l=Aye(r),{onFocusedDayChange:i,className:o,currentMonth:a,selectedDays:s,disabled:u,disableHighlightToday:c,focusedDay:d,isMonthSwitchingAnimating:f,loading:p,onSelectedDaysChange:m,onMonthSwitchingAnimationEnd:g,readOnly:b,reduceAnimations:v,renderDay:h,renderLoading:y=()=>ke.jsx("span",{children:"..."}),showDaysOutsideCurrentMonth:w,slideDirection:_,TransitionProps:x,disablePast:T,disableFuture:k,minDate:S,maxDate:C,shouldDisableDate:M,dayOfWeekFormatter:O=Dye,hasFocus:D,onFocusedViewChange:P,gridLabelId:E}=r,I=FB({shouldDisableDate:M,minDate:S,maxDate:C,disablePast:T,disableFuture:k}),[A,F]=ge.useState(()=>d||t),j=ge.useCallback(H=>{P&&P(H)},[P]),z=ge.useCallback((H,Z="finish")=>{b||m(H,Z)},[m,b]),B=ge.useCallback(H=>{I(H)||(i(H),F(H),j(!0))},[I,i,j]),N=po();function R(H,Z){switch(H.key){case"ArrowUp":B(n.addDays(Z,-7)),H.preventDefault();break;case"ArrowDown":B(n.addDays(Z,7)),H.preventDefault();break;case"ArrowLeft":{const G=n.addDays(Z,N.direction==="ltr"?-1:1),X=N.direction==="ltr"?n.getPreviousMonth(Z):n.getNextMonth(Z),Q=Ih({utils:n,date:G,minDate:N.direction==="ltr"?n.startOfMonth(X):G,maxDate:N.direction==="ltr"?G:n.endOfMonth(X),isDateDisabled:I});B(Q||G),H.preventDefault();break}case"ArrowRight":{const G=n.addDays(Z,N.direction==="ltr"?1:-1),X=N.direction==="ltr"?n.getNextMonth(Z):n.getPreviousMonth(Z),Q=Ih({utils:n,date:G,minDate:N.direction==="ltr"?G:n.startOfMonth(X),maxDate:N.direction==="ltr"?n.endOfMonth(X):G,isDateDisabled:I});B(Q||G),H.preventDefault();break}case"Home":B(n.startOfWeek(Z)),H.preventDefault();break;case"End":B(n.endOfWeek(Z)),H.preventDefault();break;case"PageUp":B(n.getNextMonth(Z)),H.preventDefault();break;case"PageDown":B(n.getPreviousMonth(Z)),H.preventDefault();break}}function q(H,Z){B(Z)}function Y(H,Z){D&&n.isSameDay(A,Z)&&j(!1)}const L=n.getMonth(a),W=s.filter(H=>!!H).map(H=>n.startOfDay(H)),U=L,V=ge.useMemo(()=>ge.createRef(),[U]),te=n.startOfWeek(t),ee=ge.useMemo(()=>{const H=n.startOfMonth(a),Z=n.endOfMonth(a);return I(A)||n.isAfterDay(A,Z)||n.isBeforeDay(A,H)?Ih({utils:n,date:A,minDate:H,maxDate:Z,disablePast:T,disableFuture:k,isDateDisabled:I}):A},[a,k,T,A,I,n]);return ke.jsxs("div",{role:"grid","aria-labelledby":E,children:[ke.jsx(Eye,{role:"row",className:l.header,children:n.getWeekdays().map((H,Z)=>{var G;return ke.jsx(Rye,{variant:"caption",role:"columnheader","aria-label":n.format(n.addDays(te,Z),"weekday"),className:l.weekDayLabel,children:(G=O==null?void 0:O(H))!=null?G:H},H+Z.toString())})}),p?ke.jsx(Lye,{className:l.loadingContainer,children:y()}):ke.jsx(Iye,Ie({transKey:U,onExited:g,reduceAnimations:v,slideDirection:_,className:ma(o,l.slideTransition)},x,{nodeRef:V,children:ke.jsx($ye,{ref:V,role:"rowgroup",className:l.monthContainer,children:n.getWeekArray(a).map(H=>ke.jsx(Nye,{role:"row",className:l.weekContainer,children:H.map(Z=>{const G=ee!==null&&n.isSameDay(Z,ee),X=W.some(ae=>n.isSameDay(ae,Z)),Q=n.isSameDay(Z,t),re={key:Z==null?void 0:Z.toString(),day:Z,isAnimating:f,disabled:u||I(Z),autoFocus:D&&G,today:Q,outsideCurrentMonth:n.getMonth(Z)!==L,selected:X,disableHighlightToday:c,showDaysOutsideCurrentMonth:w,onKeyDown:R,onFocus:q,onBlur:Y,onDaySelect:z,tabIndex:G?0:-1,role:"gridcell","aria-selected":X};return Q&&(re["aria-current"]="date"),h?h(Z,W,re):ge.createElement(qB,Ie({},re,{key:re.key}))})},`week-${H[0]}`))})}))]})}function GM({onChange:e,onViewChange:t,openTo:n,view:r,views:l}){var i,o;const[a,s]=Zl({name:"Picker",state:"view",controlled:r,default:n&&Su(l,n)?n:l[0]}),u=(i=l[l.indexOf(a)-1])!=null?i:null,c=(o=l[l.indexOf(a)+1])!=null?o:null,d=ge.useCallback(m=>{s(m),t&&t(m)},[s,t]),f=ge.useCallback(()=>{c&&d(c)},[c,d]);return{handleChangeAndOpenNext:ge.useCallback((m,g)=>{const b=g==="finish";e(m,b&&c?"partial":g),b&&f()},[c,e,f]),nextView:c,previousView:u,openNext:f,openView:a,setOpenView:d}}const jye=Qr(ke.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),zye=Qr(ke.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),Bye=Qr(ke.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),VB=Qr(ke.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),GB=Qr(ke.jsxs(ge.Fragment,{children:[ke.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),ke.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),Wye=Qr(ke.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),qye=Qr(ke.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Pen"),Uye=Qr(ke.jsxs(ge.Fragment,{children:[ke.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),ke.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");function Hye(e){return yn("MuiPickersArrowSwitcher",e)}hn("MuiPickersArrowSwitcher",["root","spacer","button"]);const Vye=["children","className","components","componentsProps","isLeftDisabled","isLeftHidden","isRightDisabled","isRightHidden","leftArrowButtonText","onLeftClick","onRightClick","rightArrowButtonText"],Gye=e=>{const{classes:t}=e;return vn({root:["root"],spacer:["spacer"],button:["button"]},Hye,t)},Yye=Et("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),Xye=Et("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),w7=Et(mi,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>Ie({},e.hidden&&{visibility:"hidden"})),YB=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiPickersArrowSwitcher"}),{children:l,className:i,components:o,componentsProps:a,isLeftDisabled:s,isLeftHidden:u,isRightDisabled:c,isRightHidden:d,leftArrowButtonText:f,onLeftClick:p,onRightClick:m,rightArrowButtonText:g}=r,b=Kt(r,Vye),h=po().direction==="rtl",y=(a==null?void 0:a.leftArrowButton)||{},w=(o==null?void 0:o.LeftArrowIcon)||zye,_=(a==null?void 0:a.rightArrowButton)||{},x=(o==null?void 0:o.RightArrowIcon)||Bye,T=r,k=Gye(T);return ke.jsxs(Yye,Ie({ref:n,className:ma(k.root,i),ownerState:T},b,{children:[ke.jsx(w7,Ie({as:o==null?void 0:o.LeftArrowButton,size:"small","aria-label":f,title:f,disabled:s,edge:"end",onClick:p},y,{className:ma(k.button,y.className),ownerState:Ie({},T,y,{hidden:u}),children:h?ke.jsx(x,{}):ke.jsx(w,{})})),l?ke.jsx(dr,{variant:"subtitle1",component:"span",children:l}):ke.jsx(Xye,{className:k.spacer,ownerState:T}),ke.jsx(w7,Ie({as:o==null?void 0:o.RightArrowButton,size:"small","aria-label":g,title:g,edge:"start",disabled:c,onClick:m},_,{className:ma(k.button,_.className),ownerState:Ie({},T,_,{hidden:d}),children:h?ke.jsx(w,{}):ke.jsx(x,{})}))]}))}),Kye=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,uk=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,Zye=(e,t,n,r)=>{const l=uk(r.getHours(e),t,n);return r.setHours(e,l)},_7=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),XB=(e=!1,t)=>(n,r)=>e?t.isAfter(n,r):_7(n,t)>_7(r,t);function Qye(e,{disableFuture:t,maxDate:n}){const r=Br();return ge.useMemo(()=>{const l=r.date(),i=r.startOfMonth(t&&r.isBefore(l,n)?l:n);return!r.isAfter(i,e)},[t,n,e,r])}function Jye(e,{disablePast:t,minDate:n}){const r=Br();return ge.useMemo(()=>{const l=r.date(),i=r.startOfMonth(t&&r.isAfter(l,n)?l:n);return!r.isBefore(i,e)},[t,n,e,r])}function KB(e,t,n){const r=Br(),l=Kye(e,r),i=ge.useCallback(o=>{const a=e==null?null:Zye(e,o,!!t,r);n(a,"partial")},[t,e,n,r]);return{meridiemMode:l,handleMeridiemChange:i}}const ZB=e=>()=>{},e1e=e=>yn("MuiPickersCalendarHeader",e),t1e=hn("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),n1e=e=>{const{classes:t}=e;return vn({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},e1e,t)},r1e=Et("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),a1e=Et("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>Ie({display:"flex",maxHeight:30,overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),o1e=Et("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),i1e=Et(mi,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto"}),l1e=Et(jye,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e,ownerState:t})=>Ie({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"},t.openView==="year"&&{transform:"rotate(180deg)"})),s1e=ZB();function u1e(e){const t=pn({props:e,name:"MuiPickersCalendarHeader"}),{components:n={},componentsProps:r={},currentMonth:l,disabled:i,disableFuture:o,disablePast:a,getViewSwitchingButtonText:s,leftArrowButtonText:u,maxDate:c,minDate:d,onMonthChange:f,onViewChange:p,openView:m,reduceAnimations:g,rightArrowButtonText:b,views:v,labelId:h}=t;s1e({leftArrowButtonText:u,rightArrowButtonText:b,getViewSwitchingButtonText:s});const y=Xi(),w=u??y.previousMonth,_=b??y.nextMonth,x=s??y.calendarViewSwitchingButtonAriaLabel,T=Br(),k=n1e(t),S=r.switchViewButton||{},C=()=>f(T.getNextMonth(l),"left"),M=()=>f(T.getPreviousMonth(l),"right"),O=Qye(l,{disableFuture:o,maxDate:c}),D=Jye(l,{disablePast:a,minDate:d}),P=()=>{if(!(v.length===1||!p||i))if(v.length===2)p(v.find(I=>I!==m)||v[0]);else{const I=v.indexOf(m)!==0?0:1;p(v[I])}};if(v.length===1&&v[0]==="year")return null;const E=t;return ke.jsxs(r1e,{ownerState:E,className:k.root,children:[ke.jsxs(a1e,{role:"presentation",onClick:P,ownerState:E,"aria-live":"polite",className:k.labelContainer,children:[ke.jsx(jB,{reduceAnimations:g,transKey:T.format(l,"monthAndYear"),children:ke.jsx(o1e,{id:h,ownerState:E,className:k.label,children:T.format(l,"monthAndYear")})}),v.length>1&&!i&&ke.jsx(i1e,Ie({size:"small",as:n.SwitchViewButton,"aria-label":x(m),className:k.switchViewButton},S,{children:ke.jsx(l1e,{as:n.SwitchViewIcon,ownerState:E,className:k.switchViewIcon})}))]}),ke.jsx(ib,{in:m==="day",children:ke.jsx(YB,{leftArrowButtonText:w,rightArrowButtonText:_,components:n,componentsProps:r,onLeftClick:M,onRightClick:C,isLeftDisabled:D,isRightDisabled:O})})]})}const ss=ge.createContext(null);function c1e(e){return yn("PrivatePickersYear",e)}const Eu=hn("PrivatePickersYear",["root","modeDesktop","modeMobile","yearButton","selected","disabled"]),d1e=["autoFocus","className","children","disabled","onClick","onKeyDown","value","tabIndex","onFocus","onBlur"],f1e=e=>{const{wrapperVariant:t,disabled:n,selected:r,classes:l}=e,i={root:["root",t&&`mode${Jt(t)}`],yearButton:["yearButton",n&&"disabled",r&&"selected"]};return vn(i,c1e,l)},p1e=Et("div",{name:"PrivatePickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Eu.modeDesktop}`]:t.modeDesktop},{[`&.${Eu.modeMobile}`]:t.modeMobile}]})(({ownerState:e})=>Ie({flexBasis:"33.3%",display:"flex",alignItems:"center",justifyContent:"center"},(e==null?void 0:e.wrapperVariant)==="desktop"&&{flexBasis:"25%"})),h1e=Et("button",{name:"PrivatePickersYear",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${Eu.disabled}`]:t.disabled},{[`&.${Eu.selected}`]:t.selected}]})(({theme:e})=>Ie({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:rr(e.palette.action.active,e.palette.action.hoverOpacity)},[`&.${Eu.disabled}`]:{color:e.palette.text.secondary},[`&.${Eu.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),T7=()=>{},m1e=ge.forwardRef(function(t,n){const{autoFocus:r,className:l,children:i,disabled:o,onClick:a,onKeyDown:s,value:u,tabIndex:c,onFocus:d=T7,onBlur:f=T7}=t,p=Kt(t,d1e),m=ge.useRef(null),g=Lr(m,n),b=ge.useContext(ss),v=Ie({},t,{wrapperVariant:b}),h=f1e(v);return ge.useEffect(()=>{r&&m.current.focus()},[r]),ke.jsx(p1e,{className:ma(h.root,l),ownerState:v,children:ke.jsx(h1e,Ie({ref:g,disabled:o,type:"button",tabIndex:o?-1:c,onClick:y=>a(y,u),onKeyDown:y=>s(y,u),onFocus:y=>d(y,u),onBlur:y=>f(y,u),className:h.yearButton,ownerState:v},p,{children:i}))})});function QB(e){return yn("MuiYearPicker",e)}const g1e=hn("MuiYearPicker",["root"]),v1e=e=>{const{classes:t}=e;return vn({root:["root"]},QB,t)};function y1e(e,t){const n=Br(),r=rg(),l=pn({props:e,name:t});return Ie({disablePast:!1,disableFuture:!1},l,{minDate:Ci(n,l.minDate,r.minDate),maxDate:Ci(n,l.maxDate,r.maxDate)})}const b1e=Et("div",{name:"MuiYearPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",maxHeight:"304px"}),JB=ge.forwardRef(function(t,n){const r=ag(),l=po(),i=Br(),o=y1e(t,"MuiYearPicker"),{autoFocus:a,className:s,date:u,disabled:c,disableFuture:d,disablePast:f,maxDate:p,minDate:m,onChange:g,readOnly:b,shouldDisableYear:v,disableHighlightToday:h,onYearFocus:y,hasFocus:w,onFocusedViewChange:_}=o,x=o,T=v1e(x),k=ge.useMemo(()=>u??i.startOfYear(r),[r,i,u]),S=ge.useMemo(()=>u!=null?i.getYear(u):h?null:i.getYear(r),[r,u,i,h]),C=ge.useContext(ss),M=ge.useRef(null),[O,D]=ge.useState(()=>S||i.getYear(r)),[P,E]=Zl({name:"YearPicker",state:"hasFocus",controlled:w,default:a}),I=ge.useCallback(W=>{E(W),_&&_(W)},[E,_]),A=ge.useCallback(W=>!!(f&&i.isBeforeYear(W,r)||d&&i.isAfterYear(W,r)||m&&i.isBeforeYear(W,m)||p&&i.isAfterYear(W,p)||v&&v(W)),[d,f,p,m,r,v,i]),F=(W,U,V="finish")=>{if(b)return;const te=i.setYear(k,U);g(te,V)},j=ge.useCallback(W=>{A(i.setYear(k,W))||(D(W),I(!0),y==null||y(W))},[A,i,k,I,y]);ge.useEffect(()=>{D(W=>S!==null&&W!==S?S:W)},[S]);const z=C==="desktop"?4:3,B=ge.useCallback((W,U)=>{switch(W.key){case"ArrowUp":j(U-z),W.preventDefault();break;case"ArrowDown":j(U+z),W.preventDefault();break;case"ArrowLeft":j(U+(l.direction==="ltr"?-1:1)),W.preventDefault();break;case"ArrowRight":j(U+(l.direction==="ltr"?1:-1)),W.preventDefault();break}},[j,l.direction,z]),N=ge.useCallback((W,U)=>{j(U)},[j]),R=ge.useCallback((W,U)=>{O===U&&I(!1)},[O,I]),q=i.getYear(r),Y=ge.useRef(null),L=Lr(n,Y);return ge.useEffect(()=>{if(a||Y.current===null)return;const W=Y.current.querySelector('[tabindex="0"]');if(!W)return;const U=W.offsetHeight,V=W.offsetTop,te=Y.current.clientHeight,ee=Y.current.scrollTop,H=V+U;U>te||V{const U=i.getYear(W),V=U===S;return ke.jsx(m1e,{selected:V,value:U,onClick:F,onKeyDown:B,autoFocus:P&&U===O,ref:V?M:void 0,disabled:c||A(W),tabIndex:U===O?0:-1,onFocus:N,onBlur:R,"aria-current":q===U?"date":void 0,children:i.format(W,"year")},i.format(W,"year"))})})}),YM=Et("div")({overflowX:"hidden",width:VM,maxHeight:gye,display:"flex",flexDirection:"column",margin:"0 auto"}),x1e=typeof navigator<"u"&&/(android)/i.test(navigator.userAgent),eW=e=>yn("MuiCalendarPicker",e),w1e=hn("MuiCalendarPicker",["root","viewTransitionContainer"]),_1e=["autoFocus","onViewChange","date","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","classes"],T1e=e=>{const{classes:t}=e;return vn({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},eW,t)};function k1e(e,t){const n=Br(),r=rg(),l=pn({props:e,name:t});return Ie({loading:!1,disablePast:!1,disableFuture:!1,openTo:"day",views:["year","day"],reduceAnimations:x1e,renderLoading:()=>ke.jsx("span",{children:"..."})},l,{minDate:Ci(n,l.minDate,r.minDate),maxDate:Ci(n,l.maxDate,r.maxDate)})}const S1e=Et(YM,{name:"MuiCalendarPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),C1e=Et(jB,{name:"MuiCalendarPicker",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),tW=ge.forwardRef(function(t,n){const r=Br(),l=Kl(),i=k1e(t,"MuiCalendarPicker"),{autoFocus:o,onViewChange:a,date:s,disableFuture:u,disablePast:c,defaultCalendarMonth:d,onChange:f,onYearChange:p,onMonthChange:m,reduceAnimations:g,shouldDisableDate:b,shouldDisableMonth:v,shouldDisableYear:h,view:y,views:w,openTo:_,className:x,disabled:T,readOnly:k,minDate:S,maxDate:C,disableHighlightToday:M,focusedView:O,onFocusedViewChange:D}=i,P=Kt(i,_1e),{openView:E,setOpenView:I,openNext:A}=GM({view:y,views:w,openTo:_,onChange:f,onViewChange:a}),{calendarState:F,changeFocusedDay:j,changeMonth:z,handleChangeMonth:B,isDateDisabled:N,onMonthSwitchingAnimationEnd:R}=dye({date:s,defaultCalendarMonth:d,reduceAnimations:g,onMonthChange:m,minDate:S,maxDate:C,shouldDisableDate:b,disablePast:c,disableFuture:u}),q=ge.useCallback((ie,se)=>{const he=r.startOfMonth(ie),Se=r.endOfMonth(ie),Oe=N(ie)?Ih({utils:r,date:ie,minDate:r.isBefore(S,he)?he:S,maxDate:r.isAfter(C,Se)?Se:C,disablePast:c,disableFuture:u,isDateDisabled:N}):ie;Oe?(f(Oe,se),m==null||m(he)):(A(),z(he)),j(Oe,!0)},[j,u,c,N,C,S,f,m,z,A,r]),Y=ge.useCallback((ie,se)=>{const he=r.startOfYear(ie),Se=r.endOfYear(ie),Oe=N(ie)?Ih({utils:r,date:ie,minDate:r.isBefore(S,he)?he:S,maxDate:r.isAfter(C,Se)?Se:C,disablePast:c,disableFuture:u,isDateDisabled:N}):ie;Oe?(f(Oe,se),p==null||p(Oe)):(A(),z(he)),j(Oe,!0)},[j,u,c,N,C,S,f,p,A,r,z]),L=ge.useCallback((ie,se)=>f(s&&ie?r.mergeDateAndTime(ie,s):ie,se),[r,s,f]);ge.useEffect(()=>{s&&z(s)},[s]);const W=i,U=T1e(W),V={disablePast:c,disableFuture:u,maxDate:C,minDate:S},te=T&&s||S,ee=T&&s||C,H={disableHighlightToday:M,readOnly:k,disabled:T},Z=`${l}-grid-label`,[G,X]=Zl({name:"DayPicker",state:"focusedView",controlled:O,default:o?E:null}),Q=G!==null,re=yo(ie=>se=>{if(D){D(ie)(se);return}X(se?ie:he=>he===ie?null:he)}),ae=ge.useRef(E);return ge.useEffect(()=>{ae.current!==E&&(ae.current=E,re(E)(!0))},[E,re]),ke.jsxs(S1e,{ref:n,className:ma(U.root,x),ownerState:W,children:[ke.jsx(u1e,Ie({},P,{views:w,openView:E,currentMonth:F.currentMonth,onViewChange:I,onMonthChange:(ie,se)=>B({newMonth:ie,direction:se}),minDate:te,maxDate:ee,disabled:T,disablePast:c,disableFuture:u,reduceAnimations:g,labelId:Z})),ke.jsx(C1e,{reduceAnimations:g,className:U.viewTransitionContainer,transKey:E,ownerState:W,children:ke.jsxs("div",{children:[E==="year"&&ke.jsx(JB,Ie({},P,V,H,{autoFocus:o,date:s,onChange:Y,shouldDisableYear:h,hasFocus:Q,onFocusedViewChange:re("year")})),E==="month"&&ke.jsx(NB,Ie({},V,H,{autoFocus:o,hasFocus:Q,className:x,date:s,onChange:q,shouldDisableMonth:v,onFocusedViewChange:re("month")})),E==="day"&&ke.jsx(Fye,Ie({},P,F,V,H,{autoFocus:o,onMonthSwitchingAnimationEnd:R,onFocusedDayChange:j,reduceAnimations:g,selectedDays:[s],onSelectedDaysChange:L,shouldDisableDate:b,hasFocus:Q,onFocusedViewChange:re("day"),gridLabelId:Z}))]})})]})}),nW=e=>yn("MuiCalendarPickerSkeleton",e),M1e=hn("MuiCalendarPickerSkeleton",["root","week","daySkeleton"]),P1e=["className"],O1e=e=>{const{classes:t}=e;return vn({root:["root"],week:["week"],daySkeleton:["daySkeleton"]},nW,t)},A1e=Et("div",{name:"MuiCalendarPickerSkeleton",slot:"Root",overridesResolver:(e,t)=>t.root})({alignSelf:"start"}),D1e=Et("div",{name:"MuiCalendarPickerSkeleton",slot:"Week",overridesResolver:(e,t)=>t.week})({margin:`${og}px 0`,display:"flex",justifyContent:"center"}),rW=Et(vde,{name:"MuiCalendarPickerSkeleton",slot:"DaySkeleton",overridesResolver:(e,t)=>t.daySkeleton})(({ownerState:e})=>Ie({margin:`0 ${og}px`},e.day===0&&{visibility:"hidden"}));rW.propTypes={ownerState:le.shape({day:le.number.isRequired}).isRequired};const E1e=[[0,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,0,0,0]];function R1e(e){const t=pn({props:e,name:"MuiCalendarPickerSkeleton"}),{className:n}=t,r=Kt(t,P1e),l=O1e(r);return ke.jsx(A1e,Ie({className:ma(l.root,n)},r,{children:E1e.map((i,o)=>ke.jsx(D1e,{className:l.week,children:i.map((a,s)=>ke.jsx(rW,{variant:"circular",width:hm,height:hm,className:l.daySkeleton,ownerState:{day:a}},s))},o))}))}const Ud=220,Ws=36,mm={x:Ud/2,y:Ud/2},aW={x:mm.x,y:0},L1e=aW.x-mm.x,I1e=aW.y-mm.y,$1e=e=>e*(180/Math.PI),oW=(e,t,n)=>{const r=t-mm.x,l=n-mm.y,i=Math.atan2(L1e,I1e)-Math.atan2(r,l);let o=$1e(i);o=Math.round(o/e)*e,o%=360;const a=Math.floor(o/e)||0,s=r**2+l**2,u=Math.sqrt(s);return{value:a,distance:u}},N1e=(e,t,n=1)=>{const r=n*6;let{value:l}=oW(r,e,t);return l=l*n%60,l},F1e=(e,t,n)=>{const{value:r,distance:l}=oW(30,e,t);let i=r||12;return n?i%=12:l{const{classes:t}=e;return vn({root:["root"],thumb:["thumb"]},j1e,t)},q1e=Et("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>Ie({width:2,backgroundColor:e.palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),U1e=Et("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>Ie({width:4,height:4,backgroundColor:e.palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Ws/2}px)`,border:`${(Ws-4)/2}px solid ${e.palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:e.palette.primary.main}));function H1e(e){const t=pn({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:l,value:i}=t,o=Kt(t,B1e),a=ge.useRef(l);ge.useEffect(()=>{a.current=l},[l]);const s=Ie({},t,{shouldAnimate:a.current!==l}),u=W1e(s),c=()=>{let f=360/(l==="hours"?12:60)*i;return l==="hours"&&i>12&&(f-=360),{height:Math.round((r?.26:.4)*Ud),transform:`rotateZ(${f}deg)`}};return ke.jsx(q1e,Ie({style:c(),className:ma(n,u.root),ownerState:s},o,{children:ke.jsx(U1e,{ownerState:s,className:u.thumb})}))}function V1e(e){return yn("MuiClock",e)}const G1e=hn("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton"]),Y1e=e=>{const{classes:t}=e;return vn({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"]},V1e,t)},X1e=Et("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),K1e=Et("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),Z1e=Et("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),Q1e=Et("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>Ie({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),J1e=Et("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:e.palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),ebe=Et(mi,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>Ie({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,left:8},t.meridiemMode==="am"&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}})),tbe=Et(mi,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>Ie({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,right:8},t.meridiemMode==="pm"&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}}));function nbe(e){const t=pn({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:l,children:i,date:o,getClockLabelText:a,handleMeridiemChange:s,isTimeDisabled:u,meridiemMode:c,minutesStep:d=1,onChange:f,selectedId:p,type:m,value:g,disabled:b,readOnly:v,className:h}=t,y=t,w=Br(),_=ge.useContext(ss),x=ge.useRef(!1),T=Y1e(y),k=u(g,m),S=!n&&m==="hours"&&(g<1||g>12),C=(z,B)=>{b||v||u(z,m)||f(z,B)},M=(z,B)=>{let{offsetX:N,offsetY:R}=z;if(N===void 0){const Y=z.target.getBoundingClientRect();N=z.changedTouches[0].clientX-Y.left,R=z.changedTouches[0].clientY-Y.top}const q=m==="seconds"||m==="minutes"?N1e(N,R,d):F1e(N,R,!!n);C(q,B)},O=z=>{x.current=!0,M(z,"shallow")},D=z=>{x.current&&(M(z,"finish"),x.current=!1)},P=z=>{z.buttons>0&&M(z.nativeEvent,"shallow")},E=z=>{x.current&&(x.current=!1),M(z.nativeEvent,"finish")},I=ge.useMemo(()=>m==="hours"?!0:g%5===0,[m,g]),A=m==="minutes"?d:1,F=ge.useRef(null);no(()=>{l&&F.current.focus()},[l]);const j=z=>{if(!x.current)switch(z.key){case"Home":C(0,"partial"),z.preventDefault();break;case"End":C(m==="minutes"?59:23,"partial"),z.preventDefault();break;case"ArrowUp":C(g+A,"partial"),z.preventDefault();break;case"ArrowDown":C(g-A,"partial"),z.preventDefault();break}};return ke.jsxs(X1e,{className:ma(h,T.root),children:[ke.jsxs(K1e,{className:T.clock,children:[ke.jsx(Q1e,{onTouchMove:O,onTouchEnd:D,onMouseUp:E,onMouseMove:P,ownerState:{disabled:b},className:T.squareMask}),!k&&ke.jsxs(ge.Fragment,{children:[ke.jsx(J1e,{className:T.pin}),o&&ke.jsx(H1e,{type:m,value:g,isInner:S,hasSelected:I})]}),ke.jsx(Z1e,{"aria-activedescendant":p,"aria-label":a(m,o,w),ref:F,role:"listbox",onKeyDown:j,tabIndex:0,className:T.wrapper,children:i})]}),n&&(_==="desktop"||r)&&ke.jsxs(ge.Fragment,{children:[ke.jsx(ebe,{onClick:v?void 0:()=>s("am"),disabled:b||c===null,ownerState:y,className:T.amButton,children:ke.jsx(dr,{variant:"caption",children:"AM"})}),ke.jsx(tbe,{disabled:b||c===null,onClick:v?void 0:()=>s("pm"),ownerState:y,className:T.pmButton,children:ke.jsx(dr,{variant:"caption",children:"PM"})})]})]})}function rbe(e){return yn("MuiClockNumber",e)}const mh=hn("MuiClockNumber",["root","selected","disabled"]),abe=["className","disabled","index","inner","label","selected"],obe=e=>{const{classes:t,selected:n,disabled:r}=e;return vn({root:["root",n&&"selected",r&&"disabled"]},rbe,t)},ibe=Et("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${mh.disabled}`]:t.disabled},{[`&.${mh.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>Ie({height:Ws,width:Ws,position:"absolute",left:`calc((100% - ${Ws}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:e.palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:e.palette.background.paper},[`&.${mh.selected}`]:{color:e.palette.primary.contrastText},[`&.${mh.disabled}`]:{pointerEvents:"none",color:e.palette.text.disabled}},t.inner&&Ie({},e.typography.body2,{color:e.palette.text.secondary})));function iW(e){const t=pn({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:l,inner:i,label:o,selected:a}=t,s=Kt(t,abe),u=t,c=obe(u),d=l%12/12*Math.PI*2-Math.PI/2,f=(Ud-Ws-2)/2*(i?.65:1),p=Math.round(Math.cos(d)*f),m=Math.round(Math.sin(d)*f);return ke.jsx(ibe,Ie({className:ma(n,c.root),"aria-disabled":r?!0:void 0,"aria-selected":a?!0:void 0,role:"option",style:{transform:`translate(${p}px, ${m+(Ud-Ws)/2}px`},ownerState:u},s,{children:o}))}const lbe=({ampm:e,date:t,getClockNumberText:n,isDisabled:r,selectedId:l,utils:i})=>{const o=t?i.getHours(t):null,a=[],s=e?1:0,u=e?12:23,c=d=>o===null?!1:e?d===12?o===12||o===0:o===d||o-12===d:o===d;for(let d=s;d<=u;d+=1){let f=d.toString();d===0&&(f="00");const p=!e&&(d===0||d>12);f=i.formatNumber(f);const m=c(d);a.push(ke.jsx(iW,{id:m?l:void 0,index:d,inner:p,selected:m,disabled:r(d),label:f,"aria-label":n(f)},d))}return a},k7=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:l})=>{const i=e.formatNumber;return[[5,i("05")],[10,i("10")],[15,i("15")],[20,i("20")],[25,i("25")],[30,i("30")],[35,i("35")],[40,i("40")],[45,i("45")],[50,i("50")],[55,i("55")],[0,i("00")]].map(([o,a],s)=>{const u=o===t;return ke.jsx(iW,{label:a,id:u?l:void 0,index:s+1,inner:!1,disabled:n(o),selected:u,"aria-label":r(a)},o)})};function lW(e){return yn("MuiClockPicker",e)}const sbe=hn("MuiClockPicker",["root","arrowSwitcher"]),ube=e=>{const{classes:t}=e;return vn({root:["root"],arrowSwitcher:["arrowSwitcher"]},lW,t)},cbe=Et(YM,{name:"MuiClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),dbe=Et(YB,{name:"MuiClockPicker",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),fbe=ZB(),sW=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiClockPicker"}),{ampm:l=!1,ampmInClock:i=!1,autoFocus:o,components:a,componentsProps:s,date:u,disableIgnoringDatePartForTimeValidation:c,getClockLabelText:d,getHoursClockNumberText:f,getMinutesClockNumberText:p,getSecondsClockNumberText:m,leftArrowButtonText:g,maxTime:b,minTime:v,minutesStep:h=1,rightArrowButtonText:y,shouldDisableTime:w,showViewSwitcher:_,onChange:x,view:T,views:k=["hours","minutes"],openTo:S,onViewChange:C,className:M,disabled:O,readOnly:D}=r;fbe({leftArrowButtonText:g,rightArrowButtonText:y,getClockLabelText:d,getHoursClockNumberText:f,getMinutesClockNumberText:p,getSecondsClockNumberText:m});const P=Xi(),E=g??P.openPreviousView,I=y??P.openNextView,A=d??P.clockLabelText,F=f??P.hoursClockNumberText,j=p??P.minutesClockNumberText,z=m??P.secondsClockNumberText,{openView:B,setOpenView:N,nextView:R,previousView:q,handleChangeAndOpenNext:Y}=GM({view:T,views:k,openTo:S,onViewChange:C,onChange:x}),L=ag(),W=Br(),U=ge.useMemo(()=>u||W.setSeconds(W.setMinutes(W.setHours(L,0),0),0),[u,L,W]),{meridiemMode:V,handleMeridiemChange:te}=KB(U,l,Y),ee=ge.useCallback((Q,re)=>{const ae=XB(c,W),ie=({start:he,end:Se})=>!(v&&ae(v,Se)||b&&ae(he,b)),se=(he,Se=1)=>he%Se!==0?!1:w?!w(he,re):!0;switch(re){case"hours":{const he=uk(Q,V,l),Se=W.setHours(U,he),Oe=W.setSeconds(W.setMinutes(Se,0),0),Pe=W.setSeconds(W.setMinutes(Se,59),59);return!ie({start:Oe,end:Pe})||!se(he)}case"minutes":{const he=W.setMinutes(U,Q),Se=W.setSeconds(he,0),Oe=W.setSeconds(he,59);return!ie({start:Se,end:Oe})||!se(Q,h)}case"seconds":{const he=W.setSeconds(U,Q);return!ie({start:he,end:he})||!se(Q)}default:throw new Error("not supported")}},[l,U,c,b,V,v,h,w,W]),H=Kl(),Z=ge.useMemo(()=>{switch(B){case"hours":{const Q=(re,ae)=>{const ie=uk(re,V,l);Y(W.setHours(U,ie),ae)};return{onChange:Q,value:W.getHours(U),children:lbe({date:u,utils:W,ampm:l,onChange:Q,getClockNumberText:F,isDisabled:re=>O||ee(re,"hours"),selectedId:H})}}case"minutes":{const Q=W.getMinutes(U),re=(ae,ie)=>{Y(W.setMinutes(U,ae),ie)};return{value:Q,onChange:re,children:k7({utils:W,value:Q,onChange:re,getClockNumberText:j,isDisabled:ae=>O||ee(ae,"minutes"),selectedId:H})}}case"seconds":{const Q=W.getSeconds(U),re=(ae,ie)=>{Y(W.setSeconds(U,ae),ie)};return{value:Q,onChange:re,children:k7({utils:W,value:Q,onChange:re,getClockNumberText:z,isDisabled:ae=>O||ee(ae,"seconds"),selectedId:H})}}default:throw new Error("You must provide the type for ClockView")}},[B,W,u,l,F,j,z,V,Y,U,ee,H,O]),G=r,X=ube(G);return ke.jsxs(cbe,{ref:n,className:ma(X.root,M),ownerState:G,children:[_&&ke.jsx(dbe,{className:X.arrowSwitcher,leftArrowButtonText:E,rightArrowButtonText:I,components:a,componentsProps:s,onLeftClick:()=>N(q),onRightClick:()=>N(R),isLeftDisabled:!q,isRightDisabled:!R,ownerState:G}),ke.jsx(nbe,Ie({autoFocus:o,date:u,ampmInClock:i,type:B,ampm:l,getClockLabelText:A,minutesStep:h,isTimeDisabled:ee,meridiemMode:V,handleMeridiemChange:te,selectedId:H,disabled:O,readOnly:D},Z))]})}),uW=e=>e.length===1&&e[0]==="year",cW=e=>e.length===2&&e.indexOf("month")!==-1&&e.indexOf("year")!==-1,pbe=(e,t)=>uW(e)?{inputFormat:t.formats.year}:cW(e)?{disableMaskedInput:!0,inputFormat:t.formats.monthAndYear}:{inputFormat:t.formats.keyboardDate};function XM(e,t){var n;const r=Br(),l=rg(),i=pn({props:e,name:t}),o=(n=i.views)!=null?n:["year","day"];return Ie({openTo:"day",disableFuture:!1,disablePast:!1},pbe(o,r),i,{views:o,minDate:Ci(r,i.minDate,l.minDate),maxDate:Ci(r,i.maxDate,l.maxDate)})}const KM={emptyValue:null,getTodayValue:e=>e.date(),parseInput:WM,areValuesEqual:(e,t,n)=>e.isEqual(t,n)};function dW(e){return yn("MuiPickersToolbar",e)}const ZM=hn("MuiPickersToolbar",["root","content","penIconButton","penIconButtonLandscape"]),hbe=e=>{const{classes:t,isLandscape:n}=e;return vn({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},dW,t)},mbe=Et("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>Ie({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),gbe=Et(cr,{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>Ie({flex:1},!e.isLandscape&&{alignItems:"center"})),vbe=Et(mi,{name:"MuiPickersToolbar",slot:"PenIconButton",overridesResolver:(e,t)=>[{[`&.${ZM.penIconButtonLandscape}`]:t.penIconButtonLandscape},t.penIconButton]})({}),ybe=e=>e==="clock"?ke.jsx(GB,{color:"inherit"}):ke.jsx(VB,{color:"inherit"}),QM=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiPickersToolbar"}),{children:l,className:i,getMobileKeyboardInputViewButtonText:o,isLandscape:a,isMobileKeyboardViewOpen:s,landscapeDirection:u="column",toggleMobileKeyboardView:c,toolbarTitle:d,viewType:f="calendar"}=r,p=r,m=Xi(),g=hbe(p);return ke.jsxs(mbe,{ref:n,className:ma(g.root,i),ownerState:p,children:[ke.jsx(dr,{color:"text.secondary",variant:"overline",children:d}),ke.jsxs(gbe,{container:!0,justifyContent:"space-between",className:g.content,ownerState:p,direction:a?u:"row",alignItems:a?"flex-start":"flex-end",children:[l,ke.jsx(vbe,{onClick:c,className:g.penIconButton,ownerState:p,color:"inherit","aria-label":o?o(s,f):m.inputModeToggleButtonAriaLabel(s,f),children:s?ybe(f):ke.jsx(qye,{color:"inherit"})})]})]})});function bbe(e){return yn("MuiDatePickerToolbar",e)}const xbe=hn("MuiDatePickerToolbar",["root","title"]),wbe=["parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],_be=e=>{const{classes:t}=e;return vn({root:["root"],title:["title"]},bbe,t)},Tbe=Et(QM,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),kbe=Et(dr,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>Ie({},e.isLandscape&&{margin:"auto 16px auto auto"})),JM=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiDatePickerToolbar"}),{parsedValue:l,isLandscape:i,isMobileKeyboardViewOpen:o,toggleMobileKeyboardView:a,toolbarFormat:s,toolbarPlaceholder:u="––",toolbarTitle:c,views:d}=r,f=Kt(r,wbe),p=Br(),m=Xi(),g=_be(r),b=c??m.datePickerDefaultToolbarTitle,v=ge.useMemo(()=>l?s?p.formatByString(l,s):uW(d)?p.format(l,"year"):cW(d)?p.format(l,"month"):/en/.test(p.getCurrentLocaleCode())?p.format(l,"normalDateWithWeekday"):p.format(l,"normalDate"):u,[l,s,u,p,d]),h=r;return ke.jsx(Tbe,Ie({ref:n,toolbarTitle:b,isMobileKeyboardViewOpen:o,toggleMobileKeyboardView:a,isLandscape:i,className:g.root},f,{children:ke.jsx(kbe,{variant:"h4",align:i?"left":"center",ownerState:h,className:g.title,children:v})}))}),Sbe=["onAccept","onClear","onCancel","onSetToday","actions"],e5=e=>{const{onAccept:t,onClear:n,onCancel:r,onSetToday:l,actions:i}=e,o=Kt(e,Sbe),a=ge.useContext(ss),s=Xi(),u=typeof i=="function"?i(a):i;if(u==null||u.length===0)return null;const c=u==null?void 0:u.map(d=>{switch(d){case"clear":return ke.jsx(ji,{onClick:n,children:s.clearButtonLabel},d);case"cancel":return ke.jsx(ji,{onClick:r,children:s.cancelButtonLabel},d);case"accept":return ke.jsx(ji,{onClick:t,children:s.okButtonLabel},d);case"today":return ke.jsx(ji,{onClick:l,children:s.todayButtonLabel},d);default:return null}});return ke.jsx(ase,Ie({},o,{children:c}))};function Cbe(e){return yn("MuiPickersPopper",e)}hn("MuiPickersPopper",["root","paper"]);const Mbe=["onClick","onTouchStart"],Pbe=e=>{const{classes:t}=e;return vn({root:["root"],paper:["paper"]},Cbe,t)},Obe=Et(bM,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),Abe=Et(nu,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>Ie({transformOrigin:"top center",outline:0},e.placement==="top"&&{transformOrigin:"bottom center"}));function Dbe(e,t){return t.documentElement.clientWidth{if(!e)return;function s(){i.current=!0}return document.addEventListener("mousedown",s,!0),document.addEventListener("touchstart",s,!0),()=>{document.removeEventListener("mousedown",s,!0),document.removeEventListener("touchstart",s,!0),i.current=!1}},[e]);const o=yo(s=>{if(!i.current)return;const u=r.current;r.current=!1;const c=Aa(l.current);if(!l.current||"clientX"in s&&Dbe(s,c))return;if(n.current){n.current=!1;return}let d;s.composedPath?d=s.composedPath().indexOf(l.current)>-1:d=!c.documentElement.contains(s.target)||l.current.contains(s.target),!d&&!u&&t(s)}),a=()=>{r.current=!0};return ge.useEffect(()=>{if(e){const s=Aa(l.current),u=()=>{n.current=!0};return s.addEventListener("touchstart",o),s.addEventListener("touchmove",u),()=>{s.removeEventListener("touchstart",o),s.removeEventListener("touchmove",u)}}},[e,o]),ge.useEffect(()=>{if(e){const s=Aa(l.current);return s.addEventListener("click",o),()=>{s.removeEventListener("click",o),r.current=!1}}},[e,o]),[l,a,a]}function Rbe(e){var t;const n=pn({props:e,name:"MuiPickersPopper"}),{anchorEl:r,children:l,containerRef:i=null,onBlur:o,onClose:a,onClear:s,onAccept:u,onCancel:c,onSetToday:d,open:f,PopperProps:p,role:m,TransitionComponent:g=dm,TrapFocusProps:b,PaperProps:v={},components:h,componentsProps:y}=n;ge.useEffect(()=>{function j(z){f&&(z.key==="Escape"||z.key==="Esc")&&a()}return document.addEventListener("keydown",j),()=>{document.removeEventListener("keydown",j)}},[a,f]);const w=ge.useRef(null);ge.useEffect(()=>{m!=="tooltip"&&(f?w.current=RB(document):w.current&&w.current instanceof HTMLElement&&setTimeout(()=>{w.current instanceof HTMLElement&&w.current.focus()}))},[f,m]);const[_,x,T]=Ebe(f,o??a),k=ge.useRef(null),S=Lr(k,i),C=Lr(S,_),M=n,O=Pbe(M),{onClick:D,onTouchStart:P}=v,E=Kt(v,Mbe),I=j=>{j.key==="Escape"&&(j.stopPropagation(),a())},A=(t=h==null?void 0:h.ActionBar)!=null?t:e5,F=(h==null?void 0:h.PaperContent)||ge.Fragment;return ke.jsx(Obe,Ie({transition:!0,role:m,open:f,anchorEl:r,onKeyDown:I,className:O.root},p,{children:({TransitionProps:j,placement:z})=>ke.jsx(Ej,Ie({open:f,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:m==="tooltip",isEnabled:()=>!0},b,{children:ke.jsx(g,Ie({},j,{children:ke.jsx(Abe,Ie({tabIndex:-1,elevation:8,ref:C,onClick:B=>{x(B),D&&D(B)},onTouchStart:B=>{T(B),P&&P(B)},ownerState:Ie({},M,{placement:z}),className:O.paper},E,{children:ke.jsxs(F,Ie({},y==null?void 0:y.paperContent,{children:[l,ke.jsx(A,Ie({onAccept:u,onClear:s,onCancel:c,onSetToday:d,actions:[]},y==null?void 0:y.actionBar))]}))}))}))}))}))}function t5(e){const{children:t,DateInputProps:n,KeyboardDateInputComponent:r,onClear:l,onDismiss:i,onCancel:o,onAccept:a,onSetToday:s,open:u,PopperProps:c,PaperProps:d,TransitionComponent:f,components:p,componentsProps:m}=e,g=ge.useRef(null),b=Lr(n.inputRef,g);return ke.jsxs(ss.Provider,{value:"desktop",children:[ke.jsx(r,Ie({},n,{inputRef:b})),ke.jsx(Rbe,{role:"dialog",open:u,anchorEl:g.current,TransitionComponent:f,PopperProps:c,PaperProps:d,onClose:i,onCancel:o,onClear:l,onAccept:a,onSetToday:s,components:p,componentsProps:m,children:t})]})}const Lbe=e=>{const[,t]=ge.useReducer(s=>s+1,0),n=ge.useRef(null),{replace:r,append:l}=e,i=r?r(e.format(e.value)):e.format(e.value),o=ge.useRef(!1),a=s=>{const u=s.target.value;n.current=[u,s.target,u.length>i.length,o.current,i===e.format(u)],t()};return ge.useLayoutEffect(()=>{if(n.current==null)return;let[s,u,c,d,f]=n.current;n.current=null;const p=d&&f,g=s.slice(u.selectionStart).search(e.accept||/\d/g),b=g!==-1?g:0,v=x=>(x.match(e.accept||/\d/g)||[]).join(""),h=v(s.substr(0,u.selectionStart)),y=x=>{let T=0,k=0;for(let S=0;S!==h.length;++S){let C=x.indexOf(h[S],T)+1,M=v(x).indexOf(h[S],k)+1;M-k>1&&(C=T,M=k),k=Math.max(M,k),T=Math.max(T,C)}return T};if(e.mask===!0&&c&&!f){let x=y(s);const T=v(s.substr(x))[0];x=s.indexOf(T,x),s=`${s.substr(0,x)}${s.substr(x+1)}`}let w=e.format(s);l!=null&&u.selectionStart===s.length&&!f&&(c?w=l(w):v(w.slice(-1))===""&&(w=w.slice(0,-1)));const _=r?r(w):w;return i===_?t():e.onChange(_),()=>{let x=y(w);if(e.mask!=null&&(c||d&&!p))for(;w[x]&&v(w[x])==="";)x+=1;u.selectionStart=u.selectionEnd=x+(p?1+b:0)}}),ge.useEffect(()=>{const s=c=>{c.code==="Delete"&&(o.current=!0)},u=c=>{c.code==="Delete"&&(o.current=!1)};return document.addEventListener("keydown",s),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",s),document.removeEventListener("keyup",u)}},[]),{value:n.current!=null?n.current[0]:i,onChange:a}},ck=(e,t,n)=>{const r=e.date(t);return t===null?"":e.isValid(r)?e.formatByString(r,n):""},uy="_",fW="2019-11-21T22:30:00.000",pW="2019-01-01T09:00:00.000";function Ibe(e,t,n,r){if(e)return e;const i=r.formatByString(r.date(pW),t).replace(n,uy),o=r.formatByString(r.date(fW),t).replace(n,"_");return i===o?i:""}function $be(e,t,n,r){if(!e)return!1;const i=r.formatByString(r.date(pW),t).replace(n,uy),o=r.formatByString(r.date(fW),t).replace(n,"_"),a=o===i&&e===o;return!a&&r.lib,a}const Nbe=(e,t)=>n=>{let r=0;return n.split("").map((l,i)=>{if(t.lastIndex=0,r>e.length-1)return"";const o=e[r],a=e[r+1],s=t.test(l)?l:"",u=o===uy?s:o+s;return r+=u.length,i===n.length-1&&a&&a!==uy?u?u+a:"":u}).join("")},Fbe=({acceptRegex:e=/[\d]/gi,disabled:t,disableMaskedInput:n,ignoreInvalidInputs:r,inputFormat:l,inputProps:i,label:o,mask:a,onChange:s,rawValue:u,readOnly:c,rifmFormatter:d,TextFieldProps:f,validationError:p})=>{const m=Br(),g=m.getFormatHelperText(l),{shouldUseMaskedInput:b,maskToUse:v}=ge.useMemo(()=>{if(n)return{shouldUseMaskedInput:!1,maskToUse:""};const P=Ibe(a,l,e,m);return{shouldUseMaskedInput:$be(P,l,e,m),maskToUse:P}},[e,n,l,a,m]),h=ge.useMemo(()=>b&&v?Nbe(v,e):P=>P,[e,v,b]),y=u===null?null:m.date(u),[w,_]=ge.useState(y),[x,T]=ge.useState(ck(m,u,l)),k=ge.useRef(),S=ge.useRef(m.locale),C=ge.useRef(l);ge.useEffect(()=>{const P=u!==k.current,E=m.locale!==S.current,I=l!==C.current;if(k.current=u,S.current=m.locale,C.current=l,!P&&!E&&!I)return;const A=u===null?null:m.date(u),F=u===null||m.isValid(A);let j=w===null&&A===null;if(w!==null&&A!==null){const B=m.isEqual(w,A);if(B)j=!0;else{const N=Math.abs(m.getDiff(w,A));j=N===0?B:N<1e3}}if(!E&&!I&&(!F||j))return;const z=ck(m,u,l);_(A),T(z)},[m,u,l,w]);const M=P=>{const E=P===""||P===a?"":P;T(E);const I=E===null?null:m.parse(E,l);r&&!m.isValid(I)||(_(I),s(I,E||void 0))},O=Lbe({value:x,onChange:M,format:d||h});return Ie({label:o,disabled:t,error:p,inputProps:Ie({},b?O:{value:x,onChange:P=>{M(P.currentTarget.value)}},{disabled:t,placeholder:g,readOnly:c,type:b?"tel":"text"},i)},f)},jbe=["className","components","disableOpenPicker","getOpenDialogAriaText","InputAdornmentProps","InputProps","inputRef","openPicker","OpenPickerButtonProps","renderInput"],bb=ge.forwardRef(function(t,n){const{className:r,components:l={},disableOpenPicker:i,getOpenDialogAriaText:o,InputAdornmentProps:a,InputProps:s,inputRef:u,openPicker:c,OpenPickerButtonProps:d,renderInput:f}=t,p=Kt(t,jbe),m=Xi(),g=o??m.openDatePickerDialogue,b=Br(),v=Fbe(p),h=(a==null?void 0:a.position)||"end",y=l.OpenPickerIcon||VB;return f(Ie({ref:n,inputRef:u,className:r},v,{InputProps:Ie({},s,{[`${h}Adornment`]:i?void 0:ke.jsx(sz,Ie({position:h},a,{children:ke.jsx(mi,Ie({edge:h,disabled:p.disabled||p.readOnly,"aria-label":g(p.rawValue,b)},d,{onClick:c,children:ke.jsx(y,{})}))}))})}))});function S7(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const zbe=(e,t)=>{const[n,r]=ge.useState(S7);return no(()=>{const i=()=>{r(S7())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),Su(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},Bbe=({autoFocus:e,openView:t})=>{const[n,r]=ge.useState(e?t:null),l=ge.useCallback(i=>o=>{r(o?i:a=>i===a?null:a)},[]);return{focusedView:n,setFocusedView:l}};function Wbe(e){return yn("MuiCalendarOrClockPicker",e)}hn("MuiCalendarOrClockPicker",["root","mobileKeyboardInputView"]);const qbe=["autoFocus","className","parsedValue","DateInputProps","isMobileKeyboardViewOpen","onDateChange","onViewChange","openTo","orientation","showToolbar","toggleMobileKeyboardView","ToolbarComponent","toolbarFormat","toolbarPlaceholder","toolbarTitle","views","dateRangeIcon","timeIcon","hideTabs","classes"],Ube=e=>{const{classes:t}=e;return vn({root:["root"],mobileKeyboardInputView:["mobileKeyboardInputView"]},Wbe,t)},Hbe=Et("div",{name:"MuiCalendarOrClockPicker",slot:"MobileKeyboardInputView",overridesResolver:(e,t)=>t.mobileKeyboardInputView})({padding:"16px 24px"}),Vbe=Et("div",{name:"MuiCalendarOrClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>Ie({display:"flex",flexDirection:"column"},e.isLandscape&&{flexDirection:"row"})),Gbe={fullWidth:!0},C7=e=>e==="year"||e==="month"||e==="day",M7=e=>e==="hours"||e==="minutes"||e==="seconds";function us(e){var t,n;const r=pn({props:e,name:"MuiCalendarOrClockPicker"}),{autoFocus:l,parsedValue:i,DateInputProps:o,isMobileKeyboardViewOpen:a,onDateChange:s,onViewChange:u,openTo:c,orientation:d,showToolbar:f,toggleMobileKeyboardView:p,ToolbarComponent:m=()=>null,toolbarFormat:g,toolbarPlaceholder:b,toolbarTitle:v,views:h,dateRangeIcon:y,timeIcon:w,hideTabs:_}=r,x=Kt(r,qbe),T=(t=x.components)==null?void 0:t.Tabs,k=zbe(h,d),S=ge.useContext(ss),C=Ube(r),M=f??S!=="desktop",O=!_&&typeof window<"u"&&window.innerHeight>667,D=ge.useCallback((z,B)=>{s(z,S,B)},[s,S]),P=ge.useCallback(z=>{a&&p(),u&&u(z)},[a,u,p]),{openView:E,setOpenView:I,handleChangeAndOpenNext:A}=GM({view:void 0,views:h,openTo:c,onChange:D,onViewChange:P}),{focusedView:F,setFocusedView:j}=Bbe({autoFocus:l,openView:E});return ke.jsxs(Vbe,{ownerState:{isLandscape:k},className:C.root,children:[M&&ke.jsx(m,Ie({},x,{views:h,isLandscape:k,parsedValue:i,onChange:D,setOpenView:I,openView:E,toolbarTitle:v,toolbarFormat:g,toolbarPlaceholder:b,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:p})),O&&!!T&&ke.jsx(T,Ie({dateRangeIcon:y,timeIcon:w,view:E,onChange:I},(n=x.componentsProps)==null?void 0:n.tabs)),ke.jsx(YM,{children:a?ke.jsx(Hbe,{className:C.mobileKeyboardInputView,children:ke.jsx(bb,Ie({},o,{ignoreInvalidInputs:!0,disableOpenPicker:!0,TextFieldProps:Gbe}))}):ke.jsxs(ge.Fragment,{children:[C7(E)&&ke.jsx(tW,Ie({autoFocus:l,date:i,onViewChange:I,onChange:A,view:E,views:h.filter(C7),focusedView:F,onFocusedViewChange:j},x)),M7(E)&&ke.jsx(sW,Ie({},x,{autoFocus:l,date:i,view:E,views:h.filter(M7),onChange:A,onViewChange:I,showViewSwitcher:S==="desktop"}))]})})]})}const Ybe=({open:e,onOpen:t,onClose:n})=>{const r=ge.useRef(typeof e=="boolean").current,[l,i]=ge.useState(!1);ge.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");i(e)}},[r,e]);const o=ge.useCallback(a=>{r||i(a),a&&t&&t(),!a&&n&&n()},[r,t,n]);return{isOpen:l,setIsOpen:o}},cs=(e,t)=>{const{onAccept:n,onChange:r,value:l,closeOnSelect:i}=e,o=Br(),{isOpen:a,setIsOpen:s}=Ybe(e),u=ge.useMemo(()=>t.parseInput(o,l),[t,o,l]),[c,d]=ge.useState(u),[f,p]=ge.useState(()=>({committed:u,draft:u,resetFallback:u})),m=ge.useCallback(x=>{p(T=>{switch(x.action){case"setAll":case"acceptAndClose":return{draft:x.value,committed:x.value,resetFallback:x.value};case"setCommitted":return Ie({},T,{draft:x.value,committed:x.value});case"setDraft":return Ie({},T,{draft:x.value});default:return T}}),(x.forceOnChangeCall||!x.skipOnChangeCall&&!t.areValuesEqual(o,f.committed,x.value))&&r(x.value),x.action==="acceptAndClose"&&(s(!1),n&&!t.areValuesEqual(o,f.resetFallback,x.value)&&n(x.value))},[n,r,s,f,o,t]);ge.useEffect(()=>{o.isValid(u)&&d(u)},[o,u]),ge.useEffect(()=>{a&&m({action:"setAll",value:u,skipOnChangeCall:!0})},[a]),t.areValuesEqual(o,f.committed,u)||m({action:"setCommitted",value:u,skipOnChangeCall:!0});const g=ge.useMemo(()=>({open:a,onClear:()=>{m({value:t.emptyValue,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(o,l,t.emptyValue)})},onAccept:()=>{m({value:f.draft,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(o,l,u)})},onDismiss:()=>{m({value:f.committed,action:"acceptAndClose"})},onCancel:()=>{m({value:f.resetFallback,action:"acceptAndClose"})},onSetToday:()=>{m({value:t.getTodayValue(o),action:"acceptAndClose"})}}),[m,a,o,f,t,l,u]),[b,v]=ge.useState(!1),h=ge.useMemo(()=>({parsedValue:f.draft,isMobileKeyboardViewOpen:b,toggleMobileKeyboardView:()=>v(!b),onDateChange:(x,T,k="partial")=>{switch(k){case"shallow":return m({action:"setDraft",value:x,skipOnChangeCall:!0});case"partial":return m({action:"setDraft",value:x});case"finish":return m(i??T==="desktop"?{value:x,action:"acceptAndClose"}:{value:x,action:"setCommitted"});default:throw new Error("MUI: Invalid selectionState passed to `onDateChange`")}}}),[m,b,f.draft,i]),y=ge.useCallback((x,T)=>{const k=t.valueReducer?t.valueReducer(o,c,x):x;r(k,T)},[r,t,c,o]),w=ge.useMemo(()=>({onChange:y,open:a,rawValue:l,openPicker:()=>s(!0)}),[y,a,l,s]),_={pickerProps:h,inputProps:w,wrapperProps:g};return ge.useDebugValue(_,()=>({MuiPickerState:{dateState:f,other:_}})),_},Xbe=["onChange","PopperProps","PaperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],hW=ge.forwardRef(function(t,n){const r=XM(t,"MuiDesktopDatePicker"),l=HM(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=cs(r,KM),{PopperProps:s,PaperProps:u,ToolbarComponent:c=JM,TransitionComponent:d,components:f,componentsProps:p}=r,m=Kt(r,Xbe),g=Ie({},o,m,{components:f,componentsProps:p,ref:n,validationError:l});return ke.jsx(t5,Ie({},a,{DateInputProps:g,KeyboardDateInputComponent:bb,PopperProps:s,PaperProps:u,TransitionComponent:d,components:f,componentsProps:p,children:ke.jsx(us,Ie({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:c,DateInputProps:g,components:f,componentsProps:p},m))}))}),Kbe=Et(Jle)({[`& .${Eh.container}`]:{outline:0},[`& .${Eh.paper}`]:{outline:0,minWidth:VM}}),Zbe=Et(cse)({"&:first-of-type":{padding:0}}),Qbe=e=>{var t;const{children:n,DialogProps:r={},onAccept:l,onClear:i,onDismiss:o,onCancel:a,onSetToday:s,open:u,components:c,componentsProps:d}=e,f=(t=c==null?void 0:c.ActionBar)!=null?t:e5;return ke.jsxs(Kbe,Ie({open:u,onClose:o},r,{children:[ke.jsx(Zbe,{children:n}),ke.jsx(f,Ie({onAccept:l,onClear:i,onCancel:a,onSetToday:s,actions:["cancel","accept"]},d==null?void 0:d.actionBar))]}))},Jbe=["children","DateInputProps","DialogProps","onAccept","onClear","onDismiss","onCancel","onSetToday","open","PureDateInputComponent","components","componentsProps"];function n5(e){const{children:t,DateInputProps:n,DialogProps:r,onAccept:l,onClear:i,onDismiss:o,onCancel:a,onSetToday:s,open:u,PureDateInputComponent:c,components:d,componentsProps:f}=e,p=Kt(e,Jbe);return ke.jsxs(ss.Provider,{value:"mobile",children:[ke.jsx(c,Ie({components:d},p,n)),ke.jsx(Qbe,{DialogProps:r,onAccept:l,onClear:i,onDismiss:o,onCancel:a,onSetToday:s,open:u,components:d,componentsProps:f,children:t})]})}const r5=ge.forwardRef(function(t,n){const{disabled:r,getOpenDialogAriaText:l,inputFormat:i,InputProps:o,inputRef:a,label:s,openPicker:u,rawValue:c,renderInput:d,TextFieldProps:f={},validationError:p,className:m}=t,g=Xi(),b=l??g.openDatePickerDialogue,v=Br(),h=ge.useMemo(()=>Ie({},o,{readOnly:!0}),[o]),y=ck(v,c,i),w=yo(_=>{_.stopPropagation(),u()});return d(Ie({label:s,disabled:r,ref:n,inputRef:a,error:p,InputProps:h,className:m},!t.readOnly&&!t.disabled&&{onClick:w},{inputProps:Ie({disabled:r,readOnly:!0,"aria-readonly":!0,"aria-label":b(c,v),value:y},!t.readOnly&&{onClick:w},{onKeyDown:EB(u)})},f))}),exe=["ToolbarComponent","value","onChange","components","componentsProps"],mW=ge.forwardRef(function(t,n){const r=XM(t,"MuiMobileDatePicker"),l=HM(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=cs(r,KM),{ToolbarComponent:s=JM,components:u,componentsProps:c}=r,d=Kt(r,exe),f=Ie({},o,d,{components:u,componentsProps:c,ref:n,validationError:l});return ke.jsx(n5,Ie({},d,a,{DateInputProps:f,PureDateInputComponent:r5,components:u,componentsProps:c,children:ke.jsx(us,Ie({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:s,DateInputProps:f,components:u,componentsProps:c},d))}))}),txe=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],nxe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:l="@media (pointer: fine)",DialogProps:i,PopperProps:o,TransitionComponent:a}=r,s=Kt(r,txe);return wM(l,{defaultMatches:!0})?ke.jsx(hW,Ie({ref:n,PopperProps:o,TransitionComponent:a},s)):ke.jsx(mW,Ie({ref:n,DialogProps:i},s))});function a5(e,t){var n,r,l,i,o;const a=pn({props:e,name:t}),s=Br(),u=rg(),c=(n=a.ampm)!=null?n:s.is12HourCycleInCurrentLocale();if(a.orientation!=null&&a.orientation!=="portrait")throw new Error("We are not supporting custom orientation for DateTimePicker yet :(");return Ie({ampm:c,orientation:"portrait",openTo:"day",views:["year","day","hours","minutes"],ampmInClock:!0,acceptRegex:c?/[\dap]/gi:/\d/gi,disableMaskedInput:!1,inputFormat:c?s.formats.keyboardDateTime12h:s.formats.keyboardDateTime24h,disableIgnoringDatePartForTimeValidation:!!(a.minDateTime||a.maxDateTime),disablePast:!1,disableFuture:!1},a,{minDate:Ci(s,(r=a.minDateTime)!=null?r:a.minDate,u.minDate),maxDate:Ci(s,(l=a.maxDateTime)!=null?l:a.maxDate,u.maxDate),minTime:(i=a.minDateTime)!=null?i:a.minTime,maxTime:(o=a.maxDateTime)!=null?o:a.maxTime})}const o5={emptyValue:null,getTodayValue:e=>e.date(),parseInput:WM,areValuesEqual:(e,t,n)=>e.isEqual(t,n)},rxe=e=>{switch(e){case"year":case"month":case"day":return"calendar";default:return"clock"}};function axe(e){return yn("PrivatePickersToolbarText",e)}const P7=hn("PrivatePickersToolbarText",["root","selected"]),oxe=["className","selected","value"],ixe=e=>{const{classes:t,selected:n}=e;return vn({root:["root",n&&"selected"]},axe,t)},lxe=Et(dr,{name:"PrivatePickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${P7.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:e.palette.text.secondary,[`&.${P7.selected}`]:{color:e.palette.text.primary}})),i5=ge.forwardRef(function(t,n){const{className:r,value:l}=t,i=Kt(t,oxe),o=ixe(t);return ke.jsx(lxe,Ie({ref:n,className:ma(r,o.root),component:"span"},i,{children:l}))}),sxe=["align","className","selected","typographyClassName","value","variant"],uxe=e=>{const{classes:t}=e;return vn({root:["root"]},dW,t)},cxe=Et(ji,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),dl=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiPickersToolbarButton"}),{align:l,className:i,selected:o,typographyClassName:a,value:s,variant:u}=r,c=Kt(r,sxe),d=uxe(r);return ke.jsx(cxe,Ie({variant:"text",ref:n,className:ma(i,d.root)},c,{children:ke.jsx(i5,{align:l,className:a,variant:u,value:s,selected:o})}))});function dxe(e){return yn("MuiDateTimePickerToolbar",e)}const fxe=hn("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","separator"]),pxe=["ampm","parsedValue","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],hxe=e=>{const{classes:t}=e;return vn({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer"],separator:["separator"]},dxe,t)},mxe=Et(QM,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",[`& .${ZM.penIconButton}`]:Ie({position:"absolute",top:8},e.direction==="rtl"?{left:8}:{right:8})})),gxe=Et("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),vxe=Et("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})({display:"flex"}),O7=Et(i5,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({margin:"0 4px 0 2px",cursor:"default"});function l5(e){const t=pn({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,parsedValue:r,isMobileKeyboardViewOpen:l,openView:i,setOpenView:o,toggleMobileKeyboardView:a,toolbarFormat:s,toolbarPlaceholder:u="––",toolbarTitle:c,views:d}=t,f=Kt(t,pxe),p=t,m=Br(),g=Xi(),b=hxe(p),v=c??g.dateTimePickerDefaultToolbarTitle,h=w=>n?m.format(w,"hours12h"):m.format(w,"hours24h"),y=ge.useMemo(()=>r?s?m.formatByString(r,s):m.format(r,"shortDate"):u,[r,s,u,m]);return ke.jsxs(mxe,Ie({toolbarTitle:v,isMobileKeyboardViewOpen:l,toggleMobileKeyboardView:a,className:b.root,viewType:rxe(i)},f,{isLandscape:!1,ownerState:p,children:[ke.jsxs(gxe,{className:b.dateContainer,ownerState:p,children:[d.includes("year")&&ke.jsx(dl,{tabIndex:-1,variant:"subtitle1",onClick:()=>o("year"),selected:i==="year",value:r?m.format(r,"year"):"–"}),d.includes("day")&&ke.jsx(dl,{tabIndex:-1,variant:"h4",onClick:()=>o("day"),selected:i==="day",value:y})]}),ke.jsxs(vxe,{className:b.timeContainer,ownerState:p,children:[d.includes("hours")&&ke.jsx(dl,{variant:"h3",onClick:()=>o("hours"),selected:i==="hours",value:r?h(r):"--"}),d.includes("minutes")&&ke.jsxs(ge.Fragment,{children:[ke.jsx(O7,{variant:"h3",value:":",className:b.separator,ownerState:p}),ke.jsx(dl,{variant:"h3",onClick:()=>o("minutes"),selected:i==="minutes",value:r?m.format(r,"minutes"):"--"})]}),d.includes("seconds")&&ke.jsxs(ge.Fragment,{children:[ke.jsx(O7,{variant:"h3",value:":",className:b.separator,ownerState:p}),ke.jsx(dl,{variant:"h3",onClick:()=>o("seconds"),selected:i==="seconds",value:r?m.format(r,"seconds"):"--"})]})]})]}))}const gW=({adapter:e,value:t,props:n})=>{const{minTime:r,maxTime:l,minutesStep:i,shouldDisableTime:o,disableIgnoringDatePartForTimeValidation:a}=n,s=e.utils.date(t),u=XB(a,e.utils);if(t===null)return null;switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&u(r,s)):return"minTime";case!!(l&&u(s,l)):return"maxTime";case!!(o&&o(e.utils.getHours(s),"hours")):return"shouldDisableTime-hours";case!!(o&&o(e.utils.getMinutes(s),"minutes")):return"shouldDisableTime-minutes";case!!(o&&o(e.utils.getSeconds(s),"seconds")):return"shouldDisableTime-seconds";case!!(i&&e.utils.getMinutes(s)%i!==0):return"minutesStep";default:return null}},yxe=(e,t)=>e===t,s5=e=>qM(e,gW,yxe),bxe=["minDate","maxDate","disableFuture","shouldDisableDate","disablePast"],xxe=({props:e,value:t,adapter:n})=>{const{minDate:r,maxDate:l,disableFuture:i,shouldDisableDate:o,disablePast:a}=e,s=Kt(e,bxe),u=UM({adapter:n,value:t,props:{minDate:r,maxDate:l,disableFuture:i,shouldDisableDate:o,disablePast:a}});return u!==null?u:gW({adapter:n,value:t,props:s})},wxe=(e,t)=>e===t;function u5(e){return qM(e,xxe,wxe)}function _xe(e){return yn("MuiDateTimePickerTabs",e)}const Txe=hn("MuiDateTimePickerTabs",["root"]),kxe=e=>["day","month","year"].includes(e)?"date":"time",Sxe=e=>e==="date"?"day":"hours",Cxe=e=>{const{classes:t}=e;return vn({root:["root"]},_xe,t)},Mxe=Et(Nz,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>Ie({boxShadow:`0 -1px 0 0 inset ${t.palette.divider}`},e.wrapperVariant==="desktop"&&{order:1,boxShadow:`0 1px 0 0 inset ${t.palette.divider}`,[`& .${nv.indicator}`]:{bottom:"auto",top:0}})),xb=function(t){const n=pn({props:t,name:"MuiDateTimePickerTabs"}),{dateRangeIcon:r=ke.jsx(Wye,{}),onChange:l,timeIcon:i=ke.jsx(Uye,{}),view:o}=n,a=Xi(),s=ge.useContext(ss),u=Ie({},n,{wrapperVariant:s}),c=Cxe(u),d=(f,p)=>{l(Sxe(p))};return ke.jsxs(Mxe,{ownerState:u,variant:"fullWidth",value:kxe(o),onChange:d,className:c.root,children:[ke.jsx(J3,{value:"date","aria-label":a.dateTableLabel,icon:ke.jsx(ge.Fragment,{children:r})}),ke.jsx(J3,{value:"time","aria-label":a.timeTableLabel,icon:ke.jsx(ge.Fragment,{children:i})})]})},Pxe=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps","hideTabs"],vW=ge.forwardRef(function(t,n){const r=a5(t,"MuiDesktopDateTimePicker"),l=u5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=cs(r,o5),{PaperProps:s,PopperProps:u,ToolbarComponent:c=l5,TransitionComponent:d,components:f,componentsProps:p,hideTabs:m=!0}=r,g=Kt(r,Pxe),b=ge.useMemo(()=>Ie({Tabs:xb},f),[f]),v=Ie({},o,g,{components:b,componentsProps:p,ref:n,validationError:l});return ke.jsx(t5,Ie({},a,{DateInputProps:v,KeyboardDateInputComponent:bb,PopperProps:u,PaperProps:s,TransitionComponent:d,components:b,componentsProps:p,children:ke.jsx(us,Ie({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:c,DateInputProps:v,components:b,componentsProps:p,hideTabs:m},g))}))}),Oxe=["ToolbarComponent","value","onChange","components","componentsProps","hideTabs"],yW=ge.forwardRef(function(t,n){const r=a5(t,"MuiMobileDateTimePicker"),l=u5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=cs(r,o5),{ToolbarComponent:s=l5,components:u,componentsProps:c,hideTabs:d=!1}=r,f=Kt(r,Oxe),p=ge.useMemo(()=>Ie({Tabs:xb},u),[u]),m=Ie({},o,f,{components:p,componentsProps:c,ref:n,validationError:l});return ke.jsx(n5,Ie({},f,a,{DateInputProps:m,PureDateInputComponent:r5,components:p,componentsProps:c,children:ke.jsx(us,Ie({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:s,DateInputProps:m,components:p,componentsProps:c,hideTabs:d},f))}))}),Axe=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],Dxe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:l="@media (pointer: fine)",DialogProps:i,PopperProps:o,TransitionComponent:a}=r,s=Kt(r,Axe);return wM(l,{defaultMatches:!0})?ke.jsx(vW,Ie({ref:n,PopperProps:o,TransitionComponent:a},s)):ke.jsx(yW,Ie({ref:n,DialogProps:i},s))});function c5(e,t){var n;const r=pn({props:e,name:t}),l=Br(),i=(n=r.ampm)!=null?n:l.is12HourCycleInCurrentLocale(),a=Xi().openTimePickerDialogue;return Ie({ampm:i,openTo:"hours",views:["hours","minutes"],acceptRegex:i?/[\dapAP]/gi:/\d/gi,disableMaskedInput:!1,getOpenDialogAriaText:a,inputFormat:i?l.formats.fullTime12h:l.formats.fullTime24h},r,{components:Ie({OpenPickerIcon:GB},r.components)})}const d5={emptyValue:null,parseInput:WM,getTodayValue:e=>e.date(),areValuesEqual:(e,t,n)=>e.isEqual(t,n),valueReducer:(e,t,n)=>!t||!e.isValid(n)?n:e.mergeDateAndTime(t,n)};function Exe(e){return yn("MuiTimePickerToolbar",e)}const _d=hn("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),Rxe=["ampm","ampmInClock","parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarTitle","views","disabled","readOnly"],Lxe=e=>{const{theme:t,isLandscape:n,classes:r}=e,l={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape",t.direction==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return vn(l,Exe,r)},Ixe=Et(QM,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({[`& .${ZM.penIconButtonLandscape}`]:{marginTop:"auto"}}),$xe=Et(i5,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),Nxe=Et("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${_d.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${_d.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>Ie({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"})),Fxe=Et("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${_d.ampmLabel}`]:t.ampmLabel},{[`&.${_d.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>Ie({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${_d.ampmLabel}`]:{fontSize:17}}));function f5(e){const t=pn({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,parsedValue:l,isLandscape:i,isMobileKeyboardViewOpen:o,onChange:a,openView:s,setOpenView:u,toggleMobileKeyboardView:c,toolbarTitle:d,views:f,disabled:p,readOnly:m}=t,g=Kt(t,Rxe),b=Br(),v=Xi(),h=d??v.timePickerDefaultToolbarTitle,y=po(),w=!!(n&&!r),{meridiemMode:_,handleMeridiemChange:x}=KB(l,n,a),T=M=>n?b.format(M,"hours12h"):b.format(M,"hours24h"),k=t,S=Lxe(Ie({},k,{theme:y})),C=ke.jsx($xe,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:S.separator});return ke.jsxs(Ixe,Ie({viewType:"clock",landscapeDirection:"row",toolbarTitle:h,isLandscape:i,isMobileKeyboardViewOpen:o,toggleMobileKeyboardView:c,ownerState:k,className:S.root},g,{children:[ke.jsxs(Nxe,{className:S.hourMinuteLabel,ownerState:k,children:[Su(f,"hours")&&ke.jsx(dl,{tabIndex:-1,variant:"h3",onClick:()=>u("hours"),selected:s==="hours",value:l?T(l):"--"}),Su(f,["hours","minutes"])&&C,Su(f,"minutes")&&ke.jsx(dl,{tabIndex:-1,variant:"h3",onClick:()=>u("minutes"),selected:s==="minutes",value:l?b.format(l,"minutes"):"--"}),Su(f,["minutes","seconds"])&&C,Su(f,"seconds")&&ke.jsx(dl,{variant:"h3",onClick:()=>u("seconds"),selected:s==="seconds",value:l?b.format(l,"seconds"):"--"})]}),w&&ke.jsxs(Fxe,{className:S.ampmSelection,ownerState:k,children:[ke.jsx(dl,{disableRipple:!0,variant:"subtitle2",selected:_==="am",typographyClassName:S.ampmLabel,value:b.getMeridiemText("am"),onClick:m?void 0:()=>x("am"),disabled:p}),ke.jsx(dl,{disableRipple:!0,variant:"subtitle2",selected:_==="pm",typographyClassName:S.ampmLabel,value:b.getMeridiemText("pm"),onClick:m?void 0:()=>x("pm"),disabled:p})]})]}))}const jxe=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],bW=ge.forwardRef(function(t,n){const r=c5(t,"MuiDesktopTimePicker"),l=s5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=cs(r,d5),{PaperProps:s,PopperProps:u,ToolbarComponent:c=f5,TransitionComponent:d,components:f,componentsProps:p}=r,m=Kt(r,jxe),g=Ie({},o,m,{components:f,componentsProps:p,ref:n,validationError:l});return ke.jsx(t5,Ie({},a,{DateInputProps:g,KeyboardDateInputComponent:bb,PopperProps:u,PaperProps:s,TransitionComponent:d,components:f,componentsProps:p,children:ke.jsx(us,Ie({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:c,DateInputProps:g,components:f,componentsProps:p},m))}))}),zxe=["ToolbarComponent","value","onChange","components","componentsProps"],xW=ge.forwardRef(function(t,n){const r=c5(t,"MuiMobileTimePicker"),l=s5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=cs(r,d5),{ToolbarComponent:s=f5,components:u,componentsProps:c}=r,d=Kt(r,zxe),f=Ie({},o,d,{components:u,componentsProps:c,ref:n,validationError:l});return ke.jsx(n5,Ie({},d,a,{DateInputProps:f,PureDateInputComponent:r5,components:u,componentsProps:c,children:ke.jsx(us,Ie({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:s,DateInputProps:f,components:u,componentsProps:c},d))}))});function Bxe(e){return yn("MuiPickerStaticWrapper",e)}hn("MuiPickerStaticWrapper",["root","content"]);const Wxe=["displayStaticWrapperAs","onAccept","onClear","onCancel","onDismiss","onSetToday","open","children","components","componentsProps","className"],qxe=e=>{const{classes:t}=e;return vn({root:["root"],content:["content"]},Bxe,t)},Uxe=Et("div",{name:"MuiPickerStaticWrapper",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),Hxe=Et("div",{name:"MuiPickerStaticWrapper",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e})=>({overflow:"hidden",minWidth:VM,display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper}));function wb(e){var t;const n=pn({props:e,name:"MuiPickerStaticWrapper"}),{displayStaticWrapperAs:r,onAccept:l,onClear:i,onCancel:o,onSetToday:a,children:s,components:u,componentsProps:c,className:d}=n,f=Kt(n,Wxe),p=qxe(n),m=(t=u==null?void 0:u.ActionBar)!=null?t:e5,g=(u==null?void 0:u.PaperContent)||ge.Fragment;return ke.jsx(ss.Provider,{value:r,children:ke.jsxs(Uxe,Ie({className:ma(p.root,d)},f,{children:[ke.jsx(Hxe,{className:p.content,children:ke.jsx(g,Ie({},c==null?void 0:c.paperContent,{children:s}))}),ke.jsx(m,Ie({onAccept:l,onClear:i,onCancel:o,onSetToday:a,actions:r==="desktop"?[]:["cancel","accept"]},c==null?void 0:c.actionBar))]}))})}const Vxe=["ToolbarComponent","value","onChange","displayStaticWrapperAs","components","componentsProps","className"],Gxe=ge.forwardRef(function(t,n){const r=XM(t,"MuiStaticDatePicker"),{ToolbarComponent:l=JM,displayStaticWrapperAs:i="mobile",components:o,componentsProps:a,className:s}=r,u=Kt(r,Vxe),{pickerProps:c,inputProps:d,wrapperProps:f}=cs(r,KM),p=HM(r)!==null,m=Ie({},d,u,{ref:n,validationError:p,components:o});return ke.jsx(wb,Ie({displayStaticWrapperAs:i,components:o,componentsProps:a,className:s},f,{children:ke.jsx(us,Ie({},c,{toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:l,DateInputProps:m,components:o,componentsProps:a},u))}))}),Yxe=["displayStaticWrapperAs","onChange","ToolbarComponent","value","components","componentsProps","hideTabs","className"],Xxe=ge.forwardRef(function(t,n){const r=a5(t,"MuiStaticDateTimePicker"),{displayStaticWrapperAs:l="mobile",ToolbarComponent:i=l5,components:o,componentsProps:a,hideTabs:s=l==="desktop",className:u}=r,c=Kt(r,Yxe),{pickerProps:d,inputProps:f,wrapperProps:p}=cs(r,o5),m=u5(r)!==null,g=ge.useMemo(()=>Ie({Tabs:xb},o),[o]),b=Ie({},f,c,{ref:n,validationError:m,components:g,componentsProps:a});return ke.jsx(wb,Ie({displayStaticWrapperAs:l,components:g,componentsProps:a,className:u},p,{children:ke.jsx(us,Ie({},d,{toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:i,DateInputProps:b,components:g,componentsProps:a,hideTabs:s},c))}))}),Kxe=["displayStaticWrapperAs","onChange","ToolbarComponent","value","components","componentsProps","className"],Zxe=ge.forwardRef(function(t,n){const r=c5(t,"MuiStaticTimePicker"),{displayStaticWrapperAs:l="mobile",ToolbarComponent:i=f5,components:o,componentsProps:a,className:s}=r,u=Kt(r,Kxe),c=s5(r)!==null,{pickerProps:d,inputProps:f,wrapperProps:p}=cs(r,d5),m=Ie({},f,u,{ref:n,validationError:c,components:o,componentsProps:a});return ke.jsx(wb,Ie({displayStaticWrapperAs:l,components:o,componentsProps:a,className:s},p,{children:ke.jsx(us,Ie({},d,{toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:i,DateInputProps:m,components:o,componentsProps:a},u))}))}),Qxe=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],Jxe=ge.forwardRef(function(t,n){const r=pn({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:l="@media (pointer: fine)",DialogProps:i,PopperProps:o,TransitionComponent:a}=r,s=Kt(r,Qxe);return wM(l,{defaultMatches:!0})?ke.jsx(bW,Ie({ref:n,PopperProps:o,TransitionComponent:a},s)):ke.jsx(xW,Ie({ref:n,DialogProps:i},s))});/** @license MUI X v5.0.20 + */function x(w){return w===null||typeof w!="object"}function _(w){return w.map(function(k){return typeof k=="symbol"?k.toString():k})}return S0.exports}var h_={},j7;function WB(){return j7||(j7=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={error:"Data could not be retrieved",grouping:{groupedBy:"Grouped By:",placeholder:"Drag headers here to group by"},pagination:{labelDisplayedRows:"{from}-{to} of {count}",labelRowsPerPage:"Rows per page:",labelRows:"rows",firstAriaLabel:"First Page",firstTooltip:"First Page",previousAriaLabel:"Previous Page",previousTooltip:"Previous Page",nextAriaLabel:"Next Page",nextTooltip:"Next Page",lastAriaLabel:"Last Page",lastTooltip:"Last Page"},toolbar:{addRemoveColumns:"Add or remove columns",nRowsSelected:"{0} row(s) selected",showColumnsTitle:"Show Columns",showColumnsAriaLabel:"Show Columns",exportTitle:"Export",exportAriaLabel:"Export",searchTooltip:"Search",searchPlaceholder:"Search",searchAriaLabel:"Search",clearSearchAriaLabel:"Clear Search"},header:{actions:"Actions"},body:{emptyDataSourceMessage:"No records to display",editRow:{saveTooltip:"Save",cancelTooltip:"Cancel",deleteText:"Are you sure you want to delete this row?"},filterRow:{},dateTimePickerLocalization:"Filter",addTooltip:"Add",deleteTooltip:"Delete",editTooltip:"Edit",bulkEditTooltip:"Edit All",bulkEditApprove:"Save all changes",bulkEditCancel:"Discard all changes"}};e.default=t}(h_)),h_}var m_={},z7;function qB(){return z7||(z7=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={idSynonym:"id",actionsColumnIndex:0,addRowPosition:"last",columnsButton:!1,detailPanelType:"multiple",debounceInterval:200,doubleHorizontalScroll:!1,emptyRowsWhenPaging:!0,exportAllData:!1,exportMenu:[],filtering:!1,groupTitle:!1,header:!0,headerSelectionProps:{},hideFilterIcons:!1,loadingType:"overlay",padding:"normal",searchAutoFocus:!1,paging:!0,pageSize:5,pageSizeOptions:[5,10,20],paginationType:"normal",paginationPosition:"bottom",showEmptyDataSourceMessage:!0,showFirstLastPageButtons:!0,showSelectAllCheckbox:!0,showSelectGroupCheckbox:!0,search:!0,showTitle:!0,showTextRowsSelected:!0,showDetailPanelIcon:!0,tableLayout:"auto",tableWidth:"full",toolbarButtonAlignment:"right",searchFieldAlignment:"right",searchFieldStyle:{},searchFieldVariant:"standard",selection:!1,selectionProps:{},maxColumnSort:1,clientSorting:!0,groupChipProps:{},defaultOrderByCollection:[],showColumnSortOrder:!1,keepSortDirectionOnColumnSwitch:!0,toolbar:!0,defaultExpanded:!1,detailPanelColumnAlignment:"left",detailPanelOffset:{left:0,right:0},thirdSortClick:!0,overflowY:"auto",numberOfPagesAround:1,actionsHeaderIndex:0,draggable:!0};e.default=t}(m_)),m_}var g_={},yp={},v_={exports:{}},B7;function yo(){return B7||(B7=1,function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(v_)),v_.exports}var y_={};const Fpe=er(eae);var W7;function bo(){return W7||(W7=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Fpe}(y_)),y_}var q7;function jpe(){if(q7)return yp;q7=1;var e=yo();Object.defineProperty(yp,"__esModule",{value:!0}),yp.default=void 0;var t=e(bo()),n=Se;return yp.default=(0,t.default)((0,n.jsx)("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"}),"ViewColumn"),yp}var bp={},U7;function zpe(){if(U7)return bp;U7=1;var e=yo();Object.defineProperty(bp,"__esModule",{value:!0}),bp.default=void 0;var t=e(bo()),n=Se;return bp.default=(0,t.default)((0,n.jsx)("path",{d:"M19 13H5v-2h14z"}),"Remove"),bp}var xp={},H7;function Bpe(){if(H7)return xp;H7=1;var e=yo();Object.defineProperty(xp,"__esModule",{value:!0}),xp.default=void 0;var t=e(bo()),n=Se;return xp.default=(0,t.default)((0,n.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),xp}var wp={},V7;function Wpe(){if(V7)return wp;V7=1;var e=yo();Object.defineProperty(wp,"__esModule",{value:!0}),wp.default=void 0;var t=e(bo()),n=Se;return wp.default=(0,t.default)((0,n.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),wp}var _p={},G7;function qpe(){if(G7)return _p;G7=1;var e=yo();Object.defineProperty(_p,"__esModule",{value:!0}),_p.default=void 0;var t=e(bo()),n=Se;return _p.default=(0,t.default)((0,n.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"Replay"),_p}const b5=er(Tue);var Tp={},Y7;function Upe(){if(Y7)return Tp;Y7=1;var e=yo();Object.defineProperty(Tp,"__esModule",{value:!0}),Tp.default=void 0;var t=e(bo()),n=Se;return Tp.default=(0,t.default)((0,n.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),Tp}var Sp={},X7;function Hpe(){if(X7)return Sp;X7=1;var e=yo();Object.defineProperty(Sp,"__esModule",{value:!0}),Sp.default=void 0;var t=e(bo()),n=Se;return Sp.default=(0,t.default)((0,n.jsx)("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),Sp}var kp={},K7;function Vpe(){if(K7)return kp;K7=1;var e=yo();Object.defineProperty(kp,"__esModule",{value:!0}),kp.default=void 0;var t=e(bo()),n=Se;return kp.default=(0,t.default)((0,n.jsx)("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),kp}var Cp={},Z7;function Gpe(){if(Z7)return Cp;Z7=1;var e=yo();Object.defineProperty(Cp,"__esModule",{value:!0}),Cp.default=void 0;var t=e(bo()),n=Se;return Cp.default=(0,t.default)((0,n.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList"),Cp}var Mp={},Q7;function Ype(){if(Q7)return Mp;Q7=1;var e=yo();Object.defineProperty(Mp,"__esModule",{value:!0}),Mp.default=void 0;var t=e(bo()),n=Se;return Mp.default=(0,t.default)((0,n.jsx)("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),Mp}var Pp={},J7;function Xpe(){if(J7)return Pp;J7=1;var e=yo();Object.defineProperty(Pp,"__esModule",{value:!0}),Pp.default=void 0;var t=e(bo()),n=Se;return Pp.default=(0,t.default)((0,n.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),Pp}var Op={},eD;function Kpe(){if(eD)return Op;eD=1;var e=yo();Object.defineProperty(Op,"__esModule",{value:!0}),Op.default=void 0;var t=e(bo()),n=Se;return Op.default=(0,t.default)((0,n.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),Op}var Ap={},tD;function Zpe(){if(tD)return Ap;tD=1;var e=yo();Object.defineProperty(Ap,"__esModule",{value:!0}),Ap.default=void 0;var t=e(bo()),n=Se;return Ap.default=(0,t.default)((0,n.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline"),Ap}var Dp={},nD;function Qpe(){if(nD)return Dp;nD=1;var e=yo();Object.defineProperty(Dp,"__esModule",{value:!0}),Dp.default=void 0;var t=e(bo()),n=Se;return Dp.default=(0,t.default)((0,n.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear"),Dp}var Ep={},rD;function Jpe(){if(rD)return Ep;rD=1;var e=yo();Object.defineProperty(Ep,"__esModule",{value:!0}),Ep.default=void 0;var t=e(bo()),n=Se;return Ep.default=(0,t.default)((0,n.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Ep}var Rp={},aD;function ehe(){if(aD)return Rp;aD=1;var e=yo();Object.defineProperty(Rp,"__esModule",{value:!0}),Rp.default=void 0;var t=e(bo()),n=Se;return Rp.default=(0,t.default)((0,n.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4z"}),"AddBox"),Rp}var oD;function UB(){return oD||(oD=1,function(e){var t=Hn,n=Ma();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(jpe()),l=t(zpe()),i=t(Bpe()),o=t(Wpe()),a=t(qpe()),s=t(b5),u=t(Upe()),c=t(Hpe()),d=t(Vpe()),f=t(Gpe()),p=t(Ype()),h=t(Xpe()),g=t(Kpe()),b=t(Zpe()),v=t(Qpe()),m=t(Jpe()),y=t(ehe()),x=t(jr()),_=S(ge);function w(C){if(typeof WeakMap!="function")return null;var T=new WeakMap,M=new WeakMap;return(w=function(D){return D?M:T})(C)}function S(C,T){if(C&&C.__esModule)return C;if(C===null||n(C)!=="object"&&typeof C!="function")return{default:C};var M=w(T);if(M&&M.has(C))return M.get(C);var O={},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var P in C)if(P!=="default"&&Object.prototype.hasOwnProperty.call(C,P)){var E=D?Object.getOwnPropertyDescriptor(C,P):null;E&&(E.get||E.set)?Object.defineProperty(O,P,E):O[P]=C[P]}return O.default=C,M&&M.set(C,O),O}var k={Add:(0,_.forwardRef)(function(C,T){return _.default.createElement(y.default,(0,x.default)({},C,{ref:T,"data-testid":"add_box"}))}),Check:(0,_.forwardRef)(function(C,T){return _.default.createElement(m.default,(0,x.default)({},C,{ref:T,"data-testid":"check"}))}),Clear:(0,_.forwardRef)(function(C,T){return _.default.createElement(v.default,(0,x.default)({},C,{ref:T,"data-testid":"clear"}))}),Delete:(0,_.forwardRef)(function(C,T){return _.default.createElement(b.default,(0,x.default)({},C,{ref:T,"data-testid":"delete_outline"}))}),DetailPanel:(0,_.forwardRef)(function(C,T){return _.default.createElement(g.default,(0,x.default)({},C,{ref:T,"data-testid":"chevron_right"}))}),Edit:(0,_.forwardRef)(function(C,T){return _.default.createElement(h.default,(0,x.default)({},C,{ref:T,"data-testid":"edit"}))}),Export:(0,_.forwardRef)(function(C,T){return _.default.createElement(p.default,(0,x.default)({},C,{ref:T,"data-testid":"save_alt"}))}),Filter:(0,_.forwardRef)(function(C,T){return _.default.createElement(f.default,(0,x.default)({},C,{ref:T,"data-testid":"filter_list"}))}),FirstPage:(0,_.forwardRef)(function(C,T){return _.default.createElement(d.default,(0,x.default)({},C,{ref:T,"data-testid":"first_page"}))}),LastPage:(0,_.forwardRef)(function(C,T){return _.default.createElement(c.default,(0,x.default)({},C,{ref:T,"data-testid":"last_page"}))}),NextPage:(0,_.forwardRef)(function(C,T){return _.default.createElement(g.default,(0,x.default)({},C,{ref:T,"data-testid":"chevron_right"}))}),PreviousPage:(0,_.forwardRef)(function(C,T){return _.default.createElement(u.default,(0,x.default)({},C,{ref:T,"data-testid":"chevron_left"}))}),ResetSearch:(0,_.forwardRef)(function(C,T){return _.default.createElement(v.default,(0,x.default)({},C,{ref:T,"data-testid":"clear"}))}),Resize:(0,_.forwardRef)(function(C,T){return _.default.createElement(s.default,(0,x.default)({},C,{ref:T,"data-testid":"drag_handle"}),"|")}),Retry:(0,_.forwardRef)(function(C,T){return _.default.createElement(a.default,(0,x.default)({},C,{ref:T,"data-testid":"replay"}))}),Search:(0,_.forwardRef)(function(C,T){return _.default.createElement(o.default,(0,x.default)({},C,{ref:T,"data-testid":"search"}))}),SortArrow:(0,_.forwardRef)(function(C,T){return _.default.createElement(i.default,(0,x.default)({},C,{ref:T,"data-testid":"arrow_downward"}))}),ThirdStateCheck:(0,_.forwardRef)(function(C,T){return _.default.createElement(l.default,(0,x.default)({},C,{ref:T,"data-testid":"remove"}))}),ViewColumn:(0,_.forwardRef)(function(C,T){return _.default.createElement(r.default,(0,x.default)({},C,{ref:T,"data-testid":"view_column"}))})};e.default=k}(g_)),g_}var b_,iD;function the(){if(iD)return b_;iD=1;var e=function(m){return t(m)&&!n(m)};function t(v){return!!v&&typeof v=="object"}function n(v){var m=Object.prototype.toString.call(v);return m==="[object RegExp]"||m==="[object Date]"||i(v)}var r=typeof Symbol=="function"&&Symbol.for,l=r?Symbol.for("react.element"):60103;function i(v){return v.$$typeof===l}function o(v){return Array.isArray(v)?[]:{}}function a(v,m){return m.clone!==!1&&m.isMergeableObject(v)?g(o(v),v,m):v}function s(v,m,y){return v.concat(m).map(function(x){return a(x,y)})}function u(v,m){if(!m.customMerge)return g;var y=m.customMerge(v);return typeof y=="function"?y:g}function c(v){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(v).filter(function(m){return Object.propertyIsEnumerable.call(v,m)}):[]}function d(v){return Object.keys(v).concat(c(v))}function f(v,m){try{return m in v}catch{return!1}}function p(v,m){return f(v,m)&&!(Object.hasOwnProperty.call(v,m)&&Object.propertyIsEnumerable.call(v,m))}function h(v,m,y){var x={};return y.isMergeableObject(v)&&d(v).forEach(function(_){x[_]=a(v[_],y)}),d(m).forEach(function(_){p(v,_)||(f(v,_)&&y.isMergeableObject(m[_])?x[_]=u(_,y)(v[_],m[_],y):x[_]=a(m[_],y))}),x}function g(v,m,y){y=y||{},y.arrayMerge=y.arrayMerge||s,y.isMergeableObject=y.isMergeableObject||e,y.cloneUnlessOtherwiseSpecified=a;var x=Array.isArray(m),_=Array.isArray(v),w=x===_;return w?x?y.arrayMerge(v,m,y):h(v,m,y):a(m,y)}g.all=function(m,y){if(!Array.isArray(m))throw new Error("first argument should be an array");return m.reduce(function(x,_){return g(x,_,y)},{})};var b=g;return b_=b,b_}var lD;function mg(){if(lD)return Zi;lD=1;var e=Hn;Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.useLocalizationStore=Zi.useIconStore=void 0,Zi.useMergeProps=v,Zi.useOptionStore=void 0,Zi.withContext=m;var t=e(za()),n=$pe,r=e(ge),l=e(BB()),i=e(WB()),o=e(qB()),a=e(UB()),s=e(AU());function u(y,x){var _=Object.keys(y);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(y);x&&(w=w.filter(function(S){return Object.getOwnPropertyDescriptor(y,S).enumerable})),_.push.apply(_,w)}return _}function c(y){for(var x=1;x=0)&&(l[o]=n[o]);return l}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(__)),__.exports}var dD;function kf(){return dD||(dD=1,function(e){var t=ahe();function n(r,l){if(r==null)return{};var i=t(r,l),o,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(r,o)&&(i[o]=r[o])}return i}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(w_)),w_.exports}var fD;function ohe(){return fD||(fD=1,function(e){var t=Hn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(rhe),r=t(jr()),l=t(kf()),i=t(ge),o=["forwardedRef"];function a(u){var c=u.forwardedRef,d=(0,l.default)(u,o);return i.default.createElement(n.default,(0,r.default)({elevation:2},d,{ref:c}))}var s=i.default.forwardRef(function(c,d){return i.default.createElement(a,(0,r.default)({},c,{forwardedRef:d}))});e.default=s}(x_)),x_}var T_={};const kc=er(Xie);var S_={exports:{}},pD;function ihe(){return pD||(pD=1,function(e,t){(function(r,l){e.exports=l(ge)})($o,function(n){return function(r){var l={};function i(o){if(l[o])return l[o].exports;var a=l[o]={exports:{},id:o,loaded:!1};return r[o].call(a.exports,a,a.exports,i),a.loaded=!0,a.exports}return i.m=r,i.c=l,i.p="",i(0)}([function(r,l,i){Object.defineProperty(l,"__esModule",{value:!0});var o=function(){function h(g,b){for(var v=0;vn.length)&&(r=n.length);for(var l=0,i=new Array(r);l0&&E++,g.hasDetailPanel&&E++,g.isTreeData&&E++,s.default.createElement(o.default,{style:{height:P*(v.paging&&v.emptyRowsWhenPaging?g.pageSize:1)},key:"empty-0"},s.default.createElement(a.default,{style:{paddingTop:0,paddingBottom:0,textAlign:"center"},colSpan:g.columns.reduce(function(I,A){return A.hidden?I:I+1},E),key:"empty-"},b.emptyDataSourceMessage))}else if(v.emptyRowsWhenPaging)return s.default.createElement(s.default.Fragment,null,(0,i.default)(Array(O)).map(function(I,A){return s.default.createElement(o.default,{style:{height:P},key:"empty-"+A})}),O>0&&s.default.createElement(o.default,{style:{height:1},key:"empty-last1"}))}function _(O){return O.map(function(D,P){if(D.tableData.editing||g.bulkEditOpen)return s.default.createElement(g.components.EditRow,{columns:y,components:g.components,data:D,errorState:g.errorState,icons:m,localization:b.editRow,key:"row-"+D.tableData.uuid,mode:g.bulkEditOpen?"bulk":D.tableData.editing,isTreeData:g.isTreeData,detailPanel:g.detailPanel,onEditingCanceled:g.onEditingCanceled,onEditingApproved:g.onEditingApproved,bulkEditChangedRows:g.bulkEditChangedRows,getFieldValue:g.getFieldValue,onBulkEditRowChanged:g.onBulkEditRowChanged,scrollWidth:g.scrollWidth});var E=g.isTreeData?[D.tableData.uuid]:[P+g.pageSize*g.currentPage];return s.default.createElement(g.components.Row,{components:g.components,data:D,index:P,errorState:g.errorState,key:"row-"+D.tableData.uuid,level:0,onRowSelected:g.onRowSelected,actions:g.actions,columns:g.columns,getFieldValue:g.getFieldValue,detailPanel:g.detailPanel,path:E,onToggleDetailPanel:g.onToggleDetailPanel,onRowClick:g.onRowClick,onRowDoubleClick:g.onRowDoubleClick,isTreeData:g.isTreeData,onTreeExpandChanged:g.onTreeExpandChanged,onEditingCanceled:g.onEditingCanceled,onEditingApproved:g.onEditingApproved,hasAnyEditingRow:g.hasAnyEditingRow,treeDataMaxLevel:g.treeDataMaxLevel,cellEditable:g.cellEditable,onCellEditStarted:g.onCellEditStarted,onCellEditFinished:g.onCellEditFinished,onRowEditStarted:g.onRowEditStarted,scrollWidth:g.scrollWidth})})}function w(O,D){return D.map(function(P,E){return s.default.createElement(g.components.GroupRow,{actions:g.actions,cellEditable:g.cellEditable,columns:g.columns,components:g.components,detailPanel:g.detailPanel,getFieldValue:g.getFieldValue,groupData:P,groups:O,hasAnyEditingRow:g.hasAnyEditingRow,icons:m,isTreeData:g.isTreeData,key:P.value==null?""+E:P.value,level:0,localization:b.editRow,onBulkEditRowChanged:g.onBulkEditRowChanged,onCellEditFinished:g.onCellEditFinished,onCellEditStarted:g.onCellEditStarted,onEditingApproved:g.onEditingApproved,onEditingCanceled:g.onEditingCanceled,onGroupExpandChanged:g.onGroupExpandChanged,onRowClick:g.onRowClick,onGroupSelected:g.onGroupSelected,onRowSelected:g.onRowSelected,onToggleDetailPanel:g.onToggleDetailPanel,onTreeExpandChanged:g.onTreeExpandChanged,path:[E+g.pageSize*g.currentPage],scrollWidth:g.scrollWidth,treeDataMaxLevel:g.treeDataMaxLevel})})}function S(){return g.showAddRow&&s.default.createElement(g.components.EditRow,{columns:y,components:g.components,data:g.initialFormData,detailPanel:g.detailPanel,errorState:g.errorState,getFieldValue:g.getFieldValue,icons:m,isTreeData:g.isTreeData,key:"key-add-row",localization:b.editRow,mode:"add",onEditingApproved:g.onEditingApproved,onEditingCanceled:g.onEditingCanceled,scrollWidth:g.scrollWidth})}var k=g.renderData,C=g.columns.filter(function(O){return O.tableData.groupOrder>-1}).sort(function(O,D){return O.tableData.groupOrder-D.tableData.groupOrder}),T=0;v.paging&&g.pageSize>k.length&&(T=g.pageSize-k.length);var M=s.default.useMemo(function(){return g.renderSummaryRow?function(O){return g.renderSummaryRow(f(f({},O),{},{data:g.data,currentData:g.currentData}))}:void 0},[g.data]);return s.default.createElement(r.default,{ref:g.forwardedRef},v.filtering&&s.default.createElement(g.components.FilterRow,{columns:y,icons:m,hasActions:g.actions.some(function(O){return O.position==="row"||typeof O=="function"}),onFilterChanged:g.onFilterChanged,localization:b.filterRow,hasDetailPanel:!!g.detailPanel,isTreeData:g.isTreeData,scrollWidth:g.scrollWidth,hideFilterIcons:g.options.hideFilterIcons}),v.addRowPosition==="first"&&S(),C.length>0?w(C,k):_(k),v.addRowPosition==="last"&&S(),s.default.createElement(g.components.SummaryRow,{columns:y,renderSummaryRow:M,rowProps:g}),x(T,k))}p.defaultProps={actions:[],currentPage:0,data:[],pageSize:5,renderData:[],selection:!1},p.propTypes={actions:u.default.array,bulkEditChangedRows:u.default.object,bulkEditOpen:u.default.bool,cellEditable:u.default.object,columns:u.default.array.isRequired,components:u.default.object.isRequired,currentPage:u.default.number,data:u.default.array,detailPanel:u.default.oneOfType([u.default.func,u.default.arrayOf(u.default.oneOfType([u.default.object,u.default.func]))]),errorState:u.default.oneOfType([u.default.object,u.default.bool]),forwardedRef:u.default.oneOfType([u.default.func,u.default.object]),getFieldValue:u.default.func.isRequired,hasAnyEditingRow:u.default.bool,hasDetailPanel:u.default.bool.isRequired,initialFormData:u.default.object,isTreeData:u.default.bool.isRequired,onBulkEditRowChanged:u.default.func,onCellEditFinished:u.default.func,onCellEditStarted:u.default.func,onEditingApproved:u.default.func,onEditingCanceled:u.default.func,onFilterChanged:u.default.func,onGroupExpandChanged:u.default.func,onRowClick:u.default.func,onRowDoubleClick:u.default.func,onGroupSelected:u.default.func,onRowSelected:u.default.func,onToggleDetailPanel:u.default.func.isRequired,onTreeExpandChanged:u.default.func.isRequired,pageSize:u.default.number,renderData:u.default.array,renderSummaryRow:u.default.func,scrollWidth:u.default.number.isRequired,selection:u.default.bool.isRequired,showAddRow:u.default.bool,treeDataMaxLevel:u.default.number};var h=s.default.forwardRef(function(b,v){return s.default.createElement(p,(0,n.default)({},b,{forwardedRef:v}))});e.default=h}(k_)),k_}var E_={},R_={exports:{}},_D;function Rb(){return _D||(_D=1,function(e){function t(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(R_)),R_.exports}var L_={exports:{}},TD;function Lb(){return TD||(TD=1,function(e){var t=EB();function n(l,i){for(var o=0;o1?"s":"")+" required, but only "+t.length+" present")}function wn(e){xn(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||us(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function BS(e,t){xn(2,arguments);var n=wn(e),r=Pr(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function $b(e,t){xn(2,arguments);var n=wn(e).getTime(),r=Pr(t);return new Date(n+r)}function ghe(e,t){xn(2,arguments);var n=Pr(t);return $b(e,n*1e3)}var vhe=6e4;function yhe(e,t){xn(2,arguments);var n=Pr(t);return $b(e,n*vhe)}var bhe=36e5;function xhe(e,t){xn(2,arguments);var n=Pr(t);return $b(e,n*bhe)}function whe(e,t){xn(2,arguments);var n=Pr(t),r=n*7;return BS(e,r)}function wv(e,t){xn(2,arguments);var n=wn(e),r=Pr(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var l=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var o=i.getDate();return l>=o?i:(n.setFullYear(i.getFullYear(),i.getMonth(),l),n)}function OD(e,t){xn(2,arguments);var n=Pr(t);return wv(e,n*12)}function _he(e,t){xn(2,arguments);var n=wn(e),r=wn(t);return n.getFullYear()-r.getFullYear()}function Xh(e,t){xn(2,arguments);var n=wn(e),r=wn(t),l=n.getTime()-r.getTime();return l<0?-1:l>0?1:l}function The(e,t){xn(2,arguments);var n=wn(e),r=wn(t),l=Xh(n,r),i=Math.abs(_he(n,r));n.setFullYear(1584),r.setFullYear(1584);var o=Xh(n,r)===-l,a=l*(i-Number(o));return a===0?0:a}function She(e,t){xn(2,arguments);var n=wn(e),r=wn(t),l=n.getFullYear()-r.getFullYear(),i=n.getMonth()-r.getMonth();return l*12+i}function WS(e){xn(1,arguments);var t=wn(e);return t.setHours(23,59,59,999),t}function qS(e){xn(1,arguments);var t=wn(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function khe(e){xn(1,arguments);var t=wn(e);return WS(t).getTime()===qS(t).getTime()}function KB(e,t){xn(2,arguments);var n=wn(e),r=wn(t),l=Xh(n,r),i=Math.abs(She(n,r)),o;if(i<1)o=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-l*i);var a=Xh(n,r)===-l;khe(wn(e))&&i===1&&Xh(e,r)===1&&(a=!1),o=l*(i-Number(a))}return o===0?0:o}var AD={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},Che="trunc";function gg(e){return e?AD[e]:AD[Che]}function Mhe(e,t,n){xn(2,arguments);var r=KB(e,t)/3;return gg(void 0)(r)}function Py(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function tf(e){xn(1,arguments);var t=wn(e);return t.setHours(0,0,0,0),t}var Phe=864e5;function Ohe(e,t){xn(2,arguments);var n=tf(e),r=tf(t),l=n.getTime()-Py(n),i=r.getTime()-Py(r);return Math.round((l-i)/Phe)}function DD(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function ZB(e,t){xn(2,arguments);var n=wn(e),r=wn(t),l=DD(n,r),i=Math.abs(Ohe(n,r));n.setDate(n.getDate()-l*i);var o=+(DD(n,r)===-l),a=l*(i-o);return a===0?0:a}function Ahe(e,t,n){xn(2,arguments);var r=ZB(e,t)/7;return gg(void 0)(r)}var Nb=6e4,Fb=36e5,Dhe=1e3;function jb(e,t){return xn(2,arguments),wn(e).getTime()-wn(t).getTime()}function Ehe(e,t,n){xn(2,arguments);var r=jb(e,t)/Fb;return gg(void 0)(r)}function Rhe(e,t,n){xn(2,arguments);var r=jb(e,t)/Nb;return gg(void 0)(r)}function Lhe(e,t,n){xn(2,arguments);var r=jb(e,t)/1e3;return gg(void 0)(r)}function Ihe(e,t){var n;xn(1,arguments);var r=e||{},l=wn(r.start),i=wn(r.end),o=i.getTime();if(!(l.getTime()<=o))throw new RangeError("Invalid interval");var a=[],s=l;s.setHours(0,0,0,0);var u=Number((n=void 0)!==null&&n!==void 0?n:1);if(u<1||isNaN(u))throw new RangeError("`options.step` must be a number greater than 1");for(;s.getTime()<=o;)a.push(wn(s)),s.setDate(s.getDate()+u),s.setHours(0,0,0,0);return a}var $he={};function gu(){return $he}function z_(e,t){var n,r,l,i,o,a,s,u;xn(1,arguments);var c=gu(),d=Pr((n=(r=(l=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(a=o.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&l!==void 0?l:c.weekStartsOn)!==null&&r!==void 0?r:(s=c.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=wn(e),p=f.getDay(),h=(p=l.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function zhe(e){xn(1,arguments);var t=eW(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=nf(n);return r}var Bhe=6048e5;function tW(e){xn(1,arguments);var t=wn(e),n=nf(t).getTime()-zhe(t).getTime();return Math.round(n/Bhe)+1}function sc(e,t){var n,r,l,i,o,a,s,u;xn(1,arguments);var c=gu(),d=Pr((n=(r=(l=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(a=o.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&l!==void 0?l:c.weekStartsOn)!==null&&r!==void 0?r:(s=c.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=wn(e),p=f.getUTCDay(),h=(p=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(d+1,0,p),h.setUTCHours(0,0,0,0);var g=sc(h,t),b=new Date(0);b.setUTCFullYear(d,0,p),b.setUTCHours(0,0,0,0);var v=sc(b,t);return c.getTime()>=g.getTime()?d+1:c.getTime()>=v.getTime()?d:d-1}function Whe(e,t){var n,r,l,i,o,a,s,u;xn(1,arguments);var c=gu(),d=Pr((n=(r=(l=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(a=o.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&l!==void 0?l:c.firstWeekContainsDate)!==null&&r!==void 0?r:(s=c.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),f=k5(e,t),p=new Date(0);p.setUTCFullYear(f,0,d),p.setUTCHours(0,0,0,0);var h=sc(p,t);return h}var qhe=6048e5;function nW(e,t){xn(1,arguments);var n=wn(e),r=sc(n,t).getTime()-Whe(n,t).getTime();return Math.round(r/qhe)+1}function ir(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?r:1-r;return ir(n==="yy"?l%100:l,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):ir(r+1,2)},d:function(t,n){return ir(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return ir(t.getUTCHours()%12||12,n.length)},H:function(t,n){return ir(t.getUTCHours(),n.length)},m:function(t,n){return ir(t.getUTCMinutes(),n.length)},s:function(t,n){return ir(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,l=t.getUTCMilliseconds(),i=Math.floor(l*Math.pow(10,r-3));return ir(i,n.length)}},Zc={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Uhe={G:function(t,n,r){var l=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(l,{width:"abbreviated"});case"GGGGG":return r.era(l,{width:"narrow"});case"GGGG":default:return r.era(l,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var l=t.getUTCFullYear(),i=l>0?l:1-l;return r.ordinalNumber(i,{unit:"year"})}return Os.y(t,n)},Y:function(t,n,r,l){var i=k5(t,l),o=i>0?i:1-i;if(n==="YY"){var a=o%100;return ir(a,2)}return n==="Yo"?r.ordinalNumber(o,{unit:"year"}):ir(o,n.length)},R:function(t,n){var r=eW(t);return ir(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return ir(r,n.length)},Q:function(t,n,r){var l=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(l);case"QQ":return ir(l,2);case"Qo":return r.ordinalNumber(l,{unit:"quarter"});case"QQQ":return r.quarter(l,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(l,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(l,{width:"wide",context:"formatting"})}},q:function(t,n,r){var l=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(l);case"qq":return ir(l,2);case"qo":return r.ordinalNumber(l,{unit:"quarter"});case"qqq":return r.quarter(l,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(l,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(l,{width:"wide",context:"standalone"})}},M:function(t,n,r){var l=t.getUTCMonth();switch(n){case"M":case"MM":return Os.M(t,n);case"Mo":return r.ordinalNumber(l+1,{unit:"month"});case"MMM":return r.month(l,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(l,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(l,{width:"wide",context:"formatting"})}},L:function(t,n,r){var l=t.getUTCMonth();switch(n){case"L":return String(l+1);case"LL":return ir(l+1,2);case"Lo":return r.ordinalNumber(l+1,{unit:"month"});case"LLL":return r.month(l,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(l,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(l,{width:"wide",context:"standalone"})}},w:function(t,n,r,l){var i=nW(t,l);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):ir(i,n.length)},I:function(t,n,r){var l=tW(t);return n==="Io"?r.ordinalNumber(l,{unit:"week"}):ir(l,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):Os.d(t,n)},D:function(t,n,r){var l=jhe(t);return n==="Do"?r.ordinalNumber(l,{unit:"dayOfYear"}):ir(l,n.length)},E:function(t,n,r){var l=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(l,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(l,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(l,{width:"short",context:"formatting"});case"EEEE":default:return r.day(l,{width:"wide",context:"formatting"})}},e:function(t,n,r,l){var i=t.getUTCDay(),o=(i-l.weekStartsOn+8)%7||7;switch(n){case"e":return String(o);case"ee":return ir(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,r,l){var i=t.getUTCDay(),o=(i-l.weekStartsOn+8)%7||7;switch(n){case"c":return String(o);case"cc":return ir(o,n.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,r){var l=t.getUTCDay(),i=l===0?7:l;switch(n){case"i":return String(i);case"ii":return ir(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(l,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(l,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(l,{width:"short",context:"formatting"});case"iiii":default:return r.day(l,{width:"wide",context:"formatting"})}},a:function(t,n,r){var l=t.getUTCHours(),i=l/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,r){var l=t.getUTCHours(),i;switch(l===12?i=Zc.noon:l===0?i=Zc.midnight:i=l/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,r){var l=t.getUTCHours(),i;switch(l>=17?i=Zc.evening:l>=12?i=Zc.afternoon:l>=4?i=Zc.morning:i=Zc.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var l=t.getUTCHours()%12;return l===0&&(l=12),r.ordinalNumber(l,{unit:"hour"})}return Os.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Os.H(t,n)},K:function(t,n,r){var l=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(l,{unit:"hour"}):ir(l,n.length)},k:function(t,n,r){var l=t.getUTCHours();return l===0&&(l=24),n==="ko"?r.ordinalNumber(l,{unit:"hour"}):ir(l,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Os.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Os.s(t,n)},S:function(t,n){return Os.S(t,n)},X:function(t,n,r,l){var i=l._originalDate||t,o=i.getTimezoneOffset();if(o===0)return"Z";switch(n){case"X":return RD(o);case"XXXX":case"XX":return Eu(o);case"XXXXX":case"XXX":default:return Eu(o,":")}},x:function(t,n,r,l){var i=l._originalDate||t,o=i.getTimezoneOffset();switch(n){case"x":return RD(o);case"xxxx":case"xx":return Eu(o);case"xxxxx":case"xxx":default:return Eu(o,":")}},O:function(t,n,r,l){var i=l._originalDate||t,o=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+ED(o,":");case"OOOO":default:return"GMT"+Eu(o,":")}},z:function(t,n,r,l){var i=l._originalDate||t,o=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+ED(o,":");case"zzzz":default:return"GMT"+Eu(o,":")}},t:function(t,n,r,l){var i=l._originalDate||t,o=Math.floor(i.getTime()/1e3);return ir(o,n.length)},T:function(t,n,r,l){var i=l._originalDate||t,o=i.getTime();return ir(o,n.length)}};function ED(e,t){var n=e>0?"-":"+",r=Math.abs(e),l=Math.floor(r/60),i=r%60;if(i===0)return n+String(l);var o=t;return n+String(l)+o+ir(i,2)}function RD(e,t){if(e%60===0){var n=e>0?"-":"+";return n+ir(Math.abs(e)/60,2)}return Eu(e,t)}function Eu(e,t){var n=t||"",r=e>0?"-":"+",l=Math.abs(e),i=ir(Math.floor(l/60),2),o=ir(l%60,2);return r+i+n+o}var LD=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},rW=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},Hhe=function(t,n){var r=t.match(/(P+)(p+)?/)||[],l=r[1],i=r[2];if(!i)return LD(t,n);var o;switch(l){case"P":o=n.dateTime({width:"short"});break;case"PP":o=n.dateTime({width:"medium"});break;case"PPP":o=n.dateTime({width:"long"});break;case"PPPP":default:o=n.dateTime({width:"full"});break}return o.replace("{{date}}",LD(l,n)).replace("{{time}}",rW(i,n))},US={p:rW,P:Hhe},Vhe=["D","DD"],Ghe=["YY","YYYY"];function aW(e){return Vhe.indexOf(e)!==-1}function oW(e){return Ghe.indexOf(e)!==-1}function Oy(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Yhe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Xhe=function(t,n,r){var l,i=Yhe[t];return typeof i=="string"?l=i:n===1?l=i.one:l=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+l:l+" ago":l};function W_(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var Khe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Zhe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Qhe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Jhe={date:W_({formats:Khe,defaultWidth:"full"}),time:W_({formats:Zhe,defaultWidth:"full"}),dateTime:W_({formats:Qhe,defaultWidth:"full"})},eme={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},tme=function(t,n,r,l){return eme[t]};function Lp(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",l;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):i;l=e.formattingValues[o]||e.formattingValues[i]}else{var a=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;l=e.values[s]||e.values[a]}var u=e.argumentCallback?e.argumentCallback(t):t;return l[u]}}var nme={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},rme={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ame={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ome={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ime={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},lme={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},sme=function(t,n){var r=Number(t),l=r%100;if(l>20||l<10)switch(l%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},ume={ordinalNumber:sme,era:Lp({values:nme,defaultWidth:"wide"}),quarter:Lp({values:rme,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Lp({values:ame,defaultWidth:"wide"}),day:Lp({values:ome,defaultWidth:"wide"}),dayPeriod:Lp({values:ime,defaultWidth:"wide",formattingValues:lme,defaultFormattingWidth:"wide"})};function Ip(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,l=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(l);if(!i)return null;var o=i[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(a)?dme(a,function(d){return d.test(o)}):cme(a,function(d){return d.test(o)}),u;u=e.valueCallback?e.valueCallback(s):s,u=n.valueCallback?n.valueCallback(u):u;var c=t.slice(o.length);return{value:u,rest:c}}}function cme(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function dme(e,t){for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var l=r[0],i=t.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;var a=t.slice(l.length);return{value:o,rest:a}}}var pme=/^(\d+)(th|st|nd|rd)?/i,hme=/\d+/i,mme={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},gme={any:[/^b/i,/^(a|c)/i]},vme={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},yme={any:[/1/i,/2/i,/3/i,/4/i]},bme={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},xme={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},wme={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},_me={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Tme={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Sme={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},kme={ordinalNumber:fme({matchPattern:pme,parsePattern:hme,valueCallback:function(t){return parseInt(t,10)}}),era:Ip({matchPatterns:mme,defaultMatchWidth:"wide",parsePatterns:gme,defaultParseWidth:"any"}),quarter:Ip({matchPatterns:vme,defaultMatchWidth:"wide",parsePatterns:yme,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Ip({matchPatterns:bme,defaultMatchWidth:"wide",parsePatterns:xme,defaultParseWidth:"any"}),day:Ip({matchPatterns:wme,defaultMatchWidth:"wide",parsePatterns:_me,defaultParseWidth:"any"}),dayPeriod:Ip({matchPatterns:Tme,defaultMatchWidth:"any",parsePatterns:Sme,defaultParseWidth:"any"})},zb={code:"en-US",formatDistance:Xhe,formatLong:Jhe,formatRelative:tme,localize:ume,match:kme,options:{weekStartsOn:0,firstWeekContainsDate:1}},Cme=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Mme=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Pme=/^'([^]*?)'?$/,Ome=/''/g,Ame=/[a-zA-Z]/;function iW(e,t,n){var r,l,i,o,a,s,u,c,d,f,p,h,g,b,v,m,y,x;xn(2,arguments);var _=String(t),w=gu(),S=(r=(l=n==null?void 0:n.locale)!==null&&l!==void 0?l:w.locale)!==null&&r!==void 0?r:zb,k=Pr((i=(o=(a=(s=n==null?void 0:n.firstWeekContainsDate)!==null&&s!==void 0?s:n==null||(u=n.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&a!==void 0?a:w.firstWeekContainsDate)!==null&&o!==void 0?o:(d=w.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(k>=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=Pr((p=(h=(g=(b=n==null?void 0:n.weekStartsOn)!==null&&b!==void 0?b:n==null||(v=n.locale)===null||v===void 0||(m=v.options)===null||m===void 0?void 0:m.weekStartsOn)!==null&&g!==void 0?g:w.weekStartsOn)!==null&&h!==void 0?h:(y=w.locale)===null||y===void 0||(x=y.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&p!==void 0?p:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!S.localize)throw new RangeError("locale must contain localize property");if(!S.formatLong)throw new RangeError("locale must contain formatLong property");var T=wn(e);if(!QB(T))throw new RangeError("Invalid time value");var M=Py(T),O=JB(T,M),D={firstWeekContainsDate:k,weekStartsOn:C,locale:S,_originalDate:T},P=_.match(Mme).map(function(E){var I=E[0];if(I==="p"||I==="P"){var A=US[I];return A(E,S.formatLong)}return E}).join("").match(Cme).map(function(E){if(E==="''")return"'";var I=E[0];if(I==="'")return Dme(E);var A=Uhe[I];if(A)return!(n!=null&&n.useAdditionalWeekYearTokens)&&oW(E)&&Oy(E,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&aW(E)&&Oy(E,t,String(e)),A(O,E,S.localize,D);if(I.match(Ame))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");return E}).join("");return P}function Dme(e){var t=e.match(Pme);return t?t[1].replace(Ome,"'"):e}const Eme=Object.freeze(Object.defineProperty({__proto__:null,default:iW},Symbol.toStringTag,{value:"Module"}));function Rme(e){xn(1,arguments);var t=wn(e),n=t.getDate();return n}function Lme(e){xn(1,arguments);var t=wn(e),n=t.getDay();return n}function lW(e){xn(1,arguments);var t=wn(e),n=t.getFullYear(),r=t.getMonth(),l=new Date(0);return l.setFullYear(n,r+1,0),l.setHours(0,0,0,0),l.getDate()}function Ime(e){xn(1,arguments);var t=wn(e),n=t.getHours();return n}function $me(e){xn(1,arguments);var t=wn(e),n=t.getMinutes();return n}function Nme(e){xn(1,arguments);var t=wn(e),n=t.getMonth();return n}function Fme(e){xn(1,arguments);var t=wn(e),n=t.getSeconds();return n}function jme(e){return xn(1,arguments),wn(e).getFullYear()}function k0(e,t){xn(2,arguments);var n=wn(e),r=wn(t);return n.getTime()>r.getTime()}function Qc(e,t){xn(2,arguments);var n=wn(e),r=wn(t);return n.getTime()e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,a;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return i=u.done,u},e:function(u){o=!0,a=u},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}}}function Vme(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function vr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yy(e,t)}function Ay(e){return Ay=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ay(e)}function Gme(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Yme(e,t){if(t&&(us(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mn(e)}function yr(e){var t=Gme();return function(){var r=Ay(e),l;if(t){var i=Ay(this).constructor;l=Reflect.construct(r,arguments,i)}else l=r.apply(this,arguments);return Yme(this,l)}}function fr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xme(e,t){if(us(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(us(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sW(e){var t=Xme(e,"string");return us(t)==="symbol"?t:String(t)}function Kme(e,t){for(var n=0;n0,r=n?t:1-t,l;if(r<=50)l=e||100;else{var i=r+50,o=Math.floor(i/100)*100,a=e>=i%100;l=e+o-(a?100:0)}return n?l:1-l}function fW(e){return e%400===0||e%4===0&&e%100!==0}var tge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o0}},{key:"set",value:function(l,i,o){var a=l.getUTCFullYear();if(o.isTwoDigitYear){var s=dW(o.year,a);return l.setUTCFullYear(s,0,1),l.setUTCHours(0,0,0,0),l}var u=!("era"in i)||i.era===1?o.year:1-o.year;return l.setUTCFullYear(u,0,1),l.setUTCHours(0,0,0,0),l}}]),n}(Cr),nge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o0}},{key:"set",value:function(l,i,o,a){var s=k5(l,a);if(o.isTwoDigitYear){var u=dW(o.year,s);return l.setUTCFullYear(u,0,a.firstWeekContainsDate),l.setUTCHours(0,0,0,0),sc(l,a)}var c=!("era"in i)||i.era===1?o.year:1-o.year;return l.setUTCFullYear(c,0,a.firstWeekContainsDate),l.setUTCHours(0,0,0,0),sc(l,a)}}]),n}(Cr),rge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=4}},{key:"set",value:function(l,i,o){return l.setUTCMonth((o-1)*3,1),l.setUTCHours(0,0,0,0),l}}]),n}(Cr),ige=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=4}},{key:"set",value:function(l,i,o){return l.setUTCMonth((o-1)*3,1),l.setUTCHours(0,0,0,0),l}}]),n}(Cr),lge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=11}},{key:"set",value:function(l,i,o){return l.setUTCMonth(o,1),l.setUTCHours(0,0,0,0),l}}]),n}(Cr),sge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=11}},{key:"set",value:function(l,i,o){return l.setUTCMonth(o,1),l.setUTCHours(0,0,0,0),l}}]),n}(Cr);function uge(e,t,n){xn(2,arguments);var r=wn(e),l=Pr(t),i=nW(r,n)-l;return r.setUTCDate(r.getUTCDate()-i*7),r}var cge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=53}},{key:"set",value:function(l,i,o,a){return sc(uge(l,o,a),a)}}]),n}(Cr);function dge(e,t){xn(2,arguments);var n=wn(e),r=Pr(t),l=tW(n)-r;return n.setUTCDate(n.getUTCDate()-l*7),n}var fge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=53}},{key:"set",value:function(l,i,o){return nf(dge(l,o))}}]),n}(Cr),pge=[31,28,31,30,31,30,31,31,30,31,30,31],hge=[31,29,31,30,31,30,31,31,30,31,30,31],mge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=hge[s]:i>=1&&i<=pge[s]}},{key:"set",value:function(l,i,o){return l.setUTCDate(o),l.setUTCHours(0,0,0,0),l}}]),n}(Cr),gge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(l,i,o){return l.setUTCMonth(0,o),l.setUTCHours(0,0,0,0),l}}]),n}(Cr);function M5(e,t,n){var r,l,i,o,a,s,u,c;xn(2,arguments);var d=gu(),f=Pr((r=(l=(i=(o=n==null?void 0:n.weekStartsOn)!==null&&o!==void 0?o:n==null||(a=n.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&l!==void 0?l:(u=d.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=wn(e),h=Pr(t),g=p.getUTCDay(),b=h%7,v=(b+7)%7,m=(v=0&&i<=6}},{key:"set",value:function(l,i,o,a){return l=M5(l,o,a),l.setUTCHours(0,0,0,0),l}}]),n}(Cr),yge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=6}},{key:"set",value:function(l,i,o,a){return l=M5(l,o,a),l.setUTCHours(0,0,0,0),l}}]),n}(Cr),bge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=6}},{key:"set",value:function(l,i,o,a){return l=M5(l,o,a),l.setUTCHours(0,0,0,0),l}}]),n}(Cr);function xge(e,t){xn(2,arguments);var n=Pr(t);n%7===0&&(n=n-7);var r=1,l=wn(e),i=l.getUTCDay(),o=n%7,a=(o+7)%7,s=(a=1&&i<=7}},{key:"set",value:function(l,i,o){return l=xge(l,o),l.setUTCHours(0,0,0,0),l}}]),n}(Cr),_ge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=12}},{key:"set",value:function(l,i,o){var a=l.getUTCHours()>=12;return a&&o<12?l.setUTCHours(o+12,0,0,0):!a&&o===12?l.setUTCHours(0,0,0,0):l.setUTCHours(o,0,0,0),l}}]),n}(Cr),Cge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=23}},{key:"set",value:function(l,i,o){return l.setUTCHours(o,0,0,0),l}}]),n}(Cr),Mge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=11}},{key:"set",value:function(l,i,o){var a=l.getUTCHours()>=12;return a&&o<12?l.setUTCHours(o+12,0,0,0):l.setUTCHours(o,0,0,0),l}}]),n}(Cr),Pge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&i<=24}},{key:"set",value:function(l,i,o){var a=o<=24?o%24:o;return l.setUTCHours(a,0,0,0),l}}]),n}(Cr),Oge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=59}},{key:"set",value:function(l,i,o){return l.setUTCMinutes(o,0,0),l}}]),n}(Cr),Age=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=0&&i<=59}},{key:"set",value:function(l,i,o){return l.setUTCSeconds(o,0),l}}]),n}(Cr),Dge=function(e){vr(n,e);var t=yr(n);function n(){var r;fr(this,n);for(var l=arguments.length,i=new Array(l),o=0;o=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=Pr((h=(g=(b=(v=r==null?void 0:r.weekStartsOn)!==null&&v!==void 0?v:r==null||(m=r.locale)===null||m===void 0||(y=m.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&b!==void 0?b:k.weekStartsOn)!==null&&g!==void 0?g:(x=k.locale)===null||x===void 0||(_=x.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&h!==void 0?h:0);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(S==="")return w===""?wn(n):new Date(NaN);var O={firstWeekContainsDate:T,weekStartsOn:M,locale:C},D=[new Jme],P=S.match(Fge).map(function(H){var G=H[0];if(G in US){var te=US[G];return te(H,C.formatLong)}return H}).join("").match(Nge),E=[],I=ND(P),A;try{var F=function(){var G=A.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&oW(G)&&Oy(G,S,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&aW(G)&&Oy(G,S,e);var te=G[0],ee=$ge[te];if(ee){var U=ee.incompatibleTokens;if(Array.isArray(U)){var Q=E.find(function(X){return U.includes(X.token)||X.token===te});if(Q)throw new RangeError("The format string mustn't contain `".concat(Q.fullToken,"` and `").concat(G,"` at the same time"))}else if(ee.incompatibleTokens==="*"&&E.length>0)throw new RangeError("The format string mustn't contain `".concat(G,"` and any other token at the same time"));E.push({token:te,fullToken:G});var V=ee.run(w,G,C.match,O);if(!V)return{v:new Date(NaN)};D.push(V.setter),w=V.rest}else{if(te.match(Wge))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");if(G==="''"?G="'":te==="'"&&(G=Uge(G)),w.indexOf(G)===0)w=w.slice(G.length);else return{v:new Date(NaN)}}};for(I.s();!(A=I.n()).done;){var j=F();if(us(j)==="object")return j.v}}catch(H){I.e(H)}finally{I.f()}if(w.length>0&&Bge.test(w))return new Date(NaN);var B=D.map(function(H){return H.priority}).sort(function(H,G){return G-H}).filter(function(H,G,te){return te.indexOf(H)===G}).map(function(H){return D.filter(function(G){return G.priority===H}).sort(function(G,te){return te.subPriority-G.subPriority})}).map(function(H){return H[0]}),z=wn(n);if(isNaN(z.getTime()))return new Date(NaN);var N=JB(z,Py(z)),R={},q=ND(B),Y;try{for(q.s();!(Y=q.n()).done;){var L=Y.value;if(!L.validate(N,O))return new Date(NaN);var W=L.set(N,R,O);Array.isArray(W)?(N=W[0],Vme(R,W[1])):N=W}}catch(H){q.e(H)}finally{q.f()}return N}function Uge(e){return e.match(jge)[1].replace(zge,"'")}function Hge(e,t){xn(2,arguments);var n=wn(e),r=Pr(t);return n.setDate(r),n}function Vge(e,t){xn(2,arguments);var n=wn(e),r=Pr(t);return n.setHours(r),n}function Gge(e,t){xn(2,arguments);var n=wn(e),r=Pr(t);return n.setMinutes(r),n}function Yge(e,t){xn(2,arguments);var n=wn(e),r=Pr(t),l=n.getFullYear(),i=n.getDate(),o=new Date(0);o.setFullYear(l,r,15),o.setHours(0,0,0,0);var a=lW(o);return n.setMonth(r,Math.min(i,a)),n}function Xge(e,t){xn(2,arguments);var n=wn(e),r=Pr(t);return n.setSeconds(r),n}function Kge(e,t){xn(2,arguments);var n=wn(e),r=Pr(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function C0(e){xn(1,arguments);var t=wn(e);return t.setDate(1),t.setHours(0,0,0,0),t}function q_(e,t){var n,r,l,i,o,a,s,u;xn(1,arguments);var c=gu(),d=Pr((n=(r=(l=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(a=o.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&l!==void 0?l:c.weekStartsOn)!==null&&r!==void 0?r:(s=c.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=wn(e),p=f.getDay(),h=(p2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],P0.timeZoneDelimiter.test(t.date)&&(t.date=e.split(P0.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var l=P0.timezone.exec(r);l?(t.time=r.replace(l[1],""),t.timezone=l[1]):t.time=r}return t}function t0e(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var l=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?l:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function n0e(e,t){if(t===null)return new Date(NaN);var n=e.match(Zge);if(!n)return new Date(NaN);var r=!!n[4],l=$p(n[1]),i=$p(n[2])-1,o=$p(n[3]),a=$p(n[4]),s=$p(n[5])-1;if(r)return u0e(t,a,s)?o0e(t,a,s):new Date(NaN);var u=new Date(0);return!l0e(t,i,o)||!s0e(t,l)?new Date(NaN):(u.setUTCFullYear(t,i,Math.max(l,o)),u)}function $p(e){return e?parseInt(e):1}function r0e(e){var t=e.match(Qge);if(!t)return NaN;var n=U_(t[1]),r=U_(t[2]),l=U_(t[3]);return c0e(n,r,l)?n*Fb+r*Nb+l*1e3:NaN}function U_(e){return e&&parseFloat(e.replace(",","."))||0}function a0e(e){if(e==="Z")return 0;var t=e.match(Jge);if(!t)return 0;var n=t[1]==="+"?-1:1,r=parseInt(t[2]),l=t[3]&&parseInt(t[3])||0;return d0e(r,l)?n*(r*Fb+l*Nb):NaN}function o0e(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var l=r.getUTCDay()||7,i=(t-1)*7+n+1-l;return r.setUTCDate(r.getUTCDate()+i),r}var i0e=[31,null,31,30,31,30,31,31,30,31,30,31];function hW(e){return e%400===0||e%4===0&&e%100!==0}function l0e(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(i0e[t]||(hW(e)?29:28))}function s0e(e,t){return t>=1&&t<=(hW(e)?366:365)}function u0e(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function c0e(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function d0e(e,t){return t>=0&&t<=59}const f0e=Object.freeze(Object.defineProperty({__proto__:null,default:pW},Symbol.toStringTag,{value:"Module"}));function p0e(e,t){var n,r;xn(1,arguments);var l=wn(e);if(isNaN(l.getTime()))throw new RangeError("Invalid time value");var i=String((n=t==null?void 0:t.format)!==null&&n!==void 0?n:"extended"),o=String((r=t==null?void 0:t.representation)!==null&&r!==void 0?r:"complete");if(i!=="extended"&&i!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(o!=="date"&&o!=="time"&&o!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var a="",s="",u=i==="extended"?"-":"",c=i==="extended"?":":"";if(o!=="time"){var d=ir(l.getDate(),2),f=ir(l.getMonth()+1,2),p=ir(l.getFullYear(),4);a="".concat(p).concat(u).concat(f).concat(u).concat(d)}if(o!=="date"){var h=l.getTimezoneOffset();if(h!==0){var g=Math.abs(h),b=ir(Math.floor(g/60),2),v=ir(g%60,2),m=h<0?"+":"-";s="".concat(m).concat(b,":").concat(v)}else s="Z";var y=ir(l.getHours(),2),x=ir(l.getMinutes(),2),_=ir(l.getSeconds(),2),w=a===""?"":"T",S=[y,x,_].join(c);a="".concat(a).concat(w).concat(S).concat(s)}return a}function h0e(e,t){xn(2,arguments);var n=wn(e).getTime(),r=wn(t.start).getTime(),l=wn(t.end).getTime();if(!(r<=l))throw new RangeError("Invalid interval");return n>=r&&n<=l}var HS={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(s,u){switch(s){case"P":return u.date({width:"short"});case"PP":return u.date({width:"medium"});case"PPP":return u.date({width:"long"});case"PPPP":default:return u.date({width:"full"})}},r=function(s,u){switch(s){case"p":return u.time({width:"short"});case"pp":return u.time({width:"medium"});case"ppp":return u.time({width:"long"});case"pppp":default:return u.time({width:"full"})}},l=function(s,u){var c=s.match(/(P+)(p+)?/)||[],d=c[1],f=c[2];if(!f)return n(s,u);var p;switch(d){case"P":p=u.dateTime({width:"short"});break;case"PP":p=u.dateTime({width:"medium"});break;case"PPP":p=u.dateTime({width:"long"});break;case"PPPP":default:p=u.dateTime({width:"full"});break}return p.replace("{{date}}",n(d,u)).replace("{{time}}",r(f,u))},i={p:r,P:l},o=i;t.default=o,e.exports=t.default})(HS,HS.exports);var m0e=HS.exports;const mW=dr(m0e),g0e={dayOfMonth:"d",fullDate:"PP",fullDateWithWeekday:"PPPP",fullDateTime:"PP p",fullDateTime12h:"PP hh:mm aaa",fullDateTime24h:"PP HH:mm",fullTime:"p",fullTime12h:"hh:mm aaa",fullTime24h:"HH:mm",hours12h:"hh",hours24h:"HH",keyboardDate:"P",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aaa",keyboardDateTime24h:"P HH:mm",minutes:"mm",month:"LLLL",monthAndDate:"MMMM d",monthAndYear:"LLLL yyyy",monthShort:"MMM",weekday:"EEEE",weekdayShort:"EEE",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",seconds:"ss",shortDate:"MMM d",year:"yyyy"};class v0e{constructor({locale:t,formats:n}={}){this.lib="date-fns",this.is12HourCycleInCurrentLocale=()=>{var r;return this.locale?/a/.test((r=this.locale.formatLong)===null||r===void 0?void 0:r.time()):!0},this.getFormatHelperText=r=>{var l,i;const o=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,a=this.locale||zb;return(i=(l=r.match(o))===null||l===void 0?void 0:l.map(s=>{const u=s[0];if(u==="p"||u==="P"){const c=mW[u];return c(s,a.formatLong,{})}return s}).join("").replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase())!==null&&i!==void 0?i:r},this.parseISO=r=>pW(r),this.toISO=r=>p0e(r,{format:"extended"}),this.getCurrentLocaleCode=()=>{var r;return((r=this.locale)===null||r===void 0?void 0:r.code)||"en-US"},this.addSeconds=(r,l)=>ghe(r,l),this.addMinutes=(r,l)=>yhe(r,l),this.addHours=(r,l)=>xhe(r,l),this.addDays=(r,l)=>BS(r,l),this.addWeeks=(r,l)=>whe(r,l),this.addMonths=(r,l)=>wv(r,l),this.addYears=(r,l)=>OD(r,l),this.isValid=r=>QB(this.date(r)),this.getDiff=(r,l,i)=>{var o;const a=(o=this.date(l))!==null&&o!==void 0?o:r;if(!this.isValid(a))return 0;switch(i){case"years":return The(r,a);case"quarters":return Mhe(r,a);case"months":return KB(r,a);case"weeks":return Ahe(r,a);case"days":return ZB(r,a);case"hours":return Ehe(r,a);case"minutes":return Rhe(r,a);case"seconds":return Lhe(r,a);default:return jb(r,a)}},this.isAfter=(r,l)=>k0(r,l),this.isBefore=(r,l)=>Qc(r,l),this.startOfDay=r=>tf(r),this.endOfDay=r=>WS(r),this.getHours=r=>Ime(r),this.setHours=(r,l)=>Vge(r,l),this.setMinutes=(r,l)=>Gge(r,l),this.getSeconds=r=>Fme(r),this.setSeconds=(r,l)=>Xge(r,l),this.isSameDay=(r,l)=>Bme(r,l),this.isSameMonth=(r,l)=>qme(r,l),this.isSameYear=(r,l)=>Wme(r,l),this.isSameHour=(r,l)=>Ume(r,l),this.startOfYear=r=>M0(r),this.endOfYear=r=>B_(r),this.startOfMonth=r=>C0(r),this.endOfMonth=r=>qS(r),this.startOfWeek=r=>q_(r,{locale:this.locale}),this.endOfWeek=r=>z_(r,{locale:this.locale}),this.getYear=r=>jme(r),this.setYear=(r,l)=>Kge(r,l),this.date=r=>typeof r>"u"?new Date:r===null?null:new Date(r),this.toJsDate=r=>r,this.parse=(r,l)=>r===""?null:qge(r,l,new Date,{locale:this.locale}),this.format=(r,l)=>this.formatByString(r,this.formats[l]),this.formatByString=(r,l)=>iW(r,l,{locale:this.locale}),this.isEqual=(r,l)=>r===null&&l===null?!0:zme(r,l),this.isNull=r=>r===null,this.isAfterDay=(r,l)=>k0(r,WS(l)),this.isBeforeDay=(r,l)=>Qc(r,tf(l)),this.isBeforeYear=(r,l)=>Qc(r,M0(l)),this.isAfterYear=(r,l)=>k0(r,B_(l)),this.isWithinRange=(r,[l,i])=>h0e(r,{start:l,end:i}),this.formatNumber=r=>r,this.getMinutes=r=>$me(r),this.getDate=r=>Rme(r),this.setDate=(r,l)=>Hge(r,l),this.getMonth=r=>Nme(r),this.getDaysInMonth=r=>lW(r),this.setMonth=(r,l)=>Yge(r,l),this.getMeridiemText=r=>r==="am"?"AM":"PM",this.getNextMonth=r=>wv(r,1),this.getPreviousMonth=r=>wv(r,-1),this.getMonthArray=r=>{const i=[M0(r)];for(;i.length<12;){const o=i[i.length-1];i.push(this.getNextMonth(o))}return i},this.mergeDateAndTime=(r,l)=>this.setSeconds(this.setMinutes(this.setHours(r,this.getHours(l)),this.getMinutes(l)),this.getSeconds(l)),this.getWeekdays=()=>{const r=new Date;return Ihe({start:q_(r,{locale:this.locale}),end:z_(r,{locale:this.locale})}).map(l=>this.formatByString(l,"EEEEEE"))},this.getWeekArray=r=>{const l=q_(C0(r),{locale:this.locale}),i=z_(qS(r),{locale:this.locale});let o=0,a=l;const s=[];let u=null;for(;Qc(a,i);){const c=Math.floor(o/7);s[c]=s[c]||[];const d=Lme(a);u!==d&&(u=d,s[c].push(a),o+=1),a=BS(a,1)}return s},this.getYearRange=(r,l)=>{const i=M0(r),o=B_(l),a=[];let s=i;for(;Qc(s,o);)a.push(s),s=OD(s,1);return a},this.locale=t,this.formats=Object.assign({},g0e,n)}isBeforeMonth(t,n){return Qc(t,C0(n))}isAfterMonth(t,n){return k0(t,C0(n))}}const y0e={y:"year",yy:"year",yyy:"year",yyyy:"year",MMMM:"month",MM:"month",DD:"day",d:"day",dd:"day",H:"hour",HH:"hour",h:"hour",hh:"hour",mm:"minute",ss:"second",a:"am-pm",aa:"am-pm",aaa:"am-pm"};class b0e extends v0e{constructor(...t){super(...t),this.formatTokenMap=y0e,this.expandFormat=n=>{const r=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return n.match(r).map(l=>{const i=l[0];if(i==="p"||i==="P"){const o=mW[i],a=this.locale||zb;return o(l,a.formatLong,{})}return l}).join("")},this.getFormatHelperText=n=>this.expandFormat(n).replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase()}}const x0e=Object.freeze(Object.defineProperty({__proto__:null,AdapterDateFns:b0e},Symbol.toStringTag,{value:"Module"})),gW=er(x0e);function vW(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;te.indexOf(n)!==-1):e.indexOf(t)!==-1}const yW=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},bW=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?bW(t.shadowRoot):t:null};function w0e(e){return gn("PrivatePickersMonth",e)}const VS=fn("PrivatePickersMonth",["root","selected"]),_0e=["disabled","onSelect","selected","value","tabIndex","hasFocus","onFocus","onBlur"],T0e=e=>{const{classes:t,selected:n}=e;return vn({root:["root",n&&"selected"]},w0e,t)},S0e=Dt(mr,{name:"PrivatePickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${VS.selected}`]:t.selected}]})(({theme:e})=>Yt({flex:"1 0 33.33%",display:"flex",alignItems:"center",justifyContent:"center",color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:ar(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{pointerEvents:"none",color:e.palette.text.secondary},[`&.${VS.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),FD=()=>{},k0e=e=>{const{disabled:t,onSelect:n,selected:r,value:l,tabIndex:i,hasFocus:o,onFocus:a=FD,onBlur:s=FD}=e,u=tr(e,_0e),c=T0e(e),d=()=>{n(l)},f=ge.useRef(null);return Vo(()=>{if(o){var p;(p=f.current)==null||p.focus()}},[o]),Se.jsx(S0e,Yt({ref:f,component:"button",type:"button",className:c.root,tabIndex:i,onClick:d,onKeyDown:yW(d),color:r?"primary":void 0,variant:r?"h5":"subtitle1",disabled:t,onFocus:p=>a(p,l),onBlur:p=>s(p,l)},u))},fa=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:Yt({},e)}}}}),C0e={previousMonth:"Vorige maand",nextMonth:"Volgende maand",openPreviousView:"open vorige view",openNextView:"open volgende view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"jaarweergave is geopend, schakel over naar kalenderweergave":"kalenderweergave is geopend, switch naar jaarweergave",start:"Start",end:"Einde",cancelButtonLabel:"Annuleren",clearButtonLabel:"Resetten",okButtonLabel:"OK",todayButtonLabel:"Vandaag",clockLabelText:(e,t,n)=>`Selecteer ${e}. ${t===null?"Geen tijd geselecteerd":`Geselecteerde tijd is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} uren`,minutesClockNumberText:e=>`${e} minuten`,secondsClockNumberText:e=>`${e} seconden`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Kies datum, geselecteerde datum is ${t.format(t.date(e),"fullDate")}`:"Kies datum",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Kies tijd, geselecteerde tijd is ${t.format(t.date(e),"fullTime")}`:"Kies tijd",timeTableLabel:"kies tijd",dateTableLabel:"kies datum"},M0e=fa(C0e),P0e={previousMonth:"Poprzedni miesiąc",nextMonth:"Następny miesiąc",openPreviousView:"otwórz poprzedni widok",openNextView:"otwórz następny widok",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"otwarty jest widok roku, przełącz na widok kalendarza":"otwarty jest widok kalendarza, przełącz na widok roku",start:"Początek",end:"Koniec",cancelButtonLabel:"Anuluj",clearButtonLabel:"Wyczyść",okButtonLabel:"Zatwierdź",todayButtonLabel:"Dzisiaj",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"Nie wybrano czasu":`Wybrany czas to ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} godzin`,minutesClockNumberText:e=>`${e} minut`,secondsClockNumberText:e=>`${e} sekund`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Wybierz datę, obecnie wybrana data to ${t.format(t.date(e),"fullDate")}`:"Wybierz datę",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Wybierz czas, obecnie wybrany czas to ${t.format(t.date(e),"fullTime")}`:"Wybierz czas",timeTableLabel:"wybierz czas",dateTableLabel:"wybierz datę"},O0e=fa(P0e),A0e={previousMonth:"Mês anterior",nextMonth:"Próximo mês",openPreviousView:"Abrir próxima seleção",openNextView:"Abrir seleção anterior",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"Seleção de ano está aberta, alternando para seleção de calendário":"Seleção de calendários está aberta, alternando para seleção de ano",start:"Início",end:"Fim",cancelButtonLabel:"Cancelar",clearButtonLabel:"Limpar",okButtonLabel:"OK",todayButtonLabel:"Hoje",datePickerDefaultToolbarTitle:"Selecione a data",dateTimePickerDefaultToolbarTitle:"Selecione data e hora",timePickerDefaultToolbarTitle:"Selecione a hora",dateRangePickerDefaultToolbarTitle:"Selecione o intervalo entre datas",clockLabelText:(e,t,n)=>`Selecione ${e}. ${t===null?"Hora não selecionada":`Selecionado a hora ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} horas`,minutesClockNumberText:e=>`${e} minutos`,secondsClockNumberText:e=>`${e} segundos`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Escolha uma data, data selecionada ${t.format(t.date(e),"fullDate")}`:"Escolha uma data",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Escolha uma hora, hora selecionada ${t.format(t.date(e),"fullTime")}`:"Escolha uma hora",timeTableLabel:"escolha uma hora",dateTableLabel:"escolha uma data"},D0e=fa(A0e),E0e={previousMonth:"Önceki ay",nextMonth:"Sonraki ay",openPreviousView:"sonraki görünüm",openNextView:"önceki görünüm",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"yıl görünümü açık, takvim görünümüne geç":"takvim görünümü açık, yıl görünümüne geç",inputModeToggleButtonAriaLabel:(e,t)=>e?`metin girişi görünümü açık, şuraya gidin: ${t} görünümü`:`${t} görünüm açık, metin girişi görünümüne gidin`,start:"Başlangıç",end:"Bitiş",cancelButtonLabel:"iptal",clearButtonLabel:"Temizle",okButtonLabel:"Tamam",todayButtonLabel:"Bugün",datePickerDefaultToolbarTitle:"Tarih Seç",dateTimePickerDefaultToolbarTitle:"Tarih & Saat seç",timePickerDefaultToolbarTitle:"Saat seç",dateRangePickerDefaultToolbarTitle:"Tarih aralığı seçin",clockLabelText:(e,t,n)=>`${e} seç. ${t===null?"Zaman seçilmedi":`Seçilen zaman: ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} saat`,minutesClockNumberText:e=>`${e} dakika`,secondsClockNumberText:e=>`${e} saniye`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Tarih seçin, seçilen tarih: ${t.format(e,"fullDate")}`:"Tarih seç",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Saat seçin, seçilen saat: ${t.format(e,"fullTime")}`:"Saat seç",timeTableLabel:"saat seç",dateTableLabel:"tarih seç"},R0e=fa(E0e),O0={hours:"Stunden",minutes:"Minuten",seconds:"Sekunden"},jD={calendar:"Kalenderansicht",clock:"Uhransicht"},L0e={previousMonth:"Letzter Monat",nextMonth:"Nächster Monat",openPreviousView:"Letzte Ansicht öffnen",openNextView:"Nächste Ansicht öffnen",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"Jahresansicht ist geöffnet, zur Kalenderansicht wechseln":"Kalenderansicht ist geöffnet, zur Jahresansicht wechseln",inputModeToggleButtonAriaLabel:(e,t)=>e?`Texteingabeansicht ist geöffnet, zur ${jD[t]} wechseln`:`${jD[t]} ist geöffnet, zur Texteingabeansicht wechseln`,start:"Beginn",end:"Ende",cancelButtonLabel:"Abbrechen",clearButtonLabel:"Löschen",okButtonLabel:"OK",todayButtonLabel:"Heute",datePickerDefaultToolbarTitle:"Datum auswählen",dateTimePickerDefaultToolbarTitle:"Datum & Uhrzeit auswählen",timePickerDefaultToolbarTitle:"Uhrzeit auswählen",dateRangePickerDefaultToolbarTitle:"Datumsbereich auswählen",clockLabelText:(e,t,n)=>{var r;return`${(r=O0[e])!=null?r:e} auswählen. ${t===null?"Keine Uhrzeit ausgewählt":`Gewählte Uhrzeit ist ${n.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} ${O0.hours}`,minutesClockNumberText:e=>`${e} ${O0.minutes}`,secondsClockNumberText:e=>`${e} ${O0.seconds}`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Datum auswählen, gewähltes Datum ist ${t.format(t.date(e),"fullDate")}`:"Datum auswählen",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Uhrzeit auswählen, gewählte Uhrzeit ist ${t.format(t.date(e),"fullTime")}`:"Uhrzeit auswählen",timeTableLabel:"Uhrzeit auswählen",dateTableLabel:"Datum auswählen"},I0e=fa(L0e),$0e={hours:"las horas",minutes:"los minutos",seconds:"los segundos"},N0e={previousMonth:"Último mes",nextMonth:"Próximo mes",openPreviousView:"abrir la última vista",openNextView:"abrir la siguiente vista",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"la vista del año está abierta, cambie a la vista de calendario":"la vista de calendario está abierta, cambie a la vista del año",inputModeToggleButtonAriaLabel:(e,t)=>e?`la vista de entrada de texto está abierta, ir a la vista ${t}`:`la vista ${t} está abierta, ir a la vista de entrada de texto`,start:"Empezar",end:"Terminar",cancelButtonLabel:"Cancelar",clearButtonLabel:"Limpiar",okButtonLabel:"OK",todayButtonLabel:"Hoy",datePickerDefaultToolbarTitle:"Seleccionar fecha",dateTimePickerDefaultToolbarTitle:"Seleccionar fecha & hora",timePickerDefaultToolbarTitle:"Seleccionar hora",dateRangePickerDefaultToolbarTitle:"Seleccionar rango de fecha",clockLabelText:(e,t,n)=>`Seleccione ${$0e[e]}. ${t===null?"Sin tiempo seleccionado":`El tiempo seleccionado es ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} horas`,minutesClockNumberText:e=>`${e} minutos`,secondsClockNumberText:e=>`${e} segundos`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Elige la fecha, la fecha elegida es ${t.format(t.date(e),"fullDate")}`:"Elige la fecha",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Elige la hora, la hora elegido es ${t.format(t.date(e),"fullTime")}`:"Elige la hora",timeTableLabel:"elige la fecha",dateTableLabel:"elige la hora"},F0e=fa(N0e),j0e={previousMonth:"ماه گذشته",nextMonth:"ماه آینده",openPreviousView:"نمای قبلی",openNextView:"نمای بعدی",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"نمای سال باز است، رفتن به نمای تقویم":"نمای تقویم باز است، رفتن به نمای سال",inputModeToggleButtonAriaLabel:(e,t)=>e?`نمای ورودی متن باز است، رفتن به نمای ${t}`:`نمای ${t} باز است، رفتن به نمای ورودی متن`,start:"شروع",end:"پایان",cancelButtonLabel:"لغو",clearButtonLabel:"پاک کردن",okButtonLabel:"اوکی",todayButtonLabel:"امروز",datePickerDefaultToolbarTitle:"تاریخ را انتخاب کنید",dateTimePickerDefaultToolbarTitle:"تاریخ و ساعت را انتخاب کنید",timePickerDefaultToolbarTitle:"ساعت را انتخاب کنید",dateRangePickerDefaultToolbarTitle:"محدوده تاریخ را انتخاب کنید",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"هیچ ساعتی انتخاب نشده است":`ساعت انتخاب ${n.format(t,"fullTime")} می باشد`}`,hoursClockNumberText:e=>`${e} ساعت ها`,minutesClockNumberText:e=>`${e} دقیقه ها`,secondsClockNumberText:e=>`${e} ثانیه ها`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`تاریخ را انتخاب کنید، تاریخ انتخاب شده ${t.format(t.date(e),"fullDate")} می باشد`:"تاریخ را انتخاب کنید",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`ساعت را انتخاب کنید، ساعت انتخاب شده ${t.format(t.date(e),"fullTime")} می باشد`:"ساعت را انتخاب کنید",timeTableLabel:"انتخاب تاریخ",dateTableLabel:"انتخاب ساعت"},z0e=fa(j0e),B0e={hours:"tunnit",minutes:"minuutit",seconds:"sekuntit"},zD={calendar:"kalenteri",clock:"kello"},W0e={previousMonth:"Edellinen kuukausi",nextMonth:"Seuraava kuukausi",openPreviousView:"avaa edellinen kuukausi",openNextView:"avaa seuraava kuukausi",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"vuosinäkymä on auki, vaihda kalenterinäkymään":"kalenterinäkymä on auki, vaihda vuosinäkymään",inputModeToggleButtonAriaLabel:(e,t)=>e?`tekstikenttä on auki, mene ${zD[t]}näkymään`:`${zD[t]}näkymä on auki, mene tekstikenttään`,start:"Alku",end:"Loppu",cancelButtonLabel:"Peruuta",clearButtonLabel:"Tyhjennä",okButtonLabel:"OK",todayButtonLabel:"Tänään",datePickerDefaultToolbarTitle:"Valitse päivä",dateTimePickerDefaultToolbarTitle:"Valitse päivä ja aika",timePickerDefaultToolbarTitle:"Valitse aika",dateRangePickerDefaultToolbarTitle:"Valitse aikaväli",clockLabelText:(e,t,n)=>`Valitse ${B0e[e]}. ${t===null?"Ei aikaa valittuna":`Valittu aika on ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} tuntia`,minutesClockNumberText:e=>`${e} minuuttia`,secondsClockNumberText:e=>`${e} sekunttia`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Valitse päivä, valittu päivä on ${t.format(t.date(e),"fullDate")}`:"Valitse päivä",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Valitse aika, valittu aika on ${t.format(t.date(e),"fullTime")}`:"Valitse aika",timeTableLabel:"valitse aika",dateTableLabel:"valitse päivä"},q0e=fa(W0e),U0e={hours:"Hodiny",minutes:"Minuty",seconds:"Sekundy"},BD={calendar:"kalendáře",clock:"času"},H0e={previousMonth:"Další měsíc",nextMonth:"Předchozí month",openPreviousView:"otevřít předchozí zobrazení",openNextView:"otevřít další zobrazení",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"roční zobrazení otevřeno, přepněte do zobrazení kalendáře":"zobrazení kalendáře otevřeno, přepněte do zobrazení roku",inputModeToggleButtonAriaLabel:(e,t)=>e?`Zobrazení pro zadávání textu je otevřené, přepněte do zobrazení ${BD[t]}`:`Zobrazení ${BD[t]} je otevřené, přepněte do zobrazení textového pole`,start:"Začátek",end:"Konec",cancelButtonLabel:"Zrušit",clearButtonLabel:"Vymazat",okButtonLabel:"Potvrdit",todayButtonLabel:"Dnes",datePickerDefaultToolbarTitle:"Vyberte datum",dateTimePickerDefaultToolbarTitle:"Vyberte datum a čas",timePickerDefaultToolbarTitle:"Vyberte čas",dateRangePickerDefaultToolbarTitle:"Vyberete rozmezí dat",clockLabelText:(e,t,n)=>{var r;return`${(r=U0e[e])!=null?r:e} vybrány. ${t===null?"Není vybrán čas":`Vybraný čas je ${n.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} hodin`,minutesClockNumberText:e=>`${e} minut`,secondsClockNumberText:e=>`${e} sekund`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Vybrané datum, vybrané datum je ${t.format(e,"fullDate")}`:"Vyberte datum",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Vybrané čas, vybraný čas je ${t.format(e,"fullTime")}`:"Vyberte čas",timeTableLabel:"vyberte čas",dateTableLabel:"vyberte datum"},V0e=fa(H0e),G0e={hours:"heures",minutes:"minutes",seconds:"secondes"},WD={calendar:"calendrier",clock:"horloge"},Y0e={previousMonth:"Mois précédent",nextMonth:"Mois suivant",openPreviousView:"Ouvrir la vue précédente",openNextView:"Ouvrir la vue suivante",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"La vue année est ouverte, ouvrir la vue calendrier":"La vue calendrier est ouverte, ouvrir la vue année",inputModeToggleButtonAriaLabel:(e,t)=>e?`passer du champ text au ${WD[t]}`:`passer du ${WD[t]} au champ text`,start:"Début",end:"Fin",cancelButtonLabel:"Annuler",clearButtonLabel:"Vider",okButtonLabel:"OK",todayButtonLabel:"Aujourd'hui",clockLabelText:(e,t,n)=>`Choix des ${G0e[e]}. ${t===null?"Aucune heure choisie":`L'heure choisie est ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} heures`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} secondes`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choisir la date, la date sélectionnée est ${t.format(t.date(e),"fullDate")}`:"Choisir la date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choisir l'heure, l'heure sélectionnée est ${t.format(t.date(e),"fullTime")}`:"Choisir l'heure",timeTableLabel:"choix de l'heure",dateTableLabel:"choix de la date"},X0e=fa(Y0e),A0={hours:"Óra",minutes:"Perc",seconds:"Másodperc"},qD={calendar:"naptár",clock:"óra"},K0e={previousMonth:"Előző hónap",nextMonth:"Következő hónap",openPreviousView:"Előző nézet megnyitása",openNextView:"Következő nézet megnyitása",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"az évválasztó már nyitva, váltson a naptárnézetre":"a naptárnézet már nyitva, váltson az évválasztóra",inputModeToggleButtonAriaLabel:(e,t)=>e?`szöveges beviteli nézet aktív, váltás ${qD[t]} nézetre`:`${qD[t]} beviteli nézet aktív, váltás szöveges beviteli nézetre`,start:"Kezdő dátum",end:"Záró dátum",cancelButtonLabel:"Mégse",clearButtonLabel:"Törlés",okButtonLabel:"OK",todayButtonLabel:"Ma",datePickerDefaultToolbarTitle:"Dátum kiválasztása",dateTimePickerDefaultToolbarTitle:"Dátum és idő kiválasztása",timePickerDefaultToolbarTitle:"Idő kiválasztása",dateRangePickerDefaultToolbarTitle:"Dátumhatárok kiválasztása",clockLabelText:(e,t,n)=>{var r;return`${(r=A0[e])!=null?r:e} kiválasztása. ${t===null?"Nincs kiválasztva idő":`A kiválasztott idő ${n.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} ${A0.hours.toLowerCase()}`,minutesClockNumberText:e=>`${e} ${A0.minutes.toLowerCase()}`,secondsClockNumberText:e=>`${e} ${A0.seconds.toLowerCase()}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Válasszon dátumot, a kiválasztott dátum: ${t.format(e,"fullDate")}`:"Válasszon dátumot",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Válasszon időt, a kiválasztott idő: ${t.format(e,"fullTime")}`:"Válasszon időt",timeTableLabel:"válasszon időt",dateTableLabel:"válasszon dátumot"},Z0e=fa(K0e),xW={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",inputModeToggleButtonAriaLabel:(e,t)=>e?`text input view is open, go to ${t} view`:`${t} view is open, go to text input view`,start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerDefaultToolbarTitle:"Select date",dateTimePickerDefaultToolbarTitle:"Select date & time",timePickerDefaultToolbarTitle:"Select time",dateRangePickerDefaultToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose date, selected date is ${t.format(t.date(e),"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose time, selected time is ${t.format(t.date(e),"fullTime")}`:"Choose time",timeTableLabel:"pick time",dateTableLabel:"pick date"},wW=xW,Q0e=fa(xW),J0e={previousMonth:"Forrige måned",nextMonth:"Neste måned",openPreviousView:"åpne forrige visning",openNextView:"åpne neste visning",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"årsvisning er åpen, bytt til kalendervisning":"kalendervisning er åpen, bytt til årsvisning",start:"Start",end:"Slutt",cancelButtonLabel:"Avbryt",clearButtonLabel:"Fjern",okButtonLabel:"OK",todayButtonLabel:"I dag",clockLabelText:(e,t,n)=>`Velg ${e}. ${t===null?"Ingen tid valgt":`Valgt tid er ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} timer`,minutesClockNumberText:e=>`${e} minutter`,secondsClockNumberText:e=>`${e} sekunder`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velg dato, valgt dato er ${t.format(t.date(e),"fullDate")}`:"Velg dato",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velg tid, valgt tid er ${t.format(t.date(e),"fullTime")}`:"Velg tid",timeTableLabel:"velg tid",dateTableLabel:"velg dato"},eve=fa(J0e),tve={previousMonth:"Föregående månad",nextMonth:"Nästa månad",openPreviousView:"öppna föregående vy",openNextView:"öppna nästa vy",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"årsvyn är öppen, byt till kalendervy":"kalendervyn är öppen, byt till årsvy",start:"Start",end:"Slut",cancelButtonLabel:"Avbryt",clearButtonLabel:"Rensa",okButtonLabel:"OK",todayButtonLabel:"Idag",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"Ingen tid vald":`Vald tid är ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} timmar`,minutesClockNumberText:e=>`${e} minuter`,secondsClockNumberText:e=>`${e} sekunder`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Välj datum, valt datum är ${t.format(t.date(e),"fullDate")}`:"Välj datum",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Välj tid, vald tid är ${t.format(t.date(e),"fullTime")}`:"Välj tid",timeTableLabel:"välj tid",dateTableLabel:"välj datum"},nve=fa(tve),rve={hours:"le ore",minutes:"i minuti",seconds:"i secondi"},ave={previousMonth:"Mese precedente",nextMonth:"Mese successivo",openPreviousView:"apri la vista precedente",openNextView:"apri la vista successiva",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"la vista dell'anno è aperta, passare alla vista del calendario":"la vista dell'calendario è aperta, passare alla vista dell'anno",inputModeToggleButtonAriaLabel:(e,t)=>e?`la vista del campo di testo è aperta, passare alla vista ${t}`:`la vista aperta è: ${t}, vai alla vista del campo di testo`,start:"Inizio",end:"Fine",cancelButtonLabel:"Cancellare",clearButtonLabel:"Sgomberare",okButtonLabel:"OK",todayButtonLabel:"Oggi",datePickerDefaultToolbarTitle:"Seleziona data",dateTimePickerDefaultToolbarTitle:"Seleziona data e orario",timePickerDefaultToolbarTitle:"Seleziona orario",dateRangePickerDefaultToolbarTitle:"Seleziona intervallo di date",clockLabelText:(e,t,n)=>`Seleziona ${rve[e]}. ${t===null?"Nessun orario selezionato":`L'ora selezionata è ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} ore`,minutesClockNumberText:e=>`${e} minuti`,secondsClockNumberText:e=>`${e} secondi`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Scegli la data, la data selezionata è ${t.format(t.date(e),"fullDate")}`:"Scegli la data",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Scegli l'ora, l'ora selezionata è ${t.format(t.date(e),"fullTime")}`:"Scegli l'ora",timeTableLabel:"scegli un'ora",dateTableLabel:"scegli una data"},ove=fa(ave),ive={hours:"小时",minutes:"分钟",seconds:"秒"},lve={previousMonth:"上个月",nextMonth:"下个月",openPreviousView:"前一个视图",openNextView:"下一个视图",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"年视图已打开,切换为日历视图":"日历视图已打开,切换为年视图",start:"开始",end:"结束",cancelButtonLabel:"取消",clearButtonLabel:"清除",okButtonLabel:"确认",todayButtonLabel:"今天",clockLabelText:(e,t,n)=>`Select ${ive[e]}. ${t===null?"未选择时间":`已选择${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e}小时`,minutesClockNumberText:e=>`${e}分钟`,secondsClockNumberText:e=>`${e}秒`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`选择日期,已选择${t.format(t.date(e),"fullDate")}`:"选择日期",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`选择时间,已选择${t.format(t.date(e),"fullTime")}`:"选择时间",timeTableLabel:"选择时间",dateTableLabel:"选择日期"},sve=fa(lve),uve={hours:"시간을",minutes:"분을",seconds:"초를"},cve={previousMonth:"이전 달",nextMonth:"다음 달",openPreviousView:"이전 화면 보기",openNextView:"다음 화면 보기",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"연도 선택 화면에서 달력 화면으로 전환하기":"달력 화면에서 연도 선택 화면으로 전환하기",inputModeToggleButtonAriaLabel:(e,t)=>e?`텍스트 입력 화면에서 ${t} 화면으로 전환하기`:`${t} 화면에서 텍스트 입력 화면으로 전환하기`,start:"시작",end:"종료",cancelButtonLabel:"취소",clearButtonLabel:"초기화",okButtonLabel:"확인",todayButtonLabel:"오늘",datePickerDefaultToolbarTitle:"날짜 선택하기",dateTimePickerDefaultToolbarTitle:"날짜 & 시간 선택하기",timePickerDefaultToolbarTitle:"시간 선택하기",dateRangePickerDefaultToolbarTitle:"날짜 범위 선택하기",clockLabelText:(e,t,n)=>`${uve[e]} 선택하세요. ${t===null?"시간을 선택하지 않았습니다.":`현재 선택된 시간은 ${n.format(t,"fullTime")}입니다.`}`,hoursClockNumberText:e=>`${e}시간`,minutesClockNumberText:e=>`${e}분`,secondsClockNumberText:e=>`${e}초`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`날짜를 선택하세요. 현재 선택된 날짜는 ${t.format(t.date(e),"fullDate")}입니다.`:"날짜를 선택하세요",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`시간을 선택하세요. 현재 선택된 시간은 ${t.format(t.date(e),"fullTime")}입니다.`:"시간을 선택하세요",timeTableLabel:"선택한 시간",dateTableLabel:"선택한 날짜"},dve=fa(cve),fve={previousMonth:"Fyrri mánuður",nextMonth:"Næsti mánuður",openPreviousView:"opna fyrri skoðun",openNextView:"opna næstu skoðun",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"ársskoðun er opin, skipta yfir í dagatalsskoðun":"dagatalsskoðun er opin, skipta yfir í ársskoðun",inputModeToggleButtonAriaLabel:(e,t)=>{const n=t==="calendar"?"dagatals":"klukku";return e?`textainnsláttur er opinn, fara í ${n}skoðun`:`${n}skoðun er opin, opna fyrir textainnslátt`},start:"Upphaf",end:"Endir",cancelButtonLabel:"Hætta við",clearButtonLabel:"Hreinsa",okButtonLabel:"OK",todayButtonLabel:"Í dag",datePickerDefaultToolbarTitle:"Velja dagsetningu",dateTimePickerDefaultToolbarTitle:"Velja dagsetningu og tíma",timePickerDefaultToolbarTitle:"Velja tíma",dateRangePickerDefaultToolbarTitle:"Velja tímabil",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"Enginn tími valinn":`Valinn tími er ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} klukkustundir`,minutesClockNumberText:e=>`${e} mínútur`,secondsClockNumberText:e=>`${e} sekúndur`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velja dagsetningu, valin dagsetning er ${t.format(t.date(e),"fullDate")}`:"Velja dagsetningu",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velja tíma, valinn tími er ${t.format(t.date(e),"fullTime")}`:"Velja tíma",timeTableLabel:"velja tíma",dateTableLabel:"velja dagsetningu"},pve=fa(fve),D0={hours:"時間",minutes:"分",seconds:"秒"},UD={calendar:"カレンダー表示",clock:"時計表示"},hve={previousMonth:"先月",nextMonth:"来月",openPreviousView:"前の表示を開く",openNextView:"次の表示を開く",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"年選択表示からカレンダー表示に切り替える":"カレンダー表示から年選択表示に切り替える",inputModeToggleButtonAriaLabel:(e,t)=>e?`テキスト入力表示から${UD[t]}に切り替える`:`${UD[t]}からテキスト入力表示に切り替える`,start:"開始",end:"終了",cancelButtonLabel:"キャンセル",clearButtonLabel:"クリア",okButtonLabel:"確定",todayButtonLabel:"今日",datePickerDefaultToolbarTitle:"日付を選択",dateTimePickerDefaultToolbarTitle:"日時を選択",timePickerDefaultToolbarTitle:"時間を選択",dateRangePickerDefaultToolbarTitle:"日付の範囲を選択",clockLabelText:(e,t,n)=>{var r;return`${(r=D0[e])!=null?r:e}を選択してください ${t===null?"時間が選択されていません":`選択した時間は ${n.format(t,"fullTime")} です`}`},hoursClockNumberText:e=>`${e} ${D0.hours}`,minutesClockNumberText:e=>`${e} ${D0.minutes}`,secondsClockNumberText:e=>`${e} ${D0.seconds}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`日付を選択してください。選択した日付は ${t.format(e,"fullDate")} です`:"日付を選択してください",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`時間を選択してください。選択した時間は ${t.format(e,"fullTime")} です`:"時間を選択してください",timeTableLabel:"時間を選択",dateTableLabel:"日付を選択"},mve=fa(hve),gve={previousMonth:"Попередній місяць",nextMonth:"Наступний місяць",openPreviousView:"відкрити попередній вигляд",openNextView:"відкрити наступний вигляд",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"річний вигляд відкрито, перейти до календарного вигляду":"календарний вигляд відкрито, перейти до річного вигляду",inputModeToggleButtonAriaLabel:(e,t)=>e?`текстове поле відкрите, перейти до ${t} вигляду`:`${t} вигляд наразі відкрито, перейти до текстового поля`,start:"Початок",end:"Кінець",cancelButtonLabel:"Відміна",clearButtonLabel:"Очистити",okButtonLabel:"OK",todayButtonLabel:"Сьогодні",datePickerDefaultToolbarTitle:"Вибрати дату",dateTimePickerDefaultToolbarTitle:"Вибрати дату і час",timePickerDefaultToolbarTitle:"Вибрати час",dateRangePickerDefaultToolbarTitle:"Вибрати календарний період",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"Час не вибраний":`Вибрано час ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} годин`,minutesClockNumberText:e=>`${e} хвилин`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Оберіть дату, обрана дата ${t.format(e,"fullDate")}`:"Оберіть дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Оберіть час, обраний час ${t.format(e,"fullTime")}`:"Оберіть час",timeTableLabel:"оберіть час",dateTableLabel:"оберіть дату"},vve=fa(gve),yve={previousMonth:"پچھلا مہینہ",nextMonth:"اگلا مہینہ",openPreviousView:"پچھلا ویو کھولیں",openNextView:"اگلا ویو کھولیں",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"سال والا ویو کھلا ہے۔ کیلنڈر والا ویو کھولیں":"کیلنڈر والا ویو کھلا ہے۔ سال والا ویو کھولیں",inputModeToggleButtonAriaLabel:(e,t)=>e?`،ٹیکسٹ ویو کھلا ہے ${t} ویو کھولیں`:`${t} ویو کھلا ہے، ٹیکسٹ ویو کھولیں`,start:"شروع",end:"ختم",cancelButtonLabel:"کینسل",clearButtonLabel:"کلئیر",okButtonLabel:"اوکے",todayButtonLabel:"آج",datePickerDefaultToolbarTitle:"تاریخ منتخب کریں",dateTimePickerDefaultToolbarTitle:"تاریخ اور وقت منتخب کریں",timePickerDefaultToolbarTitle:"وقت منتخب کریں",dateRangePickerDefaultToolbarTitle:"تاریخوں کی رینج منتخب کریں",clockLabelText:(e,t,n)=>`${e} منتخب کریں ${t===null?"کوئی وقت منتخب نہیں":`منتخب وقت ہے ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} گھنٹے`,minutesClockNumberText:e=>`${e} منٹ`,secondsClockNumberText:e=>`${e} سیکنڈ`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`تاریخ منتخب کریں، منتخب شدہ تاریخ ہے ${t.format(e,"fullDate")}`:"تاریخ منتخب کریں",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`وقت منتخب کریں، منتخب شدہ وقت ہے ${t.format(e,"fullTime")}`:"وقت منتخب کریں",timeTableLabel:"وقت منتخب کریں",dateTableLabel:"تاریخ منتخب کریں"},bve=fa(yve),H_={hours:"гадзіны",minutes:"хвіліны",seconds:"секунды",calendar:"календара",clock:"часу"},xve={previousMonth:"Папярэдні месяц",nextMonth:"Наступны месяц",openPreviousView:"адкрыць папярэдні выгляд",openNextView:"адкрыць наступны выгляд",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"гадавы выгляд адкрыты, перайсці да каляндарнага выгляду":"каляндарны выгляд адкрыты, перайсці да гадавога выгляду",inputModeToggleButtonAriaLabel:(e,t)=>e?`тэкставае поле адкрыта, перайсці да выгляду ${H_[t]}`:`Выгляд ${H_[t]} зараз адкрыты, перайсці да тэкставага поля`,start:"Пачатак",end:"Канец",cancelButtonLabel:"Адмена",clearButtonLabel:"Ачысціць",okButtonLabel:"OK",todayButtonLabel:"Сёння",datePickerDefaultToolbarTitle:"Абраць дату",dateTimePickerDefaultToolbarTitle:"Абраць дату і час",timePickerDefaultToolbarTitle:"Абраць час",dateRangePickerDefaultToolbarTitle:"Абраць каляндарны перыяд",clockLabelText:(e,t,n)=>`Абярыце ${H_[e]}. ${t===null?"Час не абраны":`Абраны час ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} гадзін`,minutesClockNumberText:e=>`${e} хвілін`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Абраць дату, абрана дата ${t.format(e,"fullDate")}`:"Абраць дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Абраць час, абрыны час ${t.format(e,"fullTime")}`:"Абраць час",timeTableLabel:"абраць час",dateTableLabel:"абраць дату"},wve=fa(xve),_ve={hours:"часы",minutes:"минуты",seconds:"секунды"},HD={calendar:"календарный",clock:"часовой"},Tve={previousMonth:"Предыдущий месяц",nextMonth:"Следующий месяц",openPreviousView:"открыть предыдущий вид",openNextView:"открыть следующий вид",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"открыт годовой вид, переключить на календарный вид":"открыт календарный вид, переключить на годовой вид",inputModeToggleButtonAriaLabel:(e,t)=>e?`Открыт текстовый вид, перейти на ${HD[t]} вид`:`Открыт ${HD[t]} вид, перейти на текстовый вид`,start:"Начало",end:"Конец",cancelButtonLabel:"Отмена",clearButtonLabel:"Очистить",okButtonLabel:"Ок",todayButtonLabel:"Сегодня",datePickerDefaultToolbarTitle:"Выбрать дату",dateTimePickerDefaultToolbarTitle:"Выбрать дату и время",timePickerDefaultToolbarTitle:"Выбрать время",dateRangePickerDefaultToolbarTitle:"Выбрать период",clockLabelText:(e,t,n)=>`Выбрать ${_ve[e]}. ${t===null?"Время не выбрано":`Выбрано время ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} часов`,minutesClockNumberText:e=>`${e} минут`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Выберите дату, выбрана дата ${t.format(e,"fullDate")}`:"Выберите дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Выберите время, выбрано время ${t.format(e,"fullTime")}`:"Выберите время",timeTableLabel:"выбрать время",dateTableLabel:"выбрать дату"},Sve=fa(Tve),P5=ge.createContext(null);function kve(e){const t=Tr({props:e,name:"MuiLocalizationProvider"}),{children:n,dateAdapter:r,dateFormats:l,dateLibInstance:i,locale:o,adapterLocale:a,localeText:s}=t,u=ge.useMemo(()=>new r({locale:a??o,formats:l,instance:i}),[r,o,a,l,i]),c=ge.useMemo(()=>({minDate:u.date("1900-01-01T00:00:00.000"),maxDate:u.date("2099-12-31T00:00:00.000")}),[u]),d=ge.useMemo(()=>({utils:u,defaultDates:c,localeText:Yt({},wW,s??{})}),[c,u,s]);return Se.jsx(P5.Provider,{value:d,children:n})}const vg=()=>{const e=ge.useContext(P5);if(e===null)throw new Error("MUI: Can not find utils in context. It looks like you forgot to wrap your component in LocalizationProvider, or pass dateAdapter prop directly.");return e},Hr=()=>vg().utils,yg=()=>vg().defaultDates,ul=()=>vg().localeText,bg=()=>{const e=Hr();return ge.useRef(e.date()).current};function _W(e){return gn("MuiMonthPicker",e)}const Cve=fn("MuiMonthPicker",["root"]),Kh=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:l,isDateDisabled:i,utils:o})=>{const a=o.startOfDay(o.date());n&&o.isBefore(l,a)&&(l=a),t&&o.isAfter(r,a)&&(r=a);let s=e,u=e;for(o.isBefore(e,l)&&(s=o.date(l),u=null),o.isAfter(e,r)&&(u&&(u=o.date(r)),s=null);s||u;){if(s&&o.isAfter(s,r)&&(s=null),u&&o.isBefore(u,l)&&(u=null),s){if(!i(s))return s;s=o.addDays(s,1)}if(u){if(!i(u))return u;u=o.addDays(u,-1)}}return null},O5=(e,t)=>{const n=e.date(t);return e.isValid(n)?n:null},zi=(e,t,n)=>{if(t==null)return n;const r=e.date(t);return e.isValid(r)?r:n},Mve=["className","date","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange"],Pve=e=>{const{classes:t}=e;return vn({root:["root"]},_W,t)};function Ove(e,t){const n=Hr(),r=yg(),l=Tr({props:e,name:t});return Yt({disableFuture:!1,disablePast:!1},l,{minDate:zi(n,l.minDate,r.minDate),maxDate:zi(n,l.maxDate,r.maxDate)})}const Ave=Dt("div",{name:"MuiMonthPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({width:310,display:"flex",flexWrap:"wrap",alignContent:"stretch",margin:"0 4px"}),TW=ge.forwardRef(function(t,n){const r=Hr(),l=bg(),i=Ove(t,"MuiMonthPicker"),{className:o,date:a,disabled:s,disableFuture:u,disablePast:c,maxDate:d,minDate:f,onChange:p,shouldDisableMonth:h,readOnly:g,disableHighlightToday:b,autoFocus:v=!1,onMonthFocus:m,hasFocus:y,onFocusedViewChange:x}=i,_=tr(i,Mve),w=i,S=Pve(w),k=lg(),C=ge.useMemo(()=>a??r.startOfMonth(l),[l,r,a]),T=ge.useMemo(()=>a!=null?r.getMonth(a):b?null:r.getMonth(l),[l,a,r,b]),[M,O]=ge.useState(()=>T||r.getMonth(l)),D=ge.useCallback(R=>{const q=r.startOfMonth(c&&r.isAfter(l,f)?l:f),Y=r.startOfMonth(u&&r.isBefore(l,d)?l:d);return r.isBefore(R,q)||r.isAfter(R,Y)?!0:h?h(R):!1},[u,c,d,f,l,h,r]),P=R=>{if(g)return;const q=r.setMonth(C,R);p(q,"finish")},[E,I]=ou({name:"MonthPicker",state:"hasFocus",controlled:y,default:v}),A=ge.useCallback(R=>{I(R),x&&x(R)},[I,x]),F=ge.useCallback(R=>{D(r.setMonth(C,R))||(O(R),A(!0),m&&m(R))},[D,r,C,A,m]);ge.useEffect(()=>{O(R=>T!==null&&R!==T?T:R)},[T]);const j=ho(R=>{switch(R.key){case"ArrowUp":F((12+M-3)%12),R.preventDefault();break;case"ArrowDown":F((12+M+3)%12),R.preventDefault();break;case"ArrowLeft":F((12+M+(k.direction==="ltr"?-1:1))%12),R.preventDefault();break;case"ArrowRight":F((12+M+(k.direction==="ltr"?1:-1))%12),R.preventDefault();break}}),B=ge.useCallback((R,q)=>{F(q)},[F]),z=ge.useCallback(()=>{A(!1)},[A]),N=r.getMonth(l);return Se.jsx(Ave,Yt({ref:n,className:xa(S.root,o),ownerState:w,onKeyDown:j},_,{children:r.getMonthArray(C).map(R=>{const q=r.getMonth(R),Y=r.format(R,"monthShort"),L=s||D(R);return Se.jsx(k0e,{value:q,selected:q===T,tabIndex:q===M&&!L?0:-1,hasFocus:E&&q===M,onSelect:P,onFocus:B,onBlur:z,disabled:L,"aria-current":N===q?"date":void 0,children:Y},Y)})}))});function A5(e,t,n){const{value:r,onError:l}=e,i=vg(),o=ge.useRef(null),a=t({adapter:i,value:r,props:e});return ge.useEffect(()=>{l&&!n(a,o.current)&&l(a,r),o.current=a},[n,l,o,a,r]),a}const D5=({props:e,value:t,adapter:n})=>{const r=n.utils.date(),l=n.utils.date(t),i=zi(n.utils,e.minDate,n.defaultDates.minDate),o=zi(n.utils,e.maxDate,n.defaultDates.maxDate);if(l===null)return null;switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(e.shouldDisableDate&&e.shouldDisableDate(l)):return"shouldDisableDate";case!!(e.disableFuture&&n.utils.isAfterDay(l,r)):return"disableFuture";case!!(e.disablePast&&n.utils.isBeforeDay(l,r)):return"disablePast";case!!(i&&n.utils.isBeforeDay(l,i)):return"minDate";case!!(o&&n.utils.isAfterDay(l,o)):return"maxDate";default:return null}},SW=({shouldDisableDate:e,minDate:t,maxDate:n,disableFuture:r,disablePast:l})=>{const i=vg();return ge.useCallback(o=>D5({adapter:i,value:o,props:{shouldDisableDate:e,minDate:t,maxDate:n,disableFuture:r,disablePast:l}})!==null,[i,e,t,n,r,l])},Dve=(e,t)=>e===t,E5=e=>A5(e,D5,Dve),Eve=(e,t,n)=>(r,l)=>{switch(l.type){case"changeMonth":return Yt({},r,{slideDirection:l.direction,currentMonth:l.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return Yt({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&l.focusedDay!=null&&n.isSameDay(l.focusedDay,r.focusedDay))return r;const i=l.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,l.focusedDay);return Yt({},r,{focusedDay:l.focusedDay,isMonthSwitchingAnimating:i&&!e&&!l.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(l.focusedDay):r.currentMonth,slideDirection:l.focusedDay!=null&&n.isAfterDay(l.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},Rve=({date:e,defaultCalendarMonth:t,disableFuture:n,disablePast:r,disableSwitchToMonthOnDayFocus:l=!1,maxDate:i,minDate:o,onMonthChange:a,reduceAnimations:s,shouldDisableDate:u})=>{var c;const d=bg(),f=Hr(),p=ge.useRef(Eve(!!s,l,f)).current,[h,g]=ge.useReducer(p,{isMonthSwitchingAnimating:!1,focusedDay:e||d,currentMonth:f.startOfMonth((c=e??t)!=null?c:d),slideDirection:"left"}),b=ge.useCallback(_=>{g(Yt({type:"changeMonth"},_)),a&&a(_.newMonth)},[a]),v=ge.useCallback(_=>{const w=_??d;f.isSameMonth(w,h.currentMonth)||b({newMonth:f.startOfMonth(w),direction:f.isAfterDay(w,h.currentMonth)?"left":"right"})},[h.currentMonth,b,d,f]),m=SW({shouldDisableDate:u,minDate:o,maxDate:i,disableFuture:n,disablePast:r}),y=ge.useCallback(()=>{g({type:"finishMonthSwitchingAnimation"})},[]),x=ge.useCallback((_,w)=>{m(_)||g({type:"changeFocusedDay",focusedDay:_,withoutMonthSwitchingAnimation:w})},[m]);return{calendarState:h,changeMonth:v,changeFocusedDay:x,isDateDisabled:m,onMonthSwitchingAnimationEnd:y,handleChangeMonth:b}},Lve=e=>gn("MuiPickersFadeTransitionGroup",e),Ive=fn("MuiPickersFadeTransitionGroup",["root"]),$ve=e=>{const{classes:t}=e;return vn({root:["root"]},Lve,t)},VD=500,Nve=Dt(cg,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function kW(e){const t=Tr({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:l,transKey:i}=t,o=$ve(t);return l?n:Se.jsx(Nve,{className:xa(o.root,r),children:Se.jsx(Ob,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:VD,enter:VD/2,exit:0},children:n},i)})}var CW={exports:{}},Lr={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var R5=Symbol.for("react.element"),L5=Symbol.for("react.portal"),Bb=Symbol.for("react.fragment"),Wb=Symbol.for("react.strict_mode"),qb=Symbol.for("react.profiler"),Ub=Symbol.for("react.provider"),Hb=Symbol.for("react.context"),Fve=Symbol.for("react.server_context"),Vb=Symbol.for("react.forward_ref"),Gb=Symbol.for("react.suspense"),Yb=Symbol.for("react.suspense_list"),Xb=Symbol.for("react.memo"),Kb=Symbol.for("react.lazy"),jve=Symbol.for("react.offscreen"),MW;MW=Symbol.for("react.module.reference");function Ui(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case R5:switch(e=e.type,e){case Bb:case qb:case Wb:case Gb:case Yb:return e;default:switch(e=e&&e.$$typeof,e){case Fve:case Hb:case Vb:case Kb:case Xb:case Ub:return e;default:return t}}case L5:return t}}}Lr.ContextConsumer=Hb;Lr.ContextProvider=Ub;Lr.Element=R5;Lr.ForwardRef=Vb;Lr.Fragment=Bb;Lr.Lazy=Kb;Lr.Memo=Xb;Lr.Portal=L5;Lr.Profiler=qb;Lr.StrictMode=Wb;Lr.Suspense=Gb;Lr.SuspenseList=Yb;Lr.isAsyncMode=function(){return!1};Lr.isConcurrentMode=function(){return!1};Lr.isContextConsumer=function(e){return Ui(e)===Hb};Lr.isContextProvider=function(e){return Ui(e)===Ub};Lr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===R5};Lr.isForwardRef=function(e){return Ui(e)===Vb};Lr.isFragment=function(e){return Ui(e)===Bb};Lr.isLazy=function(e){return Ui(e)===Kb};Lr.isMemo=function(e){return Ui(e)===Xb};Lr.isPortal=function(e){return Ui(e)===L5};Lr.isProfiler=function(e){return Ui(e)===qb};Lr.isStrictMode=function(e){return Ui(e)===Wb};Lr.isSuspense=function(e){return Ui(e)===Gb};Lr.isSuspenseList=function(e){return Ui(e)===Yb};Lr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Bb||e===qb||e===Wb||e===Gb||e===Yb||e===jve||typeof e=="object"&&e!==null&&(e.$$typeof===Kb||e.$$typeof===Xb||e.$$typeof===Ub||e.$$typeof===Hb||e.$$typeof===Vb||e.$$typeof===MW||e.getModuleId!==void 0)};Lr.typeOf=Ui;CW.exports=Lr;var zve=CW.exports;const I5=typeof window<"u"?ge.useLayoutEffect:ge.useEffect;function Bve({controlled:e,default:t,name:n,state:r="value"}){const{current:l}=ge.useRef(e!==void 0),[i,o]=ge.useState(t),a=l?e:i,s=ge.useCallback(u=>{l||o(u)},[]);return[a,s]}function Wve(e,t,n=void 0){const r={};return Object.keys(e).forEach(l=>{r[l]=e[l].reduce((i,o)=>{if(o){const a=t(o);a!==""&&i.push(a),n&&n[o]&&i.push(n[o])}return i},[]).join(" ")}),r}const Mm=36,xg=2,$5=320,qve=358;function PW(e){return gn("MuiPickersDay",e)}const Ph=fn("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),Uve=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today"],Hve=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:l,disabled:i,outsideCurrentMonth:o,showDaysOutsideCurrentMonth:a,classes:s}=e;return vn({root:["root",t&&"selected",i&&"disabled",!n&&"dayWithMargin",!r&&l&&"today",o&&a&&"dayOutsideMonth",o&&!a&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},PW,s)},OW=({theme:e,ownerState:t})=>Yt({},e.typography.caption,{width:Mm,height:Mm,borderRadius:"50%",padding:0,backgroundColor:e.palette.background.paper,color:e.palette.text.primary,"&:hover":{backgroundColor:ar(e.palette.action.active,e.palette.action.hoverOpacity)},"&:focus":{backgroundColor:ar(e.palette.action.active,e.palette.action.hoverOpacity),[`&.${Ph.selected}`]:{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${Ph.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium,transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),"&:hover":{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${Ph.disabled}`]:{color:e.palette.text.disabled}},!t.disableMargin&&{margin:`0 ${xg}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:e.palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${Ph.selected})`]:{border:`1px solid ${e.palette.text.secondary}`}}),AW=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},Vve=Dt(Nl,{name:"MuiPickersDay",slot:"Root",overridesResolver:AW})(OW),Gve=Dt("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:AW})(({theme:e,ownerState:t})=>Yt({},OW({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),V_=()=>{},Yve=ge.forwardRef(function(t,n){const r=Tr({props:t,name:"MuiPickersDay"}),{autoFocus:l=!1,className:i,day:o,disabled:a=!1,disableHighlightToday:s=!1,disableMargin:u=!1,isAnimating:c,onClick:d,onDaySelect:f,onFocus:p=V_,onBlur:h=V_,onKeyDown:g=V_,onMouseDown:b,outsideCurrentMonth:v,selected:m=!1,showDaysOutsideCurrentMonth:y=!1,children:x,today:_=!1}=r,w=tr(r,Uve),S=Yt({},r,{autoFocus:l,disabled:a,disableHighlightToday:s,disableMargin:u,selected:m,showDaysOutsideCurrentMonth:y,today:_}),k=Hve(S),C=Hr(),T=ge.useRef(null),M=Er(T,n);I5(()=>{l&&!a&&!c&&!v&&T.current.focus()},[l,a,c,v]);const O=P=>{b&&b(P),v&&P.preventDefault()},D=P=>{a||f(o,"finish"),v&&P.currentTarget.focus(),d&&d(P)};return v&&!y?Se.jsx(Gve,{className:xa(k.root,k.hiddenDaySpacingFiller,i),ownerState:S,role:w.role}):Se.jsx(Vve,Yt({className:xa(k.root,i),ownerState:S,ref:M,centerRipple:!0,disabled:a,tabIndex:m?0:-1,onKeyDown:P=>g(P,o),onFocus:P=>p(P,o),onBlur:P=>h(P,o),onClick:D,onMouseDown:O},w,{children:x||C.format(o,"dayOfMonth")}))}),Xve=(e,t)=>e.autoFocus===t.autoFocus&&e.isAnimating===t.isAnimating&&e.today===t.today&&e.disabled===t.disabled&&e.selected===t.selected&&e.disableMargin===t.disableMargin&&e.showDaysOutsideCurrentMonth===t.showDaysOutsideCurrentMonth&&e.disableHighlightToday===t.disableHighlightToday&&e.className===t.className&&e.sx===t.sx&&e.outsideCurrentMonth===t.outsideCurrentMonth&&e.onFocus===t.onFocus&&e.onBlur===t.onBlur&&e.onDaySelect===t.onDaySelect,DW=ge.memo(Yve,Xve),Kve=e=>gn("PrivatePickersSlideTransition",e),to=fn("PrivatePickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),Zve=["children","className","reduceAnimations","slideDirection","transKey"],Qve=e=>{const{classes:t}=e;return vn({root:["root"]},Kve,t)},EW=350,Jve=Dt(cg,{name:"PrivatePickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${to["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${to["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${to.slideEnterActive}`]:t.slideEnterActive},{[`.${to.slideExit}`]:t.slideExit},{[`.${to["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${to["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:EW,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${to["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${to["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${to.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${to.slideExit}`]:{transform:"translate(0%)"},[`& .${to["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${to["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}}),eye=e=>{const{children:t,className:n,reduceAnimations:r,slideDirection:l,transKey:i}=e,o=tr(e,Zve),a=Qve(e);if(r)return Se.jsx("div",{className:xa(a.root,n),children:t});const s={exit:to.slideExit,enterActive:to.slideEnterActive,enter:to[`slideEnter-${l}`],exitActive:to[`slideExitActiveLeft-${l}`]};return Se.jsx(Jve,{className:xa(a.root,n),childFactory:u=>ge.cloneElement(u,{classNames:s}),role:"presentation",children:Se.jsx(e5,Yt({mountOnEnter:!0,unmountOnExit:!0,timeout:EW,classNames:s},o,{children:t}),i)})},tye=e=>gn("MuiDayPicker",e),nye=fn("MuiDayPicker",["header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer"]),rye=e=>{const{classes:t}=e;return vn({header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"]},tye,t)},aye=e=>e.charAt(0).toUpperCase(),RW=(Mm+xg*2)*6,oye=Dt("div",{name:"MuiDayPicker",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),iye=Dt(mr,{name:"MuiDayPicker",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.secondary})),lye=Dt("div",{name:"MuiDayPicker",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:RW}),sye=Dt(eye,{name:"MuiDayPicker",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:RW}),uye=Dt("div",{name:"MuiDayPicker",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),cye=Dt("div",{name:"MuiDayPicker",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${xg}px 0`,display:"flex",justifyContent:"center"});function dye(e){const t=bg(),n=Hr(),r=Tr({props:e,name:"MuiDayPicker"}),l=rye(r),{onFocusedDayChange:i,className:o,currentMonth:a,selectedDays:s,disabled:u,disableHighlightToday:c,focusedDay:d,isMonthSwitchingAnimating:f,loading:p,onSelectedDaysChange:h,onMonthSwitchingAnimationEnd:g,readOnly:b,reduceAnimations:v,renderDay:m,renderLoading:y=()=>Se.jsx("span",{children:"..."}),showDaysOutsideCurrentMonth:x,slideDirection:_,TransitionProps:w,disablePast:S,disableFuture:k,minDate:C,maxDate:T,shouldDisableDate:M,dayOfWeekFormatter:O=aye,hasFocus:D,onFocusedViewChange:P,gridLabelId:E}=r,I=SW({shouldDisableDate:M,minDate:C,maxDate:T,disablePast:S,disableFuture:k}),[A,F]=ge.useState(()=>d||t),j=ge.useCallback(U=>{P&&P(U)},[P]),B=ge.useCallback((U,Q="finish")=>{b||h(U,Q)},[h,b]),z=ge.useCallback(U=>{I(U)||(i(U),F(U),j(!0))},[I,i,j]),N=pi();function R(U,Q){switch(U.key){case"ArrowUp":z(n.addDays(Q,-7)),U.preventDefault();break;case"ArrowDown":z(n.addDays(Q,7)),U.preventDefault();break;case"ArrowLeft":{const V=n.addDays(Q,N.direction==="ltr"?-1:1),X=N.direction==="ltr"?n.getPreviousMonth(Q):n.getNextMonth(Q),K=Kh({utils:n,date:V,minDate:N.direction==="ltr"?n.startOfMonth(X):V,maxDate:N.direction==="ltr"?V:n.endOfMonth(X),isDateDisabled:I});z(K||V),U.preventDefault();break}case"ArrowRight":{const V=n.addDays(Q,N.direction==="ltr"?1:-1),X=N.direction==="ltr"?n.getNextMonth(Q):n.getPreviousMonth(Q),K=Kh({utils:n,date:V,minDate:N.direction==="ltr"?V:n.startOfMonth(X),maxDate:N.direction==="ltr"?n.endOfMonth(X):V,isDateDisabled:I});z(K||V),U.preventDefault();break}case"Home":z(n.startOfWeek(Q)),U.preventDefault();break;case"End":z(n.endOfWeek(Q)),U.preventDefault();break;case"PageUp":z(n.getNextMonth(Q)),U.preventDefault();break;case"PageDown":z(n.getPreviousMonth(Q)),U.preventDefault();break}}function q(U,Q){z(Q)}function Y(U,Q){D&&n.isSameDay(A,Q)&&j(!1)}const L=n.getMonth(a),W=s.filter(U=>!!U).map(U=>n.startOfDay(U)),H=L,G=ge.useMemo(()=>ge.createRef(),[H]),te=n.startOfWeek(t),ee=ge.useMemo(()=>{const U=n.startOfMonth(a),Q=n.endOfMonth(a);return I(A)||n.isAfterDay(A,Q)||n.isBeforeDay(A,U)?Kh({utils:n,date:A,minDate:U,maxDate:Q,disablePast:S,disableFuture:k,isDateDisabled:I}):A},[a,k,S,A,I,n]);return Se.jsxs("div",{role:"grid","aria-labelledby":E,children:[Se.jsx(oye,{role:"row",className:l.header,children:n.getWeekdays().map((U,Q)=>{var V;return Se.jsx(iye,{variant:"caption",role:"columnheader","aria-label":n.format(n.addDays(te,Q),"weekday"),className:l.weekDayLabel,children:(V=O==null?void 0:O(U))!=null?V:U},U+Q.toString())})}),p?Se.jsx(lye,{className:l.loadingContainer,children:y()}):Se.jsx(sye,Yt({transKey:H,onExited:g,reduceAnimations:v,slideDirection:_,className:xa(o,l.slideTransition)},w,{nodeRef:G,children:Se.jsx(uye,{ref:G,role:"rowgroup",className:l.monthContainer,children:n.getWeekArray(a).map(U=>Se.jsx(cye,{role:"row",className:l.weekContainer,children:U.map(Q=>{const V=ee!==null&&n.isSameDay(Q,ee),X=W.some(ae=>n.isSameDay(ae,Q)),K=n.isSameDay(Q,t),ne={key:Q==null?void 0:Q.toString(),day:Q,isAnimating:f,disabled:u||I(Q),autoFocus:D&&V,today:K,outsideCurrentMonth:n.getMonth(Q)!==L,selected:X,disableHighlightToday:c,showDaysOutsideCurrentMonth:x,onKeyDown:R,onFocus:q,onBlur:Y,onDaySelect:B,tabIndex:V?0:-1,role:"gridcell","aria-selected":X};return K&&(ne["aria-current"]="date"),m?m(Q,W,ne):ge.createElement(DW,Yt({},ne,{key:ne.key}))})},`week-${U[0]}`))})}))]})}function N5({onChange:e,onViewChange:t,openTo:n,view:r,views:l}){var i,o;const[a,s]=ou({name:"Picker",state:"view",controlled:r,default:n&&$u(l,n)?n:l[0]}),u=(i=l[l.indexOf(a)-1])!=null?i:null,c=(o=l[l.indexOf(a)+1])!=null?o:null,d=ge.useCallback(h=>{s(h),t&&t(h)},[s,t]),f=ge.useCallback(()=>{c&&d(c)},[c,d]);return{handleChangeAndOpenNext:ge.useCallback((h,g)=>{const b=g==="finish";e(h,b&&c?"partial":g),b&&f()},[c,e,f]),nextView:c,previousView:u,openNext:f,openView:a,setOpenView:d}}const fye=kr(Se.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),pye=kr(Se.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),hye=kr(Se.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),LW=kr(Se.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),IW=kr(Se.jsxs(ge.Fragment,{children:[Se.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),Se.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),mye=kr(Se.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),gye=kr(Se.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Pen"),vye=kr(Se.jsxs(ge.Fragment,{children:[Se.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),Se.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");function yye(e){return gn("MuiPickersArrowSwitcher",e)}fn("MuiPickersArrowSwitcher",["root","spacer","button"]);const bye=["children","className","components","componentsProps","isLeftDisabled","isLeftHidden","isRightDisabled","isRightHidden","leftArrowButtonText","onLeftClick","onRightClick","rightArrowButtonText"],xye=e=>{const{classes:t}=e;return vn({root:["root"],spacer:["spacer"],button:["button"]},yye,t)},wye=Dt("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),_ye=Dt("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),GD=Dt(Fo,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>Yt({},e.hidden&&{visibility:"hidden"})),$W=ge.forwardRef(function(t,n){const r=Tr({props:t,name:"MuiPickersArrowSwitcher"}),{children:l,className:i,components:o,componentsProps:a,isLeftDisabled:s,isLeftHidden:u,isRightDisabled:c,isRightHidden:d,leftArrowButtonText:f,onLeftClick:p,onRightClick:h,rightArrowButtonText:g}=r,b=tr(r,bye),m=pi().direction==="rtl",y=(a==null?void 0:a.leftArrowButton)||{},x=(o==null?void 0:o.LeftArrowIcon)||pye,_=(a==null?void 0:a.rightArrowButton)||{},w=(o==null?void 0:o.RightArrowIcon)||hye,S=r,k=xye(S);return Se.jsxs(wye,Yt({ref:n,className:xa(k.root,i),ownerState:S},b,{children:[Se.jsx(GD,Yt({as:o==null?void 0:o.LeftArrowButton,size:"small","aria-label":f,title:f,disabled:s,edge:"end",onClick:p},y,{className:xa(k.button,y.className),ownerState:Yt({},S,y,{hidden:u}),children:m?Se.jsx(w,{}):Se.jsx(x,{})})),l?Se.jsx(mr,{variant:"subtitle1",component:"span",children:l}):Se.jsx(_ye,{className:k.spacer,ownerState:S}),Se.jsx(GD,Yt({as:o==null?void 0:o.RightArrowButton,size:"small","aria-label":g,title:g,edge:"start",disabled:c,onClick:h},_,{className:xa(k.button,_.className),ownerState:Yt({},S,_,{hidden:d}),children:m?Se.jsx(x,{}):Se.jsx(w,{})}))]}))}),Tye=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,GS=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,Sye=(e,t,n,r)=>{const l=GS(r.getHours(e),t,n);return r.setHours(e,l)},YD=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),NW=(e=!1,t)=>(n,r)=>e?t.isAfter(n,r):YD(n,t)>YD(r,t);function kye(e,{disableFuture:t,maxDate:n}){const r=Hr();return ge.useMemo(()=>{const l=r.date(),i=r.startOfMonth(t&&r.isBefore(l,n)?l:n);return!r.isAfter(i,e)},[t,n,e,r])}function Cye(e,{disablePast:t,minDate:n}){const r=Hr();return ge.useMemo(()=>{const l=r.date(),i=r.startOfMonth(t&&r.isAfter(l,n)?l:n);return!r.isBefore(i,e)},[t,n,e,r])}function FW(e,t,n){const r=Hr(),l=Tye(e,r),i=ge.useCallback(o=>{const a=e==null?null:Sye(e,o,!!t,r);n(a,"partial")},[t,e,n,r]);return{meridiemMode:l,handleMeridiemChange:i}}const jW=e=>()=>{},Mye=e=>gn("MuiPickersCalendarHeader",e),Pye=fn("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),Oye=e=>{const{classes:t}=e;return vn({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Mye,t)},Aye=Dt("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),Dye=Dt("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>Yt({display:"flex",maxHeight:30,overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),Eye=Dt("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),Rye=Dt(Fo,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto"}),Lye=Dt(fye,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e,ownerState:t})=>Yt({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"},t.openView==="year"&&{transform:"rotate(180deg)"})),Iye=jW();function $ye(e){const t=Tr({props:e,name:"MuiPickersCalendarHeader"}),{components:n={},componentsProps:r={},currentMonth:l,disabled:i,disableFuture:o,disablePast:a,getViewSwitchingButtonText:s,leftArrowButtonText:u,maxDate:c,minDate:d,onMonthChange:f,onViewChange:p,openView:h,reduceAnimations:g,rightArrowButtonText:b,views:v,labelId:m}=t;Iye({leftArrowButtonText:u,rightArrowButtonText:b,getViewSwitchingButtonText:s});const y=ul(),x=u??y.previousMonth,_=b??y.nextMonth,w=s??y.calendarViewSwitchingButtonAriaLabel,S=Hr(),k=Oye(t),C=r.switchViewButton||{},T=()=>f(S.getNextMonth(l),"left"),M=()=>f(S.getPreviousMonth(l),"right"),O=kye(l,{disableFuture:o,maxDate:c}),D=Cye(l,{disablePast:a,minDate:d}),P=()=>{if(!(v.length===1||!p||i))if(v.length===2)p(v.find(I=>I!==h)||v[0]);else{const I=v.indexOf(h)!==0?0:1;p(v[I])}};if(v.length===1&&v[0]==="year")return null;const E=t;return Se.jsxs(Aye,{ownerState:E,className:k.root,children:[Se.jsxs(Dye,{role:"presentation",onClick:P,ownerState:E,"aria-live":"polite",className:k.labelContainer,children:[Se.jsx(kW,{reduceAnimations:g,transKey:S.format(l,"monthAndYear"),children:Se.jsx(Eye,{id:m,ownerState:E,className:k.label,children:S.format(l,"monthAndYear")})}),v.length>1&&!i&&Se.jsx(Rye,Yt({size:"small",as:n.SwitchViewButton,"aria-label":w(h),className:k.switchViewButton},C,{children:Se.jsx(Lye,{as:n.SwitchViewIcon,ownerState:E,className:k.switchViewIcon})}))]}),Se.jsx(Ob,{in:h==="day",children:Se.jsx($W,{leftArrowButtonText:x,rightArrowButtonText:_,components:n,componentsProps:r,onLeftClick:M,onRightClick:T,isLeftDisabled:D,isRightDisabled:O})})]})}const gs=ge.createContext(null);function Nye(e){return gn("PrivatePickersYear",e)}const Hu=fn("PrivatePickersYear",["root","modeDesktop","modeMobile","yearButton","selected","disabled"]),Fye=["autoFocus","className","children","disabled","onClick","onKeyDown","value","tabIndex","onFocus","onBlur"],jye=e=>{const{wrapperVariant:t,disabled:n,selected:r,classes:l}=e,i={root:["root",t&&`mode${Qt(t)}`],yearButton:["yearButton",n&&"disabled",r&&"selected"]};return vn(i,Nye,l)},zye=Dt("div",{name:"PrivatePickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Hu.modeDesktop}`]:t.modeDesktop},{[`&.${Hu.modeMobile}`]:t.modeMobile}]})(({ownerState:e})=>Yt({flexBasis:"33.3%",display:"flex",alignItems:"center",justifyContent:"center"},(e==null?void 0:e.wrapperVariant)==="desktop"&&{flexBasis:"25%"})),Bye=Dt("button",{name:"PrivatePickersYear",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${Hu.disabled}`]:t.disabled},{[`&.${Hu.selected}`]:t.selected}]})(({theme:e})=>Yt({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:ar(e.palette.action.active,e.palette.action.hoverOpacity)},[`&.${Hu.disabled}`]:{color:e.palette.text.secondary},[`&.${Hu.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),XD=()=>{},Wye=ge.forwardRef(function(t,n){const{autoFocus:r,className:l,children:i,disabled:o,onClick:a,onKeyDown:s,value:u,tabIndex:c,onFocus:d=XD,onBlur:f=XD}=t,p=tr(t,Fye),h=ge.useRef(null),g=Er(h,n),b=ge.useContext(gs),v=Yt({},t,{wrapperVariant:b}),m=jye(v);return ge.useEffect(()=>{r&&h.current.focus()},[r]),Se.jsx(zye,{className:xa(m.root,l),ownerState:v,children:Se.jsx(Bye,Yt({ref:g,disabled:o,type:"button",tabIndex:o?-1:c,onClick:y=>a(y,u),onKeyDown:y=>s(y,u),onFocus:y=>d(y,u),onBlur:y=>f(y,u),className:m.yearButton,ownerState:v},p,{children:i}))})});function zW(e){return gn("MuiYearPicker",e)}const qye=fn("MuiYearPicker",["root"]),Uye=e=>{const{classes:t}=e;return vn({root:["root"]},zW,t)};function Hye(e,t){const n=Hr(),r=yg(),l=Tr({props:e,name:t});return Yt({disablePast:!1,disableFuture:!1},l,{minDate:zi(n,l.minDate,r.minDate),maxDate:zi(n,l.maxDate,r.maxDate)})}const Vye=Dt("div",{name:"MuiYearPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",maxHeight:"304px"}),BW=ge.forwardRef(function(t,n){const r=bg(),l=pi(),i=Hr(),o=Hye(t,"MuiYearPicker"),{autoFocus:a,className:s,date:u,disabled:c,disableFuture:d,disablePast:f,maxDate:p,minDate:h,onChange:g,readOnly:b,shouldDisableYear:v,disableHighlightToday:m,onYearFocus:y,hasFocus:x,onFocusedViewChange:_}=o,w=o,S=Uye(w),k=ge.useMemo(()=>u??i.startOfYear(r),[r,i,u]),C=ge.useMemo(()=>u!=null?i.getYear(u):m?null:i.getYear(r),[r,u,i,m]),T=ge.useContext(gs),M=ge.useRef(null),[O,D]=ge.useState(()=>C||i.getYear(r)),[P,E]=Bve({name:"YearPicker",state:"hasFocus",controlled:x,default:a}),I=ge.useCallback(W=>{E(W),_&&_(W)},[E,_]),A=ge.useCallback(W=>!!(f&&i.isBeforeYear(W,r)||d&&i.isAfterYear(W,r)||h&&i.isBeforeYear(W,h)||p&&i.isAfterYear(W,p)||v&&v(W)),[d,f,p,h,r,v,i]),F=(W,H,G="finish")=>{if(b)return;const te=i.setYear(k,H);g(te,G)},j=ge.useCallback(W=>{A(i.setYear(k,W))||(D(W),I(!0),y==null||y(W))},[A,i,k,I,y]);ge.useEffect(()=>{D(W=>C!==null&&W!==C?C:W)},[C]);const B=T==="desktop"?4:3,z=ge.useCallback((W,H)=>{switch(W.key){case"ArrowUp":j(H-B),W.preventDefault();break;case"ArrowDown":j(H+B),W.preventDefault();break;case"ArrowLeft":j(H+(l.direction==="ltr"?-1:1)),W.preventDefault();break;case"ArrowRight":j(H+(l.direction==="ltr"?1:-1)),W.preventDefault();break}},[j,l.direction,B]),N=ge.useCallback((W,H)=>{j(H)},[j]),R=ge.useCallback((W,H)=>{O===H&&I(!1)},[O,I]),q=i.getYear(r),Y=ge.useRef(null),L=Er(n,Y);return ge.useEffect(()=>{if(a||Y.current===null)return;const W=Y.current.querySelector('[tabindex="0"]');if(!W)return;const H=W.offsetHeight,G=W.offsetTop,te=Y.current.clientHeight,ee=Y.current.scrollTop,U=G+H;H>te||G{const H=i.getYear(W),G=H===C;return Se.jsx(Wye,{selected:G,value:H,onClick:F,onKeyDown:z,autoFocus:P&&H===O,ref:G?M:void 0,disabled:c||A(W),tabIndex:H===O?0:-1,onFocus:N,onBlur:R,"aria-current":q===H?"date":void 0,children:i.format(W,"year")},i.format(W,"year"))})})}),F5=Dt("div")({overflowX:"hidden",width:$5,maxHeight:qve,display:"flex",flexDirection:"column",margin:"0 auto"}),Gye=typeof navigator<"u"&&/(android)/i.test(navigator.userAgent),WW=e=>gn("MuiCalendarPicker",e),Yye=fn("MuiCalendarPicker",["root","viewTransitionContainer"]),Xye=["autoFocus","onViewChange","date","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","classes"],Kye=e=>{const{classes:t}=e;return vn({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},WW,t)};function Zye(e,t){const n=Hr(),r=yg(),l=Tr({props:e,name:t});return Yt({loading:!1,disablePast:!1,disableFuture:!1,openTo:"day",views:["year","day"],reduceAnimations:Gye,renderLoading:()=>Se.jsx("span",{children:"..."})},l,{minDate:zi(n,l.minDate,r.minDate),maxDate:zi(n,l.maxDate,r.maxDate)})}const Qye=Dt(F5,{name:"MuiCalendarPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),Jye=Dt(kW,{name:"MuiCalendarPicker",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),qW=ge.forwardRef(function(t,n){const r=Hr(),l=ls(),i=Zye(t,"MuiCalendarPicker"),{autoFocus:o,onViewChange:a,date:s,disableFuture:u,disablePast:c,defaultCalendarMonth:d,onChange:f,onYearChange:p,onMonthChange:h,reduceAnimations:g,shouldDisableDate:b,shouldDisableMonth:v,shouldDisableYear:m,view:y,views:x,openTo:_,className:w,disabled:S,readOnly:k,minDate:C,maxDate:T,disableHighlightToday:M,focusedView:O,onFocusedViewChange:D}=i,P=tr(i,Xye),{openView:E,setOpenView:I,openNext:A}=N5({view:y,views:x,openTo:_,onChange:f,onViewChange:a}),{calendarState:F,changeFocusedDay:j,changeMonth:B,handleChangeMonth:z,isDateDisabled:N,onMonthSwitchingAnimationEnd:R}=Rve({date:s,defaultCalendarMonth:d,reduceAnimations:g,onMonthChange:h,minDate:C,maxDate:T,shouldDisableDate:b,disablePast:c,disableFuture:u}),q=ge.useCallback((ie,se)=>{const pe=r.startOfMonth(ie),ke=r.endOfMonth(ie),Ce=N(ie)?Kh({utils:r,date:ie,minDate:r.isBefore(C,pe)?pe:C,maxDate:r.isAfter(T,ke)?ke:T,disablePast:c,disableFuture:u,isDateDisabled:N}):ie;Ce?(f(Ce,se),h==null||h(pe)):(A(),B(pe)),j(Ce,!0)},[j,u,c,N,T,C,f,h,B,A,r]),Y=ge.useCallback((ie,se)=>{const pe=r.startOfYear(ie),ke=r.endOfYear(ie),Ce=N(ie)?Kh({utils:r,date:ie,minDate:r.isBefore(C,pe)?pe:C,maxDate:r.isAfter(T,ke)?ke:T,disablePast:c,disableFuture:u,isDateDisabled:N}):ie;Ce?(f(Ce,se),p==null||p(Ce)):(A(),B(pe)),j(Ce,!0)},[j,u,c,N,T,C,f,p,A,r,B]),L=ge.useCallback((ie,se)=>f(s&&ie?r.mergeDateAndTime(ie,s):ie,se),[r,s,f]);ge.useEffect(()=>{s&&B(s)},[s]);const W=i,H=Kye(W),G={disablePast:c,disableFuture:u,maxDate:T,minDate:C},te=S&&s||C,ee=S&&s||T,U={disableHighlightToday:M,readOnly:k,disabled:S},Q=`${l}-grid-label`,[V,X]=ou({name:"DayPicker",state:"focusedView",controlled:O,default:o?E:null}),K=V!==null,ne=ho(ie=>se=>{if(D){D(ie)(se);return}X(se?ie:pe=>pe===ie?null:pe)}),ae=ge.useRef(E);return ge.useEffect(()=>{ae.current!==E&&(ae.current=E,ne(E)(!0))},[E,ne]),Se.jsxs(Qye,{ref:n,className:xa(H.root,w),ownerState:W,children:[Se.jsx($ye,Yt({},P,{views:x,openView:E,currentMonth:F.currentMonth,onViewChange:I,onMonthChange:(ie,se)=>z({newMonth:ie,direction:se}),minDate:te,maxDate:ee,disabled:S,disablePast:c,disableFuture:u,reduceAnimations:g,labelId:Q})),Se.jsx(Jye,{reduceAnimations:g,className:H.viewTransitionContainer,transKey:E,ownerState:W,children:Se.jsxs("div",{children:[E==="year"&&Se.jsx(BW,Yt({},P,G,U,{autoFocus:o,date:s,onChange:Y,shouldDisableYear:m,hasFocus:K,onFocusedViewChange:ne("year")})),E==="month"&&Se.jsx(TW,Yt({},G,U,{autoFocus:o,hasFocus:K,className:w,date:s,onChange:q,shouldDisableMonth:v,onFocusedViewChange:ne("month")})),E==="day"&&Se.jsx(dye,Yt({},P,F,G,U,{autoFocus:o,onMonthSwitchingAnimationEnd:R,onFocusedDayChange:j,reduceAnimations:g,selectedDays:[s],onSelectedDaysChange:L,shouldDisableDate:b,hasFocus:K,onFocusedViewChange:ne("day"),gridLabelId:Q}))]})})]})}),UW=e=>gn("MuiCalendarPickerSkeleton",e),e1e=fn("MuiCalendarPickerSkeleton",["root","week","daySkeleton"]),t1e=["className"],n1e=e=>{const{classes:t}=e;return vn({root:["root"],week:["week"],daySkeleton:["daySkeleton"]},UW,t)},r1e=Dt("div",{name:"MuiCalendarPickerSkeleton",slot:"Root",overridesResolver:(e,t)=>t.root})({alignSelf:"start"}),a1e=Dt("div",{name:"MuiCalendarPickerSkeleton",slot:"Week",overridesResolver:(e,t)=>t.week})({margin:`${xg}px 0`,display:"flex",justifyContent:"center"}),HW=Dt(nde,{name:"MuiCalendarPickerSkeleton",slot:"DaySkeleton",overridesResolver:(e,t)=>t.daySkeleton})(({ownerState:e})=>Yt({margin:`0 ${xg}px`},e.day===0&&{visibility:"hidden"}));HW.propTypes={ownerState:le.shape({day:le.number.isRequired}).isRequired};const o1e=[[0,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,0,0,0]];function i1e(e){const t=Tr({props:e,name:"MuiCalendarPickerSkeleton"}),{className:n}=t,r=tr(t,t1e),l=n1e(r);return Se.jsx(r1e,Yt({className:xa(l.root,n)},r,{children:o1e.map((i,o)=>Se.jsx(a1e,{className:l.week,children:i.map((a,s)=>Se.jsx(HW,{variant:"circular",width:Mm,height:Mm,className:l.daySkeleton,ownerState:{day:a}},s))},o))}))}const rf=220,Ks=36,Pm={x:rf/2,y:rf/2},VW={x:Pm.x,y:0},l1e=VW.x-Pm.x,s1e=VW.y-Pm.y,u1e=e=>e*(180/Math.PI),GW=(e,t,n)=>{const r=t-Pm.x,l=n-Pm.y,i=Math.atan2(l1e,s1e)-Math.atan2(r,l);let o=u1e(i);o=Math.round(o/e)*e,o%=360;const a=Math.floor(o/e)||0,s=r**2+l**2,u=Math.sqrt(s);return{value:a,distance:u}},c1e=(e,t,n=1)=>{const r=n*6;let{value:l}=GW(r,e,t);return l=l*n%60,l},d1e=(e,t,n)=>{const{value:r,distance:l}=GW(30,e,t);let i=r||12;return n?i%=12:l{const{classes:t}=e;return vn({root:["root"],thumb:["thumb"]},f1e,t)},g1e=Dt("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>Yt({width:2,backgroundColor:e.palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),v1e=Dt("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>Yt({width:4,height:4,backgroundColor:e.palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Ks/2}px)`,border:`${(Ks-4)/2}px solid ${e.palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:e.palette.primary.main}));function y1e(e){const t=Tr({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:l,value:i}=t,o=tr(t,h1e),a=ge.useRef(l);ge.useEffect(()=>{a.current=l},[l]);const s=Yt({},t,{shouldAnimate:a.current!==l}),u=m1e(s),c=()=>{let f=360/(l==="hours"?12:60)*i;return l==="hours"&&i>12&&(f-=360),{height:Math.round((r?.26:.4)*rf),transform:`rotateZ(${f}deg)`}};return Se.jsx(g1e,Yt({style:c(),className:xa(n,u.root),ownerState:s},o,{children:Se.jsx(v1e,{ownerState:s,className:u.thumb})}))}function b1e(e){return gn("MuiClock",e)}const x1e=fn("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton"]),w1e=e=>{const{classes:t}=e;return Wve({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"]},b1e,t)},_1e=Dt("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),T1e=Dt("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),S1e=Dt("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),k1e=Dt("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>Yt({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),C1e=Dt("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:e.palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),M1e=Dt(Fo,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>Yt({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,left:8},t.meridiemMode==="am"&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}})),P1e=Dt(Fo,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>Yt({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,right:8},t.meridiemMode==="pm"&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}}));function O1e(e){const t=Tr({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:l,children:i,date:o,getClockLabelText:a,handleMeridiemChange:s,isTimeDisabled:u,meridiemMode:c,minutesStep:d=1,onChange:f,selectedId:p,type:h,value:g,disabled:b,readOnly:v,className:m}=t,y=t,x=Hr(),_=ge.useContext(gs),w=ge.useRef(!1),S=w1e(y),k=u(g,h),C=!n&&h==="hours"&&(g<1||g>12),T=(B,z)=>{b||v||u(B,h)||f(B,z)},M=(B,z)=>{let{offsetX:N,offsetY:R}=B;if(N===void 0){const Y=B.target.getBoundingClientRect();N=B.changedTouches[0].clientX-Y.left,R=B.changedTouches[0].clientY-Y.top}const q=h==="seconds"||h==="minutes"?c1e(N,R,d):d1e(N,R,!!n);T(q,z)},O=B=>{w.current=!0,M(B,"shallow")},D=B=>{w.current&&(M(B,"finish"),w.current=!1)},P=B=>{B.buttons>0&&M(B.nativeEvent,"shallow")},E=B=>{w.current&&(w.current=!1),M(B.nativeEvent,"finish")},I=ge.useMemo(()=>h==="hours"?!0:g%5===0,[h,g]),A=h==="minutes"?d:1,F=ge.useRef(null);I5(()=>{l&&F.current.focus()},[l]);const j=B=>{if(!w.current)switch(B.key){case"Home":T(0,"partial"),B.preventDefault();break;case"End":T(h==="minutes"?59:23,"partial"),B.preventDefault();break;case"ArrowUp":T(g+A,"partial"),B.preventDefault();break;case"ArrowDown":T(g-A,"partial"),B.preventDefault();break}};return Se.jsxs(_1e,{className:xa(m,S.root),children:[Se.jsxs(T1e,{className:S.clock,children:[Se.jsx(k1e,{onTouchMove:O,onTouchEnd:D,onMouseUp:E,onMouseMove:P,ownerState:{disabled:b},className:S.squareMask}),!k&&Se.jsxs(ge.Fragment,{children:[Se.jsx(C1e,{className:S.pin}),o&&Se.jsx(y1e,{type:h,value:g,isInner:C,hasSelected:I})]}),Se.jsx(S1e,{"aria-activedescendant":p,"aria-label":a(h,o,x),ref:F,role:"listbox",onKeyDown:j,tabIndex:0,className:S.wrapper,children:i})]}),n&&(_==="desktop"||r)&&Se.jsxs(ge.Fragment,{children:[Se.jsx(M1e,{onClick:v?void 0:()=>s("am"),disabled:b||c===null,ownerState:y,className:S.amButton,children:Se.jsx(mr,{variant:"caption",children:"AM"})}),Se.jsx(P1e,{disabled:b||c===null,onClick:v?void 0:()=>s("pm"),ownerState:y,className:S.pmButton,children:Se.jsx(mr,{variant:"caption",children:"PM"})})]})]})}function A1e(e){return gn("MuiClockNumber",e)}const Oh=fn("MuiClockNumber",["root","selected","disabled"]),D1e=["className","disabled","index","inner","label","selected"],E1e=e=>{const{classes:t,selected:n,disabled:r}=e;return vn({root:["root",n&&"selected",r&&"disabled"]},A1e,t)},R1e=Dt("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Oh.disabled}`]:t.disabled},{[`&.${Oh.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>Yt({height:Ks,width:Ks,position:"absolute",left:`calc((100% - ${Ks}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:e.palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:e.palette.background.paper},[`&.${Oh.selected}`]:{color:e.palette.primary.contrastText},[`&.${Oh.disabled}`]:{pointerEvents:"none",color:e.palette.text.disabled}},t.inner&&Yt({},e.typography.body2,{color:e.palette.text.secondary})));function YW(e){const t=Tr({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:l,inner:i,label:o,selected:a}=t,s=tr(t,D1e),u=t,c=E1e(u),d=l%12/12*Math.PI*2-Math.PI/2,f=(rf-Ks-2)/2*(i?.65:1),p=Math.round(Math.cos(d)*f),h=Math.round(Math.sin(d)*f);return Se.jsx(R1e,Yt({className:xa(n,c.root),"aria-disabled":r?!0:void 0,"aria-selected":a?!0:void 0,role:"option",style:{transform:`translate(${p}px, ${h+(rf-Ks)/2}px`},ownerState:u},s,{children:o}))}const L1e=({ampm:e,date:t,getClockNumberText:n,isDisabled:r,selectedId:l,utils:i})=>{const o=t?i.getHours(t):null,a=[],s=e?1:0,u=e?12:23,c=d=>o===null?!1:e?d===12?o===12||o===0:o===d||o-12===d:o===d;for(let d=s;d<=u;d+=1){let f=d.toString();d===0&&(f="00");const p=!e&&(d===0||d>12);f=i.formatNumber(f);const h=c(d);a.push(Se.jsx(YW,{id:h?l:void 0,index:d,inner:p,selected:h,disabled:r(d),label:f,"aria-label":n(f)},d))}return a},KD=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:l})=>{const i=e.formatNumber;return[[5,i("05")],[10,i("10")],[15,i("15")],[20,i("20")],[25,i("25")],[30,i("30")],[35,i("35")],[40,i("40")],[45,i("45")],[50,i("50")],[55,i("55")],[0,i("00")]].map(([o,a],s)=>{const u=o===t;return Se.jsx(YW,{label:a,id:u?l:void 0,index:s+1,inner:!1,disabled:n(o),selected:u,"aria-label":r(a)},o)})};function XW(e){return gn("MuiClockPicker",e)}const I1e=fn("MuiClockPicker",["root","arrowSwitcher"]),$1e=e=>{const{classes:t}=e;return vn({root:["root"],arrowSwitcher:["arrowSwitcher"]},XW,t)},N1e=Dt(F5,{name:"MuiClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),F1e=Dt($W,{name:"MuiClockPicker",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),j1e=jW(),KW=ge.forwardRef(function(t,n){const r=Tr({props:t,name:"MuiClockPicker"}),{ampm:l=!1,ampmInClock:i=!1,autoFocus:o,components:a,componentsProps:s,date:u,disableIgnoringDatePartForTimeValidation:c,getClockLabelText:d,getHoursClockNumberText:f,getMinutesClockNumberText:p,getSecondsClockNumberText:h,leftArrowButtonText:g,maxTime:b,minTime:v,minutesStep:m=1,rightArrowButtonText:y,shouldDisableTime:x,showViewSwitcher:_,onChange:w,view:S,views:k=["hours","minutes"],openTo:C,onViewChange:T,className:M,disabled:O,readOnly:D}=r;j1e({leftArrowButtonText:g,rightArrowButtonText:y,getClockLabelText:d,getHoursClockNumberText:f,getMinutesClockNumberText:p,getSecondsClockNumberText:h});const P=ul(),E=g??P.openPreviousView,I=y??P.openNextView,A=d??P.clockLabelText,F=f??P.hoursClockNumberText,j=p??P.minutesClockNumberText,B=h??P.secondsClockNumberText,{openView:z,setOpenView:N,nextView:R,previousView:q,handleChangeAndOpenNext:Y}=N5({view:S,views:k,openTo:C,onViewChange:T,onChange:w}),L=bg(),W=Hr(),H=ge.useMemo(()=>u||W.setSeconds(W.setMinutes(W.setHours(L,0),0),0),[u,L,W]),{meridiemMode:G,handleMeridiemChange:te}=FW(H,l,Y),ee=ge.useCallback((K,ne)=>{const ae=NW(c,W),ie=({start:pe,end:ke})=>!(v&&ae(v,ke)||b&&ae(pe,b)),se=(pe,ke=1)=>pe%ke!==0?!1:x?!x(pe,ne):!0;switch(ne){case"hours":{const pe=GS(K,G,l),ke=W.setHours(H,pe),Ce=W.setSeconds(W.setMinutes(ke,0),0),Oe=W.setSeconds(W.setMinutes(ke,59),59);return!ie({start:Ce,end:Oe})||!se(pe)}case"minutes":{const pe=W.setMinutes(H,K),ke=W.setSeconds(pe,0),Ce=W.setSeconds(pe,59);return!ie({start:ke,end:Ce})||!se(K,m)}case"seconds":{const pe=W.setSeconds(H,K);return!ie({start:pe,end:pe})||!se(K)}default:throw new Error("not supported")}},[l,H,c,b,G,v,m,x,W]),U=ls(),Q=ge.useMemo(()=>{switch(z){case"hours":{const K=(ne,ae)=>{const ie=GS(ne,G,l);Y(W.setHours(H,ie),ae)};return{onChange:K,value:W.getHours(H),children:L1e({date:u,utils:W,ampm:l,onChange:K,getClockNumberText:F,isDisabled:ne=>O||ee(ne,"hours"),selectedId:U})}}case"minutes":{const K=W.getMinutes(H),ne=(ae,ie)=>{Y(W.setMinutes(H,ae),ie)};return{value:K,onChange:ne,children:KD({utils:W,value:K,onChange:ne,getClockNumberText:j,isDisabled:ae=>O||ee(ae,"minutes"),selectedId:U})}}case"seconds":{const K=W.getSeconds(H),ne=(ae,ie)=>{Y(W.setSeconds(H,ae),ie)};return{value:K,onChange:ne,children:KD({utils:W,value:K,onChange:ne,getClockNumberText:B,isDisabled:ae=>O||ee(ae,"seconds"),selectedId:U})}}default:throw new Error("You must provide the type for ClockView")}},[z,W,u,l,F,j,B,G,Y,H,ee,U,O]),V=r,X=$1e(V);return Se.jsxs(N1e,{ref:n,className:xa(X.root,M),ownerState:V,children:[_&&Se.jsx(F1e,{className:X.arrowSwitcher,leftArrowButtonText:E,rightArrowButtonText:I,components:a,componentsProps:s,onLeftClick:()=>N(q),onRightClick:()=>N(R),isLeftDisabled:!q,isRightDisabled:!R,ownerState:V}),Se.jsx(O1e,Yt({autoFocus:o,date:u,ampmInClock:i,type:z,ampm:l,getClockLabelText:A,minutesStep:m,isTimeDisabled:ee,meridiemMode:G,handleMeridiemChange:te,selectedId:U,disabled:O,readOnly:D},Q))]})}),ZW=e=>e.length===1&&e[0]==="year",QW=e=>e.length===2&&e.indexOf("month")!==-1&&e.indexOf("year")!==-1,z1e=(e,t)=>ZW(e)?{inputFormat:t.formats.year}:QW(e)?{disableMaskedInput:!0,inputFormat:t.formats.monthAndYear}:{inputFormat:t.formats.keyboardDate};function j5(e,t){var n;const r=Hr(),l=yg(),i=Tr({props:e,name:t}),o=(n=i.views)!=null?n:["year","day"];return Yt({openTo:"day",disableFuture:!1,disablePast:!1},z1e(o,r),i,{views:o,minDate:zi(r,i.minDate,l.minDate),maxDate:zi(r,i.maxDate,l.maxDate)})}const z5={emptyValue:null,getTodayValue:e=>e.date(),parseInput:O5,areValuesEqual:(e,t,n)=>e.isEqual(t,n)};function JW(e){return gn("MuiPickersToolbar",e)}const B5=fn("MuiPickersToolbar",["root","content","penIconButton","penIconButtonLandscape"]),B1e=e=>{const{classes:t,isLandscape:n}=e;return vn({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},JW,t)},W1e=Dt("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>Yt({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),q1e=Dt(hr,{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>Yt({flex:1},!e.isLandscape&&{alignItems:"center"})),U1e=Dt(Fo,{name:"MuiPickersToolbar",slot:"PenIconButton",overridesResolver:(e,t)=>[{[`&.${B5.penIconButtonLandscape}`]:t.penIconButtonLandscape},t.penIconButton]})({}),H1e=e=>e==="clock"?Se.jsx(IW,{color:"inherit"}):Se.jsx(LW,{color:"inherit"}),W5=ge.forwardRef(function(t,n){const r=Tr({props:t,name:"MuiPickersToolbar"}),{children:l,className:i,getMobileKeyboardInputViewButtonText:o,isLandscape:a,isMobileKeyboardViewOpen:s,landscapeDirection:u="column",toggleMobileKeyboardView:c,toolbarTitle:d,viewType:f="calendar"}=r,p=r,h=ul(),g=B1e(p);return Se.jsxs(W1e,{ref:n,className:xa(g.root,i),ownerState:p,children:[Se.jsx(mr,{color:"text.secondary",variant:"overline",children:d}),Se.jsxs(q1e,{container:!0,justifyContent:"space-between",className:g.content,ownerState:p,direction:a?u:"row",alignItems:a?"flex-start":"flex-end",children:[l,Se.jsx(U1e,{onClick:c,className:g.penIconButton,ownerState:p,color:"inherit","aria-label":o?o(s,f):h.inputModeToggleButtonAriaLabel(s,f),children:s?H1e(f):Se.jsx(gye,{color:"inherit"})})]})]})});function V1e(e){return gn("MuiDatePickerToolbar",e)}const G1e=fn("MuiDatePickerToolbar",["root","title"]),Y1e=["parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],X1e=e=>{const{classes:t}=e;return vn({root:["root"],title:["title"]},V1e,t)},K1e=Dt(W5,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Z1e=Dt(mr,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>Yt({},e.isLandscape&&{margin:"auto 16px auto auto"})),q5=ge.forwardRef(function(t,n){const r=Tr({props:t,name:"MuiDatePickerToolbar"}),{parsedValue:l,isLandscape:i,isMobileKeyboardViewOpen:o,toggleMobileKeyboardView:a,toolbarFormat:s,toolbarPlaceholder:u="––",toolbarTitle:c,views:d}=r,f=tr(r,Y1e),p=Hr(),h=ul(),g=X1e(r),b=c??h.datePickerDefaultToolbarTitle,v=ge.useMemo(()=>l?s?p.formatByString(l,s):ZW(d)?p.format(l,"year"):QW(d)?p.format(l,"month"):/en/.test(p.getCurrentLocaleCode())?p.format(l,"normalDateWithWeekday"):p.format(l,"normalDate"):u,[l,s,u,p,d]),m=r;return Se.jsx(K1e,Yt({ref:n,toolbarTitle:b,isMobileKeyboardViewOpen:o,toggleMobileKeyboardView:a,isLandscape:i,className:g.root},f,{children:Se.jsx(Z1e,{variant:"h4",align:i?"left":"center",ownerState:m,className:g.title,children:v})}))}),Q1e=["onAccept","onClear","onCancel","onSetToday","actions"],U5=e=>{const{onAccept:t,onClear:n,onCancel:r,onSetToday:l,actions:i}=e,o=tr(e,Q1e),a=ge.useContext(gs),s=ul(),u=typeof i=="function"?i(a):i;if(u==null||u.length===0)return null;const c=u==null?void 0:u.map(d=>{switch(d){case"clear":return Se.jsx(tl,{onClick:n,children:s.clearButtonLabel},d);case"cancel":return Se.jsx(tl,{onClick:r,children:s.cancelButtonLabel},d);case"accept":return Se.jsx(tl,{onClick:t,children:s.okButtonLabel},d);case"today":return Se.jsx(tl,{onClick:l,children:s.todayButtonLabel},d);default:return null}});return Se.jsx(xse,Yt({},o,{children:c}))};function J1e(e){return gn("MuiPickersPopper",e)}fn("MuiPickersPopper",["root","paper"]);const ebe=["onClick","onTouchStart"],tbe=e=>{const{classes:t}=e;return vn({root:["root"],paper:["paper"]},J1e,t)},nbe=Dt(c5,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),rbe=Dt(pu,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>Yt({transformOrigin:"top center",outline:0},e.placement==="top"&&{transformOrigin:"bottom center"}));function abe(e,t){return t.documentElement.clientWidth{if(!e)return;function s(){i.current=!0}return document.addEventListener("mousedown",s,!0),document.addEventListener("touchstart",s,!0),()=>{document.removeEventListener("mousedown",s,!0),document.removeEventListener("touchstart",s,!0),i.current=!1}},[e]);const o=ho(s=>{if(!i.current)return;const u=r.current;r.current=!1;const c=qa(l.current);if(!l.current||"clientX"in s&&abe(s,c))return;if(n.current){n.current=!1;return}let d;s.composedPath?d=s.composedPath().indexOf(l.current)>-1:d=!c.documentElement.contains(s.target)||l.current.contains(s.target),!d&&!u&&t(s)}),a=()=>{r.current=!0};return ge.useEffect(()=>{if(e){const s=qa(l.current),u=()=>{n.current=!0};return s.addEventListener("touchstart",o),s.addEventListener("touchmove",u),()=>{s.removeEventListener("touchstart",o),s.removeEventListener("touchmove",u)}}},[e,o]),ge.useEffect(()=>{if(e){const s=qa(l.current);return s.addEventListener("click",o),()=>{s.removeEventListener("click",o),r.current=!1}}},[e,o]),[l,a,a]}function ibe(e){var t;const n=Tr({props:e,name:"MuiPickersPopper"}),{anchorEl:r,children:l,containerRef:i=null,onBlur:o,onClose:a,onClear:s,onAccept:u,onCancel:c,onSetToday:d,open:f,PopperProps:p,role:h,TransitionComponent:g=Jd,TrapFocusProps:b,PaperProps:v={},components:m,componentsProps:y}=n;ge.useEffect(()=>{function j(B){f&&(B.key==="Escape"||B.key==="Esc")&&a()}return document.addEventListener("keydown",j),()=>{document.removeEventListener("keydown",j)}},[a,f]);const x=ge.useRef(null);ge.useEffect(()=>{h!=="tooltip"&&(f?x.current=bW(document):x.current&&x.current instanceof HTMLElement&&setTimeout(()=>{x.current instanceof HTMLElement&&x.current.focus()}))},[f,h]);const[_,w,S]=obe(f,o??a),k=ge.useRef(null),C=Er(k,i),T=Er(C,_),M=n,O=tbe(M),{onClick:D,onTouchStart:P}=v,E=tr(v,ebe),I=j=>{j.key==="Escape"&&(j.stopPropagation(),a())},A=(t=m==null?void 0:m.ActionBar)!=null?t:U5,F=(m==null?void 0:m.PaperContent)||ge.Fragment;return Se.jsx(nbe,Yt({transition:!0,role:h,open:f,anchorEl:r,onKeyDown:I,className:O.root},p,{children:({TransitionProps:j,placement:B})=>Se.jsx(Nz,Yt({open:f,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:h==="tooltip",isEnabled:()=>!0},b,{children:Se.jsx(g,Yt({},j,{children:Se.jsx(rbe,Yt({tabIndex:-1,elevation:8,ref:T,onClick:z=>{w(z),D&&D(z)},onTouchStart:z=>{S(z),P&&P(z)},ownerState:Yt({},M,{placement:B}),className:O.paper},E,{children:Se.jsxs(F,Yt({},y==null?void 0:y.paperContent,{children:[l,Se.jsx(A,Yt({onAccept:u,onClear:s,onCancel:c,onSetToday:d,actions:[]},y==null?void 0:y.actionBar))]}))}))}))}))}))}function H5(e){const{children:t,DateInputProps:n,KeyboardDateInputComponent:r,onClear:l,onDismiss:i,onCancel:o,onAccept:a,onSetToday:s,open:u,PopperProps:c,PaperProps:d,TransitionComponent:f,components:p,componentsProps:h}=e,g=ge.useRef(null),b=Er(n.inputRef,g);return Se.jsxs(gs.Provider,{value:"desktop",children:[Se.jsx(r,Yt({},n,{inputRef:b})),Se.jsx(ibe,{role:"dialog",open:u,anchorEl:g.current,TransitionComponent:f,PopperProps:c,PaperProps:d,onClose:i,onCancel:o,onClear:l,onAccept:a,onSetToday:s,components:p,componentsProps:h,children:t})]})}const lbe=e=>{const[,t]=ge.useReducer(s=>s+1,0),n=ge.useRef(null),{replace:r,append:l}=e,i=r?r(e.format(e.value)):e.format(e.value),o=ge.useRef(!1),a=s=>{const u=s.target.value;n.current=[u,s.target,u.length>i.length,o.current,i===e.format(u)],t()};return ge.useLayoutEffect(()=>{if(n.current==null)return;let[s,u,c,d,f]=n.current;n.current=null;const p=d&&f,g=s.slice(u.selectionStart).search(e.accept||/\d/g),b=g!==-1?g:0,v=w=>(w.match(e.accept||/\d/g)||[]).join(""),m=v(s.substr(0,u.selectionStart)),y=w=>{let S=0,k=0;for(let C=0;C!==m.length;++C){let T=w.indexOf(m[C],S)+1,M=v(w).indexOf(m[C],k)+1;M-k>1&&(T=S,M=k),k=Math.max(M,k),S=Math.max(S,T)}return S};if(e.mask===!0&&c&&!f){let w=y(s);const S=v(s.substr(w))[0];w=s.indexOf(S,w),s=`${s.substr(0,w)}${s.substr(w+1)}`}let x=e.format(s);l!=null&&u.selectionStart===s.length&&!f&&(c?x=l(x):v(x.slice(-1))===""&&(x=x.slice(0,-1)));const _=r?r(x):x;return i===_?t():e.onChange(_),()=>{let w=y(x);if(e.mask!=null&&(c||d&&!p))for(;x[w]&&v(x[w])==="";)w+=1;u.selectionStart=u.selectionEnd=w+(p?1+b:0)}}),ge.useEffect(()=>{const s=c=>{c.code==="Delete"&&(o.current=!0)},u=c=>{c.code==="Delete"&&(o.current=!1)};return document.addEventListener("keydown",s),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",s),document.removeEventListener("keyup",u)}},[]),{value:n.current!=null?n.current[0]:i,onChange:a}},YS=(e,t,n)=>{const r=e.date(t);return t===null?"":e.isValid(r)?e.formatByString(r,n):""},Ey="_",eq="2019-11-21T22:30:00.000",tq="2019-01-01T09:00:00.000";function sbe(e,t,n,r){if(e)return e;const i=r.formatByString(r.date(tq),t).replace(n,Ey),o=r.formatByString(r.date(eq),t).replace(n,"_");return i===o?i:""}function ube(e,t,n,r){if(!e)return!1;const i=r.formatByString(r.date(tq),t).replace(n,Ey),o=r.formatByString(r.date(eq),t).replace(n,"_"),a=o===i&&e===o;return!a&&r.lib,a}const cbe=(e,t)=>n=>{let r=0;return n.split("").map((l,i)=>{if(t.lastIndex=0,r>e.length-1)return"";const o=e[r],a=e[r+1],s=t.test(l)?l:"",u=o===Ey?s:o+s;return r+=u.length,i===n.length-1&&a&&a!==Ey?u?u+a:"":u}).join("")},dbe=({acceptRegex:e=/[\d]/gi,disabled:t,disableMaskedInput:n,ignoreInvalidInputs:r,inputFormat:l,inputProps:i,label:o,mask:a,onChange:s,rawValue:u,readOnly:c,rifmFormatter:d,TextFieldProps:f,validationError:p})=>{const h=Hr(),g=h.getFormatHelperText(l),{shouldUseMaskedInput:b,maskToUse:v}=ge.useMemo(()=>{if(n)return{shouldUseMaskedInput:!1,maskToUse:""};const P=sbe(a,l,e,h);return{shouldUseMaskedInput:ube(P,l,e,h),maskToUse:P}},[e,n,l,a,h]),m=ge.useMemo(()=>b&&v?cbe(v,e):P=>P,[e,v,b]),y=u===null?null:h.date(u),[x,_]=ge.useState(y),[w,S]=ge.useState(YS(h,u,l)),k=ge.useRef(),C=ge.useRef(h.locale),T=ge.useRef(l);ge.useEffect(()=>{const P=u!==k.current,E=h.locale!==C.current,I=l!==T.current;if(k.current=u,C.current=h.locale,T.current=l,!P&&!E&&!I)return;const A=u===null?null:h.date(u),F=u===null||h.isValid(A);let j=x===null&&A===null;if(x!==null&&A!==null){const z=h.isEqual(x,A);if(z)j=!0;else{const N=Math.abs(h.getDiff(x,A));j=N===0?z:N<1e3}}if(!E&&!I&&(!F||j))return;const B=YS(h,u,l);_(A),S(B)},[h,u,l,x]);const M=P=>{const E=P===""||P===a?"":P;S(E);const I=E===null?null:h.parse(E,l);r&&!h.isValid(I)||(_(I),s(I,E||void 0))},O=lbe({value:w,onChange:M,format:d||m});return Yt({label:o,disabled:t,error:p,inputProps:Yt({},b?O:{value:w,onChange:P=>{M(P.currentTarget.value)}},{disabled:t,placeholder:g,readOnly:c,type:b?"tel":"text"},i)},f)},fbe=["className","components","disableOpenPicker","getOpenDialogAriaText","InputAdornmentProps","InputProps","inputRef","openPicker","OpenPickerButtonProps","renderInput"],Zb=ge.forwardRef(function(t,n){const{className:r,components:l={},disableOpenPicker:i,getOpenDialogAriaText:o,InputAdornmentProps:a,InputProps:s,inputRef:u,openPicker:c,OpenPickerButtonProps:d,renderInput:f}=t,p=tr(t,fbe),h=ul(),g=o??h.openDatePickerDialogue,b=Hr(),v=dbe(p),m=(a==null?void 0:a.position)||"end",y=l.OpenPickerIcon||LW;return f(Yt({ref:n,inputRef:u,className:r},v,{InputProps:Yt({},s,{[`${m}Adornment`]:i?void 0:Se.jsx(Yz,Yt({position:m},a,{children:Se.jsx(Fo,Yt({edge:m,disabled:p.disabled||p.readOnly,"aria-label":g(p.rawValue,b)},d,{onClick:c,children:Se.jsx(y,{})}))}))})}))});function ZD(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const pbe=(e,t)=>{const[n,r]=ge.useState(ZD);return I5(()=>{const i=()=>{r(ZD())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),$u(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},hbe=({autoFocus:e,openView:t})=>{const[n,r]=ge.useState(e?t:null),l=ge.useCallback(i=>o=>{r(o?i:a=>i===a?null:a)},[]);return{focusedView:n,setFocusedView:l}};function mbe(e){return gn("MuiCalendarOrClockPicker",e)}fn("MuiCalendarOrClockPicker",["root","mobileKeyboardInputView"]);const gbe=["autoFocus","className","parsedValue","DateInputProps","isMobileKeyboardViewOpen","onDateChange","onViewChange","openTo","orientation","showToolbar","toggleMobileKeyboardView","ToolbarComponent","toolbarFormat","toolbarPlaceholder","toolbarTitle","views","dateRangeIcon","timeIcon","hideTabs","classes"],vbe=e=>{const{classes:t}=e;return vn({root:["root"],mobileKeyboardInputView:["mobileKeyboardInputView"]},mbe,t)},ybe=Dt("div",{name:"MuiCalendarOrClockPicker",slot:"MobileKeyboardInputView",overridesResolver:(e,t)=>t.mobileKeyboardInputView})({padding:"16px 24px"}),bbe=Dt("div",{name:"MuiCalendarOrClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>Yt({display:"flex",flexDirection:"column"},e.isLandscape&&{flexDirection:"row"})),xbe={fullWidth:!0},QD=e=>e==="year"||e==="month"||e==="day",JD=e=>e==="hours"||e==="minutes"||e==="seconds";function vs(e){var t,n;const r=Tr({props:e,name:"MuiCalendarOrClockPicker"}),{autoFocus:l,parsedValue:i,DateInputProps:o,isMobileKeyboardViewOpen:a,onDateChange:s,onViewChange:u,openTo:c,orientation:d,showToolbar:f,toggleMobileKeyboardView:p,ToolbarComponent:h=()=>null,toolbarFormat:g,toolbarPlaceholder:b,toolbarTitle:v,views:m,dateRangeIcon:y,timeIcon:x,hideTabs:_}=r,w=tr(r,gbe),S=(t=w.components)==null?void 0:t.Tabs,k=pbe(m,d),C=ge.useContext(gs),T=vbe(r),M=f??C!=="desktop",O=!_&&typeof window<"u"&&window.innerHeight>667,D=ge.useCallback((B,z)=>{s(B,C,z)},[s,C]),P=ge.useCallback(B=>{a&&p(),u&&u(B)},[a,u,p]),{openView:E,setOpenView:I,handleChangeAndOpenNext:A}=N5({view:void 0,views:m,openTo:c,onChange:D,onViewChange:P}),{focusedView:F,setFocusedView:j}=hbe({autoFocus:l,openView:E});return Se.jsxs(bbe,{ownerState:{isLandscape:k},className:T.root,children:[M&&Se.jsx(h,Yt({},w,{views:m,isLandscape:k,parsedValue:i,onChange:D,setOpenView:I,openView:E,toolbarTitle:v,toolbarFormat:g,toolbarPlaceholder:b,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:p})),O&&!!S&&Se.jsx(S,Yt({dateRangeIcon:y,timeIcon:x,view:E,onChange:I},(n=w.componentsProps)==null?void 0:n.tabs)),Se.jsx(F5,{children:a?Se.jsx(ybe,{className:T.mobileKeyboardInputView,children:Se.jsx(Zb,Yt({},o,{ignoreInvalidInputs:!0,disableOpenPicker:!0,TextFieldProps:xbe}))}):Se.jsxs(ge.Fragment,{children:[QD(E)&&Se.jsx(qW,Yt({autoFocus:l,date:i,onViewChange:I,onChange:A,view:E,views:m.filter(QD),focusedView:F,onFocusedViewChange:j},w)),JD(E)&&Se.jsx(KW,Yt({},w,{autoFocus:l,date:i,view:E,views:m.filter(JD),onChange:A,onViewChange:I,showViewSwitcher:C==="desktop"}))]})})]})}const wbe=({open:e,onOpen:t,onClose:n})=>{const r=ge.useRef(typeof e=="boolean").current,[l,i]=ge.useState(!1);ge.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");i(e)}},[r,e]);const o=ge.useCallback(a=>{r||i(a),a&&t&&t(),!a&&n&&n()},[r,t,n]);return{isOpen:l,setIsOpen:o}},ys=(e,t)=>{const{onAccept:n,onChange:r,value:l,closeOnSelect:i}=e,o=Hr(),{isOpen:a,setIsOpen:s}=wbe(e),u=ge.useMemo(()=>t.parseInput(o,l),[t,o,l]),[c,d]=ge.useState(u),[f,p]=ge.useState(()=>({committed:u,draft:u,resetFallback:u})),h=ge.useCallback(w=>{p(S=>{switch(w.action){case"setAll":case"acceptAndClose":return{draft:w.value,committed:w.value,resetFallback:w.value};case"setCommitted":return Yt({},S,{draft:w.value,committed:w.value});case"setDraft":return Yt({},S,{draft:w.value});default:return S}}),(w.forceOnChangeCall||!w.skipOnChangeCall&&!t.areValuesEqual(o,f.committed,w.value))&&r(w.value),w.action==="acceptAndClose"&&(s(!1),n&&!t.areValuesEqual(o,f.resetFallback,w.value)&&n(w.value))},[n,r,s,f,o,t]);ge.useEffect(()=>{o.isValid(u)&&d(u)},[o,u]),ge.useEffect(()=>{a&&h({action:"setAll",value:u,skipOnChangeCall:!0})},[a]),t.areValuesEqual(o,f.committed,u)||h({action:"setCommitted",value:u,skipOnChangeCall:!0});const g=ge.useMemo(()=>({open:a,onClear:()=>{h({value:t.emptyValue,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(o,l,t.emptyValue)})},onAccept:()=>{h({value:f.draft,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(o,l,u)})},onDismiss:()=>{h({value:f.committed,action:"acceptAndClose"})},onCancel:()=>{h({value:f.resetFallback,action:"acceptAndClose"})},onSetToday:()=>{h({value:t.getTodayValue(o),action:"acceptAndClose"})}}),[h,a,o,f,t,l,u]),[b,v]=ge.useState(!1),m=ge.useMemo(()=>({parsedValue:f.draft,isMobileKeyboardViewOpen:b,toggleMobileKeyboardView:()=>v(!b),onDateChange:(w,S,k="partial")=>{switch(k){case"shallow":return h({action:"setDraft",value:w,skipOnChangeCall:!0});case"partial":return h({action:"setDraft",value:w});case"finish":return h(i??S==="desktop"?{value:w,action:"acceptAndClose"}:{value:w,action:"setCommitted"});default:throw new Error("MUI: Invalid selectionState passed to `onDateChange`")}}}),[h,b,f.draft,i]),y=ge.useCallback((w,S)=>{const k=t.valueReducer?t.valueReducer(o,c,w):w;r(k,S)},[r,t,c,o]),x=ge.useMemo(()=>({onChange:y,open:a,rawValue:l,openPicker:()=>s(!0)}),[y,a,l,s]),_={pickerProps:m,inputProps:x,wrapperProps:g};return ge.useDebugValue(_,()=>({MuiPickerState:{dateState:f,other:_}})),_},_be=["onChange","PopperProps","PaperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],nq=ge.forwardRef(function(t,n){const r=j5(t,"MuiDesktopDatePicker"),l=E5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=ys(r,z5),{PopperProps:s,PaperProps:u,ToolbarComponent:c=q5,TransitionComponent:d,components:f,componentsProps:p}=r,h=tr(r,_be),g=Yt({},o,h,{components:f,componentsProps:p,ref:n,validationError:l});return Se.jsx(H5,Yt({},a,{DateInputProps:g,KeyboardDateInputComponent:Zb,PopperProps:s,PaperProps:u,TransitionComponent:d,components:f,componentsProps:p,children:Se.jsx(vs,Yt({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:c,DateInputProps:g,components:f,componentsProps:p},h))}))}),Tbe=Dt(gse)({[`& .${Vh.container}`]:{outline:0},[`& .${Vh.paper}`]:{outline:0,minWidth:$5}}),Sbe=Dt(kse)({"&:first-of-type":{padding:0}}),kbe=e=>{var t;const{children:n,DialogProps:r={},onAccept:l,onClear:i,onDismiss:o,onCancel:a,onSetToday:s,open:u,components:c,componentsProps:d}=e,f=(t=c==null?void 0:c.ActionBar)!=null?t:U5;return Se.jsxs(Tbe,Yt({open:u,onClose:o},r,{children:[Se.jsx(Sbe,{children:n}),Se.jsx(f,Yt({onAccept:l,onClear:i,onCancel:a,onSetToday:s,actions:["cancel","accept"]},d==null?void 0:d.actionBar))]}))},Cbe=["children","DateInputProps","DialogProps","onAccept","onClear","onDismiss","onCancel","onSetToday","open","PureDateInputComponent","components","componentsProps"];function V5(e){const{children:t,DateInputProps:n,DialogProps:r,onAccept:l,onClear:i,onDismiss:o,onCancel:a,onSetToday:s,open:u,PureDateInputComponent:c,components:d,componentsProps:f}=e,p=tr(e,Cbe);return Se.jsxs(gs.Provider,{value:"mobile",children:[Se.jsx(c,Yt({components:d},p,n)),Se.jsx(kbe,{DialogProps:r,onAccept:l,onClear:i,onDismiss:o,onCancel:a,onSetToday:s,open:u,components:d,componentsProps:f,children:t})]})}const G5=ge.forwardRef(function(t,n){const{disabled:r,getOpenDialogAriaText:l,inputFormat:i,InputProps:o,inputRef:a,label:s,openPicker:u,rawValue:c,renderInput:d,TextFieldProps:f={},validationError:p,className:h}=t,g=ul(),b=l??g.openDatePickerDialogue,v=Hr(),m=ge.useMemo(()=>Yt({},o,{readOnly:!0}),[o]),y=YS(v,c,i),x=ho(_=>{_.stopPropagation(),u()});return d(Yt({label:s,disabled:r,ref:n,inputRef:a,error:p,InputProps:m,className:h},!t.readOnly&&!t.disabled&&{onClick:x},{inputProps:Yt({disabled:r,readOnly:!0,"aria-readonly":!0,"aria-label":b(c,v),value:y},!t.readOnly&&{onClick:x},{onKeyDown:yW(u)})},f))}),Mbe=["ToolbarComponent","value","onChange","components","componentsProps"],rq=ge.forwardRef(function(t,n){const r=j5(t,"MuiMobileDatePicker"),l=E5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=ys(r,z5),{ToolbarComponent:s=q5,components:u,componentsProps:c}=r,d=tr(r,Mbe),f=Yt({},o,d,{components:u,componentsProps:c,ref:n,validationError:l});return Se.jsx(V5,Yt({},d,a,{DateInputProps:f,PureDateInputComponent:G5,components:u,componentsProps:c,children:Se.jsx(vs,Yt({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:s,DateInputProps:f,components:u,componentsProps:c},d))}))}),Pbe=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],Obe=ge.forwardRef(function(t,n){const r=Tr({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:l="@media (pointer: fine)",DialogProps:i,PopperProps:o,TransitionComponent:a}=r,s=tr(r,Pbe);return vb(l,{defaultMatches:!0})?Se.jsx(nq,Yt({ref:n,PopperProps:o,TransitionComponent:a},s)):Se.jsx(rq,Yt({ref:n,DialogProps:i},s))});function Y5(e,t){var n,r,l,i,o;const a=Tr({props:e,name:t}),s=Hr(),u=yg(),c=(n=a.ampm)!=null?n:s.is12HourCycleInCurrentLocale();if(a.orientation!=null&&a.orientation!=="portrait")throw new Error("We are not supporting custom orientation for DateTimePicker yet :(");return Yt({ampm:c,orientation:"portrait",openTo:"day",views:["year","day","hours","minutes"],ampmInClock:!0,acceptRegex:c?/[\dap]/gi:/\d/gi,disableMaskedInput:!1,inputFormat:c?s.formats.keyboardDateTime12h:s.formats.keyboardDateTime24h,disableIgnoringDatePartForTimeValidation:!!(a.minDateTime||a.maxDateTime),disablePast:!1,disableFuture:!1},a,{minDate:zi(s,(r=a.minDateTime)!=null?r:a.minDate,u.minDate),maxDate:zi(s,(l=a.maxDateTime)!=null?l:a.maxDate,u.maxDate),minTime:(i=a.minDateTime)!=null?i:a.minTime,maxTime:(o=a.maxDateTime)!=null?o:a.maxTime})}const X5={emptyValue:null,getTodayValue:e=>e.date(),parseInput:O5,areValuesEqual:(e,t,n)=>e.isEqual(t,n)},Abe=e=>{switch(e){case"year":case"month":case"day":return"calendar";default:return"clock"}};function Dbe(e){return gn("PrivatePickersToolbarText",e)}const eE=fn("PrivatePickersToolbarText",["root","selected"]),Ebe=["className","selected","value"],Rbe=e=>{const{classes:t,selected:n}=e;return vn({root:["root",n&&"selected"]},Dbe,t)},Lbe=Dt(mr,{name:"PrivatePickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${eE.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:e.palette.text.secondary,[`&.${eE.selected}`]:{color:e.palette.text.primary}})),K5=ge.forwardRef(function(t,n){const{className:r,value:l}=t,i=tr(t,Ebe),o=Rbe(t);return Se.jsx(Lbe,Yt({ref:n,className:xa(r,o.root),component:"span"},i,{children:l}))}),Ibe=["align","className","selected","typographyClassName","value","variant"],$be=e=>{const{classes:t}=e;return vn({root:["root"]},JW,t)},Nbe=Dt(tl,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),Cl=ge.forwardRef(function(t,n){const r=Tr({props:t,name:"MuiPickersToolbarButton"}),{align:l,className:i,selected:o,typographyClassName:a,value:s,variant:u}=r,c=tr(r,Ibe),d=$be(r);return Se.jsx(Nbe,Yt({variant:"text",ref:n,className:xa(i,d.root)},c,{children:Se.jsx(K5,{align:l,className:a,variant:u,value:s,selected:o})}))});function Fbe(e){return gn("MuiDateTimePickerToolbar",e)}const jbe=fn("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","separator"]),zbe=["ampm","parsedValue","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],Bbe=e=>{const{classes:t}=e;return vn({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer"],separator:["separator"]},Fbe,t)},Wbe=Dt(W5,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",[`& .${B5.penIconButton}`]:Yt({position:"absolute",top:8},e.direction==="rtl"?{left:8}:{right:8})})),qbe=Dt("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),Ube=Dt("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})({display:"flex"}),tE=Dt(K5,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({margin:"0 4px 0 2px",cursor:"default"});function Z5(e){const t=Tr({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,parsedValue:r,isMobileKeyboardViewOpen:l,openView:i,setOpenView:o,toggleMobileKeyboardView:a,toolbarFormat:s,toolbarPlaceholder:u="––",toolbarTitle:c,views:d}=t,f=tr(t,zbe),p=t,h=Hr(),g=ul(),b=Bbe(p),v=c??g.dateTimePickerDefaultToolbarTitle,m=x=>n?h.format(x,"hours12h"):h.format(x,"hours24h"),y=ge.useMemo(()=>r?s?h.formatByString(r,s):h.format(r,"shortDate"):u,[r,s,u,h]);return Se.jsxs(Wbe,Yt({toolbarTitle:v,isMobileKeyboardViewOpen:l,toggleMobileKeyboardView:a,className:b.root,viewType:Abe(i)},f,{isLandscape:!1,ownerState:p,children:[Se.jsxs(qbe,{className:b.dateContainer,ownerState:p,children:[d.includes("year")&&Se.jsx(Cl,{tabIndex:-1,variant:"subtitle1",onClick:()=>o("year"),selected:i==="year",value:r?h.format(r,"year"):"–"}),d.includes("day")&&Se.jsx(Cl,{tabIndex:-1,variant:"h4",onClick:()=>o("day"),selected:i==="day",value:y})]}),Se.jsxs(Ube,{className:b.timeContainer,ownerState:p,children:[d.includes("hours")&&Se.jsx(Cl,{variant:"h3",onClick:()=>o("hours"),selected:i==="hours",value:r?m(r):"--"}),d.includes("minutes")&&Se.jsxs(ge.Fragment,{children:[Se.jsx(tE,{variant:"h3",value:":",className:b.separator,ownerState:p}),Se.jsx(Cl,{variant:"h3",onClick:()=>o("minutes"),selected:i==="minutes",value:r?h.format(r,"minutes"):"--"})]}),d.includes("seconds")&&Se.jsxs(ge.Fragment,{children:[Se.jsx(tE,{variant:"h3",value:":",className:b.separator,ownerState:p}),Se.jsx(Cl,{variant:"h3",onClick:()=>o("seconds"),selected:i==="seconds",value:r?h.format(r,"seconds"):"--"})]})]})]}))}const aq=({adapter:e,value:t,props:n})=>{const{minTime:r,maxTime:l,minutesStep:i,shouldDisableTime:o,disableIgnoringDatePartForTimeValidation:a}=n,s=e.utils.date(t),u=NW(a,e.utils);if(t===null)return null;switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&u(r,s)):return"minTime";case!!(l&&u(s,l)):return"maxTime";case!!(o&&o(e.utils.getHours(s),"hours")):return"shouldDisableTime-hours";case!!(o&&o(e.utils.getMinutes(s),"minutes")):return"shouldDisableTime-minutes";case!!(o&&o(e.utils.getSeconds(s),"seconds")):return"shouldDisableTime-seconds";case!!(i&&e.utils.getMinutes(s)%i!==0):return"minutesStep";default:return null}},Hbe=(e,t)=>e===t,Q5=e=>A5(e,aq,Hbe),Vbe=["minDate","maxDate","disableFuture","shouldDisableDate","disablePast"],Gbe=({props:e,value:t,adapter:n})=>{const{minDate:r,maxDate:l,disableFuture:i,shouldDisableDate:o,disablePast:a}=e,s=tr(e,Vbe),u=D5({adapter:n,value:t,props:{minDate:r,maxDate:l,disableFuture:i,shouldDisableDate:o,disablePast:a}});return u!==null?u:aq({adapter:n,value:t,props:s})},Ybe=(e,t)=>e===t;function J5(e){return A5(e,Gbe,Ybe)}function Xbe(e){return gn("MuiDateTimePickerTabs",e)}const Kbe=fn("MuiDateTimePickerTabs",["root"]),Zbe=e=>["day","month","year"].includes(e)?"date":"time",Qbe=e=>e==="date"?"day":"hours",Jbe=e=>{const{classes:t}=e;return vn({root:["root"]},Xbe,t)},exe=Dt(TB,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>Yt({boxShadow:`0 -1px 0 0 inset ${t.palette.divider}`},e.wrapperVariant==="desktop"&&{order:1,boxShadow:`0 1px 0 0 inset ${t.palette.divider}`,[`& .${bv.indicator}`]:{bottom:"auto",top:0}})),Qb=function(t){const n=Tr({props:t,name:"MuiDateTimePickerTabs"}),{dateRangeIcon:r=Se.jsx(mye,{}),onChange:l,timeIcon:i=Se.jsx(vye,{}),view:o}=n,a=ul(),s=ge.useContext(gs),u=Yt({},n,{wrapperVariant:s}),c=Jbe(u),d=(f,p)=>{l(Qbe(p))};return Se.jsxs(exe,{ownerState:u,variant:"fullWidth",value:Zbe(o),onChange:d,className:c.root,children:[Se.jsx(jS,{value:"date","aria-label":a.dateTableLabel,icon:Se.jsx(ge.Fragment,{children:r})}),Se.jsx(jS,{value:"time","aria-label":a.timeTableLabel,icon:Se.jsx(ge.Fragment,{children:i})})]})},txe=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps","hideTabs"],oq=ge.forwardRef(function(t,n){const r=Y5(t,"MuiDesktopDateTimePicker"),l=J5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=ys(r,X5),{PaperProps:s,PopperProps:u,ToolbarComponent:c=Z5,TransitionComponent:d,components:f,componentsProps:p,hideTabs:h=!0}=r,g=tr(r,txe),b=ge.useMemo(()=>Yt({Tabs:Qb},f),[f]),v=Yt({},o,g,{components:b,componentsProps:p,ref:n,validationError:l});return Se.jsx(H5,Yt({},a,{DateInputProps:v,KeyboardDateInputComponent:Zb,PopperProps:u,PaperProps:s,TransitionComponent:d,components:b,componentsProps:p,children:Se.jsx(vs,Yt({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:c,DateInputProps:v,components:b,componentsProps:p,hideTabs:h},g))}))}),nxe=["ToolbarComponent","value","onChange","components","componentsProps","hideTabs"],iq=ge.forwardRef(function(t,n){const r=Y5(t,"MuiMobileDateTimePicker"),l=J5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=ys(r,X5),{ToolbarComponent:s=Z5,components:u,componentsProps:c,hideTabs:d=!1}=r,f=tr(r,nxe),p=ge.useMemo(()=>Yt({Tabs:Qb},u),[u]),h=Yt({},o,f,{components:p,componentsProps:c,ref:n,validationError:l});return Se.jsx(V5,Yt({},f,a,{DateInputProps:h,PureDateInputComponent:G5,components:p,componentsProps:c,children:Se.jsx(vs,Yt({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:s,DateInputProps:h,components:p,componentsProps:c,hideTabs:d},f))}))}),rxe=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],axe=ge.forwardRef(function(t,n){const r=Tr({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:l="@media (pointer: fine)",DialogProps:i,PopperProps:o,TransitionComponent:a}=r,s=tr(r,rxe);return vb(l,{defaultMatches:!0})?Se.jsx(oq,Yt({ref:n,PopperProps:o,TransitionComponent:a},s)):Se.jsx(iq,Yt({ref:n,DialogProps:i},s))});function e4(e,t){var n;const r=Tr({props:e,name:t}),l=Hr(),i=(n=r.ampm)!=null?n:l.is12HourCycleInCurrentLocale(),a=ul().openTimePickerDialogue;return Yt({ampm:i,openTo:"hours",views:["hours","minutes"],acceptRegex:i?/[\dapAP]/gi:/\d/gi,disableMaskedInput:!1,getOpenDialogAriaText:a,inputFormat:i?l.formats.fullTime12h:l.formats.fullTime24h},r,{components:Yt({OpenPickerIcon:IW},r.components)})}const t4={emptyValue:null,parseInput:O5,getTodayValue:e=>e.date(),areValuesEqual:(e,t,n)=>e.isEqual(t,n),valueReducer:(e,t,n)=>!t||!e.isValid(n)?n:e.mergeDateAndTime(t,n)};function oxe(e){return gn("MuiTimePickerToolbar",e)}const Ld=fn("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),ixe=["ampm","ampmInClock","parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarTitle","views","disabled","readOnly"],lxe=e=>{const{theme:t,isLandscape:n,classes:r}=e,l={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape",t.direction==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return vn(l,oxe,r)},sxe=Dt(W5,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({[`& .${B5.penIconButtonLandscape}`]:{marginTop:"auto"}}),uxe=Dt(K5,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),cxe=Dt("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${Ld.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${Ld.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>Yt({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"})),dxe=Dt("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${Ld.ampmLabel}`]:t.ampmLabel},{[`&.${Ld.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>Yt({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${Ld.ampmLabel}`]:{fontSize:17}}));function n4(e){const t=Tr({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,parsedValue:l,isLandscape:i,isMobileKeyboardViewOpen:o,onChange:a,openView:s,setOpenView:u,toggleMobileKeyboardView:c,toolbarTitle:d,views:f,disabled:p,readOnly:h}=t,g=tr(t,ixe),b=Hr(),v=ul(),m=d??v.timePickerDefaultToolbarTitle,y=pi(),x=!!(n&&!r),{meridiemMode:_,handleMeridiemChange:w}=FW(l,n,a),S=M=>n?b.format(M,"hours12h"):b.format(M,"hours24h"),k=t,C=lxe(Yt({},k,{theme:y})),T=Se.jsx(uxe,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:C.separator});return Se.jsxs(sxe,Yt({viewType:"clock",landscapeDirection:"row",toolbarTitle:m,isLandscape:i,isMobileKeyboardViewOpen:o,toggleMobileKeyboardView:c,ownerState:k,className:C.root},g,{children:[Se.jsxs(cxe,{className:C.hourMinuteLabel,ownerState:k,children:[$u(f,"hours")&&Se.jsx(Cl,{tabIndex:-1,variant:"h3",onClick:()=>u("hours"),selected:s==="hours",value:l?S(l):"--"}),$u(f,["hours","minutes"])&&T,$u(f,"minutes")&&Se.jsx(Cl,{tabIndex:-1,variant:"h3",onClick:()=>u("minutes"),selected:s==="minutes",value:l?b.format(l,"minutes"):"--"}),$u(f,["minutes","seconds"])&&T,$u(f,"seconds")&&Se.jsx(Cl,{variant:"h3",onClick:()=>u("seconds"),selected:s==="seconds",value:l?b.format(l,"seconds"):"--"})]}),x&&Se.jsxs(dxe,{className:C.ampmSelection,ownerState:k,children:[Se.jsx(Cl,{disableRipple:!0,variant:"subtitle2",selected:_==="am",typographyClassName:C.ampmLabel,value:b.getMeridiemText("am"),onClick:h?void 0:()=>w("am"),disabled:p}),Se.jsx(Cl,{disableRipple:!0,variant:"subtitle2",selected:_==="pm",typographyClassName:C.ampmLabel,value:b.getMeridiemText("pm"),onClick:h?void 0:()=>w("pm"),disabled:p})]})]}))}const fxe=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],lq=ge.forwardRef(function(t,n){const r=e4(t,"MuiDesktopTimePicker"),l=Q5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=ys(r,t4),{PaperProps:s,PopperProps:u,ToolbarComponent:c=n4,TransitionComponent:d,components:f,componentsProps:p}=r,h=tr(r,fxe),g=Yt({},o,h,{components:f,componentsProps:p,ref:n,validationError:l});return Se.jsx(H5,Yt({},a,{DateInputProps:g,KeyboardDateInputComponent:Zb,PopperProps:u,PaperProps:s,TransitionComponent:d,components:f,componentsProps:p,children:Se.jsx(vs,Yt({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:c,DateInputProps:g,components:f,componentsProps:p},h))}))}),pxe=["ToolbarComponent","value","onChange","components","componentsProps"],sq=ge.forwardRef(function(t,n){const r=e4(t,"MuiMobileTimePicker"),l=Q5(r)!==null,{pickerProps:i,inputProps:o,wrapperProps:a}=ys(r,t4),{ToolbarComponent:s=n4,components:u,componentsProps:c}=r,d=tr(r,pxe),f=Yt({},o,d,{components:u,componentsProps:c,ref:n,validationError:l});return Se.jsx(V5,Yt({},d,a,{DateInputProps:f,PureDateInputComponent:G5,components:u,componentsProps:c,children:Se.jsx(vs,Yt({},i,{autoFocus:!0,toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:s,DateInputProps:f,components:u,componentsProps:c},d))}))});function hxe(e){return gn("MuiPickerStaticWrapper",e)}fn("MuiPickerStaticWrapper",["root","content"]);const mxe=["displayStaticWrapperAs","onAccept","onClear","onCancel","onDismiss","onSetToday","open","children","components","componentsProps","className"],gxe=e=>{const{classes:t}=e;return vn({root:["root"],content:["content"]},hxe,t)},vxe=Dt("div",{name:"MuiPickerStaticWrapper",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),yxe=Dt("div",{name:"MuiPickerStaticWrapper",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e})=>({overflow:"hidden",minWidth:$5,display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper}));function Jb(e){var t;const n=Tr({props:e,name:"MuiPickerStaticWrapper"}),{displayStaticWrapperAs:r,onAccept:l,onClear:i,onCancel:o,onSetToday:a,children:s,components:u,componentsProps:c,className:d}=n,f=tr(n,mxe),p=gxe(n),h=(t=u==null?void 0:u.ActionBar)!=null?t:U5,g=(u==null?void 0:u.PaperContent)||ge.Fragment;return Se.jsx(gs.Provider,{value:r,children:Se.jsxs(vxe,Yt({className:xa(p.root,d)},f,{children:[Se.jsx(yxe,{className:p.content,children:Se.jsx(g,Yt({},c==null?void 0:c.paperContent,{children:s}))}),Se.jsx(h,Yt({onAccept:l,onClear:i,onCancel:o,onSetToday:a,actions:r==="desktop"?[]:["cancel","accept"]},c==null?void 0:c.actionBar))]}))})}const bxe=["ToolbarComponent","value","onChange","displayStaticWrapperAs","components","componentsProps","className"],xxe=ge.forwardRef(function(t,n){const r=j5(t,"MuiStaticDatePicker"),{ToolbarComponent:l=q5,displayStaticWrapperAs:i="mobile",components:o,componentsProps:a,className:s}=r,u=tr(r,bxe),{pickerProps:c,inputProps:d,wrapperProps:f}=ys(r,z5),p=E5(r)!==null,h=Yt({},d,u,{ref:n,validationError:p,components:o});return Se.jsx(Jb,Yt({displayStaticWrapperAs:i,components:o,componentsProps:a,className:s},f,{children:Se.jsx(vs,Yt({},c,{toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:l,DateInputProps:h,components:o,componentsProps:a},u))}))}),wxe=["displayStaticWrapperAs","onChange","ToolbarComponent","value","components","componentsProps","hideTabs","className"],_xe=ge.forwardRef(function(t,n){const r=Y5(t,"MuiStaticDateTimePicker"),{displayStaticWrapperAs:l="mobile",ToolbarComponent:i=Z5,components:o,componentsProps:a,hideTabs:s=l==="desktop",className:u}=r,c=tr(r,wxe),{pickerProps:d,inputProps:f,wrapperProps:p}=ys(r,X5),h=J5(r)!==null,g=ge.useMemo(()=>Yt({Tabs:Qb},o),[o]),b=Yt({},f,c,{ref:n,validationError:h,components:g,componentsProps:a});return Se.jsx(Jb,Yt({displayStaticWrapperAs:l,components:g,componentsProps:a,className:u},p,{children:Se.jsx(vs,Yt({},d,{toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:i,DateInputProps:b,components:g,componentsProps:a,hideTabs:s},c))}))}),Txe=["displayStaticWrapperAs","onChange","ToolbarComponent","value","components","componentsProps","className"],Sxe=ge.forwardRef(function(t,n){const r=e4(t,"MuiStaticTimePicker"),{displayStaticWrapperAs:l="mobile",ToolbarComponent:i=n4,components:o,componentsProps:a,className:s}=r,u=tr(r,Txe),c=Q5(r)!==null,{pickerProps:d,inputProps:f,wrapperProps:p}=ys(r,t4),h=Yt({},f,u,{ref:n,validationError:c,components:o,componentsProps:a});return Se.jsx(Jb,Yt({displayStaticWrapperAs:l,components:o,componentsProps:a,className:s},p,{children:Se.jsx(vs,Yt({},d,{toolbarTitle:r.label||r.toolbarTitle,ToolbarComponent:i,DateInputProps:h,components:o,componentsProps:a},u))}))}),kxe=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],Cxe=ge.forwardRef(function(t,n){const r=Tr({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:l="@media (pointer: fine)",DialogProps:i,PopperProps:o,TransitionComponent:a}=r,s=tr(r,kxe);return vb(l,{defaultMatches:!0})?Se.jsx(lq,Yt({ref:n,PopperProps:o,TransitionComponent:a},s)):Se.jsx(sq,Yt({ref:n,DialogProps:i},s))});/** @license MUI X v5.0.20 * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */const e2e=Object.freeze(Object.defineProperty({__proto__:null,CalendarPicker:tW,CalendarPickerSkeleton:R1e,ClockPicker:sW,DEFAULT_LOCALE:IB,DatePicker:nxe,DateTimePicker:Dxe,DateTimePickerTabs:xb,DesktopDatePicker:hW,DesktopDateTimePicker:vW,DesktopTimePicker:bW,LocalizationProvider:rye,MobileDatePicker:mW,MobileDateTimePicker:yW,MobileTimePicker:xW,MonthPicker:NB,MuiPickersAdapterContext:BM,PickerStaticWrapper:wb,PickersDay:qB,StaticDatePicker:Gxe,StaticDateTimePicker:Xxe,StaticTimePicker:Zxe,TimePicker:Jxe,YearPicker:JB,beBY:Jve,calendarPickerClasses:w1e,calendarPickerSkeletonClasses:M1e,clockClasses:G1e,clockNumberClasses:mh,clockPickerClasses:sbe,clockPointerClasses:z1e,csCZ:kve,datePickerToolbarClasses:xbe,dateTimePickerTabsClasses:Txe,dateTimePickerToolbarClasses:fxe,dayPickerClasses:Oye,deDE:pve,enUS:Ave,esES:gve,faIR:yve,fiFI:wve,frFR:Mve,getCalendarPickerSkeletonUtilityClass:nW,getCalendarPickerUtilityClass:eW,getClockPickerUtilityClass:lW,getMonthPickerUtilityClass:$B,getPickersDayUtilityClass:zB,getYearPickerUtilityClass:QB,huHU:Ove,isIS:Hve,itIT:Nve,jaJP:Gve,koKR:qve,monthPickerClasses:aye,nbNO:Eve,nlNL:ove,pickersCalendarHeaderClasses:t1e,pickersDayClasses:hh,pickersFadeTransitionGroupClasses:pye,pickersMonthClasses:sk,pickersSlideTransitionClasses:Ka,pickersYearClasses:Eu,plPL:lve,ptBR:uve,ruRU:nye,svSE:Lve,timePickerToolbarClasses:_d,trTR:dve,ukUA:Xve,urPK:Zve,yearPickerClasses:g1e,zhCN:zve},Symbol.toStringTag,{value:"Module"})),wW=Qn(e2e);var A7;function t2e(){return A7||(A7=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Ir()),r=t(uf()),l=t(db()),i=t(fb()),o=t(RM()),a=t(IM()),s=t($M()),u=t(ge),c=t(pb),d=t(pc),f=t(sB),p=t(NM),m=t(uB),g=t(Hhe),b=t(Vhe),v=t(Ghe),h=AB,y=wW,w=t(Vr),_=["columnDef","rowData","onRowDataChange","errorState","autoFocus","onBulkEditRowChanged","scrollWidth"],x=["helperText","error"],T=["helperText","error"];function k(O){var D=S();return function(){var E=(0,s.default)(O),I;if(D){var A=(0,s.default)(this).constructor;I=Reflect.construct(E,arguments,A)}else I=E.apply(this,arguments);return(0,a.default)(this,I)}}function S(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var C=function(O){(0,o.default)(P,O);var D=k(P);function P(){return(0,l.default)(this,P),D.apply(this,arguments)}return(0,i.default)(P,[{key:"getProps",value:function(){var I=this.props;I.columnDef,I.rowData,I.onRowDataChange,I.errorState,I.autoFocus,I.onBulkEditRowChanged,I.scrollWidth;var A=(0,r.default)(I,_);return A}},{key:"renderLookupField",value:function(){var I=this,A=this.getProps(),F=A.helperText,j=A.error,z=(0,r.default)(A,x);return u.default.createElement(m.default,{error:!!j},u.default.createElement(f.default,(0,n.default)({},z,{value:this.props.value===void 0?"":this.props.value,onChange:function(N){return I.props.onChange(N.target.value)},style:{fontSize:13},inputProps:{autoFocus:this.props.autoFocus},SelectDisplayProps:{"aria-label":this.props.columnDef.title}}),Object.keys(this.props.columnDef.lookup).map(function(B){return u.default.createElement(p.default,{key:B,value:B},I.props.columnDef.lookup[B])})),!!F&&u.default.createElement(g.default,null,F))}},{key:"renderBooleanField",value:function(){var I=this,A=this.getProps(),F=A.helperText,j=A.error,z=(0,r.default)(A,T);return u.default.createElement(m.default,{error:!!j,component:"fieldset"},u.default.createElement(b.default,null,u.default.createElement(v.default,{label:"",control:u.default.createElement(d.default,(0,n.default)({},z,{value:String(this.props.value),checked:!!this.props.value,onChange:function(N){return I.props.onChange(N.target.checked)},style:{padding:0,width:24,marginLeft:9},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title}}))})),u.default.createElement(g.default,null,F))}},{key:"renderDateField",value:function(){var I=this.props.columnDef.dateSetting&&this.props.columnDef.dateSetting.format?this.props.columnDef.dateSetting.format:"dd.MM.yyyy";return u.default.createElement(y.LocalizationProvider,{dateAdapter:h.AdapterDateFns,locale:this.props.locale},u.default.createElement(y.DatePicker,(0,n.default)({},this.getProps(),{renderInput:function(F){return u.default.createElement(c.default,F)},format:I,value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderTimeField",value:function(){return u.default.createElement(y.LocalizationProvider,{dateAdapter:h.AdapterDateFns,locale:this.props.locale},u.default.createElement(y.TimePicker,(0,n.default)({},this.getProps(),{renderInput:function(A){return u.default.createElement(c.default,A)},format:"HH:mm:ss",value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderDateTimeField",value:function(){return u.default.createElement(y.LocalizationProvider,{dateAdapter:h.AdapterDateFns,locale:this.props.locale},u.default.createElement(y.DateTimePicker,(0,n.default)({},this.getProps(),{renderInput:function(A){return u.default.createElement(c.default,A)},format:"dd.MM.yyyy HH:mm:ss",value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderTextField",value:function(){var I=this;return u.default.createElement(c.default,(0,n.default)({},this.getProps(),{variant:"standard",fullWidth:!0,type:this.props.columnDef.type==="numeric"?"number":"text",placeholder:this.props.columnDef.editPlaceholder||this.props.columnDef.title,value:this.props.value===void 0?"":this.props.value,onChange:function(F){return I.props.onChange(I.props.columnDef.type==="numeric"?F.target.valueAsNumber:F.target.value)},InputProps:{style:{minWidth:50,fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title,style:this.props.columnDef.type==="numeric"?{textAlign:"right"}:{}}}))}},{key:"renderCurrencyField",value:function(){var I=this;return u.default.createElement(c.default,(0,n.default)({},this.getProps(),{variant:"standard",placeholder:this.props.columnDef.editPlaceholder||this.props.columnDef.title,type:"number",value:this.props.value===void 0?"":this.props.value,onChange:function(F){var j=F.target.valueAsNumber;return!j&&j!==0&&(j=void 0),I.props.onChange(j)},InputProps:{style:{fontSize:13,textAlign:"right"}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title,style:{textAlign:"right"}},onKeyDown:this.props.onKeyDown}))}},{key:"render",value:function(){var I="ok";return this.props.columnDef.editComponent?I=this.props.columnDef.editComponent(this.props):this.props.columnDef.lookup?I=this.renderLookupField():this.props.columnDef.type==="boolean"?I=this.renderBooleanField():this.props.columnDef.type==="date"?I=this.renderDateField():this.props.columnDef.type==="time"?I=this.renderTimeField():this.props.columnDef.type==="datetime"?I=this.renderDateTimeField():this.props.columnDef.type==="currency"?I=this.renderCurrencyField():I=this.renderTextField(),I}}]),P}(u.default.Component);C.propTypes={value:w.default.any,onChange:w.default.func.isRequired,columnDef:w.default.object.isRequired,locale:w.default.object,rowData:w.default.object,onRowDataChange:w.default.func,errorState:w.default.func,autoFocus:w.default.bool,onBulkEditRowChanged:w.default.func,scrollWidth:w.default.number,onKeyDown:w.default.func};var M=C;e.default=M}(Jw)),Jw}var h_={},m0={},D7;function _W(){if(D7)return m0;D7=1;var e=Cn;Object.defineProperty(m0,"__esModule",{value:!0}),m0.validateInput=i;var t=e($a()),n=e(_a());function r(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(o);a&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(o,c).enumerable})),s.push.apply(s,u)}return s}function l(o){for(var a=1;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var h=function(w){(0,i.default)(x,w);var _=b(x);function x(T){var k;return(0,n.default)(this,x),k=_.call(this,T),(0,s.default)((0,l.default)(k),"getStyle",function(){var S={boxShadow:"2px 0px 15px rgba(125,147,178,.25)",color:"inherit",width:k.props.columnDef.tableData.width,boxSizing:"border-box",fontSize:"inherit",fontFamily:"inherit",fontWeight:"inherit",padding:"0 16px"};return typeof k.props.columnDef.cellStyle=="function"?S=g(g({},S),k.props.columnDef.cellStyle(k.state.value,k.props.rowData)):S=g(g({},S),k.props.columnDef.cellStyle),typeof k.props.cellEditable.cellStyle=="function"?S=g(g({},S),k.props.cellEditable.cellStyle(k.state.value,k.props.rowData,k.props.columnDef)):S=g(g({},S),k.props.cellEditable.cellStyle),S}),(0,s.default)((0,l.default)(k),"handleKeyDown",function(S){S.keyCode===13?k.onApprove():S.keyCode===27&&k.onCancel()}),(0,s.default)((0,l.default)(k),"onApprove",function(){var S=(0,p.validateInput)(k.props.columnDef,k.state.value).isValid;S&&k.setState({isLoading:!0},function(){k.props.cellEditable.onCellEditApproved(k.state.value,k.props.getFieldValue(k.props.rowData,k.props.columnDef),k.props.rowData,k.props.columnDef).then(function(){k.setState({isLoading:!1}),k.props.onCellEditFinished(k.props.rowData,k.props.columnDef)}).catch(function(C){k.setState({isLoading:!1})})})}),(0,s.default)((0,l.default)(k),"onCancel",function(){k.props.onCellEditFinished(k.props.rowData,k.props.columnDef)}),k.state={errorState:{isValid:!0,helperText:""},isLoading:!1,value:T.getFieldValue(k.props.rowData,k.props.columnDef,!1)},k}return(0,r.default)(x,[{key:"renderActions",value:function(){if(this.state.isLoading)return u.default.createElement("div",{style:{display:"flex",justifyContent:"center",width:60}},u.default.createElement(f.default,{size:20}));var k=[{icon:this.props.icons.Check,tooltip:this.props.localization.saveTooltip,onClick:this.onApprove,disabled:this.state.isLoading||!this.state.errorState.isValid},{icon:this.props.icons.Clear,tooltip:this.props.localization.cancelTooltip,onClick:this.onCancel,disabled:this.state.isLoading}];return u.default.createElement(this.props.components.Actions,{actions:k,components:this.props.components,size:"small"})}},{key:"handleChange",value:function(k){var S=(0,p.validateInput)(this.props.columnDef,k);this.setState({errorState:S,value:k})}},{key:"render",value:function(){var k=this;return u.default.createElement(d.default,{size:this.props.size,style:this.getStyle(),padding:"none"},u.default.createElement("div",{style:{display:"flex",alignItems:"center"}},u.default.createElement("div",{style:{flex:1,marginRight:4}},u.default.createElement(this.props.components.EditField,{columnDef:this.props.columnDef,value:this.state.value,error:!this.state.errorState.isValid,helperText:this.state.errorState.helperText,onChange:function(C){return k.handleChange(C)},onKeyDown:this.handleKeyDown,disabled:this.state.isLoading,rowData:this.props.rowData,autoFocus:!0})),this.renderActions()))}}]),x}(u.default.Component);h.defaultProps={columnDef:{},localization:{saveTooltip:"Save",cancelTooltip:"Cancel"}},h.propTypes={cellEditable:c.default.object.isRequired,columnDef:c.default.object.isRequired,components:c.default.object.isRequired,errorState:c.default.oneOfType([c.default.object,c.default.bool]),icons:c.default.object.isRequired,localization:c.default.object.isRequired,onCellEditFinished:c.default.func.isRequired,rowData:c.default.object.isRequired,size:c.default.string,getFieldValue:c.default.func.isRequired};var y=h;e.default=y}(h_)),h_}var m_={},g_={exports:{}},v_={exports:{}},R7;function r2e(){return R7||(R7=1,function(e){function t(n){if(Array.isArray(n))return n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(v_)),v_.exports}var y_={exports:{}},L7;function a2e(){return L7||(L7=1,function(e){function t(n,r){var l=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(l!=null){var i,o,a,s,u=[],c=!0,d=!1;try{if(a=(l=l.call(n)).next,r===0){if(Object(l)!==l)return;c=!1}else for(;!(c=(i=a.call(l)).done)&&(u.push(i.value),u.length!==r);c=!0);}catch(f){d=!0,o=f}finally{try{if(!c&&l.return!=null&&(s=l.return(),Object(s)!==s))return}finally{if(d)throw o}}return u}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(y_)),y_.exports}var b_={exports:{}},I7;function o2e(){return I7||(I7=1,function(e){function t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(b_)),b_.exports}var $7;function iu(){return $7||($7=1,function(e){var t=r2e(),n=a2e(),r=iB(),l=o2e();function i(o,a){return t(o)||n(o,a)||r(o,a)||l()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}(g_)),g_.exports}const df=Qn(aae),hc=Qn(Mde);var N7;function i2e(){return N7||(N7=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Ir()),r=t($a()),l=t(_a()),i=t(iu()),o=t(ge),a=t(Vr),s=t(EM),u=t(df),c=t(hc);function d(g,b){var v=Object.keys(g);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(g);b&&(h=h.filter(function(y){return Object.getOwnPropertyDescriptor(g,y).enumerable})),v.push.apply(v,h)}return v}function f(g){for(var b=1;b0&&i.default.createElement(r.default,{colSpan:a.options.detailPanelOffset.left}),i.default.createElement(r.default,{size:a.size,colSpan:a.renderColumns.length-a.options.detailPanelOffset.left-a.options.detailPanelOffset.right,padding:"none"},i.default.createElement(n.default,{in:d,timeout:"auto",unmountOnExit:!0,mountOnEnter:!0,onExited:function(){b.current=void 0,g()}},h({rowData:a.data}))))}return g0}var Ea={},z7;function ds(){if(z7)return Ea;z7=1;var e=Cn;Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.widthToNumber=Ea.selectionMaxWidth=Ea.rowActions=Ea.reducePercentsInCalc=Ea.parseFirstLastPageButtons=Ea.elementSize=Ea.baseIconSize=Ea.actionsColumnWidth=void 0;var t=e($a()),n=e(_a());function r(p,m){var g=Object.keys(p);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(p);m&&(b=b.filter(function(v){return Object.getOwnPropertyDescriptor(p,v).enumerable})),g.push.apply(g,b)}return g}function l(p){for(var m=1;m1){var v=b[1];return m.replace(/\d*%/,"".concat(g*(v/100),"px"))}return m.replace(/\d*%/,"".concat(g,"px"))};Ea.reducePercentsInCalc=c;var d=function(m){return typeof m=="number"?m:!m||!m.match(/^\s*\d+(px)?\s*$/)?NaN:Number(m.replace(/px$/,""))};Ea.widthToNumber=d;var f=function(m,g){var b={first:!0,last:!0};return typeof m=="boolean"?b={first:m,last:m}:(0,n.default)(m)==="object"&&(b=l(l({},b),m)),g&&(b={first:b.last,last:b.first}),b};return Ea.parseFirstLastPageButtons=f,Ea}var v0={},B7;function c2e(){if(B7)return v0;B7=1;var e=Cn;Object.defineProperty(v0,"__esModule",{value:!0}),v0.useDoubleClick=n;var t=e(ge);function n(r,l){var i=t.default.useRef(0),o=t.default.useRef(null),a=t.default.useRef(null),s=t.default.useRef(null);t.default.useEffect(function(){a.current=l,s.current=r});var u=function(){clearTimeout(o.current),o.current=null,i.current=0},c=t.default.useCallback(function(d){var f=i.current+1===2,p=o.current;if(p&&f&&(u(),a.current&&a.current(d)),!p){i.current=i.current+1;var m=function(){u(),s.current&&s.current(d)};if(a.current){var g=setTimeout(m,250);o.current=g}else m()}},[]);return c}return v0}var W7;function d2e(){return W7||(W7=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(cf()),l=t(ls),i=t(hc),o=t(df),a=t(pc),s=t(Ir()),u=t(Cl),c=t($a()),d=t(uf()),f=t(ge),p=t(Vr),m=u2e(),g=x(ds()),b=c2e(),v=Db(),h=Yi(),y=["forwardedRef"],w=["data","components","detailPanel","getFieldValue","isTreeData","onRowSelected","onRowEditStarted","onTreeExpandChanged","onToggleDetailPanel","onEditingCanceled","onEditingApproved","hasAnyEditingRow","treeDataMaxLevel","path","actions","errorState","cellEditable","onCellEditStarted","onCellEditFinished","persistEvents","scrollWidth","onRowClick","onRowDoubleClick","columns"];function _(M){if(typeof WeakMap!="function")return null;var O=new WeakMap,D=new WeakMap;return(_=function(E){return E?D:O})(M)}function x(M,O){if(M&&M.__esModule)return M;if(M===null||n(M)!=="object"&&typeof M!="function")return{default:M};var D=_(O);if(D&&D.has(M))return D.get(M);var P={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var I in M)if(I!=="default"&&Object.prototype.hasOwnProperty.call(M,I)){var A=E?Object.getOwnPropertyDescriptor(M,I):null;A&&(A.get||A.set)?Object.defineProperty(P,I,A):P[I]=M[I]}return P.default=M,D&&D.set(M,P),P}function T(M,O){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(M);O&&(P=P.filter(function(E){return Object.getOwnPropertyDescriptor(M,E).enumerable})),D.push.apply(D,P)}return D}function k(M){for(var O=1;O-1)}).sort(function(Ae,Re){return Ae.tableData.columnOrder-Re.tableData.columnOrder}).map(function(Ae){var Re=D.getFieldValue(D.data,Ae);if(D.data.tableData.editCellList&&D.data.tableData.editCellList.find(function(Fe){return Fe.tableData.id===Ae.tableData.id}))return f.default.createElement(D.components.EditCell,{getFieldValue:D.getFieldValue,components:D.components,icons:I,localization:P,columnDef:Ae,size:Pe,key:"cell-"+D.data.tableData.id+"-"+Ae.tableData.id,rowData:D.data,cellEditable:D.cellEditable,onCellEditFinished:D.onCellEditFinished,scrollWidth:H});var Le=Ae.editable!=="never"&&!!D.cellEditable;Le&&D.cellEditable.isCellEditable&&(Le=D.cellEditable.isCellEditable(D.data,Ae));var $e="cell-".concat(D.data.tableData.id,"-").concat(Ae.tableData.id);return f.default.createElement(D.components.Cell,{size:Pe,errorState:D.errorState,columnDef:k({cellStyle:E.cellStyle},Ae),value:Re,key:$e,rowData:D.data,cellEditable:Le,onCellEditStarted:D.onCellEditStarted,scrollWidth:H})});return Te},Pe=g.elementSize(A),Me=W.length*g.baseIconSize(A),ce=function(Te){return f.default.createElement(u.default,{size:Pe,padding:"none",key:"key-actions-column",style:k({width:Me,padding:"0px 5px",boxSizing:"border-box"},E.actionsCellStyle)},f.default.createElement(D.components.Actions,{data:D.data,actions:Te,components:D.components,size:Pe,disabled:D.hasAnyEditingRow}))},we=function(){var Te=E.selectionProps||{};typeof Te=="function"&&(Te=Te(D.data));var Ae=g.selectionMaxWidth(A,D.treeDataMaxLevel)||0,Re=Pe!=="medium"?{padding:"4px"}:void 0;return f.default.createElement(u.default,{size:Pe,padding:"none",key:"key-selection-column",style:{width:Ae}},f.default.createElement(a.default,(0,s.default)({size:Pe,checked:D.data.tableData.checked===!0,onClick:function($e){return $e.stopPropagation()},value:D.data.tableData.id.toString(),onChange:function($e){D.onRowSelected($e,D.path,D.data)},style:Re},Te)))},K=function(Te){return{transform:Te?"rotate(90deg)":"none"}},ne=function(){return E.showDetailPanelIcon?typeof D.detailPanel=="function"?f.default.createElement(u.default,{size:Pe,padding:"none",key:"key-detail-panel-column",style:k({width:42,textAlign:"center"},E.detailPanelColumnStyle)},f.default.createElement(o.default,{"aria-label":"Detail panel visibility toggle",size:Pe,style:k({transition:"all ease 200ms"},K(D.data.tableData.showDetailPanel)),onClick:function(Ae){D.onToggleDetailPanel(D.path,D.detailPanel),Ae.stopPropagation()}},f.default.createElement(I.DetailPanel,null))):f.default.createElement(u.default,{size:Pe,padding:"none",key:"key-detail-panel-column"},f.default.createElement("div",{style:k({width:42*D.detailPanel.length,textAlign:"center",display:"flex"},E.detailPanelColumnStyle)},D.detailPanel.map(function(Te,Ae){typeof Te=="function"&&(Te=Te(D.data));var Re=(D.data.tableData.showDetailPanel||"").toString()===Te.render.toString(),Le=f.default.createElement(I.DetailPanel,null),$e=!0;return Re?Te.openIcon?(Le=f.default.createElement(v.MTableCustomIcon,{icon:Te.openIcon,iconProps:Te.iconProps}),$e=!1):Te.icon&&(Le=f.default.createElement(v.MTableCustomIcon,{icon:Te.icon,iconProps:Te.iconProps})):Te.icon&&(Le=f.default.createElement(v.MTableCustomIcon,{icon:Te.icon,iconProps:Te.iconProps}),$e=!1),Le=f.default.createElement(o.default,{"aria-label":"Detail panel visibility toggle",size:Pe,key:"key-detail-panel-"+Ae,style:k({transition:"all ease 200ms"},K($e&&Re)),disabled:Te.disabled,onClick:function(Be){D.onToggleDetailPanel(D.path,Te.render),Be.stopPropagation()}},Le),Te.tooltip&&(Le=f.default.createElement(i.default,{key:"key-detail-panel-"+Ae,title:Te.tooltip},Le)),Le}))):null},de=function(){return D.data.tableData.childRows&&D.data.tableData.childRows.length>0?f.default.createElement(u.default,{size:Pe,padding:"none",key:"key-tree-data-column",style:{width:48+9*(D.treeDataMaxLevel-2)}},f.default.createElement(o.default,{"aria-label":"Detail panel visibility toggle",size:Pe,style:k({transition:"all ease 200ms",marginLeft:D.level*9},K(D.data.tableData.isTreeExpanded)),onClick:function(Ae){D.onTreeExpandChanged(D.path,D.data),Ae.stopPropagation()}},f.default.createElement(I.DetailPanel,null))):f.default.createElement(u.default,{padding:"none",key:"key-tree-data-column"})},_e=function(Te,Ae){var Re={};return typeof E.rowStyle=="function"?Re=k(k({},Re),E.rowStyle(D.data,Te,Ae,D.hasAnyEditingRow)):E.rowStyle&&(Re=k(k({},Re),E.rowStyle)),(Z||G)&&(Re.cursor="pointer"),D.hasAnyEditingRow&&(Re.opacity=Re.opacity?Re.opacity:.2),Re},ue=Oe();E.selection&&ue.splice(0,0,we());var pe=g.rowActions(D);if(pe.length>0){if(E.actionsColumnIndex===-1)ue.push(ce(pe));else if(E.actionsColumnIndex>=0){var xe=0;E.selection&&(xe=1),ue.splice(E.actionsColumnIndex+xe,0,ce(pe))}}return D.detailPanel&&(E.detailPanelColumnAlignment==="right"?ue.push(ne()):ue.splice(0,0,ne())),D.isTreeData&&ue.splice(0,0,de()),D.columns.filter(function(ye){return ye.tableData.groupOrder>-1}).forEach(function(ye){ue.splice(0,0,f.default.createElement(u.default,{size:Pe,padding:"none",key:"key-group-cell"+ye.tableData.id}))}),f.default.createElement(f.default.Fragment,null,f.default.createElement(l.default,(0,s.default)({ref:O,selected:q},Q,{onClick:function(Te){ee&&Te.persist(),!q&&Se(Te)},hover:!!(Z||G),style:_e(D.index,D.level),"data-testid":"mtablebodyrow"}),ue),f.default.createElement(m.MTableDetailPanel,{options:E,data:D.data,detailPanel:D.detailPanel,renderColumns:ue,size:Pe}),D.data.tableData.childRows&&D.data.tableData.isTreeExpanded&&D.data.tableData.childRows.map(function(ye,Te){return ye.tableData.editing?f.default.createElement(D.components.EditRow,{columns:re,components:D.components,data:ye,icons:I,localization:P,getFieldValue:D.getFieldValue,key:Te,mode:ye.tableData.editing,isTreeData:D.isTreeData,detailPanel:D.detailPanel,onEditingCanceled:N,onEditingApproved:R,errorState:D.errorState}):f.default.createElement(D.components.Row,(0,s.default)({},D,{data:ye,index:Te,key:Te,level:D.level+1,path:[].concat((0,r.default)(D.path),[ye.tableData.uuid]),onEditingCanceled:N,onEditingApproved:R,hasAnyEditingRow:D.hasAnyEditingRow,treeDataMaxLevel:Y,errorState:D.errorState,cellEditable:U,onCellEditStarted:V,onCellEditFinished:te}))}))}S.defaultProps={actions:[],index:0,data:{},path:[],persistEvents:!1},S.propTypes={forwardedRef:p.default.element,actions:p.default.array,index:p.default.number.isRequired,data:p.default.object.isRequired,detailPanel:p.default.oneOfType([p.default.func,p.default.arrayOf(p.default.oneOfType([p.default.object,p.default.func]))]),hasAnyEditingRow:p.default.bool,onRowSelected:p.default.func,path:p.default.arrayOf(p.default.oneOfType([p.default.string,p.default.number])),persistEvents:p.default.bool,treeDataMaxLevel:p.default.number,getFieldValue:p.default.func.isRequired,columns:p.default.array,onToggleDetailPanel:p.default.func.isRequired,onRowClick:p.default.func,onRowDoubleClick:p.default.func,onEditingApproved:p.default.func,onEditingCanceled:p.default.func,errorState:p.default.oneOfType([p.default.object,p.default.bool])};var C=f.default.forwardRef(function(O,D){return f.default.createElement(S,(0,s.default)({},O,{forwardedRef:D}))});e.default=C}(w_)),w_}var __={},Ts={};const f2e=Qn(U0e);var q7;function p2e(){if(q7)return Ts;q7=1;var e=Cn;Object.defineProperty(Ts,"__esModule",{value:!0}),Ts.getCurrencyValue=i,Ts.getEmptyValue=l,Ts.getRenderValue=o,Ts.isoDateRegex=void 0;var t=e(ge),n=e(f2e),r=/^\d{4}-(0[1-9]|1[0-2])-([12]\d|0[1-9]|3[01])([T\s](([01]\d|2[0-3])\:[0-5]\d|24\:00)(\:[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3])\:?([0-5]\d)?)?)?$/;Ts.isoDateRegex=r;function l(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof a=="function"?s.columnDef.emptyValue(s.rowData):a}function i(a,s){return a!==void 0?new Intl.NumberFormat(a.locale!==void 0?a.locale:"en-US",{style:"currency",currency:a.currencyCode!==void 0?a.currencyCode:"USD",minimumFractionDigits:a.minimumFractionDigits!==void 0?a.minimumFractionDigits:2,maximumFractionDigits:a.maximumFractionDigits!==void 0?a.maximumFractionDigits:2}).format(s!==void 0?s:0):new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(s!==void 0?s:0)}function o(a,s,u){var c=a.columnDef.dateSetting&&a.columnDef.dateSetting.locale?a.columnDef.dateSetting.locale:void 0;if(a.columnDef.emptyValue!==void 0&&(a.value===void 0||a.value===null))return l(a.columnDef.emptyValue,a);if(a.rowData===void 0&&a.value&&a.columnDef.groupRender)return a.columnDef.groupRender(a.value);if(a.columnDef.render&&a.rowData)return a.columnDef.render(a.rowData);if(a.columnDef.type==="boolean"){var d={textAlign:"left",verticalAlign:"middle",width:48};return a.value?t.default.createElement(s.Check,{style:d}):t.default.createElement(s.ThirdStateCheck,{style:d})}else{if(a.columnDef.type==="date")return a.value instanceof Date?a.value.toLocaleDateString(c):r.exec(a.value)?(0,n.default)(a.value).toLocaleDateString(c):a.value;if(a.columnDef.type==="time")return a.value instanceof Date?a.value.toLocaleTimeString():r.exec(a.value)?(0,n.default)(a.value).toLocaleTimeString(c):a.value;if(a.columnDef.type==="datetime")return a.value instanceof Date?a.value.toLocaleString():r.exec(a.value)?(0,n.default)(a.value).toLocaleString(c):a.value;if(a.columnDef.type==="currency")return i(a.columnDef.currencySetting,a.value);if(typeof a.value=="boolean")return a.value.toString()}return a.value}return Ts}var ks={},U7;function _b(){if(U7)return ks;U7=1;var e=Cn,t=_a();Object.defineProperty(ks,"__esModule",{value:!0}),ks.getStyle=c,ks.setObjectByKey=ks.selectFromObject=void 0;var n=e($a()),r=i(ds());function l(d){if(typeof WeakMap!="function")return null;var f=new WeakMap,p=new WeakMap;return(l=function(g){return g?p:f})(d)}function i(d,f){if(d&&d.__esModule)return d;if(d===null||t(d)!=="object"&&typeof d!="function")return{default:d};var p=l(f);if(p&&p.has(d))return p.get(d);var m={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in d)if(b!=="default"&&Object.prototype.hasOwnProperty.call(d,b)){var v=g?Object.getOwnPropertyDescriptor(d,b):null;v&&(v.get||v.set)?Object.defineProperty(m,b,v):m[b]=d[b]}return m.default=d,p&&p.set(d,m),m}function o(d,f){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(d);f&&(m=m.filter(function(g){return Object.getOwnPropertyDescriptor(d,g).enumerable})),p.push.apply(p,m)}return p}function a(d){for(var f=1;f-1)}).sort(function(H,Z){return H.tableData.columnOrder-Z.tableData.columnOrder}).map(function(H,Z){var G=k.getFieldValue(D.data,H,!1),X=function(Oe,Pe){var Me={color:"inherit"};return typeof Oe.cellStyle=="function"?Me=_(_({},Me),Oe.cellStyle(Pe,k.data)):Me=_(_({},Me),Oe.cellStyle),Oe.disableClick&&(Me.cursor="default"),_({},Me)};Z===0&&24+k.level*20;var Q=!1;if(H.editable===void 0&&(Q=!0),H.editable==="always"&&(Q=!0),H.editable==="onAdd"&&k.mode==="add"&&(Q=!0),H.editable==="onUpdate"&&k.mode==="update"&&(Q=!0),typeof H.editable=="function"&&(Q=H.editable(H,k.data)),!H.field||!Q){var re=k.getFieldValue(D.data,H);return a.default.createElement(k.components.Cell,{size:V,icons:S,columnDef:H,value:re,key:H.tableData.id,rowData:k.data,style:X(H,G)})}else{var ae=H.editComponent,ie=(0,l.default)(H,b),se=ae||k.components.EditField,he=(0,g.validateInput)(H,D.data);return te===-1&&(te=Z),a.default.createElement(s.default,{size:V,key:H.tableData.id,align:["numeric"].indexOf(H.type)!==-1?"right":"left",style:X(H,G)},a.default.createElement(se,{key:H.tableData.id,columnDef:ie,autoFocus:te===Z,value:G,error:!he.isValid,helperText:he.helperText,locale:k.localization.dateTimePickerLocalization,rowData:D.data,onChange:function(Oe){var Pe=_({},D.data);(0,f.setObjectByKey)(Pe,H.field,Oe),P({data:Pe}),k.onBulkEditRowChanged&&k.onBulkEditRowChanged(k.data,Pe)},onRowDataChange:function(Oe){P({data:Oe}),k.onBulkEditRowChanged&&k.onBulkEditRowChanged(k.data,Oe)}}))}});return ee}var I=k.columns.every(function(V){var te=(0,g.validateInput)(V,D.data);return te.isValid}),A=function(){I&&k.onEditingApproved(k.mode,D.data,k.data)};function F(){if(k.mode!=="bulk"){var V=m.elementSize(k),te=[{icon:S.Check,tooltip:k.localization.saveTooltip,disabled:!I,onClick:A},{icon:S.Clear,tooltip:k.localization.cancelTooltip,onClick:function(){k.onEditingCanceled(k.mode,k.data)}}];return a.default.createElement(s.default,{size:V,padding:"none",key:"key-actions-column",style:_({width:42*te.length,padding:"0px 5px"},C.editCellStyle)},a.default.createElement(k.components.Actions,{data:k.data,actions:te,components:k.components,size:V}))}}function j(){var V={borderBottom:"1px solid red"};return V}var z=function(te){te.keyCode===13&&te.target.type!=="textarea"&&te.target.type!=="button"||te.keyCode===13&&te.target.type==="textarea"&&te.shiftKey?A():te.keyCode===27&&k.onEditingCanceled(k.mode,k.data)},B=m.elementSize(k),N;if(k.mode==="add"||k.mode==="update"||k.mode==="bulk")N=E();else{var R=k.columns.filter(function(V){return!V.hidden&&!(V.tableData.groupOrder>-1)}).length;N=[a.default.createElement(s.default,{size:B,padding:C.actionsColumnIndex===0?"none":void 0,key:"key-edit-cell",colSpan:R},a.default.createElement(c.default,{variant:"h6"},k.localization.deleteText))]}if(C.selection&&N.splice(0,0,a.default.createElement(s.default,{padding:"none",key:"key-selection-cell"})),k.isTreeData&&N.splice(0,0,a.default.createElement(s.default,{padding:"none",key:"key-tree-data-cell"})),C.actionsColumnIndex===-1)N.push(F());else if(C.actionsColumnIndex>=0){var q=0;C.selection&&(q=1),k.isTreeData&&(q=1,C.selection&&N.splice(1,1)),N.splice(C.actionsColumnIndex+q,0,F())}if(k.detailPanel&&C.showDetailPanelIcon!==!1&&k.mode!=="bulk"){var Y=C.detailPanelColumnAlignment,L=Y==="left"?0:N.length;N.splice(L,0,a.default.createElement(s.default,{padding:"none",key:"key-detail-panel-cell"}))}k.columns.filter(function(V){return V.tableData.groupOrder>-1}).forEach(function(V){N.splice(0,0,a.default.createElement(s.default,{padding:"none",key:"key-group-cell"+V.tableData.id}))}),k.detailPanel,k.isTreeData,k.onRowClick,k.onRowSelected,k.onTreeExpandChanged,k.onToggleDetailPanel,k.onEditingApproved,k.onEditingCanceled,k.getFieldValue,k.components,k.columns,k.errorState,k.onBulkEditRowChanged,k.bulkEditChangedRows,k.scrollWidth;var W=k.forwardedRef,U=(0,l.default)(k,v);return a.default.createElement(u.default,(0,r.default)({onKeyDown:z},U,{ref:W,style:j()}),N)}x.defaultProps={actions:[],index:0,options:{},path:[],onBulkEditRowChanged:function(){}},x.propTypes={actions:d.default.array,index:d.default.number.isRequired,data:d.default.object,detailPanel:d.default.oneOfType([d.default.func,d.default.arrayOf(d.default.oneOfType([d.default.object,d.default.func]))]),onRowSelected:d.default.func,path:d.default.arrayOf(d.default.number),columns:d.default.array,onRowClick:d.default.func,onEditingApproved:d.default.func,onEditingCanceled:d.default.func,localization:d.default.object,getFieldValue:d.default.func,errorState:d.default.oneOfType([d.default.object,d.default.bool]),onBulkEditRowChanged:d.default.func};var T=a.default.forwardRef(function(S,C){return a.default.createElement(x,(0,r.default)({},S,{forwardedRef:C}))});e.default=T}(k_)),k_}var S_={},C_={},pu={},Y7;function p5(){if(Y7)return pu;Y7=1;var e=Cn;Object.defineProperty(pu,"__esModule",{value:!0}),pu.getLocalizedFilterPlaceHolder=pu.getLocalizationData=void 0;var t=e($a()),n=kW();function r(a,s){var u=Object.keys(a);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(a);s&&(c=c.filter(function(d){return Object.getOwnPropertyDescriptor(a,d).enumerable})),u.push.apply(u,c)}return u}function l(a){for(var s=1;s-1}),d.default.createElement(a.default,{primary:_.lookup[D]}))})))}var y=d.default.forwardRef(function(_,x){return d.default.createElement(h,(0,r.default)({},_,{forwardedRef:x}))});e.default=y}(M_)),M_}var P_={};const TW=Qn(Due);var Z7;function w2e(){return Z7||(Z7=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Ir()),r=t(pb),l=t(TW),i=t(hc),o=t(ge),a=p5();function s(c){var d,f,p=c.columnDef,m=c.icons,g=c.localization,b=c.hideFilterIcons,v=c.onFilterChanged,h=c.forwardedRef,y=(0,a.getLocalizationData)(g),w=m.Filter;return o.default.createElement(r.default,{ref:h,style:p.type==="numeric"?{float:(d=p.align)!==null&&d!==void 0?d:"right"}:{float:(f=p.align)!==null&&f!==void 0?f:"left"},type:p.type==="numeric"?"number":"search",value:p.tableData.filterValue||"",placeholder:(0,a.getLocalizedFilterPlaceHolder)(p,g),onChange:function(x){v(p.tableData.id,x.target.value)},inputProps:{"aria-label":"filter data by ".concat(p.title)},InputProps:b||p.hideFilterIcon?void 0:{startAdornment:o.default.createElement(l.default,{position:"start"},o.default.createElement(i.default,{title:y.filterTooltip},o.default.createElement(w,null)))}})}var u=o.default.forwardRef(function(d,f){return o.default.createElement(s,(0,n.default)({},d,{forwardedRef:f}))});e.default=u}(P_)),P_}var O_={},Q7;function _2e(){return Q7||(Q7=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Ir()),r=t(pc),l=t(ge);function i(a){var s=a.forwardedRef,u=a.columnDef,c=a.onFilterChanged;return l.default.createElement(r.default,{ref:s,inputProps:{"aria-label":"Filter of ".concat(u.title)},indeterminate:u.tableData.filterValue===void 0,checked:u.tableData.filterValue==="checked",onChange:function(){var f;u.tableData.filterValue===void 0?f="checked":u.tableData.filterValue==="checked"&&(f="unchecked"),c(u.tableData.id,f)}})}var o=l.default.forwardRef(function(s,u){return l.default.createElement(i,(0,n.default)({},s,{forwardedRef:u}))});e.default=o}(O_)),O_}var A_={},J7;function T2e(){return J7||(J7=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Ir()),l=o(ge);function i(u){if(typeof WeakMap!="function")return null;var c=new WeakMap,d=new WeakMap;return(i=function(p){return p?d:c})(u)}function o(u,c){if(u&&u.__esModule)return u;if(u===null||n(u)!=="object"&&typeof u!="function")return{default:u};var d=i(c);if(d&&d.has(u))return d.get(u);var f={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in u)if(m!=="default"&&Object.prototype.hasOwnProperty.call(u,m)){var g=p?Object.getOwnPropertyDescriptor(u,m):null;g&&(g.get||g.set)?Object.defineProperty(f,m,g):f[m]=u[m]}return f.default=u,d&&d.set(u,f),f}function a(u){var c=u.columnDef,d=u.onFilterChanged,f=u.forwardedRef;return(0,l.createElement)(c.filterComponent,{columnDef:c,onFilterChanged:d,forwardedRef:f})}var s=l.default.forwardRef(function(c,d){return l.default.createElement(a,(0,r.default)({},c,{forwardedRef:d}))});e.default=s}(A_)),A_}var eE;function kW(){return eE||(eE=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.MTableFilterRow=b,e.default=void 0;var n=t(ls),r=t(Cl),l=t($a()),i=t(Ir()),o=t(ge),a=t(Vr),s=t(v2e()),u=t(x2e()),c=t(w2e()),d=t(_2e()),f=t(T2e()),p=eg();function m(h,y){var w=Object.keys(h);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(h);y&&(_=_.filter(function(x){return Object.getOwnPropertyDescriptor(h,x).enumerable})),w.push.apply(w,_)}return w}function g(h){for(var y=1;y-1)}).sort(function(k,S){return k.tableData.columnOrder-S.tableData.columnOrder}).map(function(k){return o.default.createElement(r.default,{key:k.tableData.id,style:g(g({},y.filterCellStyle),k.filterCellStyle)},w(k))});if(y.selection&&_.splice(0,0,o.default.createElement(r.default,{padding:"none",key:"key-selection-column"})),h.hasActions)if(y.actionsColumnIndex===-1)_.push(o.default.createElement(r.default,{key:"key-action-column"}));else{var x=0;h.selection&&(x=1),_.splice(y.actionsColumnIndex+x,0,o.default.createElement(r.default,{key:"key-action-column"}))}if(h.hasDetailPanel&&y.showDetailPanelIcon){var T=y.detailPanelColumnAlignment==="left"?0:_.length;_.splice(T,0,o.default.createElement(r.default,{padding:"none",key:"key-detail-panel-column"}))}return h.isTreeData>0&&_.splice(0,0,o.default.createElement(r.default,{padding:"none",key:"key-tree-data-filter"})),h.columns.filter(function(k){return k.tableData.groupOrder>-1}).forEach(function(k){_.splice(0,0,o.default.createElement(r.default,{padding:"checkbox",key:"key-group-filter"+k.tableData.id}))}),o.default.createElement(n.default,{id:"m--table--filter--row",ref:h.forwardedRef,style:g({height:10},y.filterRowStyle)},_)}b.defaultProps={columns:[],hasActions:!1,localization:{filterTooltip:"Filter"}},b.propTypes={columns:a.default.array.isRequired,hasDetailPanel:a.default.bool.isRequired,isTreeData:a.default.bool.isRequired,onFilterChanged:a.default.func.isRequired,hasActions:a.default.bool,localization:a.default.object};var v=o.default.forwardRef(function(y,w){return o.default.createElement(b,(0,i.default)({},y,{forwardedRef:w}))});e.default=v}(S_)),S_}var D_={};const SW=Qn(Mfe),k2e=Qn(kie);function tE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function nE(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Mo(1));return n(CW)(e,t)}if(typeof e!="function")throw new Error(Mo(2));var l=e,i=t,o=[],a=o,s=!1;function u(){a===o&&(a=o.slice())}function c(){if(s)throw new Error(Mo(3));return i}function d(g){if(typeof g!="function")throw new Error(Mo(4));if(s)throw new Error(Mo(5));var b=!0;return u(),a.push(g),function(){if(b){if(s)throw new Error(Mo(6));b=!1,u();var h=a.indexOf(g);a.splice(h,1),o=null}}}function f(g){if(!S2e(g))throw new Error(Mo(7));if(typeof g.type>"u")throw new Error(Mo(8));if(s)throw new Error(Mo(9));try{s=!0,i=l(i,g)}finally{s=!1}for(var b=o=a,v=0;vPW=e,O2e=()=>PW,lE=Symbol.for("react-redux-context"),sE=typeof globalThis<"u"?globalThis:{};function A2e(){var e;if(!ge.createContext)return{};const t=(e=sE[lE])!=null?e:sE[lE]=new Map;let n=t.get(ge.createContext);return n||(n=ge.createContext(null),t.set(ge.createContext,n)),n}const OW=A2e(),D2e=()=>{throw new Error("uSES not initialized!")},E2e=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function R2e(e,t,n,r,{areStatesEqual:l,areOwnPropsEqual:i,areStatePropsEqual:o}){let a=!1,s,u,c,d,f;function p(h,y){return s=h,u=y,c=e(s,u),d=t(r,u),f=n(c,d,u),a=!0,f}function m(){return c=e(s,u),t.dependsOnOwnProps&&(d=t(r,u)),f=n(c,d,u),f}function g(){return e.dependsOnOwnProps&&(c=e(s,u)),t.dependsOnOwnProps&&(d=t(r,u)),f=n(c,d,u),f}function b(){const h=e(s,u),y=!o(h,c);return c=h,y&&(f=n(c,d,u)),f}function v(h,y){const w=!i(y,u),_=!l(h,s,y,u);return s=h,u=y,w&&_?m():w?g():_?b():f}return function(y,w){return a?v(y,w):p(y,w)}}function L2e(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:l}=t,i=Kt(t,E2e);const o=n(e,i),a=r(e,i),s=l(e,i);return R2e(o,a,s,e,i)}function I2e(e,t){const n={};for(const r in e){const l=e[r];typeof l=="function"&&(n[r]=(...i)=>t(l(...i)))}return n}function dk(e){return function(n){const r=e(n);function l(){return r}return l.dependsOnOwnProps=!1,l}}function uE(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function AW(e,t){return function(r,{displayName:l}){const i=function(a,s){return i.dependsOnOwnProps?i.mapToProps(a,s):i.mapToProps(a,void 0)};return i.dependsOnOwnProps=!0,i.mapToProps=function(a,s){i.mapToProps=e,i.dependsOnOwnProps=uE(e);let u=i(a,s);return typeof u=="function"&&(i.mapToProps=u,i.dependsOnOwnProps=uE(u),u=i(a,s)),u},i}}function h5(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function $2e(e){return e&&typeof e=="object"?dk(t=>I2e(e,t)):e?typeof e=="function"?AW(e):h5(e,"mapDispatchToProps"):dk(t=>({dispatch:t}))}function N2e(e){return e?typeof e=="function"?AW(e):h5(e,"mapStateToProps"):dk(()=>({}))}function F2e(e,t,n){return Ie({},n,e,t)}function j2e(e){return function(n,{displayName:r,areMergedPropsEqual:l}){let i=!1,o;return function(s,u,c){const d=e(s,u,c);return i?l(d,o)||(o=d):(i=!0,o=d),o}}}function z2e(e){return e?typeof e=="function"?j2e(e):h5(e,"mergeProps"):()=>F2e}function B2e(){const e=O2e();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],l=t;for(;l;)r.push(l),l=l.next;return r},subscribe(r){let l=!0,i=n={callback:r,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){!l||t===null||(l=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}const cE={notify(){},get:()=>[]};function DW(e,t){let n,r=cE,l=0,i=!1;function o(g){c();const b=r.subscribe(g);let v=!1;return()=>{v||(v=!0,b(),d())}}function a(){r.notify()}function s(){m.onStateChange&&m.onStateChange()}function u(){return i}function c(){l++,n||(n=t?t.addNestedSub(s):e.subscribe(s),r=B2e())}function d(){l--,n&&l===0&&(n(),n=void 0,r.clear(),r=cE)}function f(){i||(i=!0,c())}function p(){i&&(i=!1,d())}const m={addNestedSub:o,notifyNestedSubs:a,handleChangeWrapper:s,isSubscribed:u,trySubscribe:f,tryUnsubscribe:p,getListeners:()=>r};return m}const W2e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",cy=W2e?ge.useLayoutEffect:ge.useEffect;function dE(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function R_(e,t){if(dE(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let l=0;l{EW=e},H2e=[null,null];function V2e(e,t,n){cy(()=>e(...t),n)}function G2e(e,t,n,r,l,i){e.current=r,n.current=!1,l.current&&(l.current=null,i())}function Y2e(e,t,n,r,l,i,o,a,s,u,c){if(!e)return()=>{};let d=!1,f=null;const p=()=>{if(d||!a.current)return;const g=t.getState();let b,v;try{b=r(g,l.current)}catch(h){v=h,f=h}v||(f=null),b===i.current?o.current||u():(i.current=b,s.current=b,o.current=!0,c())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}function X2e(e,t){return e===t}function RW(e,t,n,{pure:r,areStatesEqual:l=X2e,areOwnPropsEqual:i=R_,areStatePropsEqual:o=R_,areMergedPropsEqual:a=R_,forwardRef:s=!1,context:u=OW}={}){const c=u,d=N2e(e),f=$2e(t),p=z2e(n),m=!!e;return b=>{const v=b.displayName||b.name||"Component",h=`Connect(${v})`,y={shouldHandleStateChanges:m,displayName:h,wrappedComponentName:v,WrappedComponent:b,initMapStateToProps:d,initMapDispatchToProps:f,initMergeProps:p,areStatesEqual:l,areStatePropsEqual:o,areOwnPropsEqual:i,areMergedPropsEqual:a};function w(T){const[k,S,C]=ge.useMemo(()=>{const{reactReduxForwardedRef:H}=T,Z=Kt(T,q2e);return[T.context,H,Z]},[T]),M=ge.useMemo(()=>k&&k.Consumer&&uJ.isContextConsumer(ge.createElement(k.Consumer,null))?k:c,[k,c]),O=ge.useContext(M),D=!!T.store&&!!T.store.getState&&!!T.store.dispatch,P=!!O&&!!O.store,E=D?T.store:O.store,I=P?O.getServerState:E.getState,A=ge.useMemo(()=>L2e(E.dispatch,y),[E]),[F,j]=ge.useMemo(()=>{if(!m)return H2e;const H=DW(E,D?void 0:O.subscription),Z=H.notifyNestedSubs.bind(H);return[H,Z]},[E,D,O]),z=ge.useMemo(()=>D?O:Ie({},O,{subscription:F}),[D,O,F]),B=ge.useRef(),N=ge.useRef(C),R=ge.useRef(),q=ge.useRef(!1);ge.useRef(!1);const Y=ge.useRef(!1),L=ge.useRef();cy(()=>(Y.current=!0,()=>{Y.current=!1}),[]);const W=ge.useMemo(()=>()=>R.current&&C===N.current?R.current:A(E.getState(),C),[E,C]),U=ge.useMemo(()=>Z=>F?Y2e(m,E,F,A,N,B,q,Y,R,j,Z):()=>{},[F]);V2e(G2e,[N,B,q,C,R,j]);let V;try{V=EW(U,W,I?()=>A(I(),C):W)}catch(H){throw L.current&&(H.message+=` + */const Mxe=Object.freeze(Object.defineProperty({__proto__:null,CalendarPicker:qW,CalendarPickerSkeleton:i1e,ClockPicker:KW,DEFAULT_LOCALE:wW,DatePicker:Obe,DateTimePicker:axe,DateTimePickerTabs:Qb,DesktopDatePicker:nq,DesktopDateTimePicker:oq,DesktopTimePicker:lq,LocalizationProvider:kve,MobileDatePicker:rq,MobileDateTimePicker:iq,MobileTimePicker:sq,MonthPicker:TW,MuiPickersAdapterContext:P5,PickerStaticWrapper:Jb,PickersDay:DW,StaticDatePicker:xxe,StaticDateTimePicker:_xe,StaticTimePicker:Sxe,TimePicker:Cxe,YearPicker:BW,beBY:wve,calendarPickerClasses:Yye,calendarPickerSkeletonClasses:e1e,clockClasses:x1e,clockNumberClasses:Oh,clockPickerClasses:I1e,clockPointerClasses:p1e,csCZ:V0e,datePickerToolbarClasses:G1e,dateTimePickerTabsClasses:Kbe,dateTimePickerToolbarClasses:jbe,dayPickerClasses:nye,deDE:I0e,enUS:Q0e,esES:F0e,faIR:z0e,fiFI:q0e,frFR:X0e,getCalendarPickerSkeletonUtilityClass:UW,getCalendarPickerUtilityClass:WW,getClockPickerUtilityClass:XW,getMonthPickerUtilityClass:_W,getPickersDayUtilityClass:PW,getYearPickerUtilityClass:zW,huHU:Z0e,isIS:pve,itIT:ove,jaJP:mve,koKR:dve,monthPickerClasses:Cve,nbNO:eve,nlNL:M0e,pickersCalendarHeaderClasses:Pye,pickersDayClasses:Ph,pickersFadeTransitionGroupClasses:Ive,pickersMonthClasses:VS,pickersSlideTransitionClasses:to,pickersYearClasses:Hu,plPL:O0e,ptBR:D0e,ruRU:Sve,svSE:nve,timePickerToolbarClasses:Ld,trTR:R0e,ukUA:vve,urPK:bve,yearPickerClasses:qye,zhCN:sve},Symbol.toStringTag,{value:"Module"})),uq=er(Mxe);var nE;function Pxe(){return nE||(nE=1,function(e){var t=Hn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(jr()),r=t(kf()),l=t(Rb()),i=t(Lb()),o=t(x5()),a=t(_5()),s=t(T5()),u=t(ge),c=t(Ib),d=t(Cc),f=t(YB),p=t(S5),h=t(XB),g=t(phe),b=t(hhe),v=t(mhe),m=gW,y=uq,x=t(Kr),_=["columnDef","rowData","onRowDataChange","errorState","autoFocus","onBulkEditRowChanged","scrollWidth"],w=["helperText","error"],S=["helperText","error"];function k(O){var D=C();return function(){var E=(0,s.default)(O),I;if(D){var A=(0,s.default)(this).constructor;I=Reflect.construct(E,arguments,A)}else I=E.apply(this,arguments);return(0,a.default)(this,I)}}function C(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var T=function(O){(0,o.default)(P,O);var D=k(P);function P(){return(0,l.default)(this,P),D.apply(this,arguments)}return(0,i.default)(P,[{key:"getProps",value:function(){var I=this.props;I.columnDef,I.rowData,I.onRowDataChange,I.errorState,I.autoFocus,I.onBulkEditRowChanged,I.scrollWidth;var A=(0,r.default)(I,_);return A}},{key:"renderLookupField",value:function(){var I=this,A=this.getProps(),F=A.helperText,j=A.error,B=(0,r.default)(A,w);return u.default.createElement(h.default,{error:!!j},u.default.createElement(f.default,(0,n.default)({},B,{value:this.props.value===void 0?"":this.props.value,onChange:function(N){return I.props.onChange(N.target.value)},style:{fontSize:13},inputProps:{autoFocus:this.props.autoFocus},SelectDisplayProps:{"aria-label":this.props.columnDef.title}}),Object.keys(this.props.columnDef.lookup).map(function(z){return u.default.createElement(p.default,{key:z,value:z},I.props.columnDef.lookup[z])})),!!F&&u.default.createElement(g.default,null,F))}},{key:"renderBooleanField",value:function(){var I=this,A=this.getProps(),F=A.helperText,j=A.error,B=(0,r.default)(A,S);return u.default.createElement(h.default,{error:!!j,component:"fieldset"},u.default.createElement(b.default,null,u.default.createElement(v.default,{label:"",control:u.default.createElement(d.default,(0,n.default)({},B,{value:String(this.props.value),checked:!!this.props.value,onChange:function(N){return I.props.onChange(N.target.checked)},style:{padding:0,width:24,marginLeft:9},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title}}))})),u.default.createElement(g.default,null,F))}},{key:"renderDateField",value:function(){var I=this.props.columnDef.dateSetting&&this.props.columnDef.dateSetting.format?this.props.columnDef.dateSetting.format:"dd.MM.yyyy";return u.default.createElement(y.LocalizationProvider,{dateAdapter:m.AdapterDateFns,locale:this.props.locale},u.default.createElement(y.DatePicker,(0,n.default)({},this.getProps(),{renderInput:function(F){return u.default.createElement(c.default,F)},format:I,value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderTimeField",value:function(){return u.default.createElement(y.LocalizationProvider,{dateAdapter:m.AdapterDateFns,locale:this.props.locale},u.default.createElement(y.TimePicker,(0,n.default)({},this.getProps(),{renderInput:function(A){return u.default.createElement(c.default,A)},format:"HH:mm:ss",value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderDateTimeField",value:function(){return u.default.createElement(y.LocalizationProvider,{dateAdapter:m.AdapterDateFns,locale:this.props.locale},u.default.createElement(y.DateTimePicker,(0,n.default)({},this.getProps(),{renderInput:function(A){return u.default.createElement(c.default,A)},format:"dd.MM.yyyy HH:mm:ss",value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderTextField",value:function(){var I=this;return u.default.createElement(c.default,(0,n.default)({},this.getProps(),{variant:"standard",fullWidth:!0,type:this.props.columnDef.type==="numeric"?"number":"text",placeholder:this.props.columnDef.editPlaceholder||this.props.columnDef.title,value:this.props.value===void 0?"":this.props.value,onChange:function(F){return I.props.onChange(I.props.columnDef.type==="numeric"?F.target.valueAsNumber:F.target.value)},InputProps:{style:{minWidth:50,fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title,style:this.props.columnDef.type==="numeric"?{textAlign:"right"}:{}}}))}},{key:"renderCurrencyField",value:function(){var I=this;return u.default.createElement(c.default,(0,n.default)({},this.getProps(),{variant:"standard",placeholder:this.props.columnDef.editPlaceholder||this.props.columnDef.title,type:"number",value:this.props.value===void 0?"":this.props.value,onChange:function(F){var j=F.target.valueAsNumber;return!j&&j!==0&&(j=void 0),I.props.onChange(j)},InputProps:{style:{fontSize:13,textAlign:"right"}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title,style:{textAlign:"right"}},onKeyDown:this.props.onKeyDown}))}},{key:"render",value:function(){var I="ok";return this.props.columnDef.editComponent?I=this.props.columnDef.editComponent(this.props):this.props.columnDef.lookup?I=this.renderLookupField():this.props.columnDef.type==="boolean"?I=this.renderBooleanField():this.props.columnDef.type==="date"?I=this.renderDateField():this.props.columnDef.type==="time"?I=this.renderTimeField():this.props.columnDef.type==="datetime"?I=this.renderDateTimeField():this.props.columnDef.type==="currency"?I=this.renderCurrencyField():I=this.renderTextField(),I}}]),P}(u.default.Component);T.propTypes={value:x.default.any,onChange:x.default.func.isRequired,columnDef:x.default.object.isRequired,locale:x.default.object,rowData:x.default.object,onRowDataChange:x.default.func,errorState:x.default.func,autoFocus:x.default.bool,onBulkEditRowChanged:x.default.func,scrollWidth:x.default.number,onKeyDown:x.default.func};var M=T;e.default=M}(E_)),E_}var G_={},E0={},rE;function cq(){if(rE)return E0;rE=1;var e=Hn;Object.defineProperty(E0,"__esModule",{value:!0}),E0.validateInput=i;var t=e(za()),n=e(Ma());function r(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(o);a&&(u=u.filter(function(c){return Object.getOwnPropertyDescriptor(o,c).enumerable})),s.push.apply(s,u)}return s}function l(o){for(var a=1;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var m=function(x){(0,i.default)(w,x);var _=b(w);function w(S){var k;return(0,n.default)(this,w),k=_.call(this,S),(0,s.default)((0,l.default)(k),"getStyle",function(){var C={boxShadow:"2px 0px 15px rgba(125,147,178,.25)",color:"inherit",width:k.props.columnDef.tableData.width,boxSizing:"border-box",fontSize:"inherit",fontFamily:"inherit",fontWeight:"inherit",padding:"0 16px"};return typeof k.props.columnDef.cellStyle=="function"?C=g(g({},C),k.props.columnDef.cellStyle(k.state.value,k.props.rowData)):C=g(g({},C),k.props.columnDef.cellStyle),typeof k.props.cellEditable.cellStyle=="function"?C=g(g({},C),k.props.cellEditable.cellStyle(k.state.value,k.props.rowData,k.props.columnDef)):C=g(g({},C),k.props.cellEditable.cellStyle),C}),(0,s.default)((0,l.default)(k),"handleKeyDown",function(C){C.keyCode===13?k.onApprove():C.keyCode===27&&k.onCancel()}),(0,s.default)((0,l.default)(k),"onApprove",function(){var C=(0,p.validateInput)(k.props.columnDef,k.state.value).isValid;C&&k.setState({isLoading:!0},function(){k.props.cellEditable.onCellEditApproved(k.state.value,k.props.getFieldValue(k.props.rowData,k.props.columnDef),k.props.rowData,k.props.columnDef).then(function(){k.setState({isLoading:!1}),k.props.onCellEditFinished(k.props.rowData,k.props.columnDef)}).catch(function(T){k.setState({isLoading:!1})})})}),(0,s.default)((0,l.default)(k),"onCancel",function(){k.props.onCellEditFinished(k.props.rowData,k.props.columnDef)}),k.state={errorState:{isValid:!0,helperText:""},isLoading:!1,value:S.getFieldValue(k.props.rowData,k.props.columnDef,!1)},k}return(0,r.default)(w,[{key:"renderActions",value:function(){if(this.state.isLoading)return u.default.createElement("div",{style:{display:"flex",justifyContent:"center",width:60}},u.default.createElement(f.default,{size:20}));var k=[{icon:this.props.icons.Check,tooltip:this.props.localization.saveTooltip,onClick:this.onApprove,disabled:this.state.isLoading||!this.state.errorState.isValid},{icon:this.props.icons.Clear,tooltip:this.props.localization.cancelTooltip,onClick:this.onCancel,disabled:this.state.isLoading}];return u.default.createElement(this.props.components.Actions,{actions:k,components:this.props.components,size:"small"})}},{key:"handleChange",value:function(k){var C=(0,p.validateInput)(this.props.columnDef,k);this.setState({errorState:C,value:k})}},{key:"render",value:function(){var k=this;return u.default.createElement(d.default,{size:this.props.size,style:this.getStyle(),padding:"none"},u.default.createElement("div",{style:{display:"flex",alignItems:"center"}},u.default.createElement("div",{style:{flex:1,marginRight:4}},u.default.createElement(this.props.components.EditField,{columnDef:this.props.columnDef,value:this.state.value,error:!this.state.errorState.isValid,helperText:this.state.errorState.helperText,onChange:function(T){return k.handleChange(T)},onKeyDown:this.handleKeyDown,disabled:this.state.isLoading,rowData:this.props.rowData,autoFocus:!0})),this.renderActions()))}}]),w}(u.default.Component);m.defaultProps={columnDef:{},localization:{saveTooltip:"Save",cancelTooltip:"Cancel"}},m.propTypes={cellEditable:c.default.object.isRequired,columnDef:c.default.object.isRequired,components:c.default.object.isRequired,errorState:c.default.oneOfType([c.default.object,c.default.bool]),icons:c.default.object.isRequired,localization:c.default.object.isRequired,onCellEditFinished:c.default.func.isRequired,rowData:c.default.object.isRequired,size:c.default.string,getFieldValue:c.default.func.isRequired};var y=m;e.default=y}(G_)),G_}var Y_={},X_={exports:{}},K_={exports:{}},oE;function Axe(){return oE||(oE=1,function(e){function t(n){if(Array.isArray(n))return n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(K_)),K_.exports}var Z_={exports:{}},iE;function Dxe(){return iE||(iE=1,function(e){function t(n,r){var l=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(l!=null){var i,o,a,s,u=[],c=!0,d=!1;try{if(a=(l=l.call(n)).next,r===0){if(Object(l)!==l)return;c=!1}else for(;!(c=(i=a.call(l)).done)&&(u.push(i.value),u.length!==r);c=!0);}catch(f){d=!0,o=f}finally{try{if(!c&&l.return!=null&&(s=l.return(),Object(s)!==s))return}finally{if(d)throw o}}return u}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Z_)),Z_.exports}var Q_={exports:{}},lE;function Exe(){return lE||(lE=1,function(e){function t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Q_)),Q_.exports}var sE;function vu(){return sE||(sE=1,function(e){var t=Axe(),n=Dxe(),r=VB(),l=Exe();function i(o,a){return t(o)||n(o,a)||r(o,a)||l()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}(X_)),X_.exports}const Mf=er(qae),Mc=er(dde);var uE;function Rxe(){return uE||(uE=1,function(e){var t=Hn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(jr()),r=t(za()),l=t(Ma()),i=t(vu()),o=t(ge),a=t(Kr),s=t(b5),u=t(Mf),c=t(Mc);function d(g,b){var v=Object.keys(g);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(g);b&&(m=m.filter(function(y){return Object.getOwnPropertyDescriptor(g,y).enumerable})),v.push.apply(v,m)}return v}function f(g){for(var b=1;b0&&i.default.createElement(r.default,{colSpan:a.options.detailPanelOffset.left}),i.default.createElement(r.default,{size:a.size,colSpan:a.renderColumns.length-a.options.detailPanelOffset.left-a.options.detailPanelOffset.right,padding:"none"},i.default.createElement(n.default,{in:d,timeout:"auto",unmountOnExit:!0,mountOnEnter:!0,onExited:function(){b.current=void 0,g()}},m({rowData:a.data}))))}return R0}var Na={},fE;function bs(){if(fE)return Na;fE=1;var e=Hn;Object.defineProperty(Na,"__esModule",{value:!0}),Na.widthToNumber=Na.selectionMaxWidth=Na.rowActions=Na.reducePercentsInCalc=Na.parseFirstLastPageButtons=Na.elementSize=Na.baseIconSize=Na.actionsColumnWidth=void 0;var t=e(za()),n=e(Ma());function r(p,h){var g=Object.keys(p);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(p);h&&(b=b.filter(function(v){return Object.getOwnPropertyDescriptor(p,v).enumerable})),g.push.apply(g,b)}return g}function l(p){for(var h=1;h1){var v=b[1];return h.replace(/\d*%/,"".concat(g*(v/100),"px"))}return h.replace(/\d*%/,"".concat(g,"px"))};Na.reducePercentsInCalc=c;var d=function(h){return typeof h=="number"?h:!h||!h.match(/^\s*\d+(px)?\s*$/)?NaN:Number(h.replace(/px$/,""))};Na.widthToNumber=d;var f=function(h,g){var b={first:!0,last:!0};return typeof h=="boolean"?b={first:h,last:h}:(0,n.default)(h)==="object"&&(b=l(l({},b),h)),g&&(b={first:b.last,last:b.first}),b};return Na.parseFirstLastPageButtons=f,Na}var L0={},pE;function Nxe(){if(pE)return L0;pE=1;var e=Hn;Object.defineProperty(L0,"__esModule",{value:!0}),L0.useDoubleClick=n;var t=e(ge);function n(r,l){var i=t.default.useRef(0),o=t.default.useRef(null),a=t.default.useRef(null),s=t.default.useRef(null);t.default.useEffect(function(){a.current=l,s.current=r});var u=function(){clearTimeout(o.current),o.current=null,i.current=0},c=t.default.useCallback(function(d){var f=i.current+1===2,p=o.current;if(p&&f&&(u(),a.current&&a.current(d)),!p){i.current=i.current+1;var h=function(){u(),s.current&&s.current(d)};if(a.current){var g=setTimeout(h,250);o.current=g}else h()}},[]);return c}return L0}var hE;function Fxe(){return hE||(hE=1,function(e){var t=Hn,n=Ma();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Cf()),l=t(ms),i=t(Mc),o=t(Mf),a=t(Cc),s=t(jr()),u=t(zl),c=t(za()),d=t(kf()),f=t(ge),p=t(Kr),h=$xe(),g=w(bs()),b=Nxe(),v=ux(),m=sl(),y=["forwardedRef"],x=["data","components","detailPanel","getFieldValue","isTreeData","onRowSelected","onRowEditStarted","onTreeExpandChanged","onToggleDetailPanel","onEditingCanceled","onEditingApproved","hasAnyEditingRow","treeDataMaxLevel","path","actions","errorState","cellEditable","onCellEditStarted","onCellEditFinished","persistEvents","scrollWidth","onRowClick","onRowDoubleClick","columns"];function _(M){if(typeof WeakMap!="function")return null;var O=new WeakMap,D=new WeakMap;return(_=function(E){return E?D:O})(M)}function w(M,O){if(M&&M.__esModule)return M;if(M===null||n(M)!=="object"&&typeof M!="function")return{default:M};var D=_(O);if(D&&D.has(M))return D.get(M);var P={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var I in M)if(I!=="default"&&Object.prototype.hasOwnProperty.call(M,I)){var A=E?Object.getOwnPropertyDescriptor(M,I):null;A&&(A.get||A.set)?Object.defineProperty(P,I,A):P[I]=M[I]}return P.default=M,D&&D.set(M,P),P}function S(M,O){var D=Object.keys(M);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(M);O&&(P=P.filter(function(E){return Object.getOwnPropertyDescriptor(M,E).enumerable})),D.push.apply(D,P)}return D}function k(M){for(var O=1;O-1)}).sort(function(Ae,Le){return Ae.tableData.columnOrder-Le.tableData.columnOrder}).map(function(Ae){var Le=D.getFieldValue(D.data,Ae);if(D.data.tableData.editCellList&&D.data.tableData.editCellList.find(function(Ne){return Ne.tableData.id===Ae.tableData.id}))return f.default.createElement(D.components.EditCell,{getFieldValue:D.getFieldValue,components:D.components,icons:I,localization:P,columnDef:Ae,size:Oe,key:"cell-"+D.data.tableData.id+"-"+Ae.tableData.id,rowData:D.data,cellEditable:D.cellEditable,onCellEditFinished:D.onCellEditFinished,scrollWidth:U});var Re=Ae.editable!=="never"&&!!D.cellEditable;Re&&D.cellEditable.isCellEditable&&(Re=D.cellEditable.isCellEditable(D.data,Ae));var Ie="cell-".concat(D.data.tableData.id,"-").concat(Ae.tableData.id);return f.default.createElement(D.components.Cell,{size:Oe,errorState:D.errorState,columnDef:k({cellStyle:E.cellStyle},Ae),value:Le,key:Ie,rowData:D.data,cellEditable:Re,onCellEditStarted:D.onCellEditStarted,scrollWidth:U})});return Te},Oe=g.elementSize(A),Pe=W.length*g.baseIconSize(A),ce=function(Te){return f.default.createElement(u.default,{size:Oe,padding:"none",key:"key-actions-column",style:k({width:Pe,padding:"0px 5px",boxSizing:"border-box"},E.actionsCellStyle)},f.default.createElement(D.components.Actions,{data:D.data,actions:Te,components:D.components,size:Oe,disabled:D.hasAnyEditingRow}))},we=function(){var Te=E.selectionProps||{};typeof Te=="function"&&(Te=Te(D.data));var Ae=g.selectionMaxWidth(A,D.treeDataMaxLevel)||0,Le=Oe!=="medium"?{padding:"4px"}:void 0;return f.default.createElement(u.default,{size:Oe,padding:"none",key:"key-selection-column",style:{width:Ae}},f.default.createElement(a.default,(0,s.default)({size:Oe,checked:D.data.tableData.checked===!0,onClick:function(Ie){return Ie.stopPropagation()},value:D.data.tableData.id.toString(),onChange:function(Ie){D.onRowSelected(Ie,D.path,D.data)},style:Le},Te)))},Z=function(Te){return{transform:Te?"rotate(90deg)":"none"}},re=function(){return E.showDetailPanelIcon?typeof D.detailPanel=="function"?f.default.createElement(u.default,{size:Oe,padding:"none",key:"key-detail-panel-column",style:k({width:42,textAlign:"center"},E.detailPanelColumnStyle)},f.default.createElement(o.default,{"aria-label":"Detail panel visibility toggle",size:Oe,style:k({transition:"all ease 200ms"},Z(D.data.tableData.showDetailPanel)),onClick:function(Ae){D.onToggleDetailPanel(D.path,D.detailPanel),Ae.stopPropagation()}},f.default.createElement(I.DetailPanel,null))):f.default.createElement(u.default,{size:Oe,padding:"none",key:"key-detail-panel-column"},f.default.createElement("div",{style:k({width:42*D.detailPanel.length,textAlign:"center",display:"flex"},E.detailPanelColumnStyle)},D.detailPanel.map(function(Te,Ae){typeof Te=="function"&&(Te=Te(D.data));var Le=(D.data.tableData.showDetailPanel||"").toString()===Te.render.toString(),Re=f.default.createElement(I.DetailPanel,null),Ie=!0;return Le?Te.openIcon?(Re=f.default.createElement(v.MTableCustomIcon,{icon:Te.openIcon,iconProps:Te.iconProps}),Ie=!1):Te.icon&&(Re=f.default.createElement(v.MTableCustomIcon,{icon:Te.icon,iconProps:Te.iconProps})):Te.icon&&(Re=f.default.createElement(v.MTableCustomIcon,{icon:Te.icon,iconProps:Te.iconProps}),Ie=!1),Re=f.default.createElement(o.default,{"aria-label":"Detail panel visibility toggle",size:Oe,key:"key-detail-panel-"+Ae,style:k({transition:"all ease 200ms"},Z(Ie&&Le)),disabled:Te.disabled,onClick:function(ze){D.onToggleDetailPanel(D.path,Te.render),ze.stopPropagation()}},Re),Te.tooltip&&(Re=f.default.createElement(i.default,{key:"key-detail-panel-"+Ae,title:Te.tooltip},Re)),Re}))):null},de=function(){return D.data.tableData.childRows&&D.data.tableData.childRows.length>0?f.default.createElement(u.default,{size:Oe,padding:"none",key:"key-tree-data-column",style:{width:48+9*(D.treeDataMaxLevel-2)}},f.default.createElement(o.default,{"aria-label":"Detail panel visibility toggle",size:Oe,style:k({transition:"all ease 200ms",marginLeft:D.level*9},Z(D.data.tableData.isTreeExpanded)),onClick:function(Ae){D.onTreeExpandChanged(D.path,D.data),Ae.stopPropagation()}},f.default.createElement(I.DetailPanel,null))):f.default.createElement(u.default,{padding:"none",key:"key-tree-data-column"})},_e=function(Te,Ae){var Le={};return typeof E.rowStyle=="function"?Le=k(k({},Le),E.rowStyle(D.data,Te,Ae,D.hasAnyEditingRow)):E.rowStyle&&(Le=k(k({},Le),E.rowStyle)),(Q||V)&&(Le.cursor="pointer"),D.hasAnyEditingRow&&(Le.opacity=Le.opacity?Le.opacity:.2),Le},ue=Ce();E.selection&&ue.splice(0,0,we());var me=g.rowActions(D);if(me.length>0){if(E.actionsColumnIndex===-1)ue.push(ce(me));else if(E.actionsColumnIndex>=0){var xe=0;E.selection&&(xe=1),ue.splice(E.actionsColumnIndex+xe,0,ce(me))}}return D.detailPanel&&(E.detailPanelColumnAlignment==="right"?ue.push(re()):ue.splice(0,0,re())),D.isTreeData&&ue.splice(0,0,de()),D.columns.filter(function(ye){return ye.tableData.groupOrder>-1}).forEach(function(ye){ue.splice(0,0,f.default.createElement(u.default,{size:Oe,padding:"none",key:"key-group-cell"+ye.tableData.id}))}),f.default.createElement(f.default.Fragment,null,f.default.createElement(l.default,(0,s.default)({ref:O,selected:q},K,{onClick:function(Te){ee&&Te.persist(),!q&&ke(Te)},hover:!!(Q||V),style:_e(D.index,D.level),"data-testid":"mtablebodyrow"}),ue),f.default.createElement(h.MTableDetailPanel,{options:E,data:D.data,detailPanel:D.detailPanel,renderColumns:ue,size:Oe}),D.data.tableData.childRows&&D.data.tableData.isTreeExpanded&&D.data.tableData.childRows.map(function(ye,Te){return ye.tableData.editing?f.default.createElement(D.components.EditRow,{columns:ne,components:D.components,data:ye,icons:I,localization:P,getFieldValue:D.getFieldValue,key:Te,mode:ye.tableData.editing,isTreeData:D.isTreeData,detailPanel:D.detailPanel,onEditingCanceled:N,onEditingApproved:R,errorState:D.errorState}):f.default.createElement(D.components.Row,(0,s.default)({},D,{data:ye,index:Te,key:Te,level:D.level+1,path:[].concat((0,r.default)(D.path),[ye.tableData.uuid]),onEditingCanceled:N,onEditingApproved:R,hasAnyEditingRow:D.hasAnyEditingRow,treeDataMaxLevel:Y,errorState:D.errorState,cellEditable:H,onCellEditStarted:G,onCellEditFinished:te}))}))}C.defaultProps={actions:[],index:0,data:{},path:[],persistEvents:!1},C.propTypes={forwardedRef:p.default.element,actions:p.default.array,index:p.default.number.isRequired,data:p.default.object.isRequired,detailPanel:p.default.oneOfType([p.default.func,p.default.arrayOf(p.default.oneOfType([p.default.object,p.default.func]))]),hasAnyEditingRow:p.default.bool,onRowSelected:p.default.func,path:p.default.arrayOf(p.default.oneOfType([p.default.string,p.default.number])),persistEvents:p.default.bool,treeDataMaxLevel:p.default.number,getFieldValue:p.default.func.isRequired,columns:p.default.array,onToggleDetailPanel:p.default.func.isRequired,onRowClick:p.default.func,onRowDoubleClick:p.default.func,onEditingApproved:p.default.func,onEditingCanceled:p.default.func,errorState:p.default.oneOfType([p.default.object,p.default.bool])};var T=f.default.forwardRef(function(O,D){return f.default.createElement(C,(0,s.default)({},O,{forwardedRef:D}))});e.default=T}(e3)),e3}var t3={},As={};const jxe=er(f0e);var mE;function zxe(){if(mE)return As;mE=1;var e=Hn;Object.defineProperty(As,"__esModule",{value:!0}),As.getCurrencyValue=i,As.getEmptyValue=l,As.getRenderValue=o,As.isoDateRegex=void 0;var t=e(ge),n=e(jxe),r=/^\d{4}-(0[1-9]|1[0-2])-([12]\d|0[1-9]|3[01])([T\s](([01]\d|2[0-3])\:[0-5]\d|24\:00)(\:[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3])\:?([0-5]\d)?)?)?$/;As.isoDateRegex=r;function l(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof a=="function"?s.columnDef.emptyValue(s.rowData):a}function i(a,s){return a!==void 0?new Intl.NumberFormat(a.locale!==void 0?a.locale:"en-US",{style:"currency",currency:a.currencyCode!==void 0?a.currencyCode:"USD",minimumFractionDigits:a.minimumFractionDigits!==void 0?a.minimumFractionDigits:2,maximumFractionDigits:a.maximumFractionDigits!==void 0?a.maximumFractionDigits:2}).format(s!==void 0?s:0):new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(s!==void 0?s:0)}function o(a,s,u){var c=a.columnDef.dateSetting&&a.columnDef.dateSetting.locale?a.columnDef.dateSetting.locale:void 0;if(a.columnDef.emptyValue!==void 0&&(a.value===void 0||a.value===null))return l(a.columnDef.emptyValue,a);if(a.rowData===void 0&&a.value&&a.columnDef.groupRender)return a.columnDef.groupRender(a.value);if(a.columnDef.render&&a.rowData)return a.columnDef.render(a.rowData);if(a.columnDef.type==="boolean"){var d={textAlign:"left",verticalAlign:"middle",width:48};return a.value?t.default.createElement(s.Check,{style:d}):t.default.createElement(s.ThirdStateCheck,{style:d})}else{if(a.columnDef.type==="date")return a.value instanceof Date?a.value.toLocaleDateString(c):r.exec(a.value)?(0,n.default)(a.value).toLocaleDateString(c):a.value;if(a.columnDef.type==="time")return a.value instanceof Date?a.value.toLocaleTimeString():r.exec(a.value)?(0,n.default)(a.value).toLocaleTimeString(c):a.value;if(a.columnDef.type==="datetime")return a.value instanceof Date?a.value.toLocaleString():r.exec(a.value)?(0,n.default)(a.value).toLocaleString(c):a.value;if(a.columnDef.type==="currency")return i(a.columnDef.currencySetting,a.value);if(typeof a.value=="boolean")return a.value.toString()}return a.value}return As}var Ds={},gE;function ex(){if(gE)return Ds;gE=1;var e=Hn,t=Ma();Object.defineProperty(Ds,"__esModule",{value:!0}),Ds.getStyle=c,Ds.setObjectByKey=Ds.selectFromObject=void 0;var n=e(za()),r=i(bs());function l(d){if(typeof WeakMap!="function")return null;var f=new WeakMap,p=new WeakMap;return(l=function(g){return g?p:f})(d)}function i(d,f){if(d&&d.__esModule)return d;if(d===null||t(d)!=="object"&&typeof d!="function")return{default:d};var p=l(f);if(p&&p.has(d))return p.get(d);var h={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in d)if(b!=="default"&&Object.prototype.hasOwnProperty.call(d,b)){var v=g?Object.getOwnPropertyDescriptor(d,b):null;v&&(v.get||v.set)?Object.defineProperty(h,b,v):h[b]=d[b]}return h.default=d,p&&p.set(d,h),h}function o(d,f){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(d);f&&(h=h.filter(function(g){return Object.getOwnPropertyDescriptor(d,g).enumerable})),p.push.apply(p,h)}return p}function a(d){for(var f=1;f-1)}).sort(function(U,Q){return U.tableData.columnOrder-Q.tableData.columnOrder}).map(function(U,Q){var V=k.getFieldValue(D.data,U,!1),X=function(Ce,Oe){var Pe={color:"inherit"};return typeof Ce.cellStyle=="function"?Pe=_(_({},Pe),Ce.cellStyle(Oe,k.data)):Pe=_(_({},Pe),Ce.cellStyle),Ce.disableClick&&(Pe.cursor="default"),_({},Pe)};Q===0&&24+k.level*20;var K=!1;if(U.editable===void 0&&(K=!0),U.editable==="always"&&(K=!0),U.editable==="onAdd"&&k.mode==="add"&&(K=!0),U.editable==="onUpdate"&&k.mode==="update"&&(K=!0),typeof U.editable=="function"&&(K=U.editable(U,k.data)),!U.field||!K){var ne=k.getFieldValue(D.data,U);return a.default.createElement(k.components.Cell,{size:G,icons:C,columnDef:U,value:ne,key:U.tableData.id,rowData:k.data,style:X(U,V)})}else{var ae=U.editComponent,ie=(0,l.default)(U,b),se=ae||k.components.EditField,pe=(0,g.validateInput)(U,D.data);return te===-1&&(te=Q),a.default.createElement(s.default,{size:G,key:U.tableData.id,align:["numeric"].indexOf(U.type)!==-1?"right":"left",style:X(U,V)},a.default.createElement(se,{key:U.tableData.id,columnDef:ie,autoFocus:te===Q,value:V,error:!pe.isValid,helperText:pe.helperText,locale:k.localization.dateTimePickerLocalization,rowData:D.data,onChange:function(Ce){var Oe=_({},D.data);(0,f.setObjectByKey)(Oe,U.field,Ce),P({data:Oe}),k.onBulkEditRowChanged&&k.onBulkEditRowChanged(k.data,Oe)},onRowDataChange:function(Ce){P({data:Ce}),k.onBulkEditRowChanged&&k.onBulkEditRowChanged(k.data,Ce)}}))}});return ee}var I=k.columns.every(function(G){var te=(0,g.validateInput)(G,D.data);return te.isValid}),A=function(){I&&k.onEditingApproved(k.mode,D.data,k.data)};function F(){if(k.mode!=="bulk"){var G=h.elementSize(k),te=[{icon:C.Check,tooltip:k.localization.saveTooltip,disabled:!I,onClick:A},{icon:C.Clear,tooltip:k.localization.cancelTooltip,onClick:function(){k.onEditingCanceled(k.mode,k.data)}}];return a.default.createElement(s.default,{size:G,padding:"none",key:"key-actions-column",style:_({width:42*te.length,padding:"0px 5px"},T.editCellStyle)},a.default.createElement(k.components.Actions,{data:k.data,actions:te,components:k.components,size:G}))}}function j(){var G={borderBottom:"1px solid red"};return G}var B=function(te){te.keyCode===13&&te.target.type!=="textarea"&&te.target.type!=="button"||te.keyCode===13&&te.target.type==="textarea"&&te.shiftKey?A():te.keyCode===27&&k.onEditingCanceled(k.mode,k.data)},z=h.elementSize(k),N;if(k.mode==="add"||k.mode==="update"||k.mode==="bulk")N=E();else{var R=k.columns.filter(function(G){return!G.hidden&&!(G.tableData.groupOrder>-1)}).length;N=[a.default.createElement(s.default,{size:z,padding:T.actionsColumnIndex===0?"none":void 0,key:"key-edit-cell",colSpan:R},a.default.createElement(c.default,{variant:"h6"},k.localization.deleteText))]}if(T.selection&&N.splice(0,0,a.default.createElement(s.default,{padding:"none",key:"key-selection-cell"})),k.isTreeData&&N.splice(0,0,a.default.createElement(s.default,{padding:"none",key:"key-tree-data-cell"})),T.actionsColumnIndex===-1)N.push(F());else if(T.actionsColumnIndex>=0){var q=0;T.selection&&(q=1),k.isTreeData&&(q=1,T.selection&&N.splice(1,1)),N.splice(T.actionsColumnIndex+q,0,F())}if(k.detailPanel&&T.showDetailPanelIcon!==!1&&k.mode!=="bulk"){var Y=T.detailPanelColumnAlignment,L=Y==="left"?0:N.length;N.splice(L,0,a.default.createElement(s.default,{padding:"none",key:"key-detail-panel-cell"}))}k.columns.filter(function(G){return G.tableData.groupOrder>-1}).forEach(function(G){N.splice(0,0,a.default.createElement(s.default,{padding:"none",key:"key-group-cell"+G.tableData.id}))}),k.detailPanel,k.isTreeData,k.onRowClick,k.onRowSelected,k.onTreeExpandChanged,k.onToggleDetailPanel,k.onEditingApproved,k.onEditingCanceled,k.getFieldValue,k.components,k.columns,k.errorState,k.onBulkEditRowChanged,k.bulkEditChangedRows,k.scrollWidth;var W=k.forwardedRef,H=(0,l.default)(k,v);return a.default.createElement(u.default,(0,r.default)({onKeyDown:B},H,{ref:W,style:j()}),N)}w.defaultProps={actions:[],index:0,options:{},path:[],onBulkEditRowChanged:function(){}},w.propTypes={actions:d.default.array,index:d.default.number.isRequired,data:d.default.object,detailPanel:d.default.oneOfType([d.default.func,d.default.arrayOf(d.default.oneOfType([d.default.object,d.default.func]))]),onRowSelected:d.default.func,path:d.default.arrayOf(d.default.number),columns:d.default.array,onRowClick:d.default.func,onEditingApproved:d.default.func,onEditingCanceled:d.default.func,localization:d.default.object,getFieldValue:d.default.func,errorState:d.default.oneOfType([d.default.object,d.default.bool]),onBulkEditRowChanged:d.default.func};var S=a.default.forwardRef(function(C,T){return a.default.createElement(w,(0,r.default)({},C,{forwardedRef:T}))});e.default=S}(r3)),r3}var a3={},o3={},Tu={},xE;function r4(){if(xE)return Tu;xE=1;var e=Hn;Object.defineProperty(Tu,"__esModule",{value:!0}),Tu.getLocalizedFilterPlaceHolder=Tu.getLocalizationData=void 0;var t=e(za()),n=fq();function r(a,s){var u=Object.keys(a);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(a);s&&(c=c.filter(function(d){return Object.getOwnPropertyDescriptor(a,d).enumerable})),u.push.apply(u,c)}return u}function l(a){for(var s=1;s-1}),d.default.createElement(a.default,{primary:_.lookup[D]}))})))}var y=d.default.forwardRef(function(_,w){return d.default.createElement(m,(0,r.default)({},_,{forwardedRef:w}))});e.default=y}(i3)),i3}var l3={};const dq=er(Eue);var TE;function Yxe(){return TE||(TE=1,function(e){var t=Hn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(jr()),r=t(Ib),l=t(dq),i=t(Mc),o=t(ge),a=r4();function s(c){var d,f,p=c.columnDef,h=c.icons,g=c.localization,b=c.hideFilterIcons,v=c.onFilterChanged,m=c.forwardedRef,y=(0,a.getLocalizationData)(g),x=h.Filter;return o.default.createElement(r.default,{ref:m,style:p.type==="numeric"?{float:(d=p.align)!==null&&d!==void 0?d:"right"}:{float:(f=p.align)!==null&&f!==void 0?f:"left"},type:p.type==="numeric"?"number":"search",value:p.tableData.filterValue||"",placeholder:(0,a.getLocalizedFilterPlaceHolder)(p,g),onChange:function(w){v(p.tableData.id,w.target.value)},inputProps:{"aria-label":"filter data by ".concat(p.title)},InputProps:b||p.hideFilterIcon?void 0:{startAdornment:o.default.createElement(l.default,{position:"start"},o.default.createElement(i.default,{title:y.filterTooltip},o.default.createElement(x,null)))}})}var u=o.default.forwardRef(function(d,f){return o.default.createElement(s,(0,n.default)({},d,{forwardedRef:f}))});e.default=u}(l3)),l3}var s3={},SE;function Xxe(){return SE||(SE=1,function(e){var t=Hn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(jr()),r=t(Cc),l=t(ge);function i(a){var s=a.forwardedRef,u=a.columnDef,c=a.onFilterChanged;return l.default.createElement(r.default,{ref:s,inputProps:{"aria-label":"Filter of ".concat(u.title)},indeterminate:u.tableData.filterValue===void 0,checked:u.tableData.filterValue==="checked",onChange:function(){var f;u.tableData.filterValue===void 0?f="checked":u.tableData.filterValue==="checked"&&(f="unchecked"),c(u.tableData.id,f)}})}var o=l.default.forwardRef(function(s,u){return l.default.createElement(i,(0,n.default)({},s,{forwardedRef:u}))});e.default=o}(s3)),s3}var u3={},kE;function Kxe(){return kE||(kE=1,function(e){var t=Hn,n=Ma();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(jr()),l=o(ge);function i(u){if(typeof WeakMap!="function")return null;var c=new WeakMap,d=new WeakMap;return(i=function(p){return p?d:c})(u)}function o(u,c){if(u&&u.__esModule)return u;if(u===null||n(u)!=="object"&&typeof u!="function")return{default:u};var d=i(c);if(d&&d.has(u))return d.get(u);var f={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in u)if(h!=="default"&&Object.prototype.hasOwnProperty.call(u,h)){var g=p?Object.getOwnPropertyDescriptor(u,h):null;g&&(g.get||g.set)?Object.defineProperty(f,h,g):f[h]=u[h]}return f.default=u,d&&d.set(u,f),f}function a(u){var c=u.columnDef,d=u.onFilterChanged,f=u.forwardedRef;return(0,l.createElement)(c.filterComponent,{columnDef:c,onFilterChanged:d,forwardedRef:f})}var s=l.default.forwardRef(function(c,d){return l.default.createElement(a,(0,r.default)({},c,{forwardedRef:d}))});e.default=s}(u3)),u3}var CE;function fq(){return CE||(CE=1,function(e){var t=Hn;Object.defineProperty(e,"__esModule",{value:!0}),e.MTableFilterRow=b,e.default=void 0;var n=t(ms),r=t(zl),l=t(za()),i=t(jr()),o=t(ge),a=t(Kr),s=t(Uxe()),u=t(Gxe()),c=t(Yxe()),d=t(Xxe()),f=t(Kxe()),p=mg();function h(m,y){var x=Object.keys(m);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(m);y&&(_=_.filter(function(w){return Object.getOwnPropertyDescriptor(m,w).enumerable})),x.push.apply(x,_)}return x}function g(m){for(var y=1;y-1)}).sort(function(k,C){return k.tableData.columnOrder-C.tableData.columnOrder}).map(function(k){return o.default.createElement(r.default,{key:k.tableData.id,style:g(g({},y.filterCellStyle),k.filterCellStyle)},x(k))});if(y.selection&&_.splice(0,0,o.default.createElement(r.default,{padding:"none",key:"key-selection-column"})),m.hasActions)if(y.actionsColumnIndex===-1)_.push(o.default.createElement(r.default,{key:"key-action-column"}));else{var w=0;m.selection&&(w=1),_.splice(y.actionsColumnIndex+w,0,o.default.createElement(r.default,{key:"key-action-column"}))}if(m.hasDetailPanel&&y.showDetailPanelIcon){var S=y.detailPanelColumnAlignment==="left"?0:_.length;_.splice(S,0,o.default.createElement(r.default,{padding:"none",key:"key-detail-panel-column"}))}return m.isTreeData>0&&_.splice(0,0,o.default.createElement(r.default,{padding:"none",key:"key-tree-data-filter"})),m.columns.filter(function(k){return k.tableData.groupOrder>-1}).forEach(function(k){_.splice(0,0,o.default.createElement(r.default,{padding:"checkbox",key:"key-group-filter"+k.tableData.id}))}),o.default.createElement(n.default,{id:"m--table--filter--row",ref:m.forwardedRef,style:g({height:10},y.filterRowStyle)},_)}b.defaultProps={columns:[],hasActions:!1,localization:{filterTooltip:"Filter"}},b.propTypes={columns:a.default.array.isRequired,hasDetailPanel:a.default.bool.isRequired,isTreeData:a.default.bool.isRequired,onFilterChanged:a.default.func.isRequired,hasActions:a.default.bool,localization:a.default.object};var v=o.default.forwardRef(function(y,x){return o.default.createElement(b,(0,i.default)({},y,{forwardedRef:x}))});e.default=v}(a3)),a3}var c3={};const pq=er(rfe),Zxe=er(Eie);function ME(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function PE(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Ro(1));return n(hq)(e,t)}if(typeof e!="function")throw new Error(Ro(2));var l=e,i=t,o=[],a=o,s=!1;function u(){a===o&&(a=o.slice())}function c(){if(s)throw new Error(Ro(3));return i}function d(g){if(typeof g!="function")throw new Error(Ro(4));if(s)throw new Error(Ro(5));var b=!0;return u(),a.push(g),function(){if(b){if(s)throw new Error(Ro(6));b=!1,u();var m=a.indexOf(g);a.splice(m,1),o=null}}}function f(g){if(!Qxe(g))throw new Error(Ro(7));if(typeof g.type>"u")throw new Error(Ro(8));if(s)throw new Error(Ro(9));try{s=!0,i=l(i,g)}finally{s=!1}for(var b=o=a,v=0;vgq=e,n2e=()=>gq,RE=Symbol.for("react-redux-context"),LE=typeof globalThis<"u"?globalThis:{};function r2e(){var e;if(!ge.createContext)return{};const t=(e=LE[RE])!=null?e:LE[RE]=new Map;let n=t.get(ge.createContext);return n||(n=ge.createContext(null),t.set(ge.createContext,n)),n}const vq=r2e(),a2e=()=>{throw new Error("uSES not initialized!")},o2e=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function i2e(e,t,n,r,{areStatesEqual:l,areOwnPropsEqual:i,areStatePropsEqual:o}){let a=!1,s,u,c,d,f;function p(m,y){return s=m,u=y,c=e(s,u),d=t(r,u),f=n(c,d,u),a=!0,f}function h(){return c=e(s,u),t.dependsOnOwnProps&&(d=t(r,u)),f=n(c,d,u),f}function g(){return e.dependsOnOwnProps&&(c=e(s,u)),t.dependsOnOwnProps&&(d=t(r,u)),f=n(c,d,u),f}function b(){const m=e(s,u),y=!o(m,c);return c=m,y&&(f=n(c,d,u)),f}function v(m,y){const x=!i(y,u),_=!l(m,s,y,u);return s=m,u=y,x&&_?h():x?g():_?b():f}return function(y,x){return a?v(y,x):p(y,x)}}function l2e(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:l}=t,i=tr(t,o2e);const o=n(e,i),a=r(e,i),s=l(e,i);return i2e(o,a,s,e,i)}function s2e(e,t){const n={};for(const r in e){const l=e[r];typeof l=="function"&&(n[r]=(...i)=>t(l(...i)))}return n}function XS(e){return function(n){const r=e(n);function l(){return r}return l.dependsOnOwnProps=!1,l}}function IE(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function yq(e,t){return function(r,{displayName:l}){const i=function(a,s){return i.dependsOnOwnProps?i.mapToProps(a,s):i.mapToProps(a,void 0)};return i.dependsOnOwnProps=!0,i.mapToProps=function(a,s){i.mapToProps=e,i.dependsOnOwnProps=IE(e);let u=i(a,s);return typeof u=="function"&&(i.mapToProps=u,i.dependsOnOwnProps=IE(u),u=i(a,s)),u},i}}function a4(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function u2e(e){return e&&typeof e=="object"?XS(t=>s2e(e,t)):e?typeof e=="function"?yq(e):a4(e,"mapDispatchToProps"):XS(t=>({dispatch:t}))}function c2e(e){return e?typeof e=="function"?yq(e):a4(e,"mapStateToProps"):XS(()=>({}))}function d2e(e,t,n){return Yt({},n,e,t)}function f2e(e){return function(n,{displayName:r,areMergedPropsEqual:l}){let i=!1,o;return function(s,u,c){const d=e(s,u,c);return i?l(d,o)||(o=d):(i=!0,o=d),o}}}function p2e(e){return e?typeof e=="function"?f2e(e):a4(e,"mergeProps"):()=>d2e}function h2e(){const e=n2e();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],l=t;for(;l;)r.push(l),l=l.next;return r},subscribe(r){let l=!0,i=n={callback:r,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){!l||t===null||(l=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}const $E={notify(){},get:()=>[]};function bq(e,t){let n,r=$E,l=0,i=!1;function o(g){c();const b=r.subscribe(g);let v=!1;return()=>{v||(v=!0,b(),d())}}function a(){r.notify()}function s(){h.onStateChange&&h.onStateChange()}function u(){return i}function c(){l++,n||(n=t?t.addNestedSub(s):e.subscribe(s),r=h2e())}function d(){l--,n&&l===0&&(n(),n=void 0,r.clear(),r=$E)}function f(){i||(i=!0,c())}function p(){i&&(i=!1,d())}const h={addNestedSub:o,notifyNestedSubs:a,handleChangeWrapper:s,isSubscribed:u,trySubscribe:f,tryUnsubscribe:p,getListeners:()=>r};return h}const m2e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ry=m2e?ge.useLayoutEffect:ge.useEffect;function NE(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function f3(e,t){if(NE(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let l=0;l{xq=e},y2e=[null,null];function b2e(e,t,n){Ry(()=>e(...t),n)}function x2e(e,t,n,r,l,i){e.current=r,n.current=!1,l.current&&(l.current=null,i())}function w2e(e,t,n,r,l,i,o,a,s,u,c){if(!e)return()=>{};let d=!1,f=null;const p=()=>{if(d||!a.current)return;const g=t.getState();let b,v;try{b=r(g,l.current)}catch(m){v=m,f=m}v||(f=null),b===i.current?o.current||u():(i.current=b,s.current=b,o.current=!0,c())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}function _2e(e,t){return e===t}function wq(e,t,n,{pure:r,areStatesEqual:l=_2e,areOwnPropsEqual:i=f3,areStatePropsEqual:o=f3,areMergedPropsEqual:a=f3,forwardRef:s=!1,context:u=vq}={}){const c=u,d=c2e(e),f=u2e(t),p=p2e(n),h=!!e;return b=>{const v=b.displayName||b.name||"Component",m=`Connect(${v})`,y={shouldHandleStateChanges:h,displayName:m,wrappedComponentName:v,WrappedComponent:b,initMapStateToProps:d,initMapDispatchToProps:f,initMergeProps:p,areStatesEqual:l,areStatePropsEqual:o,areOwnPropsEqual:i,areMergedPropsEqual:a};function x(S){const[k,C,T]=ge.useMemo(()=>{const{reactReduxForwardedRef:U}=S,Q=tr(S,g2e);return[S.context,U,Q]},[S]),M=ge.useMemo(()=>k&&k.Consumer&&zve.isContextConsumer(ge.createElement(k.Consumer,null))?k:c,[k,c]),O=ge.useContext(M),D=!!S.store&&!!S.store.getState&&!!S.store.dispatch,P=!!O&&!!O.store,E=D?S.store:O.store,I=P?O.getServerState:E.getState,A=ge.useMemo(()=>l2e(E.dispatch,y),[E]),[F,j]=ge.useMemo(()=>{if(!h)return y2e;const U=bq(E,D?void 0:O.subscription),Q=U.notifyNestedSubs.bind(U);return[U,Q]},[E,D,O]),B=ge.useMemo(()=>D?O:Yt({},O,{subscription:F}),[D,O,F]),z=ge.useRef(),N=ge.useRef(T),R=ge.useRef(),q=ge.useRef(!1);ge.useRef(!1);const Y=ge.useRef(!1),L=ge.useRef();Ry(()=>(Y.current=!0,()=>{Y.current=!1}),[]);const W=ge.useMemo(()=>()=>R.current&&T===N.current?R.current:A(E.getState(),T),[E,T]),H=ge.useMemo(()=>Q=>F?w2e(h,E,F,A,N,z,q,Y,R,j,Q):()=>{},[F]);b2e(x2e,[N,z,q,T,R,j]);let G;try{G=xq(H,W,I?()=>A(I(),T):W)}catch(U){throw L.current&&(U.message+=` The error may be correlated with this previous error: ${L.current.stack} -`),H}cy(()=>{L.current=void 0,R.current=void 0,B.current=V});const te=ge.useMemo(()=>ge.createElement(b,Ie({},V,{ref:S})),[S,b,V]);return ge.useMemo(()=>m?ge.createElement(M.Provider,{value:z},te):te,[M,te,z])}const x=ge.memo(w);if(x.WrappedComponent=b,x.displayName=w.displayName=h,s){const k=ge.forwardRef(function(C,M){return ge.createElement(x,Ie({},C,{reactReduxForwardedRef:M}))});return k.displayName=h,k.WrappedComponent=b,xA(k,b)}return xA(x,b)}}function K2e({store:e,context:t,children:n,serverState:r,stabilityCheck:l="once",noopCheck:i="once"}){const o=ge.useMemo(()=>{const u=DW(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:l,noopCheck:i}},[e,r,l,i]),a=ge.useMemo(()=>e.getState(),[e]);cy(()=>{const{subscription:u}=o;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),a!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[o,a]);const s=t||OW;return ge.createElement(s.Provider,{value:o},n)}U2e(Qz.useSyncExternalStore);P2e(cc.unstable_batchedUpdates);function Z2e(e,t){if(e.length!==t.length)return!1;for(var n=0;n{const i=owe(n,l.options);return e.addEventListener(l.eventName,l.fn,i),function(){e.removeEventListener(l.eventName,l.fn,i)}});return function(){r.forEach(i=>{i()})}}const iwe="Invariant failed";class py extends Error{}py.prototype.toString=function(){return this.message};function bn(e,t){throw new py(iwe)}class lwe extends Je.Component{constructor(){super(...arguments),this.callbacks=null,this.unbind=qs,this.onWindowError=t=>{const n=this.getCallbacks();n.isDragging()&&n.tryAbort(),t.error instanceof py&&t.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in ");return this.callbacks},this.setCallbacks=t=>{this.callbacks=t}}componentDidMount(){this.unbind=vi(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(t){if(t instanceof py){this.setState({});return}throw t}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const swe=` +`),U}Ry(()=>{L.current=void 0,R.current=void 0,z.current=G});const te=ge.useMemo(()=>ge.createElement(b,Yt({},G,{ref:C})),[C,b,G]);return ge.useMemo(()=>h?ge.createElement(M.Provider,{value:B},te):te,[M,te,B])}const w=ge.memo(x);if(w.WrappedComponent=b,w.displayName=x.displayName=m,s){const k=ge.forwardRef(function(T,M){return ge.createElement(w,Yt({},T,{reactReduxForwardedRef:M}))});return k.displayName=m,k.WrappedComponent=b,nA(k,b)}return nA(w,b)}}function T2e({store:e,context:t,children:n,serverState:r,stabilityCheck:l="once",noopCheck:i="once"}){const o=ge.useMemo(()=>{const u=bq(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:l,noopCheck:i}},[e,r,l,i]),a=ge.useMemo(()=>e.getState(),[e]);Ry(()=>{const{subscription:u}=o;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),a!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[o,a]);const s=t||vq;return ge.createElement(s.Provider,{value:o},n)}v2e(FB.useSyncExternalStore);t2e(bf.unstable_batchedUpdates);function S2e(e,t){if(e.length!==t.length)return!1;for(var n=0;n{const i=E2e(n,l.options);return e.addEventListener(l.eventName,l.fn,i),function(){e.removeEventListener(l.eventName,l.fn,i)}});return function(){r.forEach(i=>{i()})}}const R2e="Invariant failed";class $y extends Error{}$y.prototype.toString=function(){return this.message};function mn(e,t){throw new $y(R2e)}class L2e extends Ke.Component{constructor(){super(...arguments),this.callbacks=null,this.unbind=Zs,this.onWindowError=t=>{const n=this.getCallbacks();n.isDragging()&&n.tryAbort(),t.error instanceof $y&&t.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in ");return this.callbacks},this.setCallbacks=t=>{this.callbacks=t}}componentDidMount(){this.unbind=Pi(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(t){if(t instanceof $y){this.setState({});return}throw t}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const I2e=` Press space bar to start a drag. When dragging you can use the arrow keys to move the item around and escape to cancel. Some screen readers may require you to be in focus mode or to use your pass through key -`,hy=e=>e+1,uwe=e=>` - You have lifted an item in position ${hy(e.source.index)} -`,FW=(e,t)=>{const n=e.droppableId===t.droppableId,r=hy(e.index),l=hy(t.index);return n?` +`,Ny=e=>e+1,$2e=e=>` + You have lifted an item in position ${Ny(e.source.index)} +`,Cq=(e,t)=>{const n=e.droppableId===t.droppableId,r=Ny(e.index),l=Ny(t.index);return n?` You have moved the item from position ${r} to position ${l} `:` @@ -496,38 +508,38 @@ ${L.current.stack} in list ${e.droppableId} to list ${t.droppableId} in position ${l} - `},jW=(e,t,n)=>t.droppableId===n.droppableId?` + `},Mq=(e,t,n)=>t.droppableId===n.droppableId?` The item ${e} has been combined with ${n.draggableId}`:` The item ${e} in list ${t.droppableId} has been combined with ${n.draggableId} in list ${n.droppableId} - `,cwe=e=>{const t=e.destination;if(t)return FW(e.source,t);const n=e.combine;return n?jW(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},hE=e=>` + `,N2e=e=>{const t=e.destination;if(t)return Cq(e.source,t);const n=e.combine;return n?Mq(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},zE=e=>` The item has returned to its starting position - of ${hy(e.index)} -`,dwe=e=>{if(e.reason==="CANCEL")return` + of ${Ny(e.index)} +`,F2e=e=>{if(e.reason==="CANCEL")return` Movement cancelled. - ${hE(e.source)} + ${zE(e.source)} `;const t=e.destination,n=e.combine;return t?` You have dropped the item. - ${FW(e.source,t)} + ${Cq(e.source,t)} `:n?` You have dropped the item. - ${jW(e.draggableId,e.source,n)} + ${Mq(e.draggableId,e.source,n)} `:` The item has been dropped while not over a drop area. - ${hE(e.source)} - `},fwe={dragHandleUsageInstructions:swe,onDragStart:uwe,onDragUpdate:cwe,onDragEnd:dwe};var ov=fwe;const za={x:0,y:0},Ja=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),Go=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),Us=(e,t)=>e.x===t.x&&e.y===t.y,ff=e=>({x:e.x!==0?-e.x:0,y:e.y!==0?-e.y:0}),Ku=function(e,t,n){return n===void 0&&(n=0),e==="x"?{x:t,y:n}:{x:n,y:t}},vm=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),mE=(e,t)=>Math.min(...t.map(n=>vm(e,n))),zW=e=>t=>({x:e(t.x),y:e(t.y)});var pwe=(e,t)=>{const n=zi({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n};const ig=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),gE=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],hwe={top:0,right:0,bottom:0,left:0},mwe=(e,t)=>t?ig(e,t.scroll.diff.displacement):e,gwe=(e,t,n)=>n&&n.increasedBy?{...e,[t.end]:e[t.end]+n.increasedBy[t.line]}:e,vwe=(e,t)=>t&&t.shouldClipSubject?pwe(t.pageMarginBox,e):zi(e);var Hd=e=>{let{page:t,withPlaceholder:n,axis:r,frame:l}=e;const i=mwe(t.marginBox,l),o=gwe(i,r,n),a=vwe(o,l);return{page:t,withPlaceholder:n,active:a}},v5=(e,t)=>{e.frame||bn();const n=e.frame,r=Go(t,n.scroll.initial),l=ff(r),i={...n,scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:l},max:n.scroll.max}},o=Hd({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i});return{...e,frame:i,subject:o}};const BW=ja(e=>e.reduce((t,n)=>(t[n.descriptor.id]=n,t),{})),WW=ja(e=>e.reduce((t,n)=>(t[n.descriptor.id]=n,t),{})),kb=ja(e=>Object.values(e)),ywe=ja(e=>Object.values(e));var pf=ja((e,t)=>ywe(t).filter(r=>e===r.descriptor.droppableId).sort((r,l)=>r.descriptor.index-l.descriptor.index));function y5(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function Sb(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var Cb=ja((e,t)=>t.filter(n=>n.descriptor.id!==e.descriptor.id)),bwe=e=>{let{isMovingForward:t,draggable:n,destination:r,insideDestination:l,previousImpact:i}=e;if(!r.isCombineEnabled||!y5(i))return null;function a(m){const g={type:"COMBINE",combine:{draggableId:m,droppableId:r.descriptor.id}};return{...i,at:g}}const s=i.displaced.all,u=s.length?s[0]:null;if(t)return u?a(u):null;const c=Cb(n,l);if(!u){if(!c.length)return null;const m=c[c.length-1];return a(m.descriptor.id)}const d=c.findIndex(m=>m.descriptor.id===u);d===-1&&bn();const f=d-1;if(f<0)return null;const p=c[f];return a(p.descriptor.id)},hf=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const qW={point:za,value:0},ym={invisible:{},visible:{},all:[]},xwe={displaced:ym,displacedBy:qW,at:null};var wwe=xwe,wi=(e,t)=>n=>e<=n&&n<=t,UW=e=>{const t=wi(e.top,e.bottom),n=wi(e.left,e.right);return r=>{if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;const i=t(r.top)||t(r.bottom),o=n(r.left)||n(r.right);if(i&&o)return!0;const s=r.tope.bottom,u=r.lefte.right;return s&&u?!0:s&&o||u&&i}},_we=e=>{const t=wi(e.top,e.bottom),n=wi(e.left,e.right);return r=>t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right)};const b5={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},HW={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};var Twe=e=>t=>{const n=wi(t.top,t.bottom),r=wi(t.left,t.right);return l=>e===b5?n(l.top)&&n(l.bottom):r(l.left)&&r(l.right)};const kwe=(e,t)=>{const n=t.frame?t.frame.scroll.diff.displacement:za;return ig(e,n)},Swe=(e,t,n)=>t.subject.active?n(t.subject.active)(e):!1,Cwe=(e,t,n)=>n(t)(e),x5=e=>{let{target:t,destination:n,viewport:r,withDroppableDisplacement:l,isVisibleThroughFrameFn:i}=e;const o=l?kwe(t,n):t;return Swe(o,n,i)&&Cwe(o,r,i)},Mwe=e=>x5({...e,isVisibleThroughFrameFn:UW}),VW=e=>x5({...e,isVisibleThroughFrameFn:_we}),Pwe=e=>x5({...e,isVisibleThroughFrameFn:Twe(e.destination.axis)}),Owe=(e,t,n)=>{if(typeof n=="boolean")return n;if(!t)return!0;const{invisible:r,visible:l}=t;if(r[e])return!1;const i=l[e];return i?i.shouldAnimate:!0};function Awe(e,t){const n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return zi(m5(n,r))}function bm(e){let{afterDragging:t,destination:n,displacedBy:r,viewport:l,forceShouldAnimate:i,last:o}=e;return t.reduce(function(s,u){const c=Awe(u,r),d=u.descriptor.id;if(s.all.push(d),!Mwe({target:c,destination:n,viewport:l,withDroppableDisplacement:!0}))return s.invisible[u.descriptor.id]=!0,s;const p=Owe(d,o,i),m={draggableId:d,shouldAnimate:p};return s.visible[d]=m,s},{all:[],visible:{},invisible:{}})}function Dwe(e,t){if(!e.length)return 0;const n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}function vE(e){let{insideDestination:t,inHomeList:n,displacedBy:r,destination:l}=e;const i=Dwe(t,{inHomeList:n});return{displaced:ym,displacedBy:r,at:{type:"REORDER",destination:{droppableId:l.descriptor.id,index:i}}}}function my(e){let{draggable:t,insideDestination:n,destination:r,viewport:l,displacedBy:i,last:o,index:a,forceShouldAnimate:s}=e;const u=hf(t,r);if(a==null)return vE({insideDestination:n,inHomeList:u,displacedBy:i,destination:r});const c=n.find(g=>g.descriptor.index===a);if(!c)return vE({insideDestination:n,inHomeList:u,displacedBy:i,destination:r});const d=Cb(t,n),f=n.indexOf(c),p=d.slice(f);return{displaced:bm({afterDragging:p,destination:r,displacedBy:i,last:o,viewport:l.frame,forceShouldAnimate:s}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:a}}}}function Xs(e,t){return!!t.effected[e]}var Ewe=e=>{let{isMovingForward:t,destination:n,draggables:r,combine:l,afterCritical:i}=e;if(!n.isCombineEnabled)return null;const o=l.draggableId,s=r[o].descriptor.index;return Xs(o,i)?t?s:s-1:t?s+1:s},Rwe=e=>{let{isMovingForward:t,isInHomeList:n,insideDestination:r,location:l}=e;if(!r.length)return null;const i=l.index,o=t?i+1:i-1,a=r[0].descriptor.index,s=r[r.length-1].descriptor.index,u=n?s:s+1;return ou?null:o},Lwe=e=>{let{isMovingForward:t,isInHomeList:n,draggable:r,draggables:l,destination:i,insideDestination:o,previousImpact:a,viewport:s,afterCritical:u}=e;const c=a.at;if(c||bn(),c.type==="REORDER"){const f=Rwe({isMovingForward:t,isInHomeList:n,location:c.destination,insideDestination:o});return f==null?null:my({draggable:r,insideDestination:o,destination:i,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:f})}const d=Ewe({isMovingForward:t,destination:i,displaced:a.displaced,draggables:l,combine:c.combine,afterCritical:u});return d==null?null:my({draggable:r,insideDestination:o,destination:i,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:d})},Iwe=e=>{let{displaced:t,afterCritical:n,combineWith:r,displacedBy:l}=e;const i=!!(t.visible[r]||t.invisible[r]);return Xs(r,n)?i?za:ff(l.point):i?l.point:za},$we=e=>{let{afterCritical:t,impact:n,draggables:r}=e;const l=Sb(n);l||bn();const i=l.draggableId,o=r[i].page.borderBox.center,a=Iwe({displaced:n.displaced,afterCritical:t,combineWith:i,displacedBy:n.displacedBy});return Ja(o,a)};const GW=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,Nwe=(e,t)=>t.margin[e.end]+t.borderBox[e.size]/2,w5=(e,t,n)=>t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2,yE=e=>{let{axis:t,moveRelativeTo:n,isMoving:r}=e;return Ku(t.line,n.marginBox[t.end]+GW(t,r),w5(t,n.marginBox,r))},bE=e=>{let{axis:t,moveRelativeTo:n,isMoving:r}=e;return Ku(t.line,n.marginBox[t.start]-Nwe(t,r),w5(t,n.marginBox,r))},Fwe=e=>{let{axis:t,moveInto:n,isMoving:r}=e;return Ku(t.line,n.contentBox[t.start]+GW(t,r),w5(t,n.contentBox,r))};var jwe=e=>{let{impact:t,draggable:n,draggables:r,droppable:l,afterCritical:i}=e;const o=pf(l.descriptor.id,r),a=n.page,s=l.axis;if(!o.length)return Fwe({axis:s,moveInto:l.page,isMoving:a});const{displaced:u,displacedBy:c}=t,d=u.all[0];if(d){const p=r[d];if(Xs(d,i))return bE({axis:s,moveRelativeTo:p.page,isMoving:a});const m=dy(p.page,c.point);return bE({axis:s,moveRelativeTo:m,isMoving:a})}const f=o[o.length-1];if(f.descriptor.id===n.descriptor.id)return a.borderBox.center;if(Xs(f.descriptor.id,i)){const p=dy(f.page,ff(i.displacedBy.point));return yE({axis:s,moveRelativeTo:p,isMoving:a})}return yE({axis:s,moveRelativeTo:f.page,isMoving:a})},fk=(e,t)=>{const n=e.frame;return n?Ja(t,n.scroll.diff.displacement):t};const zwe=e=>{let{impact:t,draggable:n,droppable:r,draggables:l,afterCritical:i}=e;const o=n.page.borderBox.center,a=t.at;return!r||!a?o:a.type==="REORDER"?jwe({impact:t,draggable:n,draggables:l,droppable:r,afterCritical:i}):$we({impact:t,draggables:l,afterCritical:i})};var Mb=e=>{const t=zwe(e),n=e.droppable;return n?fk(n,t):t},YW=(e,t)=>{const n=Go(t,e.scroll.initial),r=ff(n);return{frame:zi({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function xE(e,t){return e.map(n=>t[n])}function Bwe(e,t){for(let n=0;n{let{impact:t,viewport:n,destination:r,draggables:l,maxScrollChange:i}=e;const o=YW(n,Ja(n.scroll.current,i)),a=r.frame?v5(r,Ja(r.frame.scroll.current,i)):r,s=t.displaced,u=bm({afterDragging:xE(s.all,l),destination:r,displacedBy:t.displacedBy,viewport:o.frame,last:s,forceShouldAnimate:!1}),c=bm({afterDragging:xE(s.all,l),destination:a,displacedBy:t.displacedBy,viewport:n.frame,last:s,forceShouldAnimate:!1}),d={},f={},p=[s,u,c];return s.all.forEach(g=>{const b=Bwe(g,p);if(b){f[g]=b;return}d[g]=!0}),{...t,displaced:{all:s.all,invisible:d,visible:f}}},qwe=(e,t)=>Ja(e.scroll.diff.displacement,t),_5=e=>{let{pageBorderBoxCenter:t,draggable:n,viewport:r}=e;const l=qwe(r,t),i=Go(l,n.page.borderBox.center);return Ja(n.client.borderBox.center,i)},XW=e=>{let{draggable:t,destination:n,newPageBorderBoxCenter:r,viewport:l,withDroppableDisplacement:i,onlyOnMainAxis:o=!1}=e;const a=Go(r,t.page.borderBox.center),u={target:ig(t.page.borderBox,a),destination:n,withDroppableDisplacement:i,viewport:l};return o?Pwe(u):VW(u)},Uwe=e=>{let{isMovingForward:t,draggable:n,destination:r,draggables:l,previousImpact:i,viewport:o,previousPageBorderBoxCenter:a,previousClientSelection:s,afterCritical:u}=e;if(!r.isEnabled)return null;const c=pf(r.descriptor.id,l),d=hf(n,r),f=bwe({isMovingForward:t,draggable:n,destination:r,insideDestination:c,previousImpact:i})||Lwe({isMovingForward:t,isInHomeList:d,draggable:n,draggables:l,destination:r,insideDestination:c,previousImpact:i,viewport:o,afterCritical:u});if(!f)return null;const p=Mb({impact:f,draggable:n,droppable:r,draggables:l,afterCritical:u});if(XW({draggable:n,destination:r,newPageBorderBoxCenter:p,viewport:o.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:_5({pageBorderBoxCenter:p,draggable:n,viewport:o}),impact:f,scrollJumpRequest:null};const g=Go(p,a),b=Wwe({impact:f,viewport:o,destination:r,draggables:l,maxScrollChange:g});return{clientSelection:s,impact:b,scrollJumpRequest:g}};const go=e=>{const t=e.subject.active;return t||bn(),t};var Hwe=e=>{let{isMovingForward:t,pageBorderBoxCenter:n,source:r,droppables:l,viewport:i}=e;const o=r.subject.active;if(!o)return null;const a=r.axis,s=wi(o[a.start],o[a.end]),u=kb(l).filter(d=>d!==r).filter(d=>d.isEnabled).filter(d=>!!d.subject.active).filter(d=>UW(i.frame)(go(d))).filter(d=>{const f=go(d);return t?o[a.crossAxisEnd]{const f=go(d),p=wi(f[a.start],f[a.end]);return s(f[a.start])||s(f[a.end])||p(o[a.start])||p(o[a.end])}).sort((d,f)=>{const p=go(d)[a.crossAxisStart],m=go(f)[a.crossAxisStart];return t?p-m:m-p}).filter((d,f,p)=>go(d)[a.crossAxisStart]===go(p[0])[a.crossAxisStart]);if(!u.length)return null;if(u.length===1)return u[0];const c=u.filter(d=>wi(go(d)[a.start],go(d)[a.end])(n[a.line]));return c.length===1?c[0]:c.length>1?c.sort((d,f)=>go(d)[a.start]-go(f)[a.start])[0]:u.sort((d,f)=>{const p=mE(n,gE(go(d))),m=mE(n,gE(go(f)));return p!==m?p-m:go(d)[a.start]-go(f)[a.start]})[0]};const wE=(e,t)=>{const n=e.page.borderBox.center;return Xs(e.descriptor.id,t)?Go(n,t.displacedBy.point):n},Vwe=(e,t)=>{const n=e.page.borderBox;return Xs(e.descriptor.id,t)?ig(n,ff(t.displacedBy.point)):n};var Gwe=e=>{let{pageBorderBoxCenter:t,viewport:n,destination:r,insideDestination:l,afterCritical:i}=e;return l.filter(a=>VW({target:Vwe(a,i),destination:r,viewport:n.frame,withDroppableDisplacement:!0})).sort((a,s)=>{const u=vm(t,fk(r,wE(a,i))),c=vm(t,fk(r,wE(s,i)));return u{const r=e.axis;if(e.descriptor.mode==="virtual")return Ku(r.line,t[r.line]);const l=e.subject.page.contentBox[r.size],s=pf(e.descriptor.id,n).reduce((u,c)=>u+c.client.marginBox[r.size],0)+t[r.line]-l;return s<=0?null:Ku(r.line,s)},KW=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),ZW=(e,t,n)=>{const r=e.frame;hf(t,e)&&bn(),e.subject.withPlaceholder&&bn();const l=lg(e.axis,t.displaceBy).point,i=Ywe(e,l,n),o={placeholderSize:l,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){const c=Hd({page:e.subject.page,withPlaceholder:o,axis:e.axis,frame:e.frame});return{...e,subject:c}}const a=i?Ja(r.scroll.max,i):r.scroll.max,s=KW(r,a),u=Hd({page:e.subject.page,withPlaceholder:o,axis:e.axis,frame:s});return{...e,subject:u,frame:s}},Xwe=e=>{const t=e.subject.withPlaceholder;t||bn();const n=e.frame;if(!n){const o=Hd({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:o}}const r=t.oldFrameMaxScroll;r||bn();const l=KW(n,r),i=Hd({page:e.subject.page,axis:e.axis,frame:l,withPlaceholder:null});return{...e,subject:i,frame:l}};var Kwe=e=>{let{previousPageBorderBoxCenter:t,moveRelativeTo:n,insideDestination:r,draggable:l,draggables:i,destination:o,viewport:a,afterCritical:s}=e;if(!n){if(r.length)return null;const f={displaced:ym,displacedBy:qW,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:0}}},p=Mb({impact:f,draggable:l,droppable:o,draggables:i,afterCritical:s}),m=hf(l,o)?o:ZW(o,l,i);return XW({draggable:l,destination:m,newPageBorderBoxCenter:p,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?f:null}const u=t[o.axis.line]<=n.page.borderBox.center[o.axis.line],c=(()=>{const f=n.descriptor.index;return n.descriptor.id===l.descriptor.id||u?f:f+1})(),d=lg(o.axis,l.displaceBy);return my({draggable:l,insideDestination:r,destination:o,viewport:a,displacedBy:d,last:ym,index:c})},Zwe=e=>{let{isMovingForward:t,previousPageBorderBoxCenter:n,draggable:r,isOver:l,draggables:i,droppables:o,viewport:a,afterCritical:s}=e;const u=Hwe({isMovingForward:t,pageBorderBoxCenter:n,source:l,droppables:o,viewport:a});if(!u)return null;const c=pf(u.descriptor.id,i),d=Gwe({pageBorderBoxCenter:n,viewport:a,destination:u,insideDestination:c,afterCritical:s}),f=Kwe({previousPageBorderBoxCenter:n,destination:u,draggable:r,draggables:i,moveRelativeTo:d,insideDestination:c,viewport:a,afterCritical:s});if(!f)return null;const p=Mb({impact:f,draggable:r,droppable:u,draggables:i,afterCritical:s});return{clientSelection:_5({pageBorderBoxCenter:p,draggable:r,viewport:a}),impact:f,scrollJumpRequest:null}},Qo=e=>{const t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null};const Qwe=(e,t)=>{const n=Qo(e);return n?t[n]:null};var Jwe=e=>{let{state:t,type:n}=e;const r=Qwe(t.impact,t.dimensions.droppables),l=!!r,i=t.dimensions.droppables[t.critical.droppable.id],o=r||i,a=o.axis.direction,s=a==="vertical"&&(n==="MOVE_UP"||n==="MOVE_DOWN")||a==="horizontal"&&(n==="MOVE_LEFT"||n==="MOVE_RIGHT");if(s&&!l)return null;const u=n==="MOVE_DOWN"||n==="MOVE_RIGHT",c=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,{draggables:f,droppables:p}=t.dimensions;return s?Uwe({isMovingForward:u,previousPageBorderBoxCenter:d,draggable:c,destination:o,draggables:f,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):Zwe({isMovingForward:u,previousPageBorderBoxCenter:d,draggable:c,isOver:o,draggables:f,droppables:p,viewport:t.viewport,afterCritical:t.afterCritical})};function _u(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function QW(e){const t=wi(e.top,e.bottom),n=wi(e.left,e.right);return function(l){return t(l.y)&&n(l.x)}}function e_e(e,t){return e.leftt.left&&e.topt.top}function t_e(e){let{pageBorderBox:t,draggable:n,candidates:r}=e;const l=n.page.borderBox.center,i=r.map(o=>{const a=o.axis,s=Ku(o.axis.line,t.center[a.line],o.page.borderBox.center[a.crossAxisLine]);return{id:o.descriptor.id,distance:vm(l,s)}}).sort((o,a)=>a.distance-o.distance);return i[0]?i[0].id:null}function n_e(e){let{pageBorderBox:t,draggable:n,droppables:r}=e;const l=kb(r).filter(i=>{if(!i.isEnabled)return!1;const o=i.subject.active;if(!o||!e_e(t,o))return!1;if(QW(o)(t.center))return!0;const a=i.axis,s=o.center[a.crossAxisLine],u=t[a.crossAxisStart],c=t[a.crossAxisEnd],d=wi(o[a.crossAxisStart],o[a.crossAxisEnd]),f=d(u),p=d(c);return!f&&!p?!0:f?us});return l.length?l.length===1?l[0].descriptor.id:t_e({pageBorderBox:t,draggable:n,candidates:l}):null}const JW=(e,t)=>zi(ig(e,t));var r_e=(e,t)=>{const n=e.frame;return n?JW(t,n.scroll.diff.value):t};function eq(e){let{displaced:t,id:n}=e;return!!(t.visible[n]||t.invisible[n])}function a_e(e){let{draggable:t,closest:n,inHomeList:r}=e;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}var o_e=e=>{let{pageBorderBoxWithDroppableScroll:t,draggable:n,destination:r,insideDestination:l,last:i,viewport:o,afterCritical:a}=e;const s=r.axis,u=lg(r.axis,n.displaceBy),c=u.value,d=t[s.start],f=t[s.end],m=Cb(n,l).find(b=>{const v=b.descriptor.id,h=b.page.borderBox.center[s.line],y=Xs(v,a),w=eq({displaced:i,id:v});return y?w?f<=h:d{let{draggable:t,pageBorderBoxWithDroppableScroll:n,previousImpact:r,destination:l,insideDestination:i,afterCritical:o}=e;if(!l.isCombineEnabled)return null;const a=l.axis,s=lg(l.axis,t.displaceBy),u=s.value,c=n[a.start],d=n[a.end],p=Cb(t,i).find(g=>{const b=g.descriptor.id,v=g.page.borderBox,y=v[a.size]/i_e,w=Xs(b,o),_=eq({displaced:r.displaced,id:b});return w?_?d>v[a.start]+y&&dv[a.start]-u+y&&cv[a.start]+u+y&&dv[a.start]+y&&c{let{pageOffset:t,draggable:n,draggables:r,droppables:l,previousImpact:i,viewport:o,afterCritical:a}=e;const s=JW(n.page.borderBox,t),u=n_e({pageBorderBox:s,draggable:n,droppables:l});if(!u)return wwe;const c=l[u],d=pf(c.descriptor.id,r),f=r_e(c,s);return l_e({pageBorderBoxWithDroppableScroll:f,draggable:n,previousImpact:i,destination:c,insideDestination:d,afterCritical:a})||o_e({pageBorderBoxWithDroppableScroll:f,draggable:n,destination:c,insideDestination:d,last:i.displaced,viewport:o,afterCritical:a})},T5=(e,t)=>({...e,[t.descriptor.id]:t});const s_e=e=>{let{previousImpact:t,impact:n,droppables:r}=e;const l=Qo(t),i=Qo(n);if(!l||l===i)return r;const o=r[l];if(!o.subject.withPlaceholder)return r;const a=Xwe(o);return T5(r,a)};var u_e=e=>{let{draggable:t,draggables:n,droppables:r,previousImpact:l,impact:i}=e;const o=s_e({previousImpact:l,impact:i,droppables:r}),a=Qo(i);if(!a)return o;const s=r[a];if(hf(t,s)||s.subject.withPlaceholder)return o;const u=ZW(s,t,n);return T5(o,u)},$h=e=>{let{state:t,clientSelection:n,dimensions:r,viewport:l,impact:i,scrollJumpRequest:o}=e;const a=l||t.viewport,s=r||t.dimensions,u=n||t.current.client.selection,c=Go(u,t.initial.client.selection),d={offset:c,selection:u,borderBoxCenter:Ja(t.initial.client.borderBoxCenter,c)},f={selection:Ja(d.selection,a.scroll.current),borderBoxCenter:Ja(d.borderBoxCenter,a.scroll.current),offset:Ja(d.offset,a.scroll.diff.value)},p={client:d,page:f};if(t.phase==="COLLECTING")return{...t,dimensions:s,viewport:a,current:p};const m=s.draggables[t.critical.draggable.id],g=i||tq({pageOffset:f.offset,draggable:m,draggables:s.draggables,droppables:s.droppables,previousImpact:t.impact,viewport:a,afterCritical:t.afterCritical}),b=u_e({draggable:m,impact:g,previousImpact:t.impact,draggables:s.draggables,droppables:s.droppables});return{...t,current:p,dimensions:{draggables:s.draggables,droppables:b},impact:g,viewport:a,scrollJumpRequest:o||null,forceShouldAnimate:o?!1:null}};function c_e(e,t){return e.map(n=>t[n])}var nq=e=>{let{impact:t,viewport:n,draggables:r,destination:l,forceShouldAnimate:i}=e;const o=t.displaced,a=c_e(o.all,r),s=bm({afterDragging:a,destination:l,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:i,last:o});return{...t,displaced:s}},rq=e=>{let{impact:t,draggable:n,droppable:r,draggables:l,viewport:i,afterCritical:o}=e;const a=Mb({impact:t,draggable:n,draggables:l,droppable:r,afterCritical:o});return _5({pageBorderBoxCenter:a,draggable:n,viewport:i})},aq=e=>{let{state:t,dimensions:n,viewport:r}=e;t.movementMode!=="SNAP"&&bn();const l=t.impact,i=r||t.viewport,o=n||t.dimensions,{draggables:a,droppables:s}=o,u=a[t.critical.draggable.id],c=Qo(l);c||bn();const d=s[c],f=nq({impact:l,viewport:i,destination:d,draggables:a}),p=rq({impact:f,draggable:u,droppable:d,draggables:a,viewport:i,afterCritical:t.afterCritical});return $h({impact:f,clientSelection:p,state:t,dimensions:o,viewport:i})},d_e=e=>({index:e.index,droppableId:e.droppableId}),oq=e=>{let{draggable:t,home:n,draggables:r,viewport:l}=e;const i=lg(n.axis,t.displaceBy),o=pf(n.descriptor.id,r),a=o.indexOf(t);a===-1&&bn();const s=o.slice(a+1),u=s.reduce((p,m)=>(p[m.descriptor.id]=!0,p),{}),c={inVirtualList:n.descriptor.mode==="virtual",displacedBy:i,effected:u};return{impact:{displaced:bm({afterDragging:s,destination:n,displacedBy:i,last:null,viewport:l.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:d_e(t.descriptor)}},afterCritical:c}},f_e=(e,t)=>({draggables:e.draggables,droppables:T5(e.droppables,t)}),p_e=e=>{let{draggable:t,offset:n,initialWindowScroll:r}=e;const l=dy(t.client,n),i=fy(l,r);return{...t,placeholder:{...t.placeholder,client:l},client:l,page:i}},h_e=e=>{const t=e.frame;return t||bn(),t},m_e=e=>{let{additions:t,updatedDroppables:n,viewport:r}=e;const l=r.scroll.diff.value;return t.map(i=>{const o=i.descriptor.droppableId,a=n[o],u=h_e(a).scroll.diff.value,c=Ja(l,u);return p_e({draggable:i,offset:c,initialWindowScroll:r.scroll.initial})})},g_e=e=>{let{state:t,published:n}=e;const r=n.modified.map(h=>{const y=t.dimensions.droppables[h.droppableId];return v5(y,h.scroll)}),l={...t.dimensions.droppables,...BW(r)},i=WW(m_e({additions:n.additions,updatedDroppables:l,viewport:t.viewport})),o={...t.dimensions.draggables,...i};n.removals.forEach(h=>{delete o[h]});const a={droppables:l,draggables:o},s=Qo(t.impact),u=s?a.droppables[s]:null,c=a.draggables[t.critical.draggable.id],d=a.droppables[t.critical.droppable.id],{impact:f,afterCritical:p}=oq({draggable:c,home:d,draggables:o,viewport:t.viewport}),m=u&&u.isCombineEnabled?t.impact:f,g=tq({pageOffset:t.current.page.offset,draggable:a.draggables[t.critical.draggable.id],draggables:a.draggables,droppables:a.droppables,previousImpact:m,viewport:t.viewport,afterCritical:p}),b={...t,phase:"DRAGGING",impact:g,onLiftImpact:f,dimensions:a,afterCritical:p,forceShouldAnimate:!1};return t.phase==="COLLECTING"?b:{...b,phase:"DROP_PENDING",reason:t.reason,isWaiting:!1}};const pk=e=>e.movementMode==="SNAP",I_=(e,t,n)=>{const r=f_e(e.dimensions,t);return!pk(e)||n?$h({state:e,dimensions:r}):aq({state:e,dimensions:r})};function $_(e){return e.isDragging&&e.movementMode==="SNAP"?{...e,scrollJumpRequest:null}:e}const _E={phase:"IDLE",completed:null,shouldFlush:!1};var v_e=function(e,t){if(e===void 0&&(e=_E),t.type==="FLUSH")return{..._E,shouldFlush:!0};if(t.type==="INITIAL_PUBLISH"){e.phase!=="IDLE"&&bn();const{critical:n,clientSelection:r,viewport:l,dimensions:i,movementMode:o}=t.payload,a=i.draggables[n.draggable.id],s=i.droppables[n.droppable.id],u={selection:r,borderBoxCenter:a.client.borderBox.center,offset:za},c={client:u,page:{selection:Ja(u.selection,l.scroll.initial),borderBoxCenter:Ja(u.selection,l.scroll.initial),offset:Ja(u.selection,l.scroll.diff.value)}},d=kb(i.droppables).every(g=>!g.isFixedOnPage),{impact:f,afterCritical:p}=oq({draggable:a,home:s,draggables:i.draggables,viewport:l});return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:o,dimensions:i,initial:c,current:c,isWindowScrollAllowed:d,impact:f,afterCritical:p,onLiftImpact:f,viewport:l,scrollJumpRequest:null,forceShouldAnimate:null}}if(t.type==="COLLECTION_STARTING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"?e:(e.phase!=="DRAGGING"&&bn(),{...e,phase:"COLLECTING"});if(t.type==="PUBLISH_WHILE_DRAGGING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"||bn(),g_e({state:e,published:t.payload});if(t.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;_u(e)||bn();const{client:n}=t.payload;return Us(n,e.current.client.selection)?e:$h({state:e,clientSelection:n,impact:pk(e)?e.impact:null})}if(t.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return $_(e);_u(e)||bn();const{id:n,newScroll:r}=t.payload,l=e.dimensions.droppables[n];if(!l)return e;const i=v5(l,r);return I_(e,i,!1)}if(t.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;_u(e)||bn();const{id:n,isEnabled:r}=t.payload,l=e.dimensions.droppables[n];l||bn(),l.isEnabled===r&&bn();const i={...l,isEnabled:r};return I_(e,i,!0)}if(t.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;_u(e)||bn();const{id:n,isCombineEnabled:r}=t.payload,l=e.dimensions.droppables[n];l||bn(),l.isCombineEnabled===r&&bn();const i={...l,isCombineEnabled:r};return I_(e,i,!0)}if(t.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;_u(e)||bn(),e.isWindowScrollAllowed||bn();const n=t.payload.newScroll;if(Us(e.viewport.scroll.current,n))return $_(e);const r=YW(e.viewport,n);return pk(e)?aq({state:e,viewport:r}):$h({state:e,viewport:r})}if(t.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!_u(e))return e;const n=t.payload.maxScroll;if(Us(n,e.viewport.scroll.max))return e;const r={...e.viewport,scroll:{...e.viewport.scroll,max:n}};return{...e,viewport:r}}if(t.type==="MOVE_UP"||t.type==="MOVE_DOWN"||t.type==="MOVE_LEFT"||t.type==="MOVE_RIGHT"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&bn();const n=Jwe({state:e,type:t.type});return n?$h({state:e,impact:n.impact,clientSelection:n.clientSelection,scrollJumpRequest:n.scrollJumpRequest}):e}if(t.type==="DROP_PENDING"){const n=t.payload.reason;return e.phase!=="COLLECTING"&&bn(),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:n}}if(t.type==="DROP_ANIMATE"){const{completed:n,dropDuration:r,newHomeClientOffset:l}=t.payload;return e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||bn(),{phase:"DROP_ANIMATING",completed:n,dropDuration:r,newHomeClientOffset:l,dimensions:e.dimensions}}if(t.type==="DROP_COMPLETE"){const{completed:n}=t.payload;return{phase:"IDLE",completed:n,shouldFlush:!1}}return e};const y_e=e=>({type:"BEFORE_INITIAL_CAPTURE",payload:e}),b_e=e=>({type:"LIFT",payload:e}),x_e=e=>({type:"INITIAL_PUBLISH",payload:e}),w_e=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),__e=()=>({type:"COLLECTION_STARTING",payload:null}),T_e=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),k_e=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),S_e=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),iq=e=>({type:"MOVE",payload:e}),C_e=e=>({type:"MOVE_BY_WINDOW_SCROLL",payload:e}),M_e=e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}),P_e=()=>({type:"MOVE_UP",payload:null}),O_e=()=>({type:"MOVE_DOWN",payload:null}),A_e=()=>({type:"MOVE_RIGHT",payload:null}),D_e=()=>({type:"MOVE_LEFT",payload:null}),k5=()=>({type:"FLUSH",payload:null}),E_e=e=>({type:"DROP_ANIMATE",payload:e}),S5=e=>({type:"DROP_COMPLETE",payload:e}),lq=e=>({type:"DROP",payload:e}),R_e=e=>({type:"DROP_PENDING",payload:e}),sq=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});var L_e=e=>t=>{let{getState:n,dispatch:r}=t;return l=>i=>{if(i.type!=="LIFT"){l(i);return}const{id:o,clientSelection:a,movementMode:s}=i.payload,u=n();u.phase==="DROP_ANIMATING"&&r(S5({completed:u.completed})),n().phase!=="IDLE"&&bn(),r(k5()),r(y_e({draggableId:o,movementMode:s}));const d={draggableId:o,scrollOptions:{shouldPublishImmediately:s==="SNAP"}},{critical:f,dimensions:p,viewport:m}=e.startPublishing(d);r(x_e({critical:f,dimensions:p,clientSelection:a,movementMode:s,viewport:m}))}},I_e=e=>()=>t=>n=>{n.type==="INITIAL_PUBLISH"&&e.dragging(),n.type==="DROP_ANIMATE"&&e.dropping(n.payload.completed.result.reason),(n.type==="FLUSH"||n.type==="DROP_COMPLETE")&&e.resting(),t(n)};const C5={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},xm={opacity:{drop:0,combining:.7},scale:{drop:.75}},uq={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},hu=`${uq.outOfTheWay}s ${C5.outOfTheWay}`,Nh={fluid:`opacity ${hu}`,snap:`transform ${hu}, opacity ${hu}`,drop:e=>{const t=`${e}s ${C5.drop}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${hu}`,placeholder:`height ${hu}, width ${hu}, margin ${hu}`},TE=e=>Us(e,za)?void 0:`translate(${e.x}px, ${e.y}px)`,hk={moveTo:TE,drop:(e,t)=>{const n=TE(e);if(n)return t?`${n} scale(${xm.scale.drop})`:n}},{minDropTime:mk,maxDropTime:cq}=uq,$_e=cq-mk,kE=1500,N_e=.6;var F_e=e=>{let{current:t,destination:n,reason:r}=e;const l=vm(t,n);if(l<=0)return mk;if(l>=kE)return cq;const i=l/kE,o=mk+$_e*i,a=r==="CANCEL"?o*N_e:o;return Number(a.toFixed(2))},j_e=e=>{let{impact:t,draggable:n,dimensions:r,viewport:l,afterCritical:i}=e;const{draggables:o,droppables:a}=r,s=Qo(t),u=s?a[s]:null,c=a[n.descriptor.droppableId],d=rq({impact:t,draggable:n,draggables:o,afterCritical:i,droppable:u||c,viewport:l});return Go(d,n.client.borderBox.center)},z_e=e=>{let{draggables:t,reason:n,lastImpact:r,home:l,viewport:i,onLiftImpact:o}=e;return!r.at||n!=="DROP"?{impact:nq({draggables:t,impact:o,destination:l,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}:r.at.type==="REORDER"?{impact:r,didDropInsideDroppable:!0}:{impact:{...r,displaced:ym},didDropInsideDroppable:!0}};const B_e=e=>{let{getState:t,dispatch:n}=e;return r=>l=>{if(l.type!=="DROP"){r(l);return}const i=t(),o=l.payload.reason;if(i.phase==="COLLECTING"){n(R_e({reason:o}));return}if(i.phase==="IDLE")return;i.phase==="DROP_PENDING"&&i.isWaiting&&bn(),i.phase==="DRAGGING"||i.phase==="DROP_PENDING"||bn();const s=i.critical,u=i.dimensions,c=u.draggables[i.critical.draggable.id],{impact:d,didDropInsideDroppable:f}=z_e({reason:o,lastImpact:i.impact,afterCritical:i.afterCritical,onLiftImpact:i.onLiftImpact,home:i.dimensions.droppables[i.critical.droppable.id],viewport:i.viewport,draggables:i.dimensions.draggables}),p=f?y5(d):null,m=f?Sb(d):null,g={index:s.draggable.index,droppableId:s.droppable.id},b={draggableId:c.descriptor.id,type:c.descriptor.type,source:g,reason:o,mode:i.movementMode,destination:p,combine:m},v=j_e({impact:d,draggable:c,dimensions:u,viewport:i.viewport,afterCritical:i.afterCritical}),h={critical:i.critical,afterCritical:i.afterCritical,result:b,impact:d};if(!(!Us(i.current.client.offset,v)||!!b.combine)){n(S5({completed:h}));return}const w=F_e({current:i.current.client.offset,destination:v,reason:o});n(E_e({newHomeClientOffset:v,dropDuration:w,completed:h}))}};var W_e=B_e,dq=()=>({x:window.pageXOffset,y:window.pageYOffset});function q_e(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}function U_e(e){let{onWindowScroll:t}=e;function n(){t(dq())}const r=gm(n),l=q_e(r);let i=qs;function o(){return i!==qs}function a(){o()&&bn(),i=vi(window,[l])}function s(){o()||bn(),r.cancel(),i(),i=qs}return{start:a,stop:s,isActive:o}}const H_e=e=>e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH",V_e=e=>{const t=U_e({onWindowScroll:n=>{e.dispatch(C_e({newScroll:n}))}});return n=>r=>{!t.isActive()&&r.type==="INITIAL_PUBLISH"&&t.start(),t.isActive()&&H_e(r)&&t.stop(),n(r)}};var G_e=V_e,Y_e=e=>{let t=!1,n=!1;const r=setTimeout(()=>{n=!0}),l=i=>{t||n||(t=!0,e(i),clearTimeout(r))};return l.wasCalled=()=>t,l},X_e=()=>{const e=[],t=l=>{const i=e.findIndex(a=>a.timerId===l);i===-1&&bn();const[o]=e.splice(i,1);o.callback()};return{add:l=>{const i=setTimeout(()=>t(i)),o={timerId:i,callback:l};e.push(o)},flush:()=>{if(!e.length)return;const l=[...e];e.length=0,l.forEach(i=>{clearTimeout(i.timerId),i.callback()})}}};const K_e=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.droppableId===t.droppableId&&e.index===t.index,Z_e=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.draggableId===t.draggableId&&e.droppableId===t.droppableId,Q_e=(e,t)=>{if(e===t)return!0;const n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r},wp=(e,t)=>{t()},y0=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function N_(e,t,n,r){if(!e){n(r(t));return}const l=Y_e(n);e(t,{announce:l}),l.wasCalled()||n(r(t))}var J_e=(e,t)=>{const n=X_e();let r=null;const l=(d,f)=>{r&&bn(),wp("onBeforeCapture",()=>{const p=e().onBeforeCapture;p&&p({draggableId:d,mode:f})})},i=(d,f)=>{r&&bn(),wp("onBeforeDragStart",()=>{const p=e().onBeforeDragStart;p&&p(y0(d,f))})},o=(d,f)=>{r&&bn();const p=y0(d,f);r={mode:f,lastCritical:d,lastLocation:p.source,lastCombine:null},n.add(()=>{wp("onDragStart",()=>N_(e().onDragStart,p,t,ov.onDragStart))})},a=(d,f)=>{const p=y5(f),m=Sb(f);r||bn();const g=!Q_e(d,r.lastCritical);g&&(r.lastCritical=d);const b=!K_e(r.lastLocation,p);b&&(r.lastLocation=p);const v=!Z_e(r.lastCombine,m);if(v&&(r.lastCombine=m),!g&&!b&&!v)return;const h={...y0(d,r.mode),combine:m,destination:p};n.add(()=>{wp("onDragUpdate",()=>N_(e().onDragUpdate,h,t,ov.onDragUpdate))})},s=()=>{r||bn(),n.flush()},u=d=>{r||bn(),r=null,wp("onDragEnd",()=>N_(e().onDragEnd,d,t,ov.onDragEnd))};return{beforeCapture:l,beforeStart:i,start:o,update:a,flush:s,drop:u,abort:()=>{if(!r)return;const d={...y0(r.lastCritical,r.mode),combine:null,destination:null,reason:"CANCEL"};u(d)}}},eTe=(e,t)=>{const n=J_e(e,t);return r=>l=>i=>{if(i.type==="BEFORE_INITIAL_CAPTURE"){n.beforeCapture(i.payload.draggableId,i.payload.movementMode);return}if(i.type==="INITIAL_PUBLISH"){const a=i.payload.critical;n.beforeStart(a,i.payload.movementMode),l(i),n.start(a,i.payload.movementMode);return}if(i.type==="DROP_COMPLETE"){const a=i.payload.completed.result;n.flush(),l(i),n.drop(a);return}if(l(i),i.type==="FLUSH"){n.abort();return}const o=r.getState();o.phase==="DRAGGING"&&n.update(o.critical,o.impact)}};const tTe=e=>t=>n=>{if(n.type!=="DROP_ANIMATION_FINISHED"){t(n);return}const r=e.getState();r.phase!=="DROP_ANIMATING"&&bn(),e.dispatch(S5({completed:r.completed}))};var nTe=tTe;const rTe=e=>{let t=null,n=null;function r(){n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)}return l=>i=>{if((i.type==="FLUSH"||i.type==="DROP_COMPLETE"||i.type==="DROP_ANIMATION_FINISHED")&&r(),l(i),i.type!=="DROP_ANIMATE")return;const o={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){e.getState().phase==="DROP_ANIMATING"&&e.dispatch(sq())}};n=requestAnimationFrame(()=>{n=null,t=vi(window,[o])})}};var aTe=rTe,oTe=e=>()=>t=>n=>{(n.type==="DROP_COMPLETE"||n.type==="FLUSH"||n.type==="DROP_ANIMATE")&&e.stopPublishing(),t(n)},iTe=e=>{let t=!1;return()=>n=>r=>{if(r.type==="INITIAL_PUBLISH"){t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),e.tryRestoreFocusRecorded();return}if(n(r),!!t){if(r.type==="FLUSH"){t=!1,e.tryRestoreFocusRecorded();return}if(r.type==="DROP_COMPLETE"){t=!1;const l=r.payload.completed.result;l.combine&&e.tryShiftRecord(l.draggableId,l.combine.draggableId),e.tryRestoreFocusRecorded()}}}};const lTe=e=>e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH";var sTe=e=>t=>n=>r=>{if(lTe(r)){e.stop(),n(r);return}if(r.type==="INITIAL_PUBLISH"){n(r);const l=t.getState();l.phase!=="DRAGGING"&&bn(),e.start(l);return}n(r),e.scroll(t.getState())};const uTe=e=>t=>n=>{if(t(n),n.type!=="PUBLISH_WHILE_DRAGGING")return;const r=e.getState();r.phase==="DROP_PENDING"&&(r.isWaiting||e.dispatch(lq({reason:r.reason})))};var cTe=uTe;const dTe=MW;var fTe=e=>{let{dimensionMarshal:t,focusMarshal:n,styleMarshal:r,getResponders:l,announce:i,autoScroller:o}=e;return CW(v_e,dTe(C2e(I_e(r),oTe(t),L_e(t),W_e,nTe,aTe,cTe,sTe(o),G_e,iTe(n),eTe(l,i))))};const F_=()=>({additions:{},removals:{},modified:{}});function pTe(e){let{registry:t,callbacks:n}=e,r=F_(),l=null;const i=()=>{l||(n.collectionStarting(),l=requestAnimationFrame(()=>{l=null;const{additions:u,removals:c,modified:d}=r,f=Object.keys(u).map(g=>t.draggable.getById(g).getDimension(za)).sort((g,b)=>g.descriptor.index-b.descriptor.index),p=Object.keys(d).map(g=>{const v=t.droppable.getById(g).callbacks.getScrollWhileDragging();return{droppableId:g,scroll:v}}),m={additions:f,removals:Object.keys(c),modified:p};r=F_(),n.publish(m)}))};return{add:u=>{const c=u.descriptor.id;r.additions[c]=u,r.modified[u.descriptor.droppableId]=!0,r.removals[c]&&delete r.removals[c],i()},remove:u=>{const c=u.descriptor;r.removals[c.id]=!0,r.modified[c.droppableId]=!0,r.additions[c.id]&&delete r.additions[c.id],i()},stop:()=>{l&&(cancelAnimationFrame(l),l=null,r=F_())}}}var fq=e=>{let{scrollHeight:t,scrollWidth:n,height:r,width:l}=e;const i=Go({x:n,y:t},{x:l,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},pq=()=>{const e=document.documentElement;return e||bn(),e},hq=()=>{const e=pq();return fq({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},hTe=()=>{const e=dq(),t=hq(),n=e.y,r=e.x,l=pq(),i=l.clientWidth,o=l.clientHeight,a=r+i,s=n+o;return{frame:zi({top:n,left:r,right:a,bottom:s}),scroll:{initial:e,current:e,max:t,diff:{value:za,displacement:za}}}},mTe=e=>{let{critical:t,scrollOptions:n,registry:r}=e;const l=hTe(),i=l.scroll.current,o=t.droppable,a=r.droppable.getAllByType(o.type).map(d=>d.callbacks.getDimensionAndWatchScroll(i,n)),s=r.draggable.getAllByType(t.draggable.type).map(d=>d.getDimension(i));return{dimensions:{draggables:WW(s),droppables:BW(a)},critical:t,viewport:l}};function SE(e,t,n){return!(n.descriptor.id===t.id||n.descriptor.type!==t.type||e.droppable.getById(n.descriptor.droppableId).descriptor.mode!=="virtual")}var gTe=(e,t)=>{let n=null;const r=pTe({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),l=(f,p)=>{e.droppable.exists(f)||bn(),n&&t.updateDroppableIsEnabled({id:f,isEnabled:p})},i=(f,p)=>{n&&(e.droppable.exists(f)||bn(),t.updateDroppableIsCombineEnabled({id:f,isCombineEnabled:p}))},o=(f,p)=>{n&&(e.droppable.exists(f)||bn(),t.updateDroppableScroll({id:f,newScroll:p}))},a=(f,p)=>{n&&e.droppable.getById(f).callbacks.scroll(p)},s=()=>{if(!n)return;r.stop();const f=n.critical.droppable;e.droppable.getAllByType(f.type).forEach(p=>p.callbacks.dragStopped()),n.unsubscribe(),n=null},u=f=>{n||bn();const p=n.critical.draggable;f.type==="ADDITION"&&SE(e,p,f.value)&&r.add(f.value),f.type==="REMOVAL"&&SE(e,p,f.value)&&r.remove(f.value)};return{updateDroppableIsEnabled:l,updateDroppableIsCombineEnabled:i,scrollDroppable:a,updateDroppableScroll:o,startPublishing:f=>{n&&bn();const p=e.draggable.getById(f.draggableId),m=e.droppable.getById(p.descriptor.droppableId),g={draggable:p.descriptor,droppable:m.descriptor},b=e.subscribe(u);return n={critical:g,unsubscribe:b},mTe({critical:g,registry:e,scrollOptions:f.scrollOptions})},stopPublishing:s}},mq=(e,t)=>e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP",vTe=e=>{window.scrollBy(e.x,e.y)};const yTe=ja(e=>kb(e).filter(t=>!(!t.isEnabled||!t.frame))),bTe=(e,t)=>yTe(t).find(r=>(r.frame||bn(),QW(r.frame.pageMarginBox)(e)))||null;var xTe=e=>{let{center:t,destination:n,droppables:r}=e;if(n){const i=r[n];return i.frame?i:null}return bTe(t,r)};const wm={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var wTe=function(e,t,n){n===void 0&&(n=()=>wm);const r=n(),l=e[t.size]*r.startFromPercentage,i=e[t.size]*r.maxScrollAtPercentage;return{startScrollingFrom:l,maxScrollValueAt:i}},gq=e=>{let{startOfRange:t,endOfRange:n,current:r}=e;const l=n-t;return l===0?0:(r-t)/l},M5=1,_Te=function(e,t,n){n===void 0&&(n=()=>wm);const r=n();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return r.maxPixelScroll;if(e===t.startScrollingFrom)return M5;const i=1-gq({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),o=r.maxPixelScroll*r.ease(i);return Math.ceil(o)},TTe=(e,t,n)=>{const r=n(),l=r.durationDampening.accelerateAt,i=r.durationDampening.stopDampeningAt,o=t,a=i,u=Date.now()-o;if(u>=i)return e;if(u{let{distanceToEdge:t,thresholds:n,dragStartTime:r,shouldUseTimeDampening:l,getAutoScrollerOptions:i}=e;const o=_Te(t,n,i);return o===0?0:l?Math.max(TTe(o,r,i),M5):o},ME=e=>{let{container:t,distanceToEdges:n,dragStartTime:r,axis:l,shouldUseTimeDampening:i,getAutoScrollerOptions:o}=e;const a=wTe(t,l,o);return n[l.end]{let{container:t,subject:n,proposedScroll:r}=e;const l=n.height>t.height,i=n.width>t.width;return!i&&!l?r:i&&l?null:{x:i?0:r.x,y:l?0:r.y}};const STe=zW(e=>e===0?0:e);var vq=e=>{let{dragStartTime:t,container:n,subject:r,center:l,shouldUseTimeDampening:i,getAutoScrollerOptions:o}=e;const a={top:l.y-n.top,right:n.right-l.x,bottom:n.bottom-l.y,left:l.x-n.left},s=ME({container:n,distanceToEdges:a,dragStartTime:t,axis:b5,shouldUseTimeDampening:i,getAutoScrollerOptions:o}),u=ME({container:n,distanceToEdges:a,dragStartTime:t,axis:HW,shouldUseTimeDampening:i,getAutoScrollerOptions:o}),c=STe({x:u,y:s});if(Us(c,za))return null;const d=kTe({container:n,subject:r,proposedScroll:c});return d?Us(d,za)?null:d:null};const CTe=zW(e=>e===0?0:e>0?1:-1),P5=(()=>{const e=(t,n)=>t<0?t:t>n?t-n:0;return t=>{let{current:n,max:r,change:l}=t;const i=Ja(n,l),o={x:e(i.x,r.x),y:e(i.y,r.y)};return Us(o,za)?null:o}})(),yq=e=>{let{max:t,current:n,change:r}=e;const l={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},i=CTe(r),o=P5({max:l,current:n,change:i});return!o||i.x!==0&&o.x===0||i.y!==0&&o.y===0},O5=(e,t)=>yq({current:e.scroll.current,max:e.scroll.max,change:t}),MTe=(e,t)=>{if(!O5(e,t))return null;const n=e.scroll.max,r=e.scroll.current;return P5({current:r,max:n,change:t})},A5=(e,t)=>{const n=e.frame;return n?yq({current:n.scroll.current,max:n.scroll.max,change:t}):!1},PTe=(e,t)=>{const n=e.frame;return!n||!A5(e,t)?null:P5({current:n.scroll.current,max:n.scroll.max,change:t})};var OTe=e=>{let{viewport:t,subject:n,center:r,dragStartTime:l,shouldUseTimeDampening:i,getAutoScrollerOptions:o}=e;const a=vq({dragStartTime:l,container:t.frame,subject:n,center:r,shouldUseTimeDampening:i,getAutoScrollerOptions:o});return a&&O5(t,a)?a:null},ATe=e=>{let{droppable:t,subject:n,center:r,dragStartTime:l,shouldUseTimeDampening:i,getAutoScrollerOptions:o}=e;const a=t.frame;if(!a)return null;const s=vq({dragStartTime:l,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i,getAutoScrollerOptions:o});return s&&A5(t,s)?s:null},PE=e=>{let{state:t,dragStartTime:n,shouldUseTimeDampening:r,scrollWindow:l,scrollDroppable:i,getAutoScrollerOptions:o}=e;const a=t.current.page.borderBoxCenter,u=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){const f=t.viewport,p=OTe({dragStartTime:n,viewport:f,subject:u,center:a,shouldUseTimeDampening:r,getAutoScrollerOptions:o});if(p){l(p);return}}const c=xTe({center:a,destination:Qo(t.impact),droppables:t.dimensions.droppables});if(!c)return;const d=ATe({dragStartTime:n,droppable:c,subject:u,center:a,shouldUseTimeDampening:r,getAutoScrollerOptions:o});d&&i(c.descriptor.id,d)},DTe=e=>{let{scrollWindow:t,scrollDroppable:n,getAutoScrollerOptions:r=()=>wm}=e;const l=gm(t),i=gm(n);let o=null;const a=c=>{o||bn();const{shouldUseTimeDampening:d,dragStartTime:f}=o;PE({state:c,scrollWindow:l,scrollDroppable:i,dragStartTime:f,shouldUseTimeDampening:d,getAutoScrollerOptions:r})};return{start:c=>{o&&bn();const d=Date.now();let f=!1;const p=()=>{f=!0};PE({state:c,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:p,scrollDroppable:p,getAutoScrollerOptions:r}),o={dragStartTime:d,shouldUseTimeDampening:f},f&&a(c)},stop:()=>{o&&(l.cancel(),i.cancel(),o=null)},scroll:a}},ETe=e=>{let{move:t,scrollDroppable:n,scrollWindow:r}=e;const l=(s,u)=>{const c=Ja(s.current.client.selection,u);t({client:c})},i=(s,u)=>{if(!A5(s,u))return u;const c=PTe(s,u);if(!c)return n(s.descriptor.id,u),null;const d=Go(u,c);return n(s.descriptor.id,d),Go(u,d)},o=(s,u,c)=>{if(!s||!O5(u,c))return c;const d=MTe(u,c);if(!d)return r(c),null;const f=Go(c,d);return r(f),Go(c,f)};return s=>{const u=s.scrollJumpRequest;if(!u)return;const c=Qo(s.impact);c||bn();const d=i(s.dimensions.droppables[c],u);if(!d)return;const f=s.viewport,p=o(s.isWindowScrollAllowed,f,d);p&&l(s,p)}},RTe=e=>{let{scrollDroppable:t,scrollWindow:n,move:r,getAutoScrollerOptions:l}=e;const i=DTe({scrollWindow:n,scrollDroppable:t,getAutoScrollerOptions:l}),o=ETe({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:u=>{if(!(l().disabled||u.phase!=="DRAGGING")){if(u.movementMode==="FLUID"){i.scroll(u);return}u.scrollJumpRequest&&o(u)}},start:i.start,stop:i.stop}};const Vd="data-rfd",Gd=(()=>{const e=`${Vd}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),gk=(()=>{const e=`${Vd}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),LTe=(()=>{const e=`${Vd}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),OE={contextId:`${Vd}-scroll-container-context-id`},ITe=e=>t=>`[${t}="${e}"]`,_p=(e,t)=>e.map(n=>{const r=n.styles[t];return r?`${n.selector} { ${r} }`:""}).join(" "),$Te="pointer-events: none;";var NTe=e=>{const t=ITe(e),n=(()=>{const a=` + ${zE(e.source)} + `},j2e={dragHandleUsageInstructions:I2e,onDragStart:$2e,onDragUpdate:N2e,onDragEnd:F2e};var _v=j2e;const Ha={x:0,y:0},ro=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),ti=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),Qs=(e,t)=>e.x===t.x&&e.y===t.y,Pf=e=>({x:e.x!==0?-e.x:0,y:e.y!==0?-e.y:0}),uc=function(e,t,n){return n===void 0&&(n=0),e==="x"?{x:t,y:n}:{x:n,y:t}},Am=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),BE=(e,t)=>Math.min(...t.map(n=>Am(e,n))),Pq=e=>t=>({x:e(t.x),y:e(t.y)});var z2e=(e,t)=>{const n=nl({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n};const wg=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),WE=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],B2e={top:0,right:0,bottom:0,left:0},W2e=(e,t)=>t?wg(e,t.scroll.diff.displacement):e,q2e=(e,t,n)=>n&&n.increasedBy?{...e,[t.end]:e[t.end]+n.increasedBy[t.line]}:e,U2e=(e,t)=>t&&t.shouldClipSubject?z2e(t.pageMarginBox,e):nl(e);var af=e=>{let{page:t,withPlaceholder:n,axis:r,frame:l}=e;const i=W2e(t.marginBox,l),o=q2e(i,r,n),a=U2e(o,l);return{page:t,withPlaceholder:n,active:a}},l4=(e,t)=>{e.frame||mn();const n=e.frame,r=ti(t,n.scroll.initial),l=Pf(r),i={...n,scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:l},max:n.scroll.max}},o=af({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i});return{...e,frame:i,subject:o}};const Oq=Ua(e=>e.reduce((t,n)=>(t[n.descriptor.id]=n,t),{})),Aq=Ua(e=>e.reduce((t,n)=>(t[n.descriptor.id]=n,t),{})),nx=Ua(e=>Object.values(e)),H2e=Ua(e=>Object.values(e));var Of=Ua((e,t)=>H2e(t).filter(r=>e===r.descriptor.droppableId).sort((r,l)=>r.descriptor.index-l.descriptor.index));function s4(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function rx(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var ax=Ua((e,t)=>t.filter(n=>n.descriptor.id!==e.descriptor.id)),V2e=e=>{let{isMovingForward:t,draggable:n,destination:r,insideDestination:l,previousImpact:i}=e;if(!r.isCombineEnabled||!s4(i))return null;function a(h){const g={type:"COMBINE",combine:{draggableId:h,droppableId:r.descriptor.id}};return{...i,at:g}}const s=i.displaced.all,u=s.length?s[0]:null;if(t)return u?a(u):null;const c=ax(n,l);if(!u){if(!c.length)return null;const h=c[c.length-1];return a(h.descriptor.id)}const d=c.findIndex(h=>h.descriptor.id===u);d===-1&&mn();const f=d-1;if(f<0)return null;const p=c[f];return a(p.descriptor.id)},Af=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const Dq={point:Ha,value:0},Dm={invisible:{},visible:{},all:[]},G2e={displaced:Dm,displacedBy:Dq,at:null};var Y2e=G2e,Ri=(e,t)=>n=>e<=n&&n<=t,Eq=e=>{const t=Ri(e.top,e.bottom),n=Ri(e.left,e.right);return r=>{if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;const i=t(r.top)||t(r.bottom),o=n(r.left)||n(r.right);if(i&&o)return!0;const s=r.tope.bottom,u=r.lefte.right;return s&&u?!0:s&&o||u&&i}},X2e=e=>{const t=Ri(e.top,e.bottom),n=Ri(e.left,e.right);return r=>t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right)};const u4={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Rq={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};var K2e=e=>t=>{const n=Ri(t.top,t.bottom),r=Ri(t.left,t.right);return l=>e===u4?n(l.top)&&n(l.bottom):r(l.left)&&r(l.right)};const Z2e=(e,t)=>{const n=t.frame?t.frame.scroll.diff.displacement:Ha;return wg(e,n)},Q2e=(e,t,n)=>t.subject.active?n(t.subject.active)(e):!1,J2e=(e,t,n)=>n(t)(e),c4=e=>{let{target:t,destination:n,viewport:r,withDroppableDisplacement:l,isVisibleThroughFrameFn:i}=e;const o=l?Z2e(t,n):t;return Q2e(o,n,i)&&J2e(o,r,i)},ewe=e=>c4({...e,isVisibleThroughFrameFn:Eq}),Lq=e=>c4({...e,isVisibleThroughFrameFn:X2e}),twe=e=>c4({...e,isVisibleThroughFrameFn:K2e(e.destination.axis)}),nwe=(e,t,n)=>{if(typeof n=="boolean")return n;if(!t)return!0;const{invisible:r,visible:l}=t;if(r[e])return!1;const i=l[e];return i?i.shouldAnimate:!0};function rwe(e,t){const n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return nl(o4(n,r))}function Em(e){let{afterDragging:t,destination:n,displacedBy:r,viewport:l,forceShouldAnimate:i,last:o}=e;return t.reduce(function(s,u){const c=rwe(u,r),d=u.descriptor.id;if(s.all.push(d),!ewe({target:c,destination:n,viewport:l,withDroppableDisplacement:!0}))return s.invisible[u.descriptor.id]=!0,s;const p=nwe(d,o,i),h={draggableId:d,shouldAnimate:p};return s.visible[d]=h,s},{all:[],visible:{},invisible:{}})}function awe(e,t){if(!e.length)return 0;const n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}function qE(e){let{insideDestination:t,inHomeList:n,displacedBy:r,destination:l}=e;const i=awe(t,{inHomeList:n});return{displaced:Dm,displacedBy:r,at:{type:"REORDER",destination:{droppableId:l.descriptor.id,index:i}}}}function Fy(e){let{draggable:t,insideDestination:n,destination:r,viewport:l,displacedBy:i,last:o,index:a,forceShouldAnimate:s}=e;const u=Af(t,r);if(a==null)return qE({insideDestination:n,inHomeList:u,displacedBy:i,destination:r});const c=n.find(g=>g.descriptor.index===a);if(!c)return qE({insideDestination:n,inHomeList:u,displacedBy:i,destination:r});const d=ax(t,n),f=n.indexOf(c),p=d.slice(f);return{displaced:Em({afterDragging:p,destination:r,displacedBy:i,last:o,viewport:l.frame,forceShouldAnimate:s}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:a}}}}function iu(e,t){return!!t.effected[e]}var owe=e=>{let{isMovingForward:t,destination:n,draggables:r,combine:l,afterCritical:i}=e;if(!n.isCombineEnabled)return null;const o=l.draggableId,s=r[o].descriptor.index;return iu(o,i)?t?s:s-1:t?s+1:s},iwe=e=>{let{isMovingForward:t,isInHomeList:n,insideDestination:r,location:l}=e;if(!r.length)return null;const i=l.index,o=t?i+1:i-1,a=r[0].descriptor.index,s=r[r.length-1].descriptor.index,u=n?s:s+1;return ou?null:o},lwe=e=>{let{isMovingForward:t,isInHomeList:n,draggable:r,draggables:l,destination:i,insideDestination:o,previousImpact:a,viewport:s,afterCritical:u}=e;const c=a.at;if(c||mn(),c.type==="REORDER"){const f=iwe({isMovingForward:t,isInHomeList:n,location:c.destination,insideDestination:o});return f==null?null:Fy({draggable:r,insideDestination:o,destination:i,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:f})}const d=owe({isMovingForward:t,destination:i,displaced:a.displaced,draggables:l,combine:c.combine,afterCritical:u});return d==null?null:Fy({draggable:r,insideDestination:o,destination:i,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:d})},swe=e=>{let{displaced:t,afterCritical:n,combineWith:r,displacedBy:l}=e;const i=!!(t.visible[r]||t.invisible[r]);return iu(r,n)?i?Ha:Pf(l.point):i?l.point:Ha},uwe=e=>{let{afterCritical:t,impact:n,draggables:r}=e;const l=rx(n);l||mn();const i=l.draggableId,o=r[i].page.borderBox.center,a=swe({displaced:n.displaced,afterCritical:t,combineWith:i,displacedBy:n.displacedBy});return ro(o,a)};const Iq=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,cwe=(e,t)=>t.margin[e.end]+t.borderBox[e.size]/2,d4=(e,t,n)=>t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2,UE=e=>{let{axis:t,moveRelativeTo:n,isMoving:r}=e;return uc(t.line,n.marginBox[t.end]+Iq(t,r),d4(t,n.marginBox,r))},HE=e=>{let{axis:t,moveRelativeTo:n,isMoving:r}=e;return uc(t.line,n.marginBox[t.start]-cwe(t,r),d4(t,n.marginBox,r))},dwe=e=>{let{axis:t,moveInto:n,isMoving:r}=e;return uc(t.line,n.contentBox[t.start]+Iq(t,r),d4(t,n.contentBox,r))};var fwe=e=>{let{impact:t,draggable:n,draggables:r,droppable:l,afterCritical:i}=e;const o=Of(l.descriptor.id,r),a=n.page,s=l.axis;if(!o.length)return dwe({axis:s,moveInto:l.page,isMoving:a});const{displaced:u,displacedBy:c}=t,d=u.all[0];if(d){const p=r[d];if(iu(d,i))return HE({axis:s,moveRelativeTo:p.page,isMoving:a});const h=Ly(p.page,c.point);return HE({axis:s,moveRelativeTo:h,isMoving:a})}const f=o[o.length-1];if(f.descriptor.id===n.descriptor.id)return a.borderBox.center;if(iu(f.descriptor.id,i)){const p=Ly(f.page,Pf(i.displacedBy.point));return UE({axis:s,moveRelativeTo:p,isMoving:a})}return UE({axis:s,moveRelativeTo:f.page,isMoving:a})},KS=(e,t)=>{const n=e.frame;return n?ro(t,n.scroll.diff.displacement):t};const pwe=e=>{let{impact:t,draggable:n,droppable:r,draggables:l,afterCritical:i}=e;const o=n.page.borderBox.center,a=t.at;return!r||!a?o:a.type==="REORDER"?fwe({impact:t,draggable:n,draggables:l,droppable:r,afterCritical:i}):uwe({impact:t,draggables:l,afterCritical:i})};var ox=e=>{const t=pwe(e),n=e.droppable;return n?KS(n,t):t},$q=(e,t)=>{const n=ti(t,e.scroll.initial),r=Pf(n);return{frame:nl({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function VE(e,t){return e.map(n=>t[n])}function hwe(e,t){for(let n=0;n{let{impact:t,viewport:n,destination:r,draggables:l,maxScrollChange:i}=e;const o=$q(n,ro(n.scroll.current,i)),a=r.frame?l4(r,ro(r.frame.scroll.current,i)):r,s=t.displaced,u=Em({afterDragging:VE(s.all,l),destination:r,displacedBy:t.displacedBy,viewport:o.frame,last:s,forceShouldAnimate:!1}),c=Em({afterDragging:VE(s.all,l),destination:a,displacedBy:t.displacedBy,viewport:n.frame,last:s,forceShouldAnimate:!1}),d={},f={},p=[s,u,c];return s.all.forEach(g=>{const b=hwe(g,p);if(b){f[g]=b;return}d[g]=!0}),{...t,displaced:{all:s.all,invisible:d,visible:f}}},gwe=(e,t)=>ro(e.scroll.diff.displacement,t),f4=e=>{let{pageBorderBoxCenter:t,draggable:n,viewport:r}=e;const l=gwe(r,t),i=ti(l,n.page.borderBox.center);return ro(n.client.borderBox.center,i)},Nq=e=>{let{draggable:t,destination:n,newPageBorderBoxCenter:r,viewport:l,withDroppableDisplacement:i,onlyOnMainAxis:o=!1}=e;const a=ti(r,t.page.borderBox.center),u={target:wg(t.page.borderBox,a),destination:n,withDroppableDisplacement:i,viewport:l};return o?twe(u):Lq(u)},vwe=e=>{let{isMovingForward:t,draggable:n,destination:r,draggables:l,previousImpact:i,viewport:o,previousPageBorderBoxCenter:a,previousClientSelection:s,afterCritical:u}=e;if(!r.isEnabled)return null;const c=Of(r.descriptor.id,l),d=Af(n,r),f=V2e({isMovingForward:t,draggable:n,destination:r,insideDestination:c,previousImpact:i})||lwe({isMovingForward:t,isInHomeList:d,draggable:n,draggables:l,destination:r,insideDestination:c,previousImpact:i,viewport:o,afterCritical:u});if(!f)return null;const p=ox({impact:f,draggable:n,droppable:r,draggables:l,afterCritical:u});if(Nq({draggable:n,destination:r,newPageBorderBoxCenter:p,viewport:o.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:f4({pageBorderBoxCenter:p,draggable:n,viewport:o}),impact:f,scrollJumpRequest:null};const g=ti(p,a),b=mwe({impact:f,viewport:o,destination:r,draggables:l,maxScrollChange:g});return{clientSelection:s,impact:b,scrollJumpRequest:g}};const _o=e=>{const t=e.subject.active;return t||mn(),t};var ywe=e=>{let{isMovingForward:t,pageBorderBoxCenter:n,source:r,droppables:l,viewport:i}=e;const o=r.subject.active;if(!o)return null;const a=r.axis,s=Ri(o[a.start],o[a.end]),u=nx(l).filter(d=>d!==r).filter(d=>d.isEnabled).filter(d=>!!d.subject.active).filter(d=>Eq(i.frame)(_o(d))).filter(d=>{const f=_o(d);return t?o[a.crossAxisEnd]{const f=_o(d),p=Ri(f[a.start],f[a.end]);return s(f[a.start])||s(f[a.end])||p(o[a.start])||p(o[a.end])}).sort((d,f)=>{const p=_o(d)[a.crossAxisStart],h=_o(f)[a.crossAxisStart];return t?p-h:h-p}).filter((d,f,p)=>_o(d)[a.crossAxisStart]===_o(p[0])[a.crossAxisStart]);if(!u.length)return null;if(u.length===1)return u[0];const c=u.filter(d=>Ri(_o(d)[a.start],_o(d)[a.end])(n[a.line]));return c.length===1?c[0]:c.length>1?c.sort((d,f)=>_o(d)[a.start]-_o(f)[a.start])[0]:u.sort((d,f)=>{const p=BE(n,WE(_o(d))),h=BE(n,WE(_o(f)));return p!==h?p-h:_o(d)[a.start]-_o(f)[a.start]})[0]};const GE=(e,t)=>{const n=e.page.borderBox.center;return iu(e.descriptor.id,t)?ti(n,t.displacedBy.point):n},bwe=(e,t)=>{const n=e.page.borderBox;return iu(e.descriptor.id,t)?wg(n,Pf(t.displacedBy.point)):n};var xwe=e=>{let{pageBorderBoxCenter:t,viewport:n,destination:r,insideDestination:l,afterCritical:i}=e;return l.filter(a=>Lq({target:bwe(a,i),destination:r,viewport:n.frame,withDroppableDisplacement:!0})).sort((a,s)=>{const u=Am(t,KS(r,GE(a,i))),c=Am(t,KS(r,GE(s,i)));return u{const r=e.axis;if(e.descriptor.mode==="virtual")return uc(r.line,t[r.line]);const l=e.subject.page.contentBox[r.size],s=Of(e.descriptor.id,n).reduce((u,c)=>u+c.client.marginBox[r.size],0)+t[r.line]-l;return s<=0?null:uc(r.line,s)},Fq=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),jq=(e,t,n)=>{const r=e.frame;Af(t,e)&&mn(),e.subject.withPlaceholder&&mn();const l=_g(e.axis,t.displaceBy).point,i=wwe(e,l,n),o={placeholderSize:l,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){const c=af({page:e.subject.page,withPlaceholder:o,axis:e.axis,frame:e.frame});return{...e,subject:c}}const a=i?ro(r.scroll.max,i):r.scroll.max,s=Fq(r,a),u=af({page:e.subject.page,withPlaceholder:o,axis:e.axis,frame:s});return{...e,subject:u,frame:s}},_we=e=>{const t=e.subject.withPlaceholder;t||mn();const n=e.frame;if(!n){const o=af({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:o}}const r=t.oldFrameMaxScroll;r||mn();const l=Fq(n,r),i=af({page:e.subject.page,axis:e.axis,frame:l,withPlaceholder:null});return{...e,subject:i,frame:l}};var Twe=e=>{let{previousPageBorderBoxCenter:t,moveRelativeTo:n,insideDestination:r,draggable:l,draggables:i,destination:o,viewport:a,afterCritical:s}=e;if(!n){if(r.length)return null;const f={displaced:Dm,displacedBy:Dq,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:0}}},p=ox({impact:f,draggable:l,droppable:o,draggables:i,afterCritical:s}),h=Af(l,o)?o:jq(o,l,i);return Nq({draggable:l,destination:h,newPageBorderBoxCenter:p,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?f:null}const u=t[o.axis.line]<=n.page.borderBox.center[o.axis.line],c=(()=>{const f=n.descriptor.index;return n.descriptor.id===l.descriptor.id||u?f:f+1})(),d=_g(o.axis,l.displaceBy);return Fy({draggable:l,insideDestination:r,destination:o,viewport:a,displacedBy:d,last:Dm,index:c})},Swe=e=>{let{isMovingForward:t,previousPageBorderBoxCenter:n,draggable:r,isOver:l,draggables:i,droppables:o,viewport:a,afterCritical:s}=e;const u=ywe({isMovingForward:t,pageBorderBoxCenter:n,source:l,droppables:o,viewport:a});if(!u)return null;const c=Of(u.descriptor.id,i),d=xwe({pageBorderBoxCenter:n,viewport:a,destination:u,insideDestination:c,afterCritical:s}),f=Twe({previousPageBorderBoxCenter:n,destination:u,draggable:r,draggables:i,moveRelativeTo:d,insideDestination:c,viewport:a,afterCritical:s});if(!f)return null;const p=ox({impact:f,draggable:r,droppable:u,draggables:i,afterCritical:s});return{clientSelection:f4({pageBorderBoxCenter:p,draggable:r,viewport:a}),impact:f,scrollJumpRequest:null}},ii=e=>{const t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null};const kwe=(e,t)=>{const n=ii(e);return n?t[n]:null};var Cwe=e=>{let{state:t,type:n}=e;const r=kwe(t.impact,t.dimensions.droppables),l=!!r,i=t.dimensions.droppables[t.critical.droppable.id],o=r||i,a=o.axis.direction,s=a==="vertical"&&(n==="MOVE_UP"||n==="MOVE_DOWN")||a==="horizontal"&&(n==="MOVE_LEFT"||n==="MOVE_RIGHT");if(s&&!l)return null;const u=n==="MOVE_DOWN"||n==="MOVE_RIGHT",c=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,{draggables:f,droppables:p}=t.dimensions;return s?vwe({isMovingForward:u,previousPageBorderBoxCenter:d,draggable:c,destination:o,draggables:f,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):Swe({isMovingForward:u,previousPageBorderBoxCenter:d,draggable:c,isOver:o,draggables:f,droppables:p,viewport:t.viewport,afterCritical:t.afterCritical})};function Ru(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function zq(e){const t=Ri(e.top,e.bottom),n=Ri(e.left,e.right);return function(l){return t(l.y)&&n(l.x)}}function Mwe(e,t){return e.leftt.left&&e.topt.top}function Pwe(e){let{pageBorderBox:t,draggable:n,candidates:r}=e;const l=n.page.borderBox.center,i=r.map(o=>{const a=o.axis,s=uc(o.axis.line,t.center[a.line],o.page.borderBox.center[a.crossAxisLine]);return{id:o.descriptor.id,distance:Am(l,s)}}).sort((o,a)=>a.distance-o.distance);return i[0]?i[0].id:null}function Owe(e){let{pageBorderBox:t,draggable:n,droppables:r}=e;const l=nx(r).filter(i=>{if(!i.isEnabled)return!1;const o=i.subject.active;if(!o||!Mwe(t,o))return!1;if(zq(o)(t.center))return!0;const a=i.axis,s=o.center[a.crossAxisLine],u=t[a.crossAxisStart],c=t[a.crossAxisEnd],d=Ri(o[a.crossAxisStart],o[a.crossAxisEnd]),f=d(u),p=d(c);return!f&&!p?!0:f?us});return l.length?l.length===1?l[0].descriptor.id:Pwe({pageBorderBox:t,draggable:n,candidates:l}):null}const Bq=(e,t)=>nl(wg(e,t));var Awe=(e,t)=>{const n=e.frame;return n?Bq(t,n.scroll.diff.value):t};function Wq(e){let{displaced:t,id:n}=e;return!!(t.visible[n]||t.invisible[n])}function Dwe(e){let{draggable:t,closest:n,inHomeList:r}=e;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}var Ewe=e=>{let{pageBorderBoxWithDroppableScroll:t,draggable:n,destination:r,insideDestination:l,last:i,viewport:o,afterCritical:a}=e;const s=r.axis,u=_g(r.axis,n.displaceBy),c=u.value,d=t[s.start],f=t[s.end],h=ax(n,l).find(b=>{const v=b.descriptor.id,m=b.page.borderBox.center[s.line],y=iu(v,a),x=Wq({displaced:i,id:v});return y?x?f<=m:d{let{draggable:t,pageBorderBoxWithDroppableScroll:n,previousImpact:r,destination:l,insideDestination:i,afterCritical:o}=e;if(!l.isCombineEnabled)return null;const a=l.axis,s=_g(l.axis,t.displaceBy),u=s.value,c=n[a.start],d=n[a.end],p=ax(t,i).find(g=>{const b=g.descriptor.id,v=g.page.borderBox,y=v[a.size]/Rwe,x=iu(b,o),_=Wq({displaced:r.displaced,id:b});return x?_?d>v[a.start]+y&&dv[a.start]-u+y&&cv[a.start]+u+y&&dv[a.start]+y&&c{let{pageOffset:t,draggable:n,draggables:r,droppables:l,previousImpact:i,viewport:o,afterCritical:a}=e;const s=Bq(n.page.borderBox,t),u=Owe({pageBorderBox:s,draggable:n,droppables:l});if(!u)return Y2e;const c=l[u],d=Of(c.descriptor.id,r),f=Awe(c,s);return Lwe({pageBorderBoxWithDroppableScroll:f,draggable:n,previousImpact:i,destination:c,insideDestination:d,afterCritical:a})||Ewe({pageBorderBoxWithDroppableScroll:f,draggable:n,destination:c,insideDestination:d,last:i.displaced,viewport:o,afterCritical:a})},p4=(e,t)=>({...e,[t.descriptor.id]:t});const Iwe=e=>{let{previousImpact:t,impact:n,droppables:r}=e;const l=ii(t),i=ii(n);if(!l||l===i)return r;const o=r[l];if(!o.subject.withPlaceholder)return r;const a=_we(o);return p4(r,a)};var $we=e=>{let{draggable:t,draggables:n,droppables:r,previousImpact:l,impact:i}=e;const o=Iwe({previousImpact:l,impact:i,droppables:r}),a=ii(i);if(!a)return o;const s=r[a];if(Af(t,s)||s.subject.withPlaceholder)return o;const u=jq(s,t,n);return p4(o,u)},Zh=e=>{let{state:t,clientSelection:n,dimensions:r,viewport:l,impact:i,scrollJumpRequest:o}=e;const a=l||t.viewport,s=r||t.dimensions,u=n||t.current.client.selection,c=ti(u,t.initial.client.selection),d={offset:c,selection:u,borderBoxCenter:ro(t.initial.client.borderBoxCenter,c)},f={selection:ro(d.selection,a.scroll.current),borderBoxCenter:ro(d.borderBoxCenter,a.scroll.current),offset:ro(d.offset,a.scroll.diff.value)},p={client:d,page:f};if(t.phase==="COLLECTING")return{...t,dimensions:s,viewport:a,current:p};const h=s.draggables[t.critical.draggable.id],g=i||qq({pageOffset:f.offset,draggable:h,draggables:s.draggables,droppables:s.droppables,previousImpact:t.impact,viewport:a,afterCritical:t.afterCritical}),b=$we({draggable:h,impact:g,previousImpact:t.impact,draggables:s.draggables,droppables:s.droppables});return{...t,current:p,dimensions:{draggables:s.draggables,droppables:b},impact:g,viewport:a,scrollJumpRequest:o||null,forceShouldAnimate:o?!1:null}};function Nwe(e,t){return e.map(n=>t[n])}var Uq=e=>{let{impact:t,viewport:n,draggables:r,destination:l,forceShouldAnimate:i}=e;const o=t.displaced,a=Nwe(o.all,r),s=Em({afterDragging:a,destination:l,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:i,last:o});return{...t,displaced:s}},Hq=e=>{let{impact:t,draggable:n,droppable:r,draggables:l,viewport:i,afterCritical:o}=e;const a=ox({impact:t,draggable:n,draggables:l,droppable:r,afterCritical:o});return f4({pageBorderBoxCenter:a,draggable:n,viewport:i})},Vq=e=>{let{state:t,dimensions:n,viewport:r}=e;t.movementMode!=="SNAP"&&mn();const l=t.impact,i=r||t.viewport,o=n||t.dimensions,{draggables:a,droppables:s}=o,u=a[t.critical.draggable.id],c=ii(l);c||mn();const d=s[c],f=Uq({impact:l,viewport:i,destination:d,draggables:a}),p=Hq({impact:f,draggable:u,droppable:d,draggables:a,viewport:i,afterCritical:t.afterCritical});return Zh({impact:f,clientSelection:p,state:t,dimensions:o,viewport:i})},Fwe=e=>({index:e.index,droppableId:e.droppableId}),Gq=e=>{let{draggable:t,home:n,draggables:r,viewport:l}=e;const i=_g(n.axis,t.displaceBy),o=Of(n.descriptor.id,r),a=o.indexOf(t);a===-1&&mn();const s=o.slice(a+1),u=s.reduce((p,h)=>(p[h.descriptor.id]=!0,p),{}),c={inVirtualList:n.descriptor.mode==="virtual",displacedBy:i,effected:u};return{impact:{displaced:Em({afterDragging:s,destination:n,displacedBy:i,last:null,viewport:l.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:Fwe(t.descriptor)}},afterCritical:c}},jwe=(e,t)=>({draggables:e.draggables,droppables:p4(e.droppables,t)}),zwe=e=>{let{draggable:t,offset:n,initialWindowScroll:r}=e;const l=Ly(t.client,n),i=Iy(l,r);return{...t,placeholder:{...t.placeholder,client:l},client:l,page:i}},Bwe=e=>{const t=e.frame;return t||mn(),t},Wwe=e=>{let{additions:t,updatedDroppables:n,viewport:r}=e;const l=r.scroll.diff.value;return t.map(i=>{const o=i.descriptor.droppableId,a=n[o],u=Bwe(a).scroll.diff.value,c=ro(l,u);return zwe({draggable:i,offset:c,initialWindowScroll:r.scroll.initial})})},qwe=e=>{let{state:t,published:n}=e;const r=n.modified.map(m=>{const y=t.dimensions.droppables[m.droppableId];return l4(y,m.scroll)}),l={...t.dimensions.droppables,...Oq(r)},i=Aq(Wwe({additions:n.additions,updatedDroppables:l,viewport:t.viewport})),o={...t.dimensions.draggables,...i};n.removals.forEach(m=>{delete o[m]});const a={droppables:l,draggables:o},s=ii(t.impact),u=s?a.droppables[s]:null,c=a.draggables[t.critical.draggable.id],d=a.droppables[t.critical.droppable.id],{impact:f,afterCritical:p}=Gq({draggable:c,home:d,draggables:o,viewport:t.viewport}),h=u&&u.isCombineEnabled?t.impact:f,g=qq({pageOffset:t.current.page.offset,draggable:a.draggables[t.critical.draggable.id],draggables:a.draggables,droppables:a.droppables,previousImpact:h,viewport:t.viewport,afterCritical:p}),b={...t,phase:"DRAGGING",impact:g,onLiftImpact:f,dimensions:a,afterCritical:p,forceShouldAnimate:!1};return t.phase==="COLLECTING"?b:{...b,phase:"DROP_PENDING",reason:t.reason,isWaiting:!1}};const ZS=e=>e.movementMode==="SNAP",h3=(e,t,n)=>{const r=jwe(e.dimensions,t);return!ZS(e)||n?Zh({state:e,dimensions:r}):Vq({state:e,dimensions:r})};function m3(e){return e.isDragging&&e.movementMode==="SNAP"?{...e,scrollJumpRequest:null}:e}const YE={phase:"IDLE",completed:null,shouldFlush:!1};var Uwe=function(e,t){if(e===void 0&&(e=YE),t.type==="FLUSH")return{...YE,shouldFlush:!0};if(t.type==="INITIAL_PUBLISH"){e.phase!=="IDLE"&&mn();const{critical:n,clientSelection:r,viewport:l,dimensions:i,movementMode:o}=t.payload,a=i.draggables[n.draggable.id],s=i.droppables[n.droppable.id],u={selection:r,borderBoxCenter:a.client.borderBox.center,offset:Ha},c={client:u,page:{selection:ro(u.selection,l.scroll.initial),borderBoxCenter:ro(u.selection,l.scroll.initial),offset:ro(u.selection,l.scroll.diff.value)}},d=nx(i.droppables).every(g=>!g.isFixedOnPage),{impact:f,afterCritical:p}=Gq({draggable:a,home:s,draggables:i.draggables,viewport:l});return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:o,dimensions:i,initial:c,current:c,isWindowScrollAllowed:d,impact:f,afterCritical:p,onLiftImpact:f,viewport:l,scrollJumpRequest:null,forceShouldAnimate:null}}if(t.type==="COLLECTION_STARTING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"?e:(e.phase!=="DRAGGING"&&mn(),{...e,phase:"COLLECTING"});if(t.type==="PUBLISH_WHILE_DRAGGING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"||mn(),qwe({state:e,published:t.payload});if(t.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;Ru(e)||mn();const{client:n}=t.payload;return Qs(n,e.current.client.selection)?e:Zh({state:e,clientSelection:n,impact:ZS(e)?e.impact:null})}if(t.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return m3(e);Ru(e)||mn();const{id:n,newScroll:r}=t.payload,l=e.dimensions.droppables[n];if(!l)return e;const i=l4(l,r);return h3(e,i,!1)}if(t.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;Ru(e)||mn();const{id:n,isEnabled:r}=t.payload,l=e.dimensions.droppables[n];l||mn(),l.isEnabled===r&&mn();const i={...l,isEnabled:r};return h3(e,i,!0)}if(t.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;Ru(e)||mn();const{id:n,isCombineEnabled:r}=t.payload,l=e.dimensions.droppables[n];l||mn(),l.isCombineEnabled===r&&mn();const i={...l,isCombineEnabled:r};return h3(e,i,!0)}if(t.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;Ru(e)||mn(),e.isWindowScrollAllowed||mn();const n=t.payload.newScroll;if(Qs(e.viewport.scroll.current,n))return m3(e);const r=$q(e.viewport,n);return ZS(e)?Vq({state:e,viewport:r}):Zh({state:e,viewport:r})}if(t.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!Ru(e))return e;const n=t.payload.maxScroll;if(Qs(n,e.viewport.scroll.max))return e;const r={...e.viewport,scroll:{...e.viewport.scroll,max:n}};return{...e,viewport:r}}if(t.type==="MOVE_UP"||t.type==="MOVE_DOWN"||t.type==="MOVE_LEFT"||t.type==="MOVE_RIGHT"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&mn();const n=Cwe({state:e,type:t.type});return n?Zh({state:e,impact:n.impact,clientSelection:n.clientSelection,scrollJumpRequest:n.scrollJumpRequest}):e}if(t.type==="DROP_PENDING"){const n=t.payload.reason;return e.phase!=="COLLECTING"&&mn(),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:n}}if(t.type==="DROP_ANIMATE"){const{completed:n,dropDuration:r,newHomeClientOffset:l}=t.payload;return e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||mn(),{phase:"DROP_ANIMATING",completed:n,dropDuration:r,newHomeClientOffset:l,dimensions:e.dimensions}}if(t.type==="DROP_COMPLETE"){const{completed:n}=t.payload;return{phase:"IDLE",completed:n,shouldFlush:!1}}return e};const Hwe=e=>({type:"BEFORE_INITIAL_CAPTURE",payload:e}),Vwe=e=>({type:"LIFT",payload:e}),Gwe=e=>({type:"INITIAL_PUBLISH",payload:e}),Ywe=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),Xwe=()=>({type:"COLLECTION_STARTING",payload:null}),Kwe=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),Zwe=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),Qwe=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),Yq=e=>({type:"MOVE",payload:e}),Jwe=e=>({type:"MOVE_BY_WINDOW_SCROLL",payload:e}),e_e=e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}),t_e=()=>({type:"MOVE_UP",payload:null}),n_e=()=>({type:"MOVE_DOWN",payload:null}),r_e=()=>({type:"MOVE_RIGHT",payload:null}),a_e=()=>({type:"MOVE_LEFT",payload:null}),h4=()=>({type:"FLUSH",payload:null}),o_e=e=>({type:"DROP_ANIMATE",payload:e}),m4=e=>({type:"DROP_COMPLETE",payload:e}),Xq=e=>({type:"DROP",payload:e}),i_e=e=>({type:"DROP_PENDING",payload:e}),Kq=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});var l_e=e=>t=>{let{getState:n,dispatch:r}=t;return l=>i=>{if(i.type!=="LIFT"){l(i);return}const{id:o,clientSelection:a,movementMode:s}=i.payload,u=n();u.phase==="DROP_ANIMATING"&&r(m4({completed:u.completed})),n().phase!=="IDLE"&&mn(),r(h4()),r(Hwe({draggableId:o,movementMode:s}));const d={draggableId:o,scrollOptions:{shouldPublishImmediately:s==="SNAP"}},{critical:f,dimensions:p,viewport:h}=e.startPublishing(d);r(Gwe({critical:f,dimensions:p,clientSelection:a,movementMode:s,viewport:h}))}},s_e=e=>()=>t=>n=>{n.type==="INITIAL_PUBLISH"&&e.dragging(),n.type==="DROP_ANIMATE"&&e.dropping(n.payload.completed.result.reason),(n.type==="FLUSH"||n.type==="DROP_COMPLETE")&&e.resting(),t(n)};const g4={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Rm={opacity:{drop:0,combining:.7},scale:{drop:.75}},Zq={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Su=`${Zq.outOfTheWay}s ${g4.outOfTheWay}`,Qh={fluid:`opacity ${Su}`,snap:`transform ${Su}, opacity ${Su}`,drop:e=>{const t=`${e}s ${g4.drop}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${Su}`,placeholder:`height ${Su}, width ${Su}, margin ${Su}`},XE=e=>Qs(e,Ha)?void 0:`translate(${e.x}px, ${e.y}px)`,QS={moveTo:XE,drop:(e,t)=>{const n=XE(e);if(n)return t?`${n} scale(${Rm.scale.drop})`:n}},{minDropTime:JS,maxDropTime:Qq}=Zq,u_e=Qq-JS,KE=1500,c_e=.6;var d_e=e=>{let{current:t,destination:n,reason:r}=e;const l=Am(t,n);if(l<=0)return JS;if(l>=KE)return Qq;const i=l/KE,o=JS+u_e*i,a=r==="CANCEL"?o*c_e:o;return Number(a.toFixed(2))},f_e=e=>{let{impact:t,draggable:n,dimensions:r,viewport:l,afterCritical:i}=e;const{draggables:o,droppables:a}=r,s=ii(t),u=s?a[s]:null,c=a[n.descriptor.droppableId],d=Hq({impact:t,draggable:n,draggables:o,afterCritical:i,droppable:u||c,viewport:l});return ti(d,n.client.borderBox.center)},p_e=e=>{let{draggables:t,reason:n,lastImpact:r,home:l,viewport:i,onLiftImpact:o}=e;return!r.at||n!=="DROP"?{impact:Uq({draggables:t,impact:o,destination:l,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}:r.at.type==="REORDER"?{impact:r,didDropInsideDroppable:!0}:{impact:{...r,displaced:Dm},didDropInsideDroppable:!0}};const h_e=e=>{let{getState:t,dispatch:n}=e;return r=>l=>{if(l.type!=="DROP"){r(l);return}const i=t(),o=l.payload.reason;if(i.phase==="COLLECTING"){n(i_e({reason:o}));return}if(i.phase==="IDLE")return;i.phase==="DROP_PENDING"&&i.isWaiting&&mn(),i.phase==="DRAGGING"||i.phase==="DROP_PENDING"||mn();const s=i.critical,u=i.dimensions,c=u.draggables[i.critical.draggable.id],{impact:d,didDropInsideDroppable:f}=p_e({reason:o,lastImpact:i.impact,afterCritical:i.afterCritical,onLiftImpact:i.onLiftImpact,home:i.dimensions.droppables[i.critical.droppable.id],viewport:i.viewport,draggables:i.dimensions.draggables}),p=f?s4(d):null,h=f?rx(d):null,g={index:s.draggable.index,droppableId:s.droppable.id},b={draggableId:c.descriptor.id,type:c.descriptor.type,source:g,reason:o,mode:i.movementMode,destination:p,combine:h},v=f_e({impact:d,draggable:c,dimensions:u,viewport:i.viewport,afterCritical:i.afterCritical}),m={critical:i.critical,afterCritical:i.afterCritical,result:b,impact:d};if(!(!Qs(i.current.client.offset,v)||!!b.combine)){n(m4({completed:m}));return}const x=d_e({current:i.current.client.offset,destination:v,reason:o});n(o_e({newHomeClientOffset:v,dropDuration:x,completed:m}))}};var m_e=h_e,Jq=()=>({x:window.pageXOffset,y:window.pageYOffset});function g_e(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}function v_e(e){let{onWindowScroll:t}=e;function n(){t(Jq())}const r=Om(n),l=g_e(r);let i=Zs;function o(){return i!==Zs}function a(){o()&&mn(),i=Pi(window,[l])}function s(){o()||mn(),r.cancel(),i(),i=Zs}return{start:a,stop:s,isActive:o}}const y_e=e=>e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH",b_e=e=>{const t=v_e({onWindowScroll:n=>{e.dispatch(Jwe({newScroll:n}))}});return n=>r=>{!t.isActive()&&r.type==="INITIAL_PUBLISH"&&t.start(),t.isActive()&&y_e(r)&&t.stop(),n(r)}};var x_e=b_e,w_e=e=>{let t=!1,n=!1;const r=setTimeout(()=>{n=!0}),l=i=>{t||n||(t=!0,e(i),clearTimeout(r))};return l.wasCalled=()=>t,l},__e=()=>{const e=[],t=l=>{const i=e.findIndex(a=>a.timerId===l);i===-1&&mn();const[o]=e.splice(i,1);o.callback()};return{add:l=>{const i=setTimeout(()=>t(i)),o={timerId:i,callback:l};e.push(o)},flush:()=>{if(!e.length)return;const l=[...e];e.length=0,l.forEach(i=>{clearTimeout(i.timerId),i.callback()})}}};const T_e=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.droppableId===t.droppableId&&e.index===t.index,S_e=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.draggableId===t.draggableId&&e.droppableId===t.droppableId,k_e=(e,t)=>{if(e===t)return!0;const n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r},Np=(e,t)=>{t()},I0=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function g3(e,t,n,r){if(!e){n(r(t));return}const l=w_e(n);e(t,{announce:l}),l.wasCalled()||n(r(t))}var C_e=(e,t)=>{const n=__e();let r=null;const l=(d,f)=>{r&&mn(),Np("onBeforeCapture",()=>{const p=e().onBeforeCapture;p&&p({draggableId:d,mode:f})})},i=(d,f)=>{r&&mn(),Np("onBeforeDragStart",()=>{const p=e().onBeforeDragStart;p&&p(I0(d,f))})},o=(d,f)=>{r&&mn();const p=I0(d,f);r={mode:f,lastCritical:d,lastLocation:p.source,lastCombine:null},n.add(()=>{Np("onDragStart",()=>g3(e().onDragStart,p,t,_v.onDragStart))})},a=(d,f)=>{const p=s4(f),h=rx(f);r||mn();const g=!k_e(d,r.lastCritical);g&&(r.lastCritical=d);const b=!T_e(r.lastLocation,p);b&&(r.lastLocation=p);const v=!S_e(r.lastCombine,h);if(v&&(r.lastCombine=h),!g&&!b&&!v)return;const m={...I0(d,r.mode),combine:h,destination:p};n.add(()=>{Np("onDragUpdate",()=>g3(e().onDragUpdate,m,t,_v.onDragUpdate))})},s=()=>{r||mn(),n.flush()},u=d=>{r||mn(),r=null,Np("onDragEnd",()=>g3(e().onDragEnd,d,t,_v.onDragEnd))};return{beforeCapture:l,beforeStart:i,start:o,update:a,flush:s,drop:u,abort:()=>{if(!r)return;const d={...I0(r.lastCritical,r.mode),combine:null,destination:null,reason:"CANCEL"};u(d)}}},M_e=(e,t)=>{const n=C_e(e,t);return r=>l=>i=>{if(i.type==="BEFORE_INITIAL_CAPTURE"){n.beforeCapture(i.payload.draggableId,i.payload.movementMode);return}if(i.type==="INITIAL_PUBLISH"){const a=i.payload.critical;n.beforeStart(a,i.payload.movementMode),l(i),n.start(a,i.payload.movementMode);return}if(i.type==="DROP_COMPLETE"){const a=i.payload.completed.result;n.flush(),l(i),n.drop(a);return}if(l(i),i.type==="FLUSH"){n.abort();return}const o=r.getState();o.phase==="DRAGGING"&&n.update(o.critical,o.impact)}};const P_e=e=>t=>n=>{if(n.type!=="DROP_ANIMATION_FINISHED"){t(n);return}const r=e.getState();r.phase!=="DROP_ANIMATING"&&mn(),e.dispatch(m4({completed:r.completed}))};var O_e=P_e;const A_e=e=>{let t=null,n=null;function r(){n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)}return l=>i=>{if((i.type==="FLUSH"||i.type==="DROP_COMPLETE"||i.type==="DROP_ANIMATION_FINISHED")&&r(),l(i),i.type!=="DROP_ANIMATE")return;const o={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){e.getState().phase==="DROP_ANIMATING"&&e.dispatch(Kq())}};n=requestAnimationFrame(()=>{n=null,t=Pi(window,[o])})}};var D_e=A_e,E_e=e=>()=>t=>n=>{(n.type==="DROP_COMPLETE"||n.type==="FLUSH"||n.type==="DROP_ANIMATE")&&e.stopPublishing(),t(n)},R_e=e=>{let t=!1;return()=>n=>r=>{if(r.type==="INITIAL_PUBLISH"){t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),e.tryRestoreFocusRecorded();return}if(n(r),!!t){if(r.type==="FLUSH"){t=!1,e.tryRestoreFocusRecorded();return}if(r.type==="DROP_COMPLETE"){t=!1;const l=r.payload.completed.result;l.combine&&e.tryShiftRecord(l.draggableId,l.combine.draggableId),e.tryRestoreFocusRecorded()}}}};const L_e=e=>e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH";var I_e=e=>t=>n=>r=>{if(L_e(r)){e.stop(),n(r);return}if(r.type==="INITIAL_PUBLISH"){n(r);const l=t.getState();l.phase!=="DRAGGING"&&mn(),e.start(l);return}n(r),e.scroll(t.getState())};const $_e=e=>t=>n=>{if(t(n),n.type!=="PUBLISH_WHILE_DRAGGING")return;const r=e.getState();r.phase==="DROP_PENDING"&&(r.isWaiting||e.dispatch(Xq({reason:r.reason})))};var N_e=$_e;const F_e=mq;var j_e=e=>{let{dimensionMarshal:t,focusMarshal:n,styleMarshal:r,getResponders:l,announce:i,autoScroller:o}=e;return hq(Uwe,F_e(Jxe(s_e(r),E_e(t),l_e(t),m_e,O_e,D_e,N_e,I_e(o),x_e,R_e(n),M_e(l,i))))};const v3=()=>({additions:{},removals:{},modified:{}});function z_e(e){let{registry:t,callbacks:n}=e,r=v3(),l=null;const i=()=>{l||(n.collectionStarting(),l=requestAnimationFrame(()=>{l=null;const{additions:u,removals:c,modified:d}=r,f=Object.keys(u).map(g=>t.draggable.getById(g).getDimension(Ha)).sort((g,b)=>g.descriptor.index-b.descriptor.index),p=Object.keys(d).map(g=>{const v=t.droppable.getById(g).callbacks.getScrollWhileDragging();return{droppableId:g,scroll:v}}),h={additions:f,removals:Object.keys(c),modified:p};r=v3(),n.publish(h)}))};return{add:u=>{const c=u.descriptor.id;r.additions[c]=u,r.modified[u.descriptor.droppableId]=!0,r.removals[c]&&delete r.removals[c],i()},remove:u=>{const c=u.descriptor;r.removals[c.id]=!0,r.modified[c.droppableId]=!0,r.additions[c.id]&&delete r.additions[c.id],i()},stop:()=>{l&&(cancelAnimationFrame(l),l=null,r=v3())}}}var eU=e=>{let{scrollHeight:t,scrollWidth:n,height:r,width:l}=e;const i=ti({x:n,y:t},{x:l,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},tU=()=>{const e=document.documentElement;return e||mn(),e},nU=()=>{const e=tU();return eU({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},B_e=()=>{const e=Jq(),t=nU(),n=e.y,r=e.x,l=tU(),i=l.clientWidth,o=l.clientHeight,a=r+i,s=n+o;return{frame:nl({top:n,left:r,right:a,bottom:s}),scroll:{initial:e,current:e,max:t,diff:{value:Ha,displacement:Ha}}}},W_e=e=>{let{critical:t,scrollOptions:n,registry:r}=e;const l=B_e(),i=l.scroll.current,o=t.droppable,a=r.droppable.getAllByType(o.type).map(d=>d.callbacks.getDimensionAndWatchScroll(i,n)),s=r.draggable.getAllByType(t.draggable.type).map(d=>d.getDimension(i));return{dimensions:{draggables:Aq(s),droppables:Oq(a)},critical:t,viewport:l}};function ZE(e,t,n){return!(n.descriptor.id===t.id||n.descriptor.type!==t.type||e.droppable.getById(n.descriptor.droppableId).descriptor.mode!=="virtual")}var q_e=(e,t)=>{let n=null;const r=z_e({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),l=(f,p)=>{e.droppable.exists(f)||mn(),n&&t.updateDroppableIsEnabled({id:f,isEnabled:p})},i=(f,p)=>{n&&(e.droppable.exists(f)||mn(),t.updateDroppableIsCombineEnabled({id:f,isCombineEnabled:p}))},o=(f,p)=>{n&&(e.droppable.exists(f)||mn(),t.updateDroppableScroll({id:f,newScroll:p}))},a=(f,p)=>{n&&e.droppable.getById(f).callbacks.scroll(p)},s=()=>{if(!n)return;r.stop();const f=n.critical.droppable;e.droppable.getAllByType(f.type).forEach(p=>p.callbacks.dragStopped()),n.unsubscribe(),n=null},u=f=>{n||mn();const p=n.critical.draggable;f.type==="ADDITION"&&ZE(e,p,f.value)&&r.add(f.value),f.type==="REMOVAL"&&ZE(e,p,f.value)&&r.remove(f.value)};return{updateDroppableIsEnabled:l,updateDroppableIsCombineEnabled:i,scrollDroppable:a,updateDroppableScroll:o,startPublishing:f=>{n&&mn();const p=e.draggable.getById(f.draggableId),h=e.droppable.getById(p.descriptor.droppableId),g={draggable:p.descriptor,droppable:h.descriptor},b=e.subscribe(u);return n={critical:g,unsubscribe:b},W_e({critical:g,registry:e,scrollOptions:f.scrollOptions})},stopPublishing:s}},rU=(e,t)=>e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP",U_e=e=>{window.scrollBy(e.x,e.y)};const H_e=Ua(e=>nx(e).filter(t=>!(!t.isEnabled||!t.frame))),V_e=(e,t)=>H_e(t).find(r=>(r.frame||mn(),zq(r.frame.pageMarginBox)(e)))||null;var G_e=e=>{let{center:t,destination:n,droppables:r}=e;if(n){const i=r[n];return i.frame?i:null}return V_e(t,r)};const Lm={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var Y_e=function(e,t,n){n===void 0&&(n=()=>Lm);const r=n(),l=e[t.size]*r.startFromPercentage,i=e[t.size]*r.maxScrollAtPercentage;return{startScrollingFrom:l,maxScrollValueAt:i}},aU=e=>{let{startOfRange:t,endOfRange:n,current:r}=e;const l=n-t;return l===0?0:(r-t)/l},v4=1,X_e=function(e,t,n){n===void 0&&(n=()=>Lm);const r=n();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return r.maxPixelScroll;if(e===t.startScrollingFrom)return v4;const i=1-aU({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),o=r.maxPixelScroll*r.ease(i);return Math.ceil(o)},K_e=(e,t,n)=>{const r=n(),l=r.durationDampening.accelerateAt,i=r.durationDampening.stopDampeningAt,o=t,a=i,u=Date.now()-o;if(u>=i)return e;if(u{let{distanceToEdge:t,thresholds:n,dragStartTime:r,shouldUseTimeDampening:l,getAutoScrollerOptions:i}=e;const o=X_e(t,n,i);return o===0?0:l?Math.max(K_e(o,r,i),v4):o},JE=e=>{let{container:t,distanceToEdges:n,dragStartTime:r,axis:l,shouldUseTimeDampening:i,getAutoScrollerOptions:o}=e;const a=Y_e(t,l,o);return n[l.end]{let{container:t,subject:n,proposedScroll:r}=e;const l=n.height>t.height,i=n.width>t.width;return!i&&!l?r:i&&l?null:{x:i?0:r.x,y:l?0:r.y}};const Q_e=Pq(e=>e===0?0:e);var oU=e=>{let{dragStartTime:t,container:n,subject:r,center:l,shouldUseTimeDampening:i,getAutoScrollerOptions:o}=e;const a={top:l.y-n.top,right:n.right-l.x,bottom:n.bottom-l.y,left:l.x-n.left},s=JE({container:n,distanceToEdges:a,dragStartTime:t,axis:u4,shouldUseTimeDampening:i,getAutoScrollerOptions:o}),u=JE({container:n,distanceToEdges:a,dragStartTime:t,axis:Rq,shouldUseTimeDampening:i,getAutoScrollerOptions:o}),c=Q_e({x:u,y:s});if(Qs(c,Ha))return null;const d=Z_e({container:n,subject:r,proposedScroll:c});return d?Qs(d,Ha)?null:d:null};const J_e=Pq(e=>e===0?0:e>0?1:-1),y4=(()=>{const e=(t,n)=>t<0?t:t>n?t-n:0;return t=>{let{current:n,max:r,change:l}=t;const i=ro(n,l),o={x:e(i.x,r.x),y:e(i.y,r.y)};return Qs(o,Ha)?null:o}})(),iU=e=>{let{max:t,current:n,change:r}=e;const l={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},i=J_e(r),o=y4({max:l,current:n,change:i});return!o||i.x!==0&&o.x===0||i.y!==0&&o.y===0},b4=(e,t)=>iU({current:e.scroll.current,max:e.scroll.max,change:t}),e3e=(e,t)=>{if(!b4(e,t))return null;const n=e.scroll.max,r=e.scroll.current;return y4({current:r,max:n,change:t})},x4=(e,t)=>{const n=e.frame;return n?iU({current:n.scroll.current,max:n.scroll.max,change:t}):!1},t3e=(e,t)=>{const n=e.frame;return!n||!x4(e,t)?null:y4({current:n.scroll.current,max:n.scroll.max,change:t})};var n3e=e=>{let{viewport:t,subject:n,center:r,dragStartTime:l,shouldUseTimeDampening:i,getAutoScrollerOptions:o}=e;const a=oU({dragStartTime:l,container:t.frame,subject:n,center:r,shouldUseTimeDampening:i,getAutoScrollerOptions:o});return a&&b4(t,a)?a:null},r3e=e=>{let{droppable:t,subject:n,center:r,dragStartTime:l,shouldUseTimeDampening:i,getAutoScrollerOptions:o}=e;const a=t.frame;if(!a)return null;const s=oU({dragStartTime:l,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i,getAutoScrollerOptions:o});return s&&x4(t,s)?s:null},e9=e=>{let{state:t,dragStartTime:n,shouldUseTimeDampening:r,scrollWindow:l,scrollDroppable:i,getAutoScrollerOptions:o}=e;const a=t.current.page.borderBoxCenter,u=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){const f=t.viewport,p=n3e({dragStartTime:n,viewport:f,subject:u,center:a,shouldUseTimeDampening:r,getAutoScrollerOptions:o});if(p){l(p);return}}const c=G_e({center:a,destination:ii(t.impact),droppables:t.dimensions.droppables});if(!c)return;const d=r3e({dragStartTime:n,droppable:c,subject:u,center:a,shouldUseTimeDampening:r,getAutoScrollerOptions:o});d&&i(c.descriptor.id,d)},a3e=e=>{let{scrollWindow:t,scrollDroppable:n,getAutoScrollerOptions:r=()=>Lm}=e;const l=Om(t),i=Om(n);let o=null;const a=c=>{o||mn();const{shouldUseTimeDampening:d,dragStartTime:f}=o;e9({state:c,scrollWindow:l,scrollDroppable:i,dragStartTime:f,shouldUseTimeDampening:d,getAutoScrollerOptions:r})};return{start:c=>{o&&mn();const d=Date.now();let f=!1;const p=()=>{f=!0};e9({state:c,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:p,scrollDroppable:p,getAutoScrollerOptions:r}),o={dragStartTime:d,shouldUseTimeDampening:f},f&&a(c)},stop:()=>{o&&(l.cancel(),i.cancel(),o=null)},scroll:a}},o3e=e=>{let{move:t,scrollDroppable:n,scrollWindow:r}=e;const l=(s,u)=>{const c=ro(s.current.client.selection,u);t({client:c})},i=(s,u)=>{if(!x4(s,u))return u;const c=t3e(s,u);if(!c)return n(s.descriptor.id,u),null;const d=ti(u,c);return n(s.descriptor.id,d),ti(u,d)},o=(s,u,c)=>{if(!s||!b4(u,c))return c;const d=e3e(u,c);if(!d)return r(c),null;const f=ti(c,d);return r(f),ti(c,f)};return s=>{const u=s.scrollJumpRequest;if(!u)return;const c=ii(s.impact);c||mn();const d=i(s.dimensions.droppables[c],u);if(!d)return;const f=s.viewport,p=o(s.isWindowScrollAllowed,f,d);p&&l(s,p)}},i3e=e=>{let{scrollDroppable:t,scrollWindow:n,move:r,getAutoScrollerOptions:l}=e;const i=a3e({scrollWindow:n,scrollDroppable:t,getAutoScrollerOptions:l}),o=o3e({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:u=>{if(!(l().disabled||u.phase!=="DRAGGING")){if(u.movementMode==="FLUID"){i.scroll(u);return}u.scrollJumpRequest&&o(u)}},start:i.start,stop:i.stop}};const of="data-rfd",lf=(()=>{const e=`${of}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),ek=(()=>{const e=`${of}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),l3e=(()=>{const e=`${of}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),t9={contextId:`${of}-scroll-container-context-id`},s3e=e=>t=>`[${t}="${e}"]`,Fp=(e,t)=>e.map(n=>{const r=n.styles[t];return r?`${n.selector} { ${r} }`:""}).join(" "),u3e="pointer-events: none;";var c3e=e=>{const t=s3e(e),n=(()=>{const a=` cursor: -webkit-grab; cursor: grab; - `;return{selector:t(Gd.contextId),styles:{always:` + `;return{selector:t(lf.contextId),styles:{always:` -webkit-touch-callout: none; -webkit-tap-highlight-color: rgba(0,0,0,0); touch-action: manipulation; - `,resting:a,dragging:$Te,dropAnimating:a}}})(),r=(()=>{const a=` - transition: ${Nh.outOfTheWay}; - `;return{selector:t(gk.contextId),styles:{dragging:a,dropAnimating:a,userCancel:a}}})(),l={selector:t(LTe.contextId),styles:{always:"overflow-anchor: none;"}},o=[r,n,l,{selector:"body",styles:{dragging:` + `,resting:a,dragging:u3e,dropAnimating:a}}})(),r=(()=>{const a=` + transition: ${Qh.outOfTheWay}; + `;return{selector:t(ek.contextId),styles:{dragging:a,dropAnimating:a,userCancel:a}}})(),l={selector:t(l3e.contextId),styles:{always:"overflow-anchor: none;"}},o=[r,n,l,{selector:"body",styles:{dragging:` cursor: grabbing; cursor: -webkit-grabbing; user-select: none; @@ -535,8 +547,8 @@ ${L.current.stack} -moz-user-select: none; -ms-user-select: none; overflow-anchor: none; - `}}];return{always:_p(o,"always"),resting:_p(o,"resting"),dragging:_p(o,"dragging"),dropAnimating:_p(o,"dropAnimating"),userCancel:_p(o,"userCancel")}};const FTe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?ge.useLayoutEffect:ge.useEffect;var Jo=FTe;const j_=()=>{const e=document.querySelector("head");return e||bn(),e},AE=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function jTe(e,t){const n=ir(()=>NTe(e),[e]),r=ge.useRef(null),l=ge.useRef(null),i=Nn(ja(d=>{const f=l.current;f||bn(),f.textContent=d}),[]),o=Nn(d=>{const f=r.current;f||bn(),f.textContent=d},[]);Jo(()=>{!r.current&&!l.current||bn();const d=AE(t),f=AE(t);return r.current=d,l.current=f,d.setAttribute(`${Vd}-always`,e),f.setAttribute(`${Vd}-dynamic`,e),j_().appendChild(d),j_().appendChild(f),o(n.always),i(n.resting),()=>{const p=m=>{const g=m.current;g||bn(),j_().removeChild(g),m.current=null};p(r),p(l)}},[t,o,i,n.always,n.resting,e]);const a=Nn(()=>i(n.dragging),[i,n.dragging]),s=Nn(d=>{if(d==="DROP"){i(n.dropAnimating);return}i(n.userCancel)},[i,n.dropAnimating,n.userCancel]),u=Nn(()=>{l.current&&i(n.resting)},[i,n.resting]);return ir(()=>({dragging:a,dropping:s,resting:u}),[a,s,u])}function bq(e,t){return Array.from(e.querySelectorAll(t))}var xq=e=>{var t;return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)||window};function Pb(e){return e instanceof xq(e).HTMLElement}function zTe(e,t){const n=`[${Gd.contextId}="${e}"]`,r=bq(document,n);if(!r.length)return null;const l=r.find(i=>i.getAttribute(Gd.draggableId)===t);return!l||!Pb(l)?null:l}function BTe(e){const t=ge.useRef({}),n=ge.useRef(null),r=ge.useRef(null),l=ge.useRef(!1),i=Nn(function(f,p){const m={id:f,focus:p};return t.current[f]=m,function(){const b=t.current;b[f]!==m&&delete b[f]}},[]),o=Nn(function(f){const p=zTe(e,f);p&&p!==document.activeElement&&p.focus()},[e]),a=Nn(function(f,p){n.current===f&&(n.current=p)},[]),s=Nn(function(){r.current||l.current&&(r.current=requestAnimationFrame(()=>{r.current=null;const f=n.current;f&&o(f)}))},[o]),u=Nn(function(f){n.current=null;const p=document.activeElement;p&&p.getAttribute(Gd.draggableId)===f&&(n.current=f)},[]);return Jo(()=>(l.current=!0,function(){l.current=!1;const f=r.current;f&&cancelAnimationFrame(f)}),[]),ir(()=>({register:i,tryRecordFocus:u,tryRestoreFocusRecorded:s,tryShiftRecord:a}),[i,u,s,a])}function WTe(){const e={draggables:{},droppables:{}},t=[];function n(d){return t.push(d),function(){const p=t.indexOf(d);p!==-1&&t.splice(p,1)}}function r(d){t.length&&t.forEach(f=>f(d))}function l(d){return e.draggables[d]||null}function i(d){const f=l(d);return f||bn(),f}const o={register:d=>{e.draggables[d.descriptor.id]=d,r({type:"ADDITION",value:d})},update:(d,f)=>{const p=e.draggables[f.descriptor.id];p&&p.uniqueId===d.uniqueId&&(delete e.draggables[f.descriptor.id],e.draggables[d.descriptor.id]=d)},unregister:d=>{const f=d.descriptor.id,p=l(f);p&&d.uniqueId===p.uniqueId&&(delete e.draggables[f],e.droppables[d.descriptor.droppableId]&&r({type:"REMOVAL",value:d}))},getById:i,findById:l,exists:d=>!!l(d),getAllByType:d=>Object.values(e.draggables).filter(f=>f.descriptor.type===d)};function a(d){return e.droppables[d]||null}function s(d){const f=a(d);return f||bn(),f}const u={register:d=>{e.droppables[d.descriptor.id]=d},unregister:d=>{const f=a(d.descriptor.id);f&&d.uniqueId===f.uniqueId&&delete e.droppables[d.descriptor.id]},getById:s,findById:a,exists:d=>!!a(d),getAllByType:d=>Object.values(e.droppables).filter(f=>f.descriptor.type===d)};function c(){e.draggables={},e.droppables={},t.length=0}return{draggable:o,droppable:u,subscribe:n,clean:c}}function qTe(){const e=ir(WTe,[]);return ge.useEffect(()=>function(){Je.version.startsWith("16")||Je.version.startsWith("17")?requestAnimationFrame(e.clean):e.clean()},[e]),e}var D5=Je.createContext(null),gy=()=>{const e=document.body;return e||bn(),e};const UTe={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};var HTe=UTe;const VTe=e=>`rfd-announcement-${e}`;function GTe(e){const t=ir(()=>VTe(e),[e]),n=ge.useRef(null);return ge.useEffect(function(){const i=document.createElement("div");return n.current=i,i.id=t,i.setAttribute("aria-live","assertive"),i.setAttribute("aria-atomic","true"),Ie(i.style,HTe),gy().appendChild(i),function(){setTimeout(function(){const s=gy();s.contains(i)&&s.removeChild(i),i===n.current&&(n.current=null)})}},[t]),Nn(l=>{const i=n.current;if(i){i.textContent=l;return}},[])}let wq=0;const _q={separator:"::"};function YTe(){wq=0}function XTe(e,t){return t===void 0&&(t=_q),ir(()=>`${e}${t.separator}${wq++}`,[t.separator,e])}function KTe(e,t){t===void 0&&(t=_q);const n=Je.useId();return ir(()=>`${e}${t.separator}${n}`,[t.separator,e,n])}var E5="useId"in Je?KTe:XTe;function ZTe(e){let{contextId:t,uniqueId:n}=e;return`rfd-hidden-text-${t}-${n}`}function QTe(e){let{contextId:t,text:n}=e;const r=E5("hidden-text",{separator:"-"}),l=ir(()=>ZTe({contextId:t,uniqueId:r}),[r,t]);return ge.useEffect(function(){const o=document.createElement("div");return o.id=l,o.textContent=n,o.style.display="none",gy().appendChild(o),function(){const s=gy();s.contains(o)&&s.removeChild(o)}},[l,n]),l}var Ob=Je.createContext(null);function Tq(e){const t=ge.useRef(e);return ge.useEffect(()=>{t.current=e}),t}function JTe(){let e=null;function t(){return!!e}function n(o){return o===e}function r(o){e&&bn();const a={abandon:o};return e=a,a}function l(){e||bn(),e=null}function i(){e&&(e.abandon(),l())}return{isClaimed:t,isActive:n,claim:r,release:l,tryAbandon:i}}function _m(e){return e.phase==="IDLE"||e.phase==="DROP_ANIMATING"?!1:e.isDragging}const e3e=9,t3e=13,R5=27,kq=32,n3e=33,r3e=34,a3e=35,o3e=36,i3e=37,l3e=38,s3e=39,u3e=40,c3e={[t3e]:!0,[e3e]:!0};var Sq=e=>{c3e[e.keyCode]&&e.preventDefault()};const d3e=(()=>{const e="visibilitychange";return typeof document>"u"?e:[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find(r=>`on${r}`in document)||e})();var Ab=d3e;const Cq=0,DE=5;function f3e(e,t){return Math.abs(t.x-e.x)>=DE||Math.abs(t.y-e.y)>=DE}const EE={type:"IDLE"};function p3e(e){let{cancel:t,completed:n,getPhase:r,setPhase:l}=e;return[{eventName:"mousemove",fn:i=>{const{button:o,clientX:a,clientY:s}=i;if(o!==Cq)return;const u={x:a,y:s},c=r();if(c.type==="DRAGGING"){i.preventDefault(),c.actions.move(u);return}c.type!=="PENDING"&&bn();const d=c.point;if(!f3e(d,u))return;i.preventDefault();const f=c.actions.fluidLift(u);l({type:"DRAGGING",actions:f})}},{eventName:"mouseup",fn:i=>{const o=r();if(o.type!=="DRAGGING"){t();return}i.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"mousedown",fn:i=>{r().type==="DRAGGING"&&i.preventDefault(),t()}},{eventName:"keydown",fn:i=>{if(r().type==="PENDING"){t();return}if(i.keyCode===R5){i.preventDefault(),t();return}Sq(i)}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{r().type==="PENDING"&&t()}},{eventName:"webkitmouseforcedown",fn:i=>{const o=r();if(o.type==="IDLE"&&bn(),o.actions.shouldRespectForcePress()){t();return}i.preventDefault()}},{eventName:Ab,fn:t}]}function Mq(e){const t=ge.useRef(EE),n=ge.useRef(qs),r=ir(()=>({eventName:"mousedown",fn:function(d){if(d.defaultPrevented||d.button!==Cq||d.ctrlKey||d.metaKey||d.shiftKey||d.altKey)return;const f=e.findClosestDraggableId(d);if(!f)return;const p=e.tryGetLock(f,o,{sourceEvent:d});if(!p)return;d.preventDefault();const m={x:d.clientX,y:d.clientY};n.current(),u(p,m)}}),[e]),l=ir(()=>({eventName:"webkitmouseforcewillbegin",fn:c=>{if(c.defaultPrevented)return;const d=e.findClosestDraggableId(c);if(!d)return;const f=e.findOptionsForDraggable(d);f&&(f.shouldRespectForcePress||e.canGetLock(d)&&c.preventDefault())}}),[e]),i=Nn(function(){const d={passive:!1,capture:!0};n.current=vi(window,[l,r],d)},[l,r]),o=Nn(()=>{t.current.type!=="IDLE"&&(t.current=EE,n.current(),i())},[i]),a=Nn(()=>{const c=t.current;o(),c.type==="DRAGGING"&&c.actions.cancel({shouldBlockNextClick:!0}),c.type==="PENDING"&&c.actions.abort()},[o]),s=Nn(function(){const d={capture:!0,passive:!1},f=p3e({cancel:a,completed:o,getPhase:()=>t.current,setPhase:p=>{t.current=p}});n.current=vi(window,f,d)},[a,o]),u=Nn(function(d,f){t.current.type!=="IDLE"&&bn(),t.current={type:"PENDING",point:f,actions:d},s()},[s]);Jo(function(){return i(),function(){n.current()}},[i])}function h3e(){}const m3e={[r3e]:!0,[n3e]:!0,[o3e]:!0,[a3e]:!0};function g3e(e,t){function n(){t(),e.cancel()}function r(){t(),e.drop()}return[{eventName:"keydown",fn:l=>{if(l.keyCode===R5){l.preventDefault(),n();return}if(l.keyCode===kq){l.preventDefault(),r();return}if(l.keyCode===u3e){l.preventDefault(),e.moveDown();return}if(l.keyCode===l3e){l.preventDefault(),e.moveUp();return}if(l.keyCode===s3e){l.preventDefault(),e.moveRight();return}if(l.keyCode===i3e){l.preventDefault(),e.moveLeft();return}if(m3e[l.keyCode]){l.preventDefault();return}Sq(l)}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:Ab,fn:n}]}function Pq(e){const t=ge.useRef(h3e),n=ir(()=>({eventName:"keydown",fn:function(i){if(i.defaultPrevented||i.keyCode!==kq)return;const o=e.findClosestDraggableId(i);if(!o)return;const a=e.tryGetLock(o,c,{sourceEvent:i});if(!a)return;i.preventDefault();let s=!0;const u=a.snapLift();t.current();function c(){s||bn(),s=!1,t.current(),r()}t.current=vi(window,g3e(u,c),{capture:!0,passive:!1})}}),[e]),r=Nn(function(){const i={passive:!1,capture:!0};t.current=vi(window,[n],i)},[n]);Jo(function(){return r(),function(){t.current()}},[r])}const z_={type:"IDLE"},v3e=120,y3e=.15;function b3e(e){let{cancel:t,getPhase:n}=e;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:r=>{r.preventDefault()}},{eventName:"keydown",fn:r=>{if(n().type!=="DRAGGING"){t();return}r.keyCode===R5&&r.preventDefault(),t()}},{eventName:Ab,fn:t}]}function x3e(e){let{cancel:t,completed:n,getPhase:r}=e;return[{eventName:"touchmove",options:{capture:!1},fn:l=>{const i=r();if(i.type!=="DRAGGING"){t();return}i.hasMoved=!0;const{clientX:o,clientY:a}=l.touches[0],s={x:o,y:a};l.preventDefault(),i.actions.move(s)}},{eventName:"touchend",fn:l=>{const i=r();if(i.type!=="DRAGGING"){t();return}l.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"touchcancel",fn:l=>{if(r().type!=="DRAGGING"){t();return}l.preventDefault(),t()}},{eventName:"touchforcechange",fn:l=>{const i=r();i.type==="IDLE"&&bn();const o=l.touches[0];if(!o||!(o.force>=y3e))return;const s=i.actions.shouldRespectForcePress();if(i.type==="PENDING"){s&&t();return}if(s){if(i.hasMoved){l.preventDefault();return}t();return}l.preventDefault()}},{eventName:Ab,fn:t}]}function Oq(e){const t=ge.useRef(z_),n=ge.useRef(qs),r=Nn(function(){return t.current},[]),l=Nn(function(p){t.current=p},[]),i=ir(()=>({eventName:"touchstart",fn:function(p){if(p.defaultPrevented)return;const m=e.findClosestDraggableId(p);if(!m)return;const g=e.tryGetLock(m,a,{sourceEvent:p});if(!g)return;const b=p.touches[0],{clientX:v,clientY:h}=b,y={x:v,y:h};n.current(),d(g,y)}}),[e]),o=Nn(function(){const p={capture:!0,passive:!1};n.current=vi(window,[i],p)},[i]),a=Nn(()=>{const f=t.current;f.type!=="IDLE"&&(f.type==="PENDING"&&clearTimeout(f.longPressTimerId),l(z_),n.current(),o())},[o,l]),s=Nn(()=>{const f=t.current;a(),f.type==="DRAGGING"&&f.actions.cancel({shouldBlockNextClick:!0}),f.type==="PENDING"&&f.actions.abort()},[a]),u=Nn(function(){const p={capture:!0,passive:!1},m={cancel:s,completed:a,getPhase:r},g=vi(window,x3e(m),p),b=vi(window,b3e(m),p);n.current=function(){g(),b()}},[s,r,a]),c=Nn(function(){const p=r();p.type!=="PENDING"&&bn();const m=p.actions.fluidLift(p.point);l({type:"DRAGGING",actions:m,hasMoved:!1})},[r,l]),d=Nn(function(p,m){r().type!=="IDLE"&&bn();const g=setTimeout(c,v3e);l({type:"PENDING",point:m,actions:p,longPressTimerId:g}),u()},[u,r,l,c]);Jo(function(){return o(),function(){n.current();const m=r();m.type==="PENDING"&&(clearTimeout(m.longPressTimerId),l(z_))}},[r,o,l]),Jo(function(){return vi(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}const w3e=["input","button","textarea","select","option","optgroup","video","audio"];function Aq(e,t){if(t==null)return!1;if(w3e.includes(t.tagName.toLowerCase()))return!0;const r=t.getAttribute("contenteditable");return r==="true"||r===""?!0:t===e?!1:Aq(e,t.parentElement)}function _3e(e,t){const n=t.target;return Pb(n)?Aq(e,n):!1}var T3e=e=>zi(e.getBoundingClientRect()).center;function k3e(e){return e instanceof xq(e).Element}const S3e=(()=>{const e="matches";return typeof document>"u"?e:[e,"msMatchesSelector","webkitMatchesSelector"].find(r=>r in Element.prototype)||e})();function Dq(e,t){return e==null?null:e[S3e](t)?e:Dq(e.parentElement,t)}function C3e(e,t){return e.closest?e.closest(t):Dq(e,t)}function M3e(e){return`[${Gd.contextId}="${e}"]`}function P3e(e,t){const n=t.target;if(!k3e(n))return null;const r=M3e(e),l=C3e(n,r);return!l||!Pb(l)?null:l}function O3e(e,t){const n=P3e(e,t);return n?n.getAttribute(Gd.draggableId):null}function A3e(e,t){const n=`[${gk.contextId}="${e}"]`,l=bq(document,n).find(i=>i.getAttribute(gk.id)===t);return!l||!Pb(l)?null:l}function D3e(e){e.preventDefault()}function b0(e){let{expected:t,phase:n,isLockActive:r,shouldWarn:l}=e;return!(!r()||t!==n)}function Eq(e){let{lockAPI:t,store:n,registry:r,draggableId:l}=e;if(t.isClaimed())return!1;const i=r.draggable.findById(l);return!(!i||!i.options.isEnabled||!mq(n.getState(),l))}function E3e(e){let{lockAPI:t,contextId:n,store:r,registry:l,draggableId:i,forceSensorStop:o,sourceEvent:a}=e;if(!Eq({lockAPI:t,store:r,registry:l,draggableId:i}))return null;const u=l.draggable.getById(i),c=A3e(n,u.descriptor.id);if(!c||a&&!u.options.canDragInteractiveElements&&_3e(c,a))return null;const d=t.claim(o||qs);let f="PRE_DRAG";function p(){return u.options.shouldRespectForcePress}function m(){return t.isActive(d)}function g(x,T){b0({expected:x,phase:f,isLockActive:m,shouldWarn:!0})&&r.dispatch(T())}const b=g.bind(null,"DRAGGING");function v(x){function T(){t.release(),f="COMPLETED"}f!=="PRE_DRAG"&&(T(),bn()),r.dispatch(b_e(x.liftActionArgs)),f="DRAGGING";function k(S,C){if(C===void 0&&(C={shouldBlockNextClick:!1}),x.cleanup(),C.shouldBlockNextClick){const M=vi(window,[{eventName:"click",fn:D3e,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(M)}T(),r.dispatch(lq({reason:S}))}return{isActive:()=>b0({expected:"DRAGGING",phase:f,isLockActive:m,shouldWarn:!1}),shouldRespectForcePress:p,drop:S=>k("DROP",S),cancel:S=>k("CANCEL",S),...x.actions}}function h(x){const T=gm(S=>{b(()=>iq({client:S}))});return{...v({liftActionArgs:{id:i,clientSelection:x,movementMode:"FLUID"},cleanup:()=>T.cancel(),actions:{move:T}}),move:T}}function y(){const x={moveUp:()=>b(P_e),moveRight:()=>b(A_e),moveDown:()=>b(O_e),moveLeft:()=>b(D_e)};return v({liftActionArgs:{id:i,clientSelection:T3e(c),movementMode:"SNAP"},cleanup:qs,actions:x})}function w(){b0({expected:"PRE_DRAG",phase:f,isLockActive:m,shouldWarn:!0})&&t.release()}return{isActive:()=>b0({expected:"PRE_DRAG",phase:f,isLockActive:m,shouldWarn:!1}),shouldRespectForcePress:p,fluidLift:h,snapLift:y,abort:w}}const R3e=[Mq,Pq,Oq];function L3e(e){let{contextId:t,store:n,registry:r,customSensors:l,enableDefaultSensors:i}=e;const o=[...i?R3e:[],...l||[]],a=ge.useState(()=>JTe())[0],s=Nn(function(v,h){_m(v)&&!_m(h)&&a.tryAbandon()},[a]);Jo(function(){let v=n.getState();return n.subscribe(()=>{const y=n.getState();s(v,y),v=y})},[a,n,s]),Jo(()=>a.tryAbandon,[a.tryAbandon]);const u=Nn(b=>Eq({lockAPI:a,registry:r,store:n,draggableId:b}),[a,r,n]),c=Nn((b,v,h)=>E3e({lockAPI:a,registry:r,contextId:t,store:n,draggableId:b,forceSensorStop:v||null,sourceEvent:h&&h.sourceEvent?h.sourceEvent:null}),[t,a,r,n]),d=Nn(b=>O3e(t,b),[t]),f=Nn(b=>{const v=r.draggable.findById(b);return v?v.options:null},[r.draggable]),p=Nn(function(){a.isClaimed()&&(a.tryAbandon(),n.getState().phase!=="IDLE"&&n.dispatch(k5()))},[a,n]),m=Nn(()=>a.isClaimed(),[a]),g=ir(()=>({canGetLock:u,tryGetLock:c,findClosestDraggableId:d,findOptionsForDraggable:f,tryReleaseLock:p,isLockClaimed:m}),[u,c,d,f,p,m]);for(let b=0;b({onBeforeCapture:t=>{const n=()=>{e.onBeforeCapture&&e.onBeforeCapture(t)};Je.version.startsWith("16")||Je.version.startsWith("17")?n():cc.flushSync(n)},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}),$3e=e=>({...wm,...e.autoScrollerOptions,durationDampening:{...wm.durationDampening,...e.autoScrollerOptions}});function Tp(e){return e.current||bn(),e.current}function N3e(e){const{contextId:t,setCallbacks:n,sensors:r,nonce:l,dragHandleUsageInstructions:i}=e,o=ge.useRef(null),a=Tq(e),s=Nn(()=>I3e(a.current),[a]),u=Nn(()=>$3e(a.current),[a]),c=GTe(t),d=QTe({contextId:t,text:i}),f=jTe(t,l),p=Nn(C=>{Tp(o).dispatch(C)},[]),m=ir(()=>iE({publishWhileDragging:w_e,updateDroppableScroll:T_e,updateDroppableIsEnabled:k_e,updateDroppableIsCombineEnabled:S_e,collectionStarting:__e},p),[p]),g=qTe(),b=ir(()=>gTe(g,m),[g,m]),v=ir(()=>RTe({scrollWindow:vTe,scrollDroppable:b.scrollDroppable,getAutoScrollerOptions:u,...iE({move:iq},p)}),[b.scrollDroppable,p,u]),h=BTe(t),y=ir(()=>fTe({announce:c,autoScroller:v,dimensionMarshal:b,focusMarshal:h,getResponders:s,styleMarshal:f}),[c,v,b,h,s,f]);o.current=y;const w=Nn(()=>{const C=Tp(o);C.getState().phase!=="IDLE"&&C.dispatch(k5())},[]),_=Nn(()=>{const C=Tp(o).getState();return C.phase==="DROP_ANIMATING"?!0:C.phase==="IDLE"?!1:C.isDragging},[]),x=ir(()=>({isDragging:_,tryAbort:w}),[_,w]);n(x);const T=Nn(C=>mq(Tp(o).getState(),C),[]),k=Nn(()=>_u(Tp(o).getState()),[]),S=ir(()=>({marshal:b,focus:h,contextId:t,canLift:T,isMovementAllowed:k,dragHandleUsageInstructionsId:d,registry:g}),[t,b,d,h,T,k,g]);return L3e({contextId:t,store:y,registry:g,customSensors:r||null,enableDefaultSensors:e.enableDefaultSensors!==!1}),ge.useEffect(()=>w,[w]),Je.createElement(Ob.Provider,{value:S},Je.createElement(K2e,{context:D5,store:y},e.children))}let Rq=0;function F3e(){Rq=0}function j3e(){return ir(()=>`${Rq++}`,[])}function z3e(){return Je.useId()}var B3e="useId"in Je?z3e:j3e;function W3e(){"useId"in Je||(F3e(),YTe())}function q3e(e){const t=B3e(),n=e.dragHandleUsageInstructions||ov.dragHandleUsageInstructions;return Je.createElement(lwe,null,r=>Je.createElement(N3e,{nonce:e.nonce,contextId:t,setCallbacks:r,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children))}const RE={dragging:5e3,dropAnimating:4500},U3e=(e,t)=>t?Nh.drop(t.duration):e?Nh.snap:Nh.fluid,H3e=(e,t)=>{if(e)return t?xm.opacity.drop:xm.opacity.combining},V3e=e=>e.forceShouldAnimate!=null?e.forceShouldAnimate:e.mode==="SNAP";function G3e(e){const n=e.dimension.client,{offset:r,combineWith:l,dropping:i}=e,o=!!l,a=V3e(e),s=!!i,u=s?hk.drop(r,o):hk.moveTo(r);return{position:"fixed",top:n.marginBox.top,left:n.marginBox.left,boxSizing:"border-box",width:n.borderBox.width,height:n.borderBox.height,transition:U3e(a,i),transform:u,opacity:H3e(o,s),zIndex:s?RE.dropAnimating:RE.dragging,pointerEvents:"none"}}function Y3e(e){return{transform:hk.moveTo(e.offset),transition:e.shouldAnimateDisplacement?void 0:"none"}}function X3e(e){return e.type==="DRAGGING"?G3e(e):Y3e(e)}function K3e(e,t,n){n===void 0&&(n=za);const r=window.getComputedStyle(t),l=t.getBoundingClientRect(),i=IW(l,r),o=fy(i,n),a={client:i,tagName:t.tagName.toLowerCase(),display:r.display},s={x:i.marginBox.width,y:i.marginBox.height};return{descriptor:e,placeholder:a,displaceBy:s,client:i,page:o}}function Z3e(e){const t=E5("draggable"),{descriptor:n,registry:r,getDraggableRef:l,canDragInteractiveElements:i,shouldRespectForcePress:o,isEnabled:a}=e,s=ir(()=>({canDragInteractiveElements:i,shouldRespectForcePress:o,isEnabled:a}),[i,a,o]),u=Nn(p=>{const m=l();return m||bn(),K3e(n,m,p)},[n,l]),c=ir(()=>({uniqueId:t,descriptor:n,options:s,getDimension:u}),[n,u,s,t]),d=ge.useRef(c),f=ge.useRef(!0);Jo(()=>(r.draggable.register(d.current),()=>r.draggable.unregister(d.current)),[r.draggable]),Jo(()=>{if(f.current){f.current=!1;return}const p=d.current;d.current=c,r.draggable.update(c,p)},[c,r.draggable])}var L5=Je.createContext(null);function vy(e){const t=ge.useContext(e);return t||bn(),t}function Q3e(e){e.preventDefault()}const J3e=e=>{const t=ge.useRef(null),n=Nn(function(x){x===void 0&&(x=null),t.current=x},[]),r=Nn(()=>t.current,[]),{contextId:l,dragHandleUsageInstructionsId:i,registry:o}=vy(Ob),{type:a,droppableId:s}=vy(L5),u=ir(()=>({id:e.draggableId,index:e.index,type:a,droppableId:s}),[e.draggableId,e.index,a,s]),{children:c,draggableId:d,isEnabled:f,shouldRespectForcePress:p,canDragInteractiveElements:m,isClone:g,mapped:b,dropAnimationFinished:v}=e;if(!g){const x=ir(()=>({descriptor:u,registry:o,getDraggableRef:r,canDragInteractiveElements:m,shouldRespectForcePress:p,isEnabled:f}),[u,o,r,m,p,f]);Z3e(x)}const h=ir(()=>f?{tabIndex:0,role:"button","aria-describedby":i,"data-rfd-drag-handle-draggable-id":d,"data-rfd-drag-handle-context-id":l,draggable:!1,onDragStart:Q3e}:null,[l,i,d,f]),y=Nn(x=>{b.type==="DRAGGING"&&b.dropping&&x.propertyName==="transform"&&(Je.version.startsWith("16")||Je.version.startsWith("17")?v():cc.flushSync(v))},[v,b]),w=ir(()=>{const x=X3e(b),T=b.type==="DRAGGING"&&b.dropping?y:void 0;return{innerRef:n,draggableProps:{"data-rfd-draggable-context-id":l,"data-rfd-draggable-id":d,style:x,onTransitionEnd:T},dragHandleProps:h}},[l,h,d,b,y,n]),_=ir(()=>({draggableId:u.id,type:u.type,source:{index:u.index,droppableId:u.droppableId}}),[u.droppableId,u.id,u.index,u.type]);return Je.createElement(Je.Fragment,null,c(w,b.snapshot,_))};var eke=J3e,Lq=(e,t)=>e===t,Iq=e=>{const{combine:t,destination:n}=e;return n?n.droppableId:t?t.droppableId:null};const tke=e=>e.combine?e.combine.draggableId:null,nke=e=>e.at&&e.at.type==="COMBINE"?e.at.combine.draggableId:null;function rke(){const e=ja((l,i)=>({x:l,y:i})),t=ja(function(l,i,o,a,s){return o===void 0&&(o=null),a===void 0&&(a=null),s===void 0&&(s=null),{isDragging:!0,isClone:i,isDropAnimating:!!s,dropAnimation:s,mode:l,draggingOver:o,combineWith:a,combineTargetFor:null}}),n=ja(function(l,i,o,a,s,u,c){return s===void 0&&(s=null),u===void 0&&(u=null),c===void 0&&(c=null),{mapped:{type:"DRAGGING",dropping:null,draggingOver:s,combineWith:u,mode:i,offset:l,dimension:o,forceShouldAnimate:c,snapshot:t(i,a,s,u,null)}}});return(l,i)=>{if(_m(l)){if(l.critical.draggable.id!==i.draggableId)return null;const o=l.current.client.offset,a=l.dimensions.draggables[i.draggableId],s=Qo(l.impact),u=nke(l.impact),c=l.forceShouldAnimate;return n(e(o.x,o.y),l.movementMode,a,i.isClone,s,u,c)}if(l.phase==="DROP_ANIMATING"){const o=l.completed;if(o.result.draggableId!==i.draggableId)return null;const a=i.isClone,s=l.dimensions.draggables[i.draggableId],u=o.result,c=u.mode,d=Iq(u),f=tke(u),m={duration:l.dropDuration,curve:C5.drop,moveTo:l.newHomeClientOffset,opacity:f?xm.opacity.drop:null,scale:f?xm.scale.drop:null};return{mapped:{type:"DRAGGING",offset:l.newHomeClientOffset,dimension:s,dropping:m,draggingOver:d,combineWith:f,mode:c,forceShouldAnimate:null,snapshot:t(c,a,d,f,m)}}}return null}}function $q(e){return e===void 0&&(e=null),{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const ake={mapped:{type:"SECONDARY",offset:za,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:$q(null)}};function oke(){const e=ja((o,a)=>({x:o,y:a})),t=ja($q),n=ja(function(o,a,s){return a===void 0&&(a=null),{mapped:{type:"SECONDARY",offset:o,combineTargetFor:a,shouldAnimateDisplacement:s,snapshot:t(a)}}}),r=o=>o?n(za,o,!0):null,l=(o,a,s,u)=>{const c=s.displaced.visible[o],d=!!(u.inVirtualList&&u.effected[o]),f=Sb(s),p=f&&f.draggableId===o?a:null;if(!c){if(!d)return r(p);if(s.displaced.invisible[o])return null;const b=ff(u.displacedBy.point),v=e(b.x,b.y);return n(v,p,!0)}if(d)return r(p);const m=s.displacedBy.point,g=e(m.x,m.y);return n(g,p,c.shouldAnimate)};return(o,a)=>{if(_m(o))return o.critical.draggable.id===a.draggableId?null:l(a.draggableId,o.critical.draggable.id,o.impact,o.afterCritical);if(o.phase==="DROP_ANIMATING"){const s=o.completed;return s.result.draggableId===a.draggableId?null:l(a.draggableId,s.result.draggableId,s.impact,s.afterCritical)}return null}}const ike=()=>{const e=rke(),t=oke();return(r,l)=>e(r,l)||t(r,l)||ake},lke={dropAnimationFinished:sq},ske=RW(ike,lke,null,{context:D5,areStatePropsEqual:Lq})(eke);var uke=ske;function Nq(e){return vy(L5).isUsingCloneFor===e.draggableId&&!e.isClone?null:Je.createElement(uke,e)}function cke(e){const t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,n=!!e.disableInteractiveElementBlocking,r=!!e.shouldRespectForcePress;return Je.createElement(Nq,Ie({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:r}))}const Fq=e=>t=>e===t,dke=Fq("scroll"),fke=Fq("auto"),LE=(e,t)=>t(e.overflowX)||t(e.overflowY),pke=e=>{const t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return LE(n,dke)||LE(n,fke)},hke=()=>!1,jq=e=>e==null?null:e===document.body?hke()?e:null:e===document.documentElement?null:pke(e)?e:jq(e.parentElement);var mke=jq,vk=e=>({x:e.scrollLeft,y:e.scrollTop});const zq=e=>e?window.getComputedStyle(e).position==="fixed"?!0:zq(e.parentElement):!1;var gke=e=>{const t=mke(e),n=zq(e);return{closestScrollable:t,isFixedOnPage:n}},vke=e=>{let{descriptor:t,isEnabled:n,isCombineEnabled:r,isFixedOnPage:l,direction:i,client:o,page:a,closest:s}=e;const u=(()=>{if(!s)return null;const{scrollSize:p,client:m}=s,g=fq({scrollHeight:p.scrollHeight,scrollWidth:p.scrollWidth,height:m.paddingBox.height,width:m.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:m,scrollSize:p,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:g,diff:{value:za,displacement:za}}}})(),c=i==="vertical"?b5:HW,d=Hd({page:a,withPlaceholder:null,axis:c,frame:u});return{descriptor:t,isCombineEnabled:r,isFixedOnPage:l,axis:c,isEnabled:n,client:o,page:a,frame:u,subject:d}};const yke=(e,t)=>{const n=$W(e);if(!t||e!==t)return n;const r=n.paddingBox.top-t.scrollTop,l=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,o=l+t.scrollWidth,s=m5({top:r,right:o,bottom:i,left:l},n.border);return g5({borderBox:s,margin:n.margin,border:n.border,padding:n.padding})};var bke=e=>{let{ref:t,descriptor:n,env:r,windowScroll:l,direction:i,isDropDisabled:o,isCombineEnabled:a,shouldClipSubject:s}=e;const u=r.closestScrollable,c=yke(t,u),d=fy(c,l),f=(()=>{if(!u)return null;const m=$W(u),g={scrollHeight:u.scrollHeight,scrollWidth:u.scrollWidth};return{client:m,page:fy(m,l),scroll:vk(u),scrollSize:g,shouldClipSubject:s}})();return vke({descriptor:n,isEnabled:!o,isCombineEnabled:a,isFixedOnPage:r.isFixedOnPage,direction:i,client:c,page:d,closest:f})};const xke={passive:!1},wke={passive:!0};var IE=e=>e.shouldPublishImmediately?xke:wke;const x0=e=>e&&e.env.closestScrollable||null;function _ke(e){const t=ge.useRef(null),n=vy(Ob),r=E5("droppable"),{registry:l,marshal:i}=n,o=Tq(e),a=ir(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),s=ge.useRef(a),u=ir(()=>ja((w,_)=>{t.current||bn();const x={x:w,y:_};i.updateDroppableScroll(a.id,x)}),[a.id,i]),c=Nn(()=>{const w=t.current;return!w||!w.env.closestScrollable?za:vk(w.env.closestScrollable)},[]),d=Nn(()=>{const w=c();u(w.x,w.y)},[c,u]),f=ir(()=>gm(d),[d]),p=Nn(()=>{const w=t.current,_=x0(w);if(w&&_||bn(),w.scrollOptions.shouldPublishImmediately){d();return}f()},[f,d]),m=Nn((w,_)=>{t.current&&bn();const x=o.current,T=x.getDroppableRef();T||bn();const k=gke(T),S={ref:T,descriptor:a,env:k,scrollOptions:_};t.current=S;const C=bke({ref:T,descriptor:a,env:k,windowScroll:w,direction:x.direction,isDropDisabled:x.isDropDisabled,isCombineEnabled:x.isCombineEnabled,shouldClipSubject:!x.ignoreContainerClipping}),M=k.closestScrollable;return M&&(M.setAttribute(OE.contextId,n.contextId),M.addEventListener("scroll",p,IE(S.scrollOptions))),C},[n.contextId,a,p,o]),g=Nn(()=>{const w=t.current,_=x0(w);return w&&_||bn(),vk(_)},[]),b=Nn(()=>{const w=t.current;w||bn();const _=x0(w);t.current=null,_&&(f.cancel(),_.removeAttribute(OE.contextId),_.removeEventListener("scroll",p,IE(w.scrollOptions)))},[p,f]),v=Nn(w=>{const _=t.current;_||bn();const x=x0(_);x||bn(),x.scrollTop+=w.y,x.scrollLeft+=w.x},[]),h=ir(()=>({getDimensionAndWatchScroll:m,getScrollWhileDragging:g,dragStopped:b,scroll:v}),[b,m,g,v]),y=ir(()=>({uniqueId:r,descriptor:a,callbacks:h}),[h,a,r]);Jo(()=>(s.current=y.descriptor,l.droppable.register(y),()=>{t.current&&b(),l.droppable.unregister(y)}),[h,a,b,y,i,l.droppable]),Jo(()=>{t.current&&i.updateDroppableIsEnabled(s.current.id,!e.isDropDisabled)},[e.isDropDisabled,i]),Jo(()=>{t.current&&i.updateDroppableIsCombineEnabled(s.current.id,e.isCombineEnabled)},[e.isCombineEnabled,i])}function B_(){}const $E={width:0,height:0,margin:hwe},Tke=e=>{let{isAnimatingOpenOnMount:t,placeholder:n,animate:r}=e;return t||r==="close"?$E:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}},kke=e=>{let{isAnimatingOpenOnMount:t,placeholder:n,animate:r}=e;const l=Tke({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:l.width,height:l.height,marginTop:l.margin.top,marginRight:l.margin.right,marginBottom:l.margin.bottom,marginLeft:l.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:r!=="none"?Nh.placeholder:null}},Ske=e=>{const t=ge.useRef(null),n=Nn(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]),{animate:r,onTransitionEnd:l,onClose:i,contextId:o}=e,[a,s]=ge.useState(e.animate==="open");ge.useEffect(()=>a?r!=="open"?(n(),s(!1),B_):t.current?B_:(t.current=setTimeout(()=>{t.current=null,s(!1)}),n):B_,[r,a,n]);const u=Nn(d=>{d.propertyName==="height"&&(l(),r==="close"&&i())},[r,i,l]),c=kke({isAnimatingOpenOnMount:a,animate:e.animate,placeholder:e.placeholder});return Je.createElement(e.placeholder.tagName,{style:c,"data-rfd-placeholder-context-id":o,onTransitionEnd:u,ref:e.innerRef})};var Cke=Je.memo(Ske);class Mke extends Je.PureComponent{constructor(){super(...arguments),this.state={isVisible:!!this.props.on,data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{this.state.animate==="close"&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(t,n){return t.shouldAnimate?t.on?{isVisible:!0,data:t.on,animate:"open"}:n.isVisible?{isVisible:!0,data:n.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!t.on,data:t.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const t={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(t)}}const Pke=e=>{const t=ge.useContext(Ob);t||bn();const{contextId:n,isMovementAllowed:r}=t,l=ge.useRef(null),i=ge.useRef(null),{children:o,droppableId:a,type:s,mode:u,direction:c,ignoreContainerClipping:d,isDropDisabled:f,isCombineEnabled:p,snapshot:m,useClone:g,updateViewportMaxScroll:b,getContainerForClone:v}=e,h=Nn(()=>l.current,[]),y=Nn(function(M){M===void 0&&(M=null),l.current=M},[]);Nn(()=>i.current,[]);const w=Nn(function(M){M===void 0&&(M=null),i.current=M},[]),_=Nn(()=>{r()&&b({maxScroll:hq()})},[r,b]);_ke({droppableId:a,type:s,mode:u,direction:c,isDropDisabled:f,isCombineEnabled:p,ignoreContainerClipping:d,getDroppableRef:h});const x=ir(()=>Je.createElement(Mke,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},M=>{let{onClose:O,data:D,animate:P}=M;return Je.createElement(Cke,{placeholder:D,onClose:O,innerRef:w,animate:P,contextId:n,onTransitionEnd:_})}),[n,_,e.placeholder,e.shouldAnimatePlaceholder,w]),T=ir(()=>({innerRef:y,placeholder:x,droppableProps:{"data-rfd-droppable-id":a,"data-rfd-droppable-context-id":n}}),[n,a,x,y]),k=g?g.dragging.draggableId:null,S=ir(()=>({droppableId:a,type:s,isUsingCloneFor:k}),[a,k,s]);function C(){if(!g)return null;const{dragging:M,render:O}=g,D=Je.createElement(Nq,{draggableId:M.draggableId,index:M.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(P,E)=>O(P,E,M));return sh.createPortal(D,v())}return Je.createElement(L5.Provider,{value:S},o(T,m),C())};var Oke=Pke;function Ake(){return document.body||bn(),document.body}const NE={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:Ake},Bq=e=>{let t={...e},n;for(n in NE)e[n]===void 0&&(t={...t,[n]:NE[n]});return t},W_=(e,t)=>e===t.droppable.type,FE=(e,t)=>t.draggables[e.draggable.id],Dke=()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},n=ja(i=>({draggableId:i.id,type:i.type,source:{index:i.index,droppableId:i.droppableId}})),r=ja((i,o,a,s,u,c)=>{const d=u.descriptor.id;if(u.descriptor.droppableId===i){const m=c?{render:c,dragging:n(u.descriptor)}:null,g={isDraggingOver:a,draggingOverWith:a?d:null,draggingFromThisWith:d,isUsingPlaceholder:!0};return{placeholder:u.placeholder,shouldAnimatePlaceholder:!1,snapshot:g,useClone:m}}if(!o)return t;if(!s)return e;const p={isDraggingOver:a,draggingOverWith:d,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:u.placeholder,shouldAnimatePlaceholder:!0,snapshot:p,useClone:null}});return(i,o)=>{const a=Bq(o),s=a.droppableId,u=a.type,c=!a.isDropDisabled,d=a.renderClone;if(_m(i)){const f=i.critical;if(!W_(u,f))return t;const p=FE(f,i.dimensions),m=Qo(i.impact)===s;return r(s,c,m,m,p,d)}if(i.phase==="DROP_ANIMATING"){const f=i.completed;if(!W_(u,f.critical))return t;const p=FE(f.critical,i.dimensions);return r(s,c,Iq(f.result)===s,Qo(f.impact)===s,p,d)}if(i.phase==="IDLE"&&i.completed&&!i.shouldFlush){const f=i.completed;if(!W_(u,f.critical))return t;const p=Qo(f.impact)===s,m=!!(f.impact.at&&f.impact.at.type==="COMBINE"),g=f.critical.droppable.id===s;return p?m?e:t:g?e:t}return t}},Eke={updateViewportMaxScroll:M_e},Rke=RW(Dke,Eke,(e,t,n)=>({...Bq(n),...e,...t}),{context:D5,areStatePropsEqual:Lq})(Oke);var Lke=Rke;const Ike=Object.freeze(Object.defineProperty({__proto__:null,DragDropContext:q3e,Draggable:cke,Droppable:Lke,resetServerContext:W3e,useKeyboardSensor:Pq,useMouseSensor:Mq,useTouchSensor:Oq},Symbol.toStringTag,{value:"Module"})),I5=Qn(Ike);var jE;function $ke(){return jE||(jE=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Ir()),l=t(fc),i=t($a()),o=t(SW),a=t(k2e),s=t(Tb),u=t(Vr),c=g(ge),d=I5,f=Yi(),p=eg();function m(w){if(typeof WeakMap!="function")return null;var _=new WeakMap,x=new WeakMap;return(m=function(k){return k?x:_})(w)}function g(w,_){if(w&&w.__esModule)return w;if(w===null||n(w)!=="object"&&typeof w!="function")return{default:w};var x=m(_);if(x&&x.has(w))return x.get(w);var T={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in w)if(S!=="default"&&Object.prototype.hasOwnProperty.call(w,S)){var C=k?Object.getOwnPropertyDescriptor(w,S):null;C&&(C.get||C.set)?Object.defineProperty(T,S,C):T[S]=w[S]}return T.default=w,x&&x.set(w,T),T}function b(w,_){var x=Object.keys(w);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(w);_&&(T=T.filter(function(k){return Object.getOwnPropertyDescriptor(w,k).enumerable})),x.push.apply(x,T)}return x}function v(w){for(var _=1;_0&&c.default.createElement(s.default,{variant:"caption",sx:{padding:1}},_.groupedBy),w.groupColumns.map(function(O,D){return c.default.createElement(d.Draggable,{key:O.tableData.id.toString(),draggableId:O.tableData.id.toString(),index:D},function(P,E){var I;return c.default.createElement(l.default,(0,r.default)({ref:P.innerRef},P.draggableProps,P.dragHandleProps,{sx:k(E.isDragging,P.draggableProps.style)}),c.default.createElement(a.default,(0,r.default)({},P.dragHandleProps,T.groupChipProps,{onClick:function(){return w.onSortChanged(O)},label:c.default.createElement(l.default,{sx:{display:"flex",alignItems:"center"}},c.default.createElement(l.default,{sx:{float:"left"}},O.title),O.tableData.groupSort&&c.default.createElement(x.SortArrow,{sx:{transition:"300ms ease all",transform:O.tableData.groupSort==="asc"?"rotate(-180deg)":"none",fontSize:18}})),sx:v({boxShadow:"none",textTransform:"none"},(I=T.groupChipProps)!==null&&I!==void 0?I:{}),onDelete:function(){return w.onGroupRemoved(O,D)}})))})}),w.groupColumns.length===0&&c.default.createElement(s.default,{variant:"caption",sx:{padding:1}},_.placeholder),C.placeholder)}))}h.defaultProps={},h.propTypes={forwardedRef:u.default.element,className:u.default.string,onSortChanged:u.default.func,onGroupRemoved:u.default.func,onGroupChange:u.default.func,persistentGroupingsId:u.default.string};var y=c.default.forwardRef(function(_,x){return c.default.createElement(h,(0,r.default)({},_,{forwardedRef:x}))});e.default=y}(D_)),D_}var q_={},zE;function Nke(){return zE||(zE=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Ir()),r=t($a()),l=t(iu()),i=t(cf()),o=t(Cl),a=t(ls),s=t(df),u=t(pc),c=t(Vr),d=t(ge),f=Yi();function p(v,h){var y=Object.keys(v);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(v);h&&(w=w.filter(function(_){return Object.getOwnPropertyDescriptor(v,_).enumerable})),y.push.apply(y,w)}return y}function m(v){for(var h=1;h0&&_++;var x=v.groups[v.level],T;v.groupData.isExpanded&&(v.groups.length>v.level+1?T=v.groupData.groups.map(function(B,N){return d.default.createElement(v.components.GroupRow,{actions:v.actions,key:B.value||""+N,columns:v.columns,components:v.components,detailPanel:v.detailPanel,getFieldValue:v.getFieldValue,groupData:B,groups:v.groups,level:v.level+1,path:[].concat((0,i.default)(v.path),[N]),onGroupExpandChanged:v.onGroupExpandChanged,onGroupSelected:v.onGroupSelected,onRowSelected:v.onRowSelected,onRowClick:v.onRowClick,onToggleDetailPanel:v.onToggleDetailPanel,onTreeExpandChanged:v.onTreeExpandChanged,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,hasAnyEditingRow:v.hasAnyEditingRow,isTreeData:v.isTreeData,cellEditable:v.cellEditable,onCellEditStarted:v.onCellEditStarted,onCellEditFinished:v.onCellEditFinished,scrollWidth:v.scrollWidth,treeDataMaxLevel:v.treeDataMaxLevel})}):T=v.groupData.data.map(function(B,N){return B.tableData.editing?d.default.createElement(v.components.EditRow,{columns:v.columns,components:v.components,data:B,path:[].concat((0,i.default)(v.path),[B.tableData.uuid]),localization:v.localization,key:N,mode:B.tableData.editing,isTreeData:v.isTreeData,detailPanel:v.detailPanel,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,getFieldValue:v.getFieldValue,onBulkEditRowChanged:v.onBulkEditRowChanged,scrollWidth:v.scrollWidth}):d.default.createElement(v.components.Row,{actions:v.actions,key:N,columns:v.columns,components:v.components,data:B,detailPanel:v.detailPanel,level:(v.level||0)+1,getFieldValue:v.getFieldValue,path:[].concat((0,i.default)(v.path),[B.tableData.uuid]),onRowSelected:v.onRowSelected,onRowClick:v.onRowClick,onToggleDetailPanel:v.onToggleDetailPanel,isTreeData:v.isTreeData,onTreeExpandChanged:v.onTreeExpandChanged,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,hasAnyEditingRow:v.hasAnyEditingRow,cellEditable:v.cellEditable,onCellEditStarted:v.onCellEditStarted,onCellEditFinished:v.onCellEditFinished,scrollWidth:v.scrollWidth,treeDataMaxLevel:v.treeDataMaxLevel})}));for(var k=[],S=0;S0&&A!==F,checked:A===F,onChange:function(N,R){return v.onGroupSelected&&v.onGroupSelected(R,v.groupData.path)},style:{marginRight:8}}),d.default.createElement("b",null,M,O)))),T)}g.defaultProps={columns:[],groups:[],level:0},g.propTypes={actions:c.default.array,columns:c.default.arrayOf(c.default.object),components:c.default.object,cellEditable:c.default.object,detailPanel:c.default.oneOfType([c.default.func,c.default.arrayOf(c.default.object)]),forwardedRef:c.default.element,getFieldValue:c.default.func,groupData:c.default.object,groups:c.default.arrayOf(c.default.object),hasAnyEditingRow:c.default.bool,icons:c.default.object,isTreeData:c.default.bool.isRequired,level:c.default.number,localization:c.default.object,onBulkEditRowChanged:c.default.func,onCellEditFinished:c.default.func,onCellEditStarted:c.default.func,onEditingApproved:c.default.func,onEditingCanceled:c.default.func,onGroupExpandChanged:c.default.func,onRowClick:c.default.func,onGroupSelected:c.default.func,onRowSelected:c.default.func,onToggleDetailPanel:c.default.func.isRequired,onTreeExpandChanged:c.default.func.isRequired,path:c.default.arrayOf(c.default.number),scrollWidth:c.default.number.isRequired,treeDataMaxLevel:c.default.number};var b=d.default.forwardRef(function(h,y){return d.default.createElement(g,(0,n.default)({},h,{forwardedRef:y}))});e.default=b}(q_)),q_}var U_={};const Fke=Qn(xfe),jke=Qn(ope);var BE;function zke(){return BE||(BE=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableHeader=k,e.styles=e.default=void 0;var r=t(fc),l=t(hc),i=t(Ir()),o=t($a()),a=t(iu()),s=t(uf()),u=t(ge),c=t(Vr),d=t(Fke),f=t(ls),p=t(Cl),m=t(jke),g=t(pc),b=I5,v=_(ds()),h=Yi(),y=["onColumnResized","classes","sx","columns"];function w(P){if(typeof WeakMap!="function")return null;var E=new WeakMap,I=new WeakMap;return(w=function(F){return F?I:E})(P)}function _(P,E){if(P&&P.__esModule)return P;if(P===null||n(P)!=="object"&&typeof P!="function")return{default:P};var I=w(E);if(I&&I.has(P))return I.get(P);var A={},F=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var j in P)if(j!=="default"&&Object.prototype.hasOwnProperty.call(P,j)){var z=F?Object.getOwnPropertyDescriptor(P,j):null;z&&(z.get||z.set)?Object.defineProperty(A,j,z):A[j]=P[j]}return A.default=P,I&&I.set(P,A),A}function x(P,E){var I=Object.keys(P);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(P);E&&(A=A.filter(function(F){return Object.getOwnPropertyDescriptor(P,F).enumerable})),I.push.apply(I,A)}return I}function T(P){for(var E=1;E-1)&&!ce.tableData.hiddden}).sort(function(ce,we){return ce.tableData.columnOrder-we.tableData.columnOrder}).map(function(ce,we,K){var ne=ce.align!==void 0?ce.align:["numeric","currency"].indexOf(ce.type)!==-1?"right":"left",de=ce.title;if(B.draggable&&ce.draggable!==!1?de=u.default.createElement(b.Draggable,{key:ce.tableData.id,draggableId:ce.tableData.id.toString(),index:we,style:{zIndex:99}},function(ue,pe){return u.default.createElement("div",(0,i.default)({ref:ue.innerRef},ue.draggableProps,ue.dragHandleProps,{style:pe.isDragging?ue.draggableProps.style:{position:"relative",minWidth:0,display:"flex",flexDirection:ne==="right"?"row-reverse":void 0}}),ce.sorting!==!1&&j.sorting&&j.allowSorting?u.default.createElement(C,{columnDef:ce,keepSortDirectionOnColumnSwitch:B.keepSortDirectionOnColumnSwitch,icon:N.SortArrow,thirdSortClick:B.thirdSortClick,onOrderChange:j.onOrderChange,orderByCollection:j.orderByCollection,showColumnSortOrder:B.showColumnSortOrder,sortOrderIndicatorStyle:B.sortOrderIndicatorStyle},ce.title):ce.title)}):ce.sorting!==!1&&j.sorting&&j.allowSorting&&(de=u.default.createElement(C,{columnDef:ce,keepSortDirectionOnColumnSwitch:B.keepSortDirectionOnColumnSwitch,icon:N.SortArrow,thirdSortClick:B.thirdSortClick,onOrderChange:j.onOrderChange,orderByCollection:j.orderByCollection,showColumnSortOrder:B.showColumnSortOrder,sortOrderIndicatorStyle:B.sortOrderIndicatorStyle},ce.title)),ce.tooltip&&(de=u.default.createElement(l.default,{title:ce.tooltip,placement:"bottom"},u.default.createElement("span",null,de))),B.tableLayout==="fixed"&&B.columnResizable&&ce.resizable!==!1&&!(B.tableWidth==="full"&&we===K.length-1)){var _e=N.Resize?N.Resize:function(ue){return u.default.createElement(r.default,(0,i.default)({},ue,{"data-test-id":"drag_handle"}))};de=u.default.createElement(r.default,{sx:M.headerWrap(ne==="right")},u.default.createElement(r.default,{sx:M.headerContent(ne==="right")},de),u.default.createElement("div",null),u.default.createElement(_e,{sx:M.headerResize((W==null?void 0:W.col)&&W.col.tableData.id===ce.tableData.id),onMouseDown:function(pe){return G(pe,ce,we)}}))}return u.default.createElement(p.default,{key:ce.tableData.id,align:ne,sx:M.header,style:ie(ce),size:Me,"aria-label":ce.ariaLabel},de)})}function he(){var Me=v.selectionMaxWidth(T(T({},j),{},{options:B}),j.treeDataMaxLevel);return u.default.createElement(p.default,{padding:"none",key:"key-selection-column",sx:M.header,style:T(T({},B.headerStyle),{},{width:Me})},B.showSelectAllCheckbox&&u.default.createElement(g.default,(0,i.default)({indeterminate:j.selectedCount>0&&j.selectedCount0&&j.selectedCount>=j.dataCount,onChange:function(we,K){return j.onAllSelected&&j.onAllSelected(K)}},B.headerSelectionProps)))}function Se(){return u.default.createElement(p.default,{padding:"none",key:"key-detail-panel-column",sx:M.header,style:B.headerStyle})}var Oe=se();if(B.selection&&Oe.splice(0,0,he()),j.showActionsColumn)if(B.actionsColumnIndex>=0){var Pe=0;B.selection&&(Pe=1),Oe.splice(B.actionsColumnIndex+Pe,0,ae())}else B.actionsColumnIndex===-1&&Oe.push(ae());return j.hasDetailPanel&&B.showDetailPanelIcon&&(B.detailPanelColumnAlignment==="right"?Oe.push(Se()):Oe.splice(0,0,Se())),j.isTreeData>0&&Oe.splice(0,0,u.default.createElement(p.default,{padding:"none",key:"key-tree-data-header",sx:M.header,style:B.headerStyle})),Z.filter(function(Me){return Me.tableData.groupOrder>-1}).forEach(function(Me){Oe.splice(0,0,u.default.createElement(p.default,{padding:"checkbox",key:"key-group-header"+Me.tableData.id,sx:M.header,style:B.headerStyle}))}),u.default.createElement(d.default,{ref:j.forwardedRef,classes:I,sx:A},u.default.createElement(f.default,{sx:M.headerRow},Oe))}var S=function(E,I,A,F,j){return A.tableData.id!==E?j&&I||"asc":I==="asc"?"desc":I==="desc"&&F?"":"asc"};function C(P){var E=P.columnDef,I=P.keepSortDirectionOnColumnSwitch,A=P.icon,F=P.thirdSortClick,j=P.onOrderChange,z=P.children,B=P.orderByCollection,N=P.showColumnSortOrder,R=P.sortOrderIndicatorStyle,q=B.find(function(U){var V=U.orderBy;return V===E.tableData.id}),Y=(q||I)&&q&&q.orderDirection||"asc",L="none";q&&Y==="asc"?L=E.ariaSortAsc||"ascending":q&&Y==="desc"&&(L=E.ariaSortDesc||"descending");var W=q&&q.orderBy;return u.default.createElement(u.default.Fragment,null,u.default.createElement(m.default,{role:"columnheader","aria-sort":L,"aria-label":E.ariaLabel,IconComponent:A,active:!!q,"data-testid":"mtableheader-sortlabel",direction:Y,onClick:function(){var V=S(W,Y,E,F,I);j(E.tableData.id,V,q&&q.sortOrder)}},z),u.default.createElement("span",{style:T(T({},R),{},{width:"1em"}),"data-testid":"material-table-column-sort-order-indicator"},N&&q?q.sortOrder:""))}k.defaultProps={dataCount:0,selectedCount:0,orderByCollection:[],allowSorting:!0},k.propTypes={columns:c.default.array.isRequired,classes:c.default.object,sx:c.default.object,dataCount:c.default.number,hasDetailPanel:c.default.bool.isRequired,selectedCount:c.default.number,onAllSelected:c.default.func,onOrderChange:c.default.func,showActionsColumn:c.default.bool,orderByCollection:c.default.array,showColumnSortOrder:c.default.bool,tooltip:c.default.string,allowSorting:c.default.bool};var M={headerRow:{zIndex:10},header:{top:0},headerWrap:function(E){return{display:"flex",alignItems:"center",position:"relative",left:4}},headerWrapRight:function(E){return{display:"flex",alignItems:"center",pr:E?1:void 0,position:"relative",left:4,justifyContent:"flex-end"}},headerContent:function(E){return{minWidth:0,display:"flex",flex:"1 0 100%",flexDirection:E?"row-reverse":void 0,justifyContent:"flex-start",alignItems:"center",width:"100%",position:"relative"}},headerResize:function(E){return{color:E?"primary.main":"inherit",flex:1,cursor:"col-resize",position:"absolute",height:"100%",width:16,display:"flex",justifyContent:"center",right:-8,zIndex:20}}};e.styles=M;var O=u.default.forwardRef(function(E,I){return u.default.createElement(k,(0,i.default)({},E,{forwardedRef:I}))}),D=u.default.memo(O);e.default=D}(U_)),U_}var H_={};const Bke=Qn(Jie);var WE;function Wke(){return WE||(WE=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Ir()),l=t(df),i=t(hc),o=t(fc),a=t(Bke),s=t(Vr),u=t(ge),c=sf,d=m(ds()),f=Yi();function p(y){if(typeof WeakMap!="function")return null;var w=new WeakMap,_=new WeakMap;return(p=function(T){return T?_:w})(y)}function m(y,w){if(y&&y.__esModule)return y;if(y===null||n(y)!=="object"&&typeof y!="function")return{default:y};var _=p(w);if(_&&_.has(y))return _.get(y);var x={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in y)if(k!=="default"&&Object.prototype.hasOwnProperty.call(y,k)){var S=T?Object.getOwnPropertyDescriptor(y,k):null;S&&(S.get||S.set)?Object.defineProperty(x,k,S):x[k]=y[k]}return x.default=y,_&&_.set(y,x),x}function g(y){var w=(0,c.useTheme)(),_=(0,f.useLocalizationStore)().pagination,x=(0,f.useIconStore)(),T=function(Y){y.onPageChange(Y,0)},k=function(Y){y.onPageChange(Y,y.page-1)},S=function(Y){y.onPageChange(Y,y.page+1)},C=function(Y){return function(L){y.onPageChange(L,Y)}},M=function(Y){y.onPageChange(Y,Math.max(0,Math.ceil(y.count/y.rowsPerPage)-1))};function O(q,Y,L,W){var U=[];W=Math.max(1,Math.min(10,W));for(var V=Math.max(q-W+1,0);V<=Math.min(Y+W-1,L);V++){var te=V===y.page?"contained":"text";U.push(u.default.createElement(a.default,{size:"small",style:{boxShadow:"none",maxWidth:"30px",maxHeight:"30px",minWidth:"30px",minHeight:"30px"},disabled:V===y.page,variant:te,onClick:C(V),key:V},V+1))}return u.default.createElement("span",null,U)}var D=y.count,P=y.page,E=y.rowsPerPage,I=y.showFirstLastPageButtons,A=y.numberOfPagesAround,F=Math.ceil(D/E)-1,j=Math.max(P-1,0),z=Math.min(F,P+1),B=d.parseFirstLastPageButtons(I,w.direction==="rtl"),N=B.first,R=B.last;return u.default.createElement(o.default,{sx:{flexShrink:0,color:"text.secondary",marginLeft:2.5,display:"flex",alignItems:"center"},ref:y.forwardedRef},N&&u.default.createElement(i.default,{title:_.firstTooltip},u.default.createElement("span",null,u.default.createElement(l.default,{onClick:T,disabled:P===0,"aria-label":_.firstAriaLabel,size:"large"},w.direction==="rtl"?u.default.createElement(x.LastPage,null):u.default.createElement(x.FirstPage,null)))),u.default.createElement(i.default,{title:_.previousTooltip},u.default.createElement("span",null,u.default.createElement(l.default,{onClick:k,disabled:P===0,"aria-label":_.previousAriaLabel},u.default.createElement(x.PreviousPage,null)))),u.default.createElement(o.default,{sx:{display:{xs:"false",sm:"false",md:"block"}}},O(j,z,F,A)),u.default.createElement(i.default,{title:_.nextTooltip},u.default.createElement("span",null,u.default.createElement(l.default,{onClick:S,disabled:P>=F,"aria-label":_.nextAriaLabel,size:"large"},w.direction==="rtl"?u.default.createElement(x.PreviousPage,null):u.default.createElement(x.NextPage,null)))),R&&u.default.createElement(i.default,{title:_.lastTooltip},u.default.createElement("span",null,u.default.createElement(l.default,{onClick:M,disabled:P>=Math.ceil(D/E)-1,"aria-label":_.lastAriaLabel,size:"large"},w.direction==="rtl"?u.default.createElement(x.FirstPage,null):u.default.createElement(x.LastPage,null)))))}g.propTypes={onPageChange:s.default.func,page:s.default.number,forwardedRef:s.default.func,count:s.default.number,rowsPerPage:s.default.number,numberOfPagesAround:s.default.number,classes:s.default.object,theme:s.default.any,showFirstLastPageButtons:s.default.oneOfType([s.default.object,s.default.bool])},g.defaultProps={showFirstLastPageButtons:!0};var b=u.default.forwardRef(function(w,_){return u.default.createElement(g,(0,r.default)({},w,{forwardedRef:_}))}),v=b,h=v;e.default=h}(H_)),H_}var V_={},qE;function qke(){return qE||(qE=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Ir()),l=t(fc),i=t(df),o=t(hc),a=t(Tb),s=t(Vr),u=t(ge),c=sf,d=m(ds()),f=eg();function p(y){if(typeof WeakMap!="function")return null;var w=new WeakMap,_=new WeakMap;return(p=function(T){return T?_:w})(y)}function m(y,w){if(y&&y.__esModule)return y;if(y===null||n(y)!=="object"&&typeof y!="function")return{default:y};var _=p(w);if(_&&_.has(y))return _.get(y);var x={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in y)if(k!=="default"&&Object.prototype.hasOwnProperty.call(y,k)){var S=T?Object.getOwnPropertyDescriptor(y,k):null;S&&(S.get||S.set)?Object.defineProperty(x,k,S):x[k]=y[k]}return x.default=y,_&&_.set(y,x),x}function g(y){var w=(0,c.useTheme)(),_=(0,f.useIconStore)(),x=(0,f.useLocalizationStore)().pagination,T=function(j){y.onPageChange(j,0)},k=function(j){y.onPageChange(j,y.page-1)},S=function(j){y.onPageChange(j,y.page+1)},C=function(j){y.onPageChange(j,Math.max(0,Math.ceil(y.count/y.rowsPerPage)-1))},M=y.count,O=y.page,D=y.rowsPerPage,P=y.showFirstLastPageButtons,E=d.parseFirstLastPageButtons(P,w.direction==="rtl"),I=E.first,A=E.last;return u.default.createElement(l.default,{sx:{flexShrink:0,color:"text.secondary",display:"flex",alignItems:"center"},ref:y.forwardedRef},I&&u.default.createElement(o.default,{title:x.firstTooltip},u.default.createElement("span",null,u.default.createElement(i.default,{onClick:T,disabled:O===0,"aria-label":x.firstAriaLabel,size:"large"},w.direction==="rtl"?u.default.createElement(_.LastPage,null):u.default.createElement(_.FirstPage,null)))),u.default.createElement(o.default,{title:x.previousTooltip},u.default.createElement("span",null,u.default.createElement(i.default,{onClick:k,disabled:O===0,"aria-label":x.previousAriaLabel},w.direction==="rtl"?u.default.createElement(_.NextPage,null):u.default.createElement(_.PreviousPage,null)))),u.default.createElement(a.default,{variant:"caption",style:{flex:1,textAlign:"center",alignSelf:"center",flexBasis:"inherit"}},x.labelDisplayedRows.replace("{from}",y.count===0?0:y.page*y.rowsPerPage+1).replace("{to}",Math.min((y.page+1)*y.rowsPerPage,y.count)).replace("{count}",y.count)),u.default.createElement(o.default,{title:x.nextTooltip},u.default.createElement("span",null,u.default.createElement(i.default,{onClick:S,disabled:O>=Math.ceil(M/D)-1,"aria-label":x.nextAriaLabel},w.direction==="rtl"?u.default.createElement(_.PreviousPage,null):u.default.createElement(_.NextPage,null)))),A&&u.default.createElement(o.default,{title:x.lastTooltip},u.default.createElement("span",null,u.default.createElement(i.default,{onClick:C,disabled:O>=Math.ceil(M/D)-1,"aria-label":x.lastAriaLabel,size:"large"},w.direction==="rtl"?u.default.createElement(_.FirstPage,null):u.default.createElement(_.LastPage,null)))))}g.propTypes={onPageChange:s.default.func,page:s.default.number,count:s.default.number,rowsPerPage:s.default.number,classes:s.default.object,localization:s.default.object,showFirstLastPageButtons:s.default.oneOfType([s.default.object,s.default.bool]),forwardedRef:s.default.func},g.defaultProps={showFirstLastPageButtons:!0};var b=u.default.forwardRef(function(w,_){return u.default.createElement(g,(0,r.default)({},w,{forwardedRef:_}))}),v=b,h=v;e.default=h}(V_)),V_}var G_={},UE;function Uke(){return UE||(UE=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableSummaryRow=v,e.default=void 0;var r=t(ls),l=t(_a()),i=t(cf()),o=t(Cl),a=t($a()),s=m(ge),u=_b(),c=m(ds()),d=Yi(),f=t(Vr);function p(y){if(typeof WeakMap!="function")return null;var w=new WeakMap,_=new WeakMap;return(p=function(T){return T?_:w})(y)}function m(y,w){if(y&&y.__esModule)return y;if(y===null||n(y)!=="object"&&typeof y!="function")return{default:y};var _=p(w);if(_&&_.has(y))return _.get(y);var x={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in y)if(k!=="default"&&Object.prototype.hasOwnProperty.call(y,k)){var S=T?Object.getOwnPropertyDescriptor(y,k):null;S&&(S.get||S.set)?Object.defineProperty(x,k,S):x[k]=y[k]}return x.default=y,_&&_.set(y,x),x}function g(y,w){var _=Object.keys(y);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(y);w&&(x=x.filter(function(T){return Object.getOwnPropertyDescriptor(y,T).enumerable})),_.push.apply(_,x)}return _}function b(y){for(var w=1;w1&&arguments[1]!==void 0?arguments[1]:1,E=c.elementSize(b(b({},_),{},{options:T})),I=P*c.baseIconSize(b(b({},_),{},{options:T}));return s.createElement(o.default,{key:"placeholder.".concat(D),size:E,padding:"none",style:{width:I,padding:"0px 5px",boxSizing:"border-box"}})}var S=[],C=[],M=0;if(T.selection&&S.push(k(M++)),_.actions&&_.actions.filter(function(D){return D.position==="row"||typeof D=="function"}).length>0){var O=c.rowActions(_).length;T.actionsColumnIndex===-1?C.push(k(M++,O)):T.actionsColumnIndex>=0&&S.push(k(M++,O))}return _.detailPanel&&T.showDetailPanelIcon&&(T.detailPanelColumnAlignment==="right"?C.push(k(M++)):S.push(k(M++))),_.isTreeData&&S.push(k(M++)),s.createElement(r.default,null,S,(0,i.default)(w).sort(function(D,P){return D.tableData.columnOrder-P.tableData.columnOrder}).map(function(D,P){var E=x({index:D.tableData.columnOrder,column:D,columns:w}),I=D.align!==void 0?D.align:["numeric","currency"].indexOf(D.type)!==-1?"right":"left",A="",F=(0,u.getStyle)({columnDef:D,scrollWidth:0});return(0,l.default)(E)==="object"&&E!==null?(A=E.value,F=E.style):A=E,s.createElement(o.default,{key:P,style:F,align:I},A)}),C)}v.propTypes={columns:f.default.array,renderSummaryRow:f.default.func};var h=v;e.default=h}(G_)),G_}var Y_={};const Hke=Qn(Mce);var HE;function Vke(){return HE||(HE=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableToolbar=S,e.default=void 0;var r=t(Ir()),l=t($a()),i=t(fc),o=t(iu()),a=t(pc),s=t(TW),u=t(df),c=t(Hke),d=t(NM),f=t(pb),p=t(SW),m=t(hc),g=t(Tb),b=sf,v=t(Vr),h=_(ge),y=Yi();function w(P){if(typeof WeakMap!="function")return null;var E=new WeakMap,I=new WeakMap;return(w=function(F){return F?I:E})(P)}function _(P,E){if(P&&P.__esModule)return P;if(P===null||n(P)!=="object"&&typeof P!="function")return{default:P};var I=w(E);if(I&&I.has(P))return I.get(P);var A={},F=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var j in P)if(j!=="default"&&Object.prototype.hasOwnProperty.call(P,j)){var z=F?Object.getOwnPropertyDescriptor(P,j):null;z&&(z.get||z.set)?Object.defineProperty(A,j,z):A[j]=P[j]}return A.default=P,I&&I.set(P,A),A}function x(P,E){var I=Object.keys(P);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(P);E&&(A=A.filter(function(F){return Object.getOwnPropertyDescriptor(P,F).enumerable})),I.push.apply(I,A)}return I}function T(P){for(var E=1;EPe.tableData.columnOrder?1:-1}),he=O(P.data()),Se=he.map(function(Oe){return se.reduce(function(Pe,Me){var ce;return typeof Me.customExport=="function"?ce=Me.customExport(Oe):ce=P.getFieldValue(Oe,Me),Pe[Me.field]=ce,Pe},{})});return[se,Se]};function G(){return te.search?h.default.createElement(f.default,{autoFocus:te.searchAutoFocus,sx:te.searchFieldAlignment==="left"&&te.showTitle===!1?void 0:C.searchField,value:j,onChange:function(se){return H(se.target.value)},placeholder:I.searchPlaceholder,variant:te.searchFieldVariant,InputProps:{startAdornment:h.default.createElement(s.default,{position:"start"},h.default.createElement(m.default,{title:I.searchTooltip},h.default.createElement(V.Search,{fontSize:"small"}))),endAdornment:h.default.createElement(s.default,{position:"end"},h.default.createElement(u.default,{disabled:!j,onClick:function(){return H("")},"aria-label":I.clearSearchAriaLabel},h.default.createElement(V.ResetSearch,{fontSize:"small","aria-label":"clear"}))),style:te.searchFieldStyle,inputProps:{"aria-label":I.searchAriaLabel}}}):null}function X(ie){var se=ie?"toolbarOnSelect":"toolbar";return h.default.createElement("div",{style:{display:"flex"}},te.columnsButton&&!ie&&h.default.createElement("span",null,h.default.createElement(m.default,{title:I.showColumnsTitle},h.default.createElement(u.default,{color:"inherit",onClick:function(Se){return U(Se.currentTarget)},"aria-label":I.showColumnsAriaLabel},h.default.createElement(V.ViewColumn,null))),h.default.createElement(c.default,{anchorEl:W,open:!!W,onClose:function(){return U(null)}},h.default.createElement(d.default,{key:"text",disabled:!0,style:{opacity:1,fontWeight:600,fontSize:12}},I.addRemoveColumns),P.columns.map(function(he){var Se=he.hiddenByColumnsButton!==void 0?he.hiddenByColumnsButton:P.columnsHiddenInColumnsButton;return Se?null:h.default.createElement("li",{key:he.tableData.id},h.default.createElement(d.default,{sx:C.formControlLabel,component:"label",htmlFor:"column-toggle-".concat(he.tableData.id),disabled:he.removable===!1},h.default.createElement(a.default,{checked:!he.hidden,id:"column-toggle-".concat(he.tableData.id),onChange:function(){return P.onColumnsChanged(he,!he.hidden)}}),h.default.createElement("span",null,he.title)))}))),te.exportMenu.length>0&&h.default.createElement("span",null,h.default.createElement(m.default,{title:I.exportTitle},h.default.createElement(u.default,{color:"inherit",onClick:function(Se){return q(Se.currentTarget)},"aria-label":I.exportAriaLabel},h.default.createElement(V.Export,null))),h.default.createElement(c.default,{anchorEl:R,open:!!R,onClose:function(){return q(null)}},te.exportMenu.map(function(he,Se){var Oe=Z(),Pe=(0,o.default)(Oe,2),Me=Pe[0],ce=Pe[1];return h.default.createElement(d.default,{key:"".concat(he.label).concat(Se),onClick:function(){he.exportFunc(Me,ce,{searchedData:P.dataManager.searchedData,filteredData:P.dataManager.filteredData,groupedData:P.dataManager.groupedData,selectedData:ee}),q(null)}},he.label)}))),h.default.createElement("span",null,h.default.createElement(P.components.Actions,{actions:P.actions&&P.actions.filter(function(he){return he.position===se}),data:ie?ee:void 0,components:P.components})))}function Q(){return h.default.createElement(i.default,{sx:C.actions},h.default.createElement("div",null,X(ee.length>0)))}function re(ie){var se=typeof ie=="string"?h.default.createElement(g.default,{variant:"h6",style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},ie):ie;return h.default.createElement(i.default,{sx:C.title},se)}var ae=te.showTextRowsSelected&&ee.length>0?typeof I.nRowsSelected=="function"?I.nRowsSelected(ee.length):I.nRowsSelected.replace("{0}",ee.length):te.showTitle?P.title:null;return h.default.createElement(p.default,{ref:P.forwardedRef,className:P.className,sx:T(T({},C.root),te.showTextRowsSelected&&ee.length>0?C.highlight(E):{})},ae&&re(ae),te.searchFieldAlignment==="left"&&G(),te.toolbarButtonAlignment==="left"&&Q(),h.default.createElement(i.default,{sx:C.spacer}),te.searchFieldAlignment==="right"&&G(),te.toolbarButtonAlignment==="right"&&Q())}S.defaultProps={actions:[],columns:[],columnsHiddenInColumnsButton:!1,searchText:"",originalData:[],title:"No Title!"},S.propTypes={actions:v.default.array,className:v.default.string,columns:v.default.array,components:v.default.object.isRequired,getFieldValue:v.default.func.isRequired,onColumnsChanged:v.default.func.isRequired,dataManager:v.default.object.isRequired,searchText:v.default.string,onSearchChanged:v.default.func.isRequired,originalData:v.default.array,title:v.default.oneOfType([v.default.element,v.default.string]),renderData:v.default.array,data:v.default.oneOfType([v.default.array,v.default.func]),exportAllData:v.default.bool,exportMenu:v.default.arrayOf(v.default.shape({name:v.default.string,handler:v.default.func})),searchAutoFocus:v.default.bool,classes:v.default.object};var C={root:{paddingRight:1,paddingLeft:2},highlight:function(E){return E.palette.mode==="light"?{color:E.palette.secondary.main,backgroundColor:(0,b.lighten)(E.palette.secondary.light,.85)}:{color:E.palette.text.primary,backgroundColor:E.palette.secondary.dark}},spacer:{flex:"1 1 10%"},actions:{color:"text.secondary"},title:{overflow:"hidden"},searchField:{minWidth:150,paddingLeft:2},formControlLabel:{px:1}},M=h.default.forwardRef(function(E,I){return h.default.createElement(S,(0,r.default)({},E,{forwardedRef:I}))});function O(P){for(var E=P;Array.isArray((I=E)===null||I===void 0||(A=I[0])===null||A===void 0?void 0:A.data);){var I,A;E=E.map(function(F){return F.groups.length!==0?F.groups:F.data}).flat()}return E}var D=h.default.memo(M);e.default=D}(Y_)),Y_}var VE;function Db(){return VE||(VE=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Container",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"MTableAction",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"MTableActions",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"MTableBody",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"MTableBodyRow",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"MTableCell",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"MTableCustomIcon",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"MTableEditCell",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"MTableEditField",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"MTableEditRow",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"MTableFilterRow",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"MTableGroupRow",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"MTableGroupbar",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"MTableHeader",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"MTablePagination",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"MTableScrollbar",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"MTableSteppedPagination",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"MTableSummaryRow",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"MTableToolbar",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"OverlayError",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"OverlayLoading",{enumerable:!0,get:function(){return n.default}});var n=t(qpe()),r=t(Lhe()),l=t(Nhe()),i=t(jhe()),o=t(Uhe()),a=t(t2e()),s=t(n2e()),u=t(i2e()),c=t(l2e()),d=t(d2e()),f=t(h2e()),p=t(m2e()),m=t(g2e()),g=t(kW()),b=t($ke()),v=t(Nke()),h=t(zke()),y=t(Wke()),w=t(qke()),_=t(Uke()),x=t(Vke())}(Cw)),Cw}var GE;function Wq(){return GE||(GE=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Wpe),r=Db(),l={Action:r.MTableAction,Actions:r.MTableActions,Body:r.MTableBody,Cell:r.MTableCell,Container:r.Container,EditCell:r.MTableEditCell,EditField:r.MTableEditField,EditRow:r.MTableEditRow,FilterRow:r.MTableFilterRow,Groupbar:r.MTableGroupbar,GroupRow:r.MTableGroupRow,Header:r.MTableHeader,OverlayLoading:r.OverlayLoading,OverlayError:r.OverlayError,Pagination:n.default,Row:r.MTableBodyRow,SummaryRow:r.MTableSummaryRow,Toolbar:r.MTableToolbar};e.default=l}(Sw)),Sw}var YE;function Gke(){if(YE)return tp;YE=1;var e=Cn;Object.defineProperty(tp,"__esModule",{value:!0}),tp.defaultProps=void 0;var t=e(Wq()),n=e(aB()),r=e(nB()),l=e(rB()),i={actions:[],classes:{},columns:[],components:t.default,data:[],icons:n.default,isLoading:!1,title:"Table Title",options:l.default,localization:r.default,style:{}};return tp.defaultProps=i,tp}var kp={},Sp={},XE;function $5(){if(XE)return Sp;XE=1,Object.defineProperty(Sp,"__esModule",{value:!0}),Sp.ALL_COLUMNS=void 0;var e="all_columns";return Sp.ALL_COLUMNS=e,Sp}var KE;function Yke(){if(KE)return kp;KE=1;var e=Cn;Object.defineProperty(kp,"__esModule",{value:!0}),kp.propTypes=void 0;var t=e(Vr),n=$5(),r=t.default.shape({current:t.default.element}),l=t.default.shape({classes:t.default.object,innerRef:r}),i={actions:t.default.arrayOf(t.default.oneOfType([t.default.func,t.default.shape({icon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,r]).isRequired,isFreeAction:t.default.bool,position:t.default.oneOf(["auto","toolbar","toolbarOnSelect","row"]),tooltip:t.default.string,onClick:t.default.func.isRequired,onMouseEnter:t.default.func,onMouseLeave:t.default.func,iconProps:t.default.object,disabled:t.default.bool,hidden:t.default.bool}),t.default.shape({action:t.default.func,position:t.default.oneOf(["auto","toolbar","toolbarOnSelect","row"])})])),renderSummaryRow:t.default.func,columns:t.default.arrayOf(t.default.shape({cellStyle:t.default.oneOfType([t.default.object,t.default.func]),currencySetting:t.default.shape({locale:t.default.string,currencyCode:t.default.string,minimumFractionDigits:t.default.number,maximumFractionDigits:t.default.number}),ariaLabel:t.default.string,ariaSortAsc:t.default.oneOf(["ascending","descending","none","other"]),ariaSortDesc:t.default.oneOf(["ascending","descending","none","other"]),draggable:t.default.bool,customFilterAndSearch:t.default.func,customSort:t.default.func,customExport:t.default.func,defaultFilter:t.default.any,defaultSort:t.default.oneOf(["asc","desc"]),editComponent:t.default.oneOfType([t.default.element,t.default.func]),emptyValue:t.default.oneOfType([t.default.string,t.default.node,t.default.func]),export:t.default.bool,field:t.default.oneOfType([t.default.string,t.default.arrayOf(t.default.string)]),filtering:t.default.bool,filterCellStyle:t.default.object,filterPlaceholder:t.default.string,filterComponent:t.default.oneOfType([t.default.element,t.default.func]),grouping:t.default.bool,headerStyle:t.default.object,hidden:t.default.bool,hideFilterIcon:t.default.bool,initialEditValue:t.default.any,lookup:t.default.object,editable:t.default.oneOfType([t.default.func,t.default.oneOf(["always","onUpdate","onAdd","never"])]),removable:t.default.bool,render:t.default.func,searchable:t.default.bool,sorting:t.default.bool,title:t.default.oneOfType([t.default.element,t.default.string]),type:t.default.oneOf(["string","boolean","numeric","date","datetime","time","currency"])})).isRequired,components:t.default.shape({Action:t.default.oneOfType([t.default.element,t.default.func,l]),Actions:t.default.oneOfType([t.default.element,t.default.func,l]),Body:t.default.oneOfType([t.default.element,t.default.func,l]),Cell:t.default.oneOfType([t.default.element,t.default.func,l]),Container:t.default.oneOfType([t.default.element,t.default.func,l]),EditField:t.default.oneOfType([t.default.element,t.default.func,l]),EditRow:t.default.oneOfType([t.default.element,t.default.func,l]),FilterRow:t.default.oneOfType([t.default.element,t.default.func,l]),Groupbar:t.default.oneOfType([t.default.element,t.default.func,l]),GroupRow:t.default.oneOfType([t.default.element,t.default.func,l]),Header:t.default.oneOfType([t.default.element,t.default.func,l]),OverlayLoading:t.default.oneOfType([t.default.element,t.default.func,l]),OverlayError:t.default.oneOfType([t.default.element,t.default.func,l]),Pagination:t.default.oneOfType([t.default.element,t.default.func,l]),Row:t.default.oneOfType([t.default.element,t.default.func,l]),Toolbar:t.default.oneOfType([t.default.element,t.default.func,l])}),data:t.default.oneOfType([t.default.arrayOf(t.default.object),t.default.func]).isRequired,editable:t.default.shape({isEditable:t.default.func,isBulkEditable:t.default.func,isDeletable:t.default.func,onRowAdd:t.default.func,onRowUpdate:t.default.func,onRowDelete:t.default.func,onRowAddCancelled:t.default.func,onRowUpdateCancelled:t.default.func,isEditHidden:t.default.func,isDeleteHidden:t.default.func}),detailPanel:t.default.oneOfType([t.default.func,t.default.arrayOf(t.default.oneOfType([t.default.func,t.default.shape({disabled:t.default.bool,icon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,r]),openIcon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,r]),tooltip:t.default.string,render:t.default.func.isRequired})]))]),icons:t.default.shape({Add:t.default.oneOfType([t.default.element,t.default.func,r]),Check:t.default.oneOfType([t.default.element,t.default.func,r]),Clear:t.default.oneOfType([t.default.element,t.default.func,r]),Delete:t.default.oneOfType([t.default.element,t.default.func,r]),DetailPanel:t.default.oneOfType([t.default.element,t.default.func,r]),Edit:t.default.oneOfType([t.default.element,t.default.func,r]),Export:t.default.oneOfType([t.default.element,t.default.func,r]),Filter:t.default.oneOfType([t.default.element,t.default.func,r]),FirstPage:t.default.oneOfType([t.default.element,t.default.func,r]),LastPage:t.default.oneOfType([t.default.element,t.default.func,r]),NextPage:t.default.oneOfType([t.default.element,t.default.func,r]),PreviousPage:t.default.oneOfType([t.default.element,t.default.func,r]),Refresh:t.default.oneOfType([t.default.element,t.default.func,r]),ResetSearch:t.default.oneOfType([t.default.element,t.default.func,r]),Search:t.default.oneOfType([t.default.element,t.default.func,r]),SortArrow:t.default.oneOfType([t.default.element,t.default.func,r]),ThirdStateCheck:t.default.oneOfType([t.default.element,t.default.func,r]),ViewColumn:t.default.oneOfType([t.default.element,t.default.func,r])}),isLoading:t.default.bool,title:t.default.oneOfType([t.default.element,t.default.string]),options:t.default.shape({actionsCellStyle:t.default.object,editCellStyle:t.default.object,idSynonym:t.default.string,detailPanelColumnStyle:t.default.object,actionsColumnIndex:t.default.number,addRowPosition:t.default.oneOf(["first","last"]),columnsButton:t.default.bool,defaultExpanded:t.default.oneOfType([t.default.bool,t.default.func]),debounceInterval:t.default.number,detailPanelType:t.default.oneOf(["single","multiple"]),doubleHorizontalScroll:t.default.bool,emptyRowsWhenPaging:t.default.bool,exportAllData:t.default.bool,exportMenu:t.default.arrayOf(t.default.shape({label:t.default.string,exportFunc:t.default.func})),filtering:t.default.bool,filterCellStyle:t.default.object,filterRowStyle:t.default.object,header:t.default.bool,headerSelectionProps:t.default.object,headerStyle:t.default.object,hideFilterIcons:t.default.bool,initialPage:t.default.number,maxBodyHeight:t.default.oneOfType([t.default.number,t.default.string]),minBodyHeight:t.default.oneOfType([t.default.number,t.default.string]),loadingType:t.default.oneOf(["overlay","linear"]),overflowY:t.default.oneOf(["visible","hidden","scroll","auto","initial","inherit","overlay"]),padding:t.default.oneOf(["normal","dense"]),paging:t.default.bool,pageSize:t.default.number,pageSizeOptions:t.default.arrayOf(t.default.number),paginationType:t.default.oneOf(["normal","stepped"]),paginationPosition:t.default.oneOf(["bottom","top","both"]),persistentGroupingsId:t.default.string,rowStyle:t.default.oneOfType([t.default.object,t.default.func]),search:t.default.bool,searchText:t.default.string,searchDebounceDelay:t.default.number,toolbarButtonAlignment:t.default.oneOf(["left","right"]),searchFieldAlignment:t.default.oneOf(["left","right"]),searchFieldStyle:t.default.object,searchAutoFocus:t.default.bool,searchFieldVariant:t.default.oneOf(["standard","filled","outlined"]),selection:t.default.bool,selectionProps:t.default.oneOfType([t.default.object,t.default.func]),showEmptyDataSourceMessage:t.default.bool,showFirstLastPageButtons:t.default.oneOfType([t.default.object,t.default.bool]),showSelectAllCheckbox:t.default.bool,showSelectGroupCheckbox:t.default.bool,showTitle:t.default.bool,showTextRowsSelected:t.default.bool,sorting:t.default.bool,defaultOrderByCollection:t.default.arrayOf(t.default.shape({orderBy:t.default.number,orderDirection:t.default.string,sortOrder:t.default.number,orderIndex:t.default.number})),maxColumnSort:t.default.oneOf([0,1,2,3,4,5,6,7,8,9,10,n.ALL_COLUMNS]),showColumnSortOrder:t.default.bool,sortOrderIndicatorStyle:t.default.object,keepSortDirectionOnColumnSwitch:t.default.bool,clientSorting:t.default.bool,toolbar:t.default.bool,thirdSortClick:t.default.bool,numberOfPagesAround:t.default.oneOf([1,2,3,4,5,6,7,8,9,10])}),localization:t.default.shape({grouping:t.default.shape({groupedBy:t.default.string,placeholder:t.default.string}),pagination:t.default.object,toolbar:t.default.object,header:t.default.object,body:t.default.object}),initialFormData:t.default.object,onSearchChange:t.default.func,onFilterChange:t.default.func,onColumnDragged:t.default.func,onColumnResized:t.default.func,onGroupRemoved:t.default.func,onGroupChange:t.default.func,onSelectionChange:t.default.func,onRowsPerPageChange:t.default.func,onPageChange:t.default.func,onChangeColumnHidden:t.default.func,onOrderChange:t.default.func,onOrderCollectionChange:t.default.func,onRowClick:t.default.func,onRowDoubleClick:t.default.func,onTreeExpandChange:t.default.func,onQueryChange:t.default.func,onBulkEditOpen:t.default.func,tableRef:t.default.any,style:t.default.object,page:t.default.number,totalCount:t.default.number};return kp.propTypes=i,kp}var X_={};const Xke=Qn(Kue),Kke=Qn(ffe),Zke=Qn(Fde);var K_,ZE;function Qke(){if(ZE)return K_;ZE=1;function e(t,n,r){var l,i,o,a,s;n==null&&(n=100);function u(){var d=Date.now()-a;d=0?l=setTimeout(u,n-d):(l=null,r||(s=t.apply(o,i),o=i=null))}var c=function(){o=this,i=arguments,a=Date.now();var d=r&&!l;return l||(l=setTimeout(u,n)),d&&(s=t.apply(o,i),o=i=null),s};return c.clear=function(){l&&(clearTimeout(l),l=null)},c.flush=function(){l&&(s=t.apply(o,i),o=i=null,clearTimeout(l),l=null)},c}return e.debounce=e,K_=e,K_}var Z_={};const Jke=Qn(cge);var Q_={},Cp={},w0={},QE;function qq(){if(QE)return w0;QE=1,Object.defineProperty(w0,"__esModule",{value:!0}),w0.default=n;let e;const t=new Uint8Array(16);function n(){if(!e&&(e=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!e))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(t)}return w0}var Bc={},Mp={},Pp={},JE;function eSe(){if(JE)return Pp;JE=1,Object.defineProperty(Pp,"__esModule",{value:!0}),Pp.default=void 0;var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return Pp.default=e,Pp}var eR;function Eb(){if(eR)return Mp;eR=1,Object.defineProperty(Mp,"__esModule",{value:!0}),Mp.default=void 0;var e=t(eSe());function t(l){return l&&l.__esModule?l:{default:l}}function n(l){return typeof l=="string"&&e.default.test(l)}var r=n;return Mp.default=r,Mp}var tR;function Rb(){if(tR)return Bc;tR=1,Object.defineProperty(Bc,"__esModule",{value:!0}),Bc.default=void 0,Bc.unsafeStringify=r;var e=t(Eb());function t(o){return o&&o.__esModule?o:{default:o}}const n=[];for(let o=0;o<256;++o)n.push((o+256).toString(16).slice(1));function r(o,a=0){return n[o[a+0]]+n[o[a+1]]+n[o[a+2]]+n[o[a+3]]+"-"+n[o[a+4]]+n[o[a+5]]+"-"+n[o[a+6]]+n[o[a+7]]+"-"+n[o[a+8]]+n[o[a+9]]+"-"+n[o[a+10]]+n[o[a+11]]+n[o[a+12]]+n[o[a+13]]+n[o[a+14]]+n[o[a+15]]}function l(o,a=0){const s=r(o,a);if(!(0,e.default)(s))throw TypeError("Stringified UUID is invalid");return s}var i=l;return Bc.default=i,Bc}var nR;function tSe(){if(nR)return Cp;nR=1,Object.defineProperty(Cp,"__esModule",{value:!0}),Cp.default=void 0;var e=n(qq()),t=Rb();function n(u){return u&&u.__esModule?u:{default:u}}let r,l,i=0,o=0;function a(u,c,d){let f=c&&d||0;const p=c||new Array(16);u=u||{};let m=u.node||r,g=u.clockseq!==void 0?u.clockseq:l;if(m==null||g==null){const _=u.random||(u.rng||e.default)();m==null&&(m=r=[_[0]|1,_[1],_[2],_[3],_[4],_[5]]),g==null&&(g=l=(_[6]<<8|_[7])&16383)}let b=u.msecs!==void 0?u.msecs:Date.now(),v=u.nsecs!==void 0?u.nsecs:o+1;const h=b-i+(v-o)/1e4;if(h<0&&u.clockseq===void 0&&(g=g+1&16383),(h<0||b>i)&&u.nsecs===void 0&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");i=b,o=v,l=g,b+=122192928e5;const y=((b&268435455)*1e4+v)%4294967296;p[f++]=y>>>24&255,p[f++]=y>>>16&255,p[f++]=y>>>8&255,p[f++]=y&255;const w=b/4294967296*1e4&268435455;p[f++]=w>>>8&255,p[f++]=w&255,p[f++]=w>>>24&15|16,p[f++]=w>>>16&255,p[f++]=g>>>8|128,p[f++]=g&255;for(let _=0;_<6;++_)p[f+_]=m[_];return c||(0,t.unsafeStringify)(p)}var s=a;return Cp.default=s,Cp}var Op={},Ss={},Ap={},rR;function Uq(){if(rR)return Ap;rR=1,Object.defineProperty(Ap,"__esModule",{value:!0}),Ap.default=void 0;var e=t(Eb());function t(l){return l&&l.__esModule?l:{default:l}}function n(l){if(!(0,e.default)(l))throw TypeError("Invalid UUID");let i;const o=new Uint8Array(16);return o[0]=(i=parseInt(l.slice(0,8),16))>>>24,o[1]=i>>>16&255,o[2]=i>>>8&255,o[3]=i&255,o[4]=(i=parseInt(l.slice(9,13),16))>>>8,o[5]=i&255,o[6]=(i=parseInt(l.slice(14,18),16))>>>8,o[7]=i&255,o[8]=(i=parseInt(l.slice(19,23),16))>>>8,o[9]=i&255,o[10]=(i=parseInt(l.slice(24,36),16))/1099511627776&255,o[11]=i/4294967296&255,o[12]=i>>>24&255,o[13]=i>>>16&255,o[14]=i>>>8&255,o[15]=i&255,o}var r=n;return Ap.default=r,Ap}var aR;function Hq(){if(aR)return Ss;aR=1,Object.defineProperty(Ss,"__esModule",{value:!0}),Ss.URL=Ss.DNS=void 0,Ss.default=o;var e=Rb(),t=n(Uq());function n(a){return a&&a.__esModule?a:{default:a}}function r(a){a=unescape(encodeURIComponent(a));const s=[];for(let u=0;u>5]>>>v%32&255,y=parseInt(b.charAt(h>>>4&15)+b.charAt(h&15),16);m.push(y)}return m}function n(p){return(p+64>>>9<<4)+14+1}function r(p,m){p[m>>5]|=128<>5]|=(p[b/8]&255)<>16)+(m>>16)+(g>>16)<<16|g&65535}function o(p,m){return p<>>32-m}function a(p,m,g,b,v,h){return i(o(i(i(m,p),i(b,h)),v),g)}function s(p,m,g,b,v,h,y){return a(m&g|~m&b,p,m,v,h,y)}function u(p,m,g,b,v,h,y){return a(m&b|g&~b,p,m,v,h,y)}function c(p,m,g,b,v,h,y){return a(m^g^b,p,m,v,h,y)}function d(p,m,g,b,v,h,y){return a(g^(m|~b),p,m,v,h,y)}var f=e;return Dp.default=f,Dp}var iR;function rSe(){if(iR)return Op;iR=1,Object.defineProperty(Op,"__esModule",{value:!0}),Op.default=void 0;var e=n(Hq()),t=n(nSe());function n(i){return i&&i.__esModule?i:{default:i}}var l=(0,e.default)("v3",48,t.default);return Op.default=l,Op}var Ep={},Rp={},lR;function aSe(){if(lR)return Rp;lR=1,Object.defineProperty(Rp,"__esModule",{value:!0}),Rp.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return Rp.default=t,Rp}var sR;function oSe(){if(sR)return Ep;sR=1,Object.defineProperty(Ep,"__esModule",{value:!0}),Ep.default=void 0;var e=r(aSe()),t=r(qq()),n=Rb();function r(o){return o&&o.__esModule?o:{default:o}}function l(o,a,s){if(e.default.randomUUID&&!a&&!o)return e.default.randomUUID();o=o||{};const u=o.random||(o.rng||t.default)();if(u[6]=u[6]&15|64,u[8]=u[8]&63|128,a){s=s||0;for(let c=0;c<16;++c)a[s+c]=u[c];return a}return(0,n.unsafeStringify)(u)}var i=l;return Ep.default=i,Ep}var Lp={},Ip={},uR;function iSe(){if(uR)return Ip;uR=1,Object.defineProperty(Ip,"__esModule",{value:!0}),Ip.default=void 0;function e(l,i,o,a){switch(l){case 0:return i&o^~i&a;case 1:return i^o^a;case 2:return i&o^i&a^o&a;case 3:return i^o^a}}function t(l,i){return l<>>32-i}function n(l){const i=[1518500249,1859775393,2400959708,3395469782],o=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof l=="string"){const c=unescape(encodeURIComponent(l));l=[];for(let d=0;d>>0;b=g,g=m,m=t(p,30)>>>0,p=f,f=y}o[0]=o[0]+f>>>0,o[1]=o[1]+p>>>0,o[2]=o[2]+m>>>0,o[3]=o[3]+g>>>0,o[4]=o[4]+b>>>0}return[o[0]>>24&255,o[0]>>16&255,o[0]>>8&255,o[0]&255,o[1]>>24&255,o[1]>>16&255,o[1]>>8&255,o[1]&255,o[2]>>24&255,o[2]>>16&255,o[2]>>8&255,o[2]&255,o[3]>>24&255,o[3]>>16&255,o[3]>>8&255,o[3]&255,o[4]>>24&255,o[4]>>16&255,o[4]>>8&255,o[4]&255]}var r=n;return Ip.default=r,Ip}var cR;function lSe(){if(cR)return Lp;cR=1,Object.defineProperty(Lp,"__esModule",{value:!0}),Lp.default=void 0;var e=n(Hq()),t=n(iSe());function n(i){return i&&i.__esModule?i:{default:i}}var l=(0,e.default)("v5",80,t.default);return Lp.default=l,Lp}var $p={},dR;function sSe(){if(dR)return $p;dR=1,Object.defineProperty($p,"__esModule",{value:!0}),$p.default=void 0;var e="00000000-0000-0000-0000-000000000000";return $p.default=e,$p}var Np={},fR;function uSe(){if(fR)return Np;fR=1,Object.defineProperty(Np,"__esModule",{value:!0}),Np.default=void 0;var e=t(Eb());function t(l){return l&&l.__esModule?l:{default:l}}function n(l){if(!(0,e.default)(l))throw TypeError("Invalid UUID");return parseInt(l.slice(14,15),16)}var r=n;return Np.default=r,Np}var pR;function cSe(){return pR||(pR=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return o.default}});var t=c(tSe()),n=c(rSe()),r=c(oSe()),l=c(lSe()),i=c(sSe()),o=c(uSe()),a=c(Eb()),s=c(Rb()),u=c(Uq());function c(d){return d&&d.__esModule?d:{default:d}}}(Q_)),Q_}var hR;function dSe(){return hR||(hR=1,function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(cf()),r=t(db()),l=t(fb()),i=t($a()),o=t(Jke),a=cSe(),s=_b(),u=ds(),c=$5();function d(v,h){var y=Object.keys(v);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(v);h&&(w=w.filter(function(_){return Object.getOwnPropertyDescriptor(v,_).enumerable})),y.push.apply(y,w)}return y}function f(v){for(var h=1;h=v.length?{done:!0}:{done:!1,value:v[w++]}},e:function(C){throw C},f:_}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var x=!0,T=!1,k;return{s:function(){y=y.call(v)},n:function(){var C=y.next();return x=C.done,C},e:function(C){T=!0,k=C},f:function(){try{!x&&y.return!=null&&y.return()}finally{if(T)throw k}}}}function m(v,h){if(v){if(typeof v=="string")return g(v,h);var y=Object.prototype.toString.call(v).slice(8,-1);if(y==="Object"&&v.constructor&&(y=v.constructor.name),y==="Map"||y==="Set")return Array.from(v);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return g(v,h)}}function g(v,h){(h==null||h>v.length)&&(h=v.length);for(var y=0,w=new Array(h);y0?k(C.groups):C.data.forEach(function(M){M.tableData.checked!==y&&(M.tableData.checked=M.tableData.disabled?!1:y,h.selectedCount=h.selectedCount+(y?1:-1))})})};T([_])}),(0,i.default)(this,"getOrderByCollection",function(){return h.orderByCollection.filter(function(y){return y.sortOrder})}),(0,i.default)(this,"sortOrderCollection",function(y){return y.sort(function(w,_){return w.sortOrder?_.sortOrder?w.sortOrder-_.sortOrder:-1:1})}),(0,i.default)(this,"startCellEditable",function(y,w){y.tableData.editCellList=[].concat((0,n.default)(y.tableData.editCellList||[]),[w])}),(0,i.default)(this,"finishCellEditable",function(y,w){if(y.tableData.editCellList){var _=y.tableData.editCellList.findIndex(function(x){return x.tableData.id.toString()===w.tableData.id.toString()});_!==-1&&y.tableData.editCellList.splice(_,1)}}),(0,i.default)(this,"clearBulkEditChangedRows",function(){h.bulkEditChangedRows={}}),(0,i.default)(this,"onBulkEditRowChanged",function(y,w){h.bulkEditChangedRows[y.tableData.id]={oldData:y,newData:w}}),(0,i.default)(this,"expandTreeForNodes",function(y){y.forEach(function(w){for(var _=w;h.parentFunc(_,h.data);){var x=h.parentFunc(_,h.data);x&&(x.tableData.isTreeExpanded=!0),_=x}})}),(0,i.default)(this,"findDataByPath",function(y,w){if(h.isDataType("tree")){var _=w.reduce(function(k,S){return k&&k.tableData&&k.tableData.childRows&&k.tableData.childRows.find(function(C){return C&&C.tableData.uuid===S})},{tableData:{childRows:y}});return _}else{var x={groups:y},T=w.reduce(function(k,S){return k.groups.length>0?k.groups[S]:k.data?k.data[S]||k.data.find(function(C){var M;return((M=C.tableData)===null||M===void 0?void 0:M.uuid)===S}):void 0},x);return T}}),(0,i.default)(this,"getFieldValue",function(y,w){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,x=typeof y[w.field]<"u"?y[w.field]:(0,s.selectFromObject)(y,w.field);return w.lookup&&_&&(x=w.lookup[x]),x}),(0,i.default)(this,"getRenderState",function(){return h.filtered===!1&&h.filterData(),h.searched===!1&&h.searchData(),h.grouped===!1&&h.isDataType("group")&&h.groupData(),h.treefied===!1&&h.isDataType("tree")&&h.treefyData(),h.sorted===!1&&h.sortData(),h.paged===!1&&h.pageData(),{columns:h.columns,currentPage:h.currentPage,data:h.sortedData,lastEditingRow:h.lastEditingRow,orderByCollection:h.orderByCollection,maxColumnSort:h.maxColumnSort,originalData:(0,n.default)(h.data),pageSize:h.pageSize,renderData:h.pagedData,searchText:h.searchText,selectedCount:h.selectedCount,treefiedDataLength:h.treefiedDataLength,treeDataMaxLevel:h.treeDataMaxLevel,groupedDataLength:h.groupedDataLength,tableStyleWidth:h.tableStyleWidth}}),(0,i.default)(this,"filterData",function(){h.searched=h.grouped=h.treefied=h.sorted=h.paged=!1,h.filteredData=(0,n.default)(h.data),h.applyFilters&&h.columns.filter(function(y){return y.tableData.filterValue!==void 0}).forEach(function(y){var w=y.lookup,_=y.type,x=y.tableData;y.customFilterAndSearch?h.filteredData=h.filteredData.filter(function(T){return!!y.customFilterAndSearch(x.filterValue,T,y)}):w?h.filteredData=h.filteredData.filter(function(T){var k=h.getFieldValue(T,y,!1);return!x.filterValue||x.filterValue.length===0||x.filterValue.indexOf(k!=null&&k.toString())>-1}):_==="numeric"?h.filteredData=h.filteredData.filter(function(T){var k=h.getFieldValue(T,y);return k+""===x.filterValue}):_==="boolean"&&x.filterValue?h.filteredData=h.filteredData.filter(function(T){var k=h.getFieldValue(T,y);return k&&x.filterValue==="checked"||!k&&x.filterValue==="unchecked"}):["date","datetime"].includes(_)?h.filteredData=h.filteredData.filter(function(T){var k=h.getFieldValue(T,y),S=k?new Date(k):null;if(S&&S.toString()!=="Invalid Date"){var C=x.filterValue,M="",O="";return _==="date"?(M=(0,o.default)(S,"MM/dd/yyyy"),O=(0,o.default)(C,"MM/dd/yyyy")):_==="datetime"&&(M=(0,o.default)(S,"MM/dd/yyyy - HH:mm"),O=(0,o.default)(C,"MM/dd/yyyy - HH:mm")),M===O}return!0}):_==="time"?h.filteredData=h.filteredData.filter(function(T){var k=h.getFieldValue(T,y),S=k||null;if(S){var C=x.filterValue,M=(0,o.default)(C,"HH:mm");return S===M}return!0}):h.filteredData=h.filteredData.filter(function(T){var k=h.getFieldValue(T,y);return k!=null&&k.toString().toUpperCase().includes(x.filterValue.toUpperCase())})}),h.filtered=!0}),(0,i.default)(this,"searchData",function(){if(h.grouped=h.treefied=h.sorted=h.paged=!1,h.searchedData=(0,n.default)(h.filteredData),h.searchText&&h.applySearch){var y=h.searchText.trim();h.searchedData=h.searchedData.filter(function(w){return h.columns.filter(function(_){return _.searchable===void 0?!_.hidden:_.searchable}).some(function(_){if(_.customFilterAndSearch)return!!_.customFilterAndSearch(y,w,_);if(_.field){var x=h.getFieldValue(w,_);if(x)return x.toString().toUpperCase().includes(y.toUpperCase())}return!1})})}h.searched=!0}),(0,i.default)(this,"clearCriteria",function(){h.changeOrder(-1,""),h.changeSearchText("");var y=p(h.columns),w;try{for(y.s();!(w=y.n()).done;){var _=w.value;h.changeFilterValue(_.tableData.id,"")}}catch(x){y.e(x)}finally{y.f()}h.changeSearchText(""),h.changePaging(0)})}return(0,l.default)(v,[{key:"setData",value:function(y,w){var _=this;this.selectedCount=0;var x={};this.data.length!==0&&this.data[0][w]!==void 0&&(x=this.data.reduce(function(T,k){return T[k.tableData.id]=k.tableData,T},{})),this.data=y.map(function(T,k){var S=x[T[w]]||{},C=f(f({index:k,id:T[w]||k,uuid:T.uuid||(0,a.v4)()},S),T.tableData);C.checked&&_.selectedCount++;var M=f(f({},T),{},{tableData:C});return _.lastDetailPanelRow&&_.lastDetailPanelRow.tableData===S&&(_.lastDetailPanelRow=M),_.lastEditingRow&&_.lastEditingRow.tableData===S&&(_.lastEditingRow=M),M}),this.filtered=!1}},{key:"setTableWidth",value:function(y){this.tableWidth=y}},{key:"setColumns",value:function(y){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},x=0,T=[];this.columns=y.map(function(C,M){var O,D=(0,u.widthToNumber)(C.width),P=typeof C.width=="number"?C.width+"px":C.width;P&&(isNaN(D)?T.push(P):x+=D);var E=w.find(function(F){var j=F.id;return j===M}),I=(O=_[C.field])!==null&&O!==void 0?O:{},A=f(f(f(f({columnOrder:M,filterValue:C.defaultFilter,groupOrder:C.defaultGroupOrder,groupSort:C.defaultGroupSort||"asc",width:P,initialWidth:P,widthPx:isNaN(D)?void 0:D,additionalWidth:0},I),E?E.tableData:{}),C.tableData),{},{id:M});return C.tableData=A,C});var k=this.columns.filter(function(C){return C.hidden||C.columnDef&&C.columnDef.tableData&&C.columnDef.tableData.width?!1:C.width===void 0}),S=(x!==0?"".concat(x,"px"):"0px")+(T.length>0?" - "+T.join(" - "):"");k.forEach(function(C){C.tableData.width=C.tableData.initialWidth="calc((100% - ".concat(S,") / ").concat(k.length,")")}),this.tableStyleWidth=this.tableWidth==="full"||k.length>0||T.length>0?"100%":x}},{key:"setDefaultExpanded",value:function(y){this.defaultExpanded=y}},{key:"setClientSorting",value:function(y){this.clientSorting=!!y}},{key:"setMaxColumnSort",value:function(y){var w=this.columns.filter(function(_){return _.sorting!==!1}).length;y===c.ALL_COLUMNS?this.maxColumnSort=w:this.maxColumnSort=Math.min(y,w)}},{key:"setOrderByCollection",value:function(){var y=this.getOrderByCollection(),w=this.columns.map(function(_){var x=_.tableData.id,T=y.find(function(k){return k.orderBy===x});return T?f({},T):{orderBy:_.tableData.id,sortOrder:void 0,orderDirection:""}});w=this.sortOrderCollection(w),this.orderByCollection=(0,n.default)(w)}},{key:"setDefaultOrderByCollection",value:function(y){this.defaultOrderByCollection=(0,n.default)(y)}},{key:"getDefaultOrderByCollection",value:function(){return this.defaultOrderByCollection}},{key:"changeApplySearch",value:function(y){this.applySearch=y,this.searched=!1}},{key:"changeApplyFilters",value:function(y){this.applyFilters=y,this.filtered=!1}},{key:"changeApplySort",value:function(y){this.applySort=y,this.sorted=!1}},{key:"changePaging",value:function(y){this.paging=y,this.paged=!1}},{key:"changeCurrentPage",value:function(y){this.currentPage=y,this.paged=!1}},{key:"changePageSize",value:function(y){this.pageSize=y,this.paged=!1}},{key:"changeParentFunc",value:function(y){this.parentFunc=y}},{key:"changeFilterValue",value:function(y,w){var _=this.columns.find(function(x){return x.tableData.id===y});_.tableData.filterValue=w,this.filtered=!1}},{key:"changeRowSelected",value:function(y,w){var _=this,x=this.findDataByPath(this.sortedData,w);x.tableData.checked=y,this.selectedCount=this.selectedCount+(y?1:-1);var T=function k(S){S.tableData.childRows&&S.tableData.childRows.forEach(function(C){C.tableData.checked!==y&&(C.tableData.checked=y,_.selectedCount=_.selectedCount+(y?1:-1)),k(C)})};T(x),this.filtered=!1}},{key:"changeDetailPanelVisibility",value:function(y,w){var _=this.findDataByPath(this.sortedData,y);(_.tableData.showDetailPanel||"").toString()===w.toString()?_.tableData.showDetailPanel=void 0:_.tableData.showDetailPanel=w,this.detailPanelType==="single"&&this.lastDetailPanelRow&&this.lastDetailPanelRow!==_&&(this.lastDetailPanelRow.tableData.showDetailPanel=void 0),this.lastDetailPanelRow=_}},{key:"changeGroupExpand",value:function(y){var w=this.findDataByPath(this.sortedData,y);w.isExpanded=!w.isExpanded}},{key:"changeSearchText",value:function(y){this.searchText=y,this.searched=!1,this.currentPage=0}},{key:"changeSearchDebounce",value:function(y){this.searchDebounceDelay=y}},{key:"changeRowEditing",value:function(y,w){y?(y.tableData.editing=w,this.lastEditingRow&&this.lastEditingRow!==y&&(this.lastEditingRow.tableData.editing=void 0),w?this.lastEditingRow=y:this.lastEditingRow=void 0):this.lastEditingRow&&(this.lastEditingRow.tableData.editing=void 0,this.lastEditingRow=void 0)}},{key:"changeBulkEditOpen",value:function(y){this.bulkEditOpen=y}},{key:"changeAllSelected",value:function(y,w){var _=0,x=function(C){var M=w instanceof Function?w(C):{disabled:!1};return C.tableData.disabled||M.disabled?!1:y};if(this.isDataType("group")){var T=function S(C){C.forEach(function(M){M.groups.length>0?S(M.groups):M.data.forEach(function(O){O.tableData.checked=x(O),_++})})};T(this.groupedData)}else{var k=function S(C){C.tableData.childRows&&C.tableData.childRows.forEach(function(M){M.tableData.checked=x(C),S(M)})};this.searchedData.forEach(function(S){S.tableData.checked=x(S),k(S)}),_=this.searchedData.length}this.selectedCount=y?_:0}},{key:"changeColumnOrder",value:function(y,w,_){var x=[],T=this.getOrderByCollection();T.length===this.maxColumnSort&&!_?(this.orderByCollection[0].orderDirection="",this.orderByCollection[0].sortOrder=void 0,x=this.orderByCollection.map(function(k){return k.sortOrder?k.sortOrder-=1:k.orderBy===y&&w&&(k.sortOrder=T.length,k.orderDirection=w),k})):x=this.orderByCollection.map(function(k){return k.orderBy===y&&w?(k.orderDirection=w,k.sortOrder=_||T.length+1):!w&&k.orderBy===y?(k.orderDirection=w,k.sortOrder=void 0):!w&&_-1}).sort(function(q,Y){return q.tableData.groupOrder-Y.tableData.groupOrder});if(y.destination.droppableId==="groups"&&y.source.droppableId==="groups"){w=Math.min(y.destination.index,y.source.index);var x=Math.max(y.destination.index,y.source.index);if(_=_.slice(w,x+1),y.destination.index-1})&&(w="group"),y===w}},{key:"sort",value:function(y,w,_){if(_==="numeric")return y-w;if(y!==w){if(!y)return-1;if(!w)return 1}return yw?1:0}},{key:"sortList",value:function(y){if(!this.clientSorting)return y;var w=this.orderByCollection.map(function(S){return S.orderBy}),_=new Map;this.columns.forEach(function(S){var C=S.tableData.id;w.includes(C)&&_.set(C,S)});var x=this.sort,T=this.getFieldValue,k=this.orderByCollection;return y.sort(function S(C,M){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_,D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:k,P=D[0],E=P.orderBy,I=P.orderDirection,A=O.get(E),F=0;A.customSort?I==="desc"?F=A.customSort(M,C,"row",I):F=A.customSort(C,M,"row",I):(F=x(T(C,A),T(M,A),A.type),F=I.toLowerCase()==="desc"?F*-1:F);var j=F===0&&D.filter(function(z){return z.sortOrder!==void 0}).length!==1;return j?S(C,M,O,D.slice(1)):F})}},{key:"groupData",value:function(){var y=this;this.sorted=this.paged=!1,this.groupedDataLength=0;var w=(0,n.default)(this.searchedData),_=this.columns.filter(function(T){return T.tableData.groupOrder>-1}).sort(function(T,k){return T.tableData.groupOrder-k.tableData.groupOrder}),x=w.reduce(function(T,k){var S=T;return S=_.reduce(function(C,M){var O=k[M.field]||(0,s.selectFromObject)(k,M.field),D;if(C.groupsIndex[O]!==void 0&&(D=C.groups[C.groupsIndex[O]]),!D){var P=[].concat((0,n.default)(C.path||[]),[O]),E=y.findGroupByGroupPath(y.groupedData,P)||{isExpanded:typeof y.defaultExpanded=="boolean"?y.defaultExpanded:!1};D={value:O,groups:[],groupsIndex:{},data:[],isExpanded:E.isExpanded,path:P},C.groups.push(D),C.groupsIndex[O]=C.groups.length-1}return D},S),S.data.push(k),y.groupedDataLength++,T},{groups:[],groupsIndex:{}});this.groupedData=x.groups,this.grouped=!0,this.rootGroupsIndex=x.groupsIndex}},{key:"treefyData",value:function(){var y=this;this.sorted=this.paged=!1,this.data.forEach(function(k){return k.tableData.childRows=null}),this.treefiedData=[],this.treefiedDataLength=0,this.treeDataMaxLevel=0,(this.searchText||this.columns.some(function(k){return k.tableData.filterValue}))&&(this.data.forEach(function(k){k.tableData.isTreeExpanded=!1}),this.expandTreeForNodes(this.searchedData));var w=function k(S){S.tableData.markedForTreeRemove=!1;var C=y.parentFunc(S,y.data);C?(C.tableData.childRows=C.tableData.childRows||[],C.tableData.childRows.includes(S)||(C.tableData.childRows.push(S),y.treefiedDataLength++),k(C),S.tableData.path=[].concat((0,n.default)(C.tableData.path),[S.tableData.uuid]),y.treeDataMaxLevel=Math.max(y.treeDataMaxLevel,S.tableData.path.length)):y.treefiedData.includes(S)||(y.treefiedData.push(S),y.treefiedDataLength++,S.tableData.path=[S.tableData.uuid])};this.data.forEach(function(k){w(k)});var _=function(S){var C=y.treefiedData;S.tableData.path.forEach(function(M){C.tableData&&C.tableData.childRows&&(C=C.tableData.childRows),Array.isArray(C)&&(C=C.find(function(O){return O.tableData.uuid===M}))}),C.tableData.markedForTreeRemove=!0},x=function k(S){S.tableData.childRows&&S.tableData.childRows.forEach(function(C){k(C)}),S.tableData.markedForTreeRemove=!1};this.data.forEach(function(k){if(!y.searchText&&!y.columns.some(function(M){return M.tableData.filterValue})&&k.tableData.isTreeExpanded===void 0){var S=typeof y.defaultExpanded=="boolean"?y.defaultExpanded:y.defaultExpanded(k);k.tableData.isTreeExpanded=S}var C=k.tableData.isTreeExpanded;!C&&y.searchedData.indexOf(k)<0&&_(k)}),this.data.forEach(function(k){y.searchedData.indexOf(k)>-1&&x(k)});var T=function k(S){for(var C=S.length-1;C>=0;C--){var M=S[C];M.tableData.childRows&&k(M.tableData.childRows),M.tableData.markedForTreeRemove&&S.splice(C,1)}};T(this.treefiedData),this.treefiedDataLength=this.treefiedData.length,this.treefied=!0}},{key:"sortData",value:function(){var y=this;if(this.paged=!1,this.isDataType("group")){this.sortedData=(0,n.default)(this.groupedData);var w=this.columns.filter(function(S){return S.tableData.groupOrder>-1}).sort(function(S,C){return S.tableData.groupOrder-C.tableData.groupOrder}),_=function(C,M){return M.customSort?C.sort(M.tableData.groupSort==="desc"?function(O,D){return M.customSort(D.value,O.value,"group",M.tableData.groupSort)}:function(O,D){return M.customSort(O.value,D.value,"group",M.tableData.groupSort)}):C.sort(M.tableData.groupSort==="desc"?function(O,D){return y.sort(D.value,O.value,M.type)}:function(O,D){return y.sort(O.value,D.value,M.type)})};this.sortedData=_(this.sortedData,w[0]);var x=function(C){return C.reduce(function(M,O){return M[O.value]=C.findIndex(function(D){return D.value===O.value}),M},{})},T=function S(C,M){C.forEach(function(O){if(O.groups.length>0){var D=w[M];O.groups=_(O.groups,D),O.groupsIndex=x(O.groups),S(O.groups,M+1)}else y.maxColumnSort>0&&y.getOrderByCollection().length>0?O.data=y.sortList(O.data):y.maxColumnSort>0&&(O.data=O.data.sort(function(P,E){return y.data.findIndex(function(I){return I.tableData.id===P.tableData.id})-y.data.findIndex(function(I){return I.tableData.id===E.tableData.id})}))})};T(this.sortedData,1)}else if(this.isDataType("tree")){if(this.sortedData=(0,n.default)(this.treefiedData),this.maxColumnSort>0&&this.getOrderByCollection().length>0){this.sortedData=this.sortList(this.sortedData);var k=function S(C){C.forEach(function(M){M.tableData.childRows&&(M.tableData.childRows=y.sortList(M.tableData.childRows),S(M.tableData.childRows))})};k(this.sortedData)}}else this.isDataType("normal")&&(this.sortedData=(0,n.default)(this.searchedData),this.maxColumnSort>0&&this.getOrderByCollection().length>0&&this.applySort&&(this.sortedData=this.sortList(this.sortedData)));this.sorted=!0}},{key:"pageData",value:function(){if(this.pagedData=(0,n.default)(this.sortedData),this.paging){var y=this.currentPage*this.pageSize,w=y+this.pageSize;this.pagedData=this.pagedData.slice(y,w)}this.paged=!0}}]),v}();e.default=b}(Z_)),Z_}var mR;function fSe(){return mR||(mR=1,function(e){var t=Cn,n=_a();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Xke),l=t(Kke),i=t(ls),o=t(Ir()),a=t(fc),s=t(cf()),u=t(Zke),c=t(_a()),d=t(iu()),f=t(db()),p=t(fb()),m=t(LM()),g=t(RM()),b=t(IM()),v=t($M()),h=t($a()),y=t(ge),w=Qke(),_=t(tB()),x=M(ds()),T=I5,k=t(dSe()),S=Db();function C(j){if(typeof WeakMap!="function")return null;var z=new WeakMap,B=new WeakMap;return(C=function(R){return R?B:z})(j)}function M(j,z){if(j&&j.__esModule)return j;if(j===null||n(j)!=="object"&&typeof j!="function")return{default:j};var B=C(z);if(B&&B.has(j))return B.get(j);var N={},R=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var q in j)if(q!=="default"&&Object.prototype.hasOwnProperty.call(j,q)){var Y=R?Object.getOwnPropertyDescriptor(j,q):null;Y&&(Y.get||Y.set)?Object.defineProperty(N,q,Y):N[q]=j[q]}return N.default=j,B&&B.set(j,N),N}function O(j,z){var B=Object.keys(j);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(j);z&&(N=N.filter(function(R){return Object.getOwnPropertyDescriptor(j,R).enumerable})),B.push.apply(B,N)}return B}function D(j){for(var z=1;z"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var I=function(j){(0,g.default)(B,j);var z=P(B);function B(N){var R;(0,f.default)(this,B),R=z.call(this,N),(0,h.default)((0,m.default)(R),"dataManager",new k.default),(0,h.default)((0,m.default)(R),"checkedForFunctions",!1),(0,h.default)((0,m.default)(R),"clearCriteria",function(){R.dataManager.clearCriteria(),R.setState(R.dataManager.getRenderState())}),(0,h.default)((0,m.default)(R),"isRemoteData",function(L){return!Array.isArray((L||R.props).data)}),(0,h.default)((0,m.default)(R),"onAllSelected",function(L){R.dataManager.changeAllSelected(L,R.props.options.selectionProps),R.setState(R.dataManager.getRenderState(),function(){return R.onSelectionChange()})}),(0,h.default)((0,m.default)(R),"onGroupSelected",function(L,W){R.dataManager.changeGroupSelected(L,W),R.setState(R.dataManager.getRenderState(),function(){return R.onSelectionChange()})}),(0,h.default)((0,m.default)(R),"onChangeColumnHidden",function(L,W){R.dataManager.changeColumnHidden(L,W),R.setState(R.dataManager.getRenderState(),function(){R.props.onChangeColumnHidden&&R.props.onChangeColumnHidden(L,W)})}),(0,h.default)((0,m.default)(R),"onChangeGroupOrder",function(L){R.dataManager.changeGroupOrder(L.tableData.id),R.setState(R.dataManager.getRenderState())}),(0,h.default)((0,m.default)(R),"onChangeOrder",function(L,W,U){R.dataManager.changeColumnOrder(L,W,U);var V=R.dataManager.getOrderByCollection();if(R.isRemoteData()){var te=D({},R.state.query);te.page=0,te.orderBy=R.state.columns.find(function(ee){return ee.tableData.id===L}),te.orderDirection=W,console.warn("Properties orderBy and orderDirection had been deprecated when remote data, please start using orderByCollection instead"),te.orderByCollection=V,R.onQueryChange(te,function(){R.props.onOrderChange&&R.props.onOrderChange(L,W),R.props.onOrderCollectionChange&&R.props.onOrderCollectionChange(V)})}else R.setState(R.dataManager.getRenderState(),function(){R.props.onOrderChange&&R.props.onOrderChange(L,W),R.props.onOrderCollectionChange&&R.props.onOrderCollectionChange(V)})}),(0,h.default)((0,m.default)(R),"onPageChange",function(L,W){if(R.isRemoteData()){var U=D({},R.state.query);U.page=W,R.onQueryChange(U,function(){R.props.onPageChange&&R.props.onPageChange(W,U.pageSize)})}else R.dataManager.changeCurrentPage(W),R.setState(R.dataManager.getRenderState(),function(){R.props.onPageChange&&R.props.onPageChange(W,R.state.pageSize)})}),(0,h.default)((0,m.default)(R),"onRowsPerPageChange",function(L){var W=L.target.value;R.dataManager.changePageSize(W);var U=function(){R.props.onPageChange&&R.props.onPageChange(0,W),R.props.onRowsPerPageChange&&R.props.onRowsPerPageChange(W)};if(R.isRemoteData()){var V=D({},R.state.query);V.pageSize=L.target.value,V.page=0,R.onQueryChange(V,U)}else R.dataManager.changeCurrentPage(0),R.setState(R.dataManager.getRenderState(),U)}),(0,h.default)((0,m.default)(R),"onDragEnd",function(L){!L||!L.source||!L.destination||(R.dataManager.changeByDrag(L),R.setState(R.dataManager.getRenderState(),function(){R.props.onColumnDragged&&L.destination.droppableId==="headers"&&L.source.droppableId==="headers"&&R.props.onColumnDragged(L.source.index,L.destination.index)}))}),(0,h.default)((0,m.default)(R),"onGroupExpandChanged",function(L){R.dataManager.changeGroupExpand(L),R.setState(R.dataManager.getRenderState())}),(0,h.default)((0,m.default)(R),"onGroupRemoved",function(L,W){var U={combine:null,destination:{droppableId:"headers",index:0},draggableId:L.tableData.id,mode:"FLUID",reason:"DROP",source:{index:W,droppableId:"groups"},type:"DEFAULT"};R.dataManager.changeByDrag(U),R.setState(R.dataManager.getRenderState(),function(){R.props.onGroupRemoved&&R.props.onGroupRemoved(L,W)})}),(0,h.default)((0,m.default)(R),"onEditingApproved",function(L,W,U){L==="add"&&R.props.editable&&R.props.editable.onRowAdd?R.setState({isLoading:!0},function(){R.props.editable.onRowAdd(W).then(function(V){R.setState({isLoading:!1,showAddRow:!1},function(){R.isRemoteData()&&R.onQueryChange(R.state.query)})}).catch(function(V){var te={message:V,errorCause:"add"};R.setState({isLoading:!1,errorState:te})})}):L==="update"&&R.props.editable&&R.props.editable.onRowUpdate?R.setState({isLoading:!0},function(){R.props.editable.onRowUpdate(W,U).then(function(V){R.dataManager.changeRowEditing(U),R.setState(D({isLoading:!1},R.dataManager.getRenderState()),function(){R.isRemoteData()&&R.onQueryChange(R.state.query)})}).catch(function(V){var te={message:V,errorCause:"update"};R.setState({isLoading:!1,errorState:te})})}):L==="delete"&&R.props.editable&&R.props.editable.onRowDelete?R.setState({isLoading:!0},function(){R.props.editable.onRowDelete(Object.entries(U).reduce(function(V,te){var ee=(0,d.default)(te,2),H=ee[0],Z=ee[1];return H!=="tableData"&&(V[H]=Z),V},{})).then(function(V){R.dataManager.changeRowEditing(U),R.setState(D({isLoading:!1},R.dataManager.getRenderState()),function(){R.isRemoteData()&&R.onQueryChange(R.state.query)})}).catch(function(V){var te={message:V,errorCause:"delete"};R.setState({isLoading:!1,errorState:te})})}):L==="bulk"&&R.props.editable&&R.props.editable.onBulkUpdate&&R.setState({isLoading:!0},function(){R.props.editable.onBulkUpdate(R.dataManager.bulkEditChangedRows).then(function(V){R.dataManager.changeBulkEditOpen(!1),R.props.onBulkEditOpen&&R.props.onBulkEditOpen(!1),R.dataManager.clearBulkEditChangedRows(),R.setState(D({isLoading:!1},R.dataManager.getRenderState()),function(){R.isRemoteData()&&R.onQueryChange(R.state.query)})}).catch(function(V){var te={message:V,errorCause:"bulk edit"};R.setState({isLoading:!1,errorState:te})})})}),(0,h.default)((0,m.default)(R),"onEditingCanceled",function(L,W){L==="add"?(R.props.editable.onRowAddCancelled&&R.props.editable.onRowAddCancelled(),R.setState({showAddRow:!1})):L==="update"?(R.props.editable.onRowUpdateCancelled&&R.props.editable.onRowUpdateCancelled(),R.dataManager.changeRowEditing(W),R.setState(R.dataManager.getRenderState())):L==="delete"&&(R.dataManager.changeRowEditing(W),R.setState(R.dataManager.getRenderState()))}),(0,h.default)((0,m.default)(R),"retry",function(){R.onQueryChange(R.state.query)}),(0,h.default)((0,m.default)(R),"onQueryChange",function(L,W){L=D(D(D({},R.state.query),L),{},{error:R.state.errorState}),R.setState({isLoading:!0,errorState:void 0},function(){R.props.data(L).then(function(U){L.totalCount=U.totalCount,L.page=U.page;var V=D(D({},L),{},{totalCount:U.totalCount,page:U.page});R.dataManager.setData(U.data,R.props.options.idSynonym),R.setState(D(D({isLoading:!1,errorState:!1},R.dataManager.getRenderState()),{},{query:V}),function(){W&&W()})}).catch(function(U){var V={message:(0,c.default)(U)==="object"?U.message:U!==void 0?U:R.props.localization.error,errorCause:"query"};R.setState(D({isLoading:!1,errorState:V},R.dataManager.getRenderState()))})})}),(0,h.default)((0,m.default)(R),"onRowSelected",function(L,W,U){R.dataManager.changeRowSelected(L.target.checked,W),R.setState(R.dataManager.getRenderState(),function(){return R.onSelectionChange(U)})}),(0,h.default)((0,m.default)(R),"onSelectionChange",function(L){if(R.props.onSelectionChange){var W=[],U=function(te){te.forEach(function(ee){ee.tableData.checked&&W.push(ee)})};U(R.state.originalData),R.props.onSelectionChange(W,L)}}),(0,h.default)((0,m.default)(R),"onSearchChangeDebounce",(0,w.debounce)(function(L){if(R.isRemoteData()){var W=D({},R.state.query);W.page=0,W.search=L,R.onQueryChange(W,function(){R.props.onSearchChange&&R.props.onSearchChange(L)})}else R.setState(R.dataManager.getRenderState(),function(){R.props.onSearchChange&&R.props.onSearchChange(L)})},R.props.options.debounceInterval)),(0,h.default)((0,m.default)(R),"onFilterChange",function(L,W){R.dataManager.changeFilterValue(L,W),R.setState({},R.onFilterChangeDebounce)}),(0,h.default)((0,m.default)(R),"onFilterChangeDebounce",(0,w.debounce)(function(){if(R.isRemoteData()){var L=D({},R.state.query);L.page=0,L.filters=R.state.columns.filter(function(W){return W.tableData.filterValue}).map(function(W){return{column:W,operator:"=",value:W.tableData.filterValue}}),R.onQueryChange(L,function(){R.props.onFilterChange&&R.props.onFilterChange(L.filters)})}else R.setState(R.dataManager.getRenderState(),function(){if(R.props.onFilterChange){var W=R.state.columns.filter(function(U){return U.tableData.filterValue}).map(function(U){return{column:U,operator:"=",value:U.tableData.filterValue}});R.props.onFilterChange(W)}})},R.props.options.debounceInterval)),(0,h.default)((0,m.default)(R),"onTreeExpandChanged",function(L,W){R.dataManager.changeTreeExpand(L),R.setState(R.dataManager.getRenderState(),function(){R.props.onTreeExpandChange&&R.props.onTreeExpandChange(W,W.tableData.isTreeExpanded)})}),(0,h.default)((0,m.default)(R),"onToggleDetailPanel",function(L,W){R.dataManager.changeDetailPanelVisibility(L,W),R.setState(R.dataManager.getRenderState())}),(0,h.default)((0,m.default)(R),"onCellEditStarted",function(L,W){R.dataManager.startCellEditable(L,W),R.setState(R.dataManager.getRenderState())}),(0,h.default)((0,m.default)(R),"onCellEditFinished",function(L,W){R.dataManager.finishCellEditable(L,W),R.setState(R.dataManager.getRenderState())}),(0,h.default)((0,m.default)(R),"onEditRowDataChanged",function(L,W){R.dataManager.setEditRowData(L,W),R.setState(R.dataManager.getRenderState())}),(0,h.default)((0,m.default)(R),"onColumnResized",function(L,W,U,V){var te=function(Z){return D(D(D({field:Z.field,width:Z.tableData.width,widthPx:Z.tableData.widthPx},Z.id&&{id:Z.id}),Z.minWidth&&{minWidth:Z.minWidth}),Z.maxWidth&&{maxWidth:Z.maxWidth})},ee=R.dataManager.onColumnResized(L,W,U,V);R.setState(R.dataManager.getRenderState(),function(){W===0&&R.props.onColumnResized&&ee.length>0&&R.props.onColumnResized(ee.map(function(H){return te(H)}),R.state.columns.map(function(H){return te(H)}))})}),(0,h.default)((0,m.default)(R),"renderTable",function(L){var W;return y.default.createElement(u.default,{sx:L.sx,style:D(D({},L.options.tableWidth==="variable"&&{width:R.state.tableStyleWidth}),{},{tableLayout:L.options.fixedColumns&&(L.options.fixedColumns.left||L.options.fixedColumns.right)?"fixed":L.options.tableLayout})},L.options.header&&y.default.createElement(L.components.Header,{actions:R.state.actions,columns:R.state.columns,selectedCount:R.state.selectedCount,dataCount:L.parentChildData?R.dataManager.searchedData.length:R.state.columns.some(function(U){return U.tableData.groupOrder>-1})?R.state.groupedDataLength:R.state.data.length,hasDetailPanel:!!L.detailPanel,showActionsColumn:!R.dataManager.bulkEditOpen&&R.state.actions&&R.state.actions.some(function(U){return U.position==="row"||typeof U=="function"}),onAllSelected:R.onAllSelected,onOrderChange:R.onChangeOrder,isTreeData:R.props.parentChildData!==void 0,treeDataMaxLevel:R.state.treeDataMaxLevel,onColumnResized:R.onColumnResized,scrollWidth:R.state.width,sorting:L.options.sorting||R.dataManager.maxColumnSort!==0,allowSorting:R.dataManager.maxColumnSort!==0,orderByCollection:R.dataManager.getOrderByCollection(),tableWidth:(W=L.options.tableWidth)!==null&&W!==void 0?W:"full"}),y.default.createElement(L.components.Body,{actions:R.state.actions,components:R.props.components,renderData:R.state.renderData,data:R.state.data,renderSummaryRow:R.props.renderSummaryRow,currentPage:R.isRemoteData()?0:R.state.currentPage,initialFormData:L.initialFormData,pageSize:R.state.pageSize,columns:R.state.columns,errorState:R.state.errorState,detailPanel:L.detailPanel,options:L.options,getFieldValue:R.dataManager.getFieldValue,isTreeData:R.props.parentChildData!==void 0,onFilterChanged:R.onFilterChange,onRowSelected:R.onRowSelected,onGroupSelected:R.onGroupSelected,onToggleDetailPanel:R.onToggleDetailPanel,onGroupExpandChanged:R.onGroupExpandChanged,onTreeExpandChanged:R.onTreeExpandChanged,onEditingCanceled:R.onEditingCanceled,onEditingApproved:R.onEditingApproved,onRowClick:R.props.onRowClick,onRowDoubleClick:R.props.onRowDoubleClick,showAddRow:R.state.showAddRow,hasAnyEditingRow:!!(R.state.lastEditingRow||R.state.showAddRow),hasDetailPanel:!!L.detailPanel,treeDataMaxLevel:R.state.treeDataMaxLevel,cellEditable:L.cellEditable,onCellEditStarted:R.onCellEditStarted,onCellEditFinished:R.onCellEditFinished,onRowEditStarted:R.onRowEditStarted,bulkEditOpen:R.dataManager.bulkEditOpen,bulkEditChangedRows:R.dataManager.bulkEditChangedRows,onBulkEditRowChanged:R.dataManager.onBulkEditRowChanged,scrollWidth:R.state.width}))}),(0,h.default)((0,m.default)(R),"onRowEditStarted",function(L){var W;(W=R.props.editable)!==null&&W!==void 0&&W.onRowUpdate&&(R.dataManager.changeRowEditing(L,"update"),R.setState(D(D({},R.dataManager.getRenderState()),{},{showAddRow:!1})))}),(0,h.default)((0,m.default)(R),"getColumnsWidth",function(L,W){var U=[],V=x.actionsColumnWidth(L);if(V>0&&(W>0&&L.options.actionsColumnIndex>=0&&L.options.actionsColumnIndex=W)&&U.push(V+"px"),L.options.selection&&W>0){var te=x.selectionMaxWidth(L,R.state.treeDataMaxLevel);U.push(te+"px")}for(var ee=0;ee=0?ee:R.state.columns.length-1-ee];H.tableData&&(typeof H.tableData.width=="number"?U.push(H.tableData.width+"px"):U.push(H.tableData.width))}return"calc("+U.join(" + ")+")"}),(0,h.default)((0,m.default)(R),"getRenderData",function(){return R.props.options.exportAllData?R.state.data:R.state.renderData});var q=R.getProps(N);R.setDataManagerFields(q,!0);var Y=R.dataManager.getRenderState();return R.state=D(D({data:[],errorState:void 0},Y),{},{query:{filters:Y.columns.filter(function(L){return L.tableData.filterValue}).map(function(L){return{column:L,operator:"=",value:L.tableData.filterValue}}),orderBy:Y.columns.find(function(L){return L.tableData.id===Y.orderBy}),orderDirection:Y.orderDirection,orderByCollection:Y.orderByCollection,page:0,pageSize:q.options.pageSize,search:Y.searchText,totalCount:0},showAddRow:!1,bulkEditOpen:!1,width:0,tableInitialWidthPx:void 0,tableStyleWidth:"100%",actions:q.actions}),R.tableContainerDiv=y.default.createRef(),R}return(0,p.default)(B,[{key:"componentDidMount",value:function(){var R=this;this.setState(D(D({},this.dataManager.getRenderState()),{},{width:this.tableContainerDiv.current.scrollWidth}),function(){R.isRemoteData()&&R.onQueryChange(D(D({},R.state.query),{},{page:R.props.options.initialPage||0})),R.props.onDoubleRowClick!==void 0&&console.warn("Property `onDoubleRowClick` has been renamed to `onRowDoubleClick`"),R.props.options.sorting!==void 0&&console.warn("Property `sorting` has been deprecated, please start using `maxColumnSort` instead. https://github.com/material-table-core/core/pull/619")})}},{key:"setDataManagerFields",value:function(R,q,Y){var L,W=this,U={};if(R.options.persistentGroupingsId&&localStorage){var V=localStorage.getItem("material-table-groupings");V&&(V=JSON.parse(V),V[R.options.persistentGroupingsId]&&V[R.options.persistentGroupingsId].forEach(function(Se){U[Se.field]={groupOrder:Se.groupOrder,groupSort:Se.groupSort,columnOrder:Se.columnOrder}}))}this.dataManager.setTableWidth((L=R.options.tableWidth)!==null&&L!==void 0?L:"full"),this.dataManager.setColumns(R.columns,Y,U),this.dataManager.setDefaultExpanded(R.options.defaultExpanded),this.dataManager.changeRowEditing();var te=R.options,ee=te.clientSorting,H=te.grouping,Z=te.maxColumnSort;this.dataManager.setClientSorting(ee),this.dataManager.setMaxColumnSort(H?1:Z),this.dataManager.setOrderByCollection(),this.isRemoteData(R)?(this.dataManager.changeApplySearch(!1),this.dataManager.changeApplyFilters(!1),this.dataManager.changeApplySort(!1)):(this.dataManager.changeApplySearch(!0),this.dataManager.changeApplyFilters(!0),this.dataManager.changeApplySort(!0),this.dataManager.setData(R.data,R.options.idSynonym));var G=this.dataManager.getDefaultOrderByCollection(),X=R.options.defaultOrderByCollection,Q=[],re="",ae="";if(X&&X.length>0)Q=(0,s.default)(X).slice(0,Z),Q=this.dataManager.sortOrderCollection(Q),re=JSON.stringify(Q),ae=JSON.stringify(G),re!==ae&&this.dataManager.setDefaultOrderByCollection(Q);else{var ie=A(R.columns,Y,this.dataManager.maxColumnSort);Q=(0,s.default)(ie[0]),re=JSON.stringify(Q),ae=JSON.stringify((0,s.default)(ie[1]))}var se=JSON.stringify(this.dataManager.orderByCollection),he=q||!this.isRemoteData()&&Q.length&&re!==ae&&re!==se;he&&Q.length>0&&Z>0&&Q.forEach(function(Se){var Oe=Se.orderBy,Pe=Se.orderDirection,Me=Se.sortOrder;return W.dataManager.changeColumnOrder(Oe,Pe,Me)}),q&&this.dataManager.changeSearchText(R.options.searchText||""),q&&this.dataManager.changeSearchDebounce(R.options.searchDebounceDelay),q&&this.dataManager.changeCurrentPage(R.options.initialPage?R.options.initialPage:0),q&&this.dataManager.changePageSize(R.options.pageSize),this.dataManager.changePaging(this.isRemoteData()?!1:R.options.paging),q&&this.dataManager.changeParentFunc(R.parentChildData),this.dataManager.changeDetailPanelType(R.options.detailPanelType)}},{key:"cleanColumns",value:function(R){return R.map(function(q){var Y=D({},q);return delete Y.tableData,Y})}},{key:"componentDidUpdate",value:function(R){var q=this.cleanColumns(R.columns),Y=this.cleanColumns(this.props.columns),L=!(0,_.default)(q,Y),W=L||!(0,_.default)(R.options,this.props.options);if(this.isRemoteData()||(W=W||!(0,_.default)(R.data,this.props.data)),R.options.pageSize!==this.props.options.pageSize&&this.dataManager.changePageSize(this.props.options.pageSize),W){var U=this.getProps(this.props);this.setDataManagerFields(U,!1,R.columns),this.setState(D(D({},this.dataManager.getRenderState()),{},{actions:U.actions}))}var V=this.isRemoteData()?this.state.query.totalCount:this.state.data.length,te=this.isRemoteData()?this.state.query.page:this.state.currentPage,ee=this.isRemoteData()?this.state.query.pageSize:this.state.pageSize;V<=ee*te&&te!==0&&!this.state.isLoading&&this.onPageChange(null,Math.max(0,Math.ceil(V/ee)-1))}},{key:"getProps",value:function(R){var q=this,Y=D({},R||this.props),L=this.props.localization.body;if(Y.options.selection?Y.actions=Y.actions.filter(function(U){return U}).map(function(U){return U.position==="auto"||U.isFreeAction===!1||U.position===void 0&&U.isFreeAction===void 0?typeof U=="function"?{action:U,position:"toolbarOnSelect"}:D(D({},U),{},{position:"toolbarOnSelect"}):U.isFreeAction?typeof U=="function"?{action:U,position:"toolbar"}:D(D({},U),{},{position:"toolbar"}):U}):Y.actions=Y.actions.filter(function(U){return U}).map(function(U){return U.position==="auto"||U.isFreeAction===!1||U.position===void 0&&U.isFreeAction===void 0?typeof U=="function"?{action:U,position:"row"}:D(D({},U),{},{position:"row"}):U.isFreeAction?typeof U=="function"?{action:U,position:"toolbar"}:D(D({},U),{},{position:"toolbar"}):U}),Y.editable){var W;Y.editable.onRowAdd&&Y.actions.push({icon:Y.icons.Add,tooltip:L.addTooltip,position:"toolbar",disabled:!!this.dataManager.lastEditingRow,onClick:function(){q.dataManager.changeRowEditing(),q.state.showAddRow&&q.props.editable.onRowAddCancelled&&q.props.editable.onRowAddCancelled(),q.setState(D(D({},q.dataManager.getRenderState()),{},{showAddRow:!q.state.showAddRow}))}}),Y.editable.onRowUpdate&&Y.actions.push(function(U){return{icon:Y.icons.Edit,tooltip:Y.editable.editTooltip?Y.editable.editTooltip(U):L.editTooltip,disabled:Y.editable.isEditable&&!Y.editable.isEditable(U),hidden:Y.editable.isEditHidden&&Y.editable.isEditHidden(U),onClick:function(te,ee){q.onRowEditStarted(ee)}}}),Y.editable.onRowDelete&&Y.actions.push(function(U){return{icon:Y.icons.Delete,tooltip:Y.editable.deleteTooltip?Y.editable.deleteTooltip(U):L.deleteTooltip,disabled:Y.editable.isDeletable&&!Y.editable.isDeletable(U),hidden:Y.editable.isDeleteHidden&&Y.editable.isDeleteHidden(U),onClick:function(te,ee){q.dataManager.changeRowEditing(ee,"delete"),q.setState(D(D({},q.dataManager.getRenderState()),{},{showAddRow:!1}))}}}),Y.editable.onBulkUpdate&&(Y.actions.push({icon:Y.icons.Edit,tooltip:L.bulkEditTooltip,position:"toolbar",hidden:this.dataManager.bulkEditOpen,disabled:Y.isBulkEditable&&Y.isBulkEditable(),onClick:function(){q.dataManager.changeBulkEditOpen(!0),q.props.onBulkEditOpen&&q.props.onBulkEditOpen(!0),q.setState(q.dataManager.getRenderState())}}),Y.actions.push({icon:Y.icons.Check,tooltip:L.bulkEditApprove,position:"toolbar",hidden:!this.dataManager.bulkEditOpen,onClick:function(){return q.onEditingApproved("bulk")}}),Y.actions.push({icon:Y.icons.Clear,tooltip:L.bulkEditCancel,position:"toolbar",hidden:!this.dataManager.bulkEditOpen,onClick:function(){q.dataManager.changeBulkEditOpen(!1),q.props.onBulkEditOpen&&q.props.onBulkEditOpen(!1),q.dataManager.clearBulkEditChangedRows(),q.setState(q.dataManager.getRenderState())}})),(W=this.state)!==null&&W!==void 0&&W.showAddRow&&Y.editable.onRowAdd&&Y.actions.filter(function(U){return U.position==="row"}).length===0&&Y.actions.push({icon:void 0,position:"row",onClick:function(){},disabled:!0})}return Y}},{key:"renderFooter",value:function(){var R=this.getProps();if(R.options.paging){var q=this.isRemoteData()?Math.min(R.page,Math.floor(R.totalCount/this.state.pageSize)):this.state.currentPage,Y=this.isRemoteData()?R.totalCount:this.state.data.length;return y.default.createElement(u.default,null,y.default.createElement(l.default,{style:{display:"grid"}},y.default.createElement(i.default,{style:{display:"grid"}},y.default.createElement(R.components.Pagination,{sx:{display:"flex",justifyContent:R.options.paginationAlignment?R.options.paginationAlignment:"flex-end",overflowX:"auto","& .MuiTablePagination-displayedRows":{display:"none"}},colSpan:3,count:this.isRemoteData()?this.state.query.totalCount:Y,rowsPerPage:this.state.pageSize,rowsPerPageOptions:R.options.pageSizeOptions,SelectProps:{renderValue:function(W){return y.default.createElement(a.default,{sx:{padding:"0px 5px"}},W+" "+R.localization.pagination.labelRows+" ")}},page:this.isRemoteData()?this.state.query.page:q,onPageChange:this.onPageChange,onRowsPerPageChange:this.onRowsPerPageChange,ActionsComponent:function(W){return R.options.paginationType==="normal"?y.default.createElement(S.MTablePagination,(0,o.default)({},W,{showFirstLastPageButtons:R.options.showFirstLastPageButtons})):y.default.createElement(S.MTableSteppedPagination,(0,o.default)({},W,{showFirstLastPageButtons:R.options.showFirstLastPageButtons,numberOfPagesAround:R.options.numberOfPagesAround}))},labelRowsPerPage:R.localization.pagination.labelRowsPerPage}))))}}},{key:"render",value:function(){var R=this,q=this.getProps();return y.default.createElement(T.DragDropContext,{onDragEnd:this.onDragEnd,nonce:q.options.cspNonce},y.default.createElement(this.props.components.Container,{style:D({position:"relative"},q.style)},q.options.paginationPosition==="top"||q.options.paginationPosition==="both"?this.renderFooter():null,q.options.toolbar&&y.default.createElement(this.props.components.Toolbar,{actions:q.actions,components:this.props.components,originalData:this.state.originalData,columns:this.state.columns,selectedCount:this.state.selectedCount,getFieldValue:this.dataManager.getFieldValue,data:this.getRenderData,title:q.title,searchText:this.dataManager.searchText,searchDebounceDelay:this.dataManager.searchDebounceDelay,onSearchChanged:this.onSearchChangeDebounce,isRemoteData:this.isRemoteData(),dataManager:this.dataManager,onColumnsChanged:this.onChangeColumnHidden}),q.options.grouping&&y.default.createElement(this.props.components.Groupbar,{groupColumns:this.state.columns.filter(function(Y){return Y.tableData.groupOrder>-1}).sort(function(Y,L){return Y.tableData.groupOrder-L.tableData.groupOrder}),onSortChanged:this.onChangeGroupOrder,onGroupRemoved:this.onGroupRemoved,onGroupChange:this.props.onGroupChange,persistentGroupingsId:q.options.persistentGroupingsId}),y.default.createElement(S.MTableScrollbar,{double:q.options.doubleHorizontalScroll},y.default.createElement(T.Droppable,{droppableId:"headers",direction:"horizontal"},function(Y,L){var W=R.renderTable(q);return y.default.createElement("div",{ref:Y.innerRef},y.default.createElement("div",{ref:R.tableContainerDiv,style:{maxHeight:q.options.maxBodyHeight,minHeight:q.options.minBodyHeight,overflowY:q.options.overflowY}},R.state.width&&q.options.fixedColumns&&q.options.fixedColumns.right?y.default.createElement("div",{style:{width:R.getColumnsWidth(q,-1*q.options.fixedColumns.right),position:"absolute",top:0,right:0,boxShadow:"-2px 0px 15px rgba(125,147,178,.25)",overflowX:"clip",zIndex:11}},y.default.createElement("div",{style:{width:R.state.width,background:"white",transform:"translateX(calc(".concat(R.getColumnsWidth(q,-1*q.options.fixedColumns.right)," - 100%))")}},W)):null,y.default.createElement("div",null,W),R.state.width&&q.options.fixedColumns&&q.options.fixedColumns.left?y.default.createElement("div",{style:{width:R.getColumnsWidth(q,q.options.fixedColumns.left),position:"absolute",top:0,left:0,boxShadow:"2px 0px 15px rgba(125,147,178,.25)",overflowX:"clip",zIndex:11}},y.default.createElement("div",{style:{width:R.state.width,background:"white"},onKeyDown:function(V){V.key==="Tab"&&V.preventDefault()}},W)):null),Y.placeholder)})),(this.state.isLoading||q.isLoading)&&q.options.loadingType==="linear"&&y.default.createElement("div",{style:{position:"relative",width:"100%"}},y.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%"}},y.default.createElement(r.default,null))),q.options.paginationPosition==="bottom"||q.options.paginationPosition==="both"?this.renderFooter():null,(this.state.isLoading||q.isLoading)&&q.options.loadingType==="overlay"&&y.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%",zIndex:11}},y.default.createElement(this.props.components.OverlayLoading,{theme:q.theme})),this.state.errorState&&this.state.errorState.errorCause==="query"&&y.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%",zIndex:11}},y.default.createElement(this.props.components.OverlayError,{error:this.state.errorState,retry:this.retry,theme:q.theme}))))}}]),B}(y.default.Component);e.default=I;function A(j,z,B){var N=[],R=[];return B>0&&(N=F(j,B)),z&&(R=F(z,B)),[N,R]}function F(j,z){var B=j.filter(function(N){return N.defaultSort&&N.sorting!==!1});return B.slice(0,z).map(function(N,R){return{orderBy:N.tableData?N.tableData.id:j.findIndex(function(q){return q.field===N.field}),orderDirection:N.defaultSort,sortOrder:R+1}})}}(X_)),X_}(function(e){var t=Cn;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ALL_COLUMNS",{enumerable:!0,get:function(){return c.ALL_COLUMNS}}),Object.defineProperty(e,"MTableAction",{enumerable:!0,get:function(){return u.MTableAction}}),Object.defineProperty(e,"MTableActions",{enumerable:!0,get:function(){return u.MTableActions}}),Object.defineProperty(e,"MTableBody",{enumerable:!0,get:function(){return u.MTableBody}}),Object.defineProperty(e,"MTableBodyRow",{enumerable:!0,get:function(){return u.MTableBodyRow}}),Object.defineProperty(e,"MTableCell",{enumerable:!0,get:function(){return u.MTableCell}}),Object.defineProperty(e,"MTableEditCell",{enumerable:!0,get:function(){return u.MTableEditCell}}),Object.defineProperty(e,"MTableEditField",{enumerable:!0,get:function(){return u.MTableEditField}}),Object.defineProperty(e,"MTableEditRow",{enumerable:!0,get:function(){return u.MTableEditRow}}),Object.defineProperty(e,"MTableFilterRow",{enumerable:!0,get:function(){return u.MTableFilterRow}}),Object.defineProperty(e,"MTableGroupRow",{enumerable:!0,get:function(){return u.MTableGroupRow}}),Object.defineProperty(e,"MTableGroupbar",{enumerable:!0,get:function(){return u.MTableGroupbar}}),Object.defineProperty(e,"MTableHeader",{enumerable:!0,get:function(){return u.MTableHeader}}),Object.defineProperty(e,"MTablePagination",{enumerable:!0,get:function(){return u.MTablePagination}}),Object.defineProperty(e,"MTableSteppedPagination",{enumerable:!0,get:function(){return u.MTableSteppedPagination}}),Object.defineProperty(e,"MTableToolbar",{enumerable:!0,get:function(){return u.MTableToolbar}}),e.default=void 0,Object.defineProperty(e,"useLocalizationStore",{enumerable:!0,get:function(){return s.useLocalizationStore}});var n=t(Ir()),r=t(ge),l=Gke(),i=Yke(),o=t(fSe()),a=sf,s=eg(),u=Db(),c=$5();o.default.defaultProps=l.defaultProps,o.default.propTypes=i.propTypes;var d=(0,s.withContext)(function(f){var p=(0,a.useTheme)(),m=(0,s.useMergeProps)(f),g=m.localization,b=m.options,v=m.components;return r.default.createElement(o.default,(0,n.default)({},f,{theme:p,options:b,components:v,localization:g,ref:f.tableRef}))});e.default=d})(qz);const pSe=lr(qz);var N5={},hSe=Cn;Object.defineProperty(N5,"__esModule",{value:!0});var Vq=N5.default=void 0,mSe=hSe(Ta()),gSe=ke,vSe=(0,mSe.default)((0,gSe.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");Vq=N5.default=vSe;const ySe=e=>{const t=e.activeTab===-1?0:e.activeTab;return ke.jsxs("div",{children:[ke.jsx(Nz,{value:t,onChange:e.onNewTabSelected,indicatorColor:"primary",textColor:"primary",children:e.tabs.map(n=>ke.jsx(J3,{disabled:n.disabled??!1,label:ke.jsx(Ia,{className:e.tabStyle,children:ke.jsxs(Ia,{display:"flex",sx:{fontSize:"0.875rem"},children:[ke.jsx("span",{children:n.icon}),n.title]})})}))}),ke.jsx(Ia,{children:e.tabs.map((n,r)=>ke.jsx("div",{hidden:(e.activeTab===-1?0:e.activeTab)!==r,children:(e.activeTab===-1?0:e.activeTab)!==r?ke.jsx("div",{}):n.tab}))})]})},F5=e=>{const[t,n]=ge.useState({activeTab:0});return ke.jsx(Je.Fragment,{children:ke.jsx(ySe,{activeTab:t.activeTab,onNewTabSelected:(r,l)=>n(i=>({...i,activeTab:l})),tabs:e.tabs})})},yk=({func:e,children:t})=>{const[n,r]=ge.useState(()=>({status:0,func:e}));return n.status===0&&r(l=>({...l,status:1})),n.status===1&&(r(l=>({...l,status:2})),n.func().then(l=>r(i=>({...i,status:3,result:l}))).catch(()=>r(l=>({...l,status:4})))),ke.jsx(ke.Fragment,{children:n.status===3?t&&n.result&&t(n.result):n.status===4?ke.jsx(dr,{align:"center",children:"Failed"}):n.status===2?ke.jsx(Ia,{textAlign:"center",children:ke.jsx(Xj,{})}):null})},Gq=e=>ke.jsxs(cM,{severity:e.data.severity,children:[ke.jsx(dM,{children:e.data.title}),e.data.text]}),Yq=()=>ke.jsx("div",{children:"Not implemented"}),bSe=e=>e.type??"graph",gR=(e,t,n)=>{switch(bSe(t)){case"graph":{const r=()=>e.getAdditionGraphData(t.id),l=i=>ke.jsx(ub,{...i,widgetSize:n});return ke.jsx(yk,{func:r,children:l})}case"widget":{const r=()=>e.getAdditionWidgetData(t.id),l=i=>_g(t.id,i);return ke.jsx(yk,{func:r,children:l})}default:return ke.jsx(Yq,{})}},j5=e=>ke.jsx(DM.Consumer,{children:t=>ke.jsxs(Ia,{children:[e.details.parts.length>1?ke.jsx(F5,{tabs:e.details.parts.map(n=>({title:n.title,tab:gR(t,n,e.widgetSize)}))}):gR(t,e.details.parts[0],e.widgetSize),e.details.insights===void 0?ke.jsx(ke.Fragment,{}):e.details.insights.map(n=>ke.jsx(Gq,{data:n},n.text+n.title+n.severity))]})}),xSe=e=>ke.jsx(DM.Consumer,{children:t=>ke.jsx(yk,{func:()=>t.getAdditionGraphData(e.graphId),children:n=>ke.jsx(ub,{...n,widgetSize:e.widgetSize})})});var bk={exports:{}},xk={exports:{}};(function(e,t){t.__esModule=!0,t.default=n;function n(r){var l={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(l[i]=0);return l}e.exports=t.default})(xk,xk.exports);var z5=xk.exports,wk={exports:{}};(function(e,t){t.__esModule=!0,t.default=n;function n(r){var l={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(l[i]=typeof r[i]=="number"?r[i]:r[i].val);return l}e.exports=t.default})(wk,wk.exports);var Lb=wk.exports,_k={exports:{}};(function(e,t){t.__esModule=!0,t.default=r;var n=[0,0];function r(l,i,o,a,s,u,c){var d=-s*(i-a),f=-u*o,p=d+f,m=o+p*l,g=i+m*l;return Math.abs(m)"u"?Oo:window,_0=["moz","webkit"],Td="AnimationFrame",Yd=Hl["request"+Td],Tm=Hl["cancel"+Td]||Hl["cancelRequest"+Td];for(var Fp=0;!Yd&&Fp<_0.length;Fp++)Yd=Hl[_0[Fp]+"Request"+Td],Tm=Hl[_0[Fp]+"Cancel"+Td]||Hl[_0[Fp]+"CancelRequest"+Td];if(!Yd||!Tm){var J_=0,vR=0,mu=[],TSe=1e3/60;Yd=function(e){if(mu.length===0){var t=_Se(),n=Math.max(0,TSe-(t-J_));J_=n+t,setTimeout(function(){var r=mu.slice(0);mu.length=0;for(var l=0;lT*10&&(O.accumulatedTime=0),O.accumulatedTime===0){O.animationID=null,O.startAnimationIfNecessary();return}var A=(O.accumulatedTime-Math.floor(O.accumulatedTime/T)*T)/T,F=Math.floor(O.accumulatedTime/T),j={},z={},B={},N={};for(var R in P)if(Object.prototype.hasOwnProperty.call(P,R)){var q=P[R];if(typeof q=="number")B[R]=q,N[R]=0,j[R]=q,z[R]=0;else{for(var Y=O.state.lastIdealStyle[R],L=O.state.lastIdealVelocity[R],W=0;WT*10&&(D.accumulatedTime=0),D.accumulatedTime===0){D.animationID=null,D.startAnimationIfNecessary();return}for(var F=(D.accumulatedTime-Math.floor(D.accumulatedTime/T)*T)/T,j=Math.floor(D.accumulatedTime/T),z=[],B=[],N=[],R=[],q=0;qo[h])return-1;if(p>s[h]&&bo[h])return 1;if(m>s[h]&&gS*10&&(A.accumulatedTime=0),A.accumulatedTime===0){A.animationID=null,A.startAnimationIfNecessary();return}for(var R=(A.accumulatedTime-Math.floor(A.accumulatedTime/S)*S)/S,q=Math.floor(A.accumulatedTime/S),Y=O(A.props.willEnter,A.props.willLeave,A.props.didLeave,A.state.mergedPropsStyles,z,A.state.currentStyles,A.state.currentVelocities,A.state.lastIdealStyles,A.state.lastIdealVelocities),L=Y[0],W=Y[1],U=Y[2],V=Y[3],te=Y[4],ee=0;ee0},e.prototype.connect_=function(){!Ak||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),WSe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Ak||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,l=BSe.some(function(i){return!!~r.indexOf(i)});l&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Zq=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Xd(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new ZSe(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Xd(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new QSe(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Jq=typeof WeakMap<"u"?new WeakMap:new Kq,eU=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=qSe.getInstance(),r=new JSe(t,n,this);Jq.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){eU.prototype[e]=function(){var t;return(t=Jq.get(this))[e].apply(t,arguments)}});var eCe=function(){return typeof yy.ResizeObserver<"u"?yy.ResizeObserver:eU}(),tCe=["client","offset","scroll","bounds","margin"];function bR(e){var t=[];return tCe.forEach(function(n){e[n]&&t.push(n)}),t}function xR(e,t){var n={};if(t.indexOf("client")>-1&&(n.client={top:e.clientTop,left:e.clientLeft,width:e.clientWidth,height:e.clientHeight}),t.indexOf("offset")>-1&&(n.offset={top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight}),t.indexOf("scroll")>-1&&(n.scroll={top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}),t.indexOf("bounds")>-1){var r=e.getBoundingClientRect();n.bounds={top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height}}if(t.indexOf("margin")>-1){var l=getComputedStyle(e);n.margin={top:l?parseInt(l.marginTop):0,right:l?parseInt(l.marginRight):0,bottom:l?parseInt(l.marginBottom):0,left:l?parseInt(l.marginLeft):0}}return n}function nCe(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||window}function rCe(e){return function(t){var n,r;return r=n=function(l){K1(i,l);function i(){for(var a,s=arguments.length,u=new Array(s),c=0;c-1}var $Ce=ICe,NCe=jb;function FCe(e,t){var n=this.__data__,r=NCe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var jCe=FCe,zCe=_Ce,BCe=ACe,WCe=RCe,qCe=$Ce,UCe=jCe;function gf(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=KPe}var J5=ZPe,QPe=Bb,JPe=J5;function e4e(e){return e!=null&&JPe(e.length)&&!QPe(e)}var wf=e4e,t4e=wf,n4e=oi;function r4e(e){return n4e(e)&&t4e(e)}var hU=r4e,_y={exports:{}};function a4e(){return!1}var o4e=a4e;_y.exports;(function(e,t){var n=zo,r=o4e,l=t&&!t.nodeType&&t,i=l&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===l,a=o?n.Buffer:void 0,s=a?a.isBuffer:void 0,u=s||r;e.exports=u})(_y,_y.exports);var Yb=_y.exports,i4e=fs,l4e=Z5,s4e=oi,u4e="[object Object]",c4e=Function.prototype,d4e=Object.prototype,mU=c4e.toString,f4e=d4e.hasOwnProperty,p4e=mU.call(Object);function h4e(e){if(!s4e(e)||i4e(e)!=u4e)return!1;var t=l4e(e);if(t===null)return!0;var n=f4e.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&mU.call(n)==p4e}var eP=h4e;const Mm=lr(eP);var m4e=fs,g4e=J5,v4e=oi,y4e="[object Arguments]",b4e="[object Array]",x4e="[object Boolean]",w4e="[object Date]",_4e="[object Error]",T4e="[object Function]",k4e="[object Map]",S4e="[object Number]",C4e="[object Object]",M4e="[object RegExp]",P4e="[object Set]",O4e="[object String]",A4e="[object WeakMap]",D4e="[object ArrayBuffer]",E4e="[object DataView]",R4e="[object Float32Array]",L4e="[object Float64Array]",I4e="[object Int8Array]",$4e="[object Int16Array]",N4e="[object Int32Array]",F4e="[object Uint8Array]",j4e="[object Uint8ClampedArray]",z4e="[object Uint16Array]",B4e="[object Uint32Array]",Ur={};Ur[R4e]=Ur[L4e]=Ur[I4e]=Ur[$4e]=Ur[N4e]=Ur[F4e]=Ur[j4e]=Ur[z4e]=Ur[B4e]=!0;Ur[y4e]=Ur[b4e]=Ur[D4e]=Ur[x4e]=Ur[E4e]=Ur[w4e]=Ur[_4e]=Ur[T4e]=Ur[k4e]=Ur[S4e]=Ur[C4e]=Ur[M4e]=Ur[P4e]=Ur[O4e]=Ur[A4e]=!1;function W4e(e){return v4e(e)&&g4e(e.length)&&!!Ur[m4e(e)]}var q4e=W4e;function U4e(e){return function(t){return e(t)}}var _f=U4e,Ty={exports:{}};Ty.exports;(function(e,t){var n=nU,r=t&&!t.nodeType&&t,l=r&&!0&&e&&!e.nodeType&&e,i=l&&l.exports===r,o=i&&n.process,a=function(){try{var s=l&&l.require&&l.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}}();e.exports=a})(Ty,Ty.exports);var Xb=Ty.exports,H4e=q4e,V4e=_f,LR=Xb,IR=LR&&LR.isTypedArray,G4e=IR?V4e(IR):H4e,tP=G4e;function Y4e(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var gU=Y4e,X4e=X5,K4e=ug,Z4e=Object.prototype,Q4e=Z4e.hasOwnProperty;function J4e(e,t,n){var r=e[t];(!(Q4e.call(e,t)&&K4e(r,n))||n===void 0&&!(t in e))&&X4e(e,t,n)}var nP=J4e,eOe=nP,tOe=X5;function nOe(e,t,n,r){var l=!n;n||(n={});for(var i=-1,o=t.length;++i-1&&e%1==0&&e0){if(++t>=d6e)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var xU=h6e,m6e=c6e,g6e=xU,v6e=g6e(m6e),aP=v6e,y6e=yc,b6e=bU,x6e=aP;function w6e(e,t){return x6e(b6e(e,t,y6e),e+"")}var Kb=w6e,_6e=ug,T6e=wf,k6e=cg,S6e=Oi;function C6e(e,t,n){if(!S6e(n))return!1;var r=typeof t;return(r=="number"?T6e(n)&&k6e(t,n.length):r=="string"&&t in n)?_6e(n[t],e):!1}var oP=C6e,M6e=Kb,P6e=oP;function O6e(e){return M6e(function(t,n){var r=-1,l=n.length,i=l>1?n[l-1]:void 0,o=l>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(l--,i):void 0,o&&P6e(n[0],n[1],o)&&(i=l<3?void 0:i,l=1),t=Object(t);++rt?1:e>=t?0:NaN}function sP(e){let t=e,n=e;e.length===1&&(t=(o,a)=>e(o)-a,n=zAe(e));function r(o,a,s,u){for(s==null&&(s=0),u==null&&(u=o.length);s>>1;n(o[c],a)<0?s=c+1:u=c}return s}function l(o,a,s,u){for(s==null&&(s=0),u==null&&(u=o.length);s>>1;n(o[c],a)>0?u=c:s=c+1}return s}function i(o,a,s,u){s==null&&(s=0),u==null&&(u=o.length);const c=r(o,a,s,u-1);return c>s&&t(o[c-1],a)>-t(o[c],a)?c-1:c}return{left:r,center:i,right:l}}function zAe(e){return(t,n)=>CU(e(t),n)}function BAe(e){return e===null?NaN:+e}const WAe=sP(CU),qAe=WAe.right;sP(BAe).center;var Dk=Math.sqrt(50),Ek=Math.sqrt(10),Rk=Math.sqrt(2);function Lk(e,t,n){var r,l=-1,i,o,a;if(t=+t,e=+e,n=+n,e===t&&n>0)return[e];if((r=t0){let s=Math.round(e/a),u=Math.round(t/a);for(s*at&&--u,o=new Array(i=u-s+1);++lt&&--u,o=new Array(i=u-s+1);++l=0?(i>=Dk?10:i>=Ek?5:i>=Rk?2:1)*Math.pow(10,l):-Math.pow(10,-l)/(i>=Dk?10:i>=Ek?5:i>=Rk?2:1)}function Ik(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),l=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/l;return i>=Dk?l*=10:i>=Ek?l*=5:i>=Rk&&(l*=2),t>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?k0(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?k0(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=GAe.exec(e))?new Yo(t[1],t[2],t[3],1):(t=YAe.exec(e))?new Yo(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=XAe.exec(e))?k0(t[1],t[2],t[3],t[4]):(t=KAe.exec(e))?k0(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=ZAe.exec(e))?JR(t[1],t[2]/100,t[3]/100,1):(t=QAe.exec(e))?JR(t[1],t[2]/100,t[3]/100,t[4]):GR.hasOwnProperty(e)?KR(GR[e]):e==="transparent"?new Yo(NaN,NaN,NaN,0):null}function KR(e){return new Yo(e>>16&255,e>>8&255,e&255,1)}function k0(e,t,n,r){return r<=0&&(e=t=n=NaN),new Yo(e,t,n,r)}function e8e(e){return e instanceof pg||(e=Zu(e)),e?(e=e.rgb(),new Yo(e.r,e.g,e.b,e.opacity)):new Yo}function Qu(e,t,n,r){return arguments.length===1?e8e(e):new Yo(e,t,n,r??1)}function Yo(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}cP(Yo,Qu,OU(pg,{brighter:function(e){return e=e==null?ky:Math.pow(ky,e),new Yo(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?Pm:Math.pow(Pm,e),new Yo(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:ZR,formatHex:ZR,formatRgb:QR,toString:QR}));function ZR(){return"#"+tT(this.r)+tT(this.g)+tT(this.b)}function QR(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function tT(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function JR(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new fl(e,t,n,r)}function AU(e){if(e instanceof fl)return new fl(e.h,e.s,e.l,e.opacity);if(e instanceof pg||(e=Zu(e)),!e)return new fl;if(e instanceof fl)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,l=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,a=i-l,s=(i+l)/2;return a?(t===i?o=(n-r)/a+(n0&&s<1?0:o,new fl(o,a,s,e.opacity)}function t8e(e,t,n,r){return arguments.length===1?AU(e):new fl(e,t,n,r??1)}function fl(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}cP(fl,t8e,OU(pg,{brighter:function(e){return e=e==null?ky:Math.pow(ky,e),new fl(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Pm:Math.pow(Pm,e),new fl(this.h,this.s,this.l*e,this.opacity)},rgb:function(){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,l=2*n-r;return new Yo(nT(e>=240?e-240:e+120,l,r),nT(e,l,r),nT(e<120?e+240:e-120,l,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function nT(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const dP=e=>()=>e;function n8e(e,t){return function(n){return e+n*t}}function r8e(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function a8e(e){return(e=+e)==1?DU:function(t,n){return n-t?r8e(t,n,e):dP(isNaN(t)?n:t)}}function DU(e,t){var n=t-e;return n?n8e(e,n):dP(isNaN(e)?t:e)}const e9=function e(t){var n=a8e(t);function r(l,i){var o=n((l=Qu(l)).r,(i=Qu(i)).r),a=n(l.g,i.g),s=n(l.b,i.b),u=DU(l.opacity,i.opacity);return function(c){return l.r=o(c),l.g=a(c),l.b=s(c),l.opacity=u(c),l+""}}return r.gamma=e,r}(1);function o8e(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),l;return function(i){for(l=0;ln&&(i=t.slice(n,i),a[o]?a[o]+=i:a[++o]=i),(r=r[0])===(l=l[0])?a[o]?a[o]+=l:a[++o]=l:(a[++o]=null,s.push({i:o,x:Sy(r,l)})),n=rT.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function v8e(e,t,n){var r=e[0],l=e[1],i=t[0],o=t[1];return l2?y8e:v8e,s=u=null,d}function d(f){return f==null||isNaN(f=+f)?i:(s||(s=a(e.map(r),t,n)))(r(o(f)))}return d.invert=function(f){return o(l((u||(u=a(t,e.map(r),Sy)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,m8e),c()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),c()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=p8e,c()},d.clamp=function(f){return arguments.length?(o=f?!0:cd,c()):o!==cd},d.interpolate=function(f){return arguments.length?(n=f,c()):n},d.unknown=function(f){return arguments.length?(i=f,d):i},function(f,p){return r=f,l=p,c()}}function RU(){return EU()(cd,cd)}function b8e(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Cy(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Kd(e){return e=Cy(Math.abs(e)),e?e[1]:NaN}function x8e(e,t){return function(n,r){for(var l=n.length,i=[],o=0,a=e[0],s=0;l>0&&a>0&&(s+a+1>r&&(a=Math.max(1,r-s)),i.push(n.substring(l-=a,l+a)),!((s+=a+1)>r));)a=e[o=(o+1)%e.length];return i.reverse().join(t)}}function w8e(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var _8e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function My(e){if(!(t=_8e.exec(e)))throw new Error("invalid format: "+e);var t;return new hP({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}My.prototype=hP.prototype;function hP(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}hP.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function T8e(e){e:for(var t=e.length,n=1,r=-1,l;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(l+1):e}var LU;function k8e(e,t){var n=Cy(e,t);if(!n)return e+"";var r=n[0],l=n[1],i=l-(LU=Math.max(-8,Math.min(8,Math.floor(l/3)))*3)+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Cy(e,Math.max(0,t+i-1))[0]}function n9(e,t){var n=Cy(e,t);if(!n)return e+"";var r=n[0],l=n[1];return l<0?"0."+new Array(-l).join("0")+r:r.length>l+1?r.slice(0,l+1)+"."+r.slice(l+1):r+new Array(l-r.length+2).join("0")}const r9={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:b8e,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return n9(e*100,t)},r:n9,s:k8e,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function a9(e){return e}var o9=Array.prototype.map,i9=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function S8e(e){var t=e.grouping===void 0||e.thousands===void 0?a9:x8e(o9.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",l=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?a9:w8e(o9.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",a=e.minus===void 0?"-":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function u(d){d=My(d);var f=d.fill,p=d.align,m=d.sign,g=d.symbol,b=d.zero,v=d.width,h=d.comma,y=d.precision,w=d.trim,_=d.type;_==="n"?(h=!0,_="g"):r9[_]||(y===void 0&&(y=12),w=!0,_="g"),(b||f==="0"&&p==="=")&&(b=!0,f="0",p="=");var x=g==="$"?n:g==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",T=g==="$"?r:/[%p]/.test(_)?o:"",k=r9[_],S=/[defgprs%]/.test(_);y=y===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y));function C(M){var O=x,D=T,P,E,I;if(_==="c")D=k(M)+D,M="";else{M=+M;var A=M<0||1/M<0;if(M=isNaN(M)?s:k(Math.abs(M),y),w&&(M=T8e(M)),A&&+M==0&&m!=="+"&&(A=!1),O=(A?m==="("?m:a:m==="-"||m==="("?"":m)+O,D=(_==="s"?i9[8+LU/3]:"")+D+(A&&m==="("?")":""),S){for(P=-1,E=M.length;++PI||I>57){D=(I===46?l+M.slice(P+1):M.slice(P))+D,M=M.slice(0,P);break}}}h&&!b&&(M=t(M,1/0));var F=O.length+M.length+D.length,j=F>1)+O+M+D+j.slice(F);break;default:M=j+O+M+D;break}return i(M)}return C.toString=function(){return d+""},C}function c(d,f){var p=u((d=My(d),d.type="f",d)),m=Math.max(-8,Math.min(8,Math.floor(Kd(f)/3)))*3,g=Math.pow(10,-m),b=i9[8+m/3];return function(v){return p(g*v)+b}}return{format:u,formatPrefix:c}}var S0,Pf,IU;C8e({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function C8e(e){return S0=S8e(e),Pf=S0.format,IU=S0.formatPrefix,S0}function M8e(e){return Math.max(0,-Kd(Math.abs(e)))}function P8e(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Kd(t)/3)))*3-Kd(Math.abs(e)))}function O8e(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Kd(t)-Kd(e))+1}function A8e(e,t,n,r){var l=Ik(e,t,n),i;switch(r=My(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=P8e(l,o))&&(r.precision=i),IU(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=O8e(l,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=M8e(l))&&(r.precision=i-(r.type==="%")*2);break}}return Pf(r)}function D8e(e){var t=e.domain;return e.ticks=function(n){var r=t();return Lk(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var l=t();return A8e(l[0],l[l.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),l=0,i=r.length-1,o=r[l],a=r[i],s,u,c=10;for(a0;){if(u=MU(o,a,n),u===s)return r[l]=o,r[i]=a,t(r);if(u>0)o=Math.floor(o/u)*u,a=Math.ceil(a/u)*u;else if(u<0)o=Math.ceil(o*u)/u,a=Math.floor(a*u)/u;else break;s=u}return e},e}function Ju(){var e=RU();return e.copy=function(){return pP(e,Ju())},Mf.apply(e,arguments),D8e(e)}function $U(e,t){e=e.slice();var n=0,r=e.length-1,l=e[n],i=e[r],o;return i0){for(;f<=p;++f)for(g=1,m=i(f);gc)break;h.push(b)}}else for(;f<=p;++f)for(g=r-1,m=i(f);g>=1;--g)if(b=m*g,!(bc)break;h.push(b)}h.length*20))return s;do s.push(u=new Date(+i)),t(i,a),e(i);while(u=o)for(;e(o),!i(o);)o.setTime(o-1)},function(o,a){if(o>=o)if(a<0)for(;++a<=0;)for(;t(o,-1),!i(o););else for(;--a>=0;)for(;t(o,1),!i(o););})},n&&(l.count=function(i,o){return aT.setTime(+i),oT.setTime(+o),e(aT),e(oT),Math.floor(n(aT,oT))},l.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?l.filter(r?function(o){return r(o)%i===0}:function(o){return l.count(0,o)%i===0}):l}),l}var Py=Wa(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Py.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Wa(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Py};Py.range;const Wl=1e3,yi=Wl*60,ql=yi*60,ec=ql*24,mP=ec*7,c9=ec*30,iT=ec*365;var Iu=Wa(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Wl)},function(e,t){return(t-e)/Wl},function(e){return e.getUTCSeconds()});Iu.range;var gP=Wa(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Wl)},function(e,t){e.setTime(+e+t*yi)},function(e,t){return(t-e)/yi},function(e){return e.getMinutes()});gP.range;var vP=Wa(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Wl-e.getMinutes()*yi)},function(e,t){e.setTime(+e+t*ql)},function(e,t){return(t-e)/ql},function(e){return e.getHours()});vP.range;var hg=Wa(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*yi)/ec,e=>e.getDate()-1);hg.range;function bc(e){return Wa(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*yi)/mP})}var Qb=bc(0),Oy=bc(1),F8e=bc(2),j8e=bc(3),Zd=bc(4),z8e=bc(5),B8e=bc(6);Qb.range;Oy.range;F8e.range;j8e.range;Zd.range;z8e.range;B8e.range;var yP=Wa(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});yP.range;var as=Wa(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});as.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Wa(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};as.range;var bP=Wa(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*yi)},function(e,t){return(t-e)/yi},function(e){return e.getUTCMinutes()});bP.range;var xP=Wa(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*ql)},function(e,t){return(t-e)/ql},function(e){return e.getUTCHours()});xP.range;var mg=Wa(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/ec},function(e){return e.getUTCDate()-1});mg.range;function xc(e){return Wa(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/mP})}var Jb=xc(0),Ay=xc(1),W8e=xc(2),q8e=xc(3),Qd=xc(4),U8e=xc(5),H8e=xc(6);Jb.range;Ay.range;W8e.range;q8e.range;Qd.range;U8e.range;H8e.range;var wP=Wa(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});wP.range;var os=Wa(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});os.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Wa(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};os.range;function FU(e,t,n,r,l,i){const o=[[Iu,1,Wl],[Iu,5,5*Wl],[Iu,15,15*Wl],[Iu,30,30*Wl],[i,1,yi],[i,5,5*yi],[i,15,15*yi],[i,30,30*yi],[l,1,ql],[l,3,3*ql],[l,6,6*ql],[l,12,12*ql],[r,1,ec],[r,2,2*ec],[n,1,mP],[t,1,c9],[t,3,3*c9],[e,1,iT]];function a(u,c,d){const f=cb).right(o,f);if(p===o.length)return e.every(Ik(u/iT,c/iT,d));if(p===0)return Py.every(Math.max(Ik(u,c,d),1));const[m,g]=o[f/o[p-1][2]53)return null;"w"in H||(H.w=1),"Z"in H?(G=sT(zp(H.y,0,1)),X=G.getUTCDay(),G=X>4||X===0?Ay.ceil(G):Ay(G),G=mg.offset(G,(H.V-1)*7),H.y=G.getUTCFullYear(),H.m=G.getUTCMonth(),H.d=G.getUTCDate()+(H.w+6)%7):(G=lT(zp(H.y,0,1)),X=G.getDay(),G=X>4||X===0?Oy.ceil(G):Oy(G),G=hg.offset(G,(H.V-1)*7),H.y=G.getFullYear(),H.m=G.getMonth(),H.d=G.getDate()+(H.w+6)%7)}else("W"in H||"U"in H)&&("w"in H||(H.w="u"in H?H.u%7:"W"in H?1:0),X="Z"in H?sT(zp(H.y,0,1)).getUTCDay():lT(zp(H.y,0,1)).getDay(),H.m=0,H.d="W"in H?(H.w+6)%7+H.W*7-(X+5)%7:H.w+H.U*7-(X+6)%7);return"Z"in H?(H.H+=H.Z/100|0,H.M+=H.Z%100,sT(H)):lT(H)}}function k(V,te,ee,H){for(var Z=0,G=te.length,X=ee.length,Q,re;Z=X)return-1;if(Q=te.charCodeAt(Z++),Q===37){if(Q=te.charAt(Z++),re=_[Q in d9?te.charAt(Z++):Q],!re||(H=re(V,ee,H))<0)return-1}else if(Q!=ee.charCodeAt(H++))return-1}return H}function S(V,te,ee){var H=u.exec(te.slice(ee));return H?(V.p=c.get(H[0].toLowerCase()),ee+H[0].length):-1}function C(V,te,ee){var H=p.exec(te.slice(ee));return H?(V.w=m.get(H[0].toLowerCase()),ee+H[0].length):-1}function M(V,te,ee){var H=d.exec(te.slice(ee));return H?(V.w=f.get(H[0].toLowerCase()),ee+H[0].length):-1}function O(V,te,ee){var H=v.exec(te.slice(ee));return H?(V.m=h.get(H[0].toLowerCase()),ee+H[0].length):-1}function D(V,te,ee){var H=g.exec(te.slice(ee));return H?(V.m=b.get(H[0].toLowerCase()),ee+H[0].length):-1}function P(V,te,ee){return k(V,t,te,ee)}function E(V,te,ee){return k(V,n,te,ee)}function I(V,te,ee){return k(V,r,te,ee)}function A(V){return o[V.getDay()]}function F(V){return i[V.getDay()]}function j(V){return s[V.getMonth()]}function z(V){return a[V.getMonth()]}function B(V){return l[+(V.getHours()>=12)]}function N(V){return 1+~~(V.getMonth()/3)}function R(V){return o[V.getUTCDay()]}function q(V){return i[V.getUTCDay()]}function Y(V){return s[V.getUTCMonth()]}function L(V){return a[V.getUTCMonth()]}function W(V){return l[+(V.getUTCHours()>=12)]}function U(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var te=x(V+="",y);return te.toString=function(){return V},te},parse:function(V){var te=T(V+="",!1);return te.toString=function(){return V},te},utcFormat:function(V){var te=x(V+="",w);return te.toString=function(){return V},te},utcParse:function(V){var te=T(V+="",!0);return te.toString=function(){return V},te}}}var d9={"-":"",_:" ",0:"0"},qa=/^\s*\d+/,Z8e=/^%/,Q8e=/[\\^$*+?|[\]().{}]/g;function vr(e,t,n){var r=e<0?"-":"",l=(r?-e:e)+"",i=l.length;return r+(i[t.toLowerCase(),n]))}function eDe(e,t,n){var r=qa.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function tDe(e,t,n){var r=qa.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function nDe(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function rDe(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function aDe(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function f9(e,t,n){var r=qa.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function p9(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function oDe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function iDe(e,t,n){var r=qa.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function lDe(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function h9(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function sDe(e,t,n){var r=qa.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function m9(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function uDe(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function cDe(e,t,n){var r=qa.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function dDe(e,t,n){var r=qa.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function fDe(e,t,n){var r=qa.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function pDe(e,t,n){var r=Z8e.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function hDe(e,t,n){var r=qa.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function mDe(e,t,n){var r=qa.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function g9(e,t){return vr(e.getDate(),t,2)}function gDe(e,t){return vr(e.getHours(),t,2)}function vDe(e,t){return vr(e.getHours()%12||12,t,2)}function yDe(e,t){return vr(1+hg.count(as(e),e),t,3)}function jU(e,t){return vr(e.getMilliseconds(),t,3)}function bDe(e,t){return jU(e,t)+"000"}function xDe(e,t){return vr(e.getMonth()+1,t,2)}function wDe(e,t){return vr(e.getMinutes(),t,2)}function _De(e,t){return vr(e.getSeconds(),t,2)}function TDe(e){var t=e.getDay();return t===0?7:t}function kDe(e,t){return vr(Qb.count(as(e)-1,e),t,2)}function zU(e){var t=e.getDay();return t>=4||t===0?Zd(e):Zd.ceil(e)}function SDe(e,t){return e=zU(e),vr(Zd.count(as(e),e)+(as(e).getDay()===4),t,2)}function CDe(e){return e.getDay()}function MDe(e,t){return vr(Oy.count(as(e)-1,e),t,2)}function PDe(e,t){return vr(e.getFullYear()%100,t,2)}function ODe(e,t){return e=zU(e),vr(e.getFullYear()%100,t,2)}function ADe(e,t){return vr(e.getFullYear()%1e4,t,4)}function DDe(e,t){var n=e.getDay();return e=n>=4||n===0?Zd(e):Zd.ceil(e),vr(e.getFullYear()%1e4,t,4)}function EDe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+vr(t/60|0,"0",2)+vr(t%60,"0",2)}function v9(e,t){return vr(e.getUTCDate(),t,2)}function RDe(e,t){return vr(e.getUTCHours(),t,2)}function LDe(e,t){return vr(e.getUTCHours()%12||12,t,2)}function IDe(e,t){return vr(1+mg.count(os(e),e),t,3)}function BU(e,t){return vr(e.getUTCMilliseconds(),t,3)}function $De(e,t){return BU(e,t)+"000"}function NDe(e,t){return vr(e.getUTCMonth()+1,t,2)}function FDe(e,t){return vr(e.getUTCMinutes(),t,2)}function jDe(e,t){return vr(e.getUTCSeconds(),t,2)}function zDe(e){var t=e.getUTCDay();return t===0?7:t}function BDe(e,t){return vr(Jb.count(os(e)-1,e),t,2)}function WU(e){var t=e.getUTCDay();return t>=4||t===0?Qd(e):Qd.ceil(e)}function WDe(e,t){return e=WU(e),vr(Qd.count(os(e),e)+(os(e).getUTCDay()===4),t,2)}function qDe(e){return e.getUTCDay()}function UDe(e,t){return vr(Ay.count(os(e)-1,e),t,2)}function HDe(e,t){return vr(e.getUTCFullYear()%100,t,2)}function VDe(e,t){return e=WU(e),vr(e.getUTCFullYear()%100,t,2)}function GDe(e,t){return vr(e.getUTCFullYear()%1e4,t,4)}function YDe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Qd(e):Qd.ceil(e),vr(e.getUTCFullYear()%1e4,t,4)}function XDe(){return"+0000"}function y9(){return"%"}function b9(e){return+e}function x9(e){return Math.floor(+e/1e3)}var Wc,qU,UU;KDe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function KDe(e){return Wc=K8e(e),qU=Wc.format,Wc.parse,UU=Wc.utcFormat,Wc.utcParse,Wc}function ZDe(e){return new Date(e)}function QDe(e){return e instanceof Date?+e:+new Date(+e)}function _P(e,t,n,r,l,i,o,a,s,u){var c=RU(),d=c.invert,f=c.domain,p=u(".%L"),m=u(":%S"),g=u("%I:%M"),b=u("%I %p"),v=u("%a %d"),h=u("%b %d"),y=u("%B"),w=u("%Y");function _(x){return(s(x)=1?(n=1,t-1):Math.floor(n*t),l=e[r],i=e[r+1],o=r>0?e[r-1]:2*l-i,a=rn&&(i=t.slice(n,i),a[o]?a[o]+=i:a[++o]=i),(r=r[0])===(l=l[0])?a[o]?a[o]+=l:a[++o]=l:(a[++o]=null,s.push({i:o,x:Fk(r,l)})),n=uT.lastIndex;return n-1}var MP=$7e;function N7e(e,t,n){for(var r=-1,l=e==null?0:e.length;++r=H7e&&(i=U7e,o=!1,t=new j7e(t));e:for(;++lTu)if(!(Math.abs(c*a-s*u)>Tu)||!l)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var f=n-i,p=r-o,m=a*a+s*s,g=f*f+p*p,b=Math.sqrt(m),v=Math.sqrt(d),h=l*Math.tan((zk-Math.acos((m+d-g)/(2*b*v)))/2),y=h/v,w=h/b;Math.abs(y-1)>Tu&&(this._+="L"+(e+y*u)+","+(t+y*c)),this._+="A"+l+","+l+",0,0,"+ +(c*f>u*p)+","+(this._x1=e+w*a)+","+(this._y1=t+w*s)}},arc:function(e,t,n,r,l,i){e=+e,t=+t,n=+n,i=!!i;var o=n*Math.cos(r),a=n*Math.sin(r),s=e+o,u=t+a,c=1^i,d=i?r-l:l-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+s+","+u:(Math.abs(this._x1-s)>Tu||Math.abs(this._y1-u)>Tu)&&(this._+="L"+s+","+u),n&&(d<0&&(d=d%Bk+Bk),d>J7e?this._+="A"+n+","+n+",0,1,"+c+","+(e-o)+","+(t-a)+"A"+n+","+n+",0,1,"+c+","+(this._x1=s)+","+(this._y1=u):d>Tu&&(this._+="A"+n+","+n+",0,"+ +(d>=zk)+","+c+","+(this._x1=e+n*Math.cos(l))+","+(this._y1=t+n*Math.sin(l))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};function Za(e){return function(){return e}}var _9=1e-12;function nH(e){this._context=e}nH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function AP(e){return new nH(e)}function rH(e){return e[0]}function aH(e){return e[1]}function oH(){var e=rH,t=aH,n=Za(!0),r=null,l=AP,i=null;function o(a){var s,u=a.length,c,d=!1,f;for(r==null&&(i=l(f=OP())),s=0;s<=u;++s)!(s=f;--p)a.point(h[p],y[p]);a.lineEnd(),a.areaEnd()}b&&(h[d]=+e(g,d,c),y[d]=+n(g,d,c),a.point(t?+t(g,d,c):h[d],r?+r(g,d,c):y[d]))}if(v)return a=null,v+""||null}function u(){return oH().defined(l).curve(o).context(i)}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:Za(+c),t=null,s):e},s.x0=function(c){return arguments.length?(e=typeof c=="function"?c:Za(+c),s):e},s.x1=function(c){return arguments.length?(t=c==null?null:typeof c=="function"?c:Za(+c),s):t},s.y=function(c){return arguments.length?(n=typeof c=="function"?c:Za(+c),r=null,s):n},s.y0=function(c){return arguments.length?(n=typeof c=="function"?c:Za(+c),s):n},s.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:Za(+c),s):r},s.lineX0=s.lineY0=function(){return u().x(e).y(n)},s.lineY1=function(){return u().x(e).y(r)},s.lineX1=function(){return u().x(t).y(n)},s.defined=function(c){return arguments.length?(l=typeof c=="function"?c:Za(!!c),s):l},s.curve=function(c){return arguments.length?(o=c,i!=null&&(a=o(i)),s):o},s.context=function(c){return arguments.length?(c==null?i=a=null:a=o(i=c),s):i},s}var T9=Array.prototype.slice;function Ks(){}function Ey(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Mx(e){this._context=e}Mx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ey(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ey(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function tEe(e){return new Mx(e)}function iH(e){this._context=e}iH.prototype={areaStart:Ks,areaEnd:Ks,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ey(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function nEe(e){return new iH(e)}function lH(e){this._context=e}lH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Ey(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function rEe(e){return new lH(e)}function sH(e,t){this._basis=new Mx(e),this._beta=t}sH.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],l=t[0],i=e[n]-r,o=t[n]-l,a=-1,s;++a<=n;)s=a/n,this._basis.point(this._beta*e[a]+(1-this._beta)*(r+s*i),this._beta*t[a]+(1-this._beta)*(l+s*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const aEe=function e(t){function n(r){return t===1?new Mx(r):new sH(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Ry(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function DP(e,t){this._context=e,this._k=(1-t)/6}DP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Ry(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Ry(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const oEe=function e(t){function n(r){return new DP(r,t)}return n.tension=function(r){return e(+r)},n}(0);function EP(e,t){this._context=e,this._k=(1-t)/6}EP.prototype={areaStart:Ks,areaEnd:Ks,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ry(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const iEe=function e(t){function n(r){return new EP(r,t)}return n.tension=function(r){return e(+r)},n}(0);function RP(e,t){this._context=e,this._k=(1-t)/6}RP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ry(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const lEe=function e(t){function n(r){return new RP(r,t)}return n.tension=function(r){return e(+r)},n}(0);function LP(e,t,n){var r=e._x1,l=e._y1,i=e._x2,o=e._y2;if(e._l01_a>_9){var a=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,s=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*a-e._x0*e._l12_2a+e._x2*e._l01_2a)/s,l=(l*a-e._y0*e._l12_2a+e._y2*e._l01_2a)/s}if(e._l23_a>_9){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*u+e._x1*e._l23_2a-t*e._l12_2a)/c,o=(o*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,l,i,o,e._x2,e._y2)}function uH(e,t){this._context=e,this._alpha=t}uH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:LP(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const sEe=function e(t){function n(r){return t?new uH(r,t):new DP(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function cH(e,t){this._context=e,this._alpha=t}cH.prototype={areaStart:Ks,areaEnd:Ks,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:LP(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const uEe=function e(t){function n(r){return t?new cH(r,t):new EP(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function dH(e,t){this._context=e,this._alpha=t}dH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:LP(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const cEe=function e(t){function n(r){return t?new dH(r,t):new RP(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function fH(e){this._context=e}fH.prototype={areaStart:Ks,areaEnd:Ks,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function dEe(e){return new fH(e)}function k9(e){return e<0?-1:1}function S9(e,t,n){var r=e._x1-e._x0,l=t-e._x1,i=(e._y1-e._y0)/(r||l<0&&-0),o=(n-e._y1)/(l||r<0&&-0),a=(i*l+o*r)/(r+l);return(k9(i)+k9(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(a))||0}function C9(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function cT(e,t,n){var r=e._x0,l=e._y0,i=e._x1,o=e._y1,a=(i-r)/3;e._context.bezierCurveTo(r+a,l+a*t,i-a,o-a*n,i,o)}function Ly(e){this._context=e}Ly.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:cT(this,this._t0,C9(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,cT(this,C9(this,n=S9(this,e,t)),n);break;default:cT(this,this._t0,n=S9(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function pH(e){this._context=new hH(e)}(pH.prototype=Object.create(Ly.prototype)).point=function(e,t){Ly.prototype.point.call(this,t,e)};function hH(e){this._context=e}hH.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,l,i){this._context.bezierCurveTo(t,e,r,n,i,l)}};function fEe(e){return new Ly(e)}function pEe(e){return new pH(e)}function mH(e){this._context=e}mH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=M9(e),l=M9(t),i=0,o=1;o=0;--t)l[t]=(o[t]-l[t+1])/i[t];for(i[n-1]=(e[n]+l[n-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function mEe(e){return new Px(e,.5)}function gEe(e){return new Px(e,0)}function vEe(e){return new Px(e,1)}function Jd(e,t){if((o=e.length)>1)for(var n=1,r,l,i=e[t[0]],o,a=i.length;n=0;)n[t]=t;return n}function yEe(e,t){return e[t]}function gH(){var e=Za([]),t=ef,n=Jd,r=yEe;function l(i){var o=e.apply(this,arguments),a,s=i.length,u=o.length,c=new Array(u),d;for(a=0;a0){for(var n,r,l=0,i=e[0].length,o;l0)for(var n,r=0,l,i,o,a,s,u=e[t[0]].length;r0?(l[0]=o,l[1]=o+=i):i<0?(l[1]=a,l[0]=a+=i):(l[0]=0,l[1]=i)}function xEe(e,t){if((l=e.length)>0){for(var n=0,r=e[t[0]],l,i=r.length;n0)||!((i=(l=e[t[0]]).length)>0))){for(var n=0,r=1,l,i,o;ri&&(i=l,n=t);return n}function vH(e){var t=e.map(yH);return ef(e).sort(function(n,r){return t[n]-t[r]})}function yH(e){for(var t=0,n=-1,r=e.length,l;++nh&&(h=u),x=b*b*_,y=Math.max(h/x,x/v),y>w){b-=u;break}w=y}o.push(s={value:b,dice:p1?r:1)},n}(bH);function PEe(e,t,n,r,l){var i=e.children,o,a=i.length,s,u=new Array(a+1);for(u[0]=s=o=0;o=f-1){var h=i[d];h.x0=m,h.y0=g,h.x1=b,h.y1=v;return}for(var y=u[d],w=p/2+y,_=d+1,x=f-1;_>>1;u[T]v-g){var C=(m*S+b*k)/p;c(d,_,k,m,g,C,v),c(_,f,S,C,g,b,v)}else{var M=(g*S+v*k)/p;c(d,_,k,m,g,b,M),c(_,f,S,m,M,b,v)}}}function OEe(e,t,n,r,l){(e.depth&1?Ax:Ox)(e,t,n,r,l)}const AEe=function e(t){function n(r,l,i,o,a){if((s=r._squarify)&&s.ratio===t)for(var s,u,c,d,f=-1,p,m=s.length,g=r.value;++f1?r:1)},n}(bH);var dT=new Date,fT=new Date;function Ua(e,t,n,r){function l(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return l.floor=function(i){return e(i=new Date(+i)),i},l.ceil=function(i){return e(i=new Date(i-1)),t(i,1),e(i),i},l.round=function(i){var o=l(i),a=l.ceil(i);return i-o0))return s;do s.push(u=new Date(+i)),t(i,a),e(i);while(u=o)for(;e(o),!i(o);)o.setTime(o-1)},function(o,a){if(o>=o)if(a<0)for(;++a<=0;)for(;t(o,-1),!i(o););else for(;--a>=0;)for(;t(o,1),!i(o););})},n&&(l.count=function(i,o){return dT.setTime(+i),fT.setTime(+o),e(dT),e(fT),Math.floor(n(dT,fT))},l.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?l.filter(r?function(o){return r(o)%i===0}:function(o){return l.count(0,o)%i===0}):l}),l}var Am=Ua(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Am.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ua(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Am};Am.range;var Iy=1e3,tc=6e4,$y=36e5,wH=864e5,_H=6048e5,qk=Ua(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Iy)},function(e,t){return(t-e)/Iy},function(e){return e.getUTCSeconds()});qk.range;var TH=Ua(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Iy)},function(e,t){e.setTime(+e+t*tc)},function(e,t){return(t-e)/tc},function(e){return e.getMinutes()});TH.range;var kH=Ua(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Iy-e.getMinutes()*tc)},function(e,t){e.setTime(+e+t*$y)},function(e,t){return(t-e)/$y},function(e){return e.getHours()});kH.range;var Dx=Ua(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*tc)/wH},function(e){return e.getDate()-1});Dx.range;function wc(e){return Ua(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*tc)/_H})}var Ny=wc(0),Dm=wc(1),SH=wc(2),CH=wc(3),nc=wc(4),MH=wc(5),PH=wc(6);Ny.range;Dm.range;SH.range;CH.range;nc.range;MH.range;PH.range;var OH=Ua(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});OH.range;var Zs=Ua(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});Zs.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Ua(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};Zs.range;var AH=Ua(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*tc)},function(e,t){return(t-e)/tc},function(e){return e.getUTCMinutes()});AH.range;var DH=Ua(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*$y)},function(e,t){return(t-e)/$y},function(e){return e.getUTCHours()});DH.range;var Ex=Ua(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/wH},function(e){return e.getUTCDate()-1});Ex.range;function _c(e){return Ua(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/_H})}var Fy=_c(0),Em=_c(1),EH=_c(2),RH=_c(3),rc=_c(4),LH=_c(5),IH=_c(6);Fy.range;Em.range;EH.range;RH.range;rc.range;LH.range;IH.range;var $H=Ua(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});$H.range;var Qs=Ua(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});Qs.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Ua(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};Qs.range;function pT(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function hT(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function qp(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function DEe(e){var t=e.dateTime,n=e.date,r=e.time,l=e.periods,i=e.days,o=e.shortDays,a=e.months,s=e.shortMonths,u=Up(l),c=Hp(l),d=Up(i),f=Hp(i),p=Up(o),m=Hp(o),g=Up(a),b=Hp(a),v=Up(s),h=Hp(s),y={a:A,A:F,b:j,B:z,c:null,d:R9,e:R9,f:eRe,g:cRe,G:fRe,H:ZEe,I:QEe,j:JEe,L:NH,m:tRe,M:nRe,p:B,q:N,Q:$9,s:N9,S:rRe,u:aRe,U:oRe,V:iRe,w:lRe,W:sRe,x:null,X:null,y:uRe,Y:dRe,Z:pRe,"%":I9},w={a:R,A:q,b:Y,B:L,c:null,d:L9,e:L9,f:vRe,g:MRe,G:ORe,H:hRe,I:mRe,j:gRe,L:jH,m:yRe,M:bRe,p:W,q:U,Q:$9,s:N9,S:xRe,u:wRe,U:_Re,V:TRe,w:kRe,W:SRe,x:null,X:null,y:CRe,Y:PRe,Z:ARe,"%":I9},_={a:C,A:M,b:O,B:D,c:P,d:D9,e:D9,f:GEe,g:A9,G:O9,H:E9,I:E9,j:qEe,L:VEe,m:WEe,M:UEe,p:S,q:BEe,Q:XEe,s:KEe,S:HEe,u:$Ee,U:NEe,V:FEe,w:IEe,W:jEe,x:E,X:I,y:A9,Y:O9,Z:zEe,"%":YEe};y.x=x(n,y),y.X=x(r,y),y.c=x(t,y),w.x=x(n,w),w.X=x(r,w),w.c=x(t,w);function x(V,te){return function(ee){var H=[],Z=-1,G=0,X=V.length,Q,re,ae;for(ee instanceof Date||(ee=new Date(+ee));++Z53)return null;"w"in H||(H.w=1),"Z"in H?(G=hT(qp(H.y,0,1)),X=G.getUTCDay(),G=X>4||X===0?Em.ceil(G):Em(G),G=Ex.offset(G,(H.V-1)*7),H.y=G.getUTCFullYear(),H.m=G.getUTCMonth(),H.d=G.getUTCDate()+(H.w+6)%7):(G=pT(qp(H.y,0,1)),X=G.getDay(),G=X>4||X===0?Dm.ceil(G):Dm(G),G=Dx.offset(G,(H.V-1)*7),H.y=G.getFullYear(),H.m=G.getMonth(),H.d=G.getDate()+(H.w+6)%7)}else("W"in H||"U"in H)&&("w"in H||(H.w="u"in H?H.u%7:"W"in H?1:0),X="Z"in H?hT(qp(H.y,0,1)).getUTCDay():pT(qp(H.y,0,1)).getDay(),H.m=0,H.d="W"in H?(H.w+6)%7+H.W*7-(X+5)%7:H.w+H.U*7-(X+6)%7);return"Z"in H?(H.H+=H.Z/100|0,H.M+=H.Z%100,hT(H)):pT(H)}}function k(V,te,ee,H){for(var Z=0,G=te.length,X=ee.length,Q,re;Z=X)return-1;if(Q=te.charCodeAt(Z++),Q===37){if(Q=te.charAt(Z++),re=_[Q in P9?te.charAt(Z++):Q],!re||(H=re(V,ee,H))<0)return-1}else if(Q!=ee.charCodeAt(H++))return-1}return H}function S(V,te,ee){var H=u.exec(te.slice(ee));return H?(V.p=c[H[0].toLowerCase()],ee+H[0].length):-1}function C(V,te,ee){var H=p.exec(te.slice(ee));return H?(V.w=m[H[0].toLowerCase()],ee+H[0].length):-1}function M(V,te,ee){var H=d.exec(te.slice(ee));return H?(V.w=f[H[0].toLowerCase()],ee+H[0].length):-1}function O(V,te,ee){var H=v.exec(te.slice(ee));return H?(V.m=h[H[0].toLowerCase()],ee+H[0].length):-1}function D(V,te,ee){var H=g.exec(te.slice(ee));return H?(V.m=b[H[0].toLowerCase()],ee+H[0].length):-1}function P(V,te,ee){return k(V,t,te,ee)}function E(V,te,ee){return k(V,n,te,ee)}function I(V,te,ee){return k(V,r,te,ee)}function A(V){return o[V.getDay()]}function F(V){return i[V.getDay()]}function j(V){return s[V.getMonth()]}function z(V){return a[V.getMonth()]}function B(V){return l[+(V.getHours()>=12)]}function N(V){return 1+~~(V.getMonth()/3)}function R(V){return o[V.getUTCDay()]}function q(V){return i[V.getUTCDay()]}function Y(V){return s[V.getUTCMonth()]}function L(V){return a[V.getUTCMonth()]}function W(V){return l[+(V.getUTCHours()>=12)]}function U(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var te=x(V+="",y);return te.toString=function(){return V},te},parse:function(V){var te=T(V+="",!1);return te.toString=function(){return V},te},utcFormat:function(V){var te=x(V+="",w);return te.toString=function(){return V},te},utcParse:function(V){var te=T(V+="",!0);return te.toString=function(){return V},te}}}var P9={"-":"",_:" ",0:"0"},Ha=/^\s*\d+/,EEe=/^%/,REe=/[\\^$*+?|[\]().{}]/g;function yr(e,t,n){var r=e<0?"-":"",l=(r?-e:e)+"",i=l.length;return r+(i68?1900:2e3),n+r[0].length):-1}function zEe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function BEe(e,t,n){var r=Ha.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function WEe(e,t,n){var r=Ha.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function D9(e,t,n){var r=Ha.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function qEe(e,t,n){var r=Ha.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function E9(e,t,n){var r=Ha.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function UEe(e,t,n){var r=Ha.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function HEe(e,t,n){var r=Ha.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function VEe(e,t,n){var r=Ha.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function GEe(e,t,n){var r=Ha.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function YEe(e,t,n){var r=EEe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function XEe(e,t,n){var r=Ha.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function KEe(e,t,n){var r=Ha.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function R9(e,t){return yr(e.getDate(),t,2)}function ZEe(e,t){return yr(e.getHours(),t,2)}function QEe(e,t){return yr(e.getHours()%12||12,t,2)}function JEe(e,t){return yr(1+Dx.count(Zs(e),e),t,3)}function NH(e,t){return yr(e.getMilliseconds(),t,3)}function eRe(e,t){return NH(e,t)+"000"}function tRe(e,t){return yr(e.getMonth()+1,t,2)}function nRe(e,t){return yr(e.getMinutes(),t,2)}function rRe(e,t){return yr(e.getSeconds(),t,2)}function aRe(e){var t=e.getDay();return t===0?7:t}function oRe(e,t){return yr(Ny.count(Zs(e)-1,e),t,2)}function FH(e){var t=e.getDay();return t>=4||t===0?nc(e):nc.ceil(e)}function iRe(e,t){return e=FH(e),yr(nc.count(Zs(e),e)+(Zs(e).getDay()===4),t,2)}function lRe(e){return e.getDay()}function sRe(e,t){return yr(Dm.count(Zs(e)-1,e),t,2)}function uRe(e,t){return yr(e.getFullYear()%100,t,2)}function cRe(e,t){return e=FH(e),yr(e.getFullYear()%100,t,2)}function dRe(e,t){return yr(e.getFullYear()%1e4,t,4)}function fRe(e,t){var n=e.getDay();return e=n>=4||n===0?nc(e):nc.ceil(e),yr(e.getFullYear()%1e4,t,4)}function pRe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+yr(t/60|0,"0",2)+yr(t%60,"0",2)}function L9(e,t){return yr(e.getUTCDate(),t,2)}function hRe(e,t){return yr(e.getUTCHours(),t,2)}function mRe(e,t){return yr(e.getUTCHours()%12||12,t,2)}function gRe(e,t){return yr(1+Ex.count(Qs(e),e),t,3)}function jH(e,t){return yr(e.getUTCMilliseconds(),t,3)}function vRe(e,t){return jH(e,t)+"000"}function yRe(e,t){return yr(e.getUTCMonth()+1,t,2)}function bRe(e,t){return yr(e.getUTCMinutes(),t,2)}function xRe(e,t){return yr(e.getUTCSeconds(),t,2)}function wRe(e){var t=e.getUTCDay();return t===0?7:t}function _Re(e,t){return yr(Fy.count(Qs(e)-1,e),t,2)}function zH(e){var t=e.getUTCDay();return t>=4||t===0?rc(e):rc.ceil(e)}function TRe(e,t){return e=zH(e),yr(rc.count(Qs(e),e)+(Qs(e).getUTCDay()===4),t,2)}function kRe(e){return e.getUTCDay()}function SRe(e,t){return yr(Em.count(Qs(e)-1,e),t,2)}function CRe(e,t){return yr(e.getUTCFullYear()%100,t,2)}function MRe(e,t){return e=zH(e),yr(e.getUTCFullYear()%100,t,2)}function PRe(e,t){return yr(e.getUTCFullYear()%1e4,t,4)}function ORe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?rc(e):rc.ceil(e),yr(e.getUTCFullYear()%1e4,t,4)}function ARe(){return"+0000"}function I9(){return"%"}function $9(e){return+e}function N9(e){return Math.floor(+e/1e3)}var qc,$P,BH,WH;DRe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function DRe(e){return qc=DEe(e),$P=qc.format,BH=qc.parse,qc.utcFormat,WH=qc.utcParse,qc}var Vp={},Gp={},F9;function ERe(){if(F9)return Gp;F9=1,Gp.__esModule=!0,Gp.default=void 0;var e=function(r){if(typeof r=="string")return r;if(r)return r.displayName||r.name||"Component"},t=e;return Gp.default=t,Gp}var j9;function Of(){if(j9)return Vp;j9=1;var e=Cn;Vp.__esModule=!0,Vp.default=void 0;var t=e(ERe()),n=function(i,o){return o+"("+(0,t.default)(i)+")"},r=n;return Vp.default=r,Vp}var ps={},Yp={},z9;function qH(){if(z9)return Yp;z9=1,Yp.__esModule=!0,Yp.default=void 0;var e=function(r,l){return function(i){return i[r]=l,i}},t=e;return Yp.default=t,Yp}var RRe=Cn;ps.__esModule=!0;var NP=ps.default=void 0,LRe=RRe(qH()),IRe=function(t){return(0,LRe.default)("displayName",t)},$Re=IRe;NP=ps.default=$Re;var Xp={},B9;function NRe(){if(B9)return Xp;B9=1;var e=Cn;Xp.__esModule=!0,Xp.default=void 0;var t=ge;e(ps),e(Of());var n=function(i){return function(o){var a=(0,t.createFactory)(o),s=function(c){return a(i(c))};return s}},r=n;return Xp.default=r,Xp}var Rx=Cn;Rx(Ir());Rx(Of());Rx(ps);Rx(NRe());function FRe(e,t){for(var n=-1,r=e==null?0:e.length;++na))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=n&URe?new zRe:void 0;for(i.set(e,t),i.set(t,e);++d{const e=document.querySelector("head");return e||mn(),e},n9=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function f3e(e,t){const n=cr(()=>c3e(e),[e]),r=ge.useRef(null),l=ge.useRef(null),i=$n(Ua(d=>{const f=l.current;f||mn(),f.textContent=d}),[]),o=$n(d=>{const f=r.current;f||mn(),f.textContent=d},[]);li(()=>{!r.current&&!l.current||mn();const d=n9(t),f=n9(t);return r.current=d,l.current=f,d.setAttribute(`${of}-always`,e),f.setAttribute(`${of}-dynamic`,e),y3().appendChild(d),y3().appendChild(f),o(n.always),i(n.resting),()=>{const p=h=>{const g=h.current;g||mn(),y3().removeChild(g),h.current=null};p(r),p(l)}},[t,o,i,n.always,n.resting,e]);const a=$n(()=>i(n.dragging),[i,n.dragging]),s=$n(d=>{if(d==="DROP"){i(n.dropAnimating);return}i(n.userCancel)},[i,n.dropAnimating,n.userCancel]),u=$n(()=>{l.current&&i(n.resting)},[i,n.resting]);return cr(()=>({dragging:a,dropping:s,resting:u}),[a,s,u])}function lU(e,t){return Array.from(e.querySelectorAll(t))}var sU=e=>{var t;return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)||window};function ix(e){return e instanceof sU(e).HTMLElement}function p3e(e,t){const n=`[${lf.contextId}="${e}"]`,r=lU(document,n);if(!r.length)return null;const l=r.find(i=>i.getAttribute(lf.draggableId)===t);return!l||!ix(l)?null:l}function h3e(e){const t=ge.useRef({}),n=ge.useRef(null),r=ge.useRef(null),l=ge.useRef(!1),i=$n(function(f,p){const h={id:f,focus:p};return t.current[f]=h,function(){const b=t.current;b[f]!==h&&delete b[f]}},[]),o=$n(function(f){const p=p3e(e,f);p&&p!==document.activeElement&&p.focus()},[e]),a=$n(function(f,p){n.current===f&&(n.current=p)},[]),s=$n(function(){r.current||l.current&&(r.current=requestAnimationFrame(()=>{r.current=null;const f=n.current;f&&o(f)}))},[o]),u=$n(function(f){n.current=null;const p=document.activeElement;p&&p.getAttribute(lf.draggableId)===f&&(n.current=f)},[]);return li(()=>(l.current=!0,function(){l.current=!1;const f=r.current;f&&cancelAnimationFrame(f)}),[]),cr(()=>({register:i,tryRecordFocus:u,tryRestoreFocusRecorded:s,tryShiftRecord:a}),[i,u,s,a])}function m3e(){const e={draggables:{},droppables:{}},t=[];function n(d){return t.push(d),function(){const p=t.indexOf(d);p!==-1&&t.splice(p,1)}}function r(d){t.length&&t.forEach(f=>f(d))}function l(d){return e.draggables[d]||null}function i(d){const f=l(d);return f||mn(),f}const o={register:d=>{e.draggables[d.descriptor.id]=d,r({type:"ADDITION",value:d})},update:(d,f)=>{const p=e.draggables[f.descriptor.id];p&&p.uniqueId===d.uniqueId&&(delete e.draggables[f.descriptor.id],e.draggables[d.descriptor.id]=d)},unregister:d=>{const f=d.descriptor.id,p=l(f);p&&d.uniqueId===p.uniqueId&&(delete e.draggables[f],e.droppables[d.descriptor.droppableId]&&r({type:"REMOVAL",value:d}))},getById:i,findById:l,exists:d=>!!l(d),getAllByType:d=>Object.values(e.draggables).filter(f=>f.descriptor.type===d)};function a(d){return e.droppables[d]||null}function s(d){const f=a(d);return f||mn(),f}const u={register:d=>{e.droppables[d.descriptor.id]=d},unregister:d=>{const f=a(d.descriptor.id);f&&d.uniqueId===f.uniqueId&&delete e.droppables[d.descriptor.id]},getById:s,findById:a,exists:d=>!!a(d),getAllByType:d=>Object.values(e.droppables).filter(f=>f.descriptor.type===d)};function c(){e.draggables={},e.droppables={},t.length=0}return{draggable:o,droppable:u,subscribe:n,clean:c}}function g3e(){const e=cr(m3e,[]);return ge.useEffect(()=>function(){Ke.version.startsWith("16")||Ke.version.startsWith("17")?requestAnimationFrame(e.clean):e.clean()},[e]),e}var w4=Ke.createContext(null),jy=()=>{const e=document.body;return e||mn(),e};const v3e={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};var y3e=v3e;const b3e=e=>`rfd-announcement-${e}`;function x3e(e){const t=cr(()=>b3e(e),[e]),n=ge.useRef(null);return ge.useEffect(function(){const i=document.createElement("div");return n.current=i,i.id=t,i.setAttribute("aria-live","assertive"),i.setAttribute("aria-atomic","true"),Yt(i.style,y3e),jy().appendChild(i),function(){setTimeout(function(){const s=jy();s.contains(i)&&s.removeChild(i),i===n.current&&(n.current=null)})}},[t]),$n(l=>{const i=n.current;if(i){i.textContent=l;return}},[])}let uU=0;const cU={separator:"::"};function w3e(){uU=0}function _3e(e,t){return t===void 0&&(t=cU),cr(()=>`${e}${t.separator}${uU++}`,[t.separator,e])}function T3e(e,t){t===void 0&&(t=cU);const n=Ke.useId();return cr(()=>`${e}${t.separator}${n}`,[t.separator,e,n])}var _4="useId"in Ke?T3e:_3e;function S3e(e){let{contextId:t,uniqueId:n}=e;return`rfd-hidden-text-${t}-${n}`}function k3e(e){let{contextId:t,text:n}=e;const r=_4("hidden-text",{separator:"-"}),l=cr(()=>S3e({contextId:t,uniqueId:r}),[r,t]);return ge.useEffect(function(){const o=document.createElement("div");return o.id=l,o.textContent=n,o.style.display="none",jy().appendChild(o),function(){const s=jy();s.contains(o)&&s.removeChild(o)}},[l,n]),l}var lx=Ke.createContext(null);function dU(e){const t=ge.useRef(e);return ge.useEffect(()=>{t.current=e}),t}function C3e(){let e=null;function t(){return!!e}function n(o){return o===e}function r(o){e&&mn();const a={abandon:o};return e=a,a}function l(){e||mn(),e=null}function i(){e&&(e.abandon(),l())}return{isClaimed:t,isActive:n,claim:r,release:l,tryAbandon:i}}function Im(e){return e.phase==="IDLE"||e.phase==="DROP_ANIMATING"?!1:e.isDragging}const M3e=9,P3e=13,T4=27,fU=32,O3e=33,A3e=34,D3e=35,E3e=36,R3e=37,L3e=38,I3e=39,$3e=40,N3e={[P3e]:!0,[M3e]:!0};var pU=e=>{N3e[e.keyCode]&&e.preventDefault()};const F3e=(()=>{const e="visibilitychange";return typeof document>"u"?e:[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find(r=>`on${r}`in document)||e})();var sx=F3e;const hU=0,r9=5;function j3e(e,t){return Math.abs(t.x-e.x)>=r9||Math.abs(t.y-e.y)>=r9}const a9={type:"IDLE"};function z3e(e){let{cancel:t,completed:n,getPhase:r,setPhase:l}=e;return[{eventName:"mousemove",fn:i=>{const{button:o,clientX:a,clientY:s}=i;if(o!==hU)return;const u={x:a,y:s},c=r();if(c.type==="DRAGGING"){i.preventDefault(),c.actions.move(u);return}c.type!=="PENDING"&&mn();const d=c.point;if(!j3e(d,u))return;i.preventDefault();const f=c.actions.fluidLift(u);l({type:"DRAGGING",actions:f})}},{eventName:"mouseup",fn:i=>{const o=r();if(o.type!=="DRAGGING"){t();return}i.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"mousedown",fn:i=>{r().type==="DRAGGING"&&i.preventDefault(),t()}},{eventName:"keydown",fn:i=>{if(r().type==="PENDING"){t();return}if(i.keyCode===T4){i.preventDefault(),t();return}pU(i)}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{r().type==="PENDING"&&t()}},{eventName:"webkitmouseforcedown",fn:i=>{const o=r();if(o.type==="IDLE"&&mn(),o.actions.shouldRespectForcePress()){t();return}i.preventDefault()}},{eventName:sx,fn:t}]}function mU(e){const t=ge.useRef(a9),n=ge.useRef(Zs),r=cr(()=>({eventName:"mousedown",fn:function(d){if(d.defaultPrevented||d.button!==hU||d.ctrlKey||d.metaKey||d.shiftKey||d.altKey)return;const f=e.findClosestDraggableId(d);if(!f)return;const p=e.tryGetLock(f,o,{sourceEvent:d});if(!p)return;d.preventDefault();const h={x:d.clientX,y:d.clientY};n.current(),u(p,h)}}),[e]),l=cr(()=>({eventName:"webkitmouseforcewillbegin",fn:c=>{if(c.defaultPrevented)return;const d=e.findClosestDraggableId(c);if(!d)return;const f=e.findOptionsForDraggable(d);f&&(f.shouldRespectForcePress||e.canGetLock(d)&&c.preventDefault())}}),[e]),i=$n(function(){const d={passive:!1,capture:!0};n.current=Pi(window,[l,r],d)},[l,r]),o=$n(()=>{t.current.type!=="IDLE"&&(t.current=a9,n.current(),i())},[i]),a=$n(()=>{const c=t.current;o(),c.type==="DRAGGING"&&c.actions.cancel({shouldBlockNextClick:!0}),c.type==="PENDING"&&c.actions.abort()},[o]),s=$n(function(){const d={capture:!0,passive:!1},f=z3e({cancel:a,completed:o,getPhase:()=>t.current,setPhase:p=>{t.current=p}});n.current=Pi(window,f,d)},[a,o]),u=$n(function(d,f){t.current.type!=="IDLE"&&mn(),t.current={type:"PENDING",point:f,actions:d},s()},[s]);li(function(){return i(),function(){n.current()}},[i])}function B3e(){}const W3e={[A3e]:!0,[O3e]:!0,[E3e]:!0,[D3e]:!0};function q3e(e,t){function n(){t(),e.cancel()}function r(){t(),e.drop()}return[{eventName:"keydown",fn:l=>{if(l.keyCode===T4){l.preventDefault(),n();return}if(l.keyCode===fU){l.preventDefault(),r();return}if(l.keyCode===$3e){l.preventDefault(),e.moveDown();return}if(l.keyCode===L3e){l.preventDefault(),e.moveUp();return}if(l.keyCode===I3e){l.preventDefault(),e.moveRight();return}if(l.keyCode===R3e){l.preventDefault(),e.moveLeft();return}if(W3e[l.keyCode]){l.preventDefault();return}pU(l)}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:sx,fn:n}]}function gU(e){const t=ge.useRef(B3e),n=cr(()=>({eventName:"keydown",fn:function(i){if(i.defaultPrevented||i.keyCode!==fU)return;const o=e.findClosestDraggableId(i);if(!o)return;const a=e.tryGetLock(o,c,{sourceEvent:i});if(!a)return;i.preventDefault();let s=!0;const u=a.snapLift();t.current();function c(){s||mn(),s=!1,t.current(),r()}t.current=Pi(window,q3e(u,c),{capture:!0,passive:!1})}}),[e]),r=$n(function(){const i={passive:!1,capture:!0};t.current=Pi(window,[n],i)},[n]);li(function(){return r(),function(){t.current()}},[r])}const b3={type:"IDLE"},U3e=120,H3e=.15;function V3e(e){let{cancel:t,getPhase:n}=e;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:r=>{r.preventDefault()}},{eventName:"keydown",fn:r=>{if(n().type!=="DRAGGING"){t();return}r.keyCode===T4&&r.preventDefault(),t()}},{eventName:sx,fn:t}]}function G3e(e){let{cancel:t,completed:n,getPhase:r}=e;return[{eventName:"touchmove",options:{capture:!1},fn:l=>{const i=r();if(i.type!=="DRAGGING"){t();return}i.hasMoved=!0;const{clientX:o,clientY:a}=l.touches[0],s={x:o,y:a};l.preventDefault(),i.actions.move(s)}},{eventName:"touchend",fn:l=>{const i=r();if(i.type!=="DRAGGING"){t();return}l.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"touchcancel",fn:l=>{if(r().type!=="DRAGGING"){t();return}l.preventDefault(),t()}},{eventName:"touchforcechange",fn:l=>{const i=r();i.type==="IDLE"&&mn();const o=l.touches[0];if(!o||!(o.force>=H3e))return;const s=i.actions.shouldRespectForcePress();if(i.type==="PENDING"){s&&t();return}if(s){if(i.hasMoved){l.preventDefault();return}t();return}l.preventDefault()}},{eventName:sx,fn:t}]}function vU(e){const t=ge.useRef(b3),n=ge.useRef(Zs),r=$n(function(){return t.current},[]),l=$n(function(p){t.current=p},[]),i=cr(()=>({eventName:"touchstart",fn:function(p){if(p.defaultPrevented)return;const h=e.findClosestDraggableId(p);if(!h)return;const g=e.tryGetLock(h,a,{sourceEvent:p});if(!g)return;const b=p.touches[0],{clientX:v,clientY:m}=b,y={x:v,y:m};n.current(),d(g,y)}}),[e]),o=$n(function(){const p={capture:!0,passive:!1};n.current=Pi(window,[i],p)},[i]),a=$n(()=>{const f=t.current;f.type!=="IDLE"&&(f.type==="PENDING"&&clearTimeout(f.longPressTimerId),l(b3),n.current(),o())},[o,l]),s=$n(()=>{const f=t.current;a(),f.type==="DRAGGING"&&f.actions.cancel({shouldBlockNextClick:!0}),f.type==="PENDING"&&f.actions.abort()},[a]),u=$n(function(){const p={capture:!0,passive:!1},h={cancel:s,completed:a,getPhase:r},g=Pi(window,G3e(h),p),b=Pi(window,V3e(h),p);n.current=function(){g(),b()}},[s,r,a]),c=$n(function(){const p=r();p.type!=="PENDING"&&mn();const h=p.actions.fluidLift(p.point);l({type:"DRAGGING",actions:h,hasMoved:!1})},[r,l]),d=$n(function(p,h){r().type!=="IDLE"&&mn();const g=setTimeout(c,U3e);l({type:"PENDING",point:h,actions:p,longPressTimerId:g}),u()},[u,r,l,c]);li(function(){return o(),function(){n.current();const h=r();h.type==="PENDING"&&(clearTimeout(h.longPressTimerId),l(b3))}},[r,o,l]),li(function(){return Pi(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}const Y3e=["input","button","textarea","select","option","optgroup","video","audio"];function yU(e,t){if(t==null)return!1;if(Y3e.includes(t.tagName.toLowerCase()))return!0;const r=t.getAttribute("contenteditable");return r==="true"||r===""?!0:t===e?!1:yU(e,t.parentElement)}function X3e(e,t){const n=t.target;return ix(n)?yU(e,n):!1}var K3e=e=>nl(e.getBoundingClientRect()).center;function Z3e(e){return e instanceof sU(e).Element}const Q3e=(()=>{const e="matches";return typeof document>"u"?e:[e,"msMatchesSelector","webkitMatchesSelector"].find(r=>r in Element.prototype)||e})();function bU(e,t){return e==null?null:e[Q3e](t)?e:bU(e.parentElement,t)}function J3e(e,t){return e.closest?e.closest(t):bU(e,t)}function eTe(e){return`[${lf.contextId}="${e}"]`}function tTe(e,t){const n=t.target;if(!Z3e(n))return null;const r=eTe(e),l=J3e(n,r);return!l||!ix(l)?null:l}function nTe(e,t){const n=tTe(e,t);return n?n.getAttribute(lf.draggableId):null}function rTe(e,t){const n=`[${ek.contextId}="${e}"]`,l=lU(document,n).find(i=>i.getAttribute(ek.id)===t);return!l||!ix(l)?null:l}function aTe(e){e.preventDefault()}function $0(e){let{expected:t,phase:n,isLockActive:r,shouldWarn:l}=e;return!(!r()||t!==n)}function xU(e){let{lockAPI:t,store:n,registry:r,draggableId:l}=e;if(t.isClaimed())return!1;const i=r.draggable.findById(l);return!(!i||!i.options.isEnabled||!rU(n.getState(),l))}function oTe(e){let{lockAPI:t,contextId:n,store:r,registry:l,draggableId:i,forceSensorStop:o,sourceEvent:a}=e;if(!xU({lockAPI:t,store:r,registry:l,draggableId:i}))return null;const u=l.draggable.getById(i),c=rTe(n,u.descriptor.id);if(!c||a&&!u.options.canDragInteractiveElements&&X3e(c,a))return null;const d=t.claim(o||Zs);let f="PRE_DRAG";function p(){return u.options.shouldRespectForcePress}function h(){return t.isActive(d)}function g(w,S){$0({expected:w,phase:f,isLockActive:h,shouldWarn:!0})&&r.dispatch(S())}const b=g.bind(null,"DRAGGING");function v(w){function S(){t.release(),f="COMPLETED"}f!=="PRE_DRAG"&&(S(),mn()),r.dispatch(Vwe(w.liftActionArgs)),f="DRAGGING";function k(C,T){if(T===void 0&&(T={shouldBlockNextClick:!1}),w.cleanup(),T.shouldBlockNextClick){const M=Pi(window,[{eventName:"click",fn:aTe,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(M)}S(),r.dispatch(Xq({reason:C}))}return{isActive:()=>$0({expected:"DRAGGING",phase:f,isLockActive:h,shouldWarn:!1}),shouldRespectForcePress:p,drop:C=>k("DROP",C),cancel:C=>k("CANCEL",C),...w.actions}}function m(w){const S=Om(C=>{b(()=>Yq({client:C}))});return{...v({liftActionArgs:{id:i,clientSelection:w,movementMode:"FLUID"},cleanup:()=>S.cancel(),actions:{move:S}}),move:S}}function y(){const w={moveUp:()=>b(t_e),moveRight:()=>b(r_e),moveDown:()=>b(n_e),moveLeft:()=>b(a_e)};return v({liftActionArgs:{id:i,clientSelection:K3e(c),movementMode:"SNAP"},cleanup:Zs,actions:w})}function x(){$0({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!0})&&t.release()}return{isActive:()=>$0({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!1}),shouldRespectForcePress:p,fluidLift:m,snapLift:y,abort:x}}const iTe=[mU,gU,vU];function lTe(e){let{contextId:t,store:n,registry:r,customSensors:l,enableDefaultSensors:i}=e;const o=[...i?iTe:[],...l||[]],a=ge.useState(()=>C3e())[0],s=$n(function(v,m){Im(v)&&!Im(m)&&a.tryAbandon()},[a]);li(function(){let v=n.getState();return n.subscribe(()=>{const y=n.getState();s(v,y),v=y})},[a,n,s]),li(()=>a.tryAbandon,[a.tryAbandon]);const u=$n(b=>xU({lockAPI:a,registry:r,store:n,draggableId:b}),[a,r,n]),c=$n((b,v,m)=>oTe({lockAPI:a,registry:r,contextId:t,store:n,draggableId:b,forceSensorStop:v||null,sourceEvent:m&&m.sourceEvent?m.sourceEvent:null}),[t,a,r,n]),d=$n(b=>nTe(t,b),[t]),f=$n(b=>{const v=r.draggable.findById(b);return v?v.options:null},[r.draggable]),p=$n(function(){a.isClaimed()&&(a.tryAbandon(),n.getState().phase!=="IDLE"&&n.dispatch(h4()))},[a,n]),h=$n(()=>a.isClaimed(),[a]),g=cr(()=>({canGetLock:u,tryGetLock:c,findClosestDraggableId:d,findOptionsForDraggable:f,tryReleaseLock:p,isLockClaimed:h}),[u,c,d,f,p,h]);for(let b=0;b({onBeforeCapture:t=>{const n=()=>{e.onBeforeCapture&&e.onBeforeCapture(t)};Ke.version.startsWith("16")||Ke.version.startsWith("17")?n():bf.flushSync(n)},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}),uTe=e=>({...Lm,...e.autoScrollerOptions,durationDampening:{...Lm.durationDampening,...e.autoScrollerOptions}});function jp(e){return e.current||mn(),e.current}function cTe(e){const{contextId:t,setCallbacks:n,sensors:r,nonce:l,dragHandleUsageInstructions:i}=e,o=ge.useRef(null),a=dU(e),s=$n(()=>sTe(a.current),[a]),u=$n(()=>uTe(a.current),[a]),c=x3e(t),d=k3e({contextId:t,text:i}),f=f3e(t,l),p=$n(T=>{jp(o).dispatch(T)},[]),h=cr(()=>EE({publishWhileDragging:Ywe,updateDroppableScroll:Kwe,updateDroppableIsEnabled:Zwe,updateDroppableIsCombineEnabled:Qwe,collectionStarting:Xwe},p),[p]),g=g3e(),b=cr(()=>q_e(g,h),[g,h]),v=cr(()=>i3e({scrollWindow:U_e,scrollDroppable:b.scrollDroppable,getAutoScrollerOptions:u,...EE({move:Yq},p)}),[b.scrollDroppable,p,u]),m=h3e(t),y=cr(()=>j_e({announce:c,autoScroller:v,dimensionMarshal:b,focusMarshal:m,getResponders:s,styleMarshal:f}),[c,v,b,m,s,f]);o.current=y;const x=$n(()=>{const T=jp(o);T.getState().phase!=="IDLE"&&T.dispatch(h4())},[]),_=$n(()=>{const T=jp(o).getState();return T.phase==="DROP_ANIMATING"?!0:T.phase==="IDLE"?!1:T.isDragging},[]),w=cr(()=>({isDragging:_,tryAbort:x}),[_,x]);n(w);const S=$n(T=>rU(jp(o).getState(),T),[]),k=$n(()=>Ru(jp(o).getState()),[]),C=cr(()=>({marshal:b,focus:m,contextId:t,canLift:S,isMovementAllowed:k,dragHandleUsageInstructionsId:d,registry:g}),[t,b,d,m,S,k,g]);return lTe({contextId:t,store:y,registry:g,customSensors:r||null,enableDefaultSensors:e.enableDefaultSensors!==!1}),ge.useEffect(()=>x,[x]),Ke.createElement(lx.Provider,{value:C},Ke.createElement(T2e,{context:w4,store:y},e.children))}let wU=0;function dTe(){wU=0}function fTe(){return cr(()=>`${wU++}`,[])}function pTe(){return Ke.useId()}var hTe="useId"in Ke?pTe:fTe;function mTe(){"useId"in Ke||(dTe(),w3e())}function gTe(e){const t=hTe(),n=e.dragHandleUsageInstructions||_v.dragHandleUsageInstructions;return Ke.createElement(L2e,null,r=>Ke.createElement(cTe,{nonce:e.nonce,contextId:t,setCallbacks:r,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children))}const o9={dragging:5e3,dropAnimating:4500},vTe=(e,t)=>t?Qh.drop(t.duration):e?Qh.snap:Qh.fluid,yTe=(e,t)=>{if(e)return t?Rm.opacity.drop:Rm.opacity.combining},bTe=e=>e.forceShouldAnimate!=null?e.forceShouldAnimate:e.mode==="SNAP";function xTe(e){const n=e.dimension.client,{offset:r,combineWith:l,dropping:i}=e,o=!!l,a=bTe(e),s=!!i,u=s?QS.drop(r,o):QS.moveTo(r);return{position:"fixed",top:n.marginBox.top,left:n.marginBox.left,boxSizing:"border-box",width:n.borderBox.width,height:n.borderBox.height,transition:vTe(a,i),transform:u,opacity:yTe(o,s),zIndex:s?o9.dropAnimating:o9.dragging,pointerEvents:"none"}}function wTe(e){return{transform:QS.moveTo(e.offset),transition:e.shouldAnimateDisplacement?void 0:"none"}}function _Te(e){return e.type==="DRAGGING"?xTe(e):wTe(e)}function TTe(e,t,n){n===void 0&&(n=Ha);const r=window.getComputedStyle(t),l=t.getBoundingClientRect(),i=Tq(l,r),o=Iy(i,n),a={client:i,tagName:t.tagName.toLowerCase(),display:r.display},s={x:i.marginBox.width,y:i.marginBox.height};return{descriptor:e,placeholder:a,displaceBy:s,client:i,page:o}}function STe(e){const t=_4("draggable"),{descriptor:n,registry:r,getDraggableRef:l,canDragInteractiveElements:i,shouldRespectForcePress:o,isEnabled:a}=e,s=cr(()=>({canDragInteractiveElements:i,shouldRespectForcePress:o,isEnabled:a}),[i,a,o]),u=$n(p=>{const h=l();return h||mn(),TTe(n,h,p)},[n,l]),c=cr(()=>({uniqueId:t,descriptor:n,options:s,getDimension:u}),[n,u,s,t]),d=ge.useRef(c),f=ge.useRef(!0);li(()=>(r.draggable.register(d.current),()=>r.draggable.unregister(d.current)),[r.draggable]),li(()=>{if(f.current){f.current=!1;return}const p=d.current;d.current=c,r.draggable.update(c,p)},[c,r.draggable])}var S4=Ke.createContext(null);function zy(e){const t=ge.useContext(e);return t||mn(),t}function kTe(e){e.preventDefault()}const CTe=e=>{const t=ge.useRef(null),n=$n(function(w){w===void 0&&(w=null),t.current=w},[]),r=$n(()=>t.current,[]),{contextId:l,dragHandleUsageInstructionsId:i,registry:o}=zy(lx),{type:a,droppableId:s}=zy(S4),u=cr(()=>({id:e.draggableId,index:e.index,type:a,droppableId:s}),[e.draggableId,e.index,a,s]),{children:c,draggableId:d,isEnabled:f,shouldRespectForcePress:p,canDragInteractiveElements:h,isClone:g,mapped:b,dropAnimationFinished:v}=e;if(!g){const w=cr(()=>({descriptor:u,registry:o,getDraggableRef:r,canDragInteractiveElements:h,shouldRespectForcePress:p,isEnabled:f}),[u,o,r,h,p,f]);STe(w)}const m=cr(()=>f?{tabIndex:0,role:"button","aria-describedby":i,"data-rfd-drag-handle-draggable-id":d,"data-rfd-drag-handle-context-id":l,draggable:!1,onDragStart:kTe}:null,[l,i,d,f]),y=$n(w=>{b.type==="DRAGGING"&&b.dropping&&w.propertyName==="transform"&&(Ke.version.startsWith("16")||Ke.version.startsWith("17")?v():bf.flushSync(v))},[v,b]),x=cr(()=>{const w=_Te(b),S=b.type==="DRAGGING"&&b.dropping?y:void 0;return{innerRef:n,draggableProps:{"data-rfd-draggable-context-id":l,"data-rfd-draggable-id":d,style:w,onTransitionEnd:S},dragHandleProps:m}},[l,m,d,b,y,n]),_=cr(()=>({draggableId:u.id,type:u.type,source:{index:u.index,droppableId:u.droppableId}}),[u.droppableId,u.id,u.index,u.type]);return Ke.createElement(Ke.Fragment,null,c(x,b.snapshot,_))};var MTe=CTe,_U=(e,t)=>e===t,TU=e=>{const{combine:t,destination:n}=e;return n?n.droppableId:t?t.droppableId:null};const PTe=e=>e.combine?e.combine.draggableId:null,OTe=e=>e.at&&e.at.type==="COMBINE"?e.at.combine.draggableId:null;function ATe(){const e=Ua((l,i)=>({x:l,y:i})),t=Ua(function(l,i,o,a,s){return o===void 0&&(o=null),a===void 0&&(a=null),s===void 0&&(s=null),{isDragging:!0,isClone:i,isDropAnimating:!!s,dropAnimation:s,mode:l,draggingOver:o,combineWith:a,combineTargetFor:null}}),n=Ua(function(l,i,o,a,s,u,c){return s===void 0&&(s=null),u===void 0&&(u=null),c===void 0&&(c=null),{mapped:{type:"DRAGGING",dropping:null,draggingOver:s,combineWith:u,mode:i,offset:l,dimension:o,forceShouldAnimate:c,snapshot:t(i,a,s,u,null)}}});return(l,i)=>{if(Im(l)){if(l.critical.draggable.id!==i.draggableId)return null;const o=l.current.client.offset,a=l.dimensions.draggables[i.draggableId],s=ii(l.impact),u=OTe(l.impact),c=l.forceShouldAnimate;return n(e(o.x,o.y),l.movementMode,a,i.isClone,s,u,c)}if(l.phase==="DROP_ANIMATING"){const o=l.completed;if(o.result.draggableId!==i.draggableId)return null;const a=i.isClone,s=l.dimensions.draggables[i.draggableId],u=o.result,c=u.mode,d=TU(u),f=PTe(u),h={duration:l.dropDuration,curve:g4.drop,moveTo:l.newHomeClientOffset,opacity:f?Rm.opacity.drop:null,scale:f?Rm.scale.drop:null};return{mapped:{type:"DRAGGING",offset:l.newHomeClientOffset,dimension:s,dropping:h,draggingOver:d,combineWith:f,mode:c,forceShouldAnimate:null,snapshot:t(c,a,d,f,h)}}}return null}}function SU(e){return e===void 0&&(e=null),{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const DTe={mapped:{type:"SECONDARY",offset:Ha,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:SU(null)}};function ETe(){const e=Ua((o,a)=>({x:o,y:a})),t=Ua(SU),n=Ua(function(o,a,s){return a===void 0&&(a=null),{mapped:{type:"SECONDARY",offset:o,combineTargetFor:a,shouldAnimateDisplacement:s,snapshot:t(a)}}}),r=o=>o?n(Ha,o,!0):null,l=(o,a,s,u)=>{const c=s.displaced.visible[o],d=!!(u.inVirtualList&&u.effected[o]),f=rx(s),p=f&&f.draggableId===o?a:null;if(!c){if(!d)return r(p);if(s.displaced.invisible[o])return null;const b=Pf(u.displacedBy.point),v=e(b.x,b.y);return n(v,p,!0)}if(d)return r(p);const h=s.displacedBy.point,g=e(h.x,h.y);return n(g,p,c.shouldAnimate)};return(o,a)=>{if(Im(o))return o.critical.draggable.id===a.draggableId?null:l(a.draggableId,o.critical.draggable.id,o.impact,o.afterCritical);if(o.phase==="DROP_ANIMATING"){const s=o.completed;return s.result.draggableId===a.draggableId?null:l(a.draggableId,s.result.draggableId,s.impact,s.afterCritical)}return null}}const RTe=()=>{const e=ATe(),t=ETe();return(r,l)=>e(r,l)||t(r,l)||DTe},LTe={dropAnimationFinished:Kq},ITe=wq(RTe,LTe,null,{context:w4,areStatePropsEqual:_U})(MTe);var $Te=ITe;function kU(e){return zy(S4).isUsingCloneFor===e.draggableId&&!e.isClone?null:Ke.createElement($Te,e)}function NTe(e){const t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,n=!!e.disableInteractiveElementBlocking,r=!!e.shouldRespectForcePress;return Ke.createElement(kU,Yt({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:r}))}const CU=e=>t=>e===t,FTe=CU("scroll"),jTe=CU("auto"),i9=(e,t)=>t(e.overflowX)||t(e.overflowY),zTe=e=>{const t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return i9(n,FTe)||i9(n,jTe)},BTe=()=>!1,MU=e=>e==null?null:e===document.body?BTe()?e:null:e===document.documentElement?null:zTe(e)?e:MU(e.parentElement);var WTe=MU,tk=e=>({x:e.scrollLeft,y:e.scrollTop});const PU=e=>e?window.getComputedStyle(e).position==="fixed"?!0:PU(e.parentElement):!1;var qTe=e=>{const t=WTe(e),n=PU(e);return{closestScrollable:t,isFixedOnPage:n}},UTe=e=>{let{descriptor:t,isEnabled:n,isCombineEnabled:r,isFixedOnPage:l,direction:i,client:o,page:a,closest:s}=e;const u=(()=>{if(!s)return null;const{scrollSize:p,client:h}=s,g=eU({scrollHeight:p.scrollHeight,scrollWidth:p.scrollWidth,height:h.paddingBox.height,width:h.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:h,scrollSize:p,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:g,diff:{value:Ha,displacement:Ha}}}})(),c=i==="vertical"?u4:Rq,d=af({page:a,withPlaceholder:null,axis:c,frame:u});return{descriptor:t,isCombineEnabled:r,isFixedOnPage:l,axis:c,isEnabled:n,client:o,page:a,frame:u,subject:d}};const HTe=(e,t)=>{const n=Sq(e);if(!t||e!==t)return n;const r=n.paddingBox.top-t.scrollTop,l=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,o=l+t.scrollWidth,s=o4({top:r,right:o,bottom:i,left:l},n.border);return i4({borderBox:s,margin:n.margin,border:n.border,padding:n.padding})};var VTe=e=>{let{ref:t,descriptor:n,env:r,windowScroll:l,direction:i,isDropDisabled:o,isCombineEnabled:a,shouldClipSubject:s}=e;const u=r.closestScrollable,c=HTe(t,u),d=Iy(c,l),f=(()=>{if(!u)return null;const h=Sq(u),g={scrollHeight:u.scrollHeight,scrollWidth:u.scrollWidth};return{client:h,page:Iy(h,l),scroll:tk(u),scrollSize:g,shouldClipSubject:s}})();return UTe({descriptor:n,isEnabled:!o,isCombineEnabled:a,isFixedOnPage:r.isFixedOnPage,direction:i,client:c,page:d,closest:f})};const GTe={passive:!1},YTe={passive:!0};var l9=e=>e.shouldPublishImmediately?GTe:YTe;const N0=e=>e&&e.env.closestScrollable||null;function XTe(e){const t=ge.useRef(null),n=zy(lx),r=_4("droppable"),{registry:l,marshal:i}=n,o=dU(e),a=cr(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),s=ge.useRef(a),u=cr(()=>Ua((x,_)=>{t.current||mn();const w={x,y:_};i.updateDroppableScroll(a.id,w)}),[a.id,i]),c=$n(()=>{const x=t.current;return!x||!x.env.closestScrollable?Ha:tk(x.env.closestScrollable)},[]),d=$n(()=>{const x=c();u(x.x,x.y)},[c,u]),f=cr(()=>Om(d),[d]),p=$n(()=>{const x=t.current,_=N0(x);if(x&&_||mn(),x.scrollOptions.shouldPublishImmediately){d();return}f()},[f,d]),h=$n((x,_)=>{t.current&&mn();const w=o.current,S=w.getDroppableRef();S||mn();const k=qTe(S),C={ref:S,descriptor:a,env:k,scrollOptions:_};t.current=C;const T=VTe({ref:S,descriptor:a,env:k,windowScroll:x,direction:w.direction,isDropDisabled:w.isDropDisabled,isCombineEnabled:w.isCombineEnabled,shouldClipSubject:!w.ignoreContainerClipping}),M=k.closestScrollable;return M&&(M.setAttribute(t9.contextId,n.contextId),M.addEventListener("scroll",p,l9(C.scrollOptions))),T},[n.contextId,a,p,o]),g=$n(()=>{const x=t.current,_=N0(x);return x&&_||mn(),tk(_)},[]),b=$n(()=>{const x=t.current;x||mn();const _=N0(x);t.current=null,_&&(f.cancel(),_.removeAttribute(t9.contextId),_.removeEventListener("scroll",p,l9(x.scrollOptions)))},[p,f]),v=$n(x=>{const _=t.current;_||mn();const w=N0(_);w||mn(),w.scrollTop+=x.y,w.scrollLeft+=x.x},[]),m=cr(()=>({getDimensionAndWatchScroll:h,getScrollWhileDragging:g,dragStopped:b,scroll:v}),[b,h,g,v]),y=cr(()=>({uniqueId:r,descriptor:a,callbacks:m}),[m,a,r]);li(()=>(s.current=y.descriptor,l.droppable.register(y),()=>{t.current&&b(),l.droppable.unregister(y)}),[m,a,b,y,i,l.droppable]),li(()=>{t.current&&i.updateDroppableIsEnabled(s.current.id,!e.isDropDisabled)},[e.isDropDisabled,i]),li(()=>{t.current&&i.updateDroppableIsCombineEnabled(s.current.id,e.isCombineEnabled)},[e.isCombineEnabled,i])}function x3(){}const s9={width:0,height:0,margin:B2e},KTe=e=>{let{isAnimatingOpenOnMount:t,placeholder:n,animate:r}=e;return t||r==="close"?s9:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}},ZTe=e=>{let{isAnimatingOpenOnMount:t,placeholder:n,animate:r}=e;const l=KTe({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:l.width,height:l.height,marginTop:l.margin.top,marginRight:l.margin.right,marginBottom:l.margin.bottom,marginLeft:l.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:r!=="none"?Qh.placeholder:null}},QTe=e=>{const t=ge.useRef(null),n=$n(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]),{animate:r,onTransitionEnd:l,onClose:i,contextId:o}=e,[a,s]=ge.useState(e.animate==="open");ge.useEffect(()=>a?r!=="open"?(n(),s(!1),x3):t.current?x3:(t.current=setTimeout(()=>{t.current=null,s(!1)}),n):x3,[r,a,n]);const u=$n(d=>{d.propertyName==="height"&&(l(),r==="close"&&i())},[r,i,l]),c=ZTe({isAnimatingOpenOnMount:a,animate:e.animate,placeholder:e.placeholder});return Ke.createElement(e.placeholder.tagName,{style:c,"data-rfd-placeholder-context-id":o,onTransitionEnd:u,ref:e.innerRef})};var JTe=Ke.memo(QTe);class eSe extends Ke.PureComponent{constructor(){super(...arguments),this.state={isVisible:!!this.props.on,data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{this.state.animate==="close"&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(t,n){return t.shouldAnimate?t.on?{isVisible:!0,data:t.on,animate:"open"}:n.isVisible?{isVisible:!0,data:n.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!t.on,data:t.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const t={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(t)}}const tSe=e=>{const t=ge.useContext(lx);t||mn();const{contextId:n,isMovementAllowed:r}=t,l=ge.useRef(null),i=ge.useRef(null),{children:o,droppableId:a,type:s,mode:u,direction:c,ignoreContainerClipping:d,isDropDisabled:f,isCombineEnabled:p,snapshot:h,useClone:g,updateViewportMaxScroll:b,getContainerForClone:v}=e,m=$n(()=>l.current,[]),y=$n(function(M){M===void 0&&(M=null),l.current=M},[]);$n(()=>i.current,[]);const x=$n(function(M){M===void 0&&(M=null),i.current=M},[]),_=$n(()=>{r()&&b({maxScroll:nU()})},[r,b]);XTe({droppableId:a,type:s,mode:u,direction:c,isDropDisabled:f,isCombineEnabled:p,ignoreContainerClipping:d,getDroppableRef:m});const w=cr(()=>Ke.createElement(eSe,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},M=>{let{onClose:O,data:D,animate:P}=M;return Ke.createElement(JTe,{placeholder:D,onClose:O,innerRef:x,animate:P,contextId:n,onTransitionEnd:_})}),[n,_,e.placeholder,e.shouldAnimatePlaceholder,x]),S=cr(()=>({innerRef:y,placeholder:w,droppableProps:{"data-rfd-droppable-id":a,"data-rfd-droppable-context-id":n}}),[n,a,w,y]),k=g?g.dragging.draggableId:null,C=cr(()=>({droppableId:a,type:s,isUsingCloneFor:k}),[a,k,s]);function T(){if(!g)return null;const{dragging:M,render:O}=g,D=Ke.createElement(kU,{draggableId:M.draggableId,index:M.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(P,E)=>O(P,E,M));return Sh.createPortal(D,v())}return Ke.createElement(S4.Provider,{value:C},o(S,h),T())};var nSe=tSe;function rSe(){return document.body||mn(),document.body}const u9={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:rSe},OU=e=>{let t={...e},n;for(n in u9)e[n]===void 0&&(t={...t,[n]:u9[n]});return t},w3=(e,t)=>e===t.droppable.type,c9=(e,t)=>t.draggables[e.draggable.id],aSe=()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},n=Ua(i=>({draggableId:i.id,type:i.type,source:{index:i.index,droppableId:i.droppableId}})),r=Ua((i,o,a,s,u,c)=>{const d=u.descriptor.id;if(u.descriptor.droppableId===i){const h=c?{render:c,dragging:n(u.descriptor)}:null,g={isDraggingOver:a,draggingOverWith:a?d:null,draggingFromThisWith:d,isUsingPlaceholder:!0};return{placeholder:u.placeholder,shouldAnimatePlaceholder:!1,snapshot:g,useClone:h}}if(!o)return t;if(!s)return e;const p={isDraggingOver:a,draggingOverWith:d,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:u.placeholder,shouldAnimatePlaceholder:!0,snapshot:p,useClone:null}});return(i,o)=>{const a=OU(o),s=a.droppableId,u=a.type,c=!a.isDropDisabled,d=a.renderClone;if(Im(i)){const f=i.critical;if(!w3(u,f))return t;const p=c9(f,i.dimensions),h=ii(i.impact)===s;return r(s,c,h,h,p,d)}if(i.phase==="DROP_ANIMATING"){const f=i.completed;if(!w3(u,f.critical))return t;const p=c9(f.critical,i.dimensions);return r(s,c,TU(f.result)===s,ii(f.impact)===s,p,d)}if(i.phase==="IDLE"&&i.completed&&!i.shouldFlush){const f=i.completed;if(!w3(u,f.critical))return t;const p=ii(f.impact)===s,h=!!(f.impact.at&&f.impact.at.type==="COMBINE"),g=f.critical.droppable.id===s;return p?h?e:t:g?e:t}return t}},oSe={updateViewportMaxScroll:e_e},iSe=wq(aSe,oSe,(e,t,n)=>({...OU(n),...e,...t}),{context:w4,areStatePropsEqual:_U})(nSe);var lSe=iSe;const sSe=Object.freeze(Object.defineProperty({__proto__:null,DragDropContext:gTe,Draggable:NTe,Droppable:lSe,resetServerContext:mTe,useKeyboardSensor:gU,useMouseSensor:mU,useTouchSensor:vU},Symbol.toStringTag,{value:"Module"})),k4=er(sSe);var d9;function uSe(){return d9||(d9=1,function(e){var t=Hn,n=Ma();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(jr()),l=t(kc),i=t(za()),o=t(pq),a=t(Zxe),s=t(tx),u=t(Kr),c=g(ge),d=k4,f=sl(),p=mg();function h(x){if(typeof WeakMap!="function")return null;var _=new WeakMap,w=new WeakMap;return(h=function(k){return k?w:_})(x)}function g(x,_){if(x&&x.__esModule)return x;if(x===null||n(x)!=="object"&&typeof x!="function")return{default:x};var w=h(_);if(w&&w.has(x))return w.get(x);var S={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in x)if(C!=="default"&&Object.prototype.hasOwnProperty.call(x,C)){var T=k?Object.getOwnPropertyDescriptor(x,C):null;T&&(T.get||T.set)?Object.defineProperty(S,C,T):S[C]=x[C]}return S.default=x,w&&w.set(x,S),S}function b(x,_){var w=Object.keys(x);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(x);_&&(S=S.filter(function(k){return Object.getOwnPropertyDescriptor(x,k).enumerable})),w.push.apply(w,S)}return w}function v(x){for(var _=1;_0&&c.default.createElement(s.default,{variant:"caption",sx:{padding:1}},_.groupedBy),x.groupColumns.map(function(O,D){return c.default.createElement(d.Draggable,{key:O.tableData.id.toString(),draggableId:O.tableData.id.toString(),index:D},function(P,E){var I;return c.default.createElement(l.default,(0,r.default)({ref:P.innerRef},P.draggableProps,P.dragHandleProps,{sx:k(E.isDragging,P.draggableProps.style)}),c.default.createElement(a.default,(0,r.default)({},P.dragHandleProps,S.groupChipProps,{onClick:function(){return x.onSortChanged(O)},label:c.default.createElement(l.default,{sx:{display:"flex",alignItems:"center"}},c.default.createElement(l.default,{sx:{float:"left"}},O.title),O.tableData.groupSort&&c.default.createElement(w.SortArrow,{sx:{transition:"300ms ease all",transform:O.tableData.groupSort==="asc"?"rotate(-180deg)":"none",fontSize:18}})),sx:v({boxShadow:"none",textTransform:"none"},(I=S.groupChipProps)!==null&&I!==void 0?I:{}),onDelete:function(){return x.onGroupRemoved(O,D)}})))})}),x.groupColumns.length===0&&c.default.createElement(s.default,{variant:"caption",sx:{padding:1}},_.placeholder),T.placeholder)}))}m.defaultProps={},m.propTypes={forwardedRef:u.default.element,className:u.default.string,onSortChanged:u.default.func,onGroupRemoved:u.default.func,onGroupChange:u.default.func,persistentGroupingsId:u.default.string};var y=c.default.forwardRef(function(_,w){return c.default.createElement(m,(0,r.default)({},_,{forwardedRef:w}))});e.default=y}(c3)),c3}var _3={},f9;function cSe(){return f9||(f9=1,function(e){var t=Hn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(jr()),r=t(za()),l=t(vu()),i=t(Cf()),o=t(zl),a=t(ms),s=t(Mf),u=t(Cc),c=t(Kr),d=t(ge),f=sl();function p(v,m){var y=Object.keys(v);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(v);m&&(x=x.filter(function(_){return Object.getOwnPropertyDescriptor(v,_).enumerable})),y.push.apply(y,x)}return y}function h(v){for(var m=1;m0&&_++;var w=v.groups[v.level],S;v.groupData.isExpanded&&(v.groups.length>v.level+1?S=v.groupData.groups.map(function(z,N){return d.default.createElement(v.components.GroupRow,{actions:v.actions,key:z.value||""+N,columns:v.columns,components:v.components,detailPanel:v.detailPanel,getFieldValue:v.getFieldValue,groupData:z,groups:v.groups,level:v.level+1,path:[].concat((0,i.default)(v.path),[N]),onGroupExpandChanged:v.onGroupExpandChanged,onGroupSelected:v.onGroupSelected,onRowSelected:v.onRowSelected,onRowClick:v.onRowClick,onToggleDetailPanel:v.onToggleDetailPanel,onTreeExpandChanged:v.onTreeExpandChanged,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,hasAnyEditingRow:v.hasAnyEditingRow,isTreeData:v.isTreeData,cellEditable:v.cellEditable,onCellEditStarted:v.onCellEditStarted,onCellEditFinished:v.onCellEditFinished,scrollWidth:v.scrollWidth,treeDataMaxLevel:v.treeDataMaxLevel})}):S=v.groupData.data.map(function(z,N){return z.tableData.editing?d.default.createElement(v.components.EditRow,{columns:v.columns,components:v.components,data:z,path:[].concat((0,i.default)(v.path),[z.tableData.uuid]),localization:v.localization,key:N,mode:z.tableData.editing,isTreeData:v.isTreeData,detailPanel:v.detailPanel,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,getFieldValue:v.getFieldValue,onBulkEditRowChanged:v.onBulkEditRowChanged,scrollWidth:v.scrollWidth}):d.default.createElement(v.components.Row,{actions:v.actions,key:N,columns:v.columns,components:v.components,data:z,detailPanel:v.detailPanel,level:(v.level||0)+1,getFieldValue:v.getFieldValue,path:[].concat((0,i.default)(v.path),[z.tableData.uuid]),onRowSelected:v.onRowSelected,onRowClick:v.onRowClick,onToggleDetailPanel:v.onToggleDetailPanel,isTreeData:v.isTreeData,onTreeExpandChanged:v.onTreeExpandChanged,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,hasAnyEditingRow:v.hasAnyEditingRow,cellEditable:v.cellEditable,onCellEditStarted:v.onCellEditStarted,onCellEditFinished:v.onCellEditFinished,scrollWidth:v.scrollWidth,treeDataMaxLevel:v.treeDataMaxLevel})}));for(var k=[],C=0;C0&&A!==F,checked:A===F,onChange:function(N,R){return v.onGroupSelected&&v.onGroupSelected(R,v.groupData.path)},style:{marginRight:8}}),d.default.createElement("b",null,M,O)))),S)}g.defaultProps={columns:[],groups:[],level:0},g.propTypes={actions:c.default.array,columns:c.default.arrayOf(c.default.object),components:c.default.object,cellEditable:c.default.object,detailPanel:c.default.oneOfType([c.default.func,c.default.arrayOf(c.default.object)]),forwardedRef:c.default.element,getFieldValue:c.default.func,groupData:c.default.object,groups:c.default.arrayOf(c.default.object),hasAnyEditingRow:c.default.bool,icons:c.default.object,isTreeData:c.default.bool.isRequired,level:c.default.number,localization:c.default.object,onBulkEditRowChanged:c.default.func,onCellEditFinished:c.default.func,onCellEditStarted:c.default.func,onEditingApproved:c.default.func,onEditingCanceled:c.default.func,onGroupExpandChanged:c.default.func,onRowClick:c.default.func,onGroupSelected:c.default.func,onRowSelected:c.default.func,onToggleDetailPanel:c.default.func.isRequired,onTreeExpandChanged:c.default.func.isRequired,path:c.default.arrayOf(c.default.number),scrollWidth:c.default.number.isRequired,treeDataMaxLevel:c.default.number};var b=d.default.forwardRef(function(m,y){return d.default.createElement(g,(0,n.default)({},m,{forwardedRef:y}))});e.default=b}(_3)),_3}var T3={};const dSe=er(Zde),fSe=er(Dfe);var p9;function pSe(){return p9||(p9=1,function(e){var t=Hn,n=Ma();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableHeader=k,e.styles=e.default=void 0;var r=t(kc),l=t(Mc),i=t(jr()),o=t(za()),a=t(vu()),s=t(kf()),u=t(ge),c=t(Kr),d=t(dSe),f=t(ms),p=t(zl),h=t(fSe),g=t(Cc),b=k4,v=_(bs()),m=sl(),y=["onColumnResized","classes","sx","columns"];function x(P){if(typeof WeakMap!="function")return null;var E=new WeakMap,I=new WeakMap;return(x=function(F){return F?I:E})(P)}function _(P,E){if(P&&P.__esModule)return P;if(P===null||n(P)!=="object"&&typeof P!="function")return{default:P};var I=x(E);if(I&&I.has(P))return I.get(P);var A={},F=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var j in P)if(j!=="default"&&Object.prototype.hasOwnProperty.call(P,j)){var B=F?Object.getOwnPropertyDescriptor(P,j):null;B&&(B.get||B.set)?Object.defineProperty(A,j,B):A[j]=P[j]}return A.default=P,I&&I.set(P,A),A}function w(P,E){var I=Object.keys(P);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(P);E&&(A=A.filter(function(F){return Object.getOwnPropertyDescriptor(P,F).enumerable})),I.push.apply(I,A)}return I}function S(P){for(var E=1;E-1)&&!ce.tableData.hiddden}).sort(function(ce,we){return ce.tableData.columnOrder-we.tableData.columnOrder}).map(function(ce,we,Z){var re=ce.align!==void 0?ce.align:["numeric","currency"].indexOf(ce.type)!==-1?"right":"left",de=ce.title;if(z.draggable&&ce.draggable!==!1?de=u.default.createElement(b.Draggable,{key:ce.tableData.id,draggableId:ce.tableData.id.toString(),index:we,style:{zIndex:99}},function(ue,me){return u.default.createElement("div",(0,i.default)({ref:ue.innerRef},ue.draggableProps,ue.dragHandleProps,{style:me.isDragging?ue.draggableProps.style:{position:"relative",minWidth:0,display:"flex",flexDirection:re==="right"?"row-reverse":void 0}}),ce.sorting!==!1&&j.sorting&&j.allowSorting?u.default.createElement(T,{columnDef:ce,keepSortDirectionOnColumnSwitch:z.keepSortDirectionOnColumnSwitch,icon:N.SortArrow,thirdSortClick:z.thirdSortClick,onOrderChange:j.onOrderChange,orderByCollection:j.orderByCollection,showColumnSortOrder:z.showColumnSortOrder,sortOrderIndicatorStyle:z.sortOrderIndicatorStyle},ce.title):ce.title)}):ce.sorting!==!1&&j.sorting&&j.allowSorting&&(de=u.default.createElement(T,{columnDef:ce,keepSortDirectionOnColumnSwitch:z.keepSortDirectionOnColumnSwitch,icon:N.SortArrow,thirdSortClick:z.thirdSortClick,onOrderChange:j.onOrderChange,orderByCollection:j.orderByCollection,showColumnSortOrder:z.showColumnSortOrder,sortOrderIndicatorStyle:z.sortOrderIndicatorStyle},ce.title)),ce.tooltip&&(de=u.default.createElement(l.default,{title:ce.tooltip,placement:"bottom"},u.default.createElement("span",null,de))),z.tableLayout==="fixed"&&z.columnResizable&&ce.resizable!==!1&&!(z.tableWidth==="full"&&we===Z.length-1)){var _e=N.Resize?N.Resize:function(ue){return u.default.createElement(r.default,(0,i.default)({},ue,{"data-test-id":"drag_handle"}))};de=u.default.createElement(r.default,{sx:M.headerWrap(re==="right")},u.default.createElement(r.default,{sx:M.headerContent(re==="right")},de),u.default.createElement("div",null),u.default.createElement(_e,{sx:M.headerResize((W==null?void 0:W.col)&&W.col.tableData.id===ce.tableData.id),onMouseDown:function(me){return V(me,ce,we)}}))}return u.default.createElement(p.default,{key:ce.tableData.id,align:re,sx:M.header,style:ie(ce),size:Pe,"aria-label":ce.ariaLabel},de)})}function pe(){var Pe=v.selectionMaxWidth(S(S({},j),{},{options:z}),j.treeDataMaxLevel);return u.default.createElement(p.default,{padding:"none",key:"key-selection-column",sx:M.header,style:S(S({},z.headerStyle),{},{width:Pe})},z.showSelectAllCheckbox&&u.default.createElement(g.default,(0,i.default)({indeterminate:j.selectedCount>0&&j.selectedCount0&&j.selectedCount>=j.dataCount,onChange:function(we,Z){return j.onAllSelected&&j.onAllSelected(Z)}},z.headerSelectionProps)))}function ke(){return u.default.createElement(p.default,{padding:"none",key:"key-detail-panel-column",sx:M.header,style:z.headerStyle})}var Ce=se();if(z.selection&&Ce.splice(0,0,pe()),j.showActionsColumn)if(z.actionsColumnIndex>=0){var Oe=0;z.selection&&(Oe=1),Ce.splice(z.actionsColumnIndex+Oe,0,ae())}else z.actionsColumnIndex===-1&&Ce.push(ae());return j.hasDetailPanel&&z.showDetailPanelIcon&&(z.detailPanelColumnAlignment==="right"?Ce.push(ke()):Ce.splice(0,0,ke())),j.isTreeData>0&&Ce.splice(0,0,u.default.createElement(p.default,{padding:"none",key:"key-tree-data-header",sx:M.header,style:z.headerStyle})),Q.filter(function(Pe){return Pe.tableData.groupOrder>-1}).forEach(function(Pe){Ce.splice(0,0,u.default.createElement(p.default,{padding:"checkbox",key:"key-group-header"+Pe.tableData.id,sx:M.header,style:z.headerStyle}))}),u.default.createElement(d.default,{ref:j.forwardedRef,classes:I,sx:A},u.default.createElement(f.default,{sx:M.headerRow},Ce))}var C=function(E,I,A,F,j){return A.tableData.id!==E?j&&I||"asc":I==="asc"?"desc":I==="desc"&&F?"":"asc"};function T(P){var E=P.columnDef,I=P.keepSortDirectionOnColumnSwitch,A=P.icon,F=P.thirdSortClick,j=P.onOrderChange,B=P.children,z=P.orderByCollection,N=P.showColumnSortOrder,R=P.sortOrderIndicatorStyle,q=z.find(function(H){var G=H.orderBy;return G===E.tableData.id}),Y=(q||I)&&q&&q.orderDirection||"asc",L="none";q&&Y==="asc"?L=E.ariaSortAsc||"ascending":q&&Y==="desc"&&(L=E.ariaSortDesc||"descending");var W=q&&q.orderBy;return u.default.createElement(u.default.Fragment,null,u.default.createElement(h.default,{role:"columnheader","aria-sort":L,"aria-label":E.ariaLabel,IconComponent:A,active:!!q,"data-testid":"mtableheader-sortlabel",direction:Y,onClick:function(){var G=C(W,Y,E,F,I);j(E.tableData.id,G,q&&q.sortOrder)}},B),u.default.createElement("span",{style:S(S({},R),{},{width:"1em"}),"data-testid":"material-table-column-sort-order-indicator"},N&&q?q.sortOrder:""))}k.defaultProps={dataCount:0,selectedCount:0,orderByCollection:[],allowSorting:!0},k.propTypes={columns:c.default.array.isRequired,classes:c.default.object,sx:c.default.object,dataCount:c.default.number,hasDetailPanel:c.default.bool.isRequired,selectedCount:c.default.number,onAllSelected:c.default.func,onOrderChange:c.default.func,showActionsColumn:c.default.bool,orderByCollection:c.default.array,showColumnSortOrder:c.default.bool,tooltip:c.default.string,allowSorting:c.default.bool};var M={headerRow:{zIndex:10},header:{top:0},headerWrap:function(E){return{display:"flex",alignItems:"center",position:"relative",left:4}},headerWrapRight:function(E){return{display:"flex",alignItems:"center",pr:E?1:void 0,position:"relative",left:4,justifyContent:"flex-end"}},headerContent:function(E){return{minWidth:0,display:"flex",flex:"1 0 100%",flexDirection:E?"row-reverse":void 0,justifyContent:"flex-start",alignItems:"center",width:"100%",position:"relative"}},headerResize:function(E){return{color:E?"primary.main":"inherit",flex:1,cursor:"col-resize",position:"absolute",height:"100%",width:16,display:"flex",justifyContent:"center",right:-8,zIndex:20}}};e.styles=M;var O=u.default.forwardRef(function(E,I){return u.default.createElement(k,(0,i.default)({},E,{forwardedRef:I}))}),D=u.default.memo(O);e.default=D}(T3)),T3}var S3={};const hSe=er(ale);var h9;function mSe(){return h9||(h9=1,function(e){var t=Hn,n=Ma();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(jr()),l=t(Mf),i=t(Mc),o=t(kc),a=t(hSe),s=t(Kr),u=t(ge),c=Sf,d=h(bs()),f=sl();function p(y){if(typeof WeakMap!="function")return null;var x=new WeakMap,_=new WeakMap;return(p=function(S){return S?_:x})(y)}function h(y,x){if(y&&y.__esModule)return y;if(y===null||n(y)!=="object"&&typeof y!="function")return{default:y};var _=p(x);if(_&&_.has(y))return _.get(y);var w={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in y)if(k!=="default"&&Object.prototype.hasOwnProperty.call(y,k)){var C=S?Object.getOwnPropertyDescriptor(y,k):null;C&&(C.get||C.set)?Object.defineProperty(w,k,C):w[k]=y[k]}return w.default=y,_&&_.set(y,w),w}function g(y){var x=(0,c.useTheme)(),_=(0,f.useLocalizationStore)().pagination,w=(0,f.useIconStore)(),S=function(Y){y.onPageChange(Y,0)},k=function(Y){y.onPageChange(Y,y.page-1)},C=function(Y){y.onPageChange(Y,y.page+1)},T=function(Y){return function(L){y.onPageChange(L,Y)}},M=function(Y){y.onPageChange(Y,Math.max(0,Math.ceil(y.count/y.rowsPerPage)-1))};function O(q,Y,L,W){var H=[];W=Math.max(1,Math.min(10,W));for(var G=Math.max(q-W+1,0);G<=Math.min(Y+W-1,L);G++){var te=G===y.page?"contained":"text";H.push(u.default.createElement(a.default,{size:"small",style:{boxShadow:"none",maxWidth:"30px",maxHeight:"30px",minWidth:"30px",minHeight:"30px"},disabled:G===y.page,variant:te,onClick:T(G),key:G},G+1))}return u.default.createElement("span",null,H)}var D=y.count,P=y.page,E=y.rowsPerPage,I=y.showFirstLastPageButtons,A=y.numberOfPagesAround,F=Math.ceil(D/E)-1,j=Math.max(P-1,0),B=Math.min(F,P+1),z=d.parseFirstLastPageButtons(I,x.direction==="rtl"),N=z.first,R=z.last;return u.default.createElement(o.default,{sx:{flexShrink:0,color:"text.secondary",marginLeft:2.5,display:"flex",alignItems:"center"},ref:y.forwardedRef},N&&u.default.createElement(i.default,{title:_.firstTooltip},u.default.createElement("span",null,u.default.createElement(l.default,{onClick:S,disabled:P===0,"aria-label":_.firstAriaLabel,size:"large"},x.direction==="rtl"?u.default.createElement(w.LastPage,null):u.default.createElement(w.FirstPage,null)))),u.default.createElement(i.default,{title:_.previousTooltip},u.default.createElement("span",null,u.default.createElement(l.default,{onClick:k,disabled:P===0,"aria-label":_.previousAriaLabel},u.default.createElement(w.PreviousPage,null)))),u.default.createElement(o.default,{sx:{display:{xs:"false",sm:"false",md:"block"}}},O(j,B,F,A)),u.default.createElement(i.default,{title:_.nextTooltip},u.default.createElement("span",null,u.default.createElement(l.default,{onClick:C,disabled:P>=F,"aria-label":_.nextAriaLabel,size:"large"},x.direction==="rtl"?u.default.createElement(w.PreviousPage,null):u.default.createElement(w.NextPage,null)))),R&&u.default.createElement(i.default,{title:_.lastTooltip},u.default.createElement("span",null,u.default.createElement(l.default,{onClick:M,disabled:P>=Math.ceil(D/E)-1,"aria-label":_.lastAriaLabel,size:"large"},x.direction==="rtl"?u.default.createElement(w.FirstPage,null):u.default.createElement(w.LastPage,null)))))}g.propTypes={onPageChange:s.default.func,page:s.default.number,forwardedRef:s.default.func,count:s.default.number,rowsPerPage:s.default.number,numberOfPagesAround:s.default.number,classes:s.default.object,theme:s.default.any,showFirstLastPageButtons:s.default.oneOfType([s.default.object,s.default.bool])},g.defaultProps={showFirstLastPageButtons:!0};var b=u.default.forwardRef(function(x,_){return u.default.createElement(g,(0,r.default)({},x,{forwardedRef:_}))}),v=b,m=v;e.default=m}(S3)),S3}var k3={},m9;function gSe(){return m9||(m9=1,function(e){var t=Hn,n=Ma();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(jr()),l=t(kc),i=t(Mf),o=t(Mc),a=t(tx),s=t(Kr),u=t(ge),c=Sf,d=h(bs()),f=mg();function p(y){if(typeof WeakMap!="function")return null;var x=new WeakMap,_=new WeakMap;return(p=function(S){return S?_:x})(y)}function h(y,x){if(y&&y.__esModule)return y;if(y===null||n(y)!=="object"&&typeof y!="function")return{default:y};var _=p(x);if(_&&_.has(y))return _.get(y);var w={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in y)if(k!=="default"&&Object.prototype.hasOwnProperty.call(y,k)){var C=S?Object.getOwnPropertyDescriptor(y,k):null;C&&(C.get||C.set)?Object.defineProperty(w,k,C):w[k]=y[k]}return w.default=y,_&&_.set(y,w),w}function g(y){var x=(0,c.useTheme)(),_=(0,f.useIconStore)(),w=(0,f.useLocalizationStore)().pagination,S=function(j){y.onPageChange(j,0)},k=function(j){y.onPageChange(j,y.page-1)},C=function(j){y.onPageChange(j,y.page+1)},T=function(j){y.onPageChange(j,Math.max(0,Math.ceil(y.count/y.rowsPerPage)-1))},M=y.count,O=y.page,D=y.rowsPerPage,P=y.showFirstLastPageButtons,E=d.parseFirstLastPageButtons(P,x.direction==="rtl"),I=E.first,A=E.last;return u.default.createElement(l.default,{sx:{flexShrink:0,color:"text.secondary",display:"flex",alignItems:"center"},ref:y.forwardedRef},I&&u.default.createElement(o.default,{title:w.firstTooltip},u.default.createElement("span",null,u.default.createElement(i.default,{onClick:S,disabled:O===0,"aria-label":w.firstAriaLabel,size:"large"},x.direction==="rtl"?u.default.createElement(_.LastPage,null):u.default.createElement(_.FirstPage,null)))),u.default.createElement(o.default,{title:w.previousTooltip},u.default.createElement("span",null,u.default.createElement(i.default,{onClick:k,disabled:O===0,"aria-label":w.previousAriaLabel},x.direction==="rtl"?u.default.createElement(_.NextPage,null):u.default.createElement(_.PreviousPage,null)))),u.default.createElement(a.default,{variant:"caption",style:{flex:1,textAlign:"center",alignSelf:"center",flexBasis:"inherit"}},w.labelDisplayedRows.replace("{from}",y.count===0?0:y.page*y.rowsPerPage+1).replace("{to}",Math.min((y.page+1)*y.rowsPerPage,y.count)).replace("{count}",y.count)),u.default.createElement(o.default,{title:w.nextTooltip},u.default.createElement("span",null,u.default.createElement(i.default,{onClick:C,disabled:O>=Math.ceil(M/D)-1,"aria-label":w.nextAriaLabel},x.direction==="rtl"?u.default.createElement(_.PreviousPage,null):u.default.createElement(_.NextPage,null)))),A&&u.default.createElement(o.default,{title:w.lastTooltip},u.default.createElement("span",null,u.default.createElement(i.default,{onClick:T,disabled:O>=Math.ceil(M/D)-1,"aria-label":w.lastAriaLabel,size:"large"},x.direction==="rtl"?u.default.createElement(_.FirstPage,null):u.default.createElement(_.LastPage,null)))))}g.propTypes={onPageChange:s.default.func,page:s.default.number,count:s.default.number,rowsPerPage:s.default.number,classes:s.default.object,localization:s.default.object,showFirstLastPageButtons:s.default.oneOfType([s.default.object,s.default.bool]),forwardedRef:s.default.func},g.defaultProps={showFirstLastPageButtons:!0};var b=u.default.forwardRef(function(x,_){return u.default.createElement(g,(0,r.default)({},x,{forwardedRef:_}))}),v=b,m=v;e.default=m}(k3)),k3}var C3={},g9;function vSe(){return g9||(g9=1,function(e){var t=Hn,n=Ma();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableSummaryRow=v,e.default=void 0;var r=t(ms),l=t(Ma()),i=t(Cf()),o=t(zl),a=t(za()),s=h(ge),u=ex(),c=h(bs()),d=sl(),f=t(Kr);function p(y){if(typeof WeakMap!="function")return null;var x=new WeakMap,_=new WeakMap;return(p=function(S){return S?_:x})(y)}function h(y,x){if(y&&y.__esModule)return y;if(y===null||n(y)!=="object"&&typeof y!="function")return{default:y};var _=p(x);if(_&&_.has(y))return _.get(y);var w={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in y)if(k!=="default"&&Object.prototype.hasOwnProperty.call(y,k)){var C=S?Object.getOwnPropertyDescriptor(y,k):null;C&&(C.get||C.set)?Object.defineProperty(w,k,C):w[k]=y[k]}return w.default=y,_&&_.set(y,w),w}function g(y,x){var _=Object.keys(y);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(y);x&&(w=w.filter(function(S){return Object.getOwnPropertyDescriptor(y,S).enumerable})),_.push.apply(_,w)}return _}function b(y){for(var x=1;x1&&arguments[1]!==void 0?arguments[1]:1,E=c.elementSize(b(b({},_),{},{options:S})),I=P*c.baseIconSize(b(b({},_),{},{options:S}));return s.createElement(o.default,{key:"placeholder.".concat(D),size:E,padding:"none",style:{width:I,padding:"0px 5px",boxSizing:"border-box"}})}var C=[],T=[],M=0;if(S.selection&&C.push(k(M++)),_.actions&&_.actions.filter(function(D){return D.position==="row"||typeof D=="function"}).length>0){var O=c.rowActions(_).length;S.actionsColumnIndex===-1?T.push(k(M++,O)):S.actionsColumnIndex>=0&&C.push(k(M++,O))}return _.detailPanel&&S.showDetailPanelIcon&&(S.detailPanelColumnAlignment==="right"?T.push(k(M++)):C.push(k(M++))),_.isTreeData&&C.push(k(M++)),s.createElement(r.default,null,C,(0,i.default)(x).sort(function(D,P){return D.tableData.columnOrder-P.tableData.columnOrder}).map(function(D,P){var E=w({index:D.tableData.columnOrder,column:D,columns:x}),I=D.align!==void 0?D.align:["numeric","currency"].indexOf(D.type)!==-1?"right":"left",A="",F=(0,u.getStyle)({columnDef:D,scrollWidth:0});return(0,l.default)(E)==="object"&&E!==null?(A=E.value,F=E.style):A=E,s.createElement(o.default,{key:P,style:F,align:I},A)}),T)}v.propTypes={columns:f.default.array,renderSummaryRow:f.default.func};var m=v;e.default=m}(C3)),C3}var M3={};const ySe=er(bce);var v9;function bSe(){return v9||(v9=1,function(e){var t=Hn,n=Ma();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableToolbar=C,e.default=void 0;var r=t(jr()),l=t(za()),i=t(kc),o=t(vu()),a=t(Cc),s=t(dq),u=t(Mf),c=t(ySe),d=t(S5),f=t(Ib),p=t(pq),h=t(Mc),g=t(tx),b=Sf,v=t(Kr),m=_(ge),y=sl();function x(P){if(typeof WeakMap!="function")return null;var E=new WeakMap,I=new WeakMap;return(x=function(F){return F?I:E})(P)}function _(P,E){if(P&&P.__esModule)return P;if(P===null||n(P)!=="object"&&typeof P!="function")return{default:P};var I=x(E);if(I&&I.has(P))return I.get(P);var A={},F=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var j in P)if(j!=="default"&&Object.prototype.hasOwnProperty.call(P,j)){var B=F?Object.getOwnPropertyDescriptor(P,j):null;B&&(B.get||B.set)?Object.defineProperty(A,j,B):A[j]=P[j]}return A.default=P,I&&I.set(P,A),A}function w(P,E){var I=Object.keys(P);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(P);E&&(A=A.filter(function(F){return Object.getOwnPropertyDescriptor(P,F).enumerable})),I.push.apply(I,A)}return I}function S(P){for(var E=1;EOe.tableData.columnOrder?1:-1}),pe=O(P.data()),ke=pe.map(function(Ce){return se.reduce(function(Oe,Pe){var ce;return typeof Pe.customExport=="function"?ce=Pe.customExport(Ce):ce=P.getFieldValue(Ce,Pe),Oe[Pe.field]=ce,Oe},{})});return[se,ke]};function V(){return te.search?m.default.createElement(f.default,{autoFocus:te.searchAutoFocus,sx:te.searchFieldAlignment==="left"&&te.showTitle===!1?void 0:T.searchField,value:j,onChange:function(se){return U(se.target.value)},placeholder:I.searchPlaceholder,variant:te.searchFieldVariant,InputProps:{startAdornment:m.default.createElement(s.default,{position:"start"},m.default.createElement(h.default,{title:I.searchTooltip},m.default.createElement(G.Search,{fontSize:"small"}))),endAdornment:m.default.createElement(s.default,{position:"end"},m.default.createElement(u.default,{disabled:!j,onClick:function(){return U("")},"aria-label":I.clearSearchAriaLabel},m.default.createElement(G.ResetSearch,{fontSize:"small","aria-label":"clear"}))),style:te.searchFieldStyle,inputProps:{"aria-label":I.searchAriaLabel}}}):null}function X(ie){var se=ie?"toolbarOnSelect":"toolbar";return m.default.createElement("div",{style:{display:"flex"}},te.columnsButton&&!ie&&m.default.createElement("span",null,m.default.createElement(h.default,{title:I.showColumnsTitle},m.default.createElement(u.default,{color:"inherit",onClick:function(ke){return H(ke.currentTarget)},"aria-label":I.showColumnsAriaLabel},m.default.createElement(G.ViewColumn,null))),m.default.createElement(c.default,{anchorEl:W,open:!!W,onClose:function(){return H(null)}},m.default.createElement(d.default,{key:"text",disabled:!0,style:{opacity:1,fontWeight:600,fontSize:12}},I.addRemoveColumns),P.columns.map(function(pe){var ke=pe.hiddenByColumnsButton!==void 0?pe.hiddenByColumnsButton:P.columnsHiddenInColumnsButton;return ke?null:m.default.createElement("li",{key:pe.tableData.id},m.default.createElement(d.default,{sx:T.formControlLabel,component:"label",htmlFor:"column-toggle-".concat(pe.tableData.id),disabled:pe.removable===!1},m.default.createElement(a.default,{checked:!pe.hidden,id:"column-toggle-".concat(pe.tableData.id),onChange:function(){return P.onColumnsChanged(pe,!pe.hidden)}}),m.default.createElement("span",null,pe.title)))}))),te.exportMenu.length>0&&m.default.createElement("span",null,m.default.createElement(h.default,{title:I.exportTitle},m.default.createElement(u.default,{color:"inherit",onClick:function(ke){return q(ke.currentTarget)},"aria-label":I.exportAriaLabel},m.default.createElement(G.Export,null))),m.default.createElement(c.default,{anchorEl:R,open:!!R,onClose:function(){return q(null)}},te.exportMenu.map(function(pe,ke){var Ce=Q(),Oe=(0,o.default)(Ce,2),Pe=Oe[0],ce=Oe[1];return m.default.createElement(d.default,{key:"".concat(pe.label).concat(ke),onClick:function(){pe.exportFunc(Pe,ce,{searchedData:P.dataManager.searchedData,filteredData:P.dataManager.filteredData,groupedData:P.dataManager.groupedData,selectedData:ee}),q(null)}},pe.label)}))),m.default.createElement("span",null,m.default.createElement(P.components.Actions,{actions:P.actions&&P.actions.filter(function(pe){return pe.position===se}),data:ie?ee:void 0,components:P.components})))}function K(){return m.default.createElement(i.default,{sx:T.actions},m.default.createElement("div",null,X(ee.length>0)))}function ne(ie){var se=typeof ie=="string"?m.default.createElement(g.default,{variant:"h6",style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},ie):ie;return m.default.createElement(i.default,{sx:T.title},se)}var ae=te.showTextRowsSelected&&ee.length>0?typeof I.nRowsSelected=="function"?I.nRowsSelected(ee.length):I.nRowsSelected.replace("{0}",ee.length):te.showTitle?P.title:null;return m.default.createElement(p.default,{ref:P.forwardedRef,className:P.className,sx:S(S({},T.root),te.showTextRowsSelected&&ee.length>0?T.highlight(E):{})},ae&&ne(ae),te.searchFieldAlignment==="left"&&V(),te.toolbarButtonAlignment==="left"&&K(),m.default.createElement(i.default,{sx:T.spacer}),te.searchFieldAlignment==="right"&&V(),te.toolbarButtonAlignment==="right"&&K())}C.defaultProps={actions:[],columns:[],columnsHiddenInColumnsButton:!1,searchText:"",originalData:[],title:"No Title!"},C.propTypes={actions:v.default.array,className:v.default.string,columns:v.default.array,components:v.default.object.isRequired,getFieldValue:v.default.func.isRequired,onColumnsChanged:v.default.func.isRequired,dataManager:v.default.object.isRequired,searchText:v.default.string,onSearchChanged:v.default.func.isRequired,originalData:v.default.array,title:v.default.oneOfType([v.default.element,v.default.string]),renderData:v.default.array,data:v.default.oneOfType([v.default.array,v.default.func]),exportAllData:v.default.bool,exportMenu:v.default.arrayOf(v.default.shape({name:v.default.string,handler:v.default.func})),searchAutoFocus:v.default.bool,classes:v.default.object};var T={root:{paddingRight:1,paddingLeft:2},highlight:function(E){return E.palette.mode==="light"?{color:E.palette.secondary.main,backgroundColor:(0,b.lighten)(E.palette.secondary.light,.85)}:{color:E.palette.text.primary,backgroundColor:E.palette.secondary.dark}},spacer:{flex:"1 1 10%"},actions:{color:"text.secondary"},title:{overflow:"hidden"},searchField:{minWidth:150,paddingLeft:2},formControlLabel:{px:1}},M=m.default.forwardRef(function(E,I){return m.default.createElement(C,(0,r.default)({},E,{forwardedRef:I}))});function O(P){for(var E=P;Array.isArray((I=E)===null||I===void 0||(A=I[0])===null||A===void 0?void 0:A.data);){var I,A;E=E.map(function(F){return F.groups.length!==0?F.groups:F.data}).flat()}return E}var D=m.default.memo(M);e.default=D}(M3)),M3}var y9;function ux(){return y9||(y9=1,function(e){var t=Hn;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Container",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"MTableAction",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"MTableActions",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"MTableBody",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"MTableBodyRow",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"MTableCell",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"MTableCustomIcon",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"MTableEditCell",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"MTableEditField",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"MTableEditRow",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"MTableFilterRow",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"MTableGroupRow",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"MTableGroupbar",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"MTableHeader",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"MTablePagination",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"MTableScrollbar",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"MTableSteppedPagination",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"MTableSummaryRow",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"MTableToolbar",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"OverlayError",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"OverlayLoading",{enumerable:!0,get:function(){return n.default}});var n=t(dpe()),r=t(nhe()),l=t(ohe()),i=t(lhe()),o=t(fhe()),a=t(Pxe()),s=t(Oxe()),u=t(Rxe()),c=t(Lxe()),d=t(Fxe()),f=t(Bxe()),p=t(Wxe()),h=t(qxe()),g=t(fq()),b=t(uSe()),v=t(cSe()),m=t(pSe()),y=t(mSe()),x=t(gSe()),_=t(vSe()),w=t(bSe())}(a_)),a_}var b9;function AU(){return b9||(b9=1,function(e){var t=Hn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(cpe),r=ux(),l={Action:r.MTableAction,Actions:r.MTableActions,Body:r.MTableBody,Cell:r.MTableCell,Container:r.Container,EditCell:r.MTableEditCell,EditField:r.MTableEditField,EditRow:r.MTableEditRow,FilterRow:r.MTableFilterRow,Groupbar:r.MTableGroupbar,GroupRow:r.MTableGroupRow,Header:r.MTableHeader,OverlayLoading:r.OverlayLoading,OverlayError:r.OverlayError,Pagination:n.default,Row:r.MTableBodyRow,SummaryRow:r.MTableSummaryRow,Toolbar:r.MTableToolbar};e.default=l}(r_)),r_}var x9;function xSe(){if(x9)return vp;x9=1;var e=Hn;Object.defineProperty(vp,"__esModule",{value:!0}),vp.defaultProps=void 0;var t=e(AU()),n=e(UB()),r=e(WB()),l=e(qB()),i={actions:[],classes:{},columns:[],components:t.default,data:[],icons:n.default,isLoading:!1,title:"Table Title",options:l.default,localization:r.default,style:{}};return vp.defaultProps=i,vp}var zp={},Bp={},w9;function C4(){if(w9)return Bp;w9=1,Object.defineProperty(Bp,"__esModule",{value:!0}),Bp.ALL_COLUMNS=void 0;var e="all_columns";return Bp.ALL_COLUMNS=e,Bp}var _9;function wSe(){if(_9)return zp;_9=1;var e=Hn;Object.defineProperty(zp,"__esModule",{value:!0}),zp.propTypes=void 0;var t=e(Kr),n=C4(),r=t.default.shape({current:t.default.element}),l=t.default.shape({classes:t.default.object,innerRef:r}),i={actions:t.default.arrayOf(t.default.oneOfType([t.default.func,t.default.shape({icon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,r]).isRequired,isFreeAction:t.default.bool,position:t.default.oneOf(["auto","toolbar","toolbarOnSelect","row"]),tooltip:t.default.string,onClick:t.default.func.isRequired,onMouseEnter:t.default.func,onMouseLeave:t.default.func,iconProps:t.default.object,disabled:t.default.bool,hidden:t.default.bool}),t.default.shape({action:t.default.func,position:t.default.oneOf(["auto","toolbar","toolbarOnSelect","row"])})])),renderSummaryRow:t.default.func,columns:t.default.arrayOf(t.default.shape({cellStyle:t.default.oneOfType([t.default.object,t.default.func]),currencySetting:t.default.shape({locale:t.default.string,currencyCode:t.default.string,minimumFractionDigits:t.default.number,maximumFractionDigits:t.default.number}),ariaLabel:t.default.string,ariaSortAsc:t.default.oneOf(["ascending","descending","none","other"]),ariaSortDesc:t.default.oneOf(["ascending","descending","none","other"]),draggable:t.default.bool,customFilterAndSearch:t.default.func,customSort:t.default.func,customExport:t.default.func,defaultFilter:t.default.any,defaultSort:t.default.oneOf(["asc","desc"]),editComponent:t.default.oneOfType([t.default.element,t.default.func]),emptyValue:t.default.oneOfType([t.default.string,t.default.node,t.default.func]),export:t.default.bool,field:t.default.oneOfType([t.default.string,t.default.arrayOf(t.default.string)]),filtering:t.default.bool,filterCellStyle:t.default.object,filterPlaceholder:t.default.string,filterComponent:t.default.oneOfType([t.default.element,t.default.func]),grouping:t.default.bool,headerStyle:t.default.object,hidden:t.default.bool,hideFilterIcon:t.default.bool,initialEditValue:t.default.any,lookup:t.default.object,editable:t.default.oneOfType([t.default.func,t.default.oneOf(["always","onUpdate","onAdd","never"])]),removable:t.default.bool,render:t.default.func,searchable:t.default.bool,sorting:t.default.bool,title:t.default.oneOfType([t.default.element,t.default.string]),type:t.default.oneOf(["string","boolean","numeric","date","datetime","time","currency"])})).isRequired,components:t.default.shape({Action:t.default.oneOfType([t.default.element,t.default.func,l]),Actions:t.default.oneOfType([t.default.element,t.default.func,l]),Body:t.default.oneOfType([t.default.element,t.default.func,l]),Cell:t.default.oneOfType([t.default.element,t.default.func,l]),Container:t.default.oneOfType([t.default.element,t.default.func,l]),EditField:t.default.oneOfType([t.default.element,t.default.func,l]),EditRow:t.default.oneOfType([t.default.element,t.default.func,l]),FilterRow:t.default.oneOfType([t.default.element,t.default.func,l]),Groupbar:t.default.oneOfType([t.default.element,t.default.func,l]),GroupRow:t.default.oneOfType([t.default.element,t.default.func,l]),Header:t.default.oneOfType([t.default.element,t.default.func,l]),OverlayLoading:t.default.oneOfType([t.default.element,t.default.func,l]),OverlayError:t.default.oneOfType([t.default.element,t.default.func,l]),Pagination:t.default.oneOfType([t.default.element,t.default.func,l]),Row:t.default.oneOfType([t.default.element,t.default.func,l]),Toolbar:t.default.oneOfType([t.default.element,t.default.func,l])}),data:t.default.oneOfType([t.default.arrayOf(t.default.object),t.default.func]).isRequired,editable:t.default.shape({isEditable:t.default.func,isBulkEditable:t.default.func,isDeletable:t.default.func,onRowAdd:t.default.func,onRowUpdate:t.default.func,onRowDelete:t.default.func,onRowAddCancelled:t.default.func,onRowUpdateCancelled:t.default.func,isEditHidden:t.default.func,isDeleteHidden:t.default.func}),detailPanel:t.default.oneOfType([t.default.func,t.default.arrayOf(t.default.oneOfType([t.default.func,t.default.shape({disabled:t.default.bool,icon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,r]),openIcon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,r]),tooltip:t.default.string,render:t.default.func.isRequired})]))]),icons:t.default.shape({Add:t.default.oneOfType([t.default.element,t.default.func,r]),Check:t.default.oneOfType([t.default.element,t.default.func,r]),Clear:t.default.oneOfType([t.default.element,t.default.func,r]),Delete:t.default.oneOfType([t.default.element,t.default.func,r]),DetailPanel:t.default.oneOfType([t.default.element,t.default.func,r]),Edit:t.default.oneOfType([t.default.element,t.default.func,r]),Export:t.default.oneOfType([t.default.element,t.default.func,r]),Filter:t.default.oneOfType([t.default.element,t.default.func,r]),FirstPage:t.default.oneOfType([t.default.element,t.default.func,r]),LastPage:t.default.oneOfType([t.default.element,t.default.func,r]),NextPage:t.default.oneOfType([t.default.element,t.default.func,r]),PreviousPage:t.default.oneOfType([t.default.element,t.default.func,r]),Refresh:t.default.oneOfType([t.default.element,t.default.func,r]),ResetSearch:t.default.oneOfType([t.default.element,t.default.func,r]),Search:t.default.oneOfType([t.default.element,t.default.func,r]),SortArrow:t.default.oneOfType([t.default.element,t.default.func,r]),ThirdStateCheck:t.default.oneOfType([t.default.element,t.default.func,r]),ViewColumn:t.default.oneOfType([t.default.element,t.default.func,r])}),isLoading:t.default.bool,title:t.default.oneOfType([t.default.element,t.default.string]),options:t.default.shape({actionsCellStyle:t.default.object,editCellStyle:t.default.object,idSynonym:t.default.string,detailPanelColumnStyle:t.default.object,actionsColumnIndex:t.default.number,addRowPosition:t.default.oneOf(["first","last"]),columnsButton:t.default.bool,defaultExpanded:t.default.oneOfType([t.default.bool,t.default.func]),debounceInterval:t.default.number,detailPanelType:t.default.oneOf(["single","multiple"]),doubleHorizontalScroll:t.default.bool,emptyRowsWhenPaging:t.default.bool,exportAllData:t.default.bool,exportMenu:t.default.arrayOf(t.default.shape({label:t.default.string,exportFunc:t.default.func})),filtering:t.default.bool,filterCellStyle:t.default.object,filterRowStyle:t.default.object,header:t.default.bool,headerSelectionProps:t.default.object,headerStyle:t.default.object,hideFilterIcons:t.default.bool,initialPage:t.default.number,maxBodyHeight:t.default.oneOfType([t.default.number,t.default.string]),minBodyHeight:t.default.oneOfType([t.default.number,t.default.string]),loadingType:t.default.oneOf(["overlay","linear"]),overflowY:t.default.oneOf(["visible","hidden","scroll","auto","initial","inherit","overlay"]),padding:t.default.oneOf(["normal","dense"]),paging:t.default.bool,pageSize:t.default.number,pageSizeOptions:t.default.arrayOf(t.default.number),paginationType:t.default.oneOf(["normal","stepped"]),paginationPosition:t.default.oneOf(["bottom","top","both"]),persistentGroupingsId:t.default.string,rowStyle:t.default.oneOfType([t.default.object,t.default.func]),search:t.default.bool,searchText:t.default.string,searchDebounceDelay:t.default.number,toolbarButtonAlignment:t.default.oneOf(["left","right"]),searchFieldAlignment:t.default.oneOf(["left","right"]),searchFieldStyle:t.default.object,searchAutoFocus:t.default.bool,searchFieldVariant:t.default.oneOf(["standard","filled","outlined"]),selection:t.default.bool,selectionProps:t.default.oneOfType([t.default.object,t.default.func]),showEmptyDataSourceMessage:t.default.bool,showFirstLastPageButtons:t.default.oneOfType([t.default.object,t.default.bool]),showSelectAllCheckbox:t.default.bool,showSelectGroupCheckbox:t.default.bool,showTitle:t.default.bool,showTextRowsSelected:t.default.bool,sorting:t.default.bool,defaultOrderByCollection:t.default.arrayOf(t.default.shape({orderBy:t.default.number,orderDirection:t.default.string,sortOrder:t.default.number,orderIndex:t.default.number})),maxColumnSort:t.default.oneOf([0,1,2,3,4,5,6,7,8,9,10,n.ALL_COLUMNS]),showColumnSortOrder:t.default.bool,sortOrderIndicatorStyle:t.default.object,keepSortDirectionOnColumnSwitch:t.default.bool,clientSorting:t.default.bool,toolbar:t.default.bool,thirdSortClick:t.default.bool,numberOfPagesAround:t.default.oneOf([1,2,3,4,5,6,7,8,9,10])}),localization:t.default.shape({grouping:t.default.shape({groupedBy:t.default.string,placeholder:t.default.string}),pagination:t.default.object,toolbar:t.default.object,header:t.default.object,body:t.default.object}),initialFormData:t.default.object,onSearchChange:t.default.func,onFilterChange:t.default.func,onColumnDragged:t.default.func,onColumnResized:t.default.func,onGroupRemoved:t.default.func,onGroupChange:t.default.func,onSelectionChange:t.default.func,onRowsPerPageChange:t.default.func,onPageChange:t.default.func,onChangeColumnHidden:t.default.func,onOrderChange:t.default.func,onOrderCollectionChange:t.default.func,onRowClick:t.default.func,onRowDoubleClick:t.default.func,onTreeExpandChange:t.default.func,onQueryChange:t.default.func,onBulkEditOpen:t.default.func,tableRef:t.default.any,style:t.default.object,page:t.default.number,totalCount:t.default.number};return zp.propTypes=i,zp}var P3={};const _Se=er(Xue),TSe=er(Ude),SSe=er(xde);var O3,T9;function kSe(){if(T9)return O3;T9=1;function e(t,n,r){var l,i,o,a,s;n==null&&(n=100);function u(){var d=Date.now()-a;d=0?l=setTimeout(u,n-d):(l=null,r||(s=t.apply(o,i),o=i=null))}var c=function(){o=this,i=arguments,a=Date.now();var d=r&&!l;return l||(l=setTimeout(u,n)),d&&(s=t.apply(o,i),o=i=null),s};return c.clear=function(){l&&(clearTimeout(l),l=null)},c.flush=function(){l&&(s=t.apply(o,i),o=i=null,clearTimeout(l),l=null)},c}return e.debounce=e,O3=e,O3}var A3={};const CSe=er(Eme);var D3={},Wp={},F0={},S9;function DU(){if(S9)return F0;S9=1,Object.defineProperty(F0,"__esModule",{value:!0}),F0.default=n;let e;const t=new Uint8Array(16);function n(){if(!e&&(e=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!e))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(t)}return F0}var Jc={},qp={},Up={},k9;function MSe(){if(k9)return Up;k9=1,Object.defineProperty(Up,"__esModule",{value:!0}),Up.default=void 0;var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return Up.default=e,Up}var C9;function cx(){if(C9)return qp;C9=1,Object.defineProperty(qp,"__esModule",{value:!0}),qp.default=void 0;var e=t(MSe());function t(l){return l&&l.__esModule?l:{default:l}}function n(l){return typeof l=="string"&&e.default.test(l)}var r=n;return qp.default=r,qp}var M9;function dx(){if(M9)return Jc;M9=1,Object.defineProperty(Jc,"__esModule",{value:!0}),Jc.default=void 0,Jc.unsafeStringify=r;var e=t(cx());function t(o){return o&&o.__esModule?o:{default:o}}const n=[];for(let o=0;o<256;++o)n.push((o+256).toString(16).slice(1));function r(o,a=0){return n[o[a+0]]+n[o[a+1]]+n[o[a+2]]+n[o[a+3]]+"-"+n[o[a+4]]+n[o[a+5]]+"-"+n[o[a+6]]+n[o[a+7]]+"-"+n[o[a+8]]+n[o[a+9]]+"-"+n[o[a+10]]+n[o[a+11]]+n[o[a+12]]+n[o[a+13]]+n[o[a+14]]+n[o[a+15]]}function l(o,a=0){const s=r(o,a);if(!(0,e.default)(s))throw TypeError("Stringified UUID is invalid");return s}var i=l;return Jc.default=i,Jc}var P9;function PSe(){if(P9)return Wp;P9=1,Object.defineProperty(Wp,"__esModule",{value:!0}),Wp.default=void 0;var e=n(DU()),t=dx();function n(u){return u&&u.__esModule?u:{default:u}}let r,l,i=0,o=0;function a(u,c,d){let f=c&&d||0;const p=c||new Array(16);u=u||{};let h=u.node||r,g=u.clockseq!==void 0?u.clockseq:l;if(h==null||g==null){const _=u.random||(u.rng||e.default)();h==null&&(h=r=[_[0]|1,_[1],_[2],_[3],_[4],_[5]]),g==null&&(g=l=(_[6]<<8|_[7])&16383)}let b=u.msecs!==void 0?u.msecs:Date.now(),v=u.nsecs!==void 0?u.nsecs:o+1;const m=b-i+(v-o)/1e4;if(m<0&&u.clockseq===void 0&&(g=g+1&16383),(m<0||b>i)&&u.nsecs===void 0&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");i=b,o=v,l=g,b+=122192928e5;const y=((b&268435455)*1e4+v)%4294967296;p[f++]=y>>>24&255,p[f++]=y>>>16&255,p[f++]=y>>>8&255,p[f++]=y&255;const x=b/4294967296*1e4&268435455;p[f++]=x>>>8&255,p[f++]=x&255,p[f++]=x>>>24&15|16,p[f++]=x>>>16&255,p[f++]=g>>>8|128,p[f++]=g&255;for(let _=0;_<6;++_)p[f+_]=h[_];return c||(0,t.unsafeStringify)(p)}var s=a;return Wp.default=s,Wp}var Hp={},Es={},Vp={},O9;function EU(){if(O9)return Vp;O9=1,Object.defineProperty(Vp,"__esModule",{value:!0}),Vp.default=void 0;var e=t(cx());function t(l){return l&&l.__esModule?l:{default:l}}function n(l){if(!(0,e.default)(l))throw TypeError("Invalid UUID");let i;const o=new Uint8Array(16);return o[0]=(i=parseInt(l.slice(0,8),16))>>>24,o[1]=i>>>16&255,o[2]=i>>>8&255,o[3]=i&255,o[4]=(i=parseInt(l.slice(9,13),16))>>>8,o[5]=i&255,o[6]=(i=parseInt(l.slice(14,18),16))>>>8,o[7]=i&255,o[8]=(i=parseInt(l.slice(19,23),16))>>>8,o[9]=i&255,o[10]=(i=parseInt(l.slice(24,36),16))/1099511627776&255,o[11]=i/4294967296&255,o[12]=i>>>24&255,o[13]=i>>>16&255,o[14]=i>>>8&255,o[15]=i&255,o}var r=n;return Vp.default=r,Vp}var A9;function RU(){if(A9)return Es;A9=1,Object.defineProperty(Es,"__esModule",{value:!0}),Es.URL=Es.DNS=void 0,Es.default=o;var e=dx(),t=n(EU());function n(a){return a&&a.__esModule?a:{default:a}}function r(a){a=unescape(encodeURIComponent(a));const s=[];for(let u=0;u>5]>>>v%32&255,y=parseInt(b.charAt(m>>>4&15)+b.charAt(m&15),16);h.push(y)}return h}function n(p){return(p+64>>>9<<4)+14+1}function r(p,h){p[h>>5]|=128<>5]|=(p[b/8]&255)<>16)+(h>>16)+(g>>16)<<16|g&65535}function o(p,h){return p<>>32-h}function a(p,h,g,b,v,m){return i(o(i(i(h,p),i(b,m)),v),g)}function s(p,h,g,b,v,m,y){return a(h&g|~h&b,p,h,v,m,y)}function u(p,h,g,b,v,m,y){return a(h&b|g&~b,p,h,v,m,y)}function c(p,h,g,b,v,m,y){return a(h^g^b,p,h,v,m,y)}function d(p,h,g,b,v,m,y){return a(g^(h|~b),p,h,v,m,y)}var f=e;return Gp.default=f,Gp}var E9;function ASe(){if(E9)return Hp;E9=1,Object.defineProperty(Hp,"__esModule",{value:!0}),Hp.default=void 0;var e=n(RU()),t=n(OSe());function n(i){return i&&i.__esModule?i:{default:i}}var l=(0,e.default)("v3",48,t.default);return Hp.default=l,Hp}var Yp={},Xp={},R9;function DSe(){if(R9)return Xp;R9=1,Object.defineProperty(Xp,"__esModule",{value:!0}),Xp.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return Xp.default=t,Xp}var L9;function ESe(){if(L9)return Yp;L9=1,Object.defineProperty(Yp,"__esModule",{value:!0}),Yp.default=void 0;var e=r(DSe()),t=r(DU()),n=dx();function r(o){return o&&o.__esModule?o:{default:o}}function l(o,a,s){if(e.default.randomUUID&&!a&&!o)return e.default.randomUUID();o=o||{};const u=o.random||(o.rng||t.default)();if(u[6]=u[6]&15|64,u[8]=u[8]&63|128,a){s=s||0;for(let c=0;c<16;++c)a[s+c]=u[c];return a}return(0,n.unsafeStringify)(u)}var i=l;return Yp.default=i,Yp}var Kp={},Zp={},I9;function RSe(){if(I9)return Zp;I9=1,Object.defineProperty(Zp,"__esModule",{value:!0}),Zp.default=void 0;function e(l,i,o,a){switch(l){case 0:return i&o^~i&a;case 1:return i^o^a;case 2:return i&o^i&a^o&a;case 3:return i^o^a}}function t(l,i){return l<>>32-i}function n(l){const i=[1518500249,1859775393,2400959708,3395469782],o=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof l=="string"){const c=unescape(encodeURIComponent(l));l=[];for(let d=0;d>>0;b=g,g=h,h=t(p,30)>>>0,p=f,f=y}o[0]=o[0]+f>>>0,o[1]=o[1]+p>>>0,o[2]=o[2]+h>>>0,o[3]=o[3]+g>>>0,o[4]=o[4]+b>>>0}return[o[0]>>24&255,o[0]>>16&255,o[0]>>8&255,o[0]&255,o[1]>>24&255,o[1]>>16&255,o[1]>>8&255,o[1]&255,o[2]>>24&255,o[2]>>16&255,o[2]>>8&255,o[2]&255,o[3]>>24&255,o[3]>>16&255,o[3]>>8&255,o[3]&255,o[4]>>24&255,o[4]>>16&255,o[4]>>8&255,o[4]&255]}var r=n;return Zp.default=r,Zp}var $9;function LSe(){if($9)return Kp;$9=1,Object.defineProperty(Kp,"__esModule",{value:!0}),Kp.default=void 0;var e=n(RU()),t=n(RSe());function n(i){return i&&i.__esModule?i:{default:i}}var l=(0,e.default)("v5",80,t.default);return Kp.default=l,Kp}var Qp={},N9;function ISe(){if(N9)return Qp;N9=1,Object.defineProperty(Qp,"__esModule",{value:!0}),Qp.default=void 0;var e="00000000-0000-0000-0000-000000000000";return Qp.default=e,Qp}var Jp={},F9;function $Se(){if(F9)return Jp;F9=1,Object.defineProperty(Jp,"__esModule",{value:!0}),Jp.default=void 0;var e=t(cx());function t(l){return l&&l.__esModule?l:{default:l}}function n(l){if(!(0,e.default)(l))throw TypeError("Invalid UUID");return parseInt(l.slice(14,15),16)}var r=n;return Jp.default=r,Jp}var j9;function NSe(){return j9||(j9=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return o.default}});var t=c(PSe()),n=c(ASe()),r=c(ESe()),l=c(LSe()),i=c(ISe()),o=c($Se()),a=c(cx()),s=c(dx()),u=c(EU());function c(d){return d&&d.__esModule?d:{default:d}}}(D3)),D3}var z9;function FSe(){return z9||(z9=1,function(e){var t=Hn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Cf()),r=t(Rb()),l=t(Lb()),i=t(za()),o=t(CSe),a=NSe(),s=ex(),u=bs(),c=C4();function d(v,m){var y=Object.keys(v);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(v);m&&(x=x.filter(function(_){return Object.getOwnPropertyDescriptor(v,_).enumerable})),y.push.apply(y,x)}return y}function f(v){for(var m=1;m=v.length?{done:!0}:{done:!1,value:v[x++]}},e:function(T){throw T},f:_}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w=!0,S=!1,k;return{s:function(){y=y.call(v)},n:function(){var T=y.next();return w=T.done,T},e:function(T){S=!0,k=T},f:function(){try{!w&&y.return!=null&&y.return()}finally{if(S)throw k}}}}function h(v,m){if(v){if(typeof v=="string")return g(v,m);var y=Object.prototype.toString.call(v).slice(8,-1);if(y==="Object"&&v.constructor&&(y=v.constructor.name),y==="Map"||y==="Set")return Array.from(v);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return g(v,m)}}function g(v,m){(m==null||m>v.length)&&(m=v.length);for(var y=0,x=new Array(m);y0?k(T.groups):T.data.forEach(function(M){M.tableData.checked!==y&&(M.tableData.checked=M.tableData.disabled?!1:y,m.selectedCount=m.selectedCount+(y?1:-1))})})};S([_])}),(0,i.default)(this,"getOrderByCollection",function(){return m.orderByCollection.filter(function(y){return y.sortOrder})}),(0,i.default)(this,"sortOrderCollection",function(y){return y.sort(function(x,_){return x.sortOrder?_.sortOrder?x.sortOrder-_.sortOrder:-1:1})}),(0,i.default)(this,"startCellEditable",function(y,x){y.tableData.editCellList=[].concat((0,n.default)(y.tableData.editCellList||[]),[x])}),(0,i.default)(this,"finishCellEditable",function(y,x){if(y.tableData.editCellList){var _=y.tableData.editCellList.findIndex(function(w){return w.tableData.id.toString()===x.tableData.id.toString()});_!==-1&&y.tableData.editCellList.splice(_,1)}}),(0,i.default)(this,"clearBulkEditChangedRows",function(){m.bulkEditChangedRows={}}),(0,i.default)(this,"onBulkEditRowChanged",function(y,x){m.bulkEditChangedRows[y.tableData.id]={oldData:y,newData:x}}),(0,i.default)(this,"expandTreeForNodes",function(y){y.forEach(function(x){for(var _=x;m.parentFunc(_,m.data);){var w=m.parentFunc(_,m.data);w&&(w.tableData.isTreeExpanded=!0),_=w}})}),(0,i.default)(this,"findDataByPath",function(y,x){if(m.isDataType("tree")){var _=x.reduce(function(k,C){return k&&k.tableData&&k.tableData.childRows&&k.tableData.childRows.find(function(T){return T&&T.tableData.uuid===C})},{tableData:{childRows:y}});return _}else{var w={groups:y},S=x.reduce(function(k,C){return k.groups.length>0?k.groups[C]:k.data?k.data[C]||k.data.find(function(T){var M;return((M=T.tableData)===null||M===void 0?void 0:M.uuid)===C}):void 0},w);return S}}),(0,i.default)(this,"getFieldValue",function(y,x){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,w=typeof y[x.field]<"u"?y[x.field]:(0,s.selectFromObject)(y,x.field);return x.lookup&&_&&(w=x.lookup[w]),w}),(0,i.default)(this,"getRenderState",function(){return m.filtered===!1&&m.filterData(),m.searched===!1&&m.searchData(),m.grouped===!1&&m.isDataType("group")&&m.groupData(),m.treefied===!1&&m.isDataType("tree")&&m.treefyData(),m.sorted===!1&&m.sortData(),m.paged===!1&&m.pageData(),{columns:m.columns,currentPage:m.currentPage,data:m.sortedData,lastEditingRow:m.lastEditingRow,orderByCollection:m.orderByCollection,maxColumnSort:m.maxColumnSort,originalData:(0,n.default)(m.data),pageSize:m.pageSize,renderData:m.pagedData,searchText:m.searchText,selectedCount:m.selectedCount,treefiedDataLength:m.treefiedDataLength,treeDataMaxLevel:m.treeDataMaxLevel,groupedDataLength:m.groupedDataLength,tableStyleWidth:m.tableStyleWidth}}),(0,i.default)(this,"filterData",function(){m.searched=m.grouped=m.treefied=m.sorted=m.paged=!1,m.filteredData=(0,n.default)(m.data),m.applyFilters&&m.columns.filter(function(y){return y.tableData.filterValue!==void 0}).forEach(function(y){var x=y.lookup,_=y.type,w=y.tableData;y.customFilterAndSearch?m.filteredData=m.filteredData.filter(function(S){return!!y.customFilterAndSearch(w.filterValue,S,y)}):x?m.filteredData=m.filteredData.filter(function(S){var k=m.getFieldValue(S,y,!1);return!w.filterValue||w.filterValue.length===0||w.filterValue.indexOf(k!=null&&k.toString())>-1}):_==="numeric"?m.filteredData=m.filteredData.filter(function(S){var k=m.getFieldValue(S,y);return k+""===w.filterValue}):_==="boolean"&&w.filterValue?m.filteredData=m.filteredData.filter(function(S){var k=m.getFieldValue(S,y);return k&&w.filterValue==="checked"||!k&&w.filterValue==="unchecked"}):["date","datetime"].includes(_)?m.filteredData=m.filteredData.filter(function(S){var k=m.getFieldValue(S,y),C=k?new Date(k):null;if(C&&C.toString()!=="Invalid Date"){var T=w.filterValue,M="",O="";return _==="date"?(M=(0,o.default)(C,"MM/dd/yyyy"),O=(0,o.default)(T,"MM/dd/yyyy")):_==="datetime"&&(M=(0,o.default)(C,"MM/dd/yyyy - HH:mm"),O=(0,o.default)(T,"MM/dd/yyyy - HH:mm")),M===O}return!0}):_==="time"?m.filteredData=m.filteredData.filter(function(S){var k=m.getFieldValue(S,y),C=k||null;if(C){var T=w.filterValue,M=(0,o.default)(T,"HH:mm");return C===M}return!0}):m.filteredData=m.filteredData.filter(function(S){var k=m.getFieldValue(S,y);return k!=null&&k.toString().toUpperCase().includes(w.filterValue.toUpperCase())})}),m.filtered=!0}),(0,i.default)(this,"searchData",function(){if(m.grouped=m.treefied=m.sorted=m.paged=!1,m.searchedData=(0,n.default)(m.filteredData),m.searchText&&m.applySearch){var y=m.searchText.trim();m.searchedData=m.searchedData.filter(function(x){return m.columns.filter(function(_){return _.searchable===void 0?!_.hidden:_.searchable}).some(function(_){if(_.customFilterAndSearch)return!!_.customFilterAndSearch(y,x,_);if(_.field){var w=m.getFieldValue(x,_);if(w)return w.toString().toUpperCase().includes(y.toUpperCase())}return!1})})}m.searched=!0}),(0,i.default)(this,"clearCriteria",function(){m.changeOrder(-1,""),m.changeSearchText("");var y=p(m.columns),x;try{for(y.s();!(x=y.n()).done;){var _=x.value;m.changeFilterValue(_.tableData.id,"")}}catch(w){y.e(w)}finally{y.f()}m.changeSearchText(""),m.changePaging(0)})}return(0,l.default)(v,[{key:"setData",value:function(y,x){var _=this;this.selectedCount=0;var w={};this.data.length!==0&&this.data[0][x]!==void 0&&(w=this.data.reduce(function(S,k){return S[k.tableData.id]=k.tableData,S},{})),this.data=y.map(function(S,k){var C=w[S[x]]||{},T=f(f({index:k,id:S[x]||k,uuid:S.uuid||(0,a.v4)()},C),S.tableData);T.checked&&_.selectedCount++;var M=f(f({},S),{},{tableData:T});return _.lastDetailPanelRow&&_.lastDetailPanelRow.tableData===C&&(_.lastDetailPanelRow=M),_.lastEditingRow&&_.lastEditingRow.tableData===C&&(_.lastEditingRow=M),M}),this.filtered=!1}},{key:"setTableWidth",value:function(y){this.tableWidth=y}},{key:"setColumns",value:function(y){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},w=0,S=[];this.columns=y.map(function(T,M){var O,D=(0,u.widthToNumber)(T.width),P=typeof T.width=="number"?T.width+"px":T.width;P&&(isNaN(D)?S.push(P):w+=D);var E=x.find(function(F){var j=F.id;return j===M}),I=(O=_[T.field])!==null&&O!==void 0?O:{},A=f(f(f(f({columnOrder:M,filterValue:T.defaultFilter,groupOrder:T.defaultGroupOrder,groupSort:T.defaultGroupSort||"asc",width:P,initialWidth:P,widthPx:isNaN(D)?void 0:D,additionalWidth:0},I),E?E.tableData:{}),T.tableData),{},{id:M});return T.tableData=A,T});var k=this.columns.filter(function(T){return T.hidden||T.columnDef&&T.columnDef.tableData&&T.columnDef.tableData.width?!1:T.width===void 0}),C=(w!==0?"".concat(w,"px"):"0px")+(S.length>0?" - "+S.join(" - "):"");k.forEach(function(T){T.tableData.width=T.tableData.initialWidth="calc((100% - ".concat(C,") / ").concat(k.length,")")}),this.tableStyleWidth=this.tableWidth==="full"||k.length>0||S.length>0?"100%":w}},{key:"setDefaultExpanded",value:function(y){this.defaultExpanded=y}},{key:"setClientSorting",value:function(y){this.clientSorting=!!y}},{key:"setMaxColumnSort",value:function(y){var x=this.columns.filter(function(_){return _.sorting!==!1}).length;y===c.ALL_COLUMNS?this.maxColumnSort=x:this.maxColumnSort=Math.min(y,x)}},{key:"setOrderByCollection",value:function(){var y=this.getOrderByCollection(),x=this.columns.map(function(_){var w=_.tableData.id,S=y.find(function(k){return k.orderBy===w});return S?f({},S):{orderBy:_.tableData.id,sortOrder:void 0,orderDirection:""}});x=this.sortOrderCollection(x),this.orderByCollection=(0,n.default)(x)}},{key:"setDefaultOrderByCollection",value:function(y){this.defaultOrderByCollection=(0,n.default)(y)}},{key:"getDefaultOrderByCollection",value:function(){return this.defaultOrderByCollection}},{key:"changeApplySearch",value:function(y){this.applySearch=y,this.searched=!1}},{key:"changeApplyFilters",value:function(y){this.applyFilters=y,this.filtered=!1}},{key:"changeApplySort",value:function(y){this.applySort=y,this.sorted=!1}},{key:"changePaging",value:function(y){this.paging=y,this.paged=!1}},{key:"changeCurrentPage",value:function(y){this.currentPage=y,this.paged=!1}},{key:"changePageSize",value:function(y){this.pageSize=y,this.paged=!1}},{key:"changeParentFunc",value:function(y){this.parentFunc=y}},{key:"changeFilterValue",value:function(y,x){var _=this.columns.find(function(w){return w.tableData.id===y});_.tableData.filterValue=x,this.filtered=!1}},{key:"changeRowSelected",value:function(y,x){var _=this,w=this.findDataByPath(this.sortedData,x);w.tableData.checked=y,this.selectedCount=this.selectedCount+(y?1:-1);var S=function k(C){C.tableData.childRows&&C.tableData.childRows.forEach(function(T){T.tableData.checked!==y&&(T.tableData.checked=y,_.selectedCount=_.selectedCount+(y?1:-1)),k(T)})};S(w),this.filtered=!1}},{key:"changeDetailPanelVisibility",value:function(y,x){var _=this.findDataByPath(this.sortedData,y);(_.tableData.showDetailPanel||"").toString()===x.toString()?_.tableData.showDetailPanel=void 0:_.tableData.showDetailPanel=x,this.detailPanelType==="single"&&this.lastDetailPanelRow&&this.lastDetailPanelRow!==_&&(this.lastDetailPanelRow.tableData.showDetailPanel=void 0),this.lastDetailPanelRow=_}},{key:"changeGroupExpand",value:function(y){var x=this.findDataByPath(this.sortedData,y);x.isExpanded=!x.isExpanded}},{key:"changeSearchText",value:function(y){this.searchText=y,this.searched=!1,this.currentPage=0}},{key:"changeSearchDebounce",value:function(y){this.searchDebounceDelay=y}},{key:"changeRowEditing",value:function(y,x){y?(y.tableData.editing=x,this.lastEditingRow&&this.lastEditingRow!==y&&(this.lastEditingRow.tableData.editing=void 0),x?this.lastEditingRow=y:this.lastEditingRow=void 0):this.lastEditingRow&&(this.lastEditingRow.tableData.editing=void 0,this.lastEditingRow=void 0)}},{key:"changeBulkEditOpen",value:function(y){this.bulkEditOpen=y}},{key:"changeAllSelected",value:function(y,x){var _=0,w=function(T){var M=x instanceof Function?x(T):{disabled:!1};return T.tableData.disabled||M.disabled?!1:y};if(this.isDataType("group")){var S=function C(T){T.forEach(function(M){M.groups.length>0?C(M.groups):M.data.forEach(function(O){O.tableData.checked=w(O),_++})})};S(this.groupedData)}else{var k=function C(T){T.tableData.childRows&&T.tableData.childRows.forEach(function(M){M.tableData.checked=w(T),C(M)})};this.searchedData.forEach(function(C){C.tableData.checked=w(C),k(C)}),_=this.searchedData.length}this.selectedCount=y?_:0}},{key:"changeColumnOrder",value:function(y,x,_){var w=[],S=this.getOrderByCollection();S.length===this.maxColumnSort&&!_?(this.orderByCollection[0].orderDirection="",this.orderByCollection[0].sortOrder=void 0,w=this.orderByCollection.map(function(k){return k.sortOrder?k.sortOrder-=1:k.orderBy===y&&x&&(k.sortOrder=S.length,k.orderDirection=x),k})):w=this.orderByCollection.map(function(k){return k.orderBy===y&&x?(k.orderDirection=x,k.sortOrder=_||S.length+1):!x&&k.orderBy===y?(k.orderDirection=x,k.sortOrder=void 0):!x&&_-1}).sort(function(q,Y){return q.tableData.groupOrder-Y.tableData.groupOrder});if(y.destination.droppableId==="groups"&&y.source.droppableId==="groups"){x=Math.min(y.destination.index,y.source.index);var w=Math.max(y.destination.index,y.source.index);if(_=_.slice(x,w+1),y.destination.index-1})&&(x="group"),y===x}},{key:"sort",value:function(y,x,_){if(_==="numeric")return y-x;if(y!==x){if(!y)return-1;if(!x)return 1}return yx?1:0}},{key:"sortList",value:function(y){if(!this.clientSorting)return y;var x=this.orderByCollection.map(function(C){return C.orderBy}),_=new Map;this.columns.forEach(function(C){var T=C.tableData.id;x.includes(T)&&_.set(T,C)});var w=this.sort,S=this.getFieldValue,k=this.orderByCollection;return y.sort(function C(T,M){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_,D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:k,P=D[0],E=P.orderBy,I=P.orderDirection,A=O.get(E),F=0;A.customSort?I==="desc"?F=A.customSort(M,T,"row",I):F=A.customSort(T,M,"row",I):(F=w(S(T,A),S(M,A),A.type),F=I.toLowerCase()==="desc"?F*-1:F);var j=F===0&&D.filter(function(B){return B.sortOrder!==void 0}).length!==1;return j?C(T,M,O,D.slice(1)):F})}},{key:"groupData",value:function(){var y=this;this.sorted=this.paged=!1,this.groupedDataLength=0;var x=(0,n.default)(this.searchedData),_=this.columns.filter(function(S){return S.tableData.groupOrder>-1}).sort(function(S,k){return S.tableData.groupOrder-k.tableData.groupOrder}),w=x.reduce(function(S,k){var C=S;return C=_.reduce(function(T,M){var O=k[M.field]||(0,s.selectFromObject)(k,M.field),D;if(T.groupsIndex[O]!==void 0&&(D=T.groups[T.groupsIndex[O]]),!D){var P=[].concat((0,n.default)(T.path||[]),[O]),E=y.findGroupByGroupPath(y.groupedData,P)||{isExpanded:typeof y.defaultExpanded=="boolean"?y.defaultExpanded:!1};D={value:O,groups:[],groupsIndex:{},data:[],isExpanded:E.isExpanded,path:P},T.groups.push(D),T.groupsIndex[O]=T.groups.length-1}return D},C),C.data.push(k),y.groupedDataLength++,S},{groups:[],groupsIndex:{}});this.groupedData=w.groups,this.grouped=!0,this.rootGroupsIndex=w.groupsIndex}},{key:"treefyData",value:function(){var y=this;this.sorted=this.paged=!1,this.data.forEach(function(k){return k.tableData.childRows=null}),this.treefiedData=[],this.treefiedDataLength=0,this.treeDataMaxLevel=0,(this.searchText||this.columns.some(function(k){return k.tableData.filterValue}))&&(this.data.forEach(function(k){k.tableData.isTreeExpanded=!1}),this.expandTreeForNodes(this.searchedData));var x=function k(C){C.tableData.markedForTreeRemove=!1;var T=y.parentFunc(C,y.data);T?(T.tableData.childRows=T.tableData.childRows||[],T.tableData.childRows.includes(C)||(T.tableData.childRows.push(C),y.treefiedDataLength++),k(T),C.tableData.path=[].concat((0,n.default)(T.tableData.path),[C.tableData.uuid]),y.treeDataMaxLevel=Math.max(y.treeDataMaxLevel,C.tableData.path.length)):y.treefiedData.includes(C)||(y.treefiedData.push(C),y.treefiedDataLength++,C.tableData.path=[C.tableData.uuid])};this.data.forEach(function(k){x(k)});var _=function(C){var T=y.treefiedData;C.tableData.path.forEach(function(M){T.tableData&&T.tableData.childRows&&(T=T.tableData.childRows),Array.isArray(T)&&(T=T.find(function(O){return O.tableData.uuid===M}))}),T.tableData.markedForTreeRemove=!0},w=function k(C){C.tableData.childRows&&C.tableData.childRows.forEach(function(T){k(T)}),C.tableData.markedForTreeRemove=!1};this.data.forEach(function(k){if(!y.searchText&&!y.columns.some(function(M){return M.tableData.filterValue})&&k.tableData.isTreeExpanded===void 0){var C=typeof y.defaultExpanded=="boolean"?y.defaultExpanded:y.defaultExpanded(k);k.tableData.isTreeExpanded=C}var T=k.tableData.isTreeExpanded;!T&&y.searchedData.indexOf(k)<0&&_(k)}),this.data.forEach(function(k){y.searchedData.indexOf(k)>-1&&w(k)});var S=function k(C){for(var T=C.length-1;T>=0;T--){var M=C[T];M.tableData.childRows&&k(M.tableData.childRows),M.tableData.markedForTreeRemove&&C.splice(T,1)}};S(this.treefiedData),this.treefiedDataLength=this.treefiedData.length,this.treefied=!0}},{key:"sortData",value:function(){var y=this;if(this.paged=!1,this.isDataType("group")){this.sortedData=(0,n.default)(this.groupedData);var x=this.columns.filter(function(C){return C.tableData.groupOrder>-1}).sort(function(C,T){return C.tableData.groupOrder-T.tableData.groupOrder}),_=function(T,M){return M.customSort?T.sort(M.tableData.groupSort==="desc"?function(O,D){return M.customSort(D.value,O.value,"group",M.tableData.groupSort)}:function(O,D){return M.customSort(O.value,D.value,"group",M.tableData.groupSort)}):T.sort(M.tableData.groupSort==="desc"?function(O,D){return y.sort(D.value,O.value,M.type)}:function(O,D){return y.sort(O.value,D.value,M.type)})};this.sortedData=_(this.sortedData,x[0]);var w=function(T){return T.reduce(function(M,O){return M[O.value]=T.findIndex(function(D){return D.value===O.value}),M},{})},S=function C(T,M){T.forEach(function(O){if(O.groups.length>0){var D=x[M];O.groups=_(O.groups,D),O.groupsIndex=w(O.groups),C(O.groups,M+1)}else y.maxColumnSort>0&&y.getOrderByCollection().length>0?O.data=y.sortList(O.data):y.maxColumnSort>0&&(O.data=O.data.sort(function(P,E){return y.data.findIndex(function(I){return I.tableData.id===P.tableData.id})-y.data.findIndex(function(I){return I.tableData.id===E.tableData.id})}))})};S(this.sortedData,1)}else if(this.isDataType("tree")){if(this.sortedData=(0,n.default)(this.treefiedData),this.maxColumnSort>0&&this.getOrderByCollection().length>0){this.sortedData=this.sortList(this.sortedData);var k=function C(T){T.forEach(function(M){M.tableData.childRows&&(M.tableData.childRows=y.sortList(M.tableData.childRows),C(M.tableData.childRows))})};k(this.sortedData)}}else this.isDataType("normal")&&(this.sortedData=(0,n.default)(this.searchedData),this.maxColumnSort>0&&this.getOrderByCollection().length>0&&this.applySort&&(this.sortedData=this.sortList(this.sortedData)));this.sorted=!0}},{key:"pageData",value:function(){if(this.pagedData=(0,n.default)(this.sortedData),this.paging){var y=this.currentPage*this.pageSize,x=y+this.pageSize;this.pagedData=this.pagedData.slice(y,x)}this.paged=!0}}]),v}();e.default=b}(A3)),A3}var B9;function jSe(){return B9||(B9=1,function(e){var t=Hn,n=Ma();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(_Se),l=t(TSe),i=t(ms),o=t(jr()),a=t(kc),s=t(Cf()),u=t(SSe),c=t(Ma()),d=t(vu()),f=t(Rb()),p=t(Lb()),h=t(w5()),g=t(x5()),b=t(_5()),v=t(T5()),m=t(za()),y=t(ge),x=kSe(),_=t(BB()),w=M(bs()),S=k4,k=t(FSe()),C=ux();function T(j){if(typeof WeakMap!="function")return null;var B=new WeakMap,z=new WeakMap;return(T=function(R){return R?z:B})(j)}function M(j,B){if(j&&j.__esModule)return j;if(j===null||n(j)!=="object"&&typeof j!="function")return{default:j};var z=T(B);if(z&&z.has(j))return z.get(j);var N={},R=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var q in j)if(q!=="default"&&Object.prototype.hasOwnProperty.call(j,q)){var Y=R?Object.getOwnPropertyDescriptor(j,q):null;Y&&(Y.get||Y.set)?Object.defineProperty(N,q,Y):N[q]=j[q]}return N.default=j,z&&z.set(j,N),N}function O(j,B){var z=Object.keys(j);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(j);B&&(N=N.filter(function(R){return Object.getOwnPropertyDescriptor(j,R).enumerable})),z.push.apply(z,N)}return z}function D(j){for(var B=1;B"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var I=function(j){(0,g.default)(z,j);var B=P(z);function z(N){var R;(0,f.default)(this,z),R=B.call(this,N),(0,m.default)((0,h.default)(R),"dataManager",new k.default),(0,m.default)((0,h.default)(R),"checkedForFunctions",!1),(0,m.default)((0,h.default)(R),"clearCriteria",function(){R.dataManager.clearCriteria(),R.setState(R.dataManager.getRenderState())}),(0,m.default)((0,h.default)(R),"isRemoteData",function(L){return!Array.isArray((L||R.props).data)}),(0,m.default)((0,h.default)(R),"onAllSelected",function(L){R.dataManager.changeAllSelected(L,R.props.options.selectionProps),R.setState(R.dataManager.getRenderState(),function(){return R.onSelectionChange()})}),(0,m.default)((0,h.default)(R),"onGroupSelected",function(L,W){R.dataManager.changeGroupSelected(L,W),R.setState(R.dataManager.getRenderState(),function(){return R.onSelectionChange()})}),(0,m.default)((0,h.default)(R),"onChangeColumnHidden",function(L,W){R.dataManager.changeColumnHidden(L,W),R.setState(R.dataManager.getRenderState(),function(){R.props.onChangeColumnHidden&&R.props.onChangeColumnHidden(L,W)})}),(0,m.default)((0,h.default)(R),"onChangeGroupOrder",function(L){R.dataManager.changeGroupOrder(L.tableData.id),R.setState(R.dataManager.getRenderState())}),(0,m.default)((0,h.default)(R),"onChangeOrder",function(L,W,H){R.dataManager.changeColumnOrder(L,W,H);var G=R.dataManager.getOrderByCollection();if(R.isRemoteData()){var te=D({},R.state.query);te.page=0,te.orderBy=R.state.columns.find(function(ee){return ee.tableData.id===L}),te.orderDirection=W,console.warn("Properties orderBy and orderDirection had been deprecated when remote data, please start using orderByCollection instead"),te.orderByCollection=G,R.onQueryChange(te,function(){R.props.onOrderChange&&R.props.onOrderChange(L,W),R.props.onOrderCollectionChange&&R.props.onOrderCollectionChange(G)})}else R.setState(R.dataManager.getRenderState(),function(){R.props.onOrderChange&&R.props.onOrderChange(L,W),R.props.onOrderCollectionChange&&R.props.onOrderCollectionChange(G)})}),(0,m.default)((0,h.default)(R),"onPageChange",function(L,W){if(R.isRemoteData()){var H=D({},R.state.query);H.page=W,R.onQueryChange(H,function(){R.props.onPageChange&&R.props.onPageChange(W,H.pageSize)})}else R.dataManager.changeCurrentPage(W),R.setState(R.dataManager.getRenderState(),function(){R.props.onPageChange&&R.props.onPageChange(W,R.state.pageSize)})}),(0,m.default)((0,h.default)(R),"onRowsPerPageChange",function(L){var W=L.target.value;R.dataManager.changePageSize(W);var H=function(){R.props.onPageChange&&R.props.onPageChange(0,W),R.props.onRowsPerPageChange&&R.props.onRowsPerPageChange(W)};if(R.isRemoteData()){var G=D({},R.state.query);G.pageSize=L.target.value,G.page=0,R.onQueryChange(G,H)}else R.dataManager.changeCurrentPage(0),R.setState(R.dataManager.getRenderState(),H)}),(0,m.default)((0,h.default)(R),"onDragEnd",function(L){!L||!L.source||!L.destination||(R.dataManager.changeByDrag(L),R.setState(R.dataManager.getRenderState(),function(){R.props.onColumnDragged&&L.destination.droppableId==="headers"&&L.source.droppableId==="headers"&&R.props.onColumnDragged(L.source.index,L.destination.index)}))}),(0,m.default)((0,h.default)(R),"onGroupExpandChanged",function(L){R.dataManager.changeGroupExpand(L),R.setState(R.dataManager.getRenderState())}),(0,m.default)((0,h.default)(R),"onGroupRemoved",function(L,W){var H={combine:null,destination:{droppableId:"headers",index:0},draggableId:L.tableData.id,mode:"FLUID",reason:"DROP",source:{index:W,droppableId:"groups"},type:"DEFAULT"};R.dataManager.changeByDrag(H),R.setState(R.dataManager.getRenderState(),function(){R.props.onGroupRemoved&&R.props.onGroupRemoved(L,W)})}),(0,m.default)((0,h.default)(R),"onEditingApproved",function(L,W,H){L==="add"&&R.props.editable&&R.props.editable.onRowAdd?R.setState({isLoading:!0},function(){R.props.editable.onRowAdd(W).then(function(G){R.setState({isLoading:!1,showAddRow:!1},function(){R.isRemoteData()&&R.onQueryChange(R.state.query)})}).catch(function(G){var te={message:G,errorCause:"add"};R.setState({isLoading:!1,errorState:te})})}):L==="update"&&R.props.editable&&R.props.editable.onRowUpdate?R.setState({isLoading:!0},function(){R.props.editable.onRowUpdate(W,H).then(function(G){R.dataManager.changeRowEditing(H),R.setState(D({isLoading:!1},R.dataManager.getRenderState()),function(){R.isRemoteData()&&R.onQueryChange(R.state.query)})}).catch(function(G){var te={message:G,errorCause:"update"};R.setState({isLoading:!1,errorState:te})})}):L==="delete"&&R.props.editable&&R.props.editable.onRowDelete?R.setState({isLoading:!0},function(){R.props.editable.onRowDelete(Object.entries(H).reduce(function(G,te){var ee=(0,d.default)(te,2),U=ee[0],Q=ee[1];return U!=="tableData"&&(G[U]=Q),G},{})).then(function(G){R.dataManager.changeRowEditing(H),R.setState(D({isLoading:!1},R.dataManager.getRenderState()),function(){R.isRemoteData()&&R.onQueryChange(R.state.query)})}).catch(function(G){var te={message:G,errorCause:"delete"};R.setState({isLoading:!1,errorState:te})})}):L==="bulk"&&R.props.editable&&R.props.editable.onBulkUpdate&&R.setState({isLoading:!0},function(){R.props.editable.onBulkUpdate(R.dataManager.bulkEditChangedRows).then(function(G){R.dataManager.changeBulkEditOpen(!1),R.props.onBulkEditOpen&&R.props.onBulkEditOpen(!1),R.dataManager.clearBulkEditChangedRows(),R.setState(D({isLoading:!1},R.dataManager.getRenderState()),function(){R.isRemoteData()&&R.onQueryChange(R.state.query)})}).catch(function(G){var te={message:G,errorCause:"bulk edit"};R.setState({isLoading:!1,errorState:te})})})}),(0,m.default)((0,h.default)(R),"onEditingCanceled",function(L,W){L==="add"?(R.props.editable.onRowAddCancelled&&R.props.editable.onRowAddCancelled(),R.setState({showAddRow:!1})):L==="update"?(R.props.editable.onRowUpdateCancelled&&R.props.editable.onRowUpdateCancelled(),R.dataManager.changeRowEditing(W),R.setState(R.dataManager.getRenderState())):L==="delete"&&(R.dataManager.changeRowEditing(W),R.setState(R.dataManager.getRenderState()))}),(0,m.default)((0,h.default)(R),"retry",function(){R.onQueryChange(R.state.query)}),(0,m.default)((0,h.default)(R),"onQueryChange",function(L,W){L=D(D(D({},R.state.query),L),{},{error:R.state.errorState}),R.setState({isLoading:!0,errorState:void 0},function(){R.props.data(L).then(function(H){L.totalCount=H.totalCount,L.page=H.page;var G=D(D({},L),{},{totalCount:H.totalCount,page:H.page});R.dataManager.setData(H.data,R.props.options.idSynonym),R.setState(D(D({isLoading:!1,errorState:!1},R.dataManager.getRenderState()),{},{query:G}),function(){W&&W()})}).catch(function(H){var G={message:(0,c.default)(H)==="object"?H.message:H!==void 0?H:R.props.localization.error,errorCause:"query"};R.setState(D({isLoading:!1,errorState:G},R.dataManager.getRenderState()))})})}),(0,m.default)((0,h.default)(R),"onRowSelected",function(L,W,H){R.dataManager.changeRowSelected(L.target.checked,W),R.setState(R.dataManager.getRenderState(),function(){return R.onSelectionChange(H)})}),(0,m.default)((0,h.default)(R),"onSelectionChange",function(L){if(R.props.onSelectionChange){var W=[],H=function(te){te.forEach(function(ee){ee.tableData.checked&&W.push(ee)})};H(R.state.originalData),R.props.onSelectionChange(W,L)}}),(0,m.default)((0,h.default)(R),"onSearchChangeDebounce",(0,x.debounce)(function(L){if(R.isRemoteData()){var W=D({},R.state.query);W.page=0,W.search=L,R.onQueryChange(W,function(){R.props.onSearchChange&&R.props.onSearchChange(L)})}else R.setState(R.dataManager.getRenderState(),function(){R.props.onSearchChange&&R.props.onSearchChange(L)})},R.props.options.debounceInterval)),(0,m.default)((0,h.default)(R),"onFilterChange",function(L,W){R.dataManager.changeFilterValue(L,W),R.setState({},R.onFilterChangeDebounce)}),(0,m.default)((0,h.default)(R),"onFilterChangeDebounce",(0,x.debounce)(function(){if(R.isRemoteData()){var L=D({},R.state.query);L.page=0,L.filters=R.state.columns.filter(function(W){return W.tableData.filterValue}).map(function(W){return{column:W,operator:"=",value:W.tableData.filterValue}}),R.onQueryChange(L,function(){R.props.onFilterChange&&R.props.onFilterChange(L.filters)})}else R.setState(R.dataManager.getRenderState(),function(){if(R.props.onFilterChange){var W=R.state.columns.filter(function(H){return H.tableData.filterValue}).map(function(H){return{column:H,operator:"=",value:H.tableData.filterValue}});R.props.onFilterChange(W)}})},R.props.options.debounceInterval)),(0,m.default)((0,h.default)(R),"onTreeExpandChanged",function(L,W){R.dataManager.changeTreeExpand(L),R.setState(R.dataManager.getRenderState(),function(){R.props.onTreeExpandChange&&R.props.onTreeExpandChange(W,W.tableData.isTreeExpanded)})}),(0,m.default)((0,h.default)(R),"onToggleDetailPanel",function(L,W){R.dataManager.changeDetailPanelVisibility(L,W),R.setState(R.dataManager.getRenderState())}),(0,m.default)((0,h.default)(R),"onCellEditStarted",function(L,W){R.dataManager.startCellEditable(L,W),R.setState(R.dataManager.getRenderState())}),(0,m.default)((0,h.default)(R),"onCellEditFinished",function(L,W){R.dataManager.finishCellEditable(L,W),R.setState(R.dataManager.getRenderState())}),(0,m.default)((0,h.default)(R),"onEditRowDataChanged",function(L,W){R.dataManager.setEditRowData(L,W),R.setState(R.dataManager.getRenderState())}),(0,m.default)((0,h.default)(R),"onColumnResized",function(L,W,H,G){var te=function(Q){return D(D(D({field:Q.field,width:Q.tableData.width,widthPx:Q.tableData.widthPx},Q.id&&{id:Q.id}),Q.minWidth&&{minWidth:Q.minWidth}),Q.maxWidth&&{maxWidth:Q.maxWidth})},ee=R.dataManager.onColumnResized(L,W,H,G);R.setState(R.dataManager.getRenderState(),function(){W===0&&R.props.onColumnResized&&ee.length>0&&R.props.onColumnResized(ee.map(function(U){return te(U)}),R.state.columns.map(function(U){return te(U)}))})}),(0,m.default)((0,h.default)(R),"renderTable",function(L){var W;return y.default.createElement(u.default,{sx:L.sx,style:D(D({},L.options.tableWidth==="variable"&&{width:R.state.tableStyleWidth}),{},{tableLayout:L.options.fixedColumns&&(L.options.fixedColumns.left||L.options.fixedColumns.right)?"fixed":L.options.tableLayout})},L.options.header&&y.default.createElement(L.components.Header,{actions:R.state.actions,columns:R.state.columns,selectedCount:R.state.selectedCount,dataCount:L.parentChildData?R.dataManager.searchedData.length:R.state.columns.some(function(H){return H.tableData.groupOrder>-1})?R.state.groupedDataLength:R.state.data.length,hasDetailPanel:!!L.detailPanel,showActionsColumn:!R.dataManager.bulkEditOpen&&R.state.actions&&R.state.actions.some(function(H){return H.position==="row"||typeof H=="function"}),onAllSelected:R.onAllSelected,onOrderChange:R.onChangeOrder,isTreeData:R.props.parentChildData!==void 0,treeDataMaxLevel:R.state.treeDataMaxLevel,onColumnResized:R.onColumnResized,scrollWidth:R.state.width,sorting:L.options.sorting||R.dataManager.maxColumnSort!==0,allowSorting:R.dataManager.maxColumnSort!==0,orderByCollection:R.dataManager.getOrderByCollection(),tableWidth:(W=L.options.tableWidth)!==null&&W!==void 0?W:"full"}),y.default.createElement(L.components.Body,{actions:R.state.actions,components:R.props.components,renderData:R.state.renderData,data:R.state.data,renderSummaryRow:R.props.renderSummaryRow,currentPage:R.isRemoteData()?0:R.state.currentPage,initialFormData:L.initialFormData,pageSize:R.state.pageSize,columns:R.state.columns,errorState:R.state.errorState,detailPanel:L.detailPanel,options:L.options,getFieldValue:R.dataManager.getFieldValue,isTreeData:R.props.parentChildData!==void 0,onFilterChanged:R.onFilterChange,onRowSelected:R.onRowSelected,onGroupSelected:R.onGroupSelected,onToggleDetailPanel:R.onToggleDetailPanel,onGroupExpandChanged:R.onGroupExpandChanged,onTreeExpandChanged:R.onTreeExpandChanged,onEditingCanceled:R.onEditingCanceled,onEditingApproved:R.onEditingApproved,onRowClick:R.props.onRowClick,onRowDoubleClick:R.props.onRowDoubleClick,showAddRow:R.state.showAddRow,hasAnyEditingRow:!!(R.state.lastEditingRow||R.state.showAddRow),hasDetailPanel:!!L.detailPanel,treeDataMaxLevel:R.state.treeDataMaxLevel,cellEditable:L.cellEditable,onCellEditStarted:R.onCellEditStarted,onCellEditFinished:R.onCellEditFinished,onRowEditStarted:R.onRowEditStarted,bulkEditOpen:R.dataManager.bulkEditOpen,bulkEditChangedRows:R.dataManager.bulkEditChangedRows,onBulkEditRowChanged:R.dataManager.onBulkEditRowChanged,scrollWidth:R.state.width}))}),(0,m.default)((0,h.default)(R),"onRowEditStarted",function(L){var W;(W=R.props.editable)!==null&&W!==void 0&&W.onRowUpdate&&(R.dataManager.changeRowEditing(L,"update"),R.setState(D(D({},R.dataManager.getRenderState()),{},{showAddRow:!1})))}),(0,m.default)((0,h.default)(R),"getColumnsWidth",function(L,W){var H=[],G=w.actionsColumnWidth(L);if(G>0&&(W>0&&L.options.actionsColumnIndex>=0&&L.options.actionsColumnIndex=W)&&H.push(G+"px"),L.options.selection&&W>0){var te=w.selectionMaxWidth(L,R.state.treeDataMaxLevel);H.push(te+"px")}for(var ee=0;ee=0?ee:R.state.columns.length-1-ee];U.tableData&&(typeof U.tableData.width=="number"?H.push(U.tableData.width+"px"):H.push(U.tableData.width))}return"calc("+H.join(" + ")+")"}),(0,m.default)((0,h.default)(R),"getRenderData",function(){return R.props.options.exportAllData?R.state.data:R.state.renderData});var q=R.getProps(N);R.setDataManagerFields(q,!0);var Y=R.dataManager.getRenderState();return R.state=D(D({data:[],errorState:void 0},Y),{},{query:{filters:Y.columns.filter(function(L){return L.tableData.filterValue}).map(function(L){return{column:L,operator:"=",value:L.tableData.filterValue}}),orderBy:Y.columns.find(function(L){return L.tableData.id===Y.orderBy}),orderDirection:Y.orderDirection,orderByCollection:Y.orderByCollection,page:0,pageSize:q.options.pageSize,search:Y.searchText,totalCount:0},showAddRow:!1,bulkEditOpen:!1,width:0,tableInitialWidthPx:void 0,tableStyleWidth:"100%",actions:q.actions}),R.tableContainerDiv=y.default.createRef(),R}return(0,p.default)(z,[{key:"componentDidMount",value:function(){var R=this;this.setState(D(D({},this.dataManager.getRenderState()),{},{width:this.tableContainerDiv.current.scrollWidth}),function(){R.isRemoteData()&&R.onQueryChange(D(D({},R.state.query),{},{page:R.props.options.initialPage||0})),R.props.onDoubleRowClick!==void 0&&console.warn("Property `onDoubleRowClick` has been renamed to `onRowDoubleClick`"),R.props.options.sorting!==void 0&&console.warn("Property `sorting` has been deprecated, please start using `maxColumnSort` instead. https://github.com/material-table-core/core/pull/619")})}},{key:"setDataManagerFields",value:function(R,q,Y){var L,W=this,H={};if(R.options.persistentGroupingsId&&localStorage){var G=localStorage.getItem("material-table-groupings");G&&(G=JSON.parse(G),G[R.options.persistentGroupingsId]&&G[R.options.persistentGroupingsId].forEach(function(ke){H[ke.field]={groupOrder:ke.groupOrder,groupSort:ke.groupSort,columnOrder:ke.columnOrder}}))}this.dataManager.setTableWidth((L=R.options.tableWidth)!==null&&L!==void 0?L:"full"),this.dataManager.setColumns(R.columns,Y,H),this.dataManager.setDefaultExpanded(R.options.defaultExpanded),this.dataManager.changeRowEditing();var te=R.options,ee=te.clientSorting,U=te.grouping,Q=te.maxColumnSort;this.dataManager.setClientSorting(ee),this.dataManager.setMaxColumnSort(U?1:Q),this.dataManager.setOrderByCollection(),this.isRemoteData(R)?(this.dataManager.changeApplySearch(!1),this.dataManager.changeApplyFilters(!1),this.dataManager.changeApplySort(!1)):(this.dataManager.changeApplySearch(!0),this.dataManager.changeApplyFilters(!0),this.dataManager.changeApplySort(!0),this.dataManager.setData(R.data,R.options.idSynonym));var V=this.dataManager.getDefaultOrderByCollection(),X=R.options.defaultOrderByCollection,K=[],ne="",ae="";if(X&&X.length>0)K=(0,s.default)(X).slice(0,Q),K=this.dataManager.sortOrderCollection(K),ne=JSON.stringify(K),ae=JSON.stringify(V),ne!==ae&&this.dataManager.setDefaultOrderByCollection(K);else{var ie=A(R.columns,Y,this.dataManager.maxColumnSort);K=(0,s.default)(ie[0]),ne=JSON.stringify(K),ae=JSON.stringify((0,s.default)(ie[1]))}var se=JSON.stringify(this.dataManager.orderByCollection),pe=q||!this.isRemoteData()&&K.length&&ne!==ae&&ne!==se;pe&&K.length>0&&Q>0&&K.forEach(function(ke){var Ce=ke.orderBy,Oe=ke.orderDirection,Pe=ke.sortOrder;return W.dataManager.changeColumnOrder(Ce,Oe,Pe)}),q&&this.dataManager.changeSearchText(R.options.searchText||""),q&&this.dataManager.changeSearchDebounce(R.options.searchDebounceDelay),q&&this.dataManager.changeCurrentPage(R.options.initialPage?R.options.initialPage:0),q&&this.dataManager.changePageSize(R.options.pageSize),this.dataManager.changePaging(this.isRemoteData()?!1:R.options.paging),q&&this.dataManager.changeParentFunc(R.parentChildData),this.dataManager.changeDetailPanelType(R.options.detailPanelType)}},{key:"cleanColumns",value:function(R){return R.map(function(q){var Y=D({},q);return delete Y.tableData,Y})}},{key:"componentDidUpdate",value:function(R){var q=this.cleanColumns(R.columns),Y=this.cleanColumns(this.props.columns),L=!(0,_.default)(q,Y),W=L||!(0,_.default)(R.options,this.props.options);if(this.isRemoteData()||(W=W||!(0,_.default)(R.data,this.props.data)),R.options.pageSize!==this.props.options.pageSize&&this.dataManager.changePageSize(this.props.options.pageSize),W){var H=this.getProps(this.props);this.setDataManagerFields(H,!1,R.columns),this.setState(D(D({},this.dataManager.getRenderState()),{},{actions:H.actions}))}var G=this.isRemoteData()?this.state.query.totalCount:this.state.data.length,te=this.isRemoteData()?this.state.query.page:this.state.currentPage,ee=this.isRemoteData()?this.state.query.pageSize:this.state.pageSize;G<=ee*te&&te!==0&&!this.state.isLoading&&this.onPageChange(null,Math.max(0,Math.ceil(G/ee)-1))}},{key:"getProps",value:function(R){var q=this,Y=D({},R||this.props),L=this.props.localization.body;if(Y.options.selection?Y.actions=Y.actions.filter(function(H){return H}).map(function(H){return H.position==="auto"||H.isFreeAction===!1||H.position===void 0&&H.isFreeAction===void 0?typeof H=="function"?{action:H,position:"toolbarOnSelect"}:D(D({},H),{},{position:"toolbarOnSelect"}):H.isFreeAction?typeof H=="function"?{action:H,position:"toolbar"}:D(D({},H),{},{position:"toolbar"}):H}):Y.actions=Y.actions.filter(function(H){return H}).map(function(H){return H.position==="auto"||H.isFreeAction===!1||H.position===void 0&&H.isFreeAction===void 0?typeof H=="function"?{action:H,position:"row"}:D(D({},H),{},{position:"row"}):H.isFreeAction?typeof H=="function"?{action:H,position:"toolbar"}:D(D({},H),{},{position:"toolbar"}):H}),Y.editable){var W;Y.editable.onRowAdd&&Y.actions.push({icon:Y.icons.Add,tooltip:L.addTooltip,position:"toolbar",disabled:!!this.dataManager.lastEditingRow,onClick:function(){q.dataManager.changeRowEditing(),q.state.showAddRow&&q.props.editable.onRowAddCancelled&&q.props.editable.onRowAddCancelled(),q.setState(D(D({},q.dataManager.getRenderState()),{},{showAddRow:!q.state.showAddRow}))}}),Y.editable.onRowUpdate&&Y.actions.push(function(H){return{icon:Y.icons.Edit,tooltip:Y.editable.editTooltip?Y.editable.editTooltip(H):L.editTooltip,disabled:Y.editable.isEditable&&!Y.editable.isEditable(H),hidden:Y.editable.isEditHidden&&Y.editable.isEditHidden(H),onClick:function(te,ee){q.onRowEditStarted(ee)}}}),Y.editable.onRowDelete&&Y.actions.push(function(H){return{icon:Y.icons.Delete,tooltip:Y.editable.deleteTooltip?Y.editable.deleteTooltip(H):L.deleteTooltip,disabled:Y.editable.isDeletable&&!Y.editable.isDeletable(H),hidden:Y.editable.isDeleteHidden&&Y.editable.isDeleteHidden(H),onClick:function(te,ee){q.dataManager.changeRowEditing(ee,"delete"),q.setState(D(D({},q.dataManager.getRenderState()),{},{showAddRow:!1}))}}}),Y.editable.onBulkUpdate&&(Y.actions.push({icon:Y.icons.Edit,tooltip:L.bulkEditTooltip,position:"toolbar",hidden:this.dataManager.bulkEditOpen,disabled:Y.isBulkEditable&&Y.isBulkEditable(),onClick:function(){q.dataManager.changeBulkEditOpen(!0),q.props.onBulkEditOpen&&q.props.onBulkEditOpen(!0),q.setState(q.dataManager.getRenderState())}}),Y.actions.push({icon:Y.icons.Check,tooltip:L.bulkEditApprove,position:"toolbar",hidden:!this.dataManager.bulkEditOpen,onClick:function(){return q.onEditingApproved("bulk")}}),Y.actions.push({icon:Y.icons.Clear,tooltip:L.bulkEditCancel,position:"toolbar",hidden:!this.dataManager.bulkEditOpen,onClick:function(){q.dataManager.changeBulkEditOpen(!1),q.props.onBulkEditOpen&&q.props.onBulkEditOpen(!1),q.dataManager.clearBulkEditChangedRows(),q.setState(q.dataManager.getRenderState())}})),(W=this.state)!==null&&W!==void 0&&W.showAddRow&&Y.editable.onRowAdd&&Y.actions.filter(function(H){return H.position==="row"}).length===0&&Y.actions.push({icon:void 0,position:"row",onClick:function(){},disabled:!0})}return Y}},{key:"renderFooter",value:function(){var R=this.getProps();if(R.options.paging){var q=this.isRemoteData()?Math.min(R.page,Math.floor(R.totalCount/this.state.pageSize)):this.state.currentPage,Y=this.isRemoteData()?R.totalCount:this.state.data.length;return y.default.createElement(u.default,null,y.default.createElement(l.default,{style:{display:"grid"}},y.default.createElement(i.default,{style:{display:"grid"}},y.default.createElement(R.components.Pagination,{sx:{display:"flex",justifyContent:R.options.paginationAlignment?R.options.paginationAlignment:"flex-end",overflowX:"auto","& .MuiTablePagination-displayedRows":{display:"none"}},colSpan:3,count:this.isRemoteData()?this.state.query.totalCount:Y,rowsPerPage:this.state.pageSize,rowsPerPageOptions:R.options.pageSizeOptions,SelectProps:{renderValue:function(W){return y.default.createElement(a.default,{sx:{padding:"0px 5px"}},W+" "+R.localization.pagination.labelRows+" ")}},page:this.isRemoteData()?this.state.query.page:q,onPageChange:this.onPageChange,onRowsPerPageChange:this.onRowsPerPageChange,ActionsComponent:function(W){return R.options.paginationType==="normal"?y.default.createElement(C.MTablePagination,(0,o.default)({},W,{showFirstLastPageButtons:R.options.showFirstLastPageButtons})):y.default.createElement(C.MTableSteppedPagination,(0,o.default)({},W,{showFirstLastPageButtons:R.options.showFirstLastPageButtons,numberOfPagesAround:R.options.numberOfPagesAround}))},labelRowsPerPage:R.localization.pagination.labelRowsPerPage}))))}}},{key:"render",value:function(){var R=this,q=this.getProps();return y.default.createElement(S.DragDropContext,{onDragEnd:this.onDragEnd,nonce:q.options.cspNonce},y.default.createElement(this.props.components.Container,{style:D({position:"relative"},q.style)},q.options.paginationPosition==="top"||q.options.paginationPosition==="both"?this.renderFooter():null,q.options.toolbar&&y.default.createElement(this.props.components.Toolbar,{actions:q.actions,components:this.props.components,originalData:this.state.originalData,columns:this.state.columns,selectedCount:this.state.selectedCount,getFieldValue:this.dataManager.getFieldValue,data:this.getRenderData,title:q.title,searchText:this.dataManager.searchText,searchDebounceDelay:this.dataManager.searchDebounceDelay,onSearchChanged:this.onSearchChangeDebounce,isRemoteData:this.isRemoteData(),dataManager:this.dataManager,onColumnsChanged:this.onChangeColumnHidden}),q.options.grouping&&y.default.createElement(this.props.components.Groupbar,{groupColumns:this.state.columns.filter(function(Y){return Y.tableData.groupOrder>-1}).sort(function(Y,L){return Y.tableData.groupOrder-L.tableData.groupOrder}),onSortChanged:this.onChangeGroupOrder,onGroupRemoved:this.onGroupRemoved,onGroupChange:this.props.onGroupChange,persistentGroupingsId:q.options.persistentGroupingsId}),y.default.createElement(C.MTableScrollbar,{double:q.options.doubleHorizontalScroll},y.default.createElement(S.Droppable,{droppableId:"headers",direction:"horizontal"},function(Y,L){var W=R.renderTable(q);return y.default.createElement("div",{ref:Y.innerRef},y.default.createElement("div",{ref:R.tableContainerDiv,style:{maxHeight:q.options.maxBodyHeight,minHeight:q.options.minBodyHeight,overflowY:q.options.overflowY}},R.state.width&&q.options.fixedColumns&&q.options.fixedColumns.right?y.default.createElement("div",{style:{width:R.getColumnsWidth(q,-1*q.options.fixedColumns.right),position:"absolute",top:0,right:0,boxShadow:"-2px 0px 15px rgba(125,147,178,.25)",overflowX:"clip",zIndex:11}},y.default.createElement("div",{style:{width:R.state.width,background:"white",transform:"translateX(calc(".concat(R.getColumnsWidth(q,-1*q.options.fixedColumns.right)," - 100%))")}},W)):null,y.default.createElement("div",null,W),R.state.width&&q.options.fixedColumns&&q.options.fixedColumns.left?y.default.createElement("div",{style:{width:R.getColumnsWidth(q,q.options.fixedColumns.left),position:"absolute",top:0,left:0,boxShadow:"2px 0px 15px rgba(125,147,178,.25)",overflowX:"clip",zIndex:11}},y.default.createElement("div",{style:{width:R.state.width,background:"white"},onKeyDown:function(G){G.key==="Tab"&&G.preventDefault()}},W)):null),Y.placeholder)})),(this.state.isLoading||q.isLoading)&&q.options.loadingType==="linear"&&y.default.createElement("div",{style:{position:"relative",width:"100%"}},y.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%"}},y.default.createElement(r.default,null))),q.options.paginationPosition==="bottom"||q.options.paginationPosition==="both"?this.renderFooter():null,(this.state.isLoading||q.isLoading)&&q.options.loadingType==="overlay"&&y.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%",zIndex:11}},y.default.createElement(this.props.components.OverlayLoading,{theme:q.theme})),this.state.errorState&&this.state.errorState.errorCause==="query"&&y.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%",zIndex:11}},y.default.createElement(this.props.components.OverlayError,{error:this.state.errorState,retry:this.retry,theme:q.theme}))))}}]),z}(y.default.Component);e.default=I;function A(j,B,z){var N=[],R=[];return z>0&&(N=F(j,z)),B&&(R=F(B,z)),[N,R]}function F(j,B){var z=j.filter(function(N){return N.defaultSort&&N.sorting!==!1});return z.slice(0,B).map(function(N,R){return{orderBy:N.tableData?N.tableData.id:j.findIndex(function(q){return q.field===N.field}),orderDirection:N.defaultSort,sortOrder:R+1}})}}(P3)),P3}(function(e){var t=Hn;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ALL_COLUMNS",{enumerable:!0,get:function(){return c.ALL_COLUMNS}}),Object.defineProperty(e,"MTableAction",{enumerable:!0,get:function(){return u.MTableAction}}),Object.defineProperty(e,"MTableActions",{enumerable:!0,get:function(){return u.MTableActions}}),Object.defineProperty(e,"MTableBody",{enumerable:!0,get:function(){return u.MTableBody}}),Object.defineProperty(e,"MTableBodyRow",{enumerable:!0,get:function(){return u.MTableBodyRow}}),Object.defineProperty(e,"MTableCell",{enumerable:!0,get:function(){return u.MTableCell}}),Object.defineProperty(e,"MTableEditCell",{enumerable:!0,get:function(){return u.MTableEditCell}}),Object.defineProperty(e,"MTableEditField",{enumerable:!0,get:function(){return u.MTableEditField}}),Object.defineProperty(e,"MTableEditRow",{enumerable:!0,get:function(){return u.MTableEditRow}}),Object.defineProperty(e,"MTableFilterRow",{enumerable:!0,get:function(){return u.MTableFilterRow}}),Object.defineProperty(e,"MTableGroupRow",{enumerable:!0,get:function(){return u.MTableGroupRow}}),Object.defineProperty(e,"MTableGroupbar",{enumerable:!0,get:function(){return u.MTableGroupbar}}),Object.defineProperty(e,"MTableHeader",{enumerable:!0,get:function(){return u.MTableHeader}}),Object.defineProperty(e,"MTablePagination",{enumerable:!0,get:function(){return u.MTablePagination}}),Object.defineProperty(e,"MTableSteppedPagination",{enumerable:!0,get:function(){return u.MTableSteppedPagination}}),Object.defineProperty(e,"MTableToolbar",{enumerable:!0,get:function(){return u.MTableToolbar}}),e.default=void 0,Object.defineProperty(e,"useLocalizationStore",{enumerable:!0,get:function(){return s.useLocalizationStore}});var n=t(jr()),r=t(ge),l=xSe(),i=wSe(),o=t(jSe()),a=Sf,s=mg(),u=ux(),c=C4();o.default.defaultProps=l.defaultProps,o.default.propTypes=i.propTypes;var d=(0,s.withContext)(function(f){var p=(0,a.useTheme)(),h=(0,s.useMergeProps)(f),g=h.localization,b=h.options,v=h.components;return r.default.createElement(o.default,(0,n.default)({},f,{theme:p,options:b,components:v,localization:g,ref:f.tableRef}))});e.default=d})(OB);const zSe=dr(OB),BSe=kr(Se.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),WSe=e=>{const t=e.activeTab===-1?0:e.activeTab;return Se.jsxs("div",{children:[Se.jsx(TB,{value:t,onChange:e.onNewTabSelected,indicatorColor:"primary",textColor:"primary",children:e.tabs.map(n=>Se.jsx(jS,{disabled:n.disabled??!1,label:Se.jsx(Ia,{className:e.tabStyle,children:Se.jsxs(Ia,{display:"flex",sx:{fontSize:"0.875rem"},children:[Se.jsx("span",{children:n.icon}),n.title]})})}))}),Se.jsx(Ia,{children:e.tabs.map((n,r)=>Se.jsx("div",{hidden:(e.activeTab===-1?0:e.activeTab)!==r,children:(e.activeTab===-1?0:e.activeTab)!==r?Se.jsx("div",{}):n.tab}))})]})},M4=e=>{const[t,n]=ge.useState({activeTab:0});return Se.jsx(Ke.Fragment,{children:Se.jsx(WSe,{activeTab:t.activeTab,onNewTabSelected:(r,l)=>n(i=>({...i,activeTab:l})),tabs:e.tabs})})},nk=({func:e,children:t})=>{const[n,r]=ge.useState(()=>({status:0,func:e}));return n.status===0&&r(l=>({...l,status:1})),n.status===1&&(r(l=>({...l,status:2})),n.func().then(l=>r(i=>({...i,status:3,result:l}))).catch(()=>r(l=>({...l,status:4})))),Se.jsx(Se.Fragment,{children:n.status===3?t&&n.result&&t(n.result):n.status===4?Se.jsx(mr,{align:"center",children:"Failed"}):n.status===2?Se.jsx(Ia,{textAlign:"center",children:Se.jsx(Iz,{})}):null})},P4=({forseFilled:e,sx:t,...n})=>{const r=hg();return Se.jsx(Jae,{sx:[l=>l.applyStyles("light",{border:"none"}),...Array.isArray(t)?t:[t]],variant:r==="dark"?e?"filled":"outlined":void 0,...n})},LU=e=>Se.jsxs(P4,{severity:e.data.severity,children:[Se.jsx(n5,{children:e.data.title}),e.data.text]}),IU=()=>Se.jsx("div",{children:"Not implemented"}),qSe=e=>e.type??"graph",W9=(e,t,n)=>{switch(qSe(t)){case"graph":{const r=()=>e.getAdditionGraphData(t.id),l=i=>Se.jsx(Db,{...i,widgetSize:n});return Se.jsx(nk,{func:r,children:l})}case"widget":{const r=()=>e.getAdditionWidgetData(t.id),l=i=>Ng(t.id,i);return Se.jsx(nk,{func:r,children:l})}default:return Se.jsx(IU,{})}},O4=e=>Se.jsx(y5.Consumer,{children:t=>Se.jsxs(Ia,{children:[e.details.parts.length>1?Se.jsx(M4,{tabs:e.details.parts.map(n=>({title:n.title,tab:W9(t,n,e.widgetSize)}))}):W9(t,e.details.parts[0],e.widgetSize),e.details.insights===void 0?Se.jsx(Se.Fragment,{}):e.details.insights.map(n=>Se.jsx(LU,{data:n},n.text+n.title+n.severity))]})}),USe=e=>Se.jsx(y5.Consumer,{children:t=>Se.jsx(nk,{func:()=>t.getAdditionGraphData(e.graphId),children:n=>Se.jsx(Db,{...n,widgetSize:e.widgetSize})})});var rk={exports:{}},ak={exports:{}};(function(e,t){t.__esModule=!0,t.default=n;function n(r){var l={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(l[i]=0);return l}e.exports=t.default})(ak,ak.exports);var A4=ak.exports,ok={exports:{}};(function(e,t){t.__esModule=!0,t.default=n;function n(r){var l={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(l[i]=typeof r[i]=="number"?r[i]:r[i].val);return l}e.exports=t.default})(ok,ok.exports);var fx=ok.exports,ik={exports:{}};(function(e,t){t.__esModule=!0,t.default=r;var n=[0,0];function r(l,i,o,a,s,u,c){var d=-s*(i-a),f=-u*o,p=d+f,h=o+p*l,g=i+h*l;return Math.abs(h)"u"?$o:window,j0=["moz","webkit"],Id="AnimationFrame",sf=ns["request"+Id],$m=ns["cancel"+Id]||ns["cancelRequest"+Id];for(var eh=0;!sf&&ehS*10&&(O.accumulatedTime=0),O.accumulatedTime===0){O.animationID=null,O.startAnimationIfNecessary();return}var A=(O.accumulatedTime-Math.floor(O.accumulatedTime/S)*S)/S,F=Math.floor(O.accumulatedTime/S),j={},B={},z={},N={};for(var R in P)if(Object.prototype.hasOwnProperty.call(P,R)){var q=P[R];if(typeof q=="number")z[R]=q,N[R]=0,j[R]=q,B[R]=0;else{for(var Y=O.state.lastIdealStyle[R],L=O.state.lastIdealVelocity[R],W=0;WS*10&&(D.accumulatedTime=0),D.accumulatedTime===0){D.animationID=null,D.startAnimationIfNecessary();return}for(var F=(D.accumulatedTime-Math.floor(D.accumulatedTime/S)*S)/S,j=Math.floor(D.accumulatedTime/S),B=[],z=[],N=[],R=[],q=0;qo[m])return-1;if(p>s[m]&&bo[m])return 1;if(h>s[m]&&gC*10&&(A.accumulatedTime=0),A.accumulatedTime===0){A.animationID=null,A.startAnimationIfNecessary();return}for(var R=(A.accumulatedTime-Math.floor(A.accumulatedTime/C)*C)/C,q=Math.floor(A.accumulatedTime/C),Y=O(A.props.willEnter,A.props.willLeave,A.props.didLeave,A.state.mergedPropsStyles,B,A.state.currentStyles,A.state.currentVelocities,A.state.lastIdealStyles,A.state.lastIdealVelocities),L=Y[0],W=Y[1],H=Y[2],G=Y[3],te=Y[4],ee=0;ee0},e.prototype.connect_=function(){!hk||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),fke?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!hk||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,l=dke.some(function(i){return!!~r.indexOf(i)});l&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),FU=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof uf(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new wke(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof uf(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new _ke(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),zU=typeof WeakMap<"u"?new WeakMap:new NU,BU=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=pke.getInstance(),r=new Tke(t,n,this);zU.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){BU.prototype[e]=function(){var t;return(t=zU.get(this))[e].apply(t,arguments)}});var Ske=function(){return typeof By.ResizeObserver<"u"?By.ResizeObserver:BU}(),kke=["client","offset","scroll","bounds","margin"];function H9(e){var t=[];return kke.forEach(function(n){e[n]&&t.push(n)}),t}function V9(e,t){var n={};if(t.indexOf("client")>-1&&(n.client={top:e.clientTop,left:e.clientLeft,width:e.clientWidth,height:e.clientHeight}),t.indexOf("offset")>-1&&(n.offset={top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight}),t.indexOf("scroll")>-1&&(n.scroll={top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}),t.indexOf("bounds")>-1){var r=e.getBoundingClientRect();n.bounds={top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height}}if(t.indexOf("margin")>-1){var l=getComputedStyle(e);n.margin={top:l?parseInt(l.marginTop):0,right:l?parseInt(l.marginRight):0,bottom:l?parseInt(l.marginBottom):0,left:l?parseInt(l.marginLeft):0}}return n}function Cke(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||window}function Mke(e){return function(t){var n,r;return r=n=function(l){xb(i,l);function i(){for(var a,s=arguments.length,u=new Array(s),c=0;c-1}var iCe=oCe,lCe=vx;function sCe(e,t){var n=this.__data__,r=lCe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var uCe=sCe,cCe=Vke,dCe=eCe,fCe=rCe,pCe=iCe,hCe=uCe;function Ef(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=x4e}var q4=w4e,_4e=bx,T4e=q4;function S4e(e){return e!=null&&T4e(e.length)&&!_4e(e)}var Nf=S4e,k4e=Nf,C4e=hi;function M4e(e){return C4e(e)&&k4e(e)}var tH=M4e,Hy={exports:{}};function P4e(){return!1}var O4e=P4e;Hy.exports;(function(e,t){var n=Yo,r=O4e,l=t&&!t.nodeType&&t,i=l&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===l,a=o?n.Buffer:void 0,s=a?a.isBuffer:void 0,u=s||r;e.exports=u})(Hy,Hy.exports);var Cx=Hy.exports,A4e=xs,D4e=B4,E4e=hi,R4e="[object Object]",L4e=Function.prototype,I4e=Object.prototype,nH=L4e.toString,$4e=I4e.hasOwnProperty,N4e=nH.call(Object);function F4e(e){if(!E4e(e)||A4e(e)!=R4e)return!1;var t=D4e(e);if(t===null)return!0;var n=$4e.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&nH.call(n)==N4e}var U4=F4e;const zm=dr(U4);var j4e=xs,z4e=q4,B4e=hi,W4e="[object Arguments]",q4e="[object Array]",U4e="[object Boolean]",H4e="[object Date]",V4e="[object Error]",G4e="[object Function]",Y4e="[object Map]",X4e="[object Number]",K4e="[object Object]",Z4e="[object RegExp]",Q4e="[object Set]",J4e="[object String]",e6e="[object WeakMap]",t6e="[object ArrayBuffer]",n6e="[object DataView]",r6e="[object Float32Array]",a6e="[object Float64Array]",o6e="[object Int8Array]",i6e="[object Int16Array]",l6e="[object Int32Array]",s6e="[object Uint8Array]",u6e="[object Uint8ClampedArray]",c6e="[object Uint16Array]",d6e="[object Uint32Array]",Yr={};Yr[r6e]=Yr[a6e]=Yr[o6e]=Yr[i6e]=Yr[l6e]=Yr[s6e]=Yr[u6e]=Yr[c6e]=Yr[d6e]=!0;Yr[W4e]=Yr[q4e]=Yr[t6e]=Yr[U4e]=Yr[n6e]=Yr[H4e]=Yr[V4e]=Yr[G4e]=Yr[Y4e]=Yr[X4e]=Yr[K4e]=Yr[Z4e]=Yr[Q4e]=Yr[J4e]=Yr[e6e]=!1;function f6e(e){return B4e(e)&&z4e(e.length)&&!!Yr[j4e(e)]}var p6e=f6e;function h6e(e){return function(t){return e(t)}}var Ff=h6e,Vy={exports:{}};Vy.exports;(function(e,t){var n=qU,r=t&&!t.nodeType&&t,l=r&&!0&&e&&!e.nodeType&&e,i=l&&l.exports===r,o=i&&n.process,a=function(){try{var s=l&&l.require&&l.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}}();e.exports=a})(Vy,Vy.exports);var Mx=Vy.exports,m6e=p6e,g6e=Ff,iR=Mx,lR=iR&&iR.isTypedArray,v6e=lR?g6e(lR):m6e,H4=v6e;function y6e(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var rH=y6e,b6e=j4,x6e=Sg,w6e=Object.prototype,_6e=w6e.hasOwnProperty;function T6e(e,t,n){var r=e[t];(!(_6e.call(e,t)&&x6e(r,n))||n===void 0&&!(t in e))&&b6e(e,t,n)}var V4=T6e,S6e=V4,k6e=j4;function C6e(e,t,n,r){var l=!n;n||(n={});for(var i=-1,o=t.length;++i-1&&e%1==0&&e0){if(++t>=IPe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var lH=FPe,jPe=LPe,zPe=lH,BPe=zPe(jPe),Y4=BPe,WPe=Dc,qPe=iH,UPe=Y4;function HPe(e,t){return UPe(qPe(e,t,WPe),e+"")}var Px=HPe,VPe=Sg,GPe=Nf,YPe=kg,XPe=Hi;function KPe(e,t,n){if(!XPe(n))return!1;var r=typeof t;return(r=="number"?GPe(n)&&YPe(t,n.length):r=="string"&&t in n)?VPe(n[t],e):!1}var X4=KPe,ZPe=Px,QPe=X4;function JPe(e){return ZPe(function(t,n){var r=-1,l=n.length,i=l>1?n[l-1]:void 0,o=l>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(l--,i):void 0,o&&QPe(n[0],n[1],o)&&(i=l<3?void 0:i,l=1),t=Object(t);++rt?1:e>=t?0:NaN}function Q4(e){let t=e,n=e;e.length===1&&(t=(o,a)=>e(o)-a,n=c8e(e));function r(o,a,s,u){for(s==null&&(s=0),u==null&&(u=o.length);s>>1;n(o[c],a)<0?s=c+1:u=c}return s}function l(o,a,s,u){for(s==null&&(s=0),u==null&&(u=o.length);s>>1;n(o[c],a)>0?u=c:s=c+1}return s}function i(o,a,s,u){s==null&&(s=0),u==null&&(u=o.length);const c=r(o,a,s,u-1);return c>s&&t(o[c-1],a)>-t(o[c],a)?c-1:c}return{left:r,center:i,right:l}}function c8e(e){return(t,n)=>pH(e(t),n)}function d8e(e){return e===null?NaN:+e}const f8e=Q4(pH),p8e=f8e.right;Q4(d8e).center;var mk=Math.sqrt(50),gk=Math.sqrt(10),vk=Math.sqrt(2);function yk(e,t,n){var r,l=-1,i,o,a;if(t=+t,e=+e,n=+n,e===t&&n>0)return[e];if((r=t0){let s=Math.round(e/a),u=Math.round(t/a);for(s*at&&--u,o=new Array(i=u-s+1);++lt&&--u,o=new Array(i=u-s+1);++l=0?(i>=mk?10:i>=gk?5:i>=vk?2:1)*Math.pow(10,l):-Math.pow(10,-l)/(i>=mk?10:i>=gk?5:i>=vk?2:1)}function bk(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),l=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/l;return i>=mk?l*=10:i>=gk?l*=5:i>=vk&&(l*=2),t>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?B0(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?B0(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=v8e.exec(e))?new ni(t[1],t[2],t[3],1):(t=y8e.exec(e))?new ni(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=b8e.exec(e))?B0(t[1],t[2],t[3],t[4]):(t=x8e.exec(e))?B0(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=w8e.exec(e))?kR(t[1],t[2]/100,t[3]/100,1):(t=_8e.exec(e))?kR(t[1],t[2]/100,t[3]/100,t[4]):bR.hasOwnProperty(e)?_R(bR[e]):e==="transparent"?new ni(NaN,NaN,NaN,0):null}function _R(e){return new ni(e>>16&255,e>>8&255,e&255,1)}function B0(e,t,n,r){return r<=0&&(e=t=n=NaN),new ni(e,t,n,r)}function S8e(e){return e instanceof Pg||(e=cc(e)),e?(e=e.rgb(),new ni(e.r,e.g,e.b,e.opacity)):new ni}function dc(e,t,n,r){return arguments.length===1?S8e(e):new ni(e,t,n,r??1)}function ni(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}e6(ni,dc,gH(Pg,{brighter:function(e){return e=e==null?Gy:Math.pow(Gy,e),new ni(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?Bm:Math.pow(Bm,e),new ni(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:TR,formatHex:TR,formatRgb:SR,toString:SR}));function TR(){return"#"+L3(this.r)+L3(this.g)+L3(this.b)}function SR(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function L3(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function kR(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ml(e,t,n,r)}function vH(e){if(e instanceof Ml)return new Ml(e.h,e.s,e.l,e.opacity);if(e instanceof Pg||(e=cc(e)),!e)return new Ml;if(e instanceof Ml)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,l=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,a=i-l,s=(i+l)/2;return a?(t===i?o=(n-r)/a+(n0&&s<1?0:o,new Ml(o,a,s,e.opacity)}function k8e(e,t,n,r){return arguments.length===1?vH(e):new Ml(e,t,n,r??1)}function Ml(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}e6(Ml,k8e,gH(Pg,{brighter:function(e){return e=e==null?Gy:Math.pow(Gy,e),new Ml(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Bm:Math.pow(Bm,e),new Ml(this.h,this.s,this.l*e,this.opacity)},rgb:function(){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,l=2*n-r;return new ni(I3(e>=240?e-240:e+120,l,r),I3(e,l,r),I3(e<120?e+240:e-120,l,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function I3(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const t6=e=>()=>e;function C8e(e,t){return function(n){return e+n*t}}function M8e(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function P8e(e){return(e=+e)==1?yH:function(t,n){return n-t?M8e(t,n,e):t6(isNaN(t)?n:t)}}function yH(e,t){var n=t-e;return n?C8e(e,n):t6(isNaN(e)?t:e)}const CR=function e(t){var n=P8e(t);function r(l,i){var o=n((l=dc(l)).r,(i=dc(i)).r),a=n(l.g,i.g),s=n(l.b,i.b),u=yH(l.opacity,i.opacity);return function(c){return l.r=o(c),l.g=a(c),l.b=s(c),l.opacity=u(c),l+""}}return r.gamma=e,r}(1);function O8e(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),l;return function(i){for(l=0;ln&&(i=t.slice(n,i),a[o]?a[o]+=i:a[++o]=i),(r=r[0])===(l=l[0])?a[o]?a[o]+=l:a[++o]=l:(a[++o]=null,s.push({i:o,x:Yy(r,l)})),n=$3.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function B8e(e,t,n){var r=e[0],l=e[1],i=t[0],o=t[1];return l2?W8e:B8e,s=u=null,d}function d(f){return f==null||isNaN(f=+f)?i:(s||(s=a(e.map(r),t,n)))(r(o(f)))}return d.invert=function(f){return o(l((u||(u=a(t,e.map(r),Yy)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,j8e),c()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),c()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=N8e,c()},d.clamp=function(f){return arguments.length?(o=f?!0:Td,c()):o!==Td},d.interpolate=function(f){return arguments.length?(n=f,c()):n},d.unknown=function(f){return arguments.length?(i=f,d):i},function(f,p){return r=f,l=p,c()}}function xH(){return bH()(Td,Td)}function q8e(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Xy(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function cf(e){return e=Xy(Math.abs(e)),e?e[1]:NaN}function U8e(e,t){return function(n,r){for(var l=n.length,i=[],o=0,a=e[0],s=0;l>0&&a>0&&(s+a+1>r&&(a=Math.max(1,r-s)),i.push(n.substring(l-=a,l+a)),!((s+=a+1)>r));)a=e[o=(o+1)%e.length];return i.reverse().join(t)}}function H8e(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var V8e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ky(e){if(!(t=V8e.exec(e)))throw new Error("invalid format: "+e);var t;return new a6({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Ky.prototype=a6.prototype;function a6(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}a6.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function G8e(e){e:for(var t=e.length,n=1,r=-1,l;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(l+1):e}var wH;function Y8e(e,t){var n=Xy(e,t);if(!n)return e+"";var r=n[0],l=n[1],i=l-(wH=Math.max(-8,Math.min(8,Math.floor(l/3)))*3)+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Xy(e,Math.max(0,t+i-1))[0]}function PR(e,t){var n=Xy(e,t);if(!n)return e+"";var r=n[0],l=n[1];return l<0?"0."+new Array(-l).join("0")+r:r.length>l+1?r.slice(0,l+1)+"."+r.slice(l+1):r+new Array(l-r.length+2).join("0")}const OR={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:q8e,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return PR(e*100,t)},r:PR,s:Y8e,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function AR(e){return e}var DR=Array.prototype.map,ER=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function X8e(e){var t=e.grouping===void 0||e.thousands===void 0?AR:U8e(DR.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",l=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?AR:H8e(DR.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",a=e.minus===void 0?"-":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function u(d){d=Ky(d);var f=d.fill,p=d.align,h=d.sign,g=d.symbol,b=d.zero,v=d.width,m=d.comma,y=d.precision,x=d.trim,_=d.type;_==="n"?(m=!0,_="g"):OR[_]||(y===void 0&&(y=12),x=!0,_="g"),(b||f==="0"&&p==="=")&&(b=!0,f="0",p="=");var w=g==="$"?n:g==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",S=g==="$"?r:/[%p]/.test(_)?o:"",k=OR[_],C=/[defgprs%]/.test(_);y=y===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y));function T(M){var O=w,D=S,P,E,I;if(_==="c")D=k(M)+D,M="";else{M=+M;var A=M<0||1/M<0;if(M=isNaN(M)?s:k(Math.abs(M),y),x&&(M=G8e(M)),A&&+M==0&&h!=="+"&&(A=!1),O=(A?h==="("?h:a:h==="-"||h==="("?"":h)+O,D=(_==="s"?ER[8+wH/3]:"")+D+(A&&h==="("?")":""),C){for(P=-1,E=M.length;++PI||I>57){D=(I===46?l+M.slice(P+1):M.slice(P))+D,M=M.slice(0,P);break}}}m&&!b&&(M=t(M,1/0));var F=O.length+M.length+D.length,j=F>1)+O+M+D+j.slice(F);break;default:M=j+O+M+D;break}return i(M)}return T.toString=function(){return d+""},T}function c(d,f){var p=u((d=Ky(d),d.type="f",d)),h=Math.max(-8,Math.min(8,Math.floor(cf(f)/3)))*3,g=Math.pow(10,-h),b=ER[8+h/3];return function(v){return p(g*v)+b}}return{format:u,formatPrefix:c}}var W0,Uf,_H;K8e({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function K8e(e){return W0=X8e(e),Uf=W0.format,_H=W0.formatPrefix,W0}function Z8e(e){return Math.max(0,-cf(Math.abs(e)))}function Q8e(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(cf(t)/3)))*3-cf(Math.abs(e)))}function J8e(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,cf(t)-cf(e))+1}function eAe(e,t,n,r){var l=bk(e,t,n),i;switch(r=Ky(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=Q8e(l,o))&&(r.precision=i),_H(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=J8e(l,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=Z8e(l))&&(r.precision=i-(r.type==="%")*2);break}}return Uf(r)}function tAe(e){var t=e.domain;return e.ticks=function(n){var r=t();return yk(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var l=t();return eAe(l[0],l[l.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),l=0,i=r.length-1,o=r[l],a=r[i],s,u,c=10;for(a0;){if(u=hH(o,a,n),u===s)return r[l]=o,r[i]=a,t(r);if(u>0)o=Math.floor(o/u)*u,a=Math.ceil(a/u)*u;else if(u<0)o=Math.ceil(o*u)/u,a=Math.floor(a*u)/u;else break;s=u}return e},e}function fc(){var e=xH();return e.copy=function(){return r6(e,fc())},qf.apply(e,arguments),tAe(e)}function TH(e,t){e=e.slice();var n=0,r=e.length-1,l=e[n],i=e[r],o;return i0){for(;f<=p;++f)for(g=1,h=i(f);gc)break;m.push(b)}}else for(;f<=p;++f)for(g=r-1,h=i(f);g>=1;--g)if(b=h*g,!(bc)break;m.push(b)}m.length*20))return s;do s.push(u=new Date(+i)),t(i,a),e(i);while(u=o)for(;e(o),!i(o);)o.setTime(o-1)},function(o,a){if(o>=o)if(a<0)for(;++a<=0;)for(;t(o,-1),!i(o););else for(;--a>=0;)for(;t(o,1),!i(o););})},n&&(l.count=function(i,o){return N3.setTime(+i),F3.setTime(+o),e(N3),e(F3),Math.floor(n(N3,F3))},l.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?l.filter(r?function(o){return r(o)%i===0}:function(o){return l.count(0,o)%i===0}):l}),l}var Zy=Ga(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Zy.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ga(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Zy};Zy.range;const Jl=1e3,Oi=Jl*60,es=Oi*60,pc=es*24,o6=pc*7,$R=pc*30,j3=pc*365;var Yu=Ga(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Jl)},function(e,t){return(t-e)/Jl},function(e){return e.getUTCSeconds()});Yu.range;var i6=Ga(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Jl)},function(e,t){e.setTime(+e+t*Oi)},function(e,t){return(t-e)/Oi},function(e){return e.getMinutes()});i6.range;var l6=Ga(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Jl-e.getMinutes()*Oi)},function(e,t){e.setTime(+e+t*es)},function(e,t){return(t-e)/es},function(e){return e.getHours()});l6.range;var Og=Ga(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Oi)/pc,e=>e.getDate()-1);Og.range;function Ec(e){return Ga(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Oi)/o6})}var Ax=Ec(0),Qy=Ec(1),sAe=Ec(2),uAe=Ec(3),df=Ec(4),cAe=Ec(5),dAe=Ec(6);Ax.range;Qy.range;sAe.range;uAe.range;df.range;cAe.range;dAe.range;var s6=Ga(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});s6.range;var ds=Ga(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});ds.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Ga(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};ds.range;var u6=Ga(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Oi)},function(e,t){return(t-e)/Oi},function(e){return e.getUTCMinutes()});u6.range;var c6=Ga(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*es)},function(e,t){return(t-e)/es},function(e){return e.getUTCHours()});c6.range;var Ag=Ga(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/pc},function(e){return e.getUTCDate()-1});Ag.range;function Rc(e){return Ga(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/o6})}var Dx=Rc(0),Jy=Rc(1),fAe=Rc(2),pAe=Rc(3),ff=Rc(4),hAe=Rc(5),mAe=Rc(6);Dx.range;Jy.range;fAe.range;pAe.range;ff.range;hAe.range;mAe.range;var d6=Ga(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});d6.range;var fs=Ga(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});fs.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Ga(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};fs.range;function kH(e,t,n,r,l,i){const o=[[Yu,1,Jl],[Yu,5,5*Jl],[Yu,15,15*Jl],[Yu,30,30*Jl],[i,1,Oi],[i,5,5*Oi],[i,15,15*Oi],[i,30,30*Oi],[l,1,es],[l,3,3*es],[l,6,6*es],[l,12,12*es],[r,1,pc],[r,2,2*pc],[n,1,o6],[t,1,$R],[t,3,3*$R],[e,1,j3]];function a(u,c,d){const f=cb).right(o,f);if(p===o.length)return e.every(bk(u/j3,c/j3,d));if(p===0)return Zy.every(Math.max(bk(u,c,d),1));const[h,g]=o[f/o[p-1][2]53)return null;"w"in U||(U.w=1),"Z"in U?(V=B3(nh(U.y,0,1)),X=V.getUTCDay(),V=X>4||X===0?Jy.ceil(V):Jy(V),V=Ag.offset(V,(U.V-1)*7),U.y=V.getUTCFullYear(),U.m=V.getUTCMonth(),U.d=V.getUTCDate()+(U.w+6)%7):(V=z3(nh(U.y,0,1)),X=V.getDay(),V=X>4||X===0?Qy.ceil(V):Qy(V),V=Og.offset(V,(U.V-1)*7),U.y=V.getFullYear(),U.m=V.getMonth(),U.d=V.getDate()+(U.w+6)%7)}else("W"in U||"U"in U)&&("w"in U||(U.w="u"in U?U.u%7:"W"in U?1:0),X="Z"in U?B3(nh(U.y,0,1)).getUTCDay():z3(nh(U.y,0,1)).getDay(),U.m=0,U.d="W"in U?(U.w+6)%7+U.W*7-(X+5)%7:U.w+U.U*7-(X+6)%7);return"Z"in U?(U.H+=U.Z/100|0,U.M+=U.Z%100,B3(U)):z3(U)}}function k(G,te,ee,U){for(var Q=0,V=te.length,X=ee.length,K,ne;Q=X)return-1;if(K=te.charCodeAt(Q++),K===37){if(K=te.charAt(Q++),ne=_[K in NR?te.charAt(Q++):K],!ne||(U=ne(G,ee,U))<0)return-1}else if(K!=ee.charCodeAt(U++))return-1}return U}function C(G,te,ee){var U=u.exec(te.slice(ee));return U?(G.p=c.get(U[0].toLowerCase()),ee+U[0].length):-1}function T(G,te,ee){var U=p.exec(te.slice(ee));return U?(G.w=h.get(U[0].toLowerCase()),ee+U[0].length):-1}function M(G,te,ee){var U=d.exec(te.slice(ee));return U?(G.w=f.get(U[0].toLowerCase()),ee+U[0].length):-1}function O(G,te,ee){var U=v.exec(te.slice(ee));return U?(G.m=m.get(U[0].toLowerCase()),ee+U[0].length):-1}function D(G,te,ee){var U=g.exec(te.slice(ee));return U?(G.m=b.get(U[0].toLowerCase()),ee+U[0].length):-1}function P(G,te,ee){return k(G,t,te,ee)}function E(G,te,ee){return k(G,n,te,ee)}function I(G,te,ee){return k(G,r,te,ee)}function A(G){return o[G.getDay()]}function F(G){return i[G.getDay()]}function j(G){return s[G.getMonth()]}function B(G){return a[G.getMonth()]}function z(G){return l[+(G.getHours()>=12)]}function N(G){return 1+~~(G.getMonth()/3)}function R(G){return o[G.getUTCDay()]}function q(G){return i[G.getUTCDay()]}function Y(G){return s[G.getUTCMonth()]}function L(G){return a[G.getUTCMonth()]}function W(G){return l[+(G.getUTCHours()>=12)]}function H(G){return 1+~~(G.getUTCMonth()/3)}return{format:function(G){var te=w(G+="",y);return te.toString=function(){return G},te},parse:function(G){var te=S(G+="",!1);return te.toString=function(){return G},te},utcFormat:function(G){var te=w(G+="",x);return te.toString=function(){return G},te},utcParse:function(G){var te=S(G+="",!0);return te.toString=function(){return G},te}}}var NR={"-":"",_:" ",0:"0"},Ya=/^\s*\d+/,wAe=/^%/,_Ae=/[\\^$*+?|[\]().{}]/g;function wr(e,t,n){var r=e<0?"-":"",l=(r?-e:e)+"",i=l.length;return r+(i[t.toLowerCase(),n]))}function SAe(e,t,n){var r=Ya.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function kAe(e,t,n){var r=Ya.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function CAe(e,t,n){var r=Ya.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function MAe(e,t,n){var r=Ya.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function PAe(e,t,n){var r=Ya.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function FR(e,t,n){var r=Ya.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function jR(e,t,n){var r=Ya.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function OAe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function AAe(e,t,n){var r=Ya.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function DAe(e,t,n){var r=Ya.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function zR(e,t,n){var r=Ya.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function EAe(e,t,n){var r=Ya.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function BR(e,t,n){var r=Ya.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function RAe(e,t,n){var r=Ya.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function LAe(e,t,n){var r=Ya.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function IAe(e,t,n){var r=Ya.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function $Ae(e,t,n){var r=Ya.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function NAe(e,t,n){var r=wAe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function FAe(e,t,n){var r=Ya.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function jAe(e,t,n){var r=Ya.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function WR(e,t){return wr(e.getDate(),t,2)}function zAe(e,t){return wr(e.getHours(),t,2)}function BAe(e,t){return wr(e.getHours()%12||12,t,2)}function WAe(e,t){return wr(1+Og.count(ds(e),e),t,3)}function CH(e,t){return wr(e.getMilliseconds(),t,3)}function qAe(e,t){return CH(e,t)+"000"}function UAe(e,t){return wr(e.getMonth()+1,t,2)}function HAe(e,t){return wr(e.getMinutes(),t,2)}function VAe(e,t){return wr(e.getSeconds(),t,2)}function GAe(e){var t=e.getDay();return t===0?7:t}function YAe(e,t){return wr(Ax.count(ds(e)-1,e),t,2)}function MH(e){var t=e.getDay();return t>=4||t===0?df(e):df.ceil(e)}function XAe(e,t){return e=MH(e),wr(df.count(ds(e),e)+(ds(e).getDay()===4),t,2)}function KAe(e){return e.getDay()}function ZAe(e,t){return wr(Qy.count(ds(e)-1,e),t,2)}function QAe(e,t){return wr(e.getFullYear()%100,t,2)}function JAe(e,t){return e=MH(e),wr(e.getFullYear()%100,t,2)}function e7e(e,t){return wr(e.getFullYear()%1e4,t,4)}function t7e(e,t){var n=e.getDay();return e=n>=4||n===0?df(e):df.ceil(e),wr(e.getFullYear()%1e4,t,4)}function n7e(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+wr(t/60|0,"0",2)+wr(t%60,"0",2)}function qR(e,t){return wr(e.getUTCDate(),t,2)}function r7e(e,t){return wr(e.getUTCHours(),t,2)}function a7e(e,t){return wr(e.getUTCHours()%12||12,t,2)}function o7e(e,t){return wr(1+Ag.count(fs(e),e),t,3)}function PH(e,t){return wr(e.getUTCMilliseconds(),t,3)}function i7e(e,t){return PH(e,t)+"000"}function l7e(e,t){return wr(e.getUTCMonth()+1,t,2)}function s7e(e,t){return wr(e.getUTCMinutes(),t,2)}function u7e(e,t){return wr(e.getUTCSeconds(),t,2)}function c7e(e){var t=e.getUTCDay();return t===0?7:t}function d7e(e,t){return wr(Dx.count(fs(e)-1,e),t,2)}function OH(e){var t=e.getUTCDay();return t>=4||t===0?ff(e):ff.ceil(e)}function f7e(e,t){return e=OH(e),wr(ff.count(fs(e),e)+(fs(e).getUTCDay()===4),t,2)}function p7e(e){return e.getUTCDay()}function h7e(e,t){return wr(Jy.count(fs(e)-1,e),t,2)}function m7e(e,t){return wr(e.getUTCFullYear()%100,t,2)}function g7e(e,t){return e=OH(e),wr(e.getUTCFullYear()%100,t,2)}function v7e(e,t){return wr(e.getUTCFullYear()%1e4,t,4)}function y7e(e,t){var n=e.getUTCDay();return e=n>=4||n===0?ff(e):ff.ceil(e),wr(e.getUTCFullYear()%1e4,t,4)}function b7e(){return"+0000"}function UR(){return"%"}function HR(e){return+e}function VR(e){return Math.floor(+e/1e3)}var ed,AH,DH;x7e({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function x7e(e){return ed=xAe(e),AH=ed.format,ed.parse,DH=ed.utcFormat,ed.utcParse,ed}function w7e(e){return new Date(e)}function _7e(e){return e instanceof Date?+e:+new Date(+e)}function f6(e,t,n,r,l,i,o,a,s,u){var c=xH(),d=c.invert,f=c.domain,p=u(".%L"),h=u(":%S"),g=u("%I:%M"),b=u("%I %p"),v=u("%a %d"),m=u("%b %d"),y=u("%B"),x=u("%Y");function _(w){return(s(w)=1?(n=1,t-1):Math.floor(n*t),l=e[r],i=e[r+1],o=r>0?e[r-1]:2*l-i,a=rn&&(i=t.slice(n,i),a[o]?a[o]+=i:a[++o]=i),(r=r[0])===(l=l[0])?a[o]?a[o]+=l:a[++o]=l:(a[++o]=null,s.push({i:o,x:_k(r,l)})),n=W3.lastIndex;return n-1}var v6=iDe;function lDe(e,t,n){for(var r=-1,l=e==null?0:e.length;++r=mDe&&(i=hDe,o=!1,t=new uDe(t));e:for(;++lLu)if(!(Math.abs(c*a-s*u)>Lu)||!l)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var f=n-i,p=r-o,h=a*a+s*s,g=f*f+p*p,b=Math.sqrt(h),v=Math.sqrt(d),m=l*Math.tan((Sk-Math.acos((h+d-g)/(2*b*v)))/2),y=m/v,x=m/b;Math.abs(y-1)>Lu&&(this._+="L"+(e+y*u)+","+(t+y*c)),this._+="A"+l+","+l+",0,0,"+ +(c*f>u*p)+","+(this._x1=e+x*a)+","+(this._y1=t+x*s)}},arc:function(e,t,n,r,l,i){e=+e,t=+t,n=+n,i=!!i;var o=n*Math.cos(r),a=n*Math.sin(r),s=e+o,u=t+a,c=1^i,d=i?r-l:l-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+s+","+u:(Math.abs(this._x1-s)>Lu||Math.abs(this._y1-u)>Lu)&&(this._+="L"+s+","+u),n&&(d<0&&(d=d%kk+kk),d>TDe?this._+="A"+n+","+n+",0,1,"+c+","+(e-o)+","+(t-a)+"A"+n+","+n+",0,1,"+c+","+(this._x1=s)+","+(this._y1=u):d>Lu&&(this._+="A"+n+","+n+",0,"+ +(d>=Sk)+","+c+","+(this._x1=e+n*Math.cos(l))+","+(this._y1=t+n*Math.sin(l))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};function no(e){return function(){return e}}var YR=1e-12;function qH(e){this._context=e}qH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function x6(e){return new qH(e)}function UH(e){return e[0]}function HH(e){return e[1]}function VH(){var e=UH,t=HH,n=no(!0),r=null,l=x6,i=null;function o(a){var s,u=a.length,c,d=!1,f;for(r==null&&(i=l(f=b6())),s=0;s<=u;++s)!(s=f;--p)a.point(m[p],y[p]);a.lineEnd(),a.areaEnd()}b&&(m[d]=+e(g,d,c),y[d]=+n(g,d,c),a.point(t?+t(g,d,c):m[d],r?+r(g,d,c):y[d]))}if(v)return a=null,v+""||null}function u(){return VH().defined(l).curve(o).context(i)}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:no(+c),t=null,s):e},s.x0=function(c){return arguments.length?(e=typeof c=="function"?c:no(+c),s):e},s.x1=function(c){return arguments.length?(t=c==null?null:typeof c=="function"?c:no(+c),s):t},s.y=function(c){return arguments.length?(n=typeof c=="function"?c:no(+c),r=null,s):n},s.y0=function(c){return arguments.length?(n=typeof c=="function"?c:no(+c),s):n},s.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:no(+c),s):r},s.lineX0=s.lineY0=function(){return u().x(e).y(n)},s.lineY1=function(){return u().x(e).y(r)},s.lineX1=function(){return u().x(t).y(n)},s.defined=function(c){return arguments.length?(l=typeof c=="function"?c:no(!!c),s):l},s.curve=function(c){return arguments.length?(o=c,i!=null&&(a=o(i)),s):o},s.context=function(c){return arguments.length?(c==null?i=a=null:a=o(i=c),s):i},s}var XR=Array.prototype.slice;function lu(){}function t1(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function o2(e){this._context=e}o2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:t1(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:t1(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function kDe(e){return new o2(e)}function GH(e){this._context=e}GH.prototype={areaStart:lu,areaEnd:lu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:t1(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function CDe(e){return new GH(e)}function YH(e){this._context=e}YH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:t1(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function MDe(e){return new YH(e)}function XH(e,t){this._basis=new o2(e),this._beta=t}XH.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],l=t[0],i=e[n]-r,o=t[n]-l,a=-1,s;++a<=n;)s=a/n,this._basis.point(this._beta*e[a]+(1-this._beta)*(r+s*i),this._beta*t[a]+(1-this._beta)*(l+s*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const PDe=function e(t){function n(r){return t===1?new o2(r):new XH(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function n1(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function w6(e,t){this._context=e,this._k=(1-t)/6}w6.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:n1(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:n1(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const ODe=function e(t){function n(r){return new w6(r,t)}return n.tension=function(r){return e(+r)},n}(0);function _6(e,t){this._context=e,this._k=(1-t)/6}_6.prototype={areaStart:lu,areaEnd:lu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:n1(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const ADe=function e(t){function n(r){return new _6(r,t)}return n.tension=function(r){return e(+r)},n}(0);function T6(e,t){this._context=e,this._k=(1-t)/6}T6.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:n1(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const DDe=function e(t){function n(r){return new T6(r,t)}return n.tension=function(r){return e(+r)},n}(0);function S6(e,t,n){var r=e._x1,l=e._y1,i=e._x2,o=e._y2;if(e._l01_a>YR){var a=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,s=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*a-e._x0*e._l12_2a+e._x2*e._l01_2a)/s,l=(l*a-e._y0*e._l12_2a+e._y2*e._l01_2a)/s}if(e._l23_a>YR){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*u+e._x1*e._l23_2a-t*e._l12_2a)/c,o=(o*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,l,i,o,e._x2,e._y2)}function KH(e,t){this._context=e,this._alpha=t}KH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:S6(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const EDe=function e(t){function n(r){return t?new KH(r,t):new w6(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function ZH(e,t){this._context=e,this._alpha=t}ZH.prototype={areaStart:lu,areaEnd:lu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:S6(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const RDe=function e(t){function n(r){return t?new ZH(r,t):new _6(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function QH(e,t){this._context=e,this._alpha=t}QH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:S6(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const LDe=function e(t){function n(r){return t?new QH(r,t):new T6(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function JH(e){this._context=e}JH.prototype={areaStart:lu,areaEnd:lu,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function IDe(e){return new JH(e)}function KR(e){return e<0?-1:1}function ZR(e,t,n){var r=e._x1-e._x0,l=t-e._x1,i=(e._y1-e._y0)/(r||l<0&&-0),o=(n-e._y1)/(l||r<0&&-0),a=(i*l+o*r)/(r+l);return(KR(i)+KR(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(a))||0}function QR(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function q3(e,t,n){var r=e._x0,l=e._y0,i=e._x1,o=e._y1,a=(i-r)/3;e._context.bezierCurveTo(r+a,l+a*t,i-a,o-a*n,i,o)}function r1(e){this._context=e}r1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:q3(this,this._t0,QR(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,q3(this,QR(this,n=ZR(this,e,t)),n);break;default:q3(this,this._t0,n=ZR(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function eV(e){this._context=new tV(e)}(eV.prototype=Object.create(r1.prototype)).point=function(e,t){r1.prototype.point.call(this,t,e)};function tV(e){this._context=e}tV.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,l,i){this._context.bezierCurveTo(t,e,r,n,i,l)}};function $De(e){return new r1(e)}function NDe(e){return new eV(e)}function nV(e){this._context=e}nV.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=JR(e),l=JR(t),i=0,o=1;o=0;--t)l[t]=(o[t]-l[t+1])/i[t];for(i[n-1]=(e[n]+l[n-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function jDe(e){return new i2(e,.5)}function zDe(e){return new i2(e,0)}function BDe(e){return new i2(e,1)}function pf(e,t){if((o=e.length)>1)for(var n=1,r,l,i=e[t[0]],o,a=i.length;n=0;)n[t]=t;return n}function WDe(e,t){return e[t]}function rV(){var e=no([]),t=hf,n=pf,r=WDe;function l(i){var o=e.apply(this,arguments),a,s=i.length,u=o.length,c=new Array(u),d;for(a=0;a0){for(var n,r,l=0,i=e[0].length,o;l0)for(var n,r=0,l,i,o,a,s,u=e[t[0]].length;r0?(l[0]=o,l[1]=o+=i):i<0?(l[1]=a,l[0]=a+=i):(l[0]=0,l[1]=i)}function UDe(e,t){if((l=e.length)>0){for(var n=0,r=e[t[0]],l,i=r.length;n0)||!((i=(l=e[t[0]]).length)>0))){for(var n=0,r=1,l,i,o;ri&&(i=l,n=t);return n}function aV(e){var t=e.map(oV);return hf(e).sort(function(n,r){return t[n]-t[r]})}function oV(e){for(var t=0,n=-1,r=e.length,l;++nm&&(m=u),w=b*b*_,y=Math.max(m/w,w/v),y>x){b-=u;break}x=y}o.push(s={value:b,dice:p1?r:1)},n}(iV);function QDe(e,t,n,r,l){var i=e.children,o,a=i.length,s,u=new Array(a+1);for(u[0]=s=o=0;o=f-1){var m=i[d];m.x0=h,m.y0=g,m.x1=b,m.y1=v;return}for(var y=u[d],x=p/2+y,_=d+1,w=f-1;_>>1;u[S]v-g){var T=(h*C+b*k)/p;c(d,_,k,h,g,T,v),c(_,f,C,T,g,b,v)}else{var M=(g*C+v*k)/p;c(d,_,k,h,g,b,M),c(_,f,C,h,M,b,v)}}}function JDe(e,t,n,r,l){(e.depth&1?s2:l2)(e,t,n,r,l)}const eEe=function e(t){function n(r,l,i,o,a){if((s=r._squarify)&&s.ratio===t)for(var s,u,c,d,f=-1,p,h=s.length,g=r.value;++f1?r:1)},n}(iV);var U3=new Date,H3=new Date;function Xa(e,t,n,r){function l(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return l.floor=function(i){return e(i=new Date(+i)),i},l.ceil=function(i){return e(i=new Date(i-1)),t(i,1),e(i),i},l.round=function(i){var o=l(i),a=l.ceil(i);return i-o0))return s;do s.push(u=new Date(+i)),t(i,a),e(i);while(u=o)for(;e(o),!i(o);)o.setTime(o-1)},function(o,a){if(o>=o)if(a<0)for(;++a<=0;)for(;t(o,-1),!i(o););else for(;--a>=0;)for(;t(o,1),!i(o););})},n&&(l.count=function(i,o){return U3.setTime(+i),H3.setTime(+o),e(U3),e(H3),Math.floor(n(U3,H3))},l.every=function(i){return i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?l.filter(r?function(o){return r(o)%i===0}:function(o){return l.count(0,o)%i===0}):l}),l}var qm=Xa(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});qm.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Xa(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):qm};qm.range;var a1=1e3,hc=6e4,o1=36e5,sV=864e5,uV=6048e5,Mk=Xa(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*a1)},function(e,t){return(t-e)/a1},function(e){return e.getUTCSeconds()});Mk.range;var cV=Xa(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*a1)},function(e,t){e.setTime(+e+t*hc)},function(e,t){return(t-e)/hc},function(e){return e.getMinutes()});cV.range;var dV=Xa(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*a1-e.getMinutes()*hc)},function(e,t){e.setTime(+e+t*o1)},function(e,t){return(t-e)/o1},function(e){return e.getHours()});dV.range;var u2=Xa(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*hc)/sV},function(e){return e.getDate()-1});u2.range;function Lc(e){return Xa(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*hc)/uV})}var i1=Lc(0),Um=Lc(1),fV=Lc(2),pV=Lc(3),mc=Lc(4),hV=Lc(5),mV=Lc(6);i1.range;Um.range;fV.range;pV.range;mc.range;hV.range;mV.range;var gV=Xa(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});gV.range;var su=Xa(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});su.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Xa(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};su.range;var vV=Xa(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*hc)},function(e,t){return(t-e)/hc},function(e){return e.getUTCMinutes()});vV.range;var yV=Xa(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*o1)},function(e,t){return(t-e)/o1},function(e){return e.getUTCHours()});yV.range;var c2=Xa(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/sV},function(e){return e.getUTCDate()-1});c2.range;function Ic(e){return Xa(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/uV})}var l1=Ic(0),Hm=Ic(1),bV=Ic(2),xV=Ic(3),gc=Ic(4),wV=Ic(5),_V=Ic(6);l1.range;Hm.range;bV.range;xV.range;gc.range;wV.range;_V.range;var TV=Xa(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});TV.range;var uu=Xa(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});uu.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Xa(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};uu.range;function V3(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function G3(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function oh(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function tEe(e){var t=e.dateTime,n=e.date,r=e.time,l=e.periods,i=e.days,o=e.shortDays,a=e.months,s=e.shortMonths,u=ih(l),c=lh(l),d=ih(i),f=lh(i),p=ih(o),h=lh(o),g=ih(a),b=lh(a),v=ih(s),m=lh(s),y={a:A,A:F,b:j,B,c:null,d:oL,e:oL,f:SEe,g:LEe,G:$Ee,H:wEe,I:_Ee,j:TEe,L:SV,m:kEe,M:CEe,p:z,q:N,Q:sL,s:uL,S:MEe,u:PEe,U:OEe,V:AEe,w:DEe,W:EEe,x:null,X:null,y:REe,Y:IEe,Z:NEe,"%":lL},x={a:R,A:q,b:Y,B:L,c:null,d:iL,e:iL,f:BEe,g:ZEe,G:JEe,H:FEe,I:jEe,j:zEe,L:CV,m:WEe,M:qEe,p:W,q:H,Q:sL,s:uL,S:UEe,u:HEe,U:VEe,V:GEe,w:YEe,W:XEe,x:null,X:null,y:KEe,Y:QEe,Z:e9e,"%":lL},_={a:T,A:M,b:O,B:D,c:P,d:rL,e:rL,f:vEe,g:nL,G:tL,H:aL,I:aL,j:pEe,L:gEe,m:fEe,M:hEe,p:C,q:dEe,Q:bEe,s:xEe,S:mEe,u:iEe,U:lEe,V:sEe,w:oEe,W:uEe,x:E,X:I,y:nL,Y:tL,Z:cEe,"%":yEe};y.x=w(n,y),y.X=w(r,y),y.c=w(t,y),x.x=w(n,x),x.X=w(r,x),x.c=w(t,x);function w(G,te){return function(ee){var U=[],Q=-1,V=0,X=G.length,K,ne,ae;for(ee instanceof Date||(ee=new Date(+ee));++Q53)return null;"w"in U||(U.w=1),"Z"in U?(V=G3(oh(U.y,0,1)),X=V.getUTCDay(),V=X>4||X===0?Hm.ceil(V):Hm(V),V=c2.offset(V,(U.V-1)*7),U.y=V.getUTCFullYear(),U.m=V.getUTCMonth(),U.d=V.getUTCDate()+(U.w+6)%7):(V=V3(oh(U.y,0,1)),X=V.getDay(),V=X>4||X===0?Um.ceil(V):Um(V),V=u2.offset(V,(U.V-1)*7),U.y=V.getFullYear(),U.m=V.getMonth(),U.d=V.getDate()+(U.w+6)%7)}else("W"in U||"U"in U)&&("w"in U||(U.w="u"in U?U.u%7:"W"in U?1:0),X="Z"in U?G3(oh(U.y,0,1)).getUTCDay():V3(oh(U.y,0,1)).getDay(),U.m=0,U.d="W"in U?(U.w+6)%7+U.W*7-(X+5)%7:U.w+U.U*7-(X+6)%7);return"Z"in U?(U.H+=U.Z/100|0,U.M+=U.Z%100,G3(U)):V3(U)}}function k(G,te,ee,U){for(var Q=0,V=te.length,X=ee.length,K,ne;Q=X)return-1;if(K=te.charCodeAt(Q++),K===37){if(K=te.charAt(Q++),ne=_[K in eL?te.charAt(Q++):K],!ne||(U=ne(G,ee,U))<0)return-1}else if(K!=ee.charCodeAt(U++))return-1}return U}function C(G,te,ee){var U=u.exec(te.slice(ee));return U?(G.p=c[U[0].toLowerCase()],ee+U[0].length):-1}function T(G,te,ee){var U=p.exec(te.slice(ee));return U?(G.w=h[U[0].toLowerCase()],ee+U[0].length):-1}function M(G,te,ee){var U=d.exec(te.slice(ee));return U?(G.w=f[U[0].toLowerCase()],ee+U[0].length):-1}function O(G,te,ee){var U=v.exec(te.slice(ee));return U?(G.m=m[U[0].toLowerCase()],ee+U[0].length):-1}function D(G,te,ee){var U=g.exec(te.slice(ee));return U?(G.m=b[U[0].toLowerCase()],ee+U[0].length):-1}function P(G,te,ee){return k(G,t,te,ee)}function E(G,te,ee){return k(G,n,te,ee)}function I(G,te,ee){return k(G,r,te,ee)}function A(G){return o[G.getDay()]}function F(G){return i[G.getDay()]}function j(G){return s[G.getMonth()]}function B(G){return a[G.getMonth()]}function z(G){return l[+(G.getHours()>=12)]}function N(G){return 1+~~(G.getMonth()/3)}function R(G){return o[G.getUTCDay()]}function q(G){return i[G.getUTCDay()]}function Y(G){return s[G.getUTCMonth()]}function L(G){return a[G.getUTCMonth()]}function W(G){return l[+(G.getUTCHours()>=12)]}function H(G){return 1+~~(G.getUTCMonth()/3)}return{format:function(G){var te=w(G+="",y);return te.toString=function(){return G},te},parse:function(G){var te=S(G+="",!1);return te.toString=function(){return G},te},utcFormat:function(G){var te=w(G+="",x);return te.toString=function(){return G},te},utcParse:function(G){var te=S(G+="",!0);return te.toString=function(){return G},te}}}var eL={"-":"",_:" ",0:"0"},Ka=/^\s*\d+/,nEe=/^%/,rEe=/[\\^$*+?|[\]().{}]/g;function _r(e,t,n){var r=e<0?"-":"",l=(r?-e:e)+"",i=l.length;return r+(i68?1900:2e3),n+r[0].length):-1}function cEe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function dEe(e,t,n){var r=Ka.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function fEe(e,t,n){var r=Ka.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function rL(e,t,n){var r=Ka.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function pEe(e,t,n){var r=Ka.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function aL(e,t,n){var r=Ka.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function hEe(e,t,n){var r=Ka.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function mEe(e,t,n){var r=Ka.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function gEe(e,t,n){var r=Ka.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function vEe(e,t,n){var r=Ka.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function yEe(e,t,n){var r=nEe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function bEe(e,t,n){var r=Ka.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function xEe(e,t,n){var r=Ka.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function oL(e,t){return _r(e.getDate(),t,2)}function wEe(e,t){return _r(e.getHours(),t,2)}function _Ee(e,t){return _r(e.getHours()%12||12,t,2)}function TEe(e,t){return _r(1+u2.count(su(e),e),t,3)}function SV(e,t){return _r(e.getMilliseconds(),t,3)}function SEe(e,t){return SV(e,t)+"000"}function kEe(e,t){return _r(e.getMonth()+1,t,2)}function CEe(e,t){return _r(e.getMinutes(),t,2)}function MEe(e,t){return _r(e.getSeconds(),t,2)}function PEe(e){var t=e.getDay();return t===0?7:t}function OEe(e,t){return _r(i1.count(su(e)-1,e),t,2)}function kV(e){var t=e.getDay();return t>=4||t===0?mc(e):mc.ceil(e)}function AEe(e,t){return e=kV(e),_r(mc.count(su(e),e)+(su(e).getDay()===4),t,2)}function DEe(e){return e.getDay()}function EEe(e,t){return _r(Um.count(su(e)-1,e),t,2)}function REe(e,t){return _r(e.getFullYear()%100,t,2)}function LEe(e,t){return e=kV(e),_r(e.getFullYear()%100,t,2)}function IEe(e,t){return _r(e.getFullYear()%1e4,t,4)}function $Ee(e,t){var n=e.getDay();return e=n>=4||n===0?mc(e):mc.ceil(e),_r(e.getFullYear()%1e4,t,4)}function NEe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+_r(t/60|0,"0",2)+_r(t%60,"0",2)}function iL(e,t){return _r(e.getUTCDate(),t,2)}function FEe(e,t){return _r(e.getUTCHours(),t,2)}function jEe(e,t){return _r(e.getUTCHours()%12||12,t,2)}function zEe(e,t){return _r(1+c2.count(uu(e),e),t,3)}function CV(e,t){return _r(e.getUTCMilliseconds(),t,3)}function BEe(e,t){return CV(e,t)+"000"}function WEe(e,t){return _r(e.getUTCMonth()+1,t,2)}function qEe(e,t){return _r(e.getUTCMinutes(),t,2)}function UEe(e,t){return _r(e.getUTCSeconds(),t,2)}function HEe(e){var t=e.getUTCDay();return t===0?7:t}function VEe(e,t){return _r(l1.count(uu(e)-1,e),t,2)}function MV(e){var t=e.getUTCDay();return t>=4||t===0?gc(e):gc.ceil(e)}function GEe(e,t){return e=MV(e),_r(gc.count(uu(e),e)+(uu(e).getUTCDay()===4),t,2)}function YEe(e){return e.getUTCDay()}function XEe(e,t){return _r(Hm.count(uu(e)-1,e),t,2)}function KEe(e,t){return _r(e.getUTCFullYear()%100,t,2)}function ZEe(e,t){return e=MV(e),_r(e.getUTCFullYear()%100,t,2)}function QEe(e,t){return _r(e.getUTCFullYear()%1e4,t,4)}function JEe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?gc(e):gc.ceil(e),_r(e.getUTCFullYear()%1e4,t,4)}function e9e(){return"+0000"}function lL(){return"%"}function sL(e){return+e}function uL(e){return Math.floor(+e/1e3)}var td,C6,PV,OV;t9e({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function t9e(e){return td=tEe(e),C6=td.format,PV=td.parse,td.utcFormat,OV=td.utcParse,td}var sh={},uh={},cL;function n9e(){if(cL)return uh;cL=1,uh.__esModule=!0,uh.default=void 0;var e=function(r){if(typeof r=="string")return r;if(r)return r.displayName||r.name||"Component"},t=e;return uh.default=t,uh}var dL;function Hf(){if(dL)return sh;dL=1;var e=Hn;sh.__esModule=!0,sh.default=void 0;var t=e(n9e()),n=function(i,o){return o+"("+(0,t.default)(i)+")"},r=n;return sh.default=r,sh}var ws={},ch={},fL;function AV(){if(fL)return ch;fL=1,ch.__esModule=!0,ch.default=void 0;var e=function(r,l){return function(i){return i[r]=l,i}},t=e;return ch.default=t,ch}var r9e=Hn;ws.__esModule=!0;var M6=ws.default=void 0,a9e=r9e(AV()),o9e=function(t){return(0,a9e.default)("displayName",t)},i9e=o9e;M6=ws.default=i9e;var dh={},pL;function l9e(){if(pL)return dh;pL=1;var e=Hn;dh.__esModule=!0,dh.default=void 0;var t=ge;e(ws),e(Hf());var n=function(i){return function(o){var a=(0,t.createFactory)(o),s=function(c){return a(i(c))};return s}},r=n;return dh.default=r,dh}var d2=Hn;d2(jr());d2(Hf());d2(ws);d2(l9e());function s9e(e,t){for(var n=-1,r=e==null?0:e.length;++na))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=n&h9e?new c9e:void 0;for(i.set(e,t),i.set(t,e);++d1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(XIe,`{ +https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=qV,t.componentWillReceiveProps=UV),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=HV;var a=t.componentDidUpdate;t.componentDidUpdate=function(u,c,d){var f=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:d;a.call(this,u,c,f)}}return e}const oLe=Object.freeze(Object.defineProperty({__proto__:null,polyfill:aLe},Symbol.toStringTag,{value:"Module"})),iLe=er(oLe);var fh={},EL;function lLe(){if(EL)return fh;EL=1,fh.__esModule=!0,fh.default=void 0;var e=function(r,l){for(var i={},o=0;o1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(bIe,`{ /* [wrapped with `+t+`] */ -`)}var ZIe=KIe;function QIe(e,t){for(var n=-1,r=e==null?0:e.length;++n1&&h.reverse(),c&&s0&&n(a)?t>1?_V(a,t-1,n,r,l):MFe(l,a):r||(l[l.length]=a)}return l}var VP=_V,OFe=VP;function AFe(e){var t=e==null?0:e.length;return t?OFe(e,1):[]}var DFe=AFe,EFe=DFe,RFe=bU,LFe=aP;function IFe(e){return LFe(RFe(e,void 0,EFe),e+"")}var TV=IFe,$Fe=_Fe,NFe=TV,FFe=NFe(function(e,t){return e==null?{}:$Fe(e,t)}),jFe=FFe;const zFe=lr(jFe);var $u=function(){};function ac(e){for(var t=1;t2&&arguments[2]!==void 0?arguments[2]:{};return ge.useMemo(function(){var l=pje({},Kk,r);return{margin:l,innerWidth:t-l.left-l.right,innerHeight:n-l.top-l.bottom,outerWidth:t,outerHeight:n}},[t,n,r.top,r.right,r.bottom,r.left])},mje=function(t){return ge.useMemo(function(){return CV(SV,t)},[t])},gje=function(t){return typeof t=="function"?t:typeof t=="string"?t.indexOf("time:")===0?$P(t.slice("5")):Pf(t):function(n){return n}},Rm=function(t){return ge.useMemo(function(){return gje(t)},[t])},YP=ge.createContext(),vje={},OV=function(t){var n=t.theme,r=n===void 0?vje:n,l=t.children,i=mje(r);return Je.createElement(YP.Provider,{value:i},l)};OV.propTypes={children:le.node.isRequired,theme:le.object};var ka=function(){return ge.useContext(YP)};function iv(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?iv=function(n){return typeof n}:iv=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},iv(e)}function Zk(){return Zk=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xje(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,i;for(i=0;i=0)&&(n[l]=e[l]);return n}function wje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _je(e,t){for(var n=0;n"u"||s[u].value!==this.newInters[u].value)&&(this.newInters[u]=s[u],this.stepValues[u]=this.currentStepValues[u]+1,this.stepInterpolators[u]=this.newInters[u].interpolator(this.oldValues[u],this.newInters[u].value)),s[u]=zn(this.stepValues[u],this.newInters[u].config));return Je.createElement(rs,Zk({},a,{style:s}),function(c){var d={};for(var f in c)if(r.stepValues[f]){r.currentStepValues[f]=c[f];var p=r.currentStepValues[f]-r.stepValues[f]+1;r.oldValues[f]=d[f]=r.stepInterpolators[f](p)}return o(yje({},c,d))})}}]),t}(ge.PureComponent);Cu(zx,"propTypes",{children:le.func.isRequired,style:le.func.isRequired});var AV=ge.createContext(),Bx=function(t){var n=t.children,r=t.animate,l=t.stiffness,i=t.damping,o=ge.useMemo(function(){return{animate:r,springConfig:{stiffness:l,damping:i}}},[r,l,i]);return Je.createElement(AV.Provider,{value:o},n)};Bx.propTypes={children:le.node.isRequired,animate:le.bool.isRequired,stiffness:le.number.isRequired,damping:le.number.isRequired};Bx.defaultProps={animate:!0,stiffness:90,damping:15};var Bo=function(){return ge.useContext(AV)};function Mje(e){for(var t=1;t0&&o>0;return Je.createElement(km,{bounds:!0,onResize:function(u){r.setState({dimensions:u.bounds})}},function(s){var u=s.measureRef;return Je.createElement("div",{ref:u,style:{width:"100%",height:"100%"}},a&&r.props.children({width:i,height:o}))})}}]),t}(ge.Component);EV(qx,"propTypes",{children:le.func.isRequired});var RV=function(t){var n=t.id,r=t.colors;return Je.createElement("linearGradient",{id:n,x1:0,x2:0,y1:0,y2:1},r.map(function(l){var i=l.offset,o=l.color,a=l.opacity;return Je.createElement("stop",{key:i,offset:"".concat(i,"%"),stopColor:o,stopOpacity:a!==void 0?a:1})}))};RV.propTypes={id:le.string.isRequired,colors:le.arrayOf(le.shape({offset:le.number.isRequired,color:le.string.isRequired})).isRequired};var LV={linearGradient:RV},Ux=ge.memo(function(e){var t=e.id,n=e.background,r=e.color,l=e.size,i=e.padding,o=e.stagger,a=l+i,s=l/2,u=i/2;return o===!0&&(a=l*2+i*2),Je.createElement("pattern",{id:t,width:a,height:a,patternUnits:"userSpaceOnUse"},Je.createElement("rect",{width:a,height:a,fill:n}),Je.createElement("circle",{cx:u+s,cy:u+s,r:s,fill:r}),o&&Je.createElement("circle",{cx:i*1.5+l+s,cy:i*1.5+l+s,r:s,fill:r}))});Ux.displayName="PatternDots";Ux.propTypes={id:le.string.isRequired,color:le.string.isRequired,background:le.string.isRequired,size:le.number.isRequired,padding:le.number.isRequired,stagger:le.bool.isRequired};Ux.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var nS=function(t){return t*Math.PI/180},zje=function(t){return 180*t/Math.PI},Bje=function(t,n){return{x:Math.cos(t)*n,y:Math.sin(t)*n}},Wje=function(t){var n=t%360;return n<0&&(n+=360),n},qje={svg:{align:{left:"start",center:"middle",right:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},Hx=ge.memo(function(e){var t=e.id,n=e.spacing,r=e.rotation,l=e.background,i=e.color,o=e.lineWidth,a=Math.round(r)%360,s=Math.abs(n);a>180?a=a-360:a>90?a=a-180:a<-180?a=a+360:a<-90&&(a=a+180);var u=s,c=s,d;return a===0?d=` +`)}var wIe=xIe;function _Ie(e,t){for(var n=-1,r=e==null?0:e.length;++n1&&m.reverse(),c&&s0&&n(a)?t>1?uG(a,t-1,n,r,l):ZNe(l,a):r||(l[l.length]=a)}return l}var $6=uG,JNe=$6;function eFe(e){var t=e==null?0:e.length;return t?JNe(e,1):[]}var tFe=eFe,nFe=tFe,rFe=iH,aFe=Y4;function oFe(e){return aFe(rFe(e,void 0,nFe),e+"")}var cG=oFe,iFe=VNe,lFe=cG,sFe=lFe(function(e,t){return e==null?{}:iFe(e,t)}),uFe=sFe;const cFe=dr(uFe);var Xu=function(){};function vc(e){for(var t=1;t2&&arguments[2]!==void 0?arguments[2]:{};return ge.useMemo(function(){var l=NFe({},Lk,r);return{margin:l,innerWidth:t-l.left-l.right,innerHeight:n-l.top-l.bottom,outerWidth:t,outerHeight:n}},[t,n,r.top,r.right,r.bottom,r.left])},jFe=function(t){return ge.useMemo(function(){return pG(fG,t)},[t])},zFe=function(t){return typeof t=="function"?t:typeof t=="string"?t.indexOf("time:")===0?C6(t.slice("5")):Uf(t):function(n){return n}},Vm=function(t){return ge.useMemo(function(){return zFe(t)},[t])},F6=ge.createContext(),BFe={},gG=function(t){var n=t.theme,r=n===void 0?BFe:n,l=t.children,i=jFe(r);return Ke.createElement(F6.Provider,{value:i},l)};gG.propTypes={children:le.node.isRequired,theme:le.object};var Oa=function(){return ge.useContext(F6)};function Tv(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Tv=function(n){return typeof n}:Tv=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Tv(e)}function Ik(){return Ik=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function UFe(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,i;for(i=0;i=0)&&(n[l]=e[l]);return n}function HFe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VFe(e,t){for(var n=0;n"u"||s[u].value!==this.newInters[u].value)&&(this.newInters[u]=s[u],this.stepValues[u]=this.currentStepValues[u]+1,this.stepInterpolators[u]=this.newInters[u].interpolator(this.oldValues[u],this.newInters[u].value)),s[u]=Bn(this.stepValues[u],this.newInters[u].config));return Ke.createElement(cs,Ik({},a,{style:s}),function(c){var d={};for(var f in c)if(r.stepValues[f]){r.currentStepValues[f]=c[f];var p=r.currentStepValues[f]-r.stepValues[f]+1;r.oldValues[f]=d[f]=r.stepInterpolators[f](p)}return o(WFe({},c,d))})}}]),t}(ge.PureComponent);Nu(y2,"propTypes",{children:le.func.isRequired,style:le.func.isRequired});var vG=ge.createContext(),b2=function(t){var n=t.children,r=t.animate,l=t.stiffness,i=t.damping,o=ge.useMemo(function(){return{animate:r,springConfig:{stiffness:l,damping:i}}},[r,l,i]);return Ke.createElement(vG.Provider,{value:o},n)};b2.propTypes={children:le.node.isRequired,animate:le.bool.isRequired,stiffness:le.number.isRequired,damping:le.number.isRequired};b2.defaultProps={animate:!0,stiffness:90,damping:15};var Xo=function(){return ge.useContext(vG)};function ZFe(e){for(var t=1;t0&&o>0;return Ke.createElement(Nm,{bounds:!0,onResize:function(u){r.setState({dimensions:u.bounds})}},function(s){var u=s.measureRef;return Ke.createElement("div",{ref:u,style:{width:"100%",height:"100%"}},a&&r.props.children({width:i,height:o}))})}}]),t}(ge.Component);bG(w2,"propTypes",{children:le.func.isRequired});var xG=function(t){var n=t.id,r=t.colors;return Ke.createElement("linearGradient",{id:n,x1:0,x2:0,y1:0,y2:1},r.map(function(l){var i=l.offset,o=l.color,a=l.opacity;return Ke.createElement("stop",{key:i,offset:"".concat(i,"%"),stopColor:o,stopOpacity:a!==void 0?a:1})}))};xG.propTypes={id:le.string.isRequired,colors:le.arrayOf(le.shape({offset:le.number.isRequired,color:le.string.isRequired})).isRequired};var wG={linearGradient:xG},_2=ge.memo(function(e){var t=e.id,n=e.background,r=e.color,l=e.size,i=e.padding,o=e.stagger,a=l+i,s=l/2,u=i/2;return o===!0&&(a=l*2+i*2),Ke.createElement("pattern",{id:t,width:a,height:a,patternUnits:"userSpaceOnUse"},Ke.createElement("rect",{width:a,height:a,fill:n}),Ke.createElement("circle",{cx:u+s,cy:u+s,r:s,fill:r}),o&&Ke.createElement("circle",{cx:i*1.5+l+s,cy:i*1.5+l+s,r:s,fill:r}))});_2.displayName="PatternDots";_2.propTypes={id:le.string.isRequired,color:le.string.isRequired,background:le.string.isRequired,size:le.number.isRequired,padding:le.number.isRequired,stagger:le.bool.isRequired};_2.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var zk=function(t){return t*Math.PI/180},cje=function(t){return 180*t/Math.PI},dje=function(t,n){return{x:Math.cos(t)*n,y:Math.sin(t)*n}},fje=function(t){var n=t%360;return n<0&&(n+=360),n},pje={svg:{align:{left:"start",center:"middle",right:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},T2=ge.memo(function(e){var t=e.id,n=e.spacing,r=e.rotation,l=e.background,i=e.color,o=e.lineWidth,a=Math.round(r)%360,s=Math.abs(n);a>180?a=a-360:a>90?a=a-180:a<-180?a=a+360:a<-90&&(a=a+180);var u=s,c=s,d;return a===0?d=` M 0 0 L `.concat(u,` 0 M 0 `).concat(c," L ").concat(u," ").concat(c,` `):a===90?d=` M 0 0 L 0 `.concat(c,` M `).concat(u," 0 L ").concat(u," ").concat(c,` - `):(u=Math.abs(s/Math.sin(nS(a))),c=s/Math.sin(nS(90-a)),a>0?d=` + `):(u=Math.abs(s/Math.sin(zk(a))),c=s/Math.sin(zk(90-a)),a>0?d=` M 0 `.concat(-c," L ").concat(u*2," ").concat(c,` M `).concat(-u," ").concat(-c," L ").concat(u," ").concat(c,` M `).concat(-u," 0 L ").concat(u," ").concat(c*2,` @@ -560,29 +572,29 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat M `.concat(-u," ").concat(c," L ").concat(u," ").concat(-c,` M `).concat(-u," ").concat(c*2," L ").concat(u*2," ").concat(-c,` M 0 `).concat(c*2," L ").concat(u*2,` 0 - `)),Je.createElement("pattern",{id:t,width:u,height:c,patternUnits:"userSpaceOnUse"},Je.createElement("rect",{width:u,height:c,fill:l,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),Je.createElement("path",{d,strokeWidth:o,stroke:i,strokeLinecap:"square"}))});Hx.displayName="PatternLines";Hx.propTypes={id:le.string.isRequired,spacing:le.number.isRequired,rotation:le.number.isRequired,background:le.string.isRequired,color:le.string.isRequired,lineWidth:le.number.isRequired};Hx.defaultProps={spacing:5,rotation:0,color:"#000000",background:"#ffffff",lineWidth:2};var Vx=ge.memo(function(e){var t=e.id,n=e.background,r=e.color,l=e.size,i=e.padding,o=e.stagger,a=l+i,s=i/2;return o===!0&&(a=l*2+i*2),Je.createElement("pattern",{id:t,width:a,height:a,patternUnits:"userSpaceOnUse"},Je.createElement("rect",{width:a,height:a,fill:n}),Je.createElement("rect",{x:s,y:s,width:l,height:l,fill:r}),o&&Je.createElement("rect",{x:i*1.5+l,y:i*1.5+l,width:l,height:l,fill:r}))});Vx.displayName="PatternSquares";Vx.propTypes={id:le.string.isRequired,color:le.string.isRequired,background:le.string.isRequired,size:le.number.isRequired,padding:le.number.isRequired,stagger:le.bool.isRequired};Vx.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var IV={patternDots:Ux,patternLines:Hx,patternSquares:Vx};function Uje(e,t){if(e==null)return{};var n=Hje(e,t),r,l;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(l=0;l=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Hje(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,i;for(i=0;i=0)&&(n[l]=e[l]);return n}function $V(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{},t=e.srcKey,n=t===void 0?"theme":t,r=e.destKey,l=r===void 0?"theme":r;return Tc(Ix(LL({},n,le.object)),so([n],function(i){return LL({},l,CV(SV,i[n]))}))};function sv(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?sv=function(n){return typeof n}:sv=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},sv(e)}function eze(e,t){if(e==null)return{};var n=tze(e,t),r,l;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(l=0;l=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tze(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,i;for(i=0;i=0)&&(n[l]=e[l]);return n}function nze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rze(e,t){for(var n=0;n3&&arguments[3]!==void 0?arguments[3]:{},i=l.dataKey,o=l.colorKey,a=o===void 0?"color":o,s=l.targetKey,u=s===void 0?"fill":s,c=[],d={};return t.length&&n.length&&(c=cze(t),n.forEach(function(f){for(var p=function(v){var h=r[v],y=h.id,w=h.match;if(gze(w,f,i)){var _=t.find(function(P){var E=P.id;return E===y});if(_){if(mze.includes(_.type))if(_.background==="inherit"||_.color==="inherit"){var x=Hs(f,a),T=_.background,k=_.color,S=y;_.background==="inherit"&&(S="".concat(S,".bg.").concat(x),T=x),_.color==="inherit"&&(S="".concat(S,".fg.").concat(x),k=x),Ru(f,u,"url(#".concat(S,")")),d[S]||(c.push(TT({},_,{id:S,background:T,color:k})),d[S]=1)}else Ru(f,u,"url(#".concat(y,")"));else if(hze.includes(_.type)){var C=_.colors.map(function(P){var E=P.color;return E});if(C.includes("inherit")){var M=Hs(f,a),O=y,D=TT({},_,{colors:_.colors.map(function(P,E){return P.color!=="inherit"?P:(O="".concat(O,".").concat(E,".").concat(M),TT({},P,{color:P.color==="inherit"?M:P.color}))})});D.id=O,Ru(f,u,"url(#".concat(O,")")),d[O]||(c.push(D),d[O]=1)}else Ru(f,u,"url(#".concat(y,")"))}}return"break"}},m=0;m0?(v=f.align.right,h=f.baseline.center):(l==="after"&&s>0||l==="before"&&s<0)&&(v=f.align.left,h=f.baseline.center)):(b=function(_){return{x:0,y:p(_)}},m.lineX=o*(l==="after"?1:-1),g.textX=(o+a)*(l==="after"?1:-1),l==="after"?v=f.align.left:v=f.align.right);var y=d.map(function(w){return _ze({key:w,value:w},b(w),m,g)});return{ticks:y,textAlign:v,textBaseline:h}},XV=function(t,n){if(!t||typeof t=="function")return t;if(n.type==="time"){var r=$P(t);return function(l){return r(new Date(l))}}return Pf(t)},lS=function(t){var n=t.width,r=t.height,l=t.scale,i=t.axis,o=t.values,a=Array.isArray(o)?o:void 0,s=Yx(o)?o:void 0,u=a||GV(l,s),c=l.bandwidth?HV(l):l,d;return i==="x"?d=u.map(function(f){return{key:"".concat(f),x1:c(f),x2:c(f),y1:0,y2:r}}):i==="y"&&(d=u.map(function(f){return{key:"".concat(f),x1:0,x2:n,y1:c(f),y2:c(f)}})),d},KV={ticksPosition:le.oneOf(["before","after"]),tickValues:le.oneOfType([le.number,le.arrayOf(le.oneOfType([le.number,le.string,le.instanceOf(Date)])),le.string]),tickSize:le.number,tickPadding:le.number,tickRotation:le.number,format:le.oneOfType([le.func,le.string]),renderTick:le.func,legend:le.node,legendPosition:le.oneOf(["start","middle","end"]),legendOffset:le.number},co=le.shape(KV);function sS(){return sS=Object.assign||function(e){for(var t=1;t0&&(t.lineWidth=k.axis.domain.line.strokeWidth,t.lineCap="square",t.strokeStyle=k.axis.domain.line.stroke,t.beginPath(),t.moveTo(0,0),t.lineTo(r==="x"?u:0,r==="x"?0:u),t.stroke()),C.forEach(function(A){k.axis.ticks.line.strokeWidth>0&&(t.lineWidth=k.axis.ticks.line.strokeWidth,t.lineCap="square",t.strokeStyle=k.axis.ticks.line.stroke,t.beginPath(),t.moveTo(A.x,A.y),t.lineTo(A.x+A.lineX,A.y+A.lineY),t.stroke());var F=h!==void 0?h(A.value):A.value;t.save(),t.translate(A.x+A.textX,A.y+A.textY),t.rotate(NL(v)),t.fillStyle=k.axis.ticks.text.fill,t.fillText(F,0,0),t.restore()}),y!==void 0){var D=0,P=0,E=0,I;r==="y"?(E=-90,D=T,_==="start"?(I="start",P=u):_==="middle"?(I="center",P=u/2):_==="end"&&(I="end")):(P=T,_==="start"?I="start":_==="middle"?(I="center",D=u/2):_==="end"&&(I="end",D=u)),t.translate(D,P),t.rotate(NL(E)),t.font="".concat(k.axis.legend.text.fontWeight?"".concat(k.axis.legend.text.fontWeight," "):"").concat(k.axis.legend.text.fontSize,"px ").concat(k.axis.legend.text.fontFamily),t.fillStyle=k.axis.legend.text.fill,t.textAlign=I,t.textBaseline="middle",t.fillText(y,0,0)}t.restore()},$ze=["top","right","bottom","left"],a4=function(t,n){var r=n.xScale,l=n.yScale,i=n.width,o=n.height,a=n.top,s=n.right,u=n.bottom,c=n.left,d=n.theme,f={top:a,right:s,bottom:u,left:c};$ze.forEach(function(p){var m=f[p];if(!m)return null;var g=p==="top"||p==="bottom",b=p==="top"||p==="left"?"before":"after",v=g?r:l,h=XV(m.format,v);Ize(t,Rze({},m,{axis:g?"x":"y",x:p==="right"?i:0,y:p==="bottom"?o:0,scale:v,format:h,length:g?i:o,ticksPosition:b,theme:d}))})},tf=function(t,n){var r=n.width,l=n.height,i=n.scale,o=n.axis,a=n.values,s=lS({width:r,height:l,scale:i,axis:o,values:a});s.forEach(function(u){t.beginPath(),t.moveTo(u.x1,u.y1),t.lineTo(u.x2,u.y2),t.stroke()})},Xx="row",Kx="column",o4="top",i4="top-right",l4="right",s4="bottom-right",u4="bottom",c4="bottom-left",d4="left",eG="top-left",f4="center",Zx="left-to-right",Qx="right-to-left",Jx="top-to-bottom",e2="bottom-to-top";function Nze(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mje(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,i;for(i=0;i=0)&&(n[l]=e[l]);return n}function TG(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{},t=e.srcKey,n=t===void 0?"theme":t,r=e.destKey,l=r===void 0?"theme":r;return $c(p2(iI({},n,le.object)),fo([n],function(i){return iI({},l,pG(fG,i[n]))}))};function kv(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?kv=function(n){return typeof n}:kv=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},kv(e)}function Sje(e,t){if(e==null)return{};var n=kje(e,t),r,l;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(l=0;l=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function kje(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,i;for(i=0;i=0)&&(n[l]=e[l]);return n}function Cje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mje(e,t){for(var n=0;n3&&arguments[3]!==void 0?arguments[3]:{},i=l.dataKey,o=l.colorKey,a=o===void 0?"color":o,s=l.targetKey,u=s===void 0?"fill":s,c=[],d={};return t.length&&n.length&&(c=Lje(t),n.forEach(function(f){for(var p=function(v){var m=r[v],y=m.id,x=m.match;if(zje(x,f,i)){var _=t.find(function(P){var E=P.id;return E===y});if(_){if(jje.includes(_.type))if(_.background==="inherit"||_.color==="inherit"){var w=Js(f,a),S=_.background,k=_.color,C=y;_.background==="inherit"&&(C="".concat(C,".bg.").concat(w),S=w),_.color==="inherit"&&(C="".concat(C,".fg.").concat(w),k=w),Vu(f,u,"url(#".concat(C,")")),d[C]||(c.push(nT({},_,{id:C,background:S,color:k})),d[C]=1)}else Vu(f,u,"url(#".concat(y,")"));else if(Fje.includes(_.type)){var T=_.colors.map(function(P){var E=P.color;return E});if(T.includes("inherit")){var M=Js(f,a),O=y,D=nT({},_,{colors:_.colors.map(function(P,E){return P.color!=="inherit"?P:(O="".concat(O,".").concat(E,".").concat(M),nT({},P,{color:P.color==="inherit"?M:P.color}))})});D.id=O,Vu(f,u,"url(#".concat(O,")")),d[O]||(c.push(D),d[O]=1)}else Vu(f,u,"url(#".concat(y,")"))}}return"break"}},h=0;h0?(v=f.align.right,m=f.baseline.center):(l==="after"&&s>0||l==="before"&&s<0)&&(v=f.align.left,m=f.baseline.center)):(b=function(_){return{x:0,y:p(_)}},h.lineX=o*(l==="after"?1:-1),g.textX=(o+a)*(l==="after"?1:-1),l==="after"?v=f.align.left:v=f.align.right);var y=d.map(function(x){return Vje({key:x,value:x},b(x),h,g)});return{ticks:y,textAlign:v,textBaseline:m}},$G=function(t,n){if(!t||typeof t=="function")return t;if(n.type==="time"){var r=C6(t);return function(l){return r(new Date(l))}}return Uf(t)},Hk=function(t){var n=t.width,r=t.height,l=t.scale,i=t.axis,o=t.values,a=Array.isArray(o)?o:void 0,s=C2(o)?o:void 0,u=a||LG(l,s),c=l.bandwidth?EG(l):l,d;return i==="x"?d=u.map(function(f){return{key:"".concat(f),x1:c(f),x2:c(f),y1:0,y2:r}}):i==="y"&&(d=u.map(function(f){return{key:"".concat(f),x1:0,x2:n,y1:c(f),y2:c(f)}})),d},NG={ticksPosition:le.oneOf(["before","after"]),tickValues:le.oneOfType([le.number,le.arrayOf(le.oneOfType([le.number,le.string,le.instanceOf(Date)])),le.string]),tickSize:le.number,tickPadding:le.number,tickRotation:le.number,format:le.oneOfType([le.func,le.string]),renderTick:le.func,legend:le.node,legendPosition:le.oneOf(["start","middle","end"]),legendOffset:le.number},mo=le.shape(NG);function Vk(){return Vk=Object.assign||function(e){for(var t=1;t0&&(t.lineWidth=k.axis.domain.line.strokeWidth,t.lineCap="square",t.strokeStyle=k.axis.domain.line.stroke,t.beginPath(),t.moveTo(0,0),t.lineTo(r==="x"?u:0,r==="x"?0:u),t.stroke()),T.forEach(function(A){k.axis.ticks.line.strokeWidth>0&&(t.lineWidth=k.axis.ticks.line.strokeWidth,t.lineCap="square",t.strokeStyle=k.axis.ticks.line.stroke,t.beginPath(),t.moveTo(A.x,A.y),t.lineTo(A.x+A.lineX,A.y+A.lineY),t.stroke());var F=m!==void 0?m(A.value):A.value;t.save(),t.translate(A.x+A.textX,A.y+A.textY),t.rotate(uI(v)),t.fillStyle=k.axis.ticks.text.fill,t.fillText(F,0,0),t.restore()}),y!==void 0){var D=0,P=0,E=0,I;r==="y"?(E=-90,D=S,_==="start"?(I="start",P=u):_==="middle"?(I="center",P=u/2):_==="end"&&(I="end")):(P=S,_==="start"?I="start":_==="middle"?(I="center",D=u/2):_==="end"&&(I="end",D=u)),t.translate(D,P),t.rotate(uI(E)),t.font="".concat(k.axis.legend.text.fontWeight?"".concat(k.axis.legend.text.fontWeight," "):"").concat(k.axis.legend.text.fontSize,"px ").concat(k.axis.legend.text.fontFamily),t.fillStyle=k.axis.legend.text.fill,t.textAlign=I,t.textBaseline="middle",t.fillText(y,0,0)}t.restore()},ize=["top","right","bottom","left"],Y6=function(t,n){var r=n.xScale,l=n.yScale,i=n.width,o=n.height,a=n.top,s=n.right,u=n.bottom,c=n.left,d=n.theme,f={top:a,right:s,bottom:u,left:c};ize.forEach(function(p){var h=f[p];if(!h)return null;var g=p==="top"||p==="bottom",b=p==="top"||p==="left"?"before":"after",v=g?r:l,m=$G(h.format,v);oze(t,rze({},h,{axis:g?"x":"y",x:p==="right"?i:0,y:p==="bottom"?o:0,scale:v,format:m,length:g?i:o,ticksPosition:b,theme:d}))})},mf=function(t,n){var r=n.width,l=n.height,i=n.scale,o=n.axis,a=n.values,s=Hk({width:r,height:l,scale:i,axis:o,values:a});s.forEach(function(u){t.beginPath(),t.moveTo(u.x1,u.y1),t.lineTo(u.x2,u.y2),t.stroke()})},M2="row",P2="column",X6="top",K6="top-right",Z6="right",Q6="bottom-right",J6="bottom",eP="bottom-left",tP="left",BG="top-left",nP="center",O2="left-to-right",A2="right-to-left",D2="top-to-bottom",E2="bottom-to-top";function lze(e){for(var t=1;t0){var R=w.filter(function(Y){var L=Y.on;return L==="hover"}),q=R.reduce(function(Y,L){return pv({},Y,L.style)},{});k(q)}h!==void 0&&h(o,N)},[h,o,w]),O=ge.useCallback(function(){if(w.length>0){var N=w.filter(function(q){var Y=q.on;return Y!=="hover"}),R=N.reduce(function(q,Y){return pv({},q,Y.style)},{});k(R)}y!==void 0&&y(o,event)},[y,o,w]),D=nG({direction:a,justify:s,symbolSize:T.symbolSize||p,symbolSpacing:m,width:l,height:i}),P=D.symbolX,E=D.symbolY,I=D.labelX,A=D.labelY,F=D.labelAnchor,j=D.labelAlignment,z=[v,h,y].some(function(N){return N!==void 0}),B;return Cm(f)?B=f:B=yBe[f],Je.createElement("g",{transform:"translate(".concat(n,",").concat(r,")"),style:{opacity:T.itemOpacity!==void 0?T.itemOpacity:d}},Je.createElement("rect",{width:l,height:i,fill:T.itemBackground||c,style:{cursor:z?"pointer":"auto"},onClick:C,onMouseEnter:M,onMouseLeave:O}),Je.createElement(B,{id:o.id,x:P,y:E,size:T.symbolSize||p,fill:o.fill||o.color,borderWidth:T.symbolBorderWidth!==void 0?T.symbolBorderWidth:g,borderColor:T.symbolBorderColor||b}),Je.createElement("text",{textAnchor:F,style:pv({},S.legends.text,{fill:T.itemTextColor||u,dominantBaseline:j,pointerEvents:"none",userSelect:"none"}),x:I,y:A},o.label))};Rs.displayName="LegendSvgItem";Rs.propTypes=pv({data:r2.isRequired,x:le.number.isRequired,y:le.number.isRequired,width:le.number.isRequired,height:le.number.isRequired,textColor:le.string,background:le.string,opacity:le.number,direction:le.oneOf(["left-to-right","right-to-left","top-to-bottom","bottom-to-top"]).isRequired,justify:le.bool.isRequired},t2,n2);Rs.defaultProps={direction:"left-to-right",justify:!1,textColor:"black",background:"transparent",opacity:1,symbolShape:"square",symbolSize:16,symbolSpacing:8,symbolBorderWidth:0,symbolBorderColor:"transparent",effects:[]};function bBe(e){for(var t=1;tt}var RBe=EBe,LBe=lG,IBe=RBe,$Be=yc;function NBe(e){return e&&e.length?LBe(e,$Be,IBe):void 0}var FBe=NBe;const uG=lr(FBe);var jBe=Math.ceil,zBe=Math.max;function BBe(e,t,n,r){for(var l=-1,i=zBe(jBe((t-e)/(n||1)),0),o=Array(i);i--;)o[r?i:++l]=e,e+=n;return o}var WBe=BBe,qBe=WBe,UBe=oP,ST=bV;function HBe(e){return function(t,n,r){return r&&typeof r!="number"&&UBe(t,n,r)&&(n=r=void 0),t=ST(t),n===void 0?(n=t,t=0):n=ST(n),r=r===void 0?t=aqe){var u=t?null:nqe(e);if(u)return rqe(u);o=!1,l=tqe,s=new QWe}else s=t?[]:a;e:for(;++r-1}function Uqe(e,t){var n=this.__data__,r=s2(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Ef.prototype.clear=zqe;Ef.prototype.delete=Bqe;Ef.prototype.get=Wqe;Ef.prototype.has=qqe;Ef.prototype.set=Uqe;function Sc(e){var t=-1,n=e?e.length:0;for(this.clear();++t11))throw new Error("Invalid size '".concat(t.size,"' for diverging color scheme '").concat(t.scheme,"', must be between 3~11"));var s=Lu(hv[t.scheme][t.size||11]),u=function(p){return s(r(p))};return u.scale=s,u}if(AUe(t.scheme)){if(t.size!==void 0&&(t.size<3||t.size>9))throw new Error("Invalid size '".concat(t.size,"' for sequential color scheme '").concat(t.scheme,"', must be between 3~9"));var c=Lu(hv[t.scheme][t.size||9]),d=function(p){return c(r(p))};return d.scale=c,d}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return t}},OG=function(t,n){return ge.useMemo(function(){return PG(t,n)},[t,n])};function EUe(e,t){return IUe(e)||LUe(e,t)||RUe()}function RUe(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function LUe(e,t){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]"){var n=[],r=!0,l=!1,i=void 0;try{for(var o=e[Symbol.iterator](),a;!(r=(a=o.next()).done)&&(n.push(a.value),!(t&&n.length===t));r=!0);}catch(s){l=!0,i=s}finally{try{!r&&o.return!=null&&o.return()}finally{if(l)throw i}}return n}}function IUe(e){if(Array.isArray(e))return e}var mv=function(t,n){if(typeof t=="function")return function(f){return t(f)};if(kG(t)){if(t.theme!==void 0){if(n===void 0)throw new Error("Unable to use color from theme as no theme was provided");var r=qy(n,t.theme);if(r===void 0)throw new Error("Color from theme is undefined at path: '".concat(t.theme,"'"));return function(){return r}}if(t.from!==void 0){var l=function(p){return qy(p,t.from)};if(Array.isArray(t.modifiers)){var i=[],o=!0,a=!1,s=void 0;try{for(var u=function(){var p=d.value,m=EUe(p,2),g=m[0],b=m[1];if(g==="brighter")i.push(function(v){return v.brighter(b)});else if(g==="darker")i.push(function(v){return v.darker(b)});else if(g==="opacity")i.push(function(v){return v.opacity=b,v});else throw new Error("Invalid color modifier: '".concat(g,"', must be one of: 'brighter', 'darker', 'opacity'"))},c=t.modifiers[Symbol.iterator](),d;!(o=(d=c.next()).done);o=!0)u()}catch(f){a=!0,s=f}finally{try{!o&&c.return!=null&&c.return()}finally{if(a)throw s}}return i.length===0?l:function(f){return i.reduce(function(p,m){return m(p)},Qu(l(f))).toString()}}return l}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return t}},Uy=function(t,n){return ge.useMemo(function(){return mv(t,n)},[t,n])},O4=le.oneOfType([le.func,le.arrayOf(le.string),le.shape({scheme:le.oneOf(DUe).isRequired,size:le.number}),le.shape({datum:le.string.isRequired}),le.string]),$Ue=le.oneOfType([le.func,le.string]),PT=le.oneOfType([le.string,le.func,le.shape({theme:le.string.isRequired}),le.shape({from:le.string.isRequired,modifiers:le.arrayOf(le.array)})]),NUe=lU,FUe=gg;function jUe(e,t){return e&&NUe(e,t,FUe)}var zUe=jUe,BUe=wf;function WUe(e,t){return function(n,r){if(n==null)return n;if(!BUe(n))return e(n,r);for(var l=n.length,i=t?l:-1,o=Object(n);(t?i--:++il?0:l+t),n=n>l?l:n,n<0&&(n+=l),l=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(l);++r1),i}),HGe(e,YGe(e),n),r&&(n=WGe(n,XGe|KGe|ZGe,VGe));for(var l=t.length;l--;)qGe(n,t[l]);return n}),JGe=QGe;const $G=lr(JGe);var eYe=le.shape({match:le.oneOfType([le.func,le.object]).isRequired,type:le.oneOf(["circle","rect","dot"]).isRequired,noteX:le.oneOfType([le.number,le.shape({abs:le.number.isRequired})]).isRequired,noteY:le.oneOfType([le.number,le.shape({abs:le.number.isRequired})]).isRequired,noteWidth:le.number,noteTextOffset:le.number,note:le.oneOfType([le.node,le.func]).isRequired,offset:le.number}),Hy={noteWidth:120,noteTextOffset:8,animate:!0,motionStiffness:90,motionDamping:13};function tYe(e){for(var t=1;t180?(_-=d,T-=d):T+=d,{points:[[b,v],[m,g],[T,k]],text:[_,x],angle:h+90}},NG=function(t){var n=t.items,r=t.annotations,l=t.getPosition,i=t.getDimensions;return ge.useMemo(function(){return aYe({items:n,annotations:r,getPosition:l,getDimensions:i})},[n,r,l,i])},lYe=function(t){var n=t.type,r=t.containerWidth,l=t.containerHeight,i=t.x,o=t.y,a=t.size,s=t.width,u=t.height,c=t.noteX,d=t.noteY,f=t.noteWidth,p=t.noteTextOffset;return ge.useMemo(function(){return iYe({type:n,containerWidth:r,containerHeight:l,x:i,y:o,size:a,width:s,height:u,noteX:c,noteY:d,noteWidth:f,noteTextOffset:p})},[n,r,l,i,o,a,s,u,c,d,f,p])};function sYe(e){for(var t=1;t0&&Je.createElement("text",{x:n,y:r,style:sYe({},i.annotations.text,{strokeLinejoin:"round",strokeWidth:i.annotations.text.outlineWidth*2,stroke:i.annotations.text.outlineColor})},l),Je.createElement("text",{x:n,y:r,style:$G(i.annotations.text,["outlineWidth","outlineColor"])},l))});Nm.displayName="AnnotationNote";Nm.propTypes={datum:le.object.isRequired,x:le.number.isRequired,y:le.number.isRequired,note:le.oneOfType([le.node,le.func]).isRequired};Nm.defaultProps={};function cYe(e){for(var t=1;t0&&Je.createElement("circle",{cx:s.x,cy:s.y,r:s.size/2,style:ZL({},l.annotations.outline,{fill:"none",strokeWidth:l.annotations.outline.strokeWidth+l.annotations.outline.outlineWidth*2,stroke:l.annotations.outline.outlineColor})}),Je.createElement("circle",{cx:s.x,cy:s.y,r:s.size/2,style:l.annotations.outline}))}):Je.createElement(Je.Fragment,null,l.annotations.outline.outlineWidth>0&&Je.createElement("circle",{cx:t,cy:n,r:r/2,style:ZL({},l.annotations.outline,{fill:"none",strokeWidth:l.annotations.outline.strokeWidth+l.annotations.outline.outlineWidth*2,stroke:l.annotations.outline.outlineColor})}),Je.createElement("circle",{cx:t,cy:n,r:r/2,style:l.annotations.outline}))});A4.displayName="CircleAnnotationOutline";A4.propTypes={x:le.number.isRequired,y:le.number.isRequired,size:le.number.isRequired};function QL(e){for(var t=1;t0&&Je.createElement("circle",{cx:s.x,cy:s.y,r:s.size/2,style:QL({},l.annotations.outline,{fill:"none",strokeWidth:l.annotations.outline.outlineWidth*2,stroke:l.annotations.outline.outlineColor})}),Je.createElement("circle",{cx:s.x,cy:s.y,r:s.size/2,style:l.annotations.symbol}))}):Je.createElement(Je.Fragment,null,l.annotations.outline.outlineWidth>0&&Je.createElement("circle",{cx:t,cy:n,r:r/2,style:QL({},l.annotations.outline,{fill:"none",strokeWidth:l.annotations.outline.outlineWidth*2,stroke:l.annotations.outline.outlineColor})}),Je.createElement("circle",{cx:t,cy:n,r:r/2,style:l.annotations.symbol}))});c2.displayName="DotAnnotationOutline";c2.propTypes={x:le.number.isRequired,y:le.number.isRequired,size:le.number.isRequired};c2.defaultProps={size:4};function JL(e){for(var t=1;t0&&Je.createElement("rect",{x:u.x,y:u.y,width:u.width,height:u.height,style:JL({},i.annotations.outline,{fill:"none",strokeWidth:i.annotations.outline.strokeWidth+i.annotations.outline.outlineWidth*2,stroke:i.annotations.outline.outlineColor})}),Je.createElement("rect",{x:u.x,y:u.y,width:u.width,height:u.height,style:i.annotations.outline}))}):Je.createElement(Je.Fragment,null,i.annotations.outline.outlineWidth>0&&Je.createElement("rect",{x:t-r/2,y:n-l/2,width:r,height:l,style:JL({},i.annotations.outline,{fill:"none",strokeWidth:i.annotations.outline.strokeWidth+i.annotations.outline.outlineWidth*2,stroke:i.annotations.outline.outlineColor})}),Je.createElement("rect",{x:t-r/2,y:n-l/2,width:r,height:l,style:i.annotations.outline}))});D4.displayName="RectAnnotationOutline";D4.propTypes={x:le.number.isRequired,y:le.number.isRequired,width:le.number.isRequired,height:le.number.isRequired};var bg=ge.memo(function(e){var t=e.datum,n=e.type,r=e.containerWidth,l=e.containerHeight,i=e.x,o=e.y,a=e.size,s=e.width,u=e.height,c=e.noteX,d=e.noteY,f=e.noteWidth,p=e.noteTextOffset,m=e.note,g=Bo(),b=g.animate,v=g.springConfig,h=lYe({type:n,containerWidth:r,containerHeight:l,x:i,y:o,size:a,width:s,height:u,noteX:c,noteY:d,noteWidth:f,noteTextOffset:p});return Je.createElement(Je.Fragment,null,Je.createElement(Fm,{points:h.points,isOutline:!0}),n==="circle"&&Je.createElement(A4,{x:i,y:o,size:a}),n==="dot"&&Je.createElement(c2,{x:i,y:o,size:a}),n==="rect"&&Je.createElement(D4,{x:i,y:o,width:s,height:u}),Je.createElement(Fm,{points:h.points}),!b&&Je.createElement(Nm,{x:h.text[0],y:h.text[1],note:m}),b&&Je.createElement(rs,{style:{x:zn(h.text[0],v),y:zn(h.text[1],v)}},function(y){return Je.createElement(Nm,{datum:t,x:y.x,y:y.y,note:m})}))});bg.displayName="Annotation";bg.propTypes={datum:le.object.isRequired,type:le.oneOf(["circle","rect","dot"]).isRequired,containerWidth:le.number.isRequired,containerHeight:le.number.isRequired,x:le.number.isRequired,y:le.number.isRequired,size:le.number,width:le.number,height:le.number,noteX:le.oneOfType([le.number,le.shape({abs:le.number.isRequired})]).isRequired,noteY:le.oneOfType([le.number,le.shape({abs:le.number.isRequired})]).isRequired,noteWidth:le.number.isRequired,noteTextOffset:le.number.isRequired,note:le.oneOfType([le.node,le.func]).isRequired};bg.defaultProps={noteWidth:Hy.noteWidth,noteTextOffset:Hy.noteTextOffset};var d2=function(t,n,r,l){return uP().rangeRound(r).domain(t.map(n)).padding(l)};function eI(e){return vYe(e)||gYe(e)||mYe()}function mYe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function gYe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function vYe(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&(s=0)),Ju().rangeRound(i).domain([s,a])},yYe=function(t){var n=t.data,r=t.getIndex,l=t.keys,i=t.minValue,o=t.maxValue,a=t.reverse,s=t.width,u=t.height,c=t.getColor,d=t.padding,f=d===void 0?0:d,p=t.innerPadding,m=p===void 0?0:p,g=d2(n,r,[0,s],f),b=a?[0,u]:[u,0],v=FG(n,l,i,o,b),h=(g.bandwidth()-m*(l.length-1))/l.length,y=v(0),w=function(k){return k>0?v(k):y},_=function(k,S){return k>0?y-S:v(k)-y};a&&(w=function(k){return k<0?v(k):y},_=function(k,S){return k<0?y-S:v(k)-y});var x=[];return h>0&&l.forEach(function(T,k){cG(g.domain().length).forEach(function(S){var C=g(r(n[S]))+h*k+m*k,M=w(n[S][T]),O=_(n[S][T],M);if(h>0&&O>0){var D={id:T,value:n[S][T],index:S,indexValue:r(n[S]),data:n[S]};x.push({key:"".concat(T,".").concat(D.indexValue),data:D,x:C,y:M,width:h,height:O,color:c(D)})}})}),{xScale:g,yScale:v,bars:x}},bYe=function(t){var n=t.data,r=t.getIndex,l=t.keys,i=t.minValue,o=t.maxValue,a=t.reverse,s=t.width,u=t.height,c=t.getColor,d=t.padding,f=d===void 0?0:d,p=t.innerPadding,m=p===void 0?0:p,g=a?[s,0]:[0,s],b=FG(n,l,i,o,g),v=d2(n,r,[u,0],f),h=(v.bandwidth()-m*(l.length-1))/l.length,y=b(0),w=function(k){return k>0?y:b(k)},_=function(k,S){return k>0?b(k)-y:y-S};a&&(w=function(k){return k<0?y:b(k)},_=function(k,S){return k<0?b(k)-y:y-S});var x=[];return h>0&&l.forEach(function(T,k){cG(v.domain().length).forEach(function(S){var C=w(n[S][T]),M=v(r(n[S]))+h*k+m*k,O=_(n[S][T],C);if(O>0){var D={id:T,value:n[S][T],index:S,indexValue:r(n[S]),data:n[S]};x.push({key:"".concat(T,".").concat(D.indexValue),data:D,x:C,y:M,width:O,height:h,color:c(D)})}})}),{xScale:b,yScale:v,bars:x}},jG=function(t){return t.layout==="vertical"?yYe(t):bYe(t)},zG=function(t,n,r,l){var i=eWe(t,2),o=n;o==="auto"&&(o=sG(i));var a=r;return a==="auto"&&(a=uG(i)),Ju().rangeRound(l).domain([o,a])},xYe=function(t){var n=t.data,r=t.getIndex,l=t.keys,i=t.minValue,o=t.maxValue,a=t.reverse,s=t.width,u=t.height,c=t.getColor,d=t.padding,f=d===void 0?0:d,p=t.innerPadding,m=p===void 0?0:p,g=gH().keys(l).offset(IP)(n),b=d2(n,r,[0,s],f),v=a?[0,u]:[u,0],h=zG(g,i,o,v),y=[],w=b.bandwidth(),_=function(k){return h(k[1])},x=function(k,S){return h(k[0])-S};return a&&(_=function(k){return h(k[0])},x=function(k,S){return h(k[1])-S}),w>0&&g.forEach(function(T){b.domain().forEach(function(k,S){var C=T[S],M=b(r(C.data)),O=_(C),D=x(C,O);if(m>0&&(O+=m*.5,D-=m),D>0){var P={id:T.key,value:C.data[T.key],index:S,indexValue:k,data:C.data};y.push({key:"".concat(T.key,".").concat(k),data:P,x:M,y:O,width:w,height:D,color:c(P)})}})}),{xScale:b,yScale:h,bars:y}},wYe=function(t){var n=t.data,r=t.getIndex,l=t.keys,i=t.minValue,o=t.maxValue,a=t.reverse,s=t.width,u=t.height,c=t.getColor,d=t.padding,f=d===void 0?0:d,p=t.innerPadding,m=p===void 0?0:p,g=gH().keys(l).offset(IP)(n),b=a?[s,0]:[0,s],v=zG(g,i,o,b),h=d2(n,r,[u,0],f),y=[],w=h.bandwidth(),_=function(k){return v(k[0])},x=function(k,S){return v(k[1])-S};return a&&(_=function(k){return v(k[1])},x=function(k,S){return v(k[0])-S}),w>0&&g.forEach(function(T){h.domain().forEach(function(k,S){var C=T[S],M=h(r(C.data)),O={id:T.key,value:C.data[T.key],index:S,indexValue:k,data:C.data},D=_(C),P=x(C,D);m>0&&(D+=m*.5,P-=m),P>0&&y.push({key:"".concat(T.key,".").concat(k),data:O,x:D,y:M,width:P,height:w,color:c(O)})})}),{xScale:v,yScale:h,bars:y}},BG=function(t){return t.layout==="vertical"?xYe(t):wYe(t)},_Ye=function(t,n,r,l,i){var o=Im(t.map(function(a){return{id:a.data.id,label:a.data.id,color:a.color,fill:a.data.fill}}),function(a){var s=a.id;return s});return(n==="vertical"&&l==="stacked"&&r==="column"&&i!==!0||n==="horizontal"&&l==="stacked"&&i===!0)&&o.reverse(),o},TYe=function(t){return Im(t.map(function(n){return{id:n.data.indexValue,label:n.data.indexValue,color:n.color,fill:n.data.fill}}),function(n){var r=n.id;return r})},kYe=function(t){var n=t.from,r=t.bars,l=t.layout,i=t.direction,o=t.groupMode,a=t.reverse;return n==="indexes"?TYe(r):_Ye(r,l,i,o,a)};function bS(e){for(var t=1;t0&&ce0&&we0&&(this.ctx.lineWidth=S.grid.line.strokeWidth,this.ctx.strokeStyle=S.grid.line.stroke,P&&tf(this.ctx,{width:c,height:d,scale:j.xScale,axis:"x",values:E}),I&&tf(this.ctx,{width:c,height:d,scale:j.yScale,axis:"y",values:A})),this.ctx.strokeStyle="#dddddd";var z=Im(j.bars.map(function(N){return{id:N.data.id,label:N.data.id,color:N.color,fill:N.data.fill}}).reverse(),function(N){var R=N.id;return R}),B=Im(j.bars.map(function(N){return{id:N.data.indexValue,label:N.data.indexValue,color:N.color,fill:N.data.fill}}),function(N){var R=N.id;return R});D.forEach(function(N){var R;if(N.dataFrom==="keys"?R=z:N.dataFrom==="indexes"&&(R=B),R===void 0)return null;T4(l.ctx,nI({},N,{data:R,containerWidth:c,containerHeight:d,itemTextColor:"#999",symbolSize:16,theme:S}))}),a4(this.ctx,{xScale:j.xScale,yScale:j.yScale,width:c,height:d,top:_,right:x,bottom:T,left:k,theme:S}),j.bars.forEach(function(N){var R=N.x,q=N.y,Y=N.color,L=N.width,W=N.height;l.ctx.fillStyle=Y,M>0&&(l.ctx.strokeStyle=O(N),l.ctx.lineWidth=M),l.ctx.beginPath(),l.ctx.rect(R,q,L,W),l.ctx.fill(),M>0&&l.ctx.stroke()})}},{key:"render",value:function(){var r=this,l=this.props,i=l.outerWidth,o=l.outerHeight,a=l.pixelRatio,s=l.isInteractive,u=l.theme;return Je.createElement(Wx,{isInteractive:s,theme:u,animate:!1},function(c){var d=c.showTooltip,f=c.hideTooltip;return Je.createElement("canvas",{ref:function(m){r.surface=m},width:i*a,height:o*a,style:{width:i,height:o},onMouseEnter:r.handleMouseHover(d,f),onMouseMove:r.handleMouseHover(d,f),onMouseLeave:r.handleMouseLeave(f),onClick:r.handleClick})})}}]),t}(ge.Component);GG.propTypes=qG;var qYe=NP("BarCanvas")(UG(GG));function TS(){return TS=Object.assign||function(e){for(var t=1;tke.jsx(Ia,{sx:{maxWidth:200,height:50},children:ke.jsx(UYe,{data:e.data[e.xField].map((t,n)=>({id:t,x:e.data[e.yField][n]})),margin:{top:3,right:3,bottom:3,left:3},indexBy:"id",keys:["x"],colors:[e.color],axisTop:null,axisRight:null,enableGridX:!1,enableGridY:!1})}),VYe=HYe;var GYe=pG;function YYe(e){return e&&e.length?GYe(e):[]}var XYe=YYe;const oI=lr(XYe);var KYe=AG,ZYe=wf;function QYe(e,t){var n=-1,r=ZYe(e)?Array(e.length):[];return KYe(e,function(l,i,o){r[++n]=t(l,i,o)}),r}var JYe=QYe;function eXe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var tXe=eXe,iI=kf;function nXe(e,t){if(e!==t){var n=e!==void 0,r=e===null,l=e===e,i=iI(e),o=t!==void 0,a=t===null,s=t===t,u=iI(t);if(!a&&!u&&!i&&e>t||i&&o&&s&&!a&&!u||r&&o&&s||!n&&s||!l)return 1;if(!r&&!i&&!u&&e=a)return s;var u=n[r];return s*(u=="desc"?-1:1)}}return e.index-t.index}var iXe=oXe,OT=Zb,lXe=fg,sXe=k4,uXe=JYe,cXe=tXe,dXe=_f,fXe=iXe,pXe=yc,hXe=_o;function mXe(e,t,n){t.length?t=OT(t,function(i){return hXe(i)?function(o){return lXe(o,i.length===1?i[0]:i)}:i}):t=[pXe];var r=-1;t=OT(t,dXe(sXe));var l=uXe(e,function(i,o,a){var s=OT(t,function(u){return u(i)});return{criteria:s,index:++r,value:i}});return cXe(l,function(i,o){return fXe(i,o,n)})}var gXe=mXe,vXe=VP,yXe=gXe,bXe=Kb,lI=oP,xXe=bXe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&lI(e,t[0],t[1])?t=[]:n>2&&lI(t[0],t[1],t[2])&&(t=[t[0]]),yXe(e,vXe(t,1),[])}),wXe=xXe;const _Xe=lr(wXe);var TXe=fs,kXe=oi,SXe="[object Date]";function CXe(e){return kXe(e)&&TXe(e)==SXe}var MXe=CXe,PXe=MXe,OXe=_f,sI=Xb,uI=sI&&sI.isDate,AXe=uI?OXe(uI):PXe,DXe=AXe;const EXe=lr(DXe);var RXe=function(t,n,r,l){var i=t.axis,o=t.min,a=o===void 0?0:o,s=t.max,u=s===void 0?"auto":s,c=t.stacked,d=c===void 0?!1:c,f=t.reverse,p=f===void 0?!1:f,m=n[i],g=i==="x"?r:l,b=a;a==="auto"&&(b=d===!0?m.minStacked:m.min);var v=u;u==="auto"&&(v=d===!0?m.maxStacked:m.max);var h=Ju().rangeRound(i==="x"?[0,g]:[g,0]);return p===!0?h.domain([v,b]):h.domain([b,v]),h.type="linear",h.stacked=d,h},LXe={type:le.oneOf(["linear"]).isRequired,min:le.oneOfType([le.oneOf(["auto"]),le.number]),max:le.oneOfType([le.oneOf(["auto"]),le.number]),stacked:le.bool,reverse:le.bool},IXe=function(t,n,r,l){var i=t.axis,o=t.base,a=o===void 0?10:o,s=t.min,u=s===void 0?"auto":s,c=t.max,d=c===void 0?"auto":c,f=n[i],p=i==="x"?r:l,m=f.all.some(function(w){return w===0}),g,b=!1;if(f.all.forEach(function(w){b!==!0&&(g===void 0?g=Math.sign(w):Math.sign(w)!==g&&(b=!0))}),m||b)throw new Error(["a log scale domain must be strictly-positive or strictly-negative,","and must not include or cross zero."].join(` -`));var v=u;u==="auto"&&(v=f.min);var h=d;d==="auto"&&(h=f.max);var y=NU().domain([v,h]).rangeRound(i==="x"?[0,p]:[p,0]).base(a).nice();return y.type="log",y},$Xe={type:le.oneOf(["log"]).isRequired,base:le.number,min:le.oneOfType([le.oneOf(["auto"]),le.number]),max:le.oneOfType([le.oneOf(["auto"]),le.number])},NXe=function(t,n,r,l){var i=t.axis,o=n[i],a=i==="x"?r:l,s=HAe().range([0,a]).domain(o.all);return s.type="point",s},FXe={type:le.oneOf(["point"]).isRequired},El;function gu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E4="millisecond",YG="second",XG="minute",KG="hour",ZG="day",QG="month",JG="year",jXe=[E4,YG,XG,KG,ZG,QG,JG],Uc=[function(e){return e.setMilliseconds(0)},function(e){return e.setSeconds(0)},function(e){return e.setMinutes(0)},function(e){return e.setHours(0)},function(e){return e.setDate(1)},function(e){return e.setMonth(0)}],zXe=(El={},gu(El,E4,[]),gu(El,YG,Uc.slice(0,1)),gu(El,XG,Uc.slice(0,2)),gu(El,KG,Uc.slice(0,3)),gu(El,ZG,Uc.slice(0,4)),gu(El,QG,Uc.slice(0,5)),gu(El,JG,Uc.slice(0,6)),El),BXe=function(t){return function(n){return zXe[t].forEach(function(r){r(n)}),n}},eY=function(t){var n=t.format,r=n===void 0?"native":n,l=t.precision,i=l===void 0?"millisecond":l,o=t.useUTC,a=o===void 0?!0:o,s=BXe(i);if(r==="native")return function(c){return s(c)};var u=a?WH(r):BH(r);return function(c){return s(u(c))}},WXe=function(t,n,r,l){var i=t.axis,o=t.format,a=o===void 0?"native":o,s=t.precision,u=s===void 0?E4:s,c=t.min,d=c===void 0?"auto":c,f=t.max,p=f===void 0?"auto":f,m=t.useUTC,g=m===void 0?!0:m,b=n[i],v=i==="x"?r:l,h=eY({format:a,precision:u,useUTC:g}),y=d;d==="auto"?y=b.min:a!=="native"&&(y=h(d));var w=p;p==="auto"?w=b.max:a!=="native"&&(w=h(p));var _=g?e7e():JDe();return _.domain([y,w]).range([0,v]),_.type="time",_.useUTC=g,_},qXe={type:le.oneOf(["time"]).isRequired,format:le.string,precision:le.oneOf(jXe)};function Gy(e){return VXe(e)||HXe(e)||UXe()}function UXe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function HXe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function VXe(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t3&&arguments[3]!==void 0?arguments[3]:{},i=l.getValue,o=i===void 0?function(p){return p.data[n]}:i,a=l.setValue,s=a===void 0?function(p,m){p.data[n]=m}:a;if(r.type==="linear")t.forEach(function(p){p.data.forEach(function(m){s(m,o(m)===null?null:parseFloat(o(m)))})});else if(r.type==="time"&&r.format!=="native"){var u=eY(r);t.forEach(function(p){p.data.forEach(function(m){s(m,o(m)===null?null:u(o(m)))})})}var c=[];t.forEach(function(p){p.data.forEach(function(m){c.push(o(m))})});var d,f;return r.type==="linear"?(c=oI(c),c=_Xe(c,function(p){return p}),d=Math.min.apply(Math,Gy(c)),f=Math.max.apply(Math,Gy(c))):r.type==="time"?(c=Im(c,function(p){return p.getTime()}),c=c.slice(0).sort(function(p,m){return m-p}).reverse(),d=c[0],f=$n(c)):(c=oI(c),d=c[0],f=$n(c)),{all:c,min:d,max:f}},nY=function(t,n,r,l){var i=YXe(t),o=[];r[i].all.forEach(function(a){var s=EXe(a)?KXe:XXe,u=[];l.forEach(function(c){var d=c.data.find(function(g){return s(g.data[i],a)}),f=null,p=null;if(d!==void 0){if(f=d.data[t],f!==null){var m=$n(u);m===void 0?p=f:m!==null&&(p=m+f)}d.data["".concat(t,"Stacked")]=p}u.push(p),o.push(p)})}),o=o.filter(function(a){return a!==null}),r[t].minStacked=Math.min.apply(Math,Gy(o)),r[t].maxStacked=Math.max.apply(Math,Gy(o))},QXe=function(t,n,r){return nY("x",t,n,r)},JXe=function(t,n,r){return nY("y",t,n,r)},Yy=le.oneOfType([le.shape(LXe),le.shape(FXe),le.shape(qXe),le.shape($Xe)]);const fI=Math.pow(2,-52),P0=new Uint32Array(512);class Xy{static from(t,n=aKe,r=oKe){const l=t.length,i=new Float64Array(l*2);for(let o=0;o>1;if(n>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const r=Math.max(2*n-5,0);this._triangles=new Uint32Array(r*3),this._halfedges=new Int32Array(r*3),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:r,_hullTri:l,_hullHash:i}=this,o=t.length>>1;let a=1/0,s=1/0,u=-1/0,c=-1/0;for(let C=0;Cu&&(u=M),O>c&&(c=O),this._ids[C]=C}const d=(a+u)/2,f=(s+c)/2;let p=1/0,m,g,b;for(let C=0;C0&&(g=C,p=M)}let y=t[2*g],w=t[2*g+1],_=1/0;for(let C=0;CD&&(C[M++]=P,D=this._dists[P])}this.hull=C.subarray(0,M),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(O0(v,h,y,w,x,T)){const C=g,M=y,O=w;g=b,y=x,w=T,b=C,x=M,T=O}const k=rKe(v,h,y,w,x,T);this._cx=k.x,this._cy=k.y;for(let C=0;C0&&Math.abs(P-M)<=fI&&Math.abs(E-O)<=fI||(M=P,O=E,D===m||D===g||D===b))continue;let I=0;for(let B=0,N=this._hashKey(P,E);B0?3-n:1+n)/4}function AT(e,t,n,r){const l=e-n,i=t-r;return l*l+i*i}function DT(e,t,n,r,l,i){const o=(r-t)*(l-e),a=(n-e)*(i-t);return Math.abs(o-a)>=33306690738754716e-32*Math.abs(o+a)?o-a:0}function O0(e,t,n,r,l,i){return(DT(l,i,e,t,n,r)||DT(e,t,n,r,l,i)||DT(n,r,l,i,e,t))<0}function tKe(e,t,n,r,l,i,o,a){const s=e-o,u=t-a,c=n-o,d=r-a,f=l-o,p=i-a,m=s*s+u*u,g=c*c+d*d,b=f*f+p*p;return s*(d*b-g*p)-u*(c*b-g*f)+m*(c*p-d*f)<0}function nKe(e,t,n,r,l,i){const o=n-e,a=r-t,s=l-e,u=i-t,c=o*o+a*a,d=s*s+u*u,f=.5/(o*u-a*s),p=(u*c-a*d)*f,m=(o*d-s*c)*f;return p*p+m*m}function rKe(e,t,n,r,l,i){const o=n-e,a=r-t,s=l-e,u=i-t,c=o*o+a*a,d=s*s+u*u,f=.5/(o*u-a*s),p=e+(u*c-a*d)*f,m=t+(o*d-s*c)*f;return{x:p,y:m}}function dd(e,t,n,r){if(r-n<=20)for(let l=n+1;l<=r;l++){const i=e[l],o=t[i];let a=l-1;for(;a>=n&&t[e[a]]>o;)e[a+1]=e[a--];e[a+1]=i}else{const l=n+r>>1;let i=n+1,o=r;th(e,l,i),t[e[n]]>t[e[r]]&&th(e,n,r),t[e[i]]>t[e[r]]&&th(e,i,r),t[e[n]]>t[e[i]]&&th(e,n,i);const a=e[i],s=t[a];for(;;){do i++;while(t[e[i]]s);if(o=o-n?(dd(e,t,i,r),dd(e,t,n,o-1)):(dd(e,t,n,o-1),dd(e,t,i,r))}}function th(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function aKe(e){return e[0]}function oKe(e){return e[1]}const pI=1e-6;class Nu{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,r){t=+t,n=+n,r=+r;const l=t+r,i=n;if(r<0)throw new Error("negative radius");this._x1===null?this._+=`M${l},${i}`:(Math.abs(this._x1-l)>pI||Math.abs(this._y1-i)>pI)&&(this._+="L"+l+","+i),r&&(this._+=`A${r},${r},0,1,1,${t-r},${n}A${r},${r},0,1,1,${this._x1=l},${this._y1=i}`)}rect(t,n,r,l){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+r}v${+l}h${-r}Z`}value(){return this._||null}}class kS{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}let iKe=class{constructor(t,[n,r,l,i]=[0,0,960,500]){if(!((l=+l)>=(n=+n))||!((i=+i)>=(r=+r)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=l,this.xmin=n,this.ymax=i,this.ymin=r,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:r},vectors:l}=this,i=this.circumcenters=this._circumcenters.subarray(0,r.length/3*2);for(let p=0,m=0,g=r.length,b,v;p1;)i-=2;for(let o=2;o4)for(let o=0;o0){if(n>=this.ymax)return null;(o=(this.ymax-n)/l)0){if(t>=this.xmax)return null;(o=(this.xmax-t)/r)this.xmax?2:0)|(nthis.ymax?8:0)}};const lKe=2*Math.PI,Hc=Math.pow;function sKe(e){return e[0]}function uKe(e){return e[1]}function cKe(e){const{triangles:t,coords:n}=e;for(let r=0;r1e-10)return!1}return!0}function dKe(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class f2{static from(t,n=sKe,r=uKe,l){return new f2("length"in t?fKe(t,n,r,l):Float64Array.from(pKe(t,n,r,l)))}constructor(t){this._delaunator=new Xy(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&cKe(t)){this.collinear=Int32Array.from({length:n.length/2},(f,p)=>p).sort((f,p)=>n[2*f]-n[2*p]||n[2*f+1]-n[2*p+1]);const s=this.collinear[0],u=this.collinear[this.collinear.length-1],c=[n[2*s],n[2*s+1],n[2*u],n[2*u+1]],d=1e-8*Math.hypot(c[3]-c[1],c[2]-c[0]);for(let f=0,p=n.length/2;f0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=l[0],this.triangles[1]=l[1],this.triangles[2]=l[1],o[l[0]]=1,l.length===2&&(o[l[1]]=0))}voronoi(t){return new iKe(this,t)}*neighbors(t){const{inedges:n,hull:r,_hullIndex:l,halfedges:i,triangles:o,collinear:a}=this;if(a){const d=a.indexOf(t);d>0&&(yield a[d-1]),d=0&&i!==r&&i!==l;)r=i;return i}_step(t,n,r){const{inedges:l,hull:i,_hullIndex:o,halfedges:a,triangles:s,points:u}=this;if(l[t]===-1||!u.length)return(t+1)%(u.length>>1);let c=t,d=Hc(n-u[t*2],2)+Hc(r-u[t*2+1],2);const f=l[t];let p=f;do{let m=s[p];const g=Hc(n-u[m*2],2)+Hc(r-u[m*2+1],2);if(g0&&(de.lineWidth=U.grid.line.strokeWidth,de.strokeStyle=U.grid.line.stroke,T&&tf(de,{width:q,height:Y,scale:re,axis:"x",values:k}),S&&tf(de,{width:q,height:Y,scale:ae,axis:"y",values:C})),_e==="axes"&&a4(de,{xScale:re,yScale:ae,width:q,height:Y,top:M,right:O,bottom:D,left:P,theme:U}),_e==="areas"&&g===!0&&(de.save(),de.globalAlpha=v,X.context(de),Q.forEach(function(pe){de.fillStyle=pe.color,de.beginPath(),X(pe.data.map(function(xe){return xe.position})),de.fill()}),de.restore()),_e==="lines"&&(G.context(de),Q.forEach(function(pe){de.strokeStyle=pe.color,de.lineWidth=m,de.beginPath(),G(pe.data.map(function(xe){return xe.position})),de.stroke()})),_e==="points"&&h===!0&&y>0&&ie.forEach(function(pe){de.fillStyle=pe.color,de.beginPath(),de.arc(pe.x,pe.y,y/2,0,2*Math.PI),de.fill(),_>0&&(de.strokeStyle=pe.borderColor,de.lineWidth=_,de.stroke())}),_e==="mesh"&&A===!0&&(aY(de,Se),ee&&oY(de,Se,ee.index)),_e==="legends"){var ue=Q.map(function(pe){return{id:pe.id,label:pe.id,color:pe.color}}).reverse();E.forEach(function(pe){T4(de,ZKe({},pe,{data:pe.data||ue,containerWidth:q,containerHeight:Y,theme:U}))})}})},[B,L,W,f,U,G,Q,re,ae,T,k,S,C,M,O,D,P,E,ie,h,y,ee]);var Oe=ge.useCallback(function(de){var _e=Lm(B.current,de),ue=yI(_e,2),pe=ue[0],xe=ue[1];if(!QP(R.left,R.top,q,Y,pe,xe))return null;var ye=he.find(pe-R.left,xe-R.top);return ie[ye]},[B,R,q,Y,he]),Pe=mf(),Me=Pe.showTooltipFromEvent,ce=Pe.hideTooltip,we=ge.useCallback(function(de){var _e=Oe(de);H(_e),_e?Me(Je.createElement(z,{point:_e}),de):ce()},[Oe,H,Me,ce,z]),K=ge.useCallback(function(de){ce(),H(null),ee&&F&&F(ee,de)},[ce,H,F]),ne=ge.useCallback(function(de){if(j){var _e=Oe(de);_e&&j(_e,de)}},[Oe,j]);return Je.createElement("canvas",{ref:B,width:L*i,height:W*i,style:{width:L,height:W,cursor:I?"auto":"normal"},onMouseEnter:I?we:void 0,onMouseMove:I?we:void 0,onMouseLeave:I?K:void 0,onClick:I?ne:void 0})};$4.propTypes=CKe;$4.defaultProps=MKe;var nZe=Gx($4);function MS(){return MS=Object.assign||function(e){for(var t=1;tke.jsx(Ia,{sx:{maxWidth:200,height:50},children:ke.jsx(rZe,{data:[{id:"1",data:e.data[e.xField].map((t,n)=>({x:t,y:e.data[e.yField][n]}))}],margin:{top:0,right:0,bottom:0,left:0},xScale:{type:"linear",min:0,max:25},axisTop:null,colors:[e.color],axisRight:null,enableGridX:!1,enableGridY:!1})}),oZe=aZe;function iZe(e){for(var t=1;tke.jsx(Ia,{sx:{maxWidth:200,height:50},children:ke.jsx(AZe,{data:[{id:"1",data:e.data[e.xField].map((t,n)=>({x:t,y:e.data[e.yField][n]}))}],margin:{top:3,right:3,bottom:3,left:3},xScale:{type:"linear",min:0,max:1e3},nodeSize:4,colors:[e.color],useMesh:!1,axisTop:null,axisRight:null,enableGridX:!1,enableGridY:!1})}),$Ze=IZe,NZe=new Map([["line",(e,t)=>t[e.field]?ke.jsx(oZe,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):ke.jsx("div",{})],["scatter",(e,t)=>t[e.field]?ke.jsx($Ze,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):ke.jsx("div",{})],["histogram",(e,t)=>t[e.field]?ke.jsx(VYe,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):ke.jsx("div",{})]]),wI=e=>e.map(t=>({def:t,gen:NZe.get(t.type??"string")})).map(({def:t,gen:n})=>n?{...t,type:void 0,render:r=>n(t,r)}:{...t,sorting:!0,defaultSort:t.sort,type:"string"}),FZe=e=>{const[t,n]=ge.useState({open:!1,anchorEl:void 0});return ke.jsxs(Ia,{sx:{width:50},onClick:r=>n(l=>({open:!l.open,anchorEl:r.currentTarget})),children:[ke.jsx(Vq,{}),ke.jsx(kM,{open:t.open,anchorEl:t.anchorEl,anchorOrigin:{horizontal:"left",vertical:"bottom"},children:ke.jsx(dr,{p:1,children:e.longText})})]})},jZe=e=>{const{columns:t,data:n}=e,r={search:!0,showTitle:!1,pageSize:e.rowsPerPage??5,detailPanelColumnStyle:{minWidth:42},emptyRowsWhenPaging:!1};return ke.jsx(Je.Fragment,{children:ke.jsx(pSe,{columns:e.showInfoColumn??!1?[...wI(t),{title:"Info",render:l=>{var i,o,a;return ke.jsx(Je.Fragment,{children:(i=l.details)!=null&&i.insights?ke.jsx(FZe,{longText:`${(o=l.details)==null?void 0:o.insights[0].title}: ${(a=l.details)==null?void 0:a.insights[0].text}`}):ke.jsx("div",{})})},width:50}]:[...wI(t)],data:n,detailPanel:({rowData:l})=>l.graphId?ke.jsx(xSe,{graphId:l.graphId,widgetSize:e.widgetSize}):l.details?ke.jsx(j5,{details:l.details,widgetSize:e.widgetSize}):null,options:r})})},_I=e=>ke.jsxs("div",{children:[ke.jsx(dr,{align:"center",fontWeight:500,sx:{fontSize:36},children:e.value}),ke.jsx(dr,{align:"center",variant:"h5",fontWeight:500,children:e.label})]}),zZe=e=>ke.jsx(Je.Fragment,{children:e.counters.length===1?ke.jsx(_I,{...e.counters[0]}):ke.jsx(cr,{container:!0,spacing:1,direction:"row",alignItems:"center",children:e.counters.map(t=>ke.jsx(cr,{item:!0,xs:!0,component:Ia,height:"100%",children:ke.jsx(Ia,{children:ke.jsx(_I,{...t})})},t.label+t.value))})}),BZe=e=>ke.jsxs("div",{children:[ke.jsxs(Ia,{display:"flex",alignItems:"center",children:[ke.jsx(Ia,{width:"100%",mr:1,children:ke.jsx(fz,{variant:"determinate",value:e.value/e.maxValue*100})}),ke.jsx(Ia,{minWidth:35,children:ke.jsx(dr,{variant:"body2",color:"textSecondary",children:`${Math.round(e.value/e.maxValue*100)}%`})})]}),ke.jsx(Ia,{width:"100%",children:ke.jsx(dr,{variant:"body2",color:"textSecondary",children:e.details??""})})]});var j4={},WZe=Cn;Object.defineProperty(j4,"__esModule",{value:!0});var AY=j4.default=void 0,qZe=WZe(Ta()),UZe=ke,HZe=(0,qZe.default)((0,UZe.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14l-6-6z"}),"ExpandLessSharp");AY=j4.default=HZe;var z4={},VZe=Cn;Object.defineProperty(z4,"__esModule",{value:!0});var DY=z4.default=void 0,GZe=VZe(Ta()),YZe=ke,XZe=(0,GZe.default)((0,YZe.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"}),"ExpandMoreSharp");DY=z4.default=XZe;const KZe=e=>{var a,s;const[t,n]=ge.useState(!1),r=Wz(),l=(a=e.graph)==null?void 0:a.data.some(({type:u})=>u==="histogram"),o=(r==null?void 0:r.isXaxisAsCategorical)&&!l?{type:"category",categoryorder:"category ascending"}:{};return ke.jsx(Je.Fragment,{children:ke.jsxs(cr,{container:!0,spacing:2,justifyContent:"center",alignItems:"center",children:[ke.jsxs(cr,{item:!0,xs:2,children:[ke.jsx(dr,{variant:"h5",children:e.header}),ke.jsx(dr,{variant:"subtitle1",children:e.description})]}),ke.jsx(cr,{item:!0,xs:e.graph===void 0?10:5,children:ke.jsxs(PM,{children:[ke.jsx(AM,{children:ke.jsxs(pm,{children:[ke.jsx(gi,{}),e.metricsValuesHeaders.map(u=>ke.jsx(gi,{children:u}))]})}),ke.jsx(OM,{children:e.metrics.map(u=>ke.jsxs(pm,{children:[ke.jsx(gi,{children:u.label}),u.values.map(c=>ke.jsx(gi,{children:c}))]}))})]})}),e.graph===void 0?ke.jsx(ke.Fragment,{}):ke.jsx(cr,{item:!0,xs:5,children:ke.jsx(Bz,{data:e.graph.data,layout:{...e.graph.layout,title:void 0,xaxis:{...(s=e.graph.layout)==null?void 0:s.xaxis,...o}},config:{responsive:!0},style:{width:"100%",minHeight:150+100*(1+e.widgetSize/2),maxHeight:250}})}),e.details===void 0||e.details.parts.length===0?ke.jsx(ke.Fragment,{}):ke.jsxs(ke.Fragment,{children:[ke.jsx(cr,{item:!0,xs:12,children:ke.jsx(ji,{variant:"outlined",startIcon:t?ke.jsx(AY,{}):ke.jsx(DY,{}),onClick:()=>n(u=>!u),children:"Details"})}),ke.jsx(cr,{item:!0,xs:12,children:ke.jsx(Z1,{in:t,mountOnEnter:!0,unmountOnExit:!0,children:ke.jsx(j5,{details:e.details,widgetSize:e.widgetSize})})})]})]})})},ZZe=e=>ke.jsx(F5,{tabs:e.graphs.map(t=>({title:t.title,tab:ke.jsx(ub,{widgetSize:e.widgetSize,data:t.graph.data,layout:t.graph.layout})}))}),QZe=e=>ke.jsx(F5,{tabs:e.tabs.map(t=>({title:t.title,tab:_g(`${e.id}1`,t.widget)}))}),JZe=e=>ke.jsx(rfe,{children:ke.jsxs(PM,{sx:{minWidth:650},size:"small","aria-label":"a dense table",children:[ke.jsx(AM,{children:ke.jsxs(pm,{children:[ke.jsx(gi,{children:e.header[0]},-1),e.header.slice(1).map(t=>ke.jsx(gi,{align:"right",children:t},t))]})}),ke.jsx(OM,{children:e.data.map(t=>ke.jsxs(pm,{children:[ke.jsx(gi,{component:"th",scope:"row",children:t[0]},-1),t.slice(1).map(n=>ke.jsx(gi,{align:"right",children:n},n))]},t[0]))})]})});function eQe(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const tQe=/[ \t\n\f\r]/g;function nQe(e){return typeof e=="object"?e.type==="text"?TI(e.value):!1:TI(e)}function TI(e){return e.replace(tQe,"")===""}class xg{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}xg.prototype.property={};xg.prototype.normal={};xg.prototype.space=null;function EY(e,t){const n={},r={};let l=-1;for(;++l4&&n.slice(0,4)==="data"&&lQe.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(SI,dQe);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!SI.test(i)){let o=i.replace(sQe,cQe);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}l=B4}return new l(r,t)}function cQe(e){return"-"+e.toLowerCase()}function dQe(e){return e.charAt(1).toUpperCase()}const fQe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},pQe=EY([IY,LY,FY,jY,oQe],"html"),zY=EY([IY,LY,FY,jY,iQe],"svg");function hQe(e){return e.join(" ").trim()}var W4={exports:{}},CI=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,mQe=/\n/g,gQe=/^\s*/,vQe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,yQe=/^:\s*/,bQe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,xQe=/^[;\s]*/,wQe=/^\s+|\s+$/g,_Qe=` -`,MI="/",PI="*",Mu="",TQe="comment",kQe="declaration",SQe=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function l(m){var g=m.match(mQe);g&&(n+=g.length);var b=m.lastIndexOf(_Qe);r=~b?m.length-b:r+m.length}function i(){var m={line:n,column:r};return function(g){return g.position=new o(m),u(),g}}function o(m){this.start=m,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function a(m){var g=new Error(t.source+":"+n+":"+r+": "+m);if(g.reason=m,g.filename=t.source,g.line=n,g.column=r,g.source=e,!t.silent)throw g}function s(m){var g=m.exec(e);if(g){var b=g[0];return l(b),e=e.slice(b.length),g}}function u(){s(gQe)}function c(m){var g;for(m=m||[];g=d();)g!==!1&&m.push(g);return m}function d(){var m=i();if(!(MI!=e.charAt(0)||PI!=e.charAt(1))){for(var g=2;Mu!=e.charAt(g)&&(PI!=e.charAt(g)||MI!=e.charAt(g+1));)++g;if(g+=2,Mu===e.charAt(g-1))return a("End of comment missing");var b=e.slice(2,g-2);return r+=2,l(b),e=e.slice(g),r+=2,m({type:TQe,comment:b})}}function f(){var m=i(),g=s(vQe);if(g){if(d(),!s(yQe))return a("property missing ':'");var b=s(bQe),v=m({type:kQe,property:OI(g[0].replace(CI,Mu)),value:b?OI(b[0].replace(CI,Mu)):Mu});return s(xQe),v}}function p(){var m=[];c(m);for(var g;g=f();)g!==!1&&(m.push(g),c(m));return m}return u(),p()};function OI(e){return e?e.replace(wQe,Mu):Mu}var CQe=SQe;function BY(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,l=CQe(e),i=typeof t=="function",o,a,s=0,u=l.length;s0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function OQe(e){const t=q4(e),n=WY(e);if(t&&n)return{start:t,end:n}}function Fh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?AI(e.position):"start"in e||"end"in e?AI(e):"line"in e||"column"in e?LS(e):""}function LS(e){return DI(e&&e.line)+":"+DI(e&&e.column)}function AI(e){return LS(e&&e.start)+"-"+LS(e&&e.end)}function DI(e){return e&&typeof e=="number"?e:1}class To extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let l="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?l=t:!i.cause&&t&&(o=!0,l=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?i.ruleId=r:(i.source=r.slice(0,s),i.ruleId=r.slice(s+1))}if(!i.place&&i.ancestors&&i.ancestors){const s=i.ancestors[i.ancestors.length-1];s&&(i.place=s.position)}const a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=l,this.line=a?a.line:void 0,this.name=Fh(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}To.prototype.file="";To.prototype.name="";To.prototype.reason="";To.prototype.message="";To.prototype.stack="";To.prototype.column=void 0;To.prototype.line=void 0;To.prototype.ancestors=void 0;To.prototype.cause=void 0;To.prototype.fatal=void 0;To.prototype.place=void 0;To.prototype.ruleId=void 0;To.prototype.source=void 0;const U4={}.hasOwnProperty,AQe=new Map,DQe=/[A-Z]/g,EQe=/-([a-z])/g,RQe=new Set(["table","tbody","thead","tfoot","tr"]),LQe=new Set(["td","th"]);function IQe(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=NQe(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=$Qe(n,t.jsx,t.jsxs)}const l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?zY:pQe,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=UY(l,e,void 0);return i&&typeof i!="string"?i:l.create(e,l.Fragment,{children:i||void 0},void 0)}function UY(e,t,n){if(t.type==="element"||t.type==="root"){const r=e.schema;let l=r;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(l=zY,e.schema=l),e.ancestors.push(t);let i=FQe(e,t);const o=jQe(e,e.ancestors);let a=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(i&&RQe.has(t.tagName)&&(i=i.filter(function(s){return typeof s=="string"?!nQe(s):!0})),U4.call(e.components,t.tagName)){const s=t.tagName;a=e.components[s],typeof a!="string"&&a!==e.Fragment&&e.passNode&&(o.node=t)}else a=t.tagName;if(i.length>0){const s=i.length>1?i:i[0];s&&(o.children=s)}return e.schema=r,e.create(t,a,o,n)}if(t.type==="text")return t.value}function $Qe(e,t,n){return r;function r(l,i,o,a){const u=Array.isArray(o.children)?n:t;return a?u(i,o,a):u(i,o)}}function NQe(e,t){return n;function n(r,l,i,o){const a=Array.isArray(i.children),s=q4(r);return t(l,i,o,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function FQe(e,t){const n=[];let r=-1;const l=e.passKeys?new Map:AQe;for(;++r-1&&e.test(String.fromCharCode(n))}}const ZQe={'"':"quot","&":"amp","<":"lt",">":"gt"};function QQe(e){return e.replace(/["&<>]/g,t);function t(n){return"&"+ZQe[n]+";"}}function JQe(e,t){const n=QQe(Mc(e||""));if(!t)return n;const r=n.indexOf(":"),l=n.indexOf("?"),i=n.indexOf("#"),o=n.indexOf("/");return r<0||o>-1&&r>o||l>-1&&r>l||i>-1&&r>i||t.test(n.slice(0,r))?n:""}function Mc(e){const t=[];let n=-1,r=0,l=0;for(;++n55295&&i<57344){const a=e.charCodeAt(n+1);i<56320&&a>56319&&a<57344?(o=String.fromCharCode(i,a),l=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+l+1,o=""),l&&(n+=l,l=0)}return t.join("")+e.slice(r)}const eJe={};function tJe(e,t){const n=eJe,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,l=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return VY(e,r,l)}function VY(e,t,n){if(nJe(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return EI(e.children,t,n)}return Array.isArray(e)?EI(e,t,n):""}function EI(e,t,n){const r=[];let l=-1;for(;++ll?0:l+t:t=t>l?l:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i0?(Sl(e,e.length,0,t),e):t}const LI={}.hasOwnProperty;function rJe(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCharCode(n)}function Cd(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function zr(e,t,n,r){const l=r?r-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(s){return wr(s)?(e.enter(n),a(s)):t(s)}function a(s){return wr(s)&&i++o))return;const T=t.events.length;let k=T,S,C;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){if(S){C=t.events[k][1].end;break}S=!0}for(v(r),x=T;xy;){const _=n[w];t.containerState=_[1],_[0].exit.call(t,e)}n.length=y}function h(){l.write([null]),i=void 0,l=void 0,t.containerState._closeFlow=void 0}}function cJe(e,t,n){return zr(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function $I(e){if(e===null||$o(e)||KQe(e))return 1;if(XQe(e))return 2}function V4(e,t,n){const r=[];let l=-1;for(;++l1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),f=Object.assign({},e[n][1].start);NI(d,-s),NI(f,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:f},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},l={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},a.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=pi(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=pi(u,[["enter",l,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=pi(u,V4(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=pi(u,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",l,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=pi(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Sl(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n0&&wr(x)?zr(e,h,"linePrefix",i+1)(x):h(x)}function h(x){return x===null||Vn(x)?e.check(FI,g,w)(x):(e.enter("codeFlowValue"),y(x))}function y(x){return x===null||Vn(x)?(e.exit("codeFlowValue"),h(x)):(e.consume(x),y)}function w(x){return e.exit("codeFenced"),t(x)}function _(x,T,k){let S=0;return C;function C(E){return x.enter("lineEnding"),x.consume(E),x.exit("lineEnding"),M}function M(E){return x.enter("codeFencedFence"),wr(E)?zr(x,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):O(E)}function O(E){return E===a?(x.enter("codeFencedFenceSequence"),D(E)):k(E)}function D(E){return E===a?(S++,x.consume(E),D):S>=o?(x.exit("codeFencedFenceSequence"),wr(E)?zr(x,P,"whitespace")(E):P(E)):k(E)}function P(E){return E===null||Vn(E)?(x.exit("codeFencedFence"),T(E)):k(E)}}}function _Je(e,t,n){const r=this;return l;function l(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const LT={name:"codeIndented",tokenize:kJe},TJe={tokenize:SJe,partial:!0};function kJe(e,t,n){const r=this;return l;function l(u){return e.enter("codeIndented"),zr(e,i,"linePrefix",5)(u)}function i(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?s(u):Vn(u)?e.attempt(TJe,o,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||Vn(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),t(u)}}function SJe(e,t,n){const r=this;return l;function l(o){return r.parser.lazy[r.now().line]?n(o):Vn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):zr(e,i,"linePrefix",5)(o)}function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):Vn(o)?l(o):n(o)}}const CJe={name:"codeText",tokenize:OJe,resolve:MJe,previous:PJe};function MJe(e){let t=e.length-4,n=3,r,l;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function QY(e,t,n,r,l,i,o,a,s){const u=s||Number.POSITIVE_INFINITY;let c=0;return d;function d(v){return v===60?(e.enter(r),e.enter(l),e.enter(i),e.consume(v),e.exit(i),f):v===null||v===32||v===41||IS(v)?n(v):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),g(v))}function f(v){return v===62?(e.enter(i),e.consume(v),e.exit(i),e.exit(l),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(v))}function p(v){return v===62?(e.exit("chunkString"),e.exit(a),f(v)):v===null||v===60||Vn(v)?n(v):(e.consume(v),v===92?m:p)}function m(v){return v===60||v===62||v===92?(e.consume(v),p):p(v)}function g(v){return!c&&(v===null||v===41||$o(v))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(v)):c999||p===null||p===91||p===93&&!s||p===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?n(p):p===93?(e.exit(i),e.enter(l),e.consume(p),e.exit(l),e.exit(r),t):Vn(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||Vn(p)||a++>999?(e.exit("chunkString"),c(p)):(e.consume(p),s||(s=!wr(p)),p===92?f:d)}function f(p){return p===91||p===92||p===93?(e.consume(p),a++,d):d(p)}}function eX(e,t,n,r,l,i){let o;return a;function a(f){return f===34||f===39||f===40?(e.enter(r),e.enter(l),e.consume(f),e.exit(l),o=f===40?41:f,s):n(f)}function s(f){return f===o?(e.enter(l),e.consume(f),e.exit(l),e.exit(r),t):(e.enter(i),u(f))}function u(f){return f===o?(e.exit(i),s(o)):f===null?n(f):Vn(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),zr(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===o||f===null||Vn(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?d:c)}function d(f){return f===o||f===92?(e.consume(f),c):c(f)}}function jh(e,t){let n;return r;function r(l){return Vn(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n=!0,r):wr(l)?zr(e,r,n?"linePrefix":"lineSuffix")(l):t(l)}}const $Je={name:"definition",tokenize:FJe},NJe={tokenize:jJe,partial:!0};function FJe(e,t,n){const r=this;let l;return i;function i(p){return e.enter("definition"),o(p)}function o(p){return JY.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return l=Cd(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),s):n(p)}function s(p){return $o(p)?jh(e,u)(p):u(p)}function u(p){return QY(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(NJe,d,d)(p)}function d(p){return wr(p)?zr(e,f,"whitespace")(p):f(p)}function f(p){return p===null||Vn(p)?(e.exit("definition"),r.parser.defined.push(l),t(p)):n(p)}}function jJe(e,t,n){return r;function r(a){return $o(a)?jh(e,l)(a):n(a)}function l(a){return eX(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return wr(a)?zr(e,o,"whitespace")(a):o(a)}function o(a){return a===null||Vn(a)?t(a):n(a)}}const zJe={name:"hardBreakEscape",tokenize:BJe};function BJe(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),l}function l(i){return Vn(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const WJe={name:"headingAtx",tokenize:UJe,resolve:qJe};function qJe(e,t){let n=e.length-2,r=3,l,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(l={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Sl(e,r,n-r+1,[["enter",l,t],["enter",i,t],["exit",i,t],["exit",l,t]])),e}function UJe(e,t,n){let r=0;return l;function l(c){return e.enter("atxHeading"),i(c)}function i(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||$o(c)?(e.exit("atxHeadingSequence"),a(c)):n(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||Vn(c)?(e.exit("atxHeading"),t(c)):wr(c)?zr(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function s(c){return c===35?(e.consume(c),s):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||$o(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}const HJe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],zI=["pre","script","style","textarea"],VJe={name:"htmlFlow",tokenize:KJe,resolveTo:XJe,concrete:!0},GJe={tokenize:QJe,partial:!0},YJe={tokenize:ZJe,partial:!0};function XJe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function KJe(e,t,n){const r=this;let l,i,o,a,s;return u;function u(R){return c(R)}function c(R){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(R),d}function d(R){return R===33?(e.consume(R),f):R===47?(e.consume(R),i=!0,g):R===63?(e.consume(R),l=3,r.interrupt?t:z):pl(R)?(e.consume(R),o=String.fromCharCode(R),b):n(R)}function f(R){return R===45?(e.consume(R),l=2,p):R===91?(e.consume(R),l=5,a=0,m):pl(R)?(e.consume(R),l=4,r.interrupt?t:z):n(R)}function p(R){return R===45?(e.consume(R),r.interrupt?t:z):n(R)}function m(R){const q="CDATA[";return R===q.charCodeAt(a++)?(e.consume(R),a===q.length?r.interrupt?t:O:m):n(R)}function g(R){return pl(R)?(e.consume(R),o=String.fromCharCode(R),b):n(R)}function b(R){if(R===null||R===47||R===62||$o(R)){const q=R===47,Y=o.toLowerCase();return!q&&!i&&zI.includes(Y)?(l=1,r.interrupt?t(R):O(R)):HJe.includes(o.toLowerCase())?(l=6,q?(e.consume(R),v):r.interrupt?t(R):O(R)):(l=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(R):i?h(R):y(R))}return R===45||Xo(R)?(e.consume(R),o+=String.fromCharCode(R),b):n(R)}function v(R){return R===62?(e.consume(R),r.interrupt?t:O):n(R)}function h(R){return wr(R)?(e.consume(R),h):C(R)}function y(R){return R===47?(e.consume(R),C):R===58||R===95||pl(R)?(e.consume(R),w):wr(R)?(e.consume(R),y):C(R)}function w(R){return R===45||R===46||R===58||R===95||Xo(R)?(e.consume(R),w):_(R)}function _(R){return R===61?(e.consume(R),x):wr(R)?(e.consume(R),_):y(R)}function x(R){return R===null||R===60||R===61||R===62||R===96?n(R):R===34||R===39?(e.consume(R),s=R,T):wr(R)?(e.consume(R),x):k(R)}function T(R){return R===s?(e.consume(R),s=null,S):R===null||Vn(R)?n(R):(e.consume(R),T)}function k(R){return R===null||R===34||R===39||R===47||R===60||R===61||R===62||R===96||$o(R)?_(R):(e.consume(R),k)}function S(R){return R===47||R===62||wr(R)?y(R):n(R)}function C(R){return R===62?(e.consume(R),M):n(R)}function M(R){return R===null||Vn(R)?O(R):wr(R)?(e.consume(R),M):n(R)}function O(R){return R===45&&l===2?(e.consume(R),I):R===60&&l===1?(e.consume(R),A):R===62&&l===4?(e.consume(R),B):R===63&&l===3?(e.consume(R),z):R===93&&l===5?(e.consume(R),j):Vn(R)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(GJe,N,D)(R)):R===null||Vn(R)?(e.exit("htmlFlowData"),D(R)):(e.consume(R),O)}function D(R){return e.check(YJe,P,N)(R)}function P(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),E}function E(R){return R===null||Vn(R)?D(R):(e.enter("htmlFlowData"),O(R))}function I(R){return R===45?(e.consume(R),z):O(R)}function A(R){return R===47?(e.consume(R),o="",F):O(R)}function F(R){if(R===62){const q=o.toLowerCase();return zI.includes(q)?(e.consume(R),B):O(R)}return pl(R)&&o.length<8?(e.consume(R),o+=String.fromCharCode(R),F):O(R)}function j(R){return R===93?(e.consume(R),z):O(R)}function z(R){return R===62?(e.consume(R),B):R===45&&l===2?(e.consume(R),z):O(R)}function B(R){return R===null||Vn(R)?(e.exit("htmlFlowData"),N(R)):(e.consume(R),B)}function N(R){return e.exit("htmlFlow"),t(R)}}function ZJe(e,t,n){const r=this;return l;function l(o){return Vn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function QJe(e,t,n){return r;function r(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(v2,t,n)}}const JJe={name:"htmlText",tokenize:eet};function eet(e,t,n){const r=this;let l,i,o;return a;function a(z){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(z),s}function s(z){return z===33?(e.consume(z),u):z===47?(e.consume(z),_):z===63?(e.consume(z),y):pl(z)?(e.consume(z),k):n(z)}function u(z){return z===45?(e.consume(z),c):z===91?(e.consume(z),i=0,m):pl(z)?(e.consume(z),h):n(z)}function c(z){return z===45?(e.consume(z),p):n(z)}function d(z){return z===null?n(z):z===45?(e.consume(z),f):Vn(z)?(o=d,A(z)):(e.consume(z),d)}function f(z){return z===45?(e.consume(z),p):d(z)}function p(z){return z===62?I(z):z===45?f(z):d(z)}function m(z){const B="CDATA[";return z===B.charCodeAt(i++)?(e.consume(z),i===B.length?g:m):n(z)}function g(z){return z===null?n(z):z===93?(e.consume(z),b):Vn(z)?(o=g,A(z)):(e.consume(z),g)}function b(z){return z===93?(e.consume(z),v):g(z)}function v(z){return z===62?I(z):z===93?(e.consume(z),v):g(z)}function h(z){return z===null||z===62?I(z):Vn(z)?(o=h,A(z)):(e.consume(z),h)}function y(z){return z===null?n(z):z===63?(e.consume(z),w):Vn(z)?(o=y,A(z)):(e.consume(z),y)}function w(z){return z===62?I(z):y(z)}function _(z){return pl(z)?(e.consume(z),x):n(z)}function x(z){return z===45||Xo(z)?(e.consume(z),x):T(z)}function T(z){return Vn(z)?(o=T,A(z)):wr(z)?(e.consume(z),T):I(z)}function k(z){return z===45||Xo(z)?(e.consume(z),k):z===47||z===62||$o(z)?S(z):n(z)}function S(z){return z===47?(e.consume(z),I):z===58||z===95||pl(z)?(e.consume(z),C):Vn(z)?(o=S,A(z)):wr(z)?(e.consume(z),S):I(z)}function C(z){return z===45||z===46||z===58||z===95||Xo(z)?(e.consume(z),C):M(z)}function M(z){return z===61?(e.consume(z),O):Vn(z)?(o=M,A(z)):wr(z)?(e.consume(z),M):S(z)}function O(z){return z===null||z===60||z===61||z===62||z===96?n(z):z===34||z===39?(e.consume(z),l=z,D):Vn(z)?(o=O,A(z)):wr(z)?(e.consume(z),O):(e.consume(z),P)}function D(z){return z===l?(e.consume(z),l=void 0,E):z===null?n(z):Vn(z)?(o=D,A(z)):(e.consume(z),D)}function P(z){return z===null||z===34||z===39||z===60||z===61||z===96?n(z):z===47||z===62||$o(z)?S(z):(e.consume(z),P)}function E(z){return z===47||z===62||$o(z)?S(z):n(z)}function I(z){return z===62?(e.consume(z),e.exit("htmlTextData"),e.exit("htmlText"),t):n(z)}function A(z){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),F}function F(z){return wr(z)?zr(e,j,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):j(z)}function j(z){return e.enter("htmlTextData"),o(z)}}const G4={name:"labelEnd",tokenize:iet,resolveTo:oet,resolveAll:aet},tet={tokenize:set},net={tokenize:uet},ret={tokenize:cet};function aet(e){let t=-1;for(;++t=3&&(u===null||Vn(u))?(e.exit("thematicBreak"),t(u)):n(u)}function s(u){return u===l?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),wr(u)?zr(e,a,"whitespace")(u):a(u))}}const Co={name:"list",tokenize:bet,continuation:{tokenize:xet},exit:_et},vet={tokenize:Tet,partial:!0},yet={tokenize:wet,partial:!0};function bet(e,t,n){const r=this,l=r.events[r.events.length-1];let i=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,o=0;return a;function a(p){const m=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:$S(p)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(xv,n,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(p)}return n(p)}function s(p){return $S(p)&&++o<10?(e.consume(p),s):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(v2,r.interrupt?n:c,e.attempt(vet,f,d))}function c(p){return r.containerState.initialBlankLine=!0,i++,f(p)}function d(p){return wr(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function xet(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(v2,l,i);function l(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,zr(e,t,"listItemIndent",r.containerState.size+1)(a)}function i(a){return r.containerState.furtherBlankLines||!wr(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(yet,t,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,zr(e,e.attempt(Co,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function wet(e,t,n){const r=this;return zr(e,l,"listItemIndent",r.containerState.size+1);function l(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)}}function _et(e){e.exit(this.containerState.type)}function Tet(e,t,n){const r=this;return zr(e,l,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(i){const o=r.events[r.events.length-1];return!wr(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const BI={name:"setextUnderline",tokenize:Cet,resolveTo:ket};function ket(e,t){let n=e.length,r,l,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(l=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const o={type:"setextHeading",start:Object.assign({},e[l][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[l][1].type="setextHeadingText",i?(e.splice(l,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function Cet(e,t,n){const r=this;let l;return i;function i(u){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),l=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===l?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),wr(u)?zr(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||Vn(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const Met={tokenize:Pet};function Pet(e){const t=this,n=e.attempt(v2,r,e.attempt(this.parser.constructs.flowInitial,l,zr(e,e.attempt(this.parser.constructs.flow,l,e.attempt(DJe,l)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function l(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Oet={resolveAll:nX()},Aet=tX("string"),Det=tX("text");function tX(e){return{tokenize:t,resolveAll:nX(e==="text"?Eet:void 0)};function t(n){const r=this,l=this.parser.constructs[e],i=n.attempt(l,o,a);return o;function o(c){return u(c)?i(c):a(c)}function a(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),s}function s(c){return u(c)?(n.exit("data"),i(c)):(n.consume(c),s)}function u(c){if(c===null)return!0;const d=l[c];let f=-1;if(d)for(;++f-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}i>0&&o.push(e[l].slice(0,i))}return o}function Iet(e,t){let n=-1;const r=[];let l;for(;++n0){var R=x.filter(function(Y){var L=Y.on;return L==="hover"}),q=R.reduce(function(Y,L){return Av({},Y,L.style)},{});k(q)}m!==void 0&&m(o,N)},[m,o,x]),O=ge.useCallback(function(){if(x.length>0){var N=x.filter(function(q){var Y=q.on;return Y!=="hover"}),R=N.reduce(function(q,Y){return Av({},q,Y.style)},{});k(R)}y!==void 0&&y(o,event)},[y,o,x]),D=qG({direction:a,justify:s,symbolSize:S.symbolSize||p,symbolSpacing:h,width:l,height:i}),P=D.symbolX,E=D.symbolY,I=D.labelX,A=D.labelY,F=D.labelAnchor,j=D.labelAlignment,B=[v,m,y].some(function(N){return N!==void 0}),z;return jm(f)?z=f:z=Wze[f],Ke.createElement("g",{transform:"translate(".concat(n,",").concat(r,")"),style:{opacity:S.itemOpacity!==void 0?S.itemOpacity:d}},Ke.createElement("rect",{width:l,height:i,fill:S.itemBackground||c,style:{cursor:B?"pointer":"auto"},onClick:T,onMouseEnter:M,onMouseLeave:O}),Ke.createElement(z,{id:o.id,x:P,y:E,size:S.symbolSize||p,fill:o.fill||o.color,borderWidth:S.symbolBorderWidth!==void 0?S.symbolBorderWidth:g,borderColor:S.symbolBorderColor||b}),Ke.createElement("text",{textAnchor:F,style:Av({},C.legends.text,{fill:S.itemTextColor||u,dominantBaseline:j,pointerEvents:"none",userSelect:"none"}),x:I,y:A},o.label))};Bs.displayName="LegendSvgItem";Bs.propTypes=Av({data:I2.isRequired,x:le.number.isRequired,y:le.number.isRequired,width:le.number.isRequired,height:le.number.isRequired,textColor:le.string,background:le.string,opacity:le.number,direction:le.oneOf(["left-to-right","right-to-left","top-to-bottom","bottom-to-top"]).isRequired,justify:le.bool.isRequired},R2,L2);Bs.defaultProps={direction:"left-to-right",justify:!1,textColor:"black",background:"transparent",opacity:1,symbolShape:"square",symbolSize:16,symbolSpacing:8,symbolBorderWidth:0,symbolBorderColor:"transparent",effects:[]};function qze(e){for(var t=1;tt}var rBe=nBe,aBe=YG,oBe=rBe,iBe=Dc;function lBe(e){return e&&e.length?aBe(e,iBe,oBe):void 0}var sBe=lBe;const KG=dr(sBe);var uBe=Math.ceil,cBe=Math.max;function dBe(e,t,n,r){for(var l=-1,i=cBe(uBe((t-e)/(n||1)),0),o=Array(i);i--;)o[r?i:++l]=e,e+=n;return o}var fBe=dBe,pBe=fBe,hBe=X4,aT=iG;function mBe(e){return function(t,n,r){return r&&typeof r!="number"&&hBe(t,n,r)&&(n=r=void 0),t=aT(t),n===void 0?(n=t,t=0):n=aT(n),r=r===void 0?t=PWe){var u=t?null:CWe(e);if(u)return MWe(u);o=!1,l=kWe,s=new _We}else s=t?[]:a;e:for(;++r-1}function hqe(e,t){var n=this.__data__,r=z2(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Yf.prototype.clear=cqe;Yf.prototype.delete=dqe;Yf.prototype.get=fqe;Yf.prototype.has=pqe;Yf.prototype.set=hqe;function Fc(e){var t=-1,n=e?e.length:0;for(this.clear();++t11))throw new Error("Invalid size '".concat(t.size,"' for diverging color scheme '").concat(t.scheme,"', must be between 3~11"));var s=Gu(Dv[t.scheme][t.size||11]),u=function(p){return s(r(p))};return u.scale=s,u}if(eUe(t.scheme)){if(t.size!==void 0&&(t.size<3||t.size>9))throw new Error("Invalid size '".concat(t.size,"' for sequential color scheme '").concat(t.scheme,"', must be between 3~9"));var c=Gu(Dv[t.scheme][t.size||9]),d=function(p){return c(r(p))};return d.scale=c,d}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return t}},gY=function(t,n){return ge.useMemo(function(){return mY(t,n)},[t,n])};function nUe(e,t){return oUe(e)||aUe(e,t)||rUe()}function rUe(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function aUe(e,t){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]"){var n=[],r=!0,l=!1,i=void 0;try{for(var o=e[Symbol.iterator](),a;!(r=(a=o.next()).done)&&(n.push(a.value),!(t&&n.length===t));r=!0);}catch(s){l=!0,i=s}finally{try{!r&&o.return!=null&&o.return()}finally{if(l)throw i}}return n}}function oUe(e){if(Array.isArray(e))return e}var Ev=function(t,n){if(typeof t=="function")return function(f){return t(f)};if(dY(t)){if(t.theme!==void 0){if(n===void 0)throw new Error("Unable to use color from theme as no theme was provided");var r=f1(n,t.theme);if(r===void 0)throw new Error("Color from theme is undefined at path: '".concat(t.theme,"'"));return function(){return r}}if(t.from!==void 0){var l=function(p){return f1(p,t.from)};if(Array.isArray(t.modifiers)){var i=[],o=!0,a=!1,s=void 0;try{for(var u=function(){var p=d.value,h=nUe(p,2),g=h[0],b=h[1];if(g==="brighter")i.push(function(v){return v.brighter(b)});else if(g==="darker")i.push(function(v){return v.darker(b)});else if(g==="opacity")i.push(function(v){return v.opacity=b,v});else throw new Error("Invalid color modifier: '".concat(g,"', must be one of: 'brighter', 'darker', 'opacity'"))},c=t.modifiers[Symbol.iterator](),d;!(o=(d=c.next()).done);o=!0)u()}catch(f){a=!0,s=f}finally{try{!o&&c.return!=null&&c.return()}finally{if(a)throw s}}return i.length===0?l:function(f){return i.reduce(function(p,h){return h(p)},dc(l(f))).toString()}}return l}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return t}},p1=function(t,n){return ge.useMemo(function(){return Ev(t,n)},[t,n])},bP=le.oneOfType([le.func,le.arrayOf(le.string),le.shape({scheme:le.oneOf(tUe).isRequired,size:le.number}),le.shape({datum:le.string.isRequired}),le.string]),iUe=le.oneOfType([le.func,le.string]),lT=le.oneOfType([le.string,le.func,le.shape({theme:le.string.isRequired}),le.shape({from:le.string.isRequired,modifiers:le.arrayOf(le.array)})]),lUe=YU,sUe=Dg;function uUe(e,t){return e&&lUe(e,t,sUe)}var cUe=uUe,dUe=Nf;function fUe(e,t){return function(n,r){if(n==null)return n;if(!dUe(n))return e(n,r);for(var l=n.length,i=t?l:-1,o=Object(n);(t?i--:++il?0:l+t),n=n>l?l:n,n<0&&(n+=l),l=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(l);++r1),i}),mGe(e,yGe(e),n),r&&(n=fGe(n,bGe|xGe|wGe,gGe));for(var l=t.length;l--;)pGe(n,t[l]);return n}),TGe=_Ge;const TY=dr(TGe);var SGe=le.shape({match:le.oneOfType([le.func,le.object]).isRequired,type:le.oneOf(["circle","rect","dot"]).isRequired,noteX:le.oneOfType([le.number,le.shape({abs:le.number.isRequired})]).isRequired,noteY:le.oneOfType([le.number,le.shape({abs:le.number.isRequired})]).isRequired,noteWidth:le.number,noteTextOffset:le.number,note:le.oneOfType([le.node,le.func]).isRequired,offset:le.number}),h1={noteWidth:120,noteTextOffset:8,animate:!0,motionStiffness:90,motionDamping:13};function kGe(e){for(var t=1;t180?(_-=d,S-=d):S+=d,{points:[[b,v],[h,g],[S,k]],text:[_,w],angle:m+90}},SY=function(t){var n=t.items,r=t.annotations,l=t.getPosition,i=t.getDimensions;return ge.useMemo(function(){return PGe({items:n,annotations:r,getPosition:l,getDimensions:i})},[n,r,l,i])},DGe=function(t){var n=t.type,r=t.containerWidth,l=t.containerHeight,i=t.x,o=t.y,a=t.size,s=t.width,u=t.height,c=t.noteX,d=t.noteY,f=t.noteWidth,p=t.noteTextOffset;return ge.useMemo(function(){return AGe({type:n,containerWidth:r,containerHeight:l,x:i,y:o,size:a,width:s,height:u,noteX:c,noteY:d,noteWidth:f,noteTextOffset:p})},[n,r,l,i,o,a,s,u,c,d,f,p])};function EGe(e){for(var t=1;t0&&Ke.createElement("text",{x:n,y:r,style:EGe({},i.annotations.text,{strokeLinejoin:"round",strokeWidth:i.annotations.text.outlineWidth*2,stroke:i.annotations.text.outlineColor})},l),Ke.createElement("text",{x:n,y:r,style:TY(i.annotations.text,["outlineWidth","outlineColor"])},l))});Km.displayName="AnnotationNote";Km.propTypes={datum:le.object.isRequired,x:le.number.isRequired,y:le.number.isRequired,note:le.oneOfType([le.node,le.func]).isRequired};Km.defaultProps={};function LGe(e){for(var t=1;t0&&Ke.createElement("circle",{cx:s.x,cy:s.y,r:s.size/2,style:TI({},l.annotations.outline,{fill:"none",strokeWidth:l.annotations.outline.strokeWidth+l.annotations.outline.outlineWidth*2,stroke:l.annotations.outline.outlineColor})}),Ke.createElement("circle",{cx:s.x,cy:s.y,r:s.size/2,style:l.annotations.outline}))}):Ke.createElement(Ke.Fragment,null,l.annotations.outline.outlineWidth>0&&Ke.createElement("circle",{cx:t,cy:n,r:r/2,style:TI({},l.annotations.outline,{fill:"none",strokeWidth:l.annotations.outline.strokeWidth+l.annotations.outline.outlineWidth*2,stroke:l.annotations.outline.outlineColor})}),Ke.createElement("circle",{cx:t,cy:n,r:r/2,style:l.annotations.outline}))});xP.displayName="CircleAnnotationOutline";xP.propTypes={x:le.number.isRequired,y:le.number.isRequired,size:le.number.isRequired};function SI(e){for(var t=1;t0&&Ke.createElement("circle",{cx:s.x,cy:s.y,r:s.size/2,style:SI({},l.annotations.outline,{fill:"none",strokeWidth:l.annotations.outline.outlineWidth*2,stroke:l.annotations.outline.outlineColor})}),Ke.createElement("circle",{cx:s.x,cy:s.y,r:s.size/2,style:l.annotations.symbol}))}):Ke.createElement(Ke.Fragment,null,l.annotations.outline.outlineWidth>0&&Ke.createElement("circle",{cx:t,cy:n,r:r/2,style:SI({},l.annotations.outline,{fill:"none",strokeWidth:l.annotations.outline.outlineWidth*2,stroke:l.annotations.outline.outlineColor})}),Ke.createElement("circle",{cx:t,cy:n,r:r/2,style:l.annotations.symbol}))});W2.displayName="DotAnnotationOutline";W2.propTypes={x:le.number.isRequired,y:le.number.isRequired,size:le.number.isRequired};W2.defaultProps={size:4};function kI(e){for(var t=1;t0&&Ke.createElement("rect",{x:u.x,y:u.y,width:u.width,height:u.height,style:kI({},i.annotations.outline,{fill:"none",strokeWidth:i.annotations.outline.strokeWidth+i.annotations.outline.outlineWidth*2,stroke:i.annotations.outline.outlineColor})}),Ke.createElement("rect",{x:u.x,y:u.y,width:u.width,height:u.height,style:i.annotations.outline}))}):Ke.createElement(Ke.Fragment,null,i.annotations.outline.outlineWidth>0&&Ke.createElement("rect",{x:t-r/2,y:n-l/2,width:r,height:l,style:kI({},i.annotations.outline,{fill:"none",strokeWidth:i.annotations.outline.strokeWidth+i.annotations.outline.outlineWidth*2,stroke:i.annotations.outline.outlineColor})}),Ke.createElement("rect",{x:t-r/2,y:n-l/2,width:r,height:l,style:i.annotations.outline}))});wP.displayName="RectAnnotationOutline";wP.propTypes={x:le.number.isRequired,y:le.number.isRequired,width:le.number.isRequired,height:le.number.isRequired};var Lg=ge.memo(function(e){var t=e.datum,n=e.type,r=e.containerWidth,l=e.containerHeight,i=e.x,o=e.y,a=e.size,s=e.width,u=e.height,c=e.noteX,d=e.noteY,f=e.noteWidth,p=e.noteTextOffset,h=e.note,g=Xo(),b=g.animate,v=g.springConfig,m=DGe({type:n,containerWidth:r,containerHeight:l,x:i,y:o,size:a,width:s,height:u,noteX:c,noteY:d,noteWidth:f,noteTextOffset:p});return Ke.createElement(Ke.Fragment,null,Ke.createElement(Zm,{points:m.points,isOutline:!0}),n==="circle"&&Ke.createElement(xP,{x:i,y:o,size:a}),n==="dot"&&Ke.createElement(W2,{x:i,y:o,size:a}),n==="rect"&&Ke.createElement(wP,{x:i,y:o,width:s,height:u}),Ke.createElement(Zm,{points:m.points}),!b&&Ke.createElement(Km,{x:m.text[0],y:m.text[1],note:h}),b&&Ke.createElement(cs,{style:{x:Bn(m.text[0],v),y:Bn(m.text[1],v)}},function(y){return Ke.createElement(Km,{datum:t,x:y.x,y:y.y,note:h})}))});Lg.displayName="Annotation";Lg.propTypes={datum:le.object.isRequired,type:le.oneOf(["circle","rect","dot"]).isRequired,containerWidth:le.number.isRequired,containerHeight:le.number.isRequired,x:le.number.isRequired,y:le.number.isRequired,size:le.number,width:le.number,height:le.number,noteX:le.oneOfType([le.number,le.shape({abs:le.number.isRequired})]).isRequired,noteY:le.oneOfType([le.number,le.shape({abs:le.number.isRequired})]).isRequired,noteWidth:le.number.isRequired,noteTextOffset:le.number.isRequired,note:le.oneOfType([le.node,le.func]).isRequired};Lg.defaultProps={noteWidth:h1.noteWidth,noteTextOffset:h1.noteTextOffset};var q2=function(t,n,r,l){return J4().rangeRound(r).domain(t.map(n)).padding(l)};function CI(e){return BGe(e)||zGe(e)||jGe()}function jGe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function zGe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function BGe(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&(s=0)),fc().rangeRound(i).domain([s,a])},WGe=function(t){var n=t.data,r=t.getIndex,l=t.keys,i=t.minValue,o=t.maxValue,a=t.reverse,s=t.width,u=t.height,c=t.getColor,d=t.padding,f=d===void 0?0:d,p=t.innerPadding,h=p===void 0?0:p,g=q2(n,r,[0,s],f),b=a?[0,u]:[u,0],v=kY(n,l,i,o,b),m=(g.bandwidth()-h*(l.length-1))/l.length,y=v(0),x=function(k){return k>0?v(k):y},_=function(k,C){return k>0?y-C:v(k)-y};a&&(x=function(k){return k<0?v(k):y},_=function(k,C){return k<0?y-C:v(k)-y});var w=[];return m>0&&l.forEach(function(S,k){ZG(g.domain().length).forEach(function(C){var T=g(r(n[C]))+m*k+h*k,M=x(n[C][S]),O=_(n[C][S],M);if(m>0&&O>0){var D={id:S,value:n[C][S],index:C,indexValue:r(n[C]),data:n[C]};w.push({key:"".concat(S,".").concat(D.indexValue),data:D,x:T,y:M,width:m,height:O,color:c(D)})}})}),{xScale:g,yScale:v,bars:w}},qGe=function(t){var n=t.data,r=t.getIndex,l=t.keys,i=t.minValue,o=t.maxValue,a=t.reverse,s=t.width,u=t.height,c=t.getColor,d=t.padding,f=d===void 0?0:d,p=t.innerPadding,h=p===void 0?0:p,g=a?[s,0]:[0,s],b=kY(n,l,i,o,g),v=q2(n,r,[u,0],f),m=(v.bandwidth()-h*(l.length-1))/l.length,y=b(0),x=function(k){return k>0?y:b(k)},_=function(k,C){return k>0?b(k)-y:y-C};a&&(x=function(k){return k<0?y:b(k)},_=function(k,C){return k<0?b(k)-y:y-C});var w=[];return m>0&&l.forEach(function(S,k){ZG(v.domain().length).forEach(function(C){var T=x(n[C][S]),M=v(r(n[C]))+m*k+h*k,O=_(n[C][S],T);if(O>0){var D={id:S,value:n[C][S],index:C,indexValue:r(n[C]),data:n[C]};w.push({key:"".concat(S,".").concat(D.indexValue),data:D,x:T,y:M,width:O,height:m,color:c(D)})}})}),{xScale:b,yScale:v,bars:w}},CY=function(t){return t.layout==="vertical"?WGe(t):qGe(t)},MY=function(t,n,r,l){var i=SBe(t,2),o=n;o==="auto"&&(o=XG(i));var a=r;return a==="auto"&&(a=KG(i)),fc().rangeRound(l).domain([o,a])},UGe=function(t){var n=t.data,r=t.getIndex,l=t.keys,i=t.minValue,o=t.maxValue,a=t.reverse,s=t.width,u=t.height,c=t.getColor,d=t.padding,f=d===void 0?0:d,p=t.innerPadding,h=p===void 0?0:p,g=rV().keys(l).offset(k6)(n),b=q2(n,r,[0,s],f),v=a?[0,u]:[u,0],m=MY(g,i,o,v),y=[],x=b.bandwidth(),_=function(k){return m(k[1])},w=function(k,C){return m(k[0])-C};return a&&(_=function(k){return m(k[0])},w=function(k,C){return m(k[1])-C}),x>0&&g.forEach(function(S){b.domain().forEach(function(k,C){var T=S[C],M=b(r(T.data)),O=_(T),D=w(T,O);if(h>0&&(O+=h*.5,D-=h),D>0){var P={id:S.key,value:T.data[S.key],index:C,indexValue:k,data:T.data};y.push({key:"".concat(S.key,".").concat(k),data:P,x:M,y:O,width:x,height:D,color:c(P)})}})}),{xScale:b,yScale:m,bars:y}},HGe=function(t){var n=t.data,r=t.getIndex,l=t.keys,i=t.minValue,o=t.maxValue,a=t.reverse,s=t.width,u=t.height,c=t.getColor,d=t.padding,f=d===void 0?0:d,p=t.innerPadding,h=p===void 0?0:p,g=rV().keys(l).offset(k6)(n),b=a?[s,0]:[0,s],v=MY(g,i,o,b),m=q2(n,r,[u,0],f),y=[],x=m.bandwidth(),_=function(k){return v(k[0])},w=function(k,C){return v(k[1])-C};return a&&(_=function(k){return v(k[1])},w=function(k,C){return v(k[0])-C}),x>0&&g.forEach(function(S){m.domain().forEach(function(k,C){var T=S[C],M=m(r(T.data)),O={id:S.key,value:T.data[S.key],index:C,indexValue:k,data:T.data},D=_(T),P=w(T,D);h>0&&(D+=h*.5,P-=h),P>0&&y.push({key:"".concat(S.key,".").concat(k),data:O,x:D,y:M,width:P,height:x,color:c(O)})})}),{xScale:v,yScale:m,bars:y}},PY=function(t){return t.layout==="vertical"?UGe(t):HGe(t)},VGe=function(t,n,r,l,i){var o=Ym(t.map(function(a){return{id:a.data.id,label:a.data.id,color:a.color,fill:a.data.fill}}),function(a){var s=a.id;return s});return(n==="vertical"&&l==="stacked"&&r==="column"&&i!==!0||n==="horizontal"&&l==="stacked"&&i===!0)&&o.reverse(),o},GGe=function(t){return Ym(t.map(function(n){return{id:n.data.indexValue,label:n.data.indexValue,color:n.color,fill:n.data.fill}}),function(n){var r=n.id;return r})},YGe=function(t){var n=t.from,r=t.bars,l=t.layout,i=t.direction,o=t.groupMode,a=t.reverse;return n==="indexes"?GGe(r):VGe(r,l,i,o,a)};function rC(e){for(var t=1;t0&&ce0&&we0&&(this.ctx.lineWidth=C.grid.line.strokeWidth,this.ctx.strokeStyle=C.grid.line.stroke,P&&mf(this.ctx,{width:c,height:d,scale:j.xScale,axis:"x",values:E}),I&&mf(this.ctx,{width:c,height:d,scale:j.yScale,axis:"y",values:A})),this.ctx.strokeStyle="#dddddd";var B=Ym(j.bars.map(function(N){return{id:N.data.id,label:N.data.id,color:N.color,fill:N.data.fill}}).reverse(),function(N){var R=N.id;return R}),z=Ym(j.bars.map(function(N){return{id:N.data.indexValue,label:N.data.indexValue,color:N.color,fill:N.data.fill}}),function(N){var R=N.id;return R});D.forEach(function(N){var R;if(N.dataFrom==="keys"?R=B:N.dataFrom==="indexes"&&(R=z),R===void 0)return null;pP(l.ctx,PI({},N,{data:R,containerWidth:c,containerHeight:d,itemTextColor:"#999",symbolSize:16,theme:C}))}),Y6(this.ctx,{xScale:j.xScale,yScale:j.yScale,width:c,height:d,top:_,right:w,bottom:S,left:k,theme:C}),j.bars.forEach(function(N){var R=N.x,q=N.y,Y=N.color,L=N.width,W=N.height;l.ctx.fillStyle=Y,M>0&&(l.ctx.strokeStyle=O(N),l.ctx.lineWidth=M),l.ctx.beginPath(),l.ctx.rect(R,q,L,W),l.ctx.fill(),M>0&&l.ctx.stroke()})}},{key:"render",value:function(){var r=this,l=this.props,i=l.outerWidth,o=l.outerHeight,a=l.pixelRatio,s=l.isInteractive,u=l.theme;return Ke.createElement(x2,{isInteractive:s,theme:u,animate:!1},function(c){var d=c.showTooltip,f=c.hideTooltip;return Ke.createElement("canvas",{ref:function(h){r.surface=h},width:i*a,height:o*a,style:{width:i,height:o},onMouseEnter:r.handleMouseHover(d,f),onMouseMove:r.handleMouseHover(d,f),onMouseLeave:r.handleMouseLeave(f),onClick:r.handleClick})})}}]),t}(ge.Component);LY.propTypes=AY;var pYe=M6("BarCanvas")(DY(LY));function lC(){return lC=Object.assign||function(e){for(var t=1;t{const t=v5();return Se.jsx(Ia,{sx:{maxWidth:200,height:50},children:Se.jsx(hYe,{data:e.data[e.xField].map((n,r)=>({id:n,x:e.data[e.yField][r]})),theme:t,margin:{top:3,right:3,bottom:3,left:3},indexBy:"id",keys:["x"],colors:[e.color],axisTop:null,axisRight:null,enableGridX:!1,enableGridY:!1})})},gYe=mYe;var vYe=eY;function yYe(e){return e&&e.length?vYe(e):[]}var bYe=yYe;const DI=dr(bYe);var xYe=vY,wYe=Nf;function _Ye(e,t){var n=-1,r=wYe(e)?Array(e.length):[];return xYe(e,function(l,i,o){r[++n]=t(l,i,o)}),r}var TYe=_Ye;function SYe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var kYe=SYe,EI=zf;function CYe(e,t){if(e!==t){var n=e!==void 0,r=e===null,l=e===e,i=EI(e),o=t!==void 0,a=t===null,s=t===t,u=EI(t);if(!a&&!u&&!i&&e>t||i&&o&&s&&!a&&!u||r&&o&&s||!n&&s||!l)return 1;if(!r&&!i&&!u&&e=a)return s;var u=n[r];return s*(u=="desc"?-1:1)}}return e.index-t.index}var AYe=OYe,sT=Ox,DYe=Mg,EYe=hP,RYe=TYe,LYe=kYe,IYe=Ff,$Ye=AYe,NYe=Dc,FYe=Po;function jYe(e,t,n){t.length?t=sT(t,function(i){return FYe(i)?function(o){return DYe(o,i.length===1?i[0]:i)}:i}):t=[NYe];var r=-1;t=sT(t,IYe(EYe));var l=RYe(e,function(i,o,a){var s=sT(t,function(u){return u(i)});return{criteria:s,index:++r,value:i}});return LYe(l,function(i,o){return $Ye(i,o,n)})}var zYe=jYe,BYe=$6,WYe=zYe,qYe=Px,RI=X4,UYe=qYe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&RI(e,t[0],t[1])?t=[]:n>2&&RI(t[0],t[1],t[2])&&(t=[t[0]]),WYe(e,BYe(t,1),[])}),HYe=UYe;const VYe=dr(HYe);var GYe=xs,YYe=hi,XYe="[object Date]";function KYe(e){return YYe(e)&&GYe(e)==XYe}var ZYe=KYe,QYe=ZYe,JYe=Ff,LI=Mx,II=LI&&LI.isDate,eXe=II?JYe(II):QYe,tXe=eXe;const nXe=dr(tXe);var rXe=function(t,n,r,l){var i=t.axis,o=t.min,a=o===void 0?0:o,s=t.max,u=s===void 0?"auto":s,c=t.stacked,d=c===void 0?!1:c,f=t.reverse,p=f===void 0?!1:f,h=n[i],g=i==="x"?r:l,b=a;a==="auto"&&(b=d===!0?h.minStacked:h.min);var v=u;u==="auto"&&(v=d===!0?h.maxStacked:h.max);var m=fc().rangeRound(i==="x"?[0,g]:[g,0]);return p===!0?m.domain([v,b]):m.domain([b,v]),m.type="linear",m.stacked=d,m},aXe={type:le.oneOf(["linear"]).isRequired,min:le.oneOfType([le.oneOf(["auto"]),le.number]),max:le.oneOfType([le.oneOf(["auto"]),le.number]),stacked:le.bool,reverse:le.bool},oXe=function(t,n,r,l){var i=t.axis,o=t.base,a=o===void 0?10:o,s=t.min,u=s===void 0?"auto":s,c=t.max,d=c===void 0?"auto":c,f=n[i],p=i==="x"?r:l,h=f.all.some(function(x){return x===0}),g,b=!1;if(f.all.forEach(function(x){b!==!0&&(g===void 0?g=Math.sign(x):Math.sign(x)!==g&&(b=!0))}),h||b)throw new Error(["a log scale domain must be strictly-positive or strictly-negative,","and must not include or cross zero."].join(` +`));var v=u;u==="auto"&&(v=f.min);var m=d;d==="auto"&&(m=f.max);var y=SH().domain([v,m]).rangeRound(i==="x"?[0,p]:[p,0]).base(a).nice();return y.type="log",y},iXe={type:le.oneOf(["log"]).isRequired,base:le.number,min:le.oneOfType([le.oneOf(["auto"]),le.number]),max:le.oneOfType([le.oneOf(["auto"]),le.number])},lXe=function(t,n,r,l){var i=t.axis,o=n[i],a=i==="x"?r:l,s=m8e().range([0,a]).domain(o.all);return s.type="point",s},sXe={type:le.oneOf(["point"]).isRequired},Vl;function Cu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _P="millisecond",IY="second",$Y="minute",NY="hour",FY="day",jY="month",zY="year",uXe=[_P,IY,$Y,NY,FY,jY,zY],nd=[function(e){return e.setMilliseconds(0)},function(e){return e.setSeconds(0)},function(e){return e.setMinutes(0)},function(e){return e.setHours(0)},function(e){return e.setDate(1)},function(e){return e.setMonth(0)}],cXe=(Vl={},Cu(Vl,_P,[]),Cu(Vl,IY,nd.slice(0,1)),Cu(Vl,$Y,nd.slice(0,2)),Cu(Vl,NY,nd.slice(0,3)),Cu(Vl,FY,nd.slice(0,4)),Cu(Vl,jY,nd.slice(0,5)),Cu(Vl,zY,nd.slice(0,6)),Vl),dXe=function(t){return function(n){return cXe[t].forEach(function(r){r(n)}),n}},BY=function(t){var n=t.format,r=n===void 0?"native":n,l=t.precision,i=l===void 0?"millisecond":l,o=t.useUTC,a=o===void 0?!0:o,s=dXe(i);if(r==="native")return function(c){return s(c)};var u=a?OV(r):PV(r);return function(c){return s(u(c))}},fXe=function(t,n,r,l){var i=t.axis,o=t.format,a=o===void 0?"native":o,s=t.precision,u=s===void 0?_P:s,c=t.min,d=c===void 0?"auto":c,f=t.max,p=f===void 0?"auto":f,h=t.useUTC,g=h===void 0?!0:h,b=n[i],v=i==="x"?r:l,m=BY({format:a,precision:u,useUTC:g}),y=d;d==="auto"?y=b.min:a!=="native"&&(y=m(d));var x=p;p==="auto"?x=b.max:a!=="native"&&(x=m(p));var _=g?S7e():T7e();return _.domain([y,x]).range([0,v]),_.type="time",_.useUTC=g,_},pXe={type:le.oneOf(["time"]).isRequired,format:le.string,precision:le.oneOf(uXe)};function g1(e){return gXe(e)||mXe(e)||hXe()}function hXe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function mXe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function gXe(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t3&&arguments[3]!==void 0?arguments[3]:{},i=l.getValue,o=i===void 0?function(p){return p.data[n]}:i,a=l.setValue,s=a===void 0?function(p,h){p.data[n]=h}:a;if(r.type==="linear")t.forEach(function(p){p.data.forEach(function(h){s(h,o(h)===null?null:parseFloat(o(h)))})});else if(r.type==="time"&&r.format!=="native"){var u=BY(r);t.forEach(function(p){p.data.forEach(function(h){s(h,o(h)===null?null:u(o(h)))})})}var c=[];t.forEach(function(p){p.data.forEach(function(h){c.push(o(h))})});var d,f;return r.type==="linear"?(c=DI(c),c=VYe(c,function(p){return p}),d=Math.min.apply(Math,g1(c)),f=Math.max.apply(Math,g1(c))):r.type==="time"?(c=Ym(c,function(p){return p.getTime()}),c=c.slice(0).sort(function(p,h){return h-p}).reverse(),d=c[0],f=In(c)):(c=DI(c),d=c[0],f=In(c)),{all:c,min:d,max:f}},qY=function(t,n,r,l){var i=yXe(t),o=[];r[i].all.forEach(function(a){var s=nXe(a)?xXe:bXe,u=[];l.forEach(function(c){var d=c.data.find(function(g){return s(g.data[i],a)}),f=null,p=null;if(d!==void 0){if(f=d.data[t],f!==null){var h=In(u);h===void 0?p=f:h!==null&&(p=h+f)}d.data["".concat(t,"Stacked")]=p}u.push(p),o.push(p)})}),o=o.filter(function(a){return a!==null}),r[t].minStacked=Math.min.apply(Math,g1(o)),r[t].maxStacked=Math.max.apply(Math,g1(o))},_Xe=function(t,n,r){return qY("x",t,n,r)},TXe=function(t,n,r){return qY("y",t,n,r)},v1=le.oneOfType([le.shape(aXe),le.shape(sXe),le.shape(pXe),le.shape(iXe)]);const FI=Math.pow(2,-52),H0=new Uint32Array(512);class y1{static from(t,n=PXe,r=OXe){const l=t.length,i=new Float64Array(l*2);for(let o=0;o>1;if(n>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const r=Math.max(2*n-5,0);this._triangles=new Uint32Array(r*3),this._halfedges=new Int32Array(r*3),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:r,_hullTri:l,_hullHash:i}=this,o=t.length>>1;let a=1/0,s=1/0,u=-1/0,c=-1/0;for(let T=0;Tu&&(u=M),O>c&&(c=O),this._ids[T]=T}const d=(a+u)/2,f=(s+c)/2;let p=1/0,h,g,b;for(let T=0;T0&&(g=T,p=M)}let y=t[2*g],x=t[2*g+1],_=1/0;for(let T=0;TD&&(T[M++]=P,D=this._dists[P])}this.hull=T.subarray(0,M),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(V0(v,m,y,x,w,S)){const T=g,M=y,O=x;g=b,y=w,x=S,b=T,w=M,S=O}const k=MXe(v,m,y,x,w,S);this._cx=k.x,this._cy=k.y;for(let T=0;T0&&Math.abs(P-M)<=FI&&Math.abs(E-O)<=FI||(M=P,O=E,D===h||D===g||D===b))continue;let I=0;for(let z=0,N=this._hashKey(P,E);z0?3-n:1+n)/4}function uT(e,t,n,r){const l=e-n,i=t-r;return l*l+i*i}function cT(e,t,n,r,l,i){const o=(r-t)*(l-e),a=(n-e)*(i-t);return Math.abs(o-a)>=33306690738754716e-32*Math.abs(o+a)?o-a:0}function V0(e,t,n,r,l,i){return(cT(l,i,e,t,n,r)||cT(e,t,n,r,l,i)||cT(n,r,l,i,e,t))<0}function kXe(e,t,n,r,l,i,o,a){const s=e-o,u=t-a,c=n-o,d=r-a,f=l-o,p=i-a,h=s*s+u*u,g=c*c+d*d,b=f*f+p*p;return s*(d*b-g*p)-u*(c*b-g*f)+h*(c*p-d*f)<0}function CXe(e,t,n,r,l,i){const o=n-e,a=r-t,s=l-e,u=i-t,c=o*o+a*a,d=s*s+u*u,f=.5/(o*u-a*s),p=(u*c-a*d)*f,h=(o*d-s*c)*f;return p*p+h*h}function MXe(e,t,n,r,l,i){const o=n-e,a=r-t,s=l-e,u=i-t,c=o*o+a*a,d=s*s+u*u,f=.5/(o*u-a*s),p=e+(u*c-a*d)*f,h=t+(o*d-s*c)*f;return{x:p,y:h}}function Sd(e,t,n,r){if(r-n<=20)for(let l=n+1;l<=r;l++){const i=e[l],o=t[i];let a=l-1;for(;a>=n&&t[e[a]]>o;)e[a+1]=e[a--];e[a+1]=i}else{const l=n+r>>1;let i=n+1,o=r;vh(e,l,i),t[e[n]]>t[e[r]]&&vh(e,n,r),t[e[i]]>t[e[r]]&&vh(e,i,r),t[e[n]]>t[e[i]]&&vh(e,n,i);const a=e[i],s=t[a];for(;;){do i++;while(t[e[i]]s);if(o=o-n?(Sd(e,t,i,r),Sd(e,t,n,o-1)):(Sd(e,t,n,o-1),Sd(e,t,i,r))}}function vh(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function PXe(e){return e[0]}function OXe(e){return e[1]}const jI=1e-6;class Ku{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,r){t=+t,n=+n,r=+r;const l=t+r,i=n;if(r<0)throw new Error("negative radius");this._x1===null?this._+=`M${l},${i}`:(Math.abs(this._x1-l)>jI||Math.abs(this._y1-i)>jI)&&(this._+="L"+l+","+i),r&&(this._+=`A${r},${r},0,1,1,${t-r},${n}A${r},${r},0,1,1,${this._x1=l},${this._y1=i}`)}rect(t,n,r,l){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+r}v${+l}h${-r}Z`}value(){return this._||null}}class sC{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}let AXe=class{constructor(t,[n,r,l,i]=[0,0,960,500]){if(!((l=+l)>=(n=+n))||!((i=+i)>=(r=+r)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=l,this.xmin=n,this.ymax=i,this.ymin=r,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:r},vectors:l}=this,i=this.circumcenters=this._circumcenters.subarray(0,r.length/3*2);for(let p=0,h=0,g=r.length,b,v;p1;)i-=2;for(let o=2;o4)for(let o=0;o0){if(n>=this.ymax)return null;(o=(this.ymax-n)/l)0){if(t>=this.xmax)return null;(o=(this.xmax-t)/r)this.xmax?2:0)|(nthis.ymax?8:0)}};const DXe=2*Math.PI,rd=Math.pow;function EXe(e){return e[0]}function RXe(e){return e[1]}function LXe(e){const{triangles:t,coords:n}=e;for(let r=0;r1e-10)return!1}return!0}function IXe(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class U2{static from(t,n=EXe,r=RXe,l){return new U2("length"in t?$Xe(t,n,r,l):Float64Array.from(NXe(t,n,r,l)))}constructor(t){this._delaunator=new y1(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&LXe(t)){this.collinear=Int32Array.from({length:n.length/2},(f,p)=>p).sort((f,p)=>n[2*f]-n[2*p]||n[2*f+1]-n[2*p+1]);const s=this.collinear[0],u=this.collinear[this.collinear.length-1],c=[n[2*s],n[2*s+1],n[2*u],n[2*u+1]],d=1e-8*Math.hypot(c[3]-c[1],c[2]-c[0]);for(let f=0,p=n.length/2;f0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=l[0],this.triangles[1]=l[1],this.triangles[2]=l[1],o[l[0]]=1,l.length===2&&(o[l[1]]=0))}voronoi(t){return new AXe(this,t)}*neighbors(t){const{inedges:n,hull:r,_hullIndex:l,halfedges:i,triangles:o,collinear:a}=this;if(a){const d=a.indexOf(t);d>0&&(yield a[d-1]),d=0&&i!==r&&i!==l;)r=i;return i}_step(t,n,r){const{inedges:l,hull:i,_hullIndex:o,halfedges:a,triangles:s,points:u}=this;if(l[t]===-1||!u.length)return(t+1)%(u.length>>1);let c=t,d=rd(n-u[t*2],2)+rd(r-u[t*2+1],2);const f=l[t];let p=f;do{let h=s[p];const g=rd(n-u[h*2],2)+rd(r-u[h*2+1],2);if(g0&&(de.lineWidth=H.grid.line.strokeWidth,de.strokeStyle=H.grid.line.stroke,S&&mf(de,{width:q,height:Y,scale:ne,axis:"x",values:k}),C&&mf(de,{width:q,height:Y,scale:ae,axis:"y",values:T})),_e==="axes"&&Y6(de,{xScale:ne,yScale:ae,width:q,height:Y,top:M,right:O,bottom:D,left:P,theme:H}),_e==="areas"&&g===!0&&(de.save(),de.globalAlpha=v,X.context(de),K.forEach(function(me){de.fillStyle=me.color,de.beginPath(),X(me.data.map(function(xe){return xe.position})),de.fill()}),de.restore()),_e==="lines"&&(V.context(de),K.forEach(function(me){de.strokeStyle=me.color,de.lineWidth=h,de.beginPath(),V(me.data.map(function(xe){return xe.position})),de.stroke()})),_e==="points"&&m===!0&&y>0&&ie.forEach(function(me){de.fillStyle=me.color,de.beginPath(),de.arc(me.x,me.y,y/2,0,2*Math.PI),de.fill(),_>0&&(de.strokeStyle=me.borderColor,de.lineWidth=_,de.stroke())}),_e==="mesh"&&A===!0&&(HY(de,ke),ee&&VY(de,ke,ee.index)),_e==="legends"){var ue=K.map(function(me){return{id:me.id,label:me.id,color:me.color}}).reverse();E.forEach(function(me){pP(de,wKe({},me,{data:me.data||ue,containerWidth:q,containerHeight:Y,theme:H}))})}})},[z,L,W,f,H,V,K,ne,ae,S,k,C,T,M,O,D,P,E,ie,m,y,ee]);var Ce=ge.useCallback(function(de){var _e=Gm(z.current,de),ue=UI(_e,2),me=ue[0],xe=ue[1];if(!W6(R.left,R.top,q,Y,me,xe))return null;var ye=pe.find(me-R.left,xe-R.top);return ie[ye]},[z,R,q,Y,pe]),Oe=Df(),Pe=Oe.showTooltipFromEvent,ce=Oe.hideTooltip,we=ge.useCallback(function(de){var _e=Ce(de);U(_e),_e?Pe(Ke.createElement(B,{point:_e}),de):ce()},[Ce,U,Pe,ce,B]),Z=ge.useCallback(function(de){ce(),U(null),ee&&F&&F(ee,de)},[ce,U,F]),re=ge.useCallback(function(de){if(j){var _e=Ce(de);_e&&j(_e,de)}},[Ce,j]);return Ke.createElement("canvas",{ref:z,width:L*i,height:W*i,style:{width:L,height:W,cursor:I?"auto":"normal"},onMouseEnter:I?we:void 0,onMouseMove:I?we:void 0,onMouseLeave:I?Z:void 0,onClick:I?re:void 0})};CP.propTypes=KXe;CP.defaultProps=ZXe;var CKe=k2(CP);function dC(){return dC=Object.assign||function(e){for(var t=1;t{const t=v5();return Se.jsx(Ia,{sx:{maxWidth:200,height:50},children:Se.jsx(MKe,{data:[{id:"1",data:e.data[e.xField].map((n,r)=>({x:n,y:e.data[e.yField][r]}))}],theme:t,margin:{top:0,right:0,bottom:0,left:0},xScale:{type:"linear",min:0,max:25},axisTop:null,colors:[e.color],axisRight:null,enableGridX:!1,enableGridY:!1})})},OKe=PKe;function AKe(e){for(var t=1;t{const t=v5();return Se.jsx(Ia,{sx:{maxWidth:200,height:50},children:Se.jsx(eZe,{data:[{id:"1",data:e.data[e.xField].map((n,r)=>({x:n,y:e.data[e.yField][r]}))}],theme:t,margin:{top:3,right:3,bottom:3,left:3},xScale:{type:"linear",min:0,max:1e3},nodeSize:4,colors:[e.color],useMesh:!1,axisTop:null,axisRight:null,enableGridX:!1,enableGridY:!1})})},iZe=oZe,lZe=new Map([["line",(e,t)=>t[e.field]?Se.jsx(OKe,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):Se.jsx("div",{})],["scatter",(e,t)=>t[e.field]?Se.jsx(iZe,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):Se.jsx("div",{})],["histogram",(e,t)=>t[e.field]?Se.jsx(gYe,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):Se.jsx("div",{})]]),GI=e=>e.map(t=>({def:t,gen:lZe.get(t.type??"string")})).map(({def:t,gen:n})=>n?{...t,type:void 0,render:r=>n(t,r)}:{...t,sorting:!0,defaultSort:t.sort,type:"string"}),sZe=e=>{const[t,n]=ge.useState({open:!1,anchorEl:void 0});return Se.jsxs(Ia,{sx:{width:50},onClick:r=>n(l=>({open:!l.open,anchorEl:r.currentTarget})),children:[Se.jsx(BSe,{}),Se.jsx(Ab,{open:t.open,anchorEl:t.anchorEl,anchorOrigin:{horizontal:"left",vertical:"bottom"},children:Se.jsx(mr,{p:1,children:e.longText})})]})},uZe=e=>{const{columns:t,data:n}=e,r={search:!0,showTitle:!1,pageSize:e.rowsPerPage??5,detailPanelColumnStyle:{minWidth:42},emptyRowsWhenPaging:!1};return Se.jsx(Ke.Fragment,{children:Se.jsx(zSe,{columns:e.showInfoColumn??!1?[...GI(t),{title:"Info",render:l=>{var i,o,a;return Se.jsx(Ke.Fragment,{children:(i=l.details)!=null&&i.insights?Se.jsx(sZe,{longText:`${(o=l.details)==null?void 0:o.insights[0].title}: ${(a=l.details)==null?void 0:a.insights[0].text}`}):Se.jsx("div",{})})},width:50}]:[...GI(t)],data:n,detailPanel:({rowData:l})=>l.graphId?Se.jsx(USe,{graphId:l.graphId,widgetSize:e.widgetSize}):l.details?Se.jsx(O4,{details:l.details,widgetSize:e.widgetSize}):null,options:r})})},YI=e=>Se.jsxs("div",{children:[Se.jsx(mr,{align:"center",fontWeight:500,sx:{fontSize:36},children:e.value}),Se.jsx(mr,{align:"center",variant:"h5",fontWeight:500,children:e.label})]}),cZe=e=>Se.jsx(Ke.Fragment,{children:e.counters.length===1?Se.jsx(YI,{...e.counters[0]}):Se.jsx(hr,{container:!0,spacing:1,direction:"row",alignItems:"center",children:e.counters.map(t=>Se.jsx(hr,{item:!0,xs:!0,component:Ia,height:"100%",children:Se.jsx(Ia,{children:Se.jsx(YI,{...t})})},t.label+t.value))})}),dZe=e=>Se.jsxs("div",{children:[Se.jsxs(Ia,{display:"flex",alignItems:"center",children:[Se.jsx(Ia,{width:"100%",mr:1,children:Se.jsx(Qz,{variant:"determinate",value:e.value/e.maxValue*100})}),Se.jsx(Ia,{minWidth:35,children:Se.jsx(mr,{variant:"body2",color:"textSecondary",children:`${Math.round(e.value/e.maxValue*100)}%`})})]}),Se.jsx(Ia,{width:"100%",children:Se.jsx(mr,{variant:"body2",color:"textSecondary",children:e.details??""})})]}),fZe=kr(Se.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLessSharp"),pZe=kr(Se.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMoreSharp"),hZe=e=>{var u,c,d,f,p,h;const[t,n]=ge.useState(!1),r=PB(),l=hg(),i=(u=e.graph)==null?void 0:u.data.some(({type:g})=>g==="histogram"),o=(r==null?void 0:r.isXaxisAsCategorical)&&!i,a=l==="dark"?{template:{...Rd,layout:{...Rd.layout,colorway:((f=(d=(c=e.graph)==null?void 0:c.layout.template)==null?void 0:d.layout)==null?void 0:f.colorway)||((p=Rd.layout)==null?void 0:p.colorway)}}}:void 0,s=o?{type:"category",categoryorder:"category ascending"}:void 0;return Se.jsx(Ke.Fragment,{children:Se.jsxs(hr,{container:!0,spacing:2,justifyContent:"center",alignItems:"center",children:[Se.jsxs(hr,{item:!0,xs:2,children:[Se.jsx(mr,{variant:"h5",children:e.header}),Se.jsx(mr,{variant:"subtitle1",children:e.description})]}),Se.jsx(hr,{item:!0,xs:e.graph===void 0?10:5,children:Se.jsxs(h5,{children:[Se.jsx(g5,{children:Se.jsxs(Cm,{children:[Se.jsx(Mi,{}),e.metricsValuesHeaders.map(g=>Se.jsx(Mi,{children:g}))]})}),Se.jsx(m5,{children:e.metrics.map(g=>Se.jsxs(Cm,{children:[Se.jsx(Mi,{children:g.label}),g.values.map(b=>Se.jsx(Mi,{children:b}))]}))})]})}),e.graph===void 0?Se.jsx(Se.Fragment,{}):Se.jsx(hr,{item:!0,xs:5,children:Se.jsx(MB,{data:e.graph.data,layout:{...e.graph.layout,...a,title:void 0,xaxis:{...(h=e.graph.layout)==null?void 0:h.xaxis,...s}},config:{responsive:!0},style:{width:"100%",minHeight:150+100*(1+e.widgetSize/2),maxHeight:250}})}),e.details===void 0||e.details.parts.length===0?Se.jsx(Se.Fragment,{}):Se.jsxs(Se.Fragment,{children:[Se.jsx(hr,{item:!0,xs:12,children:Se.jsx(tl,{variant:"outlined",startIcon:t?Se.jsx(fZe,{}):Se.jsx(pZe,{}),onClick:()=>n(g=>!g),children:"Details"})}),Se.jsx(hr,{item:!0,xs:12,children:Se.jsx(wb,{in:t,mountOnEnter:!0,unmountOnExit:!0,children:Se.jsx(O4,{details:e.details,widgetSize:e.widgetSize})})})]})]})})},mZe=e=>Se.jsx(M4,{tabs:e.graphs.map(t=>({title:t.title,tab:Se.jsx(Db,{widgetSize:e.widgetSize,data:t.graph.data,layout:t.graph.layout})}))}),gZe=e=>Se.jsx(M4,{tabs:e.tabs.map(t=>({title:t.title,tab:Ng(`${e.id}1`,t.widget)}))}),vZe=e=>Se.jsx($de,{children:Se.jsxs(h5,{sx:{minWidth:650},size:"small","aria-label":"a dense table",children:[Se.jsx(g5,{children:Se.jsxs(Cm,{children:[Se.jsx(Mi,{children:e.header[0]},-1),e.header.slice(1).map(t=>Se.jsx(Mi,{align:"right",children:t},t))]})}),Se.jsx(m5,{children:e.data.map(t=>Se.jsxs(Cm,{children:[Se.jsx(Mi,{component:"th",scope:"row",children:t[0]},-1),t.slice(1).map(n=>Se.jsx(Mi,{align:"right",children:n},n))]},t[0]))})]})});function yZe(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const bZe=/[ \t\n\f\r]/g;function xZe(e){return typeof e=="object"?e.type==="text"?XI(e.value):!1:XI(e)}function XI(e){return e.replace(bZe,"")===""}class Ig{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Ig.prototype.property={};Ig.prototype.normal={};Ig.prototype.space=null;function vX(e,t){const n={},r={};let l=-1;for(;++l4&&n.slice(0,4)==="data"&&kZe.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(ZI,OZe);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!ZI.test(i)){let o=i.replace(CZe,PZe);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}l=OP}return new l(r,t)}function PZe(e){return"-"+e.toLowerCase()}function OZe(e){return e.charAt(1).toUpperCase()}const AZe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},DZe=vX([xX,bX,TX,SX,TZe],"html"),kX=vX([xX,bX,TX,SX,SZe],"svg");function EZe(e){return e.join(" ").trim()}var AP={exports:{}},QI=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,RZe=/\n/g,LZe=/^\s*/,IZe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,$Ze=/^:\s*/,NZe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,FZe=/^[;\s]*/,jZe=/^\s+|\s+$/g,zZe=` +`,JI="/",e$="*",Fu="",BZe="comment",WZe="declaration",qZe=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function l(h){var g=h.match(RZe);g&&(n+=g.length);var b=h.lastIndexOf(zZe);r=~b?h.length-b:r+h.length}function i(){var h={line:n,column:r};return function(g){return g.position=new o(h),u(),g}}function o(h){this.start=h,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function a(h){var g=new Error(t.source+":"+n+":"+r+": "+h);if(g.reason=h,g.filename=t.source,g.line=n,g.column=r,g.source=e,!t.silent)throw g}function s(h){var g=h.exec(e);if(g){var b=g[0];return l(b),e=e.slice(b.length),g}}function u(){s(LZe)}function c(h){var g;for(h=h||[];g=d();)g!==!1&&h.push(g);return h}function d(){var h=i();if(!(JI!=e.charAt(0)||e$!=e.charAt(1))){for(var g=2;Fu!=e.charAt(g)&&(e$!=e.charAt(g)||JI!=e.charAt(g+1));)++g;if(g+=2,Fu===e.charAt(g-1))return a("End of comment missing");var b=e.slice(2,g-2);return r+=2,l(b),e=e.slice(g),r+=2,h({type:BZe,comment:b})}}function f(){var h=i(),g=s(IZe);if(g){if(d(),!s($Ze))return a("property missing ':'");var b=s(NZe),v=h({type:WZe,property:t$(g[0].replace(QI,Fu)),value:b?t$(b[0].replace(QI,Fu)):Fu});return s(FZe),v}}function p(){var h=[];c(h);for(var g;g=f();)g!==!1&&(h.push(g),c(h));return h}return u(),p()};function t$(e){return e?e.replace(jZe,Fu):Fu}var UZe=qZe;function CX(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,l=UZe(e),i=typeof t=="function",o,a,s=0,u=l.length;s0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function GZe(e){const t=DP(e),n=MX(e);if(t&&n)return{start:t,end:n}}function Jh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?n$(e.position):"start"in e||"end"in e?n$(e):"line"in e||"column"in e?yC(e):""}function yC(e){return r$(e&&e.line)+":"+r$(e&&e.column)}function n$(e){return yC(e&&e.start)+"-"+yC(e&&e.end)}function r$(e){return e&&typeof e=="number"?e:1}class Oo extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let l="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?l=t:!i.cause&&t&&(o=!0,l=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?i.ruleId=r:(i.source=r.slice(0,s),i.ruleId=r.slice(s+1))}if(!i.place&&i.ancestors&&i.ancestors){const s=i.ancestors[i.ancestors.length-1];s&&(i.place=s.position)}const a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=l,this.line=a?a.line:void 0,this.name=Jh(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}Oo.prototype.file="";Oo.prototype.name="";Oo.prototype.reason="";Oo.prototype.message="";Oo.prototype.stack="";Oo.prototype.column=void 0;Oo.prototype.line=void 0;Oo.prototype.ancestors=void 0;Oo.prototype.cause=void 0;Oo.prototype.fatal=void 0;Oo.prototype.place=void 0;Oo.prototype.ruleId=void 0;Oo.prototype.source=void 0;const EP={}.hasOwnProperty,YZe=new Map,XZe=/[A-Z]/g,KZe=/-([a-z])/g,ZZe=new Set(["table","tbody","thead","tfoot","tr"]),QZe=new Set(["td","th"]);function JZe(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=tQe(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=eQe(n,t.jsx,t.jsxs)}const l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?kX:DZe,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=OX(l,e,void 0);return i&&typeof i!="string"?i:l.create(e,l.Fragment,{children:i||void 0},void 0)}function OX(e,t,n){if(t.type==="element"||t.type==="root"){const r=e.schema;let l=r;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(l=kX,e.schema=l),e.ancestors.push(t);let i=nQe(e,t);const o=rQe(e,e.ancestors);let a=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(i&&ZZe.has(t.tagName)&&(i=i.filter(function(s){return typeof s=="string"?!xZe(s):!0})),EP.call(e.components,t.tagName)){const s=t.tagName;a=e.components[s],typeof a!="string"&&a!==e.Fragment&&e.passNode&&(o.node=t)}else a=t.tagName;if(i.length>0){const s=i.length>1?i:i[0];s&&(o.children=s)}return e.schema=r,e.create(t,a,o,n)}if(t.type==="text")return t.value}function eQe(e,t,n){return r;function r(l,i,o,a){const u=Array.isArray(o.children)?n:t;return a?u(i,o,a):u(i,o)}}function tQe(e,t){return n;function n(r,l,i,o){const a=Array.isArray(i.children),s=DP(r);return t(l,i,o,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function nQe(e,t){const n=[];let r=-1;const l=e.passKeys?new Map:YZe;for(;++r-1&&e.test(String.fromCharCode(n))}}const mQe={'"':"quot","&":"amp","<":"lt",">":"gt"};function gQe(e){return e.replace(/["&<>]/g,t);function t(n){return"&"+mQe[n]+";"}}function vQe(e,t){const n=gQe(zc(e||""));if(!t)return n;const r=n.indexOf(":"),l=n.indexOf("?"),i=n.indexOf("#"),o=n.indexOf("/");return r<0||o>-1&&r>o||l>-1&&r>l||i>-1&&r>i||t.test(n.slice(0,r))?n:""}function zc(e){const t=[];let n=-1,r=0,l=0;for(;++n55295&&i<57344){const a=e.charCodeAt(n+1);i<56320&&a>56319&&a<57344?(o=String.fromCharCode(i,a),l=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+l+1,o=""),l&&(n+=l,l=0)}return t.join("")+e.slice(r)}const yQe={};function bQe(e,t){const n=yQe,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,l=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return DX(e,r,l)}function DX(e,t,n){if(xQe(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return a$(e.children,t,n)}return Array.isArray(e)?a$(e,t,n):""}function a$(e,t,n){const r=[];let l=-1;for(;++ll?0:l+t:t=t>l?l:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i0?(jl(e,e.length,0,t),e):t}const i$={}.hasOwnProperty;function wQe(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCharCode(n)}function Fd(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function Ur(e,t,n,r){const l=r?r-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(s){return Sr(s)?(e.enter(n),a(s)):t(s)}function a(s){return Sr(s)&&i++o))return;const S=t.events.length;let k=S,C,T;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){if(C){T=t.events[k][1].end;break}C=!0}for(v(r),w=S;wy;){const _=n[x];t.containerState=_[1],_[0].exit.call(t,e)}n.length=y}function m(){l.write([null]),i=void 0,l=void 0,t.containerState._closeFlow=void 0}}function PQe(e,t,n){return Ur(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function s$(e){if(e===null||Uo(e)||hQe(e))return 1;if(pQe(e))return 2}function LP(e,t,n){const r=[];let l=-1;for(;++l1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),f=Object.assign({},e[n][1].start);u$(d,-s),u$(f,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:f},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},l={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},a.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=ki(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=ki(u,[["enter",l,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=ki(u,LP(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=ki(u,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",l,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=ki(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,jl(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n0&&Sr(w)?Ur(e,m,"linePrefix",i+1)(w):m(w)}function m(w){return w===null||Yn(w)?e.check(c$,g,x)(w):(e.enter("codeFlowValue"),y(w))}function y(w){return w===null||Yn(w)?(e.exit("codeFlowValue"),m(w)):(e.consume(w),y)}function x(w){return e.exit("codeFenced"),t(w)}function _(w,S,k){let C=0;return T;function T(E){return w.enter("lineEnding"),w.consume(E),w.exit("lineEnding"),M}function M(E){return w.enter("codeFencedFence"),Sr(E)?Ur(w,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):O(E)}function O(E){return E===a?(w.enter("codeFencedFenceSequence"),D(E)):k(E)}function D(E){return E===a?(C++,w.consume(E),D):C>=o?(w.exit("codeFencedFenceSequence"),Sr(E)?Ur(w,P,"whitespace")(E):P(E)):k(E)}function P(E){return E===null||Yn(E)?(w.exit("codeFencedFence"),S(E)):k(E)}}}function zQe(e,t,n){const r=this;return l;function l(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const pT={name:"codeIndented",tokenize:WQe},BQe={tokenize:qQe,partial:!0};function WQe(e,t,n){const r=this;return l;function l(u){return e.enter("codeIndented"),Ur(e,i,"linePrefix",5)(u)}function i(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?s(u):Yn(u)?e.attempt(BQe,o,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||Yn(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),t(u)}}function qQe(e,t,n){const r=this;return l;function l(o){return r.parser.lazy[r.now().line]?n(o):Yn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):Ur(e,i,"linePrefix",5)(o)}function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):Yn(o)?l(o):n(o)}}const UQe={name:"codeText",tokenize:GQe,resolve:HQe,previous:VQe};function HQe(e){let t=e.length-4,n=3,r,l;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function NX(e,t,n,r,l,i,o,a,s){const u=s||Number.POSITIVE_INFINITY;let c=0;return d;function d(v){return v===60?(e.enter(r),e.enter(l),e.enter(i),e.consume(v),e.exit(i),f):v===null||v===32||v===41||bC(v)?n(v):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),g(v))}function f(v){return v===62?(e.enter(i),e.consume(v),e.exit(i),e.exit(l),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(v))}function p(v){return v===62?(e.exit("chunkString"),e.exit(a),f(v)):v===null||v===60||Yn(v)?n(v):(e.consume(v),v===92?h:p)}function h(v){return v===60||v===62||v===92?(e.consume(v),p):p(v)}function g(v){return!c&&(v===null||v===41||Uo(v))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(v)):c999||p===null||p===91||p===93&&!s||p===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?n(p):p===93?(e.exit(i),e.enter(l),e.consume(p),e.exit(l),e.exit(r),t):Yn(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||Yn(p)||a++>999?(e.exit("chunkString"),c(p)):(e.consume(p),s||(s=!Sr(p)),p===92?f:d)}function f(p){return p===91||p===92||p===93?(e.consume(p),a++,d):d(p)}}function jX(e,t,n,r,l,i){let o;return a;function a(f){return f===34||f===39||f===40?(e.enter(r),e.enter(l),e.consume(f),e.exit(l),o=f===40?41:f,s):n(f)}function s(f){return f===o?(e.enter(l),e.consume(f),e.exit(l),e.exit(r),t):(e.enter(i),u(f))}function u(f){return f===o?(e.exit(i),s(o)):f===null?n(f):Yn(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Ur(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===o||f===null||Yn(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?d:c)}function d(f){return f===o||f===92?(e.consume(f),c):c(f)}}function em(e,t){let n;return r;function r(l){return Yn(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n=!0,r):Sr(l)?Ur(e,r,n?"linePrefix":"lineSuffix")(l):t(l)}}const eJe={name:"definition",tokenize:nJe},tJe={tokenize:rJe,partial:!0};function nJe(e,t,n){const r=this;let l;return i;function i(p){return e.enter("definition"),o(p)}function o(p){return FX.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return l=Fd(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),s):n(p)}function s(p){return Uo(p)?em(e,u)(p):u(p)}function u(p){return NX(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(tJe,d,d)(p)}function d(p){return Sr(p)?Ur(e,f,"whitespace")(p):f(p)}function f(p){return p===null||Yn(p)?(e.exit("definition"),r.parser.defined.push(l),t(p)):n(p)}}function rJe(e,t,n){return r;function r(a){return Uo(a)?em(e,l)(a):n(a)}function l(a){return jX(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return Sr(a)?Ur(e,o,"whitespace")(a):o(a)}function o(a){return a===null||Yn(a)?t(a):n(a)}}const aJe={name:"hardBreakEscape",tokenize:oJe};function oJe(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),l}function l(i){return Yn(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const iJe={name:"headingAtx",tokenize:sJe,resolve:lJe};function lJe(e,t){let n=e.length-2,r=3,l,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(l={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},jl(e,r,n-r+1,[["enter",l,t],["enter",i,t],["exit",i,t],["exit",l,t]])),e}function sJe(e,t,n){let r=0;return l;function l(c){return e.enter("atxHeading"),i(c)}function i(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||Uo(c)?(e.exit("atxHeadingSequence"),a(c)):n(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||Yn(c)?(e.exit("atxHeading"),t(c)):Sr(c)?Ur(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function s(c){return c===35?(e.consume(c),s):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||Uo(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}const uJe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],f$=["pre","script","style","textarea"],cJe={name:"htmlFlow",tokenize:hJe,resolveTo:pJe,concrete:!0},dJe={tokenize:gJe,partial:!0},fJe={tokenize:mJe,partial:!0};function pJe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function hJe(e,t,n){const r=this;let l,i,o,a,s;return u;function u(R){return c(R)}function c(R){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(R),d}function d(R){return R===33?(e.consume(R),f):R===47?(e.consume(R),i=!0,g):R===63?(e.consume(R),l=3,r.interrupt?t:B):Pl(R)?(e.consume(R),o=String.fromCharCode(R),b):n(R)}function f(R){return R===45?(e.consume(R),l=2,p):R===91?(e.consume(R),l=5,a=0,h):Pl(R)?(e.consume(R),l=4,r.interrupt?t:B):n(R)}function p(R){return R===45?(e.consume(R),r.interrupt?t:B):n(R)}function h(R){const q="CDATA[";return R===q.charCodeAt(a++)?(e.consume(R),a===q.length?r.interrupt?t:O:h):n(R)}function g(R){return Pl(R)?(e.consume(R),o=String.fromCharCode(R),b):n(R)}function b(R){if(R===null||R===47||R===62||Uo(R)){const q=R===47,Y=o.toLowerCase();return!q&&!i&&f$.includes(Y)?(l=1,r.interrupt?t(R):O(R)):uJe.includes(o.toLowerCase())?(l=6,q?(e.consume(R),v):r.interrupt?t(R):O(R)):(l=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(R):i?m(R):y(R))}return R===45||ri(R)?(e.consume(R),o+=String.fromCharCode(R),b):n(R)}function v(R){return R===62?(e.consume(R),r.interrupt?t:O):n(R)}function m(R){return Sr(R)?(e.consume(R),m):T(R)}function y(R){return R===47?(e.consume(R),T):R===58||R===95||Pl(R)?(e.consume(R),x):Sr(R)?(e.consume(R),y):T(R)}function x(R){return R===45||R===46||R===58||R===95||ri(R)?(e.consume(R),x):_(R)}function _(R){return R===61?(e.consume(R),w):Sr(R)?(e.consume(R),_):y(R)}function w(R){return R===null||R===60||R===61||R===62||R===96?n(R):R===34||R===39?(e.consume(R),s=R,S):Sr(R)?(e.consume(R),w):k(R)}function S(R){return R===s?(e.consume(R),s=null,C):R===null||Yn(R)?n(R):(e.consume(R),S)}function k(R){return R===null||R===34||R===39||R===47||R===60||R===61||R===62||R===96||Uo(R)?_(R):(e.consume(R),k)}function C(R){return R===47||R===62||Sr(R)?y(R):n(R)}function T(R){return R===62?(e.consume(R),M):n(R)}function M(R){return R===null||Yn(R)?O(R):Sr(R)?(e.consume(R),M):n(R)}function O(R){return R===45&&l===2?(e.consume(R),I):R===60&&l===1?(e.consume(R),A):R===62&&l===4?(e.consume(R),z):R===63&&l===3?(e.consume(R),B):R===93&&l===5?(e.consume(R),j):Yn(R)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(dJe,N,D)(R)):R===null||Yn(R)?(e.exit("htmlFlowData"),D(R)):(e.consume(R),O)}function D(R){return e.check(fJe,P,N)(R)}function P(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),E}function E(R){return R===null||Yn(R)?D(R):(e.enter("htmlFlowData"),O(R))}function I(R){return R===45?(e.consume(R),B):O(R)}function A(R){return R===47?(e.consume(R),o="",F):O(R)}function F(R){if(R===62){const q=o.toLowerCase();return f$.includes(q)?(e.consume(R),z):O(R)}return Pl(R)&&o.length<8?(e.consume(R),o+=String.fromCharCode(R),F):O(R)}function j(R){return R===93?(e.consume(R),B):O(R)}function B(R){return R===62?(e.consume(R),z):R===45&&l===2?(e.consume(R),B):O(R)}function z(R){return R===null||Yn(R)?(e.exit("htmlFlowData"),N(R)):(e.consume(R),z)}function N(R){return e.exit("htmlFlow"),t(R)}}function mJe(e,t,n){const r=this;return l;function l(o){return Yn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function gJe(e,t,n){return r;function r(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(X2,t,n)}}const vJe={name:"htmlText",tokenize:yJe};function yJe(e,t,n){const r=this;let l,i,o;return a;function a(B){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(B),s}function s(B){return B===33?(e.consume(B),u):B===47?(e.consume(B),_):B===63?(e.consume(B),y):Pl(B)?(e.consume(B),k):n(B)}function u(B){return B===45?(e.consume(B),c):B===91?(e.consume(B),i=0,h):Pl(B)?(e.consume(B),m):n(B)}function c(B){return B===45?(e.consume(B),p):n(B)}function d(B){return B===null?n(B):B===45?(e.consume(B),f):Yn(B)?(o=d,A(B)):(e.consume(B),d)}function f(B){return B===45?(e.consume(B),p):d(B)}function p(B){return B===62?I(B):B===45?f(B):d(B)}function h(B){const z="CDATA[";return B===z.charCodeAt(i++)?(e.consume(B),i===z.length?g:h):n(B)}function g(B){return B===null?n(B):B===93?(e.consume(B),b):Yn(B)?(o=g,A(B)):(e.consume(B),g)}function b(B){return B===93?(e.consume(B),v):g(B)}function v(B){return B===62?I(B):B===93?(e.consume(B),v):g(B)}function m(B){return B===null||B===62?I(B):Yn(B)?(o=m,A(B)):(e.consume(B),m)}function y(B){return B===null?n(B):B===63?(e.consume(B),x):Yn(B)?(o=y,A(B)):(e.consume(B),y)}function x(B){return B===62?I(B):y(B)}function _(B){return Pl(B)?(e.consume(B),w):n(B)}function w(B){return B===45||ri(B)?(e.consume(B),w):S(B)}function S(B){return Yn(B)?(o=S,A(B)):Sr(B)?(e.consume(B),S):I(B)}function k(B){return B===45||ri(B)?(e.consume(B),k):B===47||B===62||Uo(B)?C(B):n(B)}function C(B){return B===47?(e.consume(B),I):B===58||B===95||Pl(B)?(e.consume(B),T):Yn(B)?(o=C,A(B)):Sr(B)?(e.consume(B),C):I(B)}function T(B){return B===45||B===46||B===58||B===95||ri(B)?(e.consume(B),T):M(B)}function M(B){return B===61?(e.consume(B),O):Yn(B)?(o=M,A(B)):Sr(B)?(e.consume(B),M):C(B)}function O(B){return B===null||B===60||B===61||B===62||B===96?n(B):B===34||B===39?(e.consume(B),l=B,D):Yn(B)?(o=O,A(B)):Sr(B)?(e.consume(B),O):(e.consume(B),P)}function D(B){return B===l?(e.consume(B),l=void 0,E):B===null?n(B):Yn(B)?(o=D,A(B)):(e.consume(B),D)}function P(B){return B===null||B===34||B===39||B===60||B===61||B===96?n(B):B===47||B===62||Uo(B)?C(B):(e.consume(B),P)}function E(B){return B===47||B===62||Uo(B)?C(B):n(B)}function I(B){return B===62?(e.consume(B),e.exit("htmlTextData"),e.exit("htmlText"),t):n(B)}function A(B){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),F}function F(B){return Sr(B)?Ur(e,j,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):j(B)}function j(B){return e.enter("htmlTextData"),o(B)}}const IP={name:"labelEnd",tokenize:SJe,resolveTo:TJe,resolveAll:_Je},bJe={tokenize:kJe},xJe={tokenize:CJe},wJe={tokenize:MJe};function _Je(e){let t=-1;for(;++t=3&&(u===null||Yn(u))?(e.exit("thematicBreak"),t(u)):n(u)}function s(u){return u===l?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),Sr(u)?Ur(e,a,"whitespace")(u):a(u))}}const Eo={name:"list",tokenize:$Je,continuation:{tokenize:NJe},exit:jJe},LJe={tokenize:zJe,partial:!0},IJe={tokenize:FJe,partial:!0};function $Je(e,t,n){const r=this,l=r.events[r.events.length-1];let i=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,o=0;return a;function a(p){const h=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:xC(p)){if(r.containerState.type||(r.containerState.type=h,e.enter(h,{_container:!0})),h==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Nv,n,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(p)}return n(p)}function s(p){return xC(p)&&++o<10?(e.consume(p),s):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(X2,r.interrupt?n:c,e.attempt(LJe,f,d))}function c(p){return r.containerState.initialBlankLine=!0,i++,f(p)}function d(p){return Sr(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function NJe(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(X2,l,i);function l(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Ur(e,t,"listItemIndent",r.containerState.size+1)(a)}function i(a){return r.containerState.furtherBlankLines||!Sr(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(IJe,t,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,Ur(e,e.attempt(Eo,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function FJe(e,t,n){const r=this;return Ur(e,l,"listItemIndent",r.containerState.size+1);function l(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)}}function jJe(e){e.exit(this.containerState.type)}function zJe(e,t,n){const r=this;return Ur(e,l,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(i){const o=r.events[r.events.length-1];return!Sr(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const p$={name:"setextUnderline",tokenize:WJe,resolveTo:BJe};function BJe(e,t){let n=e.length,r,l,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(l=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const o={type:"setextHeading",start:Object.assign({},e[l][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[l][1].type="setextHeadingText",i?(e.splice(l,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function WJe(e,t,n){const r=this;let l;return i;function i(u){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),l=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===l?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),Sr(u)?Ur(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||Yn(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const qJe={tokenize:UJe};function UJe(e){const t=this,n=e.attempt(X2,r,e.attempt(this.parser.constructs.flowInitial,l,Ur(e,e.attempt(this.parser.constructs.flow,l,e.attempt(XQe,l)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function l(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const HJe={resolveAll:BX()},VJe=zX("string"),GJe=zX("text");function zX(e){return{tokenize:t,resolveAll:BX(e==="text"?YJe:void 0)};function t(n){const r=this,l=this.parser.constructs[e],i=n.attempt(l,o,a);return o;function o(c){return u(c)?i(c):a(c)}function a(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),s}function s(c){return u(c)?(n.exit("data"),i(c)):(n.consume(c),s)}function u(c){if(c===null)return!0;const d=l[c];let f=-1;if(d)for(;++f-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}i>0&&o.push(e[l].slice(0,i))}return o}function ZJe(e,t){let n=-1;const r=[];let l;for(;++n0){const de=we.tokenStack[we.tokenStack.length-1];(de[1]||qI).call(we,void 0,de[0])}for(ce.position={start:Cs(Me.length>0?Me[0][1].start:{line:1,column:1,offset:0}),end:Cs(Me.length>0?Me[Me.length-2][1].end:{line:1,column:1,offset:0})},ne=-1;++ne1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function stt(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function utt(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function oX(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const l=e.all(t),i=l[0];i&&i.type==="text"?i.value="["+i.value:l.unshift({type:"text",value:"["});const o=l[l.length-1];return o&&o.type==="text"?o.value+=r:l.push({type:"text",value:r}),l}function ctt(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return oX(e,t);const l={src:Mc(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(l.title=r.title);const i={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,i),e.applyData(t,i)}function dtt(e,t){const n={src:Mc(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function ftt(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function ptt(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return oX(e,t);const l={href:Mc(r.url||"")};r.title!==null&&r.title!==void 0&&(l.title=r.title);const i={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function htt(e,t){const n={href:Mc(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function mtt(e,t,n){const r=e.all(t),l=n?gtt(n):iX(t),i={},o=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let a=-1;for(;++a0){const de=we.tokenStack[we.tokenStack.length-1];(de[1]||m$).call(we,void 0,de[0])}for(ce.position={start:Rs(Pe.length>0?Pe[0][1].start:{line:1,column:1,offset:0}),end:Rs(Pe.length>0?Pe[Pe.length-2][1].end:{line:1,column:1,offset:0})},re=-1;++re1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function Cet(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Met(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function UX(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const l=e.all(t),i=l[0];i&&i.type==="text"?i.value="["+i.value:l.unshift({type:"text",value:"["});const o=l[l.length-1];return o&&o.type==="text"?o.value+=r:l.push({type:"text",value:r}),l}function Pet(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return UX(e,t);const l={src:zc(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(l.title=r.title);const i={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,i),e.applyData(t,i)}function Oet(e,t){const n={src:zc(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Aet(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Det(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return UX(e,t);const l={href:zc(r.url||"")};r.title!==null&&r.title!==void 0&&(l.title=r.title);const i={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Eet(e,t){const n={href:zc(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Ret(e,t,n){const r=e.all(t),l=n?Let(n):HX(t),i={},o=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let a=-1;for(;++a1}function vtt(e,t){const n={},r=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++l0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=q4(t.children[1]),s=WY(t.children[t.children.length-1]);a&&s&&(o.position={start:a,end:s}),l.push(o)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,i),e.applyData(t,i)}function _tt(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,a=o?o.length:t.children.length;let s=-1;const u=[];for(;++s0,!0),r[0]),l=r.index+r[0].length,r=n.exec(t);return i.push(VI(t.slice(l),l>0,!1)),i.join("")}function VI(e,t,n){let r=0,l=e.length;if(t){let i=e.codePointAt(r);for(;i===UI||i===HI;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(l-1);for(;i===UI||i===HI;)l--,i=e.codePointAt(l-1)}return l>r?e.slice(r,l):""}function Stt(e,t){const n={type:"text",value:ktt(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Ctt(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Mtt={blockquote:ntt,break:rtt,code:att,delete:ott,emphasis:itt,footnoteReference:ltt,heading:stt,html:utt,imageReference:ctt,image:dtt,inlineCode:ftt,linkReference:ptt,link:htt,listItem:mtt,list:vtt,paragraph:ytt,root:btt,strong:xtt,table:wtt,tableCell:Ttt,tableRow:_tt,text:Stt,thematicBreak:Ctt,toml:A0,yaml:A0,definition:A0,footnoteDefinition:A0};function A0(){}const lX=-1,y2=0,Ky=1,Zy=2,Y4=3,X4=4,K4=5,Z4=6,sX=7,uX=8,GI=typeof self=="object"?self:globalThis,Ptt=(e,t)=>{const n=(l,i)=>(e.set(i,l),l),r=l=>{if(e.has(l))return e.get(l);const[i,o]=t[l];switch(i){case y2:case lX:return n(o,l);case Ky:{const a=n([],l);for(const s of o)a.push(r(s));return a}case Zy:{const a=n({},l);for(const[s,u]of o)a[r(s)]=r(u);return a}case Y4:return n(new Date(o),l);case X4:{const{source:a,flags:s}=o;return n(new RegExp(a,s),l)}case K4:{const a=n(new Map,l);for(const[s,u]of o)a.set(r(s),r(u));return a}case Z4:{const a=n(new Set,l);for(const s of o)a.add(r(s));return a}case sX:{const{name:a,message:s}=o;return n(new GI[a](s),l)}case uX:return n(BigInt(o),l);case"BigInt":return n(Object(BigInt(o)),l)}return n(new GI[i](o),l)};return r},YI=e=>Ptt(new Map,e)(0),Vc="",{toString:Ott}={},{keys:Att}=Object,rh=e=>{const t=typeof e;if(t!=="object"||!e)return[y2,t];const n=Ott.call(e).slice(8,-1);switch(n){case"Array":return[Ky,Vc];case"Object":return[Zy,Vc];case"Date":return[Y4,Vc];case"RegExp":return[X4,Vc];case"Map":return[K4,Vc];case"Set":return[Z4,Vc]}return n.includes("Array")?[Ky,n]:n.includes("Error")?[sX,n]:[Zy,n]},D0=([e,t])=>e===y2&&(t==="function"||t==="symbol"),Dtt=(e,t,n,r)=>{const l=(o,a)=>{const s=r.push(o)-1;return n.set(a,s),s},i=o=>{if(n.has(o))return n.get(o);let[a,s]=rh(o);switch(a){case y2:{let c=o;switch(s){case"bigint":a=uX,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);c=null;break;case"undefined":return l([lX],o)}return l([a,c],o)}case Ky:{if(s)return l([s,[...o]],o);const c=[],d=l([a,c],o);for(const f of o)c.push(i(f));return d}case Zy:{if(s)switch(s){case"BigInt":return l([s,o.toString()],o);case"Boolean":case"Number":case"String":return l([s,o.valueOf()],o)}if(t&&"toJSON"in o)return i(o.toJSON());const c=[],d=l([a,c],o);for(const f of Att(o))(e||!D0(rh(o[f])))&&c.push([i(f),i(o[f])]);return d}case Y4:return l([a,o.toISOString()],o);case X4:{const{source:c,flags:d}=o;return l([a,{source:c,flags:d}],o)}case K4:{const c=[],d=l([a,c],o);for(const[f,p]of o)(e||!(D0(rh(f))||D0(rh(p))))&&c.push([i(f),i(p)]);return d}case Z4:{const c=[],d=l([a,c],o);for(const f of o)(e||!D0(rh(f)))&&c.push(i(f));return d}}const{message:u}=o;return l([a,{name:s,message:u}],o)};return i},XI=(e,{json:t,lossy:n}={})=>{const r=[];return Dtt(!(t||n),!!t,new Map,r)(e),r},Qy=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?YI(XI(e,t)):structuredClone(e):(e,t)=>YI(XI(e,t));function Ett(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Rtt(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Ltt(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Ett,r=e.options.footnoteBackLabel||Rtt,l=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let s=-1;for(;++s0&&m.push({type:"text",value:" "});let h=typeof n=="string"?n:n(s,p);typeof h=="string"&&(h={type:"text",value:h}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,p),className:["data-footnote-backref"]},children:Array.isArray(h)?h:[h]})}const b=c[c.length-1];if(b&&b.type==="element"&&b.tagName==="p"){const h=b.children[b.children.length-1];h&&h.type==="text"?h.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(...m)}else c.push(...m);const v={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(c,!0)};e.patch(u,v),a.push(v)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Qy(o),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:` +`});const u={type:"element",tagName:"li",properties:i,children:o};return e.patch(t,u),e.applyData(t,u)}function Let(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r1}function Iet(e,t){const n={},r=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++l0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=DP(t.children[1]),s=MX(t.children[t.children.length-1]);a&&s&&(o.position={start:a,end:s}),l.push(o)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,i),e.applyData(t,i)}function zet(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,a=o?o.length:t.children.length;let s=-1;const u=[];for(;++s0,!0),r[0]),l=r.index+r[0].length,r=n.exec(t);return i.push(y$(t.slice(l),l>0,!1)),i.join("")}function y$(e,t,n){let r=0,l=e.length;if(t){let i=e.codePointAt(r);for(;i===g$||i===v$;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(l-1);for(;i===g$||i===v$;)l--,i=e.codePointAt(l-1)}return l>r?e.slice(r,l):""}function qet(e,t){const n={type:"text",value:Wet(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Uet(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Het={blockquote:bet,break:xet,code:wet,delete:_et,emphasis:Tet,footnoteReference:ket,heading:Cet,html:Met,imageReference:Pet,image:Oet,inlineCode:Aet,linkReference:Det,link:Eet,listItem:Ret,list:Iet,paragraph:$et,root:Net,strong:Fet,table:jet,tableCell:Bet,tableRow:zet,text:qet,thematicBreak:Uet,toml:G0,yaml:G0,definition:G0,footnoteDefinition:G0};function G0(){}const VX=-1,K2=0,b1=1,x1=2,$P=3,NP=4,FP=5,jP=6,GX=7,YX=8,b$=typeof self=="object"?self:globalThis,Vet=(e,t)=>{const n=(l,i)=>(e.set(i,l),l),r=l=>{if(e.has(l))return e.get(l);const[i,o]=t[l];switch(i){case K2:case VX:return n(o,l);case b1:{const a=n([],l);for(const s of o)a.push(r(s));return a}case x1:{const a=n({},l);for(const[s,u]of o)a[r(s)]=r(u);return a}case $P:return n(new Date(o),l);case NP:{const{source:a,flags:s}=o;return n(new RegExp(a,s),l)}case FP:{const a=n(new Map,l);for(const[s,u]of o)a.set(r(s),r(u));return a}case jP:{const a=n(new Set,l);for(const s of o)a.add(r(s));return a}case GX:{const{name:a,message:s}=o;return n(new b$[a](s),l)}case YX:return n(BigInt(o),l);case"BigInt":return n(Object(BigInt(o)),l)}return n(new b$[i](o),l)};return r},x$=e=>Vet(new Map,e)(0),ad="",{toString:Get}={},{keys:Yet}=Object,bh=e=>{const t=typeof e;if(t!=="object"||!e)return[K2,t];const n=Get.call(e).slice(8,-1);switch(n){case"Array":return[b1,ad];case"Object":return[x1,ad];case"Date":return[$P,ad];case"RegExp":return[NP,ad];case"Map":return[FP,ad];case"Set":return[jP,ad]}return n.includes("Array")?[b1,n]:n.includes("Error")?[GX,n]:[x1,n]},Y0=([e,t])=>e===K2&&(t==="function"||t==="symbol"),Xet=(e,t,n,r)=>{const l=(o,a)=>{const s=r.push(o)-1;return n.set(a,s),s},i=o=>{if(n.has(o))return n.get(o);let[a,s]=bh(o);switch(a){case K2:{let c=o;switch(s){case"bigint":a=YX,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);c=null;break;case"undefined":return l([VX],o)}return l([a,c],o)}case b1:{if(s)return l([s,[...o]],o);const c=[],d=l([a,c],o);for(const f of o)c.push(i(f));return d}case x1:{if(s)switch(s){case"BigInt":return l([s,o.toString()],o);case"Boolean":case"Number":case"String":return l([s,o.valueOf()],o)}if(t&&"toJSON"in o)return i(o.toJSON());const c=[],d=l([a,c],o);for(const f of Yet(o))(e||!Y0(bh(o[f])))&&c.push([i(f),i(o[f])]);return d}case $P:return l([a,o.toISOString()],o);case NP:{const{source:c,flags:d}=o;return l([a,{source:c,flags:d}],o)}case FP:{const c=[],d=l([a,c],o);for(const[f,p]of o)(e||!(Y0(bh(f))||Y0(bh(p))))&&c.push([i(f),i(p)]);return d}case jP:{const c=[],d=l([a,c],o);for(const f of o)(e||!Y0(bh(f)))&&c.push(i(f));return d}}const{message:u}=o;return l([a,{name:s,message:u}],o)};return i},w$=(e,{json:t,lossy:n}={})=>{const r=[];return Xet(!(t||n),!!t,new Map,r)(e),r},w1=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?x$(w$(e,t)):structuredClone(e):(e,t)=>x$(w$(e,t));function Ket(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Zet(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Qet(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Ket,r=e.options.footnoteBackLabel||Zet,l=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let s=-1;for(;++s0&&h.push({type:"text",value:" "});let m=typeof n=="string"?n:n(s,p);typeof m=="string"&&(m={type:"text",value:m}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,p),className:["data-footnote-backref"]},children:Array.isArray(m)?m:[m]})}const b=c[c.length-1];if(b&&b.type==="element"&&b.tagName==="p"){const m=b.children[b.children.length-1];m&&m.type==="text"?m.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(...h)}else c.push(...h);const v={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(c,!0)};e.patch(u,v),a.push(v)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...w1(o),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:` -`}]}}const cX=function(e){if(e==null)return Ftt;if(typeof e=="function")return b2(e);if(typeof e=="object")return Array.isArray(e)?Itt(e):$tt(e);if(typeof e=="string")return Ntt(e);throw new Error("Expected function, string, or object as test")};function Itt(e){const t=[];let n=-1;for(;++n":""))+")"})}return f;function f(){let p=dX,m,g,b;if((!t||i(s,u,c[c.length-1]||void 0))&&(p=qtt(n(s,c)),p[0]===KI))return p;if("children"in s&&s.children){const v=s;if(v.children&&p[0]!==Btt)for(g=(r?v.children.length:-1)+o,b=c.concat(v);g>-1&&g":""))+")"})}return f;function f(){let p=KX,h,g,b;if((!t||i(s,u,c[c.length-1]||void 0))&&(p=ltt(n(s,c)),p[0]===_$))return p;if("children"in s&&s.children){const v=s;if(v.children&&p[0]!==ott)for(g=(r?v.children.length:-1)+o,b=c.concat(v);g>-1&&g0&&n.push({type:"text",value:` -`}),n}function ZI(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function QI(e,t){const n=Htt(e,t),r=n.one(e,void 0),l=Ltt(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return l&&i.children.push({type:"text",value:` -`},l),i}function Ktt(e,t){return e&&"run"in e?async function(n,r){const l=QI(n,t);await e.run(l,r)}:function(n){return QI(n,t||e)}}function JI(e){if(e)throw e}var wv=Object.prototype.hasOwnProperty,pX=Object.prototype.toString,e$=Object.defineProperty,t$=Object.getOwnPropertyDescriptor,n$=function(t){return typeof Array.isArray=="function"?Array.isArray(t):pX.call(t)==="[object Array]"},r$=function(t){if(!t||pX.call(t)!=="[object Object]")return!1;var n=wv.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&wv.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var l;for(l in t);return typeof l>"u"||wv.call(t,l)},a$=function(t,n){e$&&n.name==="__proto__"?e$(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},o$=function(t,n){if(n==="__proto__")if(wv.call(t,n)){if(t$)return t$(t,n).value}else return;return t[n]},Ztt=function e(){var t,n,r,l,i,o,a=arguments[0],s=1,u=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},s=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});so.length;let s;a&&o.push(l);try{s=e.apply(this,o)}catch(u){const c=u;if(a&&n)throw c;return l(c)}a||(s instanceof Promise?s.then(i,l):s instanceof Error?l(s):i(s))}function l(o,...a){n||(n=!0,t(o,...a))}function i(o){l(null,o)}}const al={basename:ent,dirname:tnt,extname:nnt,join:rnt,sep:"/"};function ent(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');wg(e);let n=0,r=-1,l=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(i){n=l+1;break}}else r<0&&(i=!0,r=l+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,a=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(i){n=l+1;break}}else o<0&&(i=!0,o=l+1),a>-1&&(e.codePointAt(l)===t.codePointAt(a--)?a<0&&(r=l):(a=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function tnt(e){if(wg(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function nnt(e){wg(e);let t=e.length,n=-1,r=0,l=-1,i=0,o;for(;t--;){const a=e.codePointAt(t);if(a===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),a===46?l<0?l=t:i!==1&&(i=1):l>-1&&(i=-1)}return l<0||n<0||i===0||i===1&&l===n-1&&l===r+1?"":e.slice(l,n)}function rnt(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function ont(e,t){let n="",r=0,l=-1,i=0,o=-1,a,s;for(;++o<=e.length;){if(o2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),l=o,i=0;continue}}else if(n.length>0){n="",r=0,l=o,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(l+1,o):n=e.slice(l+1,o),r=o-l-1;l=o,i=0}else a===46&&i>-1?i++:i=-1}return n}function wg(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const int={cwd:lnt};function lnt(){return"/"}function zS(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function snt(e){if(typeof e=="string")e=new URL(e);else if(!zS(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return unt(e)}function unt(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[p,...m]=c;const g=r[f][1];jS(g)&&jS(p)&&(p=$T(!0,g,p)),r[f]=[u,p,...m]}}}}const pnt=new Q4().freeze();function zT(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function BT(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function WT(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function l$(e){if(!jS(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function s$(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function E0(e){return hnt(e)?e:new hX(e)}function hnt(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function mnt(e){return typeof e=="string"||gnt(e)}function gnt(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const u$={}.hasOwnProperty,vnt="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",c$=[],d$={allowDangerousHtml:!0},ynt=/^(https?|ircs?|mailto|xmpp)$/i,bnt=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function mX(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",l=e.className,i=e.components,o=e.disallowedElements,a=e.rehypePlugins||c$,s=e.remarkPlugins||c$,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...d$}:d$,c=e.skipHtml,d=e.unwrapDisallowed,f=e.urlTransform||xnt,p=pnt().use(ttt).use(s).use(Ktt,u).use(a),m=new hX;typeof r=="string"&&(m.value=r);for(const h of bnt)Object.hasOwn(e,h.from)&&(""+h.from+(h.to?"use `"+h.to+"` instead":"remove it")+vnt+h.id,void 0);const g=p.parse(m);let b=p.runSync(g,m);return l&&(b={type:"element",tagName:"div",properties:{className:l},children:b.type==="root"?b.children:[b]}),fX(b,v),IQe(b,{Fragment:ke.Fragment,components:i,ignoreInvalidStyle:!0,jsx:ke.jsx,jsxs:ke.jsxs,passKeys:!0,passNode:!0});function v(h,y,w){if(h.type==="raw"&&w&&typeof y=="number")return c?w.children.splice(y,1):w.children[y]={type:"text",value:h.value},y;if(h.type==="element"){let _;for(_ in RT)if(u$.call(RT,_)&&u$.call(h.properties,_)){const x=h.properties[_],T=RT[_];(T===null||T.includes(h.tagName))&&(h.properties[_]=f(String(x||""),_,h))}}if(h.type==="element"){let _=t?!t.includes(h.tagName):o?o.includes(h.tagName):!1;if(!_&&n&&typeof y=="number"&&(_=!n(h,y,w)),_&&w&&typeof y=="number")return d&&h.children?w.children.splice(y,1,...h.children):w.children.splice(y,1),y}}}function xnt(e){return JQe(e,ynt)}const f$=["unknown","success","warning","fail"],gX=e=>{switch(e){case"error":case"unknown":return"info";case"success":return"success";case"warning":return"warning";case"fail":return"error"}},vX=({title:e,description:t,state:n,details:r})=>{const[l,i]=ge.useState({active:!1}),o=r!=null&&r.parts.length>0;return f$.includes(n)||(console.error(`unexpected state: ${n} (expected one of [${f$.join(", ")}])`),n="unknown"),ke.jsx(ke.Fragment,{children:ke.jsxs(Ia,{children:[ke.jsxs(cM,{severity:gX(n),action:o?ke.jsx(ji,{onClick:()=>i(a=>({active:!a.active})),color:"inherit",size:"small",children:"Details"}):null,children:[ke.jsx(dM,{children:e}),ke.jsx(mX,{children:t})]}),o?ke.jsx(Z1,{in:l.active,mountOnEnter:!0,unmountOnExit:!0,children:ke.jsx(Ia,{style:{padding:"2px"},children:ke.jsx(j5,{details:r,widgetSize:2})})}):ke.jsx(ke.Fragment,{})]})})},wnt=({type:e,availableTypes:t,onChange:n})=>ke.jsx(ke.Fragment,{children:ke.jsx(sb,{variant:"standard",value:e,onChange:r=>n(r.target.value),native:!0,children:t.map(r=>ke.jsx("option",{value:r.id,children:r.title},r.id))})}),_nt=({groupInfo:e,tests:t})=>{const[n,r]=ge.useState({active:!1});return ke.jsx(ke.Fragment,{children:ke.jsxs(Ia,{mt:2,px:2,children:[ke.jsxs(cM,{severity:gX(e.severity??"unknown"),icon:!1,action:ke.jsx(ji,{onClick:()=>r(l=>({active:!l.active})),color:"inherit",size:"small",children:n.active?"Hide":"Show"}),children:[ke.jsx(dM,{children:e.title}),e.description]}),ke.jsx(Z1,{in:n.active,mountOnEnter:!0,unmountOnExit:!0,children:ke.jsx(cr,{container:!0,spacing:2,style:{padding:10,paddingTop:20},children:t.map(l=>ke.jsx(cr,{item:!0,xs:12,children:ke.jsx(vX,{...l})}))})})]})})},Tnt=({type:e,groupsInfo:t,tests:n})=>{function r(a){if(a==="status")return[t.find(c=>c.id===a).values,c=>c.state];const s=t.find(c=>c.id===a);if(s===void 0)throw"unexpected type";return[s.values.find(c=>c.id==="no group")!==void 0?s.values:[...s.values,{id:"no group",title:"No Group",sortIndex:-1,description:"No group of this type was provided"}],c=>c.groups[a]??"no group"]}const[l,i]=r(e),o=n.reduce((a,s)=>(a.set(i(s),[...a.get(i(s))??[],s]),a),new Map);return ke.jsx(ke.Fragment,{children:ke.jsx(cr,{container:!0,spacing:2,children:Array.from(o.entries()).map(([a,s])=>[l.find(u=>u.id===a)??{id:a,title:a},s]).sort((a,s)=>(a[0].sortIndex??0)-(s[0].sortIndex??0)).map(([a,s])=>ke.jsx(cr,{item:!0,xs:12,children:ke.jsx(_nt,{groupInfo:a,tests:s})}))})})},knt=[{id:"none",title:"All tests",values:[]},{id:"status",title:"By test status",values:[{id:"success",title:"Passed tests",sortIndex:3,description:"",severity:"success"},{id:"fail",title:"Failed tests",sortIndex:1,description:"",severity:"fail"},{id:"warning",title:"Failed non-critical tests",sortIndex:2,description:"",severity:"warning"},{id:"error",title:"Tests with execution errors",sortIndex:2,description:"",severity:"error"}]}],Snt=({tests:e,testGroupTypes:t})=>{const[n,r]=Je.useState({group_type:"none"}),l=[];for(let o=0;oc===u)===-1&&l.push(u)}const i=[...knt,...(t??[]).filter(o=>l.findIndex(a=>a===o.id)!==-1)];return ke.jsx(ke.Fragment,{children:ke.jsxs(cr,{container:!0,spacing:2,children:[ke.jsx(cr,{item:!0,xs:12,children:ke.jsx(wnt,{type:n.group_type,availableTypes:i,onChange:o=>r({group_type:o})})}),ke.jsx(cr,{item:!0,xs:12,children:ke.jsx(cr,{container:!0,spacing:2,children:n.group_type==="none"?e.map(o=>ke.jsx(cr,{item:!0,xs:12,children:ke.jsx(vX,{...o})},o.title+o.description)):ke.jsx(Tnt,{type:n.group_type,groupsInfo:i,tests:e})})})]})})},Cnt=e=>ke.jsx(ke.Fragment,{children:ke.jsx(mX,{children:e.text})});function R0(e){return e.palette.mode==="dark"?_l:wl}function L0(e){return e.palette.mode==="light"?wl:_l}const BS=e=>{const[t,n]=ge.useState({open:!1});return ke.jsxs(nu,{elevation:0,onClick:r=>n(l=>({open:!l.open,anchorEl:r.currentTarget})),sx:[{color:r=>L0(r)(r.palette.info.main,.6),backgroundColor:r=>R0(r)(r.palette.info.main,.9)},e.data.state==="success"&&{color:r=>L0(r)(r.palette.success.main,.6),backgroundColor:r=>R0(r)(r.palette.success.main,.9)},e.data.state==="warning"&&{color:r=>L0(r)(r.palette.warning.main,.6),backgroundColor:r=>R0(r)(r.palette.warning.main,.9)},e.data.state==="error"&&{color:r=>L0(r)(r.palette.error.main,.6),backgroundColor:r=>R0(r)(r.palette.error.main,.9)}],children:[ke.jsx(dr,{align:"center",variant:"h6",component:"div",children:e.data.value}),ke.jsx(dr,{align:"center",variant:"body1",component:"div",children:e.data.text}),ke.jsx(kM,{open:t.open,anchorEl:t.anchorEl,anchorOrigin:{horizontal:"left",vertical:"bottom"},children:e.customPopup??ke.jsx(dr,{padding:1,children:e.data.longText})})]})},p$=e=>{const{alertStats:t}=e;return ke.jsx(BS,{data:{value:`${t.triggered.last_24h}`,state:"info",text:"alerts in the last 24 hours",longText:"alerts triggered in the period / alerts triggered in 24 hours / alerts active "},customPopup:ke.jsx(dr,{sx:{pr:1},children:ke.jsxs("ul",{children:[ke.jsxs("li",{children:[t.triggered.period," alerts triggered in the period"]}),ke.jsxs("li",{children:[t.triggered.last_24h," alerts triggered in 24 hours"]}),ke.jsxs("li",{children:[t.active," total active alerts"]})]})})})};function Mnt(e){return e===12?{xs:12,sm:12,md:12,lg:12}:e===6?{xs:12,sm:12,md:6,lg:6}:e===3?{xs:12,sm:6,md:3,lg:3}:{xs:6,sm:3,md:1,lg:1}}const Pnt=e=>{const{size:t,ItemWrapper:n}=e,r=e.children.alertsPosition??"row",{id:l,title:i,details:o,content:a,alerts:s,alertStats:u,insights:c}=e.children,d=s===void 0?!1:s.length>0,f=c===void 0?!1:c.length>0,p=ke.jsx(ale,{sx:{border:"1px solid",borderColor:"#d6d6d6",borderRadius:"4px"},elevation:0,children:ke.jsx(ule,{children:ke.jsxs(cr,{container:!0,spacing:1,direction:"column",children:[r==="row"?ke.jsxs(cr,{container:!0,spacing:1,item:!0,children:[ke.jsxs(cr,{item:!0,xs:d&&r==="row"?9:12,children:[i?ke.jsx(dr,{fontWeight:500,variant:"h5",children:i}):ke.jsx("div",{}),ke.jsx("div",{children:a}),o?ke.jsx(dr,{variant:"subtitle1",children:o}):ke.jsx("div",{})]}),d?ke.jsx(cr,{container:!0,spacing:1,direction:"column",justifyContent:"center",item:!0,xs:3,children:s?ke.jsxs(Je.Fragment,{children:[u?ke.jsx(cr,{item:!0,children:ke.jsx(p$,{alertStats:u})}):ke.jsx("div",{}),s.map(m=>ke.jsx(cr,{item:!0,children:ke.jsx(BS,{data:m})}))]}):ke.jsx("div",{})}):ke.jsx("div",{})]}):ke.jsxs(Je.Fragment,{children:[ke.jsxs(cr,{item:!0,children:[i?ke.jsx(dr,{variant:"h5",children:i}):ke.jsx("div",{}),ke.jsx("div",{children:a}),o?ke.jsx(dr,{variant:"subtitle1",children:o}):ke.jsx("div",{})]}),d?ke.jsx(cr,{item:!0,xs:!0,children:ke.jsx(cr,{container:!0,direction:"row",spacing:1,children:s?ke.jsxs(Je.Fragment,{children:[u?ke.jsx(cr,{item:!0,xs:!0,children:ke.jsx(p$,{alertStats:u})}):ke.jsx("div",{}),s.map(m=>ke.jsx(cr,{item:!0,xs:!0,children:ke.jsx(BS,{data:m})}))]}):ke.jsx("div",{})})}):ke.jsx("div",{})]}),f?c==null?void 0:c.map(m=>ke.jsx(cr,{item:!0,xs:!0,sm:!0,md:!0,children:ke.jsx(Gq,{data:m})})):ke.jsx("div",{})]})})});return ke.jsx(cr,{item:!0,...Mnt(t),children:n?n({id:l,children:p}):p})};class yX extends Je.Component{render(){return ke.jsx(cr,{container:!0,alignItems:"stretch",spacing:1,direction:"row",mt:1,children:this.props.children})}}var J4={},Ont=Cn;Object.defineProperty(J4,"__esModule",{value:!0});var bX=J4.default=void 0,Ant=Ont(Ta()),Dnt=ke,Ent=(0,Ant.default)((0,Dnt.jsx)("path",{d:"m14 7-5 5 5 5V7z"}),"ArrowLeft");bX=J4.default=Ent;var eO={},Rnt=Cn;Object.defineProperty(eO,"__esModule",{value:!0});var xX=eO.default=void 0,Lnt=Rnt(Ta()),Int=ke,$nt=(0,Lnt.default)((0,Int.jsx)("path",{d:"m10 17 5-5-5-5v10z"}),"ArrowRight");xX=eO.default=$nt;const Nnt=e=>{const[t,n]=Je.useState({page:0}),r=e.widgets.slice(t.page*e.pageSize,(t.page+1)*e.pageSize);return ke.jsxs(yX,{children:[r.map((l,i)=>_g(`wi_${i}`,l)),ke.jsxs(cr,{item:!0,xs:12,children:[ke.jsx(ji,{startIcon:ke.jsx(bX,{}),disabled:t.page===0,onClick:()=>n(l=>({page:l.page-1})),children:"Previous"}),ke.jsxs("span",{children:[t.page+1," / ",Math.round(e.widgets.length/e.pageSize)]}),ke.jsx(ji,{endIcon:ke.jsx(xX,{}),disabled:t.page>=e.widgets.length/e.pageSize-1,onClick:()=>n(l=>({page:l.page+1})),children:"Next"})]})]})};function Fnt(e){return e===rv.Small?3:e===rv.Medium?6:(e===rv.Big,12)}function _g(e,t,n){let r=ke.jsx(Yq,{});if(t.type==="counter")r=ke.jsx(zZe,{...t.params});else if(t.type==="percent")r=ke.jsx(BZe,{...t.params});else if(t.type==="big_graph")r=ke.jsx(ub,{...t.params,widgetSize:t.size});else if(t.type==="tabbed_graph")r=ke.jsx(ZZe,{...t.params,widgetSize:t.size});else if(t.type==="tabs")r=ke.jsx(QZe,{...t,widgetSize:t.size,id:"twc_"});else if(t.type==="table")r=ke.jsx(JZe,{...t.params});else if(t.type==="big_table")r=ke.jsx(jZe,{...t.params,widgetSize:t.size});else if(t.type==="group")r=ke.jsx(yX,{children:t.widgets.map((l,i)=>_g(`wi_${i}`,l))});else if(t.type==="rich_data")r=ke.jsx(KZe,{...t.params,widgetSize:t.size});else if(t.type==="list"){const l=t;r=ke.jsx(Nnt,{widgets:l.widgets,pageSize:l.pageSize,widgetSize:t.size})}else t.type==="text"?r=ke.jsx(Cnt,{...t.params}):t.type==="test_suite"&&(r=ke.jsx(Snt,{...t.params}));return ke.jsx(Pnt,{size:Fnt(t.size),ItemWrapper:n,children:{...t,content:r}},e)}const jnt=({widgets:e,ItemWrapper:t})=>ke.jsx(ke.Fragment,{children:e.length>0&&e.map((n,r)=>ke.jsx(Je.Fragment,{children:_g(`wi_${r}`,n,t)},n.id))}),znt=({widgets:e,ItemWrapper:t})=>e.length===0?ke.jsx(dr,{my:3,align:"center",variant:"h4",children:"This dashboard is currently empty. Please add a monitoring panel to start."}):ke.jsx(ke.Fragment,{children:ke.jsx(cr,{container:!0,spacing:3,direction:"row",alignItems:"stretch",children:ke.jsx(jnt,{widgets:e,ItemWrapper:t})})});function Bnt({dashboard:{widgets:e},additionalGraphs:t}){return ke.jsx(DM.Provider,{value:Npe({getAdditionGraphData:n=>{const r=t.get(n);return r?Promise.resolve(r):Promise.reject("No graph found")},getAdditionWidgetData:n=>{const r=t.get(n);return r?Promise.resolve(r):Promise.reject("No graph found")}}),children:ke.jsx(znt,{widgets:e})})}function Wnt(e,t,n){const r=document.getElementById(n);r&&UT.createRoot(r).render(ke.jsx(Je.StrictMode,{children:ke.jsx(bj,{theme:Ipe,children:ke.jsx(Bnt,{dashboard:e,additionalGraphs:t})})}))}window.drawDashboard=Wnt; +`}),n}function T$(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function S$(e,t){const n=utt(e,t),r=n.one(e,void 0),l=Qet(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return l&&i.children.push({type:"text",value:` +`},l),i}function htt(e,t){return e&&"run"in e?async function(n,r){const l=S$(n,t);await e.run(l,r)}:function(n){return S$(n,t||e)}}function k$(e){if(e)throw e}var Fv=Object.prototype.hasOwnProperty,QX=Object.prototype.toString,C$=Object.defineProperty,M$=Object.getOwnPropertyDescriptor,P$=function(t){return typeof Array.isArray=="function"?Array.isArray(t):QX.call(t)==="[object Array]"},O$=function(t){if(!t||QX.call(t)!=="[object Object]")return!1;var n=Fv.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Fv.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var l;for(l in t);return typeof l>"u"||Fv.call(t,l)},A$=function(t,n){C$&&n.name==="__proto__"?C$(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},D$=function(t,n){if(n==="__proto__")if(Fv.call(t,n)){if(M$)return M$(t,n).value}else return;return t[n]},mtt=function e(){var t,n,r,l,i,o,a=arguments[0],s=1,u=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},s=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});so.length;let s;a&&o.push(l);try{s=e.apply(this,o)}catch(u){const c=u;if(a&&n)throw c;return l(c)}a||(s instanceof Promise?s.then(i,l):s instanceof Error?l(s):i(s))}function l(o,...a){n||(n=!0,t(o,...a))}function i(o){l(null,o)}}const bl={basename:ytt,dirname:btt,extname:xtt,join:wtt,sep:"/"};function ytt(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');$g(e);let n=0,r=-1,l=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(i){n=l+1;break}}else r<0&&(i=!0,r=l+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,a=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(i){n=l+1;break}}else o<0&&(i=!0,o=l+1),a>-1&&(e.codePointAt(l)===t.codePointAt(a--)?a<0&&(r=l):(a=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function btt(e){if($g(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function xtt(e){$g(e);let t=e.length,n=-1,r=0,l=-1,i=0,o;for(;t--;){const a=e.codePointAt(t);if(a===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),a===46?l<0?l=t:i!==1&&(i=1):l>-1&&(i=-1)}return l<0||n<0||i===0||i===1&&l===n-1&&l===r+1?"":e.slice(l,n)}function wtt(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Ttt(e,t){let n="",r=0,l=-1,i=0,o=-1,a,s;for(;++o<=e.length;){if(o2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),l=o,i=0;continue}}else if(n.length>0){n="",r=0,l=o,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(l+1,o):n=e.slice(l+1,o),r=o-l-1;l=o,i=0}else a===46&&i>-1?i++:i=-1}return n}function $g(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Stt={cwd:ktt};function ktt(){return"/"}function SC(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Ctt(e){if(typeof e=="string")e=new URL(e);else if(!SC(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Mtt(e)}function Mtt(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[p,...h]=c;const g=r[f][1];TC(g)&&TC(p)&&(p=mT(!0,g,p)),r[f]=[u,p,...h]}}}}const Dtt=new zP().freeze();function bT(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function xT(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function wT(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function R$(e){if(!TC(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function L$(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function X0(e){return Ett(e)?e:new JX(e)}function Ett(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Rtt(e){return typeof e=="string"||Ltt(e)}function Ltt(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const I$={}.hasOwnProperty,Itt="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",$$=[],N$={allowDangerousHtml:!0},$tt=/^(https?|ircs?|mailto|xmpp)$/i,Ntt=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function eK(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",l=e.className,i=e.components,o=e.disallowedElements,a=e.rehypePlugins||$$,s=e.remarkPlugins||$$,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...N$}:N$,c=e.skipHtml,d=e.unwrapDisallowed,f=e.urlTransform||Ftt,p=Dtt().use(yet).use(s).use(htt,u).use(a),h=new JX;typeof r=="string"&&(h.value=r);for(const m of Ntt)Object.hasOwn(e,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+Itt+m.id,void 0);const g=p.parse(h);let b=p.runSync(g,h);return l&&(b={type:"element",tagName:"div",properties:{className:l},children:b.type==="root"?b.children:[b]}),ZX(b,v),JZe(b,{Fragment:Se.Fragment,components:i,ignoreInvalidStyle:!0,jsx:Se.jsx,jsxs:Se.jsxs,passKeys:!0,passNode:!0});function v(m,y,x){if(m.type==="raw"&&x&&typeof y=="number")return c?x.children.splice(y,1):x.children[y]={type:"text",value:m.value},y;if(m.type==="element"){let _;for(_ in fT)if(I$.call(fT,_)&&I$.call(m.properties,_)){const w=m.properties[_],S=fT[_];(S===null||S.includes(m.tagName))&&(m.properties[_]=f(String(w||""),_,m))}}if(m.type==="element"){let _=t?!t.includes(m.tagName):o?o.includes(m.tagName):!1;if(!_&&n&&typeof y=="number"&&(_=!n(m,y,x)),_&&x&&typeof y=="number")return d&&m.children?x.children.splice(y,1,...m.children):x.children.splice(y,1),y}}}function Ftt(e){return vQe(e,$tt)}const F$=["unknown","success","warning","fail"],tK=e=>{switch(e){case"error":case"unknown":return"info";case"success":return"success";case"warning":return"warning";case"fail":return"error"}},nK=({title:e,description:t,state:n,details:r})=>{const[l,i]=ge.useState({active:!1}),o=r!=null&&r.parts.length>0;return F$.includes(n)||(console.error(`unexpected state: ${n} (expected one of [${F$.join(", ")}])`),n="unknown"),Se.jsx(Se.Fragment,{children:Se.jsxs(Ia,{children:[Se.jsxs(P4,{severity:tK(n),action:o?Se.jsx(tl,{onClick:()=>i(a=>({active:!a.active})),color:"inherit",size:"small",children:"Details"}):null,children:[Se.jsx(n5,{children:e}),Se.jsx(eK,{children:t})]}),o?Se.jsx(wb,{in:l.active,mountOnEnter:!0,unmountOnExit:!0,children:Se.jsx(Ia,{style:{padding:"2px"},children:Se.jsx(O4,{details:r,widgetSize:2})})}):Se.jsx(Se.Fragment,{})]})})},jtt=({type:e,availableTypes:t,onChange:n})=>Se.jsx(Se.Fragment,{children:Se.jsx(Tf,{variant:"standard",value:e,onChange:r=>n(r.target.value),native:!0,children:t.map(r=>Se.jsx("option",{value:r.id,children:r.title},r.id))})}),ztt=({groupInfo:e,tests:t})=>{const[n,r]=ge.useState({active:!1});return Se.jsx(Se.Fragment,{children:Se.jsxs(Ia,{mt:2,px:2,children:[Se.jsxs(P4,{severity:tK(e.severity??"unknown"),icon:!1,action:Se.jsx(tl,{onClick:()=>r(l=>({active:!l.active})),color:"inherit",size:"small",children:n.active?"Hide":"Show"}),children:[Se.jsx(n5,{children:e.title}),e.description]}),Se.jsx(wb,{in:n.active,mountOnEnter:!0,unmountOnExit:!0,children:Se.jsx(hr,{container:!0,spacing:2,style:{padding:10,paddingTop:20},children:t.map(l=>Se.jsx(hr,{item:!0,xs:12,children:Se.jsx(nK,{...l})}))})})]})})},Btt=({type:e,groupsInfo:t,tests:n})=>{function r(a){if(a==="status")return[t.find(c=>c.id===a).values,c=>c.state];const s=t.find(c=>c.id===a);if(s===void 0)throw"unexpected type";return[s.values.find(c=>c.id==="no group")!==void 0?s.values:[...s.values,{id:"no group",title:"No Group",sortIndex:-1,description:"No group of this type was provided"}],c=>c.groups[a]??"no group"]}const[l,i]=r(e),o=n.reduce((a,s)=>(a.set(i(s),[...a.get(i(s))??[],s]),a),new Map);return Se.jsx(Se.Fragment,{children:Se.jsx(hr,{container:!0,spacing:2,children:Array.from(o.entries()).map(([a,s])=>[l.find(u=>u.id===a)??{id:a,title:a},s]).sort((a,s)=>(a[0].sortIndex??0)-(s[0].sortIndex??0)).map(([a,s])=>Se.jsx(hr,{item:!0,xs:12,children:Se.jsx(ztt,{groupInfo:a,tests:s})}))})})},Wtt=[{id:"none",title:"All tests",values:[]},{id:"status",title:"By test status",values:[{id:"success",title:"Passed tests",sortIndex:3,description:"",severity:"success"},{id:"fail",title:"Failed tests",sortIndex:1,description:"",severity:"fail"},{id:"warning",title:"Failed non-critical tests",sortIndex:2,description:"",severity:"warning"},{id:"error",title:"Tests with execution errors",sortIndex:2,description:"",severity:"error"}]}],qtt=({tests:e,testGroupTypes:t})=>{const[n,r]=Ke.useState({group_type:"none"}),l=[];for(let o=0;oc===u)===-1&&l.push(u)}const i=[...Wtt,...(t??[]).filter(o=>l.findIndex(a=>a===o.id)!==-1)];return Se.jsx(Se.Fragment,{children:Se.jsxs(hr,{container:!0,spacing:2,children:[Se.jsx(hr,{item:!0,xs:12,children:Se.jsx(jtt,{type:n.group_type,availableTypes:i,onChange:o=>r({group_type:o})})}),Se.jsx(hr,{item:!0,xs:12,children:Se.jsx(hr,{container:!0,spacing:2,children:n.group_type==="none"?e.map(o=>Se.jsx(hr,{item:!0,xs:12,children:Se.jsx(nK,{...o})},o.title+o.description)):Se.jsx(Btt,{type:n.group_type,groupsInfo:i,tests:e})})})]})})},Utt=e=>Se.jsx(Se.Fragment,{children:Se.jsx(eK,{children:e.text})});function K0(e){return e.palette.mode==="dark"?$l:Il}function Z0(e){return e.palette.mode==="light"?Il:$l}const kC=e=>{const[t,n]=ge.useState({open:!1});return Se.jsxs(pu,{elevation:0,onClick:r=>n(l=>({open:!l.open,anchorEl:r.currentTarget})),sx:[{border:"1px solid",borderColor:r=>r.palette.divider},{color:r=>Z0(r)(r.palette.info.main,.6),backgroundColor:r=>K0(r)(r.palette.info.main,.9)},e.data.state==="success"&&{color:r=>Z0(r)(r.palette.success.main,.6),backgroundColor:r=>K0(r)(r.palette.success.main,.9)},e.data.state==="warning"&&{color:r=>Z0(r)(r.palette.warning.main,.6),backgroundColor:r=>K0(r)(r.palette.warning.main,.9)},e.data.state==="error"&&{color:r=>Z0(r)(r.palette.error.main,.6),backgroundColor:r=>K0(r)(r.palette.error.main,.9)}],children:[Se.jsx(mr,{align:"center",variant:"h6",component:"div",children:e.data.value}),Se.jsx(mr,{align:"center",variant:"body1",component:"div",children:e.data.text}),Se.jsx(Ab,{open:t.open,anchorEl:t.anchorEl,anchorOrigin:{horizontal:"left",vertical:"bottom"},children:e.customPopup??Se.jsx(mr,{padding:1,children:e.data.longText})})]})},j$=e=>{const{alertStats:t}=e;return Se.jsx(kC,{data:{value:`${t.triggered.last_24h}`,state:"info",text:"alerts in the last 24 hours",longText:"alerts triggered in the period / alerts triggered in 24 hours / alerts active "},customPopup:Se.jsx(mr,{sx:{pr:1},children:Se.jsxs("ul",{children:[Se.jsxs("li",{children:[t.triggered.period," alerts triggered in the period"]}),Se.jsxs("li",{children:[t.triggered.last_24h," alerts triggered in 24 hours"]}),Se.jsxs("li",{children:[t.active," total active alerts"]})]})})})};function Htt(e){return e===12?{xs:12,sm:12,md:12,lg:12}:e===6?{xs:12,sm:12,md:6,lg:6}:e===3?{xs:12,sm:6,md:3,lg:3}:{xs:6,sm:3,md:1,lg:1}}const Vtt=e=>{const{size:t,ItemWrapper:n}=e,r=e.children.alertsPosition??"row",{id:l,title:i,details:o,content:a,alerts:s,alertStats:u,insights:c}=e.children,d=s===void 0?!1:s.length>0,f=c===void 0?!1:c.length>0,p=Se.jsx(sle,{elevation:0,children:Se.jsx(fle,{children:Se.jsxs(hr,{container:!0,spacing:1,direction:"column",children:[r==="row"?Se.jsxs(hr,{container:!0,spacing:1,item:!0,children:[Se.jsxs(hr,{item:!0,xs:d&&r==="row"?9:12,children:[i?Se.jsx(mr,{fontWeight:500,variant:"h5",children:i}):Se.jsx("div",{}),Se.jsx("div",{children:a}),o?Se.jsx(mr,{variant:"subtitle1",children:o}):Se.jsx("div",{})]}),d?Se.jsx(hr,{container:!0,spacing:1,direction:"column",justifyContent:"center",item:!0,xs:3,children:s?Se.jsxs(Ke.Fragment,{children:[u?Se.jsx(hr,{item:!0,children:Se.jsx(j$,{alertStats:u})}):Se.jsx("div",{}),s.map(h=>Se.jsx(hr,{item:!0,children:Se.jsx(kC,{data:h})}))]}):Se.jsx("div",{})}):Se.jsx("div",{})]}):Se.jsxs(Ke.Fragment,{children:[Se.jsxs(hr,{item:!0,children:[i?Se.jsx(mr,{variant:"h5",children:i}):Se.jsx("div",{}),Se.jsx("div",{children:a}),o?Se.jsx(mr,{variant:"subtitle1",children:o}):Se.jsx("div",{})]}),d?Se.jsx(hr,{item:!0,xs:!0,children:Se.jsx(hr,{container:!0,direction:"row",spacing:1,children:s?Se.jsxs(Ke.Fragment,{children:[u?Se.jsx(hr,{item:!0,xs:!0,children:Se.jsx(j$,{alertStats:u})}):Se.jsx("div",{}),s.map(h=>Se.jsx(hr,{item:!0,xs:!0,children:Se.jsx(kC,{data:h})}))]}):Se.jsx("div",{})})}):Se.jsx("div",{})]}),f?c==null?void 0:c.map(h=>Se.jsx(hr,{item:!0,xs:!0,sm:!0,md:!0,children:Se.jsx(LU,{data:h})})):Se.jsx("div",{})]})})});return Se.jsx(hr,{item:!0,...Htt(t),children:n?n({id:l,children:p}):p})};class rK extends Ke.Component{render(){return Se.jsx(hr,{container:!0,alignItems:"stretch",spacing:1,direction:"row",mt:1,children:this.props.children})}}const Gtt=kr(Se.jsx("path",{d:"m14 7-5 5 5 5z"}),"ArrowLeft"),Ytt=kr(Se.jsx("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight"),Xtt=e=>{const[t,n]=Ke.useState({page:0}),r=e.widgets.slice(t.page*e.pageSize,(t.page+1)*e.pageSize);return Se.jsxs(rK,{children:[r.map((l,i)=>Ng(`wi_${i}`,l)),Se.jsxs(hr,{item:!0,xs:12,children:[Se.jsx(tl,{startIcon:Se.jsx(Gtt,{}),disabled:t.page===0,onClick:()=>n(l=>({page:l.page-1})),children:"Previous"}),Se.jsxs("span",{children:[t.page+1," / ",Math.round(e.widgets.length/e.pageSize)]}),Se.jsx(tl,{endIcon:Se.jsx(Ytt,{}),disabled:t.page>=e.widgets.length/e.pageSize-1,onClick:()=>n(l=>({page:l.page+1})),children:"Next"})]})]})};function Ktt(e){return e===xv.Small?3:e===xv.Medium?6:(e===xv.Big,12)}function Ng(e,t,n){let r=Se.jsx(IU,{});if(t.type==="counter")r=Se.jsx(cZe,{...t.params});else if(t.type==="percent")r=Se.jsx(dZe,{...t.params});else if(t.type==="big_graph")r=Se.jsx(Db,{...t.params,widgetSize:t.size});else if(t.type==="tabbed_graph")r=Se.jsx(mZe,{...t.params,widgetSize:t.size});else if(t.type==="tabs")r=Se.jsx(gZe,{...t,widgetSize:t.size,id:"twc_"});else if(t.type==="table")r=Se.jsx(vZe,{...t.params});else if(t.type==="big_table")r=Se.jsx(uZe,{...t.params,widgetSize:t.size});else if(t.type==="group")r=Se.jsx(rK,{children:t.widgets.map((l,i)=>Ng(`wi_${i}`,l))});else if(t.type==="rich_data")r=Se.jsx(hZe,{...t.params,widgetSize:t.size});else if(t.type==="list"){const l=t;r=Se.jsx(Xtt,{widgets:l.widgets,pageSize:l.pageSize,widgetSize:t.size})}else t.type==="text"?r=Se.jsx(Utt,{...t.params}):t.type==="test_suite"&&(r=Se.jsx(qtt,{...t.params}));return Se.jsx(Vtt,{size:Ktt(t.size),ItemWrapper:n,children:{...t,content:r}},e)}const Ztt=({widgets:e,ItemWrapper:t})=>Se.jsx(Se.Fragment,{children:e.length>0&&e.map((n,r)=>Se.jsx(Ke.Fragment,{children:Ng(`wi_${r}`,n,t)},n.id))}),Qtt=({widgets:e,ItemWrapper:t})=>e.length===0?Se.jsx(mr,{my:3,align:"center",variant:"h4",children:"This dashboard is currently empty. Please add a monitoring panel to start."}):Se.jsx(Se.Fragment,{children:Se.jsx(hr,{container:!0,spacing:3,direction:"row",alignItems:"stretch",children:Se.jsx(Ztt,{widgets:e,ItemWrapper:t})})});function Jtt({dashboard:{widgets:e},additionalGraphs:t}){return Se.jsx(y5.Provider,{value:ope({getAdditionGraphData:n=>{const r=t.get(n);return r?Promise.resolve(r):Promise.reject("No graph found")},getAdditionWidgetData:n=>{const r=t.get(n);return r?Promise.resolve(r):Promise.reject("No graph found")}}),children:Se.jsx(Qtt,{widgets:e})})}function ent(e,t,n){const r=document.getElementById(n);r&&_T.createRoot(r).render(Se.jsx(Ke.StrictMode,{children:Se.jsxs(cz,{theme:npe,children:[Se.jsx(Ule,{}),Se.jsx(Ia,{display:"flex",justifyContent:"flex-end",p:1,children:Se.jsx(rpe,{})}),Se.jsx(Jtt,{dashboard:e,additionalGraphs:t})]})}))}window.drawDashboard=ent; diff --git a/src/evidently/ui/assets/index.html b/src/evidently/ui/assets/index.html index def5eea329..77919863cd 100644 --- a/src/evidently/ui/assets/index.html +++ b/src/evidently/ui/assets/index.html @@ -11,9 +11,9 @@ content="Evidently - ML Monitoring Demo. Hosted example to monitor the performance of a demand forecasting model on a toy dataset." /> Evidently - ML Monitoring Demo - - - + + +
diff --git a/src/evidently/ui/assets/static/css/index-C5isHALn.css b/src/evidently/ui/assets/static/css/index-C5isHALn.css deleted file mode 100644 index 708f606bf7..0000000000 --- a/src/evidently/ui/assets/static/css/index-C5isHALn.css +++ /dev/null @@ -1 +0,0 @@ -.json-view{display:block;color:#4d4d4d;--json-property: #009033;--json-index: #676dff;--json-number: #676dff;--json-string: #b2762e;--json-boolean: #dc155e;--json-null: #dc155e}.json-view .json-view--property{color:var(--json-property)}.json-view .json-view--index{color:var(--json-index)}.json-view .json-view--number{color:var(--json-number)}.json-view .json-view--string{color:var(--json-string)}.json-view .json-view--boolean{color:var(--json-boolean)}.json-view .json-view--null{color:var(--json-null)}.json-view .jv-indent{padding-left:1em}.json-view .jv-chevron{display:inline-block;vertical-align:-20%;cursor:pointer;opacity:.4;width:1em;height:1em}:is(.json-view .jv-chevron:hover,.json-view .jv-size:hover+.jv-chevron){opacity:.8}.json-view .jv-size{cursor:pointer;opacity:.4;font-size:.875em;font-style:italic;margin-left:.5em;vertical-align:-5%;line-height:1}.json-view :is(.json-view--copy,.json-view--edit){display:none;width:1em;height:1em;margin-left:.25em;cursor:pointer}.json-view .json-view--input{width:120px;margin-left:.25em;border-radius:4px;border:1px solid currentColor;padding:0 4px;font-size:87.5%;line-height:1.25;background:transparent}.json-view .json-view--deleting{outline:1px solid #da0000;background-color:#da000011;text-decoration-line:line-through}:is(.json-view:hover,.json-view--pair:hover)>:is(.json-view--copy,.json-view--edit){display:inline-block}.json-view .jv-button{background:transparent;outline:none;border:none;cursor:pointer}.json-view .cursor-pointer{cursor:pointer}.json-view_a11y{color:#545454;--json-property: #aa5d00;--json-index: #007299;--json-number: #007299;--json-string: #008000;--json-boolean: #d91e18;--json-null: #d91e18}.json-view_github{color:#005cc5;--json-property: #005cc5;--json-index: #005cc5;--json-number: #005cc5;--json-string: #032f62;--json-boolean: #005cc5;--json-null: #005cc5}.json-view_vscode{color:#005cc5;--json-property: #0451a5;--json-index: #0000ff;--json-number: #0000ff;--json-string: #a31515;--json-boolean: #0000ff;--json-null: #0000ff}.json-view_atom{color:#383a42;--json-property: #e45649;--json-index: #986801;--json-number: #986801;--json-string: #50a14f;--json-boolean: #0184bc;--json-null: #0184bc}.json-view_winter-is-coming{color:#0431fa;--json-property: #3a9685;--json-index: #ae408b;--json-number: #ae408b;--json-string: #8123a9;--json-boolean: #0184bc;--json-null: #0184bc}.json-view{--json-property: #ed0400} diff --git a/src/evidently/ui/assets/static/css/index-CJbKDbyR.css b/src/evidently/ui/assets/static/css/index-CJbKDbyR.css new file mode 100644 index 0000000000..a67df3a46f --- /dev/null +++ b/src/evidently/ui/assets/static/css/index-CJbKDbyR.css @@ -0,0 +1 @@ +body{margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale} diff --git a/src/evidently/ui/assets/static/css/index-_rehp6Bp.css b/src/evidently/ui/assets/static/css/index-_rehp6Bp.css deleted file mode 100644 index 32e457e9b2..0000000000 --- a/src/evidently/ui/assets/static/css/index-_rehp6Bp.css +++ /dev/null @@ -1 +0,0 @@ -html,body{overflow-x:clip}body{margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale} diff --git a/src/evidently/ui/assets/static/img/logo.png b/src/evidently/ui/assets/static/img/logo.png deleted file mode 100644 index f902a1e239..0000000000 Binary files a/src/evidently/ui/assets/static/img/logo.png and /dev/null differ diff --git a/src/evidently/ui/assets/static/js/ContentCopy-Dg3beyqW.js b/src/evidently/ui/assets/static/js/ContentCopy-Dg3beyqW.js deleted file mode 100644 index 264c44b765..0000000000 --- a/src/evidently/ui/assets/static/js/ContentCopy-Dg3beyqW.js +++ /dev/null @@ -1 +0,0 @@ -import{r as t,i as r}from"./createSvgIcon-BFOkCGLU.js";import{j as a}from"./vendor-D9wnXojU.js";var e={},o=r;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,v=o(t()),i=a,n=(0,v.default)((0,i.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"}),"ContentCopy");u=e.default=n;export{u as d}; diff --git a/src/evidently/ui/assets/static/js/DashboardContent-BF_kxHXz.js b/src/evidently/ui/assets/static/js/DashboardContent-CtUoNzcD.js similarity index 54% rename from src/evidently/ui/assets/static/js/DashboardContent-BF_kxHXz.js rename to src/evidently/ui/assets/static/js/DashboardContent-CtUoNzcD.js index 8b7eeb5afe..46cfc174a9 100644 --- a/src/evidently/ui/assets/static/js/DashboardContent-BF_kxHXz.js +++ b/src/evidently/ui/assets/static/js/DashboardContent-CtUoNzcD.js @@ -1,17 +1,17 @@ -var JD=Object.defineProperty;var QD=(e,t,r)=>t in e?JD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Lc=(e,t,r)=>(QD(e,typeof t!="symbol"?t+"":t,r),r);import{ao as ir,r as $e,ap as Or,j as je,aq as qn,ar as e9,as as t9,at as n9,au as Ma,av as r9,aw as a9,ax as i9,ay as o9,az as l9,aA as s9,aB as u9,aC as c9,aD as f9,aE as d9,aF as h9,aG as p9,aH as g9,aI as m9,aJ as v9,aK as xn,aL as _r,aM as Tr,aN as _n,T as Cr,aO as Gt,aP as Af,aQ as Vn,aR as Md,aS as yr,aT as fr,aU as y9,aV as Sd,aW as Cd,aX as Z5,aY as K5,aZ as b9,a_ as xl,a$ as x9,a6 as Od,b0 as no,I as Fl,b1 as w9,b2 as J5,b3 as _9,b4 as oe,G as Jn,X as di,b5 as T9,ab as k9,a2 as Q5,b6 as M9,b7 as lg,ac as S9,b8 as C9,b9 as O9,ba as B2,bb as A9,bc as dy,$ as eS,bd as P9,a0 as S0,be as D9,bf as E9,bg as R9,bh as L9,bi as I9,bj as F9,bk as N9,bl as j9,bm as $9,bn as z2,bo as B9,bp as hy,h as z9,R as et,bq as q9,br as W9,bs as U9,bt as H9,bu as V9,bv as Y9,bw as G9,bx as X9,B as Qr,by as Z9,A as py,a as gy,bz as K9,bA as tS,Q as J9,ag as nS,ah as rS,ai as Pf,aj as Hi,al as aS,s as my,bB as Q9,q as eE,bC as iS,bD as oS,bE as tE,bF as nE}from"./vendor-D9wnXojU.js";import{u as lS}from"./DashboardViewParams-VueHZ5oJ.js";import{i as vn,r as Xr}from"./createSvgIcon-BFOkCGLU.js";import{E as rE}from"./Edit-BcFhWXpJ.js";var cf=(e=>(e[e.Small=0]="Small",e[e.Medium=1]="Medium",e[e.Big=2]="Big",e))(cf||{}),sS={exports:{}};(function(e,t){/*! For license information please see plotly-cartesian.min.js.LICENSE.txt */(function(r,i){e.exports=i()})(self,function(){return function(){var r={98847:function(o,a,n){var l=n(71828),f={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var s in f){var c=s.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");l.addStyleRule(c,f[s])}},98222:function(o,a,n){o.exports=n(82887)},27206:function(o,a,n){o.exports=n(60822)},5224:function(o,a,n){o.exports=n(83832)},59509:function(o,a,n){o.exports=n(72201)},49866:function(o,a,n){o.exports=n(99442)},19548:function(o,a,n){o.exports=n(8729)},61039:function(o,a,n){o.exports=n(14382)},24296:function(o,a,n){o.exports=n(43102)},58872:function(o,a,n){o.exports=n(92165)},65591:function(o,a,n){o.exports=n(36071)},69738:function(o,a,n){o.exports=n(43905)},92650:function(o,a,n){o.exports=n(35902)},73434:function(o,a,n){o.exports=n(94507)},760:function(o,a,n){var l=n(19548);l.register([n(27206),n(5224),n(58872),n(65591),n(69738),n(92650),n(49866),n(25743),n(6197),n(73434),n(54201),n(98222),n(61039),n(24296),n(66398),n(59509)]),o.exports=l},54201:function(o,a,n){o.exports=n(58810)},25743:function(o,a,n){o.exports=n(52979)},66398:function(o,a,n){o.exports=n(32275)},6197:function(o,a,n){o.exports=n(47462)},82884:function(o){o.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},50215:function(o,a,n){var l=n(82884),f=n(41940),s=n(85555),c=n(44467).templatedArray;n(24695),o.exports=c("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:f({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:l.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:l.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",s.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",s.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",s.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",s.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:f({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},3749:function(o,a,n){var l=n(71828),f=n(89298),s=n(92605).draw;function c(h){var p=h._fullLayout;l.filterVisible(p.annotations).forEach(function(m){var y=f.getFromId(h,m.xref),v=f.getFromId(h,m.yref),g=f.getRefType(m.xref),b=f.getRefType(m.yref);m._extremes={},g==="range"&&d(m,y),b==="range"&&d(m,v)})}function d(h,p){var m,y=p._id,v=y.charAt(0),g=h[v],b=h["a"+v],x=h[v+"ref"],_=h["a"+v+"ref"],w=h["_"+v+"padplus"],k=h["_"+v+"padminus"],T={x:1,y:-1}[v]*h[v+"shift"],M=3*h.arrowsize*h.arrowwidth||0,S=M+T,C=M-T,P=3*h.startarrowsize*h.arrowwidth||0,D=P+T,O=P-T;if(_===x){var R=f.findExtremes(p,[p.r2c(g)],{ppadplus:S,ppadminus:C}),F=f.findExtremes(p,[p.r2c(b)],{ppadplus:Math.max(w,D),ppadminus:Math.max(k,O)});m={min:[R.min[0],F.min[0]],max:[R.max[0],F.max[0]]}}else D=b?D+b:D,O=b?O-b:O,m=f.findExtremes(p,[p.r2c(g)],{ppadplus:Math.max(w,S,D),ppadminus:Math.max(k,C,O)});h._extremes[y]=m}o.exports=function(h){var p=h._fullLayout;if(l.filterVisible(p.annotations).length&&h._fullData.length)return l.syncOrAsync([s,c],h)}},44317:function(o,a,n){var l=n(71828),f=n(73972),s=n(44467).arrayEditor;function c(h,p){var m,y,v,g,b,x,_,w=h._fullLayout.annotations,k=[],T=[],M=[],S=(p||[]).length;for(m=0;m0||m.explicitOff.length>0},onClick:function(h,p){var m,y,v=c(h,p),g=v.on,b=v.off.concat(v.explicitOff),x={},_=h._fullLayout.annotations;if(g.length||b.length){for(m=0;m.6666666666666666?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[nt]}for(var we=!1,ke=["x","y"],Ae=0;Ae1)&&(Ye===qe?((Je=at.r2fraction(S["a"+Ue]))<0||Je>1)&&(we=!0):we=!0),Ee=at._offset+at.r2p(S[Ue]),Ie=.5}else{var ut=kt==="domain";Ue==="x"?(Re=S[Ue],Ee=ut?at._offset+at._length*Re:Ee=z.l+z.w*Re):(Re=1-S[Ue],Ee=ut?at._offset+at._length*Re:Ee=z.t+z.h*Re),Ie=S.showarrow?.5:Re}if(S.showarrow){it.head=Ee;var pt=S["a"+Ue];if(Be=ct*be(.5,S.xanchor)-bt*be(.5,S.yanchor),Ye===qe){var It=h.getRefType(Ye);It==="domain"?(Ue==="y"&&(pt=1-pt),it.tail=at._offset+at._length*pt):It==="paper"?Ue==="y"?(pt=1-pt,it.tail=z.t+z.h*pt):it.tail=z.l+z.w*pt:it.tail=at._offset+at.r2p(pt),De=Be}else it.tail=Ee+pt,De=Be+pt;it.text=it.tail+Be;var Mt=A[Ue==="x"?"width":"height"];if(qe==="paper"&&(it.head=c.constrain(it.head,1,Mt-1)),Ye==="pixel"){var zt=-Math.max(it.tail-3,it.text),wt=Math.min(it.tail+3,it.text)-Mt;zt>0?(it.tail+=zt,it.text+=zt):wt>0&&(it.tail-=wt,it.text-=wt)}it.tail+=Qe,it.head+=Qe}else De=Be=ze*be(Ie,Ne),it.text=Ee+Be;it.text+=Qe,Be+=Qe,De+=Qe,S["_"+Ue+"padplus"]=ze/2+De,S["_"+Ue+"padminus"]=ze/2-De,S["_"+Ue+"size"]=ze,S["_"+Ue+"shift"]=Be}if(we)ee.remove();else{var ve=0,_e=0;if(S.align!=="left"&&(ve=(de-J)*(S.align==="center"?.5:1)),S.valign!=="top"&&(_e=(xe-ne)*(S.valign==="middle"?.5:1)),ce)Me.select("svg").attr({x:Y+ve-1,y:Y+_e}).call(m.setClipUrl,X?W:null,M);else{var Ve=Y+_e-ye.top,We=Y+ve-ye.left;se.call(v.positionText,We,Ve).call(m.setClipUrl,X?W:null,M)}re.select("rect").call(m.setRect,Y,Y,de,xe),Z.call(m.setRect,U/2,U/2,ue-U,ge-U),ee.call(m.setTranslate,Math.round(G.x.text-ue/2),Math.round(G.y.text-ge/2)),H.attr({transform:"rotate("+L+","+G.x.text+","+G.y.text+")"});var Ze,Ge=function(Ke,nt){q.selectAll(".annotation-arrow-g").remove();var st=G.x.head,mt=G.y.head,tt=G.x.tail+Ke,Ft=G.y.tail+nt,Vt=G.x.text+Ke,St=G.y.text+nt,Nt=c.rotationXYMatrix(L,Vt,St),Dt=c.apply2DTransform(Nt),gt=c.apply2DTransform2(Nt),ht=+Z.attr("width"),yt=+Z.attr("height"),qt=Vt-.5*ht,Et=qt+ht,jt=St-.5*yt,Tt=jt+yt,Ot=[[qt,jt,qt,Tt],[qt,Tt,Et,Tt],[Et,Tt,Et,jt],[Et,jt,qt,jt]].map(gt);if(!Ot.reduce(function(an,sn){return an^!!c.segmentsIntersect(st,mt,st+1e6,mt+1e6,sn[0],sn[1],sn[2],sn[3])},!1)){Ot.forEach(function(an){var sn=c.segmentsIntersect(tt,Ft,st,mt,an[0],an[1],an[2],an[3]);sn&&(tt=sn.x,Ft=sn.y)});var At=S.arrowwidth,Lt=S.arrowcolor,Rt=S.arrowside,$t=q.append("g").style({opacity:p.opacity(Lt)}).classed("annotation-arrow-g",!0),Yt=$t.append("path").attr("d","M"+tt+","+Ft+"L"+st+","+mt).style("stroke-width",At+"px").call(p.stroke,p.rgb(Lt));if(_(Yt,Rt,S),B.annotationPosition&&Yt.node().parentNode&&!P){var Xt=st,Bt=mt;if(S.standoff){var Wt=Math.sqrt(Math.pow(st-tt,2)+Math.pow(mt-Ft,2));Xt+=S.standoff*(tt-st)/Wt,Bt+=S.standoff*(Ft-mt)/Wt}var tn,cn,ln=$t.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(tt-Xt)+","+(Ft-Bt),transform:d(Xt,Bt)}).style("stroke-width",At+6+"px").call(p.stroke,"rgba(0,0,0,0)").call(p.fill,"rgba(0,0,0,0)");b.init({element:ln.node(),gd:M,prepFn:function(){var an=m.getTranslate(ee);tn=an.x,cn=an.y,D&&D.autorange&&j(D._name+".autorange",!0),O&&O.autorange&&j(O._name+".autorange",!0)},moveFn:function(an,sn){var Zt=Dt(tn,cn),pn=Zt[0]+an,nn=Zt[1]+sn;ee.call(m.setTranslate,pn,nn),N("x",k(D,an,"x",z,S)),N("y",k(O,sn,"y",z,S)),S.axref===S.xref&&N("ax",k(D,an,"ax",z,S)),S.ayref===S.yref&&N("ay",k(O,sn,"ay",z,S)),$t.attr("transform",d(an,sn)),H.attr({transform:"rotate("+L+","+pn+","+nn+")"})},doneFn:function(){f.call("_guiRelayout",M,E());var an=document.querySelector(".js-notes-box-panel");an&&an.redraw(an.selectedObj)}})}}};S.showarrow&&Ge(0,0),V&&b.init({element:ee.node(),gd:M,prepFn:function(){Ze=H.attr("transform")},moveFn:function(Ke,nt){var st="pointer";if(S.showarrow)S.axref===S.xref?N("ax",k(D,Ke,"ax",z,S)):N("ax",S.ax+Ke),S.ayref===S.yref?N("ay",k(O,nt,"ay",z.w,S)):N("ay",S.ay+nt),Ge(Ke,nt);else{if(P)return;var mt,tt;if(D)mt=k(D,Ke,"x",z,S);else{var Ft=S._xsize/z.w,Vt=S.x+(S._xshift-S.xshift)/z.w-Ft/2;mt=b.align(Vt+Ke/z.w,Ft,0,1,S.xanchor)}if(O)tt=k(O,nt,"y",z,S);else{var St=S._ysize/z.h,Nt=S.y-(S._yshift+S.yshift)/z.h-St/2;tt=b.align(Nt-nt/z.h,St,0,1,S.yanchor)}N("x",mt),N("y",tt),D&&O||(st=b.getCursor(D?.5:mt,O?.5:tt,S.xanchor,S.yanchor))}H.attr({transform:d(Ke,nt)+Ze}),g(ee,st)},clickFn:function(Ke,nt){S.captureevents&&M.emit("plotly_clickannotation",pe(nt))},doneFn:function(){g(ee),f.call("_guiRelayout",M,E());var Ke=document.querySelector(".js-notes-box-panel");Ke&&Ke.redraw(Ke.selectedObj)}})}}}o.exports={draw:function(M){var S=M._fullLayout;S._infolayer.selectAll(".annotation").remove();for(var C=0;C=0,P=y.indexOf("end")>=0,D=k.backoff*M+v.standoff,O=T.backoff*S+v.startstandoff;if(w.nodeName==="line"){g={x:+m.attr("x1"),y:+m.attr("y1")},b={x:+m.attr("x2"),y:+m.attr("y2")};var R=g.x-b.x,F=g.y-b.y;if(_=(x=Math.atan2(F,R))+Math.PI,D&&O&&D+O>Math.sqrt(R*R+F*F))return void q();if(D){if(D*D>R*R+F*F)return void q();var A=D*Math.cos(x),z=D*Math.sin(x);b.x+=A,b.y+=z,m.attr({x2:b.x,y2:b.y})}if(O){if(O*O>R*R+F*F)return void q();var B=O*Math.cos(x),$=O*Math.sin(x);g.x-=B,g.y-=$,m.attr({x1:g.x,y1:g.y})}}else if(w.nodeName==="path"){var j=w.getTotalLength(),N="";if(j1){v=!0;break}}v?c.fullLayout._infolayer.select(".annotation-"+c.id+'[data-index="'+m+'"]').remove():(y._pdata=f(c.glplot.cameraParams,[d.xaxis.r2l(y.x)*h[0],d.yaxis.r2l(y.y)*h[1],d.zaxis.r2l(y.z)*h[2]]),l(c.graphDiv,y,m,c.id,y._xa,y._ya))}}},2468:function(o,a,n){var l=n(73972),f=n(71828);o.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:n(26997)}}},layoutAttributes:n(26997),handleDefaults:n(20226),includeBasePlot:function(s,c){var d=l.subplotsRegistry.gl3d;if(d)for(var h=d.attrRegex,p=Object.keys(s),m=0;m=0)))return y;if(_===3)b[_]>1&&(b[_]=1);else if(b[_]>=1)return y}var w=Math.round(255*b[0])+", "+Math.round(255*b[1])+", "+Math.round(255*b[2]);return x?"rgba("+w+", "+b[3]+")":"rgb("+w+")"}c.tinyRGB=function(y){var v=y.toRgb();return"rgb("+Math.round(v.r)+", "+Math.round(v.g)+", "+Math.round(v.b)+")"},c.rgb=function(y){return c.tinyRGB(l(y))},c.opacity=function(y){return y?l(y).getAlpha():0},c.addOpacity=function(y,v){var g=l(y).toRgb();return"rgba("+Math.round(g.r)+", "+Math.round(g.g)+", "+Math.round(g.b)+", "+v+")"},c.combine=function(y,v){var g=l(y).toRgb();if(g.a===1)return l(y).toRgbString();var b=l(v||p).toRgb(),x=b.a===1?b:{r:255*(1-b.a)+b.r*b.a,g:255*(1-b.a)+b.g*b.a,b:255*(1-b.a)+b.b*b.a},_={r:x.r*(1-g.a)+g.r*g.a,g:x.g*(1-g.a)+g.g*g.a,b:x.b*(1-g.a)+g.b*g.a};return l(_).toRgbString()},c.contrast=function(y,v,g){var b=l(y);return b.getAlpha()!==1&&(b=l(c.combine(y,p))),(b.isDark()?v?b.lighten(v):p:g?b.darken(g):h).toString()},c.stroke=function(y,v){var g=l(v);y.style({stroke:c.tinyRGB(g),"stroke-opacity":g.getAlpha()})},c.fill=function(y,v){var g=l(v);y.style({fill:c.tinyRGB(g),"fill-opacity":g.getAlpha()})},c.clean=function(y){if(y&&typeof y=="object"){var v,g,b,x,_=Object.keys(y);for(v=0;v<_.length;v++)if(x=y[b=_[v]],b.substr(b.length-5)==="color")if(Array.isArray(x))for(g=0;g0?wt>=Ze:wt<=Ze));ve++)wt>Ke&&wt0?wt>=Ze:wt<=Ze));ve++)wt>zt[0]&&wt1){var bt=Math.pow(10,Math.floor(Math.log(ct)/Math.LN10));at*=bt*p.roundUp(ct/bt,[2,5,10]),(Math.abs(J.start)/J.size+1e-6)%1<2e-6&&(qe.tick0=0)}qe.dtick=at}qe.domain=E?[Be+Y/se.h,Be+we-Y/se.h]:[Be+Q/se.w,Be+we-Q/se.w],qe.setScale(),$.attr("transform",m(Math.round(se.l),Math.round(se.t)));var ze,Ne=$.select("."+O.cbtitleunshift).attr("transform",m(-Math.round(se.l),-Math.round(se.t))),Qe=qe.ticklabelposition,it=qe.title.font.size,kt=$.select("."+O.cbaxis),Je=0,ut=0;function pt(It,Mt){var zt={propContainer:qe,propName:j._propPrefix+"title",traceIndex:j._traceIndex,_meta:j._meta,placeholder:le._dfltTitle.colorbar,containerGroup:$.select("."+O.cbtitle)},wt=It.charAt(0)==="h"?It.substr(1):"h"+It;$.selectAll("."+wt+",."+wt+"-math-group").remove(),x.draw(N,It,y(zt,Mt||{}))}return p.syncOrAsync([s.previousPromises,function(){var It,Mt;(E&&Ye||!E&&!Ye)&&(Oe==="top"&&(It=Q+se.l+ke*Z,Mt=Y+se.t+Ae*(1-Be-we)+3+.75*it),Oe==="bottom"&&(It=Q+se.l+ke*Z,Mt=Y+se.t+Ae*(1-Be)-3-.25*it),Oe==="right"&&(Mt=Y+se.t+Ae*X+3+.75*it,It=Q+se.l+ke*Be),pt(qe._id+"title",{attributes:{x:It,y:Mt,"text-anchor":E?"start":"middle"}}))},function(){if(!E&&!Ye||E&&Ye){var It,Mt=$.select("."+O.cbtitle),zt=Mt.select("text"),wt=[-H/2,H/2],ve=Mt.select(".h"+qe._id+"title-math-group").node(),_e=15.6;if(zt.node()&&(_e=parseInt(zt.node().style.fontSize,10)*C),ve?(It=g.bBox(ve),ut=It.width,(Je=It.height)>_e&&(wt[1]-=(Je-_e)/2)):zt.node()&&!zt.classed(O.jsPlaceholder)&&(It=g.bBox(zt.node()),ut=It.width,Je=It.height),E){if(Je){if(Je+=5,Oe==="top")qe.domain[1]-=Je/se.h,wt[1]*=-1;else{qe.domain[0]+=Je/se.h;var Ve=_.lineCount(zt);wt[1]+=(1-Ve)*_e}Mt.attr("transform",m(wt[0],wt[1])),qe.setScale()}}else ut&&(Oe==="right"&&(qe.domain[0]+=(ut+it/2)/se.w),Mt.attr("transform",m(wt[0],wt[1])),qe.setScale())}$.selectAll("."+O.cbfills+",."+O.cblines).attr("transform",E?m(0,Math.round(se.h*(1-qe.domain[1]))):m(Math.round(se.w*qe.domain[0]),0)),kt.attr("transform",E?m(0,Math.round(-se.t)):m(Math.round(-se.l),0));var We=$.select("."+O.cbfills).selectAll("rect."+O.cbfill).attr("style","").data(de);We.enter().append("rect").classed(O.cbfill,!0).attr("style",""),We.exit().remove();var Ze=Me.map(qe.c2p).map(Math.round).sort(function(mt,tt){return mt-tt});We.each(function(mt,tt){var Ft=[tt===0?Me[0]:(de[tt]+de[tt-1])/2,tt===de.length-1?Me[1]:(de[tt]+de[tt+1])/2].map(qe.c2p).map(Math.round);E&&(Ft[1]=p.constrain(Ft[1]+(Ft[1]>Ft[0])?1:-1,Ze[0],Ze[1]));var Vt=l.select(this).attr(E?"x":"y",Ee).attr(E?"y":"x",l.min(Ft)).attr(E?"width":"height",Math.max(ue,2)).attr(E?"height":"width",Math.max(l.max(Ft)-l.min(Ft),2));if(j._fillgradient)g.gradient(Vt,N,j._id,E?"vertical":"horizontalreversed",j._fillgradient,"fill");else{var St=ye(mt).replace("e-","");Vt.attr("fill",f(St).toHexString())}});var Ge=$.select("."+O.cblines).selectAll("path."+O.cbline).data(Te.color&&Te.width?xe:[]);Ge.enter().append("path").classed(O.cbline,!0),Ge.exit().remove(),Ge.each(function(mt){var tt=Ee,Ft=Math.round(qe.c2p(mt))+Te.width/2%1;l.select(this).attr("d","M"+(E?tt+","+Ft:Ft+","+tt)+(E?"h":"v")+ue).call(g.lineGroupStyle,Te.width,ce(mt),Te.dash)}),kt.selectAll("g."+qe._id+"tick,path").remove();var Ke=Ee+ue+(H||0)/2-(j.ticks==="outside"?1:0),nt=d.calcTicks(qe),st=d.getTickSigns(qe)[2];return d.drawTicks(N,qe,{vals:qe.ticks==="inside"?d.clipEnds(qe,nt):nt,layer:kt,path:d.makeTickPath(qe,Ke,st),transFn:d.makeTransTickFn(qe)}),d.drawLabels(N,qe,{vals:nt,layer:kt,transFn:d.makeTransTickLabelFn(qe),labelFns:d.makeLabelFns(qe,Ke)})},function(){if(E&&!Ye||!E&&Ye){var It,Mt,zt=qe.position||0,wt=qe._offset+qe._length/2;if(Oe==="right")Mt=wt,It=se.l+ke*zt+10+it*(qe.showticklabels?1:.5);else if(It=wt,Oe==="bottom"&&(Mt=se.t+Ae*zt+10+(Qe.indexOf("inside")===-1?qe.tickfont.size:0)+(qe.ticks!=="intside"&&j.ticklen||0)),Oe==="top"){var ve=Se.text.split("
").length;Mt=se.t+Ae*zt+10-ue-C*it*ve}pt((E?"h":"v")+qe._id+"title",{avoid:{selection:l.select(N).selectAll("g."+qe._id+"tick"),side:Oe,offsetTop:E?0:se.t,offsetLeft:E?se.l:0,maxShift:E?le.width:le.height},attributes:{x:It,y:Mt,"text-anchor":"middle"},transform:{rotate:E?-90:0,offset:0}})}},s.previousPromises,function(){var It,Mt=ue+H/2;Qe.indexOf("inside")===-1&&(It=g.bBox(kt.node()),Mt+=E?It.width:It.height),ze=Ne.select("text");var zt=0,wt=E&&Oe==="top",ve=!E&&Oe==="right",_e=0;if(ze.node()&&!ze.classed(O.jsPlaceholder)){var Ve,We=Ne.select(".h"+qe._id+"title-math-group").node();We&&(E&&Ye||!E&&!Ye)?(zt=(It=g.bBox(We)).width,Ve=It.height):(zt=(It=g.bBox(Ne.node())).right-se.l-(E?Ee:Ue),Ve=It.bottom-se.t-(E?Ue:Ee),E||Oe!=="top"||(Mt+=It.height,_e=It.height)),ve&&(ze.attr("transform",m(zt/2+it/2,0)),zt*=2),Mt=Math.max(Mt,E?zt:Ve)}var Ze=2*(E?Q:Y)+Mt+V+H/2,Ge=0;!E&&Se.text&&U==="bottom"&&X<=0&&(Ze+=Ge=Ze/2,_e+=Ge),le._hColorbarMoveTitle=Ge,le._hColorbarMoveCBTitle=_e;var Ke=V+H,nt=(E?Ee:Ue)-Ke/2-(E?Q:0),st=(E?Ue:Ee)-(E?be:Y+_e-Ge);$.select("."+O.cbbg).attr("x",nt).attr("y",st).attr(E?"width":"height",Math.max(Ze-Ge,2)).attr(E?"height":"width",Math.max(be+Ke,2)).call(b.fill,te).call(b.stroke,j.bordercolor).style("stroke-width",V);var mt=ve?Math.max(zt-10,0):0;$.selectAll("."+O.cboutline).attr("x",(E?Ee:Ue+Q)+mt).attr("y",(E?Ue+Y-be:Ee)+(wt?Je:0)).attr(E?"width":"height",Math.max(ue,2)).attr(E?"height":"width",Math.max(be-(E?2*Y+Je:2*Q+mt),2)).call(b.stroke,j.outlinecolor).style({fill:"none","stroke-width":H});var tt=E?De*Ze:0,Ft=E?0:(1-Re)*Ze-_e;if(tt=ie?se.l-tt:-tt,Ft=re?se.t-Ft:-Ft,$.attr("transform",m(tt,Ft)),!E&&(V||f(te).getAlpha()&&!f.equals(le.paper_bgcolor,te))){var Vt=kt.selectAll("text"),St=Vt[0].length,Nt=$.select("."+O.cbbg).node(),Dt=g.bBox(Nt),gt=g.getTranslate($);Vt.each(function(Rt,$t){var Yt=St-1;if($t===0||$t===Yt){var Xt,Bt=g.bBox(this),Wt=g.getTranslate(this);if($t===Yt){var tn=Bt.right+Wt.x;(Xt=Dt.right+gt.x+Ue-V-2+Z-tn)>0&&(Xt=0)}else if($t===0){var cn=Bt.left+Wt.x;(Xt=Dt.left+gt.x+Ue+V+2-cn)<0&&(Xt=0)}Xt&&(St<3?this.setAttribute("transform","translate("+Xt+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ht={},yt=P[ee],qt=D[ee],Et=P[U],jt=D[U],Tt=Ze-ue;E?(G==="pixels"?(ht.y=X,ht.t=be*Et,ht.b=be*jt):(ht.t=ht.b=0,ht.yt=X+W*Et,ht.yb=X-W*jt),q==="pixels"?(ht.x=Z,ht.l=Ze*yt,ht.r=Ze*qt):(ht.l=Tt*yt,ht.r=Tt*qt,ht.xl=Z-L*yt,ht.xr=Z+L*qt)):(G==="pixels"?(ht.x=Z,ht.l=be*yt,ht.r=be*qt):(ht.l=ht.r=0,ht.xl=Z+W*yt,ht.xr=Z-W*qt),q==="pixels"?(ht.y=1-X,ht.t=Ze*Et,ht.b=Ze*jt):(ht.t=Tt*Et,ht.b=Tt*jt,ht.yt=X-L*Et,ht.yb=X+L*jt));var Ot=j.y<.5?"b":"t",At=j.x<.5?"l":"r";N._fullLayout._reservedMargin[j._id]={};var Lt={r:le.width-nt-tt,l:nt+ht.r,b:le.height-st-Ft,t:st+ht.b};ie&&re?s.autoMargin(N,j._id,ht):ie?N._fullLayout._reservedMargin[j._id][Ot]=Lt[Ot]:re||E?N._fullLayout._reservedMargin[j._id][At]=Lt[At]:N._fullLayout._reservedMargin[j._id][Ot]=Lt[Ot]}],N)}(z,A,R);B&&B.then&&(R._promises||[]).push(B),R._context.edits.colorbarPosition&&function($,j,N){var E,W,G,L=j.orientation==="v",q=N._fullLayout._size;h.init({element:$.node(),gd:N,prepFn:function(){E=$.attr("transform"),v($)},moveFn:function(H,V){$.attr("transform",E+m(H,V)),W=h.align((L?j._uFrac:j._vFrac)+H/q.w,L?j._thickFrac:j._lenFrac,0,1,j.xanchor),G=h.align((L?j._vFrac:1-j._uFrac)-V/q.h,L?j._lenFrac:j._thickFrac,0,1,j.yanchor);var te=h.getCursor(W,G,j.xanchor,j.yanchor);v($,te)},doneFn:function(){if(v($),W!==void 0&&G!==void 0){var H={};H[j._propPrefix+"x"]=W,H[j._propPrefix+"y"]=G,j._traceIndex!==void 0?c.call("_guiRestyle",N,H,j._traceIndex):c.call("_guiRelayout",N,H)}}})}(z,A,R)}),F.exit().each(function(A){s.autoMargin(R,A._id)}).remove(),F.order()}}},76228:function(o,a,n){var l=n(71828);o.exports=function(f){return l.isPlainObject(f.colorbar)}},12311:function(o,a,n){o.exports={moduleType:"component",name:"colorbar",attributes:n(63583),supplyDefaults:n(62499),draw:n(98981).draw,hasColorbar:n(76228)}},50693:function(o,a,n){var l=n(63583),f=n(30587).counter,s=n(78607),c=n(63282).scales;function d(h){return"`"+h+"`"}s(c),o.exports=function(h,p){h=h||"";var m,y=(p=p||{}).cLetter||"c",v=("onlyIfNumerical"in p&&p.onlyIfNumerical,"noScale"in p?p.noScale:h==="marker.line"),g="showScaleDflt"in p?p.showScaleDflt:y==="z",b=typeof p.colorscaleDflt=="string"?c[p.colorscaleDflt]:null,x=p.editTypeOverride||"",_=h?h+".":"";"colorAttr"in p?(m=p.colorAttr,p.colorAttr):d(_+(m={z:"z",c:"color"}[y]));var w=y+"auto",k=y+"min",T=y+"max",M=y+"mid",S={};S[k]=S[T]=void 0;var C={};C[w]=!1;var P={};return m==="color"&&(P.color={valType:"color",arrayOk:!0,editType:x||"style"},p.anim&&(P.color.anim=!0)),P[w]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:S},P[k]={valType:"number",dflt:null,editType:x||"plot",impliedEdits:C},P[T]={valType:"number",dflt:null,editType:x||"plot",impliedEdits:C},P[M]={valType:"number",dflt:null,editType:"calc",impliedEdits:S},P.colorscale={valType:"colorscale",editType:"calc",dflt:b,impliedEdits:{autocolorscale:!1}},P.autocolorscale={valType:"boolean",dflt:p.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},P.reversescale={valType:"boolean",dflt:!1,editType:"plot"},v||(P.showscale={valType:"boolean",dflt:g,editType:"calc"},P.colorbar=l),p.noColorAxis||(P.coloraxis={valType:"subplotid",regex:f("coloraxis"),dflt:null,editType:"calc"}),P}},78803:function(o,a,n){var l=n(92770),f=n(71828),s=n(52075).extractOpts;o.exports=function(c,d,h){var p,m=c._fullLayout,y=h.vals,v=h.containerStr,g=v?f.nestedProperty(d,v).get():d,b=s(g),x=b.auto!==!1,_=b.min,w=b.max,k=b.mid,T=function(){return f.aggNums(Math.min,null,y)},M=function(){return f.aggNums(Math.max,null,y)};_===void 0?_=T():x&&(_=g._colorAx&&l(_)?Math.min(_,T()):T()),w===void 0?w=M():x&&(w=g._colorAx&&l(w)?Math.max(w,M()):M()),x&&k!==void 0&&(w-k>k-_?_=k-(w-k):w-k=0?m.colorscale.sequential:m.colorscale.sequentialminus,b._sync("colorscale",p))}},33046:function(o,a,n){var l=n(71828),f=n(52075).hasColorscale,s=n(52075).extractOpts;o.exports=function(c,d){function h(x,_){var w=x["_"+_];w!==void 0&&(x[_]=w)}function p(x,_){var w=_.container?l.nestedProperty(x,_.container).get():x;if(w)if(w.coloraxis)w._colorAx=d[w.coloraxis];else{var k=s(w),T=k.auto;(T||k.min===void 0)&&h(w,_.min),(T||k.max===void 0)&&h(w,_.max),k.autocolorscale&&h(w,"colorscale")}}for(var m=0;m=0;T--,M++){var S=_[T];k[M]=[1-S[0],S[1]]}return k}function b(_,w){w=w||{};for(var k=_.domain,T=_.range,M=T.length,S=new Array(M),C=0;C1.3333333333333333-h?d:h}},70461:function(o,a,n){var l=n(71828),f=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];o.exports=function(s,c,d,h){return s=d==="left"?0:d==="center"?1:d==="right"?2:l.constrain(Math.floor(3*s),0,2),c=h==="bottom"?0:h==="middle"?1:h==="top"?2:l.constrain(Math.floor(3*c),0,2),f[c][s]}},64505:function(o,a){a.selectMode=function(n){return n==="lasso"||n==="select"},a.drawMode=function(n){return n==="drawclosedpath"||n==="drawopenpath"||n==="drawline"||n==="drawrect"||n==="drawcircle"},a.openMode=function(n){return n==="drawline"||n==="drawopenpath"},a.rectMode=function(n){return n==="select"||n==="drawline"||n==="drawrect"||n==="drawcircle"},a.freeMode=function(n){return n==="lasso"||n==="drawclosedpath"||n==="drawopenpath"},a.selectingOrDrawing=function(n){return a.freeMode(n)||a.rectMode(n)}},28569:function(o,a,n){var l=n(48956),f=n(57035),s=n(38520),c=n(71828).removeElement,d=n(85555),h=o.exports={};h.align=n(92807),h.getCursor=n(70461);var p=n(26041);function m(){var v=document.createElement("div");v.className="dragcover";var g=v.style;return g.position="fixed",g.left=0,g.right=0,g.top=0,g.bottom=0,g.zIndex=999999999,g.background="none",document.body.appendChild(v),v}function y(v){return l(v.changedTouches?v.changedTouches[0]:v,document.body)}h.unhover=p.wrapped,h.unhoverRaw=p.raw,h.init=function(v){var g,b,x,_,w,k,T,M,S=v.gd,C=1,P=S._context.doubleClickDelay,D=v.element;S._mouseDownTime||(S._mouseDownTime=0),D.style.pointerEvents="all",D.onmousedown=R,s?(D._ontouchstart&&D.removeEventListener("touchstart",D._ontouchstart),D._ontouchstart=R,D.addEventListener("touchstart",R,{passive:!1})):D.ontouchstart=R;var O=v.clampFn||function(z,B,$){return Math.abs(z)<$&&(z=0),Math.abs(B)<$&&(B=0),[z,B]};function R(z){S._dragged=!1,S._dragging=!0;var B=y(z);g=B[0],b=B[1],T=z.target,k=z,M=z.buttons===2||z.ctrlKey,z.clientX===void 0&&z.clientY===void 0&&(z.clientX=g,z.clientY=b),(x=new Date().getTime())-S._mouseDownTimeP&&(C=Math.max(C-1,1)),S._dragged)v.doneFn&&v.doneFn();else if(v.clickFn&&v.clickFn(C,k),!M){var B;try{B=new MouseEvent("click",z)}catch{var $=y(z);(B=document.createEvent("MouseEvents")).initMouseEvent("click",z.bubbles,z.cancelable,z.view,z.detail,z.screenX,z.screenY,$[0],$[1],z.ctrlKey,z.altKey,z.shiftKey,z.metaKey,z.button,z.relatedTarget)}T.dispatchEvent(B)}S._dragging=!1,S._dragged=!1}else S._dragged=!1}},h.coverSlip=m},26041:function(o,a,n){var l=n(11086),f=n(79990),s=n(24401).getGraphDiv,c=n(26675),d=o.exports={};d.wrapped=function(h,p,m){(h=s(h))._fullLayout&&f.clear(h._fullLayout._uid+c.HOVERID),d.raw(h,p,m)},d.raw=function(h,p){var m=h._fullLayout,y=h._hoverdata;p||(p={}),p.target&&!h._dragged&&l.triggerHandler(h,"plotly_beforehover",p)===!1||(m._hoverlayer.selectAll("g").remove(),m._hoverlayer.selectAll("line").remove(),m._hoverlayer.selectAll("circle").remove(),h._hoverdata=void 0,p.target&&y&&h.emit("plotly_unhover",{event:p,points:y}))}},79952:function(o,a){a.P={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},a.u={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},91424:function(o,a,n){var l=n(39898),f=n(71828),s=f.numberFormat,c=n(92770),d=n(84267),h=n(73972),p=n(7901),m=n(21081),y=f.strTranslate,v=n(63893),g=n(77922),b=n(18783).LINE_SPACING,x=n(37822).DESELECTDIM,_=n(34098),w=n(39984),k=n(23469).appendArrayPointValue,T=o.exports={};function M(ce,ye,J){var ne=ye.fillpattern,de=ne&&T.getPatternAttr(ne.shape,0,"");if(de){var xe=T.getPatternAttr(ne.bgcolor,0,null),ue=T.getPatternAttr(ne.fgcolor,0,null),ge=ne.fgopacity,be=T.getPatternAttr(ne.size,0,8),we=T.getPatternAttr(ne.solidity,0,.3),ke=ye.uid;T.pattern(ce,"point",J,ke,de,be,we,void 0,ne.fillmode,xe,ue,ge)}else ye.fillcolor&&ce.call(p.fill,ye.fillcolor)}T.font=function(ce,ye,J,ne){f.isPlainObject(ye)&&(ne=ye.color,J=ye.size,ye=ye.family),ye&&ce.style("font-family",ye),J+1&&ce.style("font-size",J+"px"),ne&&ce.call(p.fill,ne)},T.setPosition=function(ce,ye,J){ce.attr("x",ye).attr("y",J)},T.setSize=function(ce,ye,J){ce.attr("width",ye).attr("height",J)},T.setRect=function(ce,ye,J,ne,de){ce.call(T.setPosition,ye,J).call(T.setSize,ne,de)},T.translatePoint=function(ce,ye,J,ne){var de=J.c2p(ce.x),xe=ne.c2p(ce.y);return!!(c(de)&&c(xe)&&ye.node())&&(ye.node().nodeName==="text"?ye.attr("x",de).attr("y",xe):ye.attr("transform",y(de,xe)),!0)},T.translatePoints=function(ce,ye,J){ce.each(function(ne){var de=l.select(this);T.translatePoint(ne,de,ye,J)})},T.hideOutsideRangePoint=function(ce,ye,J,ne,de,xe){ye.attr("display",J.isPtWithinRange(ce,de)&&ne.isPtWithinRange(ce,xe)?null:"none")},T.hideOutsideRangePoints=function(ce,ye){if(ye._hasClipOnAxisFalse){var J=ye.xaxis,ne=ye.yaxis;ce.each(function(de){var xe=de[0].trace,ue=xe.xcalendar,ge=xe.ycalendar,be=h.traceIs(xe,"bar-like")?".bartext":".point,.textpoint";ce.selectAll(be).each(function(we){T.hideOutsideRangePoint(we,l.select(this),J,ne,ue,ge)})})}},T.crispRound=function(ce,ye,J){return ye&&c(ye)?ce._context.staticPlot?ye:ye<1?1:Math.round(ye):J||0},T.singleLineStyle=function(ce,ye,J,ne,de){ye.style("fill","none");var xe=(((ce||[])[0]||{}).trace||{}).line||{},ue=J||xe.width||0,ge=de||xe.dash||"";p.stroke(ye,ne||xe.color),T.dashLine(ye,ge,ue)},T.lineGroupStyle=function(ce,ye,J,ne){ce.style("fill","none").each(function(de){var xe=(((de||[])[0]||{}).trace||{}).line||{},ue=ye||xe.width||0,ge=ne||xe.dash||"";l.select(this).call(p.stroke,J||xe.color).call(T.dashLine,ge,ue)})},T.dashLine=function(ce,ye,J){J=+J||0,ye=T.dashStyle(ye,J),ce.style({"stroke-dasharray":ye,"stroke-width":J+"px"})},T.dashStyle=function(ce,ye){ye=+ye||1;var J=Math.max(ye,3);return ce==="solid"?ce="":ce==="dot"?ce=J+"px,"+J+"px":ce==="dash"?ce=3*J+"px,"+3*J+"px":ce==="longdash"?ce=5*J+"px,"+5*J+"px":ce==="dashdot"?ce=3*J+"px,"+J+"px,"+J+"px,"+J+"px":ce==="longdashdot"&&(ce=5*J+"px,"+2*J+"px,"+J+"px,"+2*J+"px"),ce},T.singleFillStyle=function(ce,ye){var J=l.select(ce.node());M(ce,((J.data()[0]||[])[0]||{}).trace||{},ye)},T.fillGroupStyle=function(ce,ye){ce.style("stroke-width",0).each(function(J){var ne=l.select(this);J[0].trace&&M(ne,J[0].trace,ye)})};var S=n(90998);T.symbolNames=[],T.symbolFuncs=[],T.symbolBackOffs=[],T.symbolNeedLines={},T.symbolNoDot={},T.symbolNoFill={},T.symbolList=[],Object.keys(S).forEach(function(ce){var ye=S[ce],J=ye.n;T.symbolList.push(J,String(J),ce,J+100,String(J+100),ce+"-open"),T.symbolNames[J]=ce,T.symbolFuncs[J]=ye.f,T.symbolBackOffs[J]=ye.backoff||0,ye.needLine&&(T.symbolNeedLines[J]=!0),ye.noDot?T.symbolNoDot[J]=!0:T.symbolList.push(J+200,String(J+200),ce+"-dot",J+300,String(J+300),ce+"-open-dot"),ye.noFill&&(T.symbolNoFill[J]=!0)});var C=T.symbolNames.length;function P(ce,ye,J,ne){var de=ce%100;return T.symbolFuncs[de](ye,J,ne)+(ce>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}T.symbolNumber=function(ce){if(c(ce))ce=+ce;else if(typeof ce=="string"){var ye=0;ce.indexOf("-open")>0&&(ye=100,ce=ce.replace("-open","")),ce.indexOf("-dot")>0&&(ye+=200,ce=ce.replace("-dot","")),(ce=T.symbolNames.indexOf(ce))>=0&&(ce+=ye)}return ce%100>=C||ce>=400?0:Math.floor(Math.max(ce,0))};var D={x1:1,x2:0,y1:0,y2:0},O={x1:0,x2:0,y1:1,y2:0},R=s("~f"),F={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:D},horizontalreversed:{node:"linearGradient",attrs:D,reversed:!0},vertical:{node:"linearGradient",attrs:O},verticalreversed:{node:"linearGradient",attrs:O,reversed:!0}};T.gradient=function(ce,ye,J,ne,de,xe){for(var ue=de.length,ge=F[ne],be=new Array(ue),we=0;we=0&&ce.i===void 0&&(ce.i=xe.i),ye.style("opacity",ne.selectedOpacityFn?ne.selectedOpacityFn(ce):ce.mo===void 0?ue.opacity:ce.mo),ne.ms2mrc){var be;be=ce.ms==="various"||ue.size==="various"?3:ne.ms2mrc(ce.ms),ce.mrc=be,ne.selectedSizeFn&&(be=ce.mrc=ne.selectedSizeFn(ce));var we=T.symbolNumber(ce.mx||ue.symbol)||0;ce.om=we%200>=100;var ke=Me(ce,J),Ae=Y(ce,J);ye.attr("d",P(we,be,ke,Ae))}var Ee,De,Re,Ie=!1;if(ce.so)Re=ge.outlierwidth,De=ge.outliercolor,Ee=ue.outliercolor;else{var Be=(ge||{}).width;Re=(ce.mlw+1||Be+1||(ce.trace?(ce.trace.marker.line||{}).width:0)+1)-1||0,De="mlc"in ce?ce.mlcc=ne.lineScale(ce.mlc):f.isArrayOrTypedArray(ge.color)?p.defaultLine:ge.color,f.isArrayOrTypedArray(ue.color)&&(Ee=p.defaultLine,Ie=!0),Ee="mc"in ce?ce.mcc=ne.markerScale(ce.mc):ue.color||ue.colors||"rgba(0,0,0,0)",ne.selectedColorFn&&(Ee=ne.selectedColorFn(ce))}if(ce.om)ye.call(p.stroke,Ee).style({"stroke-width":(Re||1)+"px",fill:"none"});else{ye.style("stroke-width",(ce.isBlank?0:Re)+"px");var Ue=ue.gradient,qe=ce.mgt;qe?Ie=!0:qe=Ue&&Ue.type,f.isArrayOrTypedArray(qe)&&(qe=qe[0],F[qe]||(qe=0));var Ye=ue.pattern,at=Ye&&T.getPatternAttr(Ye.shape,ce.i,"");if(qe&&qe!=="none"){var lt=ce.mgc;lt?Ie=!0:lt=Ue.color;var ct=J.uid;Ie&&(ct+="-"+ce.i),T.gradient(ye,de,ct,qe,[[0,lt],[1,Ee]],"fill")}else if(at){var bt=!1,ze=Ye.fgcolor;!ze&&xe&&xe.color&&(ze=xe.color,bt=!0);var Ne=T.getPatternAttr(ze,ce.i,xe&&xe.color||null),Qe=T.getPatternAttr(Ye.bgcolor,ce.i,null),it=Ye.fgopacity,kt=T.getPatternAttr(Ye.size,ce.i,8),Je=T.getPatternAttr(Ye.solidity,ce.i,.3);bt=bt||ce.mcc||f.isArrayOrTypedArray(Ye.shape)||f.isArrayOrTypedArray(Ye.bgcolor)||f.isArrayOrTypedArray(Ye.fgcolor)||f.isArrayOrTypedArray(Ye.size)||f.isArrayOrTypedArray(Ye.solidity);var ut=J.uid;bt&&(ut+="-"+ce.i),T.pattern(ye,"point",de,ut,at,kt,Je,ce.mcc,Ye.fillmode,Qe,Ne,it)}else f.isArrayOrTypedArray(Ee)?p.fill(ye,Ee[ce.i]):p.fill(ye,Ee);Re&&p.stroke(ye,De)}},T.makePointStyleFns=function(ce){var ye={},J=ce.marker;return ye.markerScale=T.tryColorscale(J,""),ye.lineScale=T.tryColorscale(J,"line"),h.traceIs(ce,"symbols")&&(ye.ms2mrc=_.isBubble(ce)?w(ce):function(){return(J.size||6)/2}),ce.selectedpoints&&f.extendFlat(ye,T.makeSelectedPointStyleFns(ce)),ye},T.makeSelectedPointStyleFns=function(ce){var ye={},J=ce.selected||{},ne=ce.unselected||{},de=ce.marker||{},xe=J.marker||{},ue=ne.marker||{},ge=de.opacity,be=xe.opacity,we=ue.opacity,ke=be!==void 0,Ae=we!==void 0;(f.isArrayOrTypedArray(ge)||ke||Ae)&&(ye.selectedOpacityFn=function(at){var lt=at.mo===void 0?de.opacity:at.mo;return at.selected?ke?be:lt:Ae?we:x*lt});var Ee=de.color,De=xe.color,Re=ue.color;(De||Re)&&(ye.selectedColorFn=function(at){var lt=at.mcc||Ee;return at.selected?De||lt:Re||lt});var Ie=de.size,Be=xe.size,Ue=ue.size,qe=Be!==void 0,Ye=Ue!==void 0;return h.traceIs(ce,"symbols")&&(qe||Ye)&&(ye.selectedSizeFn=function(at){var lt=at.mrc||Ie/2;return at.selected?qe?Be/2:lt:Ye?Ue/2:lt}),ye},T.makeSelectedTextStyleFns=function(ce){var ye={},J=ce.selected||{},ne=ce.unselected||{},de=ce.textfont||{},xe=J.textfont||{},ue=ne.textfont||{},ge=de.color,be=xe.color,we=ue.color;return ye.selectedTextColorFn=function(ke){var Ae=ke.tc||ge;return ke.selected?be||Ae:we||(be?Ae:p.addOpacity(Ae,x))},ye},T.selectedPointStyle=function(ce,ye){if(ce.size()&&ye.selectedpoints){var J=T.makeSelectedPointStyleFns(ye),ne=ye.marker||{},de=[];J.selectedOpacityFn&&de.push(function(xe,ue){xe.style("opacity",J.selectedOpacityFn(ue))}),J.selectedColorFn&&de.push(function(xe,ue){p.fill(xe,J.selectedColorFn(ue))}),J.selectedSizeFn&&de.push(function(xe,ue){var ge=ue.mx||ne.symbol||0,be=J.selectedSizeFn(ue);xe.attr("d",P(T.symbolNumber(ge),be,Me(ue,ye),Y(ue,ye))),ue.mrc2=be}),de.length&&ce.each(function(xe){for(var ue=l.select(this),ge=0;ge0?J:0}function N(ce,ye,J){return J&&(ce=H(ce)),ye?W(ce[1]):E(ce[0])}function E(ce){var ye=l.round(ce,2);return A=ye,ye}function W(ce){var ye=l.round(ce,2);return z=ye,ye}function G(ce,ye,J,ne){var de=ce[0]-ye[0],xe=ce[1]-ye[1],ue=J[0]-ye[0],ge=J[1]-ye[1],be=Math.pow(de*de+xe*xe,.25),we=Math.pow(ue*ue+ge*ge,.25),ke=(we*we*de-be*be*ue)*ne,Ae=(we*we*xe-be*be*ge)*ne,Ee=3*we*(be+we),De=3*be*(be+we);return[[E(ye[0]+(Ee&&ke/Ee)),W(ye[1]+(Ee&&Ae/Ee))],[E(ye[0]-(De&&ke/De)),W(ye[1]-(De&&Ae/De))]]}T.textPointStyle=function(ce,ye,J){if(ce.size()){var ne;if(ye.selectedpoints){var de=T.makeSelectedTextStyleFns(ye);ne=de.selectedTextColorFn}var xe=ye.texttemplate,ue=J._fullLayout;ce.each(function(ge){var be=l.select(this),we=xe?f.extractOption(ge,ye,"txt","texttemplate"):f.extractOption(ge,ye,"tx","text");if(we||we===0){if(xe){var ke=ye._module.formatLabels,Ae=ke?ke(ge,ye,ue):{},Ee={};k(Ee,ye,ge.i);var De=ye._meta||{};we=f.texttemplateString(we,Ae,ue._d3locale,Ee,ge,De)}var Re=ge.tp||ye.textposition,Ie=j(ge,ye),Be=ne?ne(ge):ge.tc||ye.textfont.color;be.call(T.font,ge.tf||ye.textfont.family,Ie,Be).text(we).call(v.convertToTspans,J).call($,Re,Ie,ge.mrc)}else be.remove()})}},T.selectedTextStyle=function(ce,ye){if(ce.size()&&ye.selectedpoints){var J=T.makeSelectedTextStyleFns(ye);ce.each(function(ne){var de=l.select(this),xe=J.selectedTextColorFn(ne),ue=ne.tp||ye.textposition,ge=j(ne,ye);p.fill(de,xe);var be=h.traceIs(ye,"bar-like");$(de,ue,ge,ne.mrc2||ne.mrc,be)})}},T.smoothopen=function(ce,ye){if(ce.length<3)return"M"+ce.join("L");var J,ne="M"+ce[0],de=[];for(J=1;J=be||at>=ke&&at<=be)&&(lt<=Ae&<>=we||lt>=Ae&<<=we)&&(ce=[at,lt])}return ce}T.steps=function(ce){var ye=L[ce]||q;return function(J){for(var ne="M"+E(J[0][0])+","+W(J[0][1]),de=J.length,xe=1;xe=1e4&&(T.savedBBoxes={},V=0),J&&(T.savedBBoxes[J]=De),V++,f.extendFlat({},De)},T.setClipUrl=function(ce,ye,J){ce.attr("clip-path",ee(ye,J))},T.getTranslate=function(ce){var ye=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(J,ne,de){return[ne,de].join(" ")}).split(" ");return{x:+ye[0]||0,y:+ye[1]||0}},T.setTranslate=function(ce,ye,J){var ne=ce.attr?"attr":"getAttribute",de=ce.attr?"attr":"setAttribute",xe=ce[ne]("transform")||"";return ye=ye||0,J=J||0,xe=xe.replace(/(\btranslate\(.*?\);?)/,"").trim(),xe=(xe+=y(ye,J)).trim(),ce[de]("transform",xe),xe},T.getScale=function(ce){var ye=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(J,ne,de){return[ne,de].join(" ")}).split(" ");return{x:+ye[0]||1,y:+ye[1]||1}},T.setScale=function(ce,ye,J){var ne=ce.attr?"attr":"getAttribute",de=ce.attr?"attr":"setAttribute",xe=ce[ne]("transform")||"";return ye=ye||1,J=J||1,xe=xe.replace(/(\bscale\(.*?\);?)/,"").trim(),xe=(xe+="scale("+ye+","+J+")").trim(),ce[de]("transform",xe),xe};var U=/\s*sc.*/;T.setPointGroupScale=function(ce,ye,J){if(ye=ye||1,J=J||1,ce){var ne=ye===1&&J===1?"":"scale("+ye+","+J+")";ce.each(function(){var de=(this.getAttribute("transform")||"").replace(U,"");de=(de+=ne).trim(),this.setAttribute("transform",de)})}};var Q=/translate\([^)]*\)\s*$/;function Y(ce,ye){var J;return ce&&(J=ce.mf),J===void 0&&(J=ye.marker&&ye.marker.standoff||0),ye._geo||ye._xA?J:-J}T.setTextPointsScale=function(ce,ye,J){ce&&ce.each(function(){var ne,de=l.select(this),xe=de.select("text");if(xe.node()){var ue=parseFloat(xe.attr("x")||0),ge=parseFloat(xe.attr("y")||0),be=(de.attr("transform")||"").match(Q);ne=ye===1&&J===1?[]:[y(ue,ge),"scale("+ye+","+J+")",y(-ue,-ge)],be&&ne.push(be),de.attr("transform",ne.join(""))}})},T.getMarkerStandoff=Y;var Z,X,re,ie,le,se,pe=Math.atan2,Te=Math.cos,Se=Math.sin;function Oe(ce,ye){var J=ye[0],ne=ye[1];return[J*Te(ce)-ne*Se(ce),J*Se(ce)+ne*Te(ce)]}function Me(ce,ye){var J,ne,de=ce.ma;de===void 0&&(de=ye.marker.angle||0);var xe=ye.marker.angleref;if(xe==="previous"||xe==="north"){if(ye._geo){var ue=ye._geo.project(ce.lonlat);J=ue[0],ne=ue[1]}else{var ge=ye._xA,be=ye._yA;if(!ge||!be)return 90;J=ge.c2p(ce.x),ne=be.c2p(ce.y)}if(ye._geo){var we,ke=ce.lonlat[0],Ae=ce.lonlat[1],Ee=ye._geo.project([ke,Ae+1e-5]),De=ye._geo.project([ke+1e-5,Ae]),Re=pe(De[1]-ne,De[0]-J),Ie=pe(Ee[1]-ne,Ee[0]-J);if(xe==="north")we=de/180*Math.PI;else if(xe==="previous"){var Be=ke/180*Math.PI,Ue=Ae/180*Math.PI,qe=Z/180*Math.PI,Ye=X/180*Math.PI,at=qe-Be,lt=Te(Ye)*Se(at),ct=Se(Ye)*Te(Ue)-Te(Ye)*Se(Ue)*Te(at);we=-pe(lt,ct)-Math.PI,Z=ke,X=Ae}var bt=Oe(Re,[Te(we),0]),ze=Oe(Ie,[Se(we),0]);de=pe(bt[1]+ze[1],bt[0]+ze[0])/Math.PI*180,xe!=="previous"||se===ye.uid&&ce.i===le+1||(de=null)}if(xe==="previous"&&!ye._geo)if(se===ye.uid&&ce.i===le+1&&c(J)&&c(ne)){var Ne=J-re,Qe=ne-ie,it=ye.line&&ye.line.shape||"",kt=it.slice(it.length-1);kt==="h"&&(Qe=0),kt==="v"&&(Ne=0),de+=pe(Qe,Ne)/Math.PI*180+90}else de=null}return re=J,ie=ne,le=ce.i,se=ye.uid,de}T.getMarkerAngle=Me},90998:function(o,a,n){var l,f,s,c,d=n(95616),h=n(39898).round,p="M0,0Z",m=Math.sqrt(2),y=Math.sqrt(3),v=Math.PI,g=Math.cos,b=Math.sin;function x(w){return w===null}function _(w,k,T){if(!(w&&w%360!=0||k))return T;if(s===w&&c===k&&l===T)return f;function M(N,E){var W=g(N),G=b(N),L=E[0],q=E[1]+(k||0);return[L*W-q*G,L*G+q*W]}s=w,c=k,l=T;for(var S=w/180*v,C=0,P=0,D=d(T),O="",R=0;R0,b=d._context.staticPlot;h.each(function(x){var _,w=x[0].trace,k=w.error_x||{},T=w.error_y||{};w.ids&&(_=function(P){return P.id});var M=c.hasMarkers(w)&&w.marker.maxdisplayed>0;T.visible||k.visible||(x=[]);var S=l.select(this).selectAll("g.errorbar").data(x,_);if(S.exit().remove(),x.length){k.visible||S.selectAll("path.xerror").remove(),T.visible||S.selectAll("path.yerror").remove(),S.style("opacity",1);var C=S.enter().append("g").classed("errorbar",!0);g&&C.style("opacity",0).transition().duration(m.duration).style("opacity",1),s.setClipUrl(S,p.layerClipId,d),S.each(function(P){var D=l.select(this),O=function($,j,N){var E={x:j.c2p($.x),y:N.c2p($.y)};return $.yh!==void 0&&(E.yh=N.c2p($.yh),E.ys=N.c2p($.ys),f(E.ys)||(E.noYS=!0,E.ys=N.c2p($.ys,!0))),$.xh!==void 0&&(E.xh=j.c2p($.xh),E.xs=j.c2p($.xs),f(E.xs)||(E.noXS=!0,E.xs=j.c2p($.xs,!0))),E}(P,y,v);if(!M||P.vis){var R,F=D.select("path.yerror");if(T.visible&&f(O.x)&&f(O.yh)&&f(O.ys)){var A=T.width;R="M"+(O.x-A)+","+O.yh+"h"+2*A+"m-"+A+",0V"+O.ys,O.noYS||(R+="m-"+A+",0h"+2*A),F.size()?g&&(F=F.transition().duration(m.duration).ease(m.easing)):F=D.append("path").style("vector-effect",b?"none":"non-scaling-stroke").classed("yerror",!0),F.attr("d",R)}else F.remove();var z=D.select("path.xerror");if(k.visible&&f(O.y)&&f(O.xh)&&f(O.xs)){var B=(k.copy_ystyle?T:k).width;R="M"+O.xh+","+(O.y-B)+"v"+2*B+"m0,-"+B+"H"+O.xs,O.noXS||(R+="m0,-"+B+"v"+2*B),z.size()?g&&(z=z.transition().duration(m.duration).ease(m.easing)):z=D.append("path").style("vector-effect",b?"none":"non-scaling-stroke").classed("xerror",!0),z.attr("d",R)}else z.remove()}})}})}},62662:function(o,a,n){var l=n(39898),f=n(7901);o.exports=function(s){s.each(function(c){var d=c[0].trace,h=d.error_y||{},p=d.error_x||{},m=l.select(this);m.selectAll("path.yerror").style("stroke-width",h.thickness+"px").call(f.stroke,h.color),p.copy_ystyle&&(p=h),m.selectAll("path.xerror").style("stroke-width",p.thickness+"px").call(f.stroke,p.color)})}},77914:function(o,a,n){var l=n(41940),f=n(528).hoverlabel,s=n(1426).extendFlat;o.exports={hoverlabel:{bgcolor:s({},f.bgcolor,{arrayOk:!0}),bordercolor:s({},f.bordercolor,{arrayOk:!0}),font:l({arrayOk:!0,editType:"none"}),align:s({},f.align,{arrayOk:!0}),namelength:s({},f.namelength,{arrayOk:!0}),editType:"none"}}},30732:function(o,a,n){var l=n(71828),f=n(73972);function s(c,d,h,p){p=p||l.identity,Array.isArray(c)&&(d[0][h]=p(c))}o.exports=function(c){var d=c.calcdata,h=c._fullLayout;function p(b){return function(x){return l.coerceHoverinfo({hoverinfo:x},{_module:b._module},h)}}for(var m=0;m=0&&y.indexde[0]._length||pt<0||pt>xe[0]._length)return b.unhoverRaw(ie,le)}else ut="xpx"in le?le.xpx:de[0]._length/2,pt="ypx"in le?le.ypx:xe[0]._length/2;if(le.pointerX=ut+de[0]._offset,le.pointerY=pt+xe[0]._offset,De="xval"in le?w.flat(Se,le.xval):w.p2c(de,ut),Re="yval"in le?w.flat(Se,le.yval):w.p2c(xe,pt),!f(De[0])||!f(Re[0]))return c.warn("Fx.hover failed",le,ie),b.unhoverRaw(ie,le)}var zt=1/0;function wt(Zt,pn){for(Be=0;BeNe&&(Qe.splice(0,Ne),zt=Qe[0].distance),ye&&Ee!==0&&Qe.length===0){ze.distance=Ee,ze.index=!1;var Dn=qe._module.hoverPoints(ze,ct,bt,"closest",{hoverLayer:Oe._hoverlayer});if(Dn&&(Dn=Dn.filter(function(lr){return lr.spikeDistance<=Ee})),Dn&&Dn.length){var wn,En=Dn.filter(function(lr){return lr.xa.showspikes&&lr.xa.spikesnap!=="hovered data"});if(En.length){var tr=En[0];f(tr.x0)&&f(tr.y0)&&(wn=_e(tr),(!kt.vLinePoint||kt.vLinePoint.spikeDistance>wn.spikeDistance)&&(kt.vLinePoint=wn))}var oa=Dn.filter(function(lr){return lr.ya.showspikes&&lr.ya.spikesnap!=="hovered data"});if(oa.length){var da=oa[0];f(da.x0)&&f(da.y0)&&(wn=_e(da),(!kt.hLinePoint||kt.hLinePoint.spikeDistance>wn.spikeDistance)&&(kt.hLinePoint=wn))}}}}}function ve(Zt,pn,nn){for(var Kt,On=null,Tn=1/0,Dn=0;Dn0&&Math.abs(Zt.distance)Ft-1;Vt--)gt(Qe[Vt]);Qe=St,Ze()}var ht=ie._hoverdata,yt=[],qt=te(ie),Et=ee(ie);for(Ie=0;Ie1||Qe.length>1)||ke==="closest"&&Je&&Qe.length>1,cn=g.combine(Oe.plot_bgcolor||g.background,Oe.paper_bgcolor),ln=j(Qe,{gd:ie,hovermode:ke,rotateLabels:tn,bgColor:cn,container:Oe._hoverlayer,outerContainer:Oe._paper.node(),commonLabelOpts:Oe.hoverlabel,hoverdistance:Oe.hoverdistance}),an=ln.hoverLabels;if(w.isUnifiedHover(ke)||(function(Zt,pn,nn,Kt){var On,Tn,Dn,wn,En,tr,oa,da=pn?"xa":"ya",lr=pn?"ya":"xa",ti=0,Ar=1,ur=Zt.size(),kr=new Array(ur),la=0,An=Kt.minX,on=Kt.maxX,$n=Kt.minY,Pr=Kt.maxY,Ln=function(kn){return kn*nn._invScaleX},Bn=function(kn){return kn*nn._invScaleY};function jn(kn){var Dr=kn[0],Aa=kn[kn.length-1];if(Tn=Dr.pmin-Dr.pos-Dr.dp+Dr.size,Dn=Aa.pos+Aa.dp+Aa.size-Dr.pmax,Tn>.01){for(En=kn.length-1;En>=0;En--)kn[En].dp+=Tn;On=!1}if(!(Dn<.01)){if(Tn<-.01){for(En=kn.length-1;En>=0;En--)kn[En].dp-=Dn;On=!1}if(On){var Br=0;for(wn=0;wnDr.pmax&&Br++;for(wn=kn.length-1;wn>=0&&!(Br<=0);wn--)(tr=kn[wn]).pos>Dr.pmax-1&&(tr.del=!0,Br--);for(wn=0;wn=0;En--)kn[En].dp-=Dn;for(wn=kn.length-1;wn>=0&&!(Br<=0);wn--)(tr=kn[wn]).pos+tr.dp+tr.size>Dr.pmax&&(tr.del=!0,Br--)}}}for(Zt.each(function(kn){var Dr=kn[da],Aa=kn[lr],Br=Dr._id.charAt(0)==="x",Fi=Dr.range;la===0&&Fi&&Fi[0]>Fi[1]!==Br&&(Ar=-1);var Ni=0,mi=Br?nn.width:nn.height;if(nn.hovermode==="x"||nn.hovermode==="y"){var ni,Ga,vi=E(kn,pn),us=kn.anchor,nl=us==="end"?-1:1;if(us==="middle")Ga=(ni=kn.crossPos+(Br?Bn(vi.y-kn.by/2):Ln(kn.bx/2+kn.tx2width/2)))+(Br?Bn(kn.by):Ln(kn.bx));else if(Br)Ga=(ni=kn.crossPos+Bn(R+vi.y)-Bn(kn.by/2-R))+Bn(kn.by);else{var cs=Ln(nl*R+vi.x),oo=cs+Ln(nl*kn.bx);ni=kn.crossPos+Math.min(cs,oo),Ga=kn.crossPos+Math.max(cs,oo)}Br?$n!==void 0&&Pr!==void 0&&Math.min(Ga,Pr)-Math.max(ni,$n)>1&&(Aa.side==="left"?(Ni=Aa._mainLinePosition,mi=nn.width):mi=Aa._mainLinePosition):An!==void 0&&on!==void 0&&Math.min(Ga,on)-Math.max(ni,An)>1&&(Aa.side==="top"?(Ni=Aa._mainLinePosition,mi=nn.height):mi=Aa._mainLinePosition)}kr[la++]=[{datum:kn,traceIndex:kn.trace.index,dp:0,pos:kn.pos,posref:kn.posref,size:kn.by*(Br?P:1)/2,pmin:Ni,pmax:mi}]}),kr.sort(function(kn,Dr){return kn[0].posref-Dr[0].posref||Ar*(Dr[0].traceIndex-kn[0].traceIndex)});!On&&ti<=ur;){for(ti++,On=!0,wn=0;wn.01&&xr.pmin===Mr.pmin&&xr.pmax===Mr.pmax){for(En=Lr.length-1;En>=0;En--)Lr[En].dp+=Tn;for(Un.push.apply(Un,Lr),kr.splice(wn+1,1),oa=0,En=Un.length-1;En>=0;En--)oa+=Un[En].dp;for(Dn=oa/Un.length,En=Un.length-1;En>=0;En--)Un[En].dp-=Dn;On=!1}else wn++}kr.forEach(jn)}for(wn=kr.length-1;wn>=0;wn--){var Na=kr[wn];for(En=Na.length-1;En>=0;En--){var wa=Na[En],sa=wa.datum;sa.offset=wa.dp,sa.del=wa.del}}}(an,tn,Oe,ln.commonLabelBoundingBox),W(an,tn,Oe._invScaleX,Oe._invScaleY)),Te&&Te.tagName){var sn=_.getComponentMethod("annotations","hasClickToShow")(ie,yt);y(l.select(Te),sn?"pointer":"")}Te&&!pe&&function(Zt,pn,nn){if(!nn||nn.length!==Zt._hoverdata.length)return!0;for(var Kt=nn.length-1;Kt>=0;Kt--){var On=nn[Kt],Tn=Zt._hoverdata[Kt];if(On.curveNumber!==Tn.curveNumber||String(On.pointNumber)!==String(Tn.pointNumber)||String(On.pointNumbers)!==String(Tn.pointNumbers))return!0}return!1}(ie,0,ht)&&(ht&&ie.emit("plotly_unhover",{event:le,points:ht}),ie.emit("plotly_hover",{event:le,points:ie._hoverdata,xaxes:de,yaxes:xe,xvals:De,yvals:Re}))})(Q,Y,Z,X,re)})},a.loneHover=function(Q,Y){var Z=!0;Array.isArray(Q)||(Z=!1,Q=[Q]);var X=Y.gd,re=te(X),ie=ee(X),le=j(Q.map(function(Te){var Se=Te._x0||Te.x0||Te.x||0,Oe=Te._x1||Te.x1||Te.x||0,Me=Te._y0||Te.y0||Te.y||0,ce=Te._y1||Te.y1||Te.y||0,ye=Te.eventData;if(ye){var J=Math.min(Se,Oe),ne=Math.max(Se,Oe),de=Math.min(Me,ce),xe=Math.max(Me,ce),ue=Te.trace;if(_.traceIs(ue,"gl3d")){var ge=X._fullLayout[ue.scene]._scene.container,be=ge.offsetLeft,we=ge.offsetTop;J+=be,ne+=be,de+=we,xe+=we}ye.bbox={x0:J+ie,x1:ne+ie,y0:de+re,y1:xe+re},Y.inOut_bbox&&Y.inOut_bbox.push(ye.bbox)}else ye=!1;return{color:Te.color||g.defaultLine,x0:Te.x0||Te.x||0,x1:Te.x1||Te.x||0,y0:Te.y0||Te.y||0,y1:Te.y1||Te.y||0,xLabel:Te.xLabel,yLabel:Te.yLabel,zLabel:Te.zLabel,text:Te.text,name:Te.name,idealAlign:Te.idealAlign,borderColor:Te.borderColor,fontFamily:Te.fontFamily,fontSize:Te.fontSize,fontColor:Te.fontColor,nameLength:Te.nameLength,textAlign:Te.textAlign,trace:Te.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:Te.hovertemplate||!1,hovertemplateLabels:Te.hovertemplateLabels||!1,eventData:ye}}),{gd:X,hovermode:"closest",rotateLabels:!1,bgColor:Y.bgColor||g.background,container:l.select(Y.container),outerContainer:Y.outerContainer||Y.container}).hoverLabels,se=0,pe=0;return le.sort(function(Te,Se){return Te.y0-Se.y0}).each(function(Te,Se){var Oe=Te.y0-Te.by/2;Te.offset=Oe-5([\s\S]*)<\/extra>/;function j(Q,Y){var Z=Y.gd,X=Z._fullLayout,re=Y.hovermode,ie=Y.rotateLabels,le=Y.bgColor,se=Y.container,pe=Y.outerContainer,Te=Y.commonLabelOpts||{};if(Q.length===0)return[[]];var Se=Y.fontFamily||k.HOVERFONT,Oe=Y.fontSize||k.HOVERFONTSIZE,Me=Q[0],ce=Me.xa,ye=Me.ya,J=re.charAt(0),ne=J+"Label",de=Me[ne];if(de===void 0&&ce.type==="multicategory")for(var xe=0;xeX.width-jt?(ht=X.width-jt,Ft.attr("d","M"+(jt-R)+",0L"+jt+","+Et+R+"v"+Et+(2*F+qt.height)+"H-"+jt+"V"+Et+R+"H"+(jt-2*R)+"Z")):Ft.attr("d","M0,0L"+R+","+Et+R+"H"+jt+"v"+Et+(2*F+qt.height)+"H-"+jt+"V"+Et+R+"H-"+R+"Z"),Be.minX=ht-jt,Be.maxX=ht+jt,ce.side==="top"?(Be.minY=yt-(2*F+qt.height),Be.maxY=yt-F):(Be.minY=yt+F,Be.maxY=yt+(2*F+qt.height))}else{var Tt,Ot,At;ye.side==="right"?(Tt="start",Ot=1,At="",ht=ce._offset+ce._length):(Tt="end",Ot=-1,At="-",ht=ce._offset),yt=ye._offset+(Me.y0+Me.y1)/2,Vt.attr("text-anchor",Tt),Ft.attr("d","M0,0L"+At+R+","+R+"V"+(F+qt.height/2)+"h"+At+(2*F+qt.width)+"V-"+(F+qt.height/2)+"H"+At+R+"V-"+R+"Z"),Be.minY=yt-(F+qt.height/2),Be.maxY=yt+(F+qt.height/2),ye.side==="right"?(Be.minX=ht+R,Be.maxX=ht+R+(2*F+qt.width)):(Be.minX=ht-R-(2*F+qt.width),Be.maxX=ht-R);var Lt,Rt=qt.height/2,$t=ge-qt.top-Rt,Yt="clip"+X._uid+"commonlabel"+ye._id;if(ht=0?pt:It+wt=0?It:nt+wt=0?Je:ut+ve=0?ut:st+ve=0,tt.idealAlign!=="top"&&tn||!cn?tn?(Rt+=Yt/2,tt.anchor="start"):tt.anchor="middle":(Rt-=Yt/2,tt.anchor="end"),tt.crossPos=Rt;else{if(tt.pos=Rt,tn=Lt+$t/2+ln<=be,cn=Lt-$t/2-ln>=0,tt.idealAlign!=="left"&&tn||!cn)if(tn)Lt+=$t/2,tt.anchor="start";else{tt.anchor="middle";var an=ln/2,sn=Lt+an-be,Zt=Lt-an;sn>0&&(Lt-=sn),Zt<0&&(Lt+=-Zt)}else Lt-=$t/2,tt.anchor="end";tt.crossPos=Lt}Et.attr("text-anchor",tt.anchor),Tt&&jt.attr("text-anchor",tt.anchor),Ft.attr("transform",d(Lt,Rt)+(ie?h(S):""))}),{hoverLabels:mt,commonLabelBoundingBox:Be}}function N(Q,Y,Z,X,re,ie){var le="",se="";Q.nameOverride!==void 0&&(Q.name=Q.nameOverride),Q.name&&(Q.trace._meta&&(Q.name=c.templateString(Q.name,Q.trace._meta)),le=H(Q.name,Q.nameLength));var pe=Z.charAt(0),Te=pe==="x"?"y":"x";Q.zLabel!==void 0?(Q.xLabel!==void 0&&(se+="x: "+Q.xLabel+"
"),Q.yLabel!==void 0&&(se+="y: "+Q.yLabel+"
"),Q.trace.type!=="choropleth"&&Q.trace.type!=="choroplethmapbox"&&(se+=(se?"z: ":"")+Q.zLabel)):Y&&Q[pe+"Label"]===re?se=Q[Te+"Label"]||"":Q.xLabel===void 0?Q.yLabel!==void 0&&Q.trace.type!=="scattercarpet"&&(se=Q.yLabel):se=Q.yLabel===void 0?Q.xLabel:"("+Q.xLabel+", "+Q.yLabel+")",!Q.text&&Q.text!==0||Array.isArray(Q.text)||(se+=(se?"
":"")+Q.text),Q.extraText!==void 0&&(se+=(se?"
":"")+Q.extraText),ie&&se===""&&!Q.hovertemplate&&(le===""&&ie.remove(),se=le);var Se=Q.hovertemplate||!1;if(Se){var Oe=Q.hovertemplateLabels||Q;Q[pe+"Label"]!==re&&(Oe[pe+"other"]=Oe[pe+"Val"],Oe[pe+"otherLabel"]=Oe[pe+"Label"]),se=(se=c.hovertemplateString(Se,Oe,X._d3locale,Q.eventData[0]||{},Q.trace._meta)).replace($,function(Me,ce){return le=H(ce,Q.nameLength),""})}return[se,le]}function E(Q,Y){var Z=0,X=Q.offset;return Y&&(X*=-O,Z=Q.offset*D),{x:Z,y:X}}function W(Q,Y,Z,X){var re=function(le){return le*Z},ie=function(le){return le*X};Q.each(function(le){var se=l.select(this);if(le.del)return se.remove();var pe,Te,Se,Oe,Me=se.select("text.nums"),ce=le.anchor,ye=ce==="end"?-1:1,J=(Oe=(Se=(Te={start:1,end:-1,middle:0}[(pe=le).anchor])*(R+F))+Te*(pe.txwidth+F),pe.anchor==="middle"&&(Se-=pe.tx2width/2,Oe+=pe.txwidth/2+F),{alignShift:Te,textShiftX:Se,text2ShiftX:Oe}),ne=E(le,Y),de=ne.x,xe=ne.y,ue=ce==="middle";se.select("path").attr("d",ue?"M-"+re(le.bx/2+le.tx2width/2)+","+ie(xe-le.by/2)+"h"+re(le.bx)+"v"+ie(le.by)+"h-"+re(le.bx)+"Z":"M0,0L"+re(ye*R+de)+","+ie(R+xe)+"v"+ie(le.by/2-R)+"h"+re(ye*le.bx)+"v-"+ie(le.by)+"H"+re(ye*R+de)+"V"+ie(xe-R)+"Z");var ge=de+J.textShiftX,be=xe+le.ty0-le.by/2+F,we=le.textAlign||"auto";we!=="auto"&&(we==="left"&&ce!=="start"?(Me.attr("text-anchor","start"),ge=ue?-le.bx/2-le.tx2width/2+F:-le.bx-F):we==="right"&&ce!=="end"&&(Me.attr("text-anchor","end"),ge=ue?le.bx/2-le.tx2width/2-F:le.bx+F)),Me.call(m.positionText,re(ge),ie(be)),le.tx2width&&(se.select("text.name").call(m.positionText,re(J.text2ShiftX+J.alignShift*F+de),ie(xe+le.ty0-le.by/2+F)),se.select("rect").call(v.setRect,re(J.text2ShiftX+(J.alignShift-1)*le.tx2width/2+de),ie(xe-le.by/2-1),re(le.tx2width),ie(le.by+2)))})}function G(Q,Y){var Z=Q.index,X=Q.trace||{},re=Q.cd[0],ie=Q.cd[Z]||{};function le(Me){return Me||f(Me)&&Me===0}var se=Array.isArray(Z)?function(Me,ce){var ye=c.castOption(re,Z,Me);return le(ye)?ye:c.extractOption({},X,"",ce)}:function(Me,ce){return c.extractOption(ie,X,Me,ce)};function pe(Me,ce,ye){var J=se(ce,ye);le(J)&&(Q[Me]=J)}if(pe("hoverinfo","hi","hoverinfo"),pe("bgcolor","hbg","hoverlabel.bgcolor"),pe("borderColor","hbc","hoverlabel.bordercolor"),pe("fontFamily","htf","hoverlabel.font.family"),pe("fontSize","hts","hoverlabel.font.size"),pe("fontColor","htc","hoverlabel.font.color"),pe("nameLength","hnl","hoverlabel.namelength"),pe("textAlign","hta","hoverlabel.align"),Q.posref=Y==="y"||Y==="closest"&&X.orientation==="h"?Q.xa._offset+(Q.x0+Q.x1)/2:Q.ya._offset+(Q.y0+Q.y1)/2,Q.x0=c.constrain(Q.x0,0,Q.xa._length),Q.x1=c.constrain(Q.x1,0,Q.xa._length),Q.y0=c.constrain(Q.y0,0,Q.ya._length),Q.y1=c.constrain(Q.y1,0,Q.ya._length),Q.xLabelVal!==void 0&&(Q.xLabel="xLabel"in Q?Q.xLabel:x.hoverLabelText(Q.xa,Q.xLabelVal,X.xhoverformat),Q.xVal=Q.xa.c2d(Q.xLabelVal)),Q.yLabelVal!==void 0&&(Q.yLabel="yLabel"in Q?Q.yLabel:x.hoverLabelText(Q.ya,Q.yLabelVal,X.yhoverformat),Q.yVal=Q.ya.c2d(Q.yLabelVal)),Q.zLabelVal!==void 0&&Q.zLabel===void 0&&(Q.zLabel=String(Q.zLabelVal)),!(isNaN(Q.xerr)||Q.xa.type==="log"&&Q.xerr<=0)){var Te=x.tickText(Q.xa,Q.xa.c2l(Q.xerr),"hover").text;Q.xerrneg!==void 0?Q.xLabel+=" +"+Te+" / -"+x.tickText(Q.xa,Q.xa.c2l(Q.xerrneg),"hover").text:Q.xLabel+=" ± "+Te,Y==="x"&&(Q.distance+=1)}if(!(isNaN(Q.yerr)||Q.ya.type==="log"&&Q.yerr<=0)){var Se=x.tickText(Q.ya,Q.ya.c2l(Q.yerr),"hover").text;Q.yerrneg!==void 0?Q.yLabel+=" +"+Se+" / -"+x.tickText(Q.ya,Q.ya.c2l(Q.yerrneg),"hover").text:Q.yLabel+=" ± "+Se,Y==="y"&&(Q.distance+=1)}var Oe=Q.hoverinfo||Q.trace.hoverinfo;return Oe&&Oe!=="all"&&((Oe=Array.isArray(Oe)?Oe:Oe.split("+")).indexOf("x")===-1&&(Q.xLabel=void 0),Oe.indexOf("y")===-1&&(Q.yLabel=void 0),Oe.indexOf("z")===-1&&(Q.zLabel=void 0),Oe.indexOf("text")===-1&&(Q.text=void 0),Oe.indexOf("name")===-1&&(Q.name=void 0)),Q}function L(Q,Y,Z){var X,re,ie=Z.container,le=Z.fullLayout,se=le._size,pe=Z.event,Te=!!Y.hLinePoint,Se=!!Y.vLinePoint;if(ie.selectAll(".spikeline").remove(),Se||Te){var Oe=g.combine(le.plot_bgcolor,le.paper_bgcolor);if(Te){var Me,ce,ye=Y.hLinePoint;X=ye&&ye.xa,(re=ye&&ye.ya).spikesnap==="cursor"?(Me=pe.pointerX,ce=pe.pointerY):(Me=X._offset+ye.x,ce=re._offset+ye.y);var J,ne,de=s.readability(ye.color,Oe)<1.5?g.contrast(Oe):ye.color,xe=re.spikemode,ue=re.spikethickness,ge=re.spikecolor||de,be=x.getPxPosition(Q,re);if(xe.indexOf("toaxis")!==-1||xe.indexOf("across")!==-1){if(xe.indexOf("toaxis")!==-1&&(J=be,ne=Me),xe.indexOf("across")!==-1){var we=re._counterDomainMin,ke=re._counterDomainMax;re.anchor==="free"&&(we=Math.min(we,re.position),ke=Math.max(ke,re.position)),J=se.l+we*se.w,ne=se.l+ke*se.w}ie.insert("line",":first-child").attr({x1:J,x2:ne,y1:ce,y2:ce,"stroke-width":ue,stroke:ge,"stroke-dasharray":v.dashStyle(re.spikedash,ue)}).classed("spikeline",!0).classed("crisp",!0),ie.insert("line",":first-child").attr({x1:J,x2:ne,y1:ce,y2:ce,"stroke-width":ue+2,stroke:Oe}).classed("spikeline",!0).classed("crisp",!0)}xe.indexOf("marker")!==-1&&ie.insert("circle",":first-child").attr({cx:be+(re.side!=="right"?ue:-ue),cy:ce,r:ue,fill:ge}).classed("spikeline",!0)}if(Se){var Ae,Ee,De=Y.vLinePoint;X=De&&De.xa,re=De&&De.ya,X.spikesnap==="cursor"?(Ae=pe.pointerX,Ee=pe.pointerY):(Ae=X._offset+De.x,Ee=re._offset+De.y);var Re,Ie,Be=s.readability(De.color,Oe)<1.5?g.contrast(Oe):De.color,Ue=X.spikemode,qe=X.spikethickness,Ye=X.spikecolor||Be,at=x.getPxPosition(Q,X);if(Ue.indexOf("toaxis")!==-1||Ue.indexOf("across")!==-1){if(Ue.indexOf("toaxis")!==-1&&(Re=at,Ie=Ee),Ue.indexOf("across")!==-1){var lt=X._counterDomainMin,ct=X._counterDomainMax;X.anchor==="free"&&(lt=Math.min(lt,X.position),ct=Math.max(ct,X.position)),Re=se.t+(1-ct)*se.h,Ie=se.t+(1-lt)*se.h}ie.insert("line",":first-child").attr({x1:Ae,x2:Ae,y1:Re,y2:Ie,"stroke-width":qe,stroke:Ye,"stroke-dasharray":v.dashStyle(X.spikedash,qe)}).classed("spikeline",!0).classed("crisp",!0),ie.insert("line",":first-child").attr({x1:Ae,x2:Ae,y1:Re,y2:Ie,"stroke-width":qe+2,stroke:Oe}).classed("spikeline",!0).classed("crisp",!0)}Ue.indexOf("marker")!==-1&&ie.insert("circle",":first-child").attr({cx:Ae,cy:at-(X.side!=="top"?qe:-qe),r:qe,fill:Ye}).classed("spikeline",!0)}}}function q(Q,Y){return!Y}function H(Q,Y){return m.plainText(Q||"",{len:Y,allowedTags:["br","sub","sup","b","i","em"]})}function V(Q,Y,Z){var X=Y[Q+"a"],re=Y[Q+"Val"],ie=Y.cd[0];if(X.type==="category"||X.type==="multicategory")re=X._categoriesMap[re];else if(X.type==="date"){var le=Y.trace[Q+"periodalignment"];if(le){var se=Y.cd[Y.index],pe=se[Q+"Start"];pe===void 0&&(pe=se[Q]);var Te=se[Q+"End"];Te===void 0&&(Te=se[Q]);var Se=Te-pe;le==="end"?re+=Se:le==="middle"&&(re+=Se/2)}re=X.d2c(re)}return ie&&ie.t&&ie.t.posLetter===X._id&&(Z.boxmode!=="group"&&Z.violinmode!=="group"||(re+=ie.t.dPos)),re}function te(Q){return Q.offsetTop+Q.clientTop}function ee(Q){return Q.offsetLeft+Q.clientLeft}function U(Q,Y){var Z=Q._fullLayout,X=Y.getBoundingClientRect(),re=X.left,ie=X.top,le=re+X.width,se=ie+X.height,pe=c.apply3DTransform(Z._invTransform)(re,ie),Te=c.apply3DTransform(Z._invTransform)(le,se),Se=pe[0],Oe=pe[1],Me=Te[0],ce=Te[1];return{x:Se,y:Oe,width:Me-Se,height:ce-Oe,top:Math.min(Oe,ce),left:Math.min(Se,Me),right:Math.max(Se,Me),bottom:Math.max(Oe,ce)}}},38048:function(o,a,n){var l=n(71828),f=n(7901),s=n(23469).isUnifiedHover;o.exports=function(c,d,h,p){p=p||{};var m=d.legend;function y(v){p.font[v]||(p.font[v]=m?d.legend.font[v]:d.font[v])}d&&s(d.hovermode)&&(p.font||(p.font={}),y("size"),y("family"),y("color"),m?(p.bgcolor||(p.bgcolor=f.combine(d.legend.bgcolor,d.paper_bgcolor)),p.bordercolor||(p.bordercolor=d.legend.bordercolor)):p.bgcolor||(p.bgcolor=d.paper_bgcolor)),h("hoverlabel.bgcolor",p.bgcolor),h("hoverlabel.bordercolor",p.bordercolor),h("hoverlabel.namelength",p.namelength),l.coerceFont(h,"hoverlabel.font",p.font),h("hoverlabel.align",p.align)}},98212:function(o,a,n){var l=n(71828),f=n(528);o.exports=function(s,c){function d(h,p){return c[h]!==void 0?c[h]:l.coerce(s,c,f,h,p)}return d("clickmode"),d("hovermode")}},30211:function(o,a,n){var l=n(39898),f=n(71828),s=n(28569),c=n(23469),d=n(528),h=n(88335);o.exports={moduleType:"component",name:"fx",constants:n(26675),schema:{layout:d},attributes:n(77914),layoutAttributes:d,supplyLayoutGlobalDefaults:n(22774),supplyDefaults:n(54268),supplyLayoutDefaults:n(34938),calc:n(30732),getDistanceFunction:c.getDistanceFunction,getClosest:c.getClosest,inbox:c.inbox,quadrature:c.quadrature,appendArrayPointValue:c.appendArrayPointValue,castHoverOption:function(p,m,y){return f.castOption(p,m,"hoverlabel."+y)},castHoverinfo:function(p,m,y){return f.castOption(p,y,"hoverinfo",function(v){return f.coerceHoverinfo({hoverinfo:v},{_module:p._module},m)})},hover:h.hover,unhover:s.unhover,loneHover:h.loneHover,loneUnhover:function(p){var m=f.isD3Selection(p)?p:l.select(p);m.selectAll("g.hovertext").remove(),m.selectAll(".spikeline").remove()},click:n(75914)}},528:function(o,a,n){var l=n(26675),f=n(41940),s=f({editType:"none"});s.family.dflt=l.HOVERFONT,s.size.dflt=l.HOVERFONTSIZE,o.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:s,grouptitlefont:f({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},34938:function(o,a,n){var l=n(71828),f=n(528),s=n(98212),c=n(38048);o.exports=function(d,h){function p(g,b){return l.coerce(d,h,f,g,b)}s(d,h)&&(p("hoverdistance"),p("spikedistance")),p("dragmode")==="select"&&p("selectdirection");var m=h._has("mapbox"),y=h._has("geo"),v=h._basePlotModules.length;h.dragmode==="zoom"&&((m||y)&&v===1||m&&y&&v===2)&&(h.dragmode="pan"),c(d,h,p),l.coerceFont(p,"hoverlabel.grouptitlefont",h.hoverlabel.font)}},22774:function(o,a,n){var l=n(71828),f=n(38048),s=n(528);o.exports=function(c,d){f(c,d,function(h,p){return l.coerce(c,d,s,h,p)})}},83312:function(o,a,n){var l=n(71828),f=n(30587).counter,s=n(27670).Y,c=n(85555).idRegex,d=n(44467),h={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[f("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[c.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[c.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:s({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function p(v,g,b){var x=g[b+"axes"],_=Object.keys((v._splomAxes||{})[b]||{});return Array.isArray(x)?x:_.length?_:void 0}function m(v,g,b,x,_,w){var k=g(v+"gap",b),T=g("domain."+v);g(v+"side",x);for(var M=new Array(_),S=T[0],C=(T[1]-S)/(_-k),P=C*(1-k),D=0;D<_;D++){var O=S+C*D;M[w?_-1-D:D]=[O,O+P]}return M}function y(v,g,b,x,_){var w,k=new Array(b);function T(M,S){g.indexOf(S)!==-1&&x[S]===void 0?(k[M]=S,x[S]=M):k[M]=""}if(Array.isArray(v))for(w=0;w1){T||M||S||$("pattern")==="independent"&&(T=!0),P._hasSubplotGrid=T;var R,F,A=$("roworder")==="top to bottom",z=T?.2:.1,B=T?.3:.1;C&&g._splomGridDflt&&(R=g._splomGridDflt.xside,F=g._splomGridDflt.yside),P._domains={x:m("x",$,z,R,O),y:m("y",$,B,F,D,A)}}else delete g.grid}function $(j,N){return l.coerce(b,P,h,j,N)}},contentDefaults:function(v,g){var b=g.grid;if(b&&b._domains){var x,_,w,k,T,M,S,C=v.grid||{},P=g._subplots,D=b._hasSubplotGrid,O=b.rows,R=b.columns,F=b.pattern==="independent",A=b._axisMap={};if(D){var z=C.subplots||[];M=b.subplots=new Array(O);var B=1;for(x=0;x(y==="legend"?1:0));if(B===!1&&(g[y]=void 0),(B!==!1||x.uirevision)&&(w("uirevision",g.uirevision),B!==!1)){w("borderwidth");var $,j,N,E=w("orientation")==="h",W=w("yref")==="paper",G=w("xref")==="paper",L="left";if(E?($=0,l.getComponentMethod("rangeslider","isVisible")(v.xaxis)?W?(j=1.1,N="bottom"):(j=1,N="top"):W?(j=-.1,N="top"):(j=0,N="bottom")):(j=1,N="auto",G?$=1.02:($=1,L="right")),f.coerce(x,_,{x:{valType:"number",editType:"legend",min:G?-2:0,max:G?3:1,dflt:$}},"x"),f.coerce(x,_,{y:{valType:"number",editType:"legend",min:W?-2:0,max:W?3:1,dflt:j}},"y"),w("traceorder",O),p.isGrouped(g[y])&&w("tracegroupgap"),w("entrywidth"),w("entrywidthmode"),w("itemsizing"),w("itemwidth"),w("itemclick"),w("itemdoubleclick"),w("groupclick"),w("xanchor",L),w("yanchor",N),w("valign"),f.noneOrAll(x,_,["x","y"]),w("title.text")){w("title.side",E?"left":"top");var q=f.extendFlat({},k,{size:f.bigFont(k.size)});f.coerceFont(w,"title.font",q)}}}}o.exports=function(y,v,g){var b,x=g.slice(),_=v.shapes;if(_)for(b=0;b<_.length;b++){var w=_[b];if(w.showlegend){var k={_input:w._input,visible:w.visible,showlegend:w.showlegend,legend:w.legend};x.push(k)}}var T=["legend"];for(b=0;b1)}var X=q.hiddenlabels||[];if(!(V||q.showlegend&&te.length))return G.selectAll("."+H).remove(),q._topdefs.select("#"+W).remove(),s.autoMargin(N,H);var re=f.ensureSingle(G,"g",H,function(ce){V||ce.attr("pointer-events","all")}),ie=f.ensureSingleById(q._topdefs,"clipPath",W,function(ce){ce.append("rect")}),le=f.ensureSingle(re,"rect","bg",function(ce){ce.attr("shape-rendering","crispEdges")});le.call(m.stroke,L.bordercolor).call(m.fill,L.bgcolor).style("stroke-width",L.borderwidth+"px");var se,pe=f.ensureSingle(re,"g","scrollbox"),Te=L.title;L._titleWidth=0,L._titleHeight=0,Te.text?((se=f.ensureSingle(pe,"text",H+"titletext")).attr("text-anchor","start").call(p.font,Te.font).text(Te.text),z(se,pe,N,L,S)):pe.selectAll("."+H+"titletext").remove();var Se=f.ensureSingle(re,"rect","scrollbar",function(ce){ce.attr(g.scrollBarEnterAttrs).call(m.fill,g.scrollBarColor)}),Oe=pe.selectAll("g.groups").data(te);Oe.enter().append("g").attr("class","groups"),Oe.exit().remove();var Me=Oe.selectAll("g.traces").data(f.identity);Me.enter().append("g").attr("class","traces"),Me.exit().remove(),Me.style("opacity",function(ce){var ye=ce[0].trace;return c.traceIs(ye,"pie-like")?X.indexOf(ce[0].label)!==-1?.5:1:ye.visible==="legendonly"?.5:1}).each(function(){l.select(this).call(R,N,L)}).call(T,N,L).each(function(){V||l.select(this).call(A,N,H)}),f.syncOrAsync([s.previousPromises,function(){return function(ce,ye,J,ne){var de=ce._fullLayout,xe=j(ne);ne||(ne=de[xe]);var ue=de._size,ge=M.isVertical(ne),be=M.isGrouped(ne),we=ne.entrywidthmode==="fraction",ke=ne.borderwidth,Ae=2*ke,Ee=g.itemGap,De=ne.itemwidth+2*Ee,Re=2*(ke+Ee),Ie=$(ne),Be=ne.y<0||ne.y===0&&Ie==="top",Ue=ne.y>1||ne.y===1&&Ie==="bottom",qe=ne.tracegroupgap,Ye={};ne._maxHeight=Math.max(Be||Ue?de.height/2:ue.h,30);var at=0;ne._width=0,ne._height=0;var lt=function(Ge){var Ke=0,nt=0,st=Ge.title.side;return st&&(st.indexOf("left")!==-1&&(Ke=Ge._titleWidth),st.indexOf("top")!==-1&&(nt=Ge._titleHeight)),[Ke,nt]}(ne);if(ge)J.each(function(Ge){var Ke=Ge[0].height;p.setTranslate(this,ke+lt[0],ke+lt[1]+ne._height+Ke/2+Ee),ne._height+=Ke,ne._width=Math.max(ne._width,Ge[0].width)}),at=De+ne._width,ne._width+=Ee+De+Ae,ne._height+=Re,be&&(ye.each(function(Ge,Ke){p.setTranslate(this,0,Ke*ne.tracegroupgap)}),ne._height+=(ne._lgroupsLength-1)*ne.tracegroupgap);else{var ct=B(ne),bt=ne.x<0||ne.x===0&&ct==="right",ze=ne.x>1||ne.x===1&&ct==="left",Ne=Ue||Be,Qe=de.width/2;ne._maxWidth=Math.max(bt?Ne&&ct==="left"?ue.l+ue.w:Qe:ze?Ne&&ct==="right"?ue.r+ue.w:Qe:ue.w,2*De);var it=0,kt=0;J.each(function(Ge){var Ke=D(Ge,ne,De);it=Math.max(it,Ke),kt+=Ke}),at=null;var Je=0;if(be){var ut=0,pt=0,It=0;ye.each(function(){var Ge=0,Ke=0;l.select(this).selectAll("g.traces").each(function(st){var mt=D(st,ne,De),tt=st[0].height;p.setTranslate(this,lt[0],lt[1]+ke+Ee+tt/2+Ke),Ke+=tt,Ge=Math.max(Ge,mt),Ye[st[0].trace.legendgroup]=Ge});var nt=Ge+Ee;pt>0&&nt+ke+pt>ne._maxWidth?(Je=Math.max(Je,pt),pt=0,It+=ut+qe,ut=Ke):ut=Math.max(ut,Ke),p.setTranslate(this,pt,It),pt+=nt}),ne._width=Math.max(Je,pt)+ke,ne._height=It+ut+Re}else{var Mt=J.size(),zt=kt+Ae+(Mt-1)*Ee=ne._maxWidth&&(Je=Math.max(Je,Ve),ve=0,_e+=wt,ne._height+=wt,wt=0),p.setTranslate(this,lt[0]+ke+ve,lt[1]+ke+_e+Ke/2+Ee),Ve=ve+nt+Ee,ve+=st,wt=Math.max(wt,Ke)}),zt?(ne._width=ve+Ae,ne._height=wt+Re):(ne._width=Math.max(Je,Ve)+Ae,ne._height+=wt+Re)}}ne._width=Math.ceil(Math.max(ne._width+lt[0],ne._titleWidth+2*(ke+g.titlePad))),ne._height=Math.ceil(Math.max(ne._height+lt[1],ne._titleHeight+2*(ke+g.itemGap))),ne._effHeight=Math.min(ne._height,ne._maxHeight);var We=ce._context.edits,Ze=We.legendText||We.legendPosition;J.each(function(Ge){var Ke=l.select(this).select("."+xe+"toggle"),nt=Ge[0].height,st=Ge[0].trace.legendgroup,mt=D(Ge,ne,De);be&&st!==""&&(mt=Ye[st]);var tt=Ze?De:at||mt;ge||we||(tt+=Ee/2),p.setRect(Ke,0,-nt/2,tt,nt)})}(N,Oe,Me,L)},function(){var ce,ye,J,ne,de=q._size,xe=L.borderwidth,ue=L.xref==="paper",ge=L.yref==="paper";if(Te.text&&function(Ne,Qe,it){if(Qe.title.side==="top center"||Qe.title.side==="top right"){var kt=Qe.title.font.size*x,Je=0,ut=Ne.node(),pt=p.bBox(ut).width;Qe.title.side==="top center"?Je=.5*(Qe._width-2*it-2*g.titlePad-pt):Qe.title.side==="top right"&&(Je=Qe._width-2*it-2*g.titlePad-pt),y.positionText(Ne,it+g.titlePad+Je,it+kt)}}(se,L,xe),!V){var be,we;be=ue?de.l+de.w*L.x-_[B(L)]*L._width:q.width*L.x-_[B(L)]*L._width,we=ge?de.t+de.h*(1-L.y)-_[$(L)]*L._effHeight:q.height*(1-L.y)-_[$(L)]*L._effHeight;var ke=function(Ne,Qe,it,kt){var Je=Ne._fullLayout,ut=Je[Qe],pt=B(ut),It=$(ut),Mt=ut.xref==="paper",zt=ut.yref==="paper";Ne._fullLayout._reservedMargin[Qe]={};var wt=ut.y<.5?"b":"t",ve=ut.x<.5?"l":"r",_e={r:Je.width-it,l:it+ut._width,b:Je.height-kt,t:kt+ut._effHeight};if(Mt&&zt)return s.autoMargin(Ne,Qe,{x:ut.x,y:ut.y,l:ut._width*_[pt],r:ut._width*w[pt],b:ut._effHeight*w[It],t:ut._effHeight*_[It]});Mt?Ne._fullLayout._reservedMargin[Qe][wt]=_e[wt]:zt||ut.orientation==="v"?Ne._fullLayout._reservedMargin[Qe][ve]=_e[ve]:Ne._fullLayout._reservedMargin[Qe][wt]=_e[wt]}(N,H,be,we);if(ke)return;if(q.margin.autoexpand){var Ae=be,Ee=we;be=ue?f.constrain(be,0,q.width-L._width):Ae,we=ge?f.constrain(we,0,q.height-L._effHeight):Ee,be!==Ae&&f.log("Constrain "+H+".x to make legend fit inside graph"),we!==Ee&&f.log("Constrain "+H+".y to make legend fit inside graph")}p.setTranslate(re,be,we)}if(Se.on(".drag",null),re.on("wheel",null),V||L._height<=L._maxHeight||N._context.staticPlot){var De=L._effHeight;V&&(De=L._height),le.attr({width:L._width-xe,height:De-xe,x:xe/2,y:xe/2}),p.setTranslate(pe,0,0),ie.select("rect").attr({width:L._width-2*xe,height:De-2*xe,x:xe,y:xe}),p.setClipUrl(pe,W,N),p.setRect(Se,0,0,0,0),delete L._scrollY}else{var Re,Ie,Be,Ue=Math.max(g.scrollBarMinHeight,L._effHeight*L._effHeight/L._height),qe=L._effHeight-Ue-2*g.scrollBarMargin,Ye=L._height-L._effHeight,at=qe/Ye,lt=Math.min(L._scrollY||0,Ye);le.attr({width:L._width-2*xe+g.scrollBarWidth+g.scrollBarMargin,height:L._effHeight-xe,x:xe/2,y:xe/2}),ie.select("rect").attr({width:L._width-2*xe+g.scrollBarWidth+g.scrollBarMargin,height:L._effHeight-2*xe,x:xe,y:xe+lt}),p.setClipUrl(pe,W,N),ze(lt,Ue,at),re.on("wheel",function(){ze(lt=f.constrain(L._scrollY+l.event.deltaY/qe*Ye,0,Ye),Ue,at),lt!==0&<!==Ye&&l.event.preventDefault()});var ct=l.behavior.drag().on("dragstart",function(){var Ne=l.event.sourceEvent;Re=Ne.type==="touchstart"?Ne.changedTouches[0].clientY:Ne.clientY,Be=lt}).on("drag",function(){var Ne=l.event.sourceEvent;Ne.buttons===2||Ne.ctrlKey||(Ie=Ne.type==="touchmove"?Ne.changedTouches[0].clientY:Ne.clientY,lt=function(Qe,it,kt){var Je=(kt-it)/at+Qe;return f.constrain(Je,0,Ye)}(Be,Re,Ie),ze(lt,Ue,at))});Se.call(ct);var bt=l.behavior.drag().on("dragstart",function(){var Ne=l.event.sourceEvent;Ne.type==="touchstart"&&(Re=Ne.changedTouches[0].clientY,Be=lt)}).on("drag",function(){var Ne=l.event.sourceEvent;Ne.type==="touchmove"&&(Ie=Ne.changedTouches[0].clientY,lt=function(Qe,it,kt){var Je=(it-kt)/at+Qe;return f.constrain(Je,0,Ye)}(Be,Re,Ie),ze(lt,Ue,at))});pe.call(bt)}function ze(Ne,Qe,it){L._scrollY=N._fullLayout[H]._scrollY=Ne,p.setTranslate(pe,0,-Ne),p.setRect(Se,L._width,g.scrollBarMargin+Ne*it,g.scrollBarWidth,Qe),ie.select("rect").attr("y",xe+Ne)}N._context.edits.legendPosition&&(re.classed("cursor-move",!0),h.init({element:re.node(),gd:N,prepFn:function(){var Ne=p.getTranslate(re);J=Ne.x,ne=Ne.y},moveFn:function(Ne,Qe){var it=J+Ne,kt=ne+Qe;p.setTranslate(re,it,kt),ce=h.align(it,L._width,de.l,de.l+de.w,L.xanchor),ye=h.align(kt+L._height,-L._height,de.t+de.h,de.t,L.yanchor)},doneFn:function(){if(ce!==void 0&&ye!==void 0){var Ne={};Ne[H+".x"]=ce,Ne[H+".y"]=ye,c.call("_guiRelayout",N,Ne)}},clickFn:function(Ne,Qe){var it=G.selectAll("g.traces").filter(function(){var kt=this.getBoundingClientRect();return Qe.clientX>=kt.left&&Qe.clientX<=kt.right&&Qe.clientY>=kt.top&&Qe.clientY<=kt.bottom});it.size()>0&&O(N,re,it,Ne,Qe)}}))}],N)}}function D(N,E,W){var G=N[0],L=G.width,q=E.entrywidthmode,H=G.trace.legendwidth||E.entrywidth;return q==="fraction"?E._maxWidth*H:W+(H||L)}function O(N,E,W,G,L){var q=W.data()[0][0].trace,H={event:L,node:W.node(),curveNumber:q.index,expandedIndex:q._expandedIndex,data:N.data,layout:N.layout,frames:N._transitionData._frames,config:N._context,fullData:N._fullData,fullLayout:N._fullLayout};q._group&&(H.group=q._group),c.traceIs(q,"pie-like")&&(H.label=W.datum()[0].label);var V=d.triggerHandler(N,"plotly_legendclick",H);if(G===1){if(V===!1)return;E._clickTimeout=setTimeout(function(){N._fullLayout&&v(W,N,G)},N._context.doubleClickDelay)}else G===2&&(E._clickTimeout&&clearTimeout(E._clickTimeout),N._legendMouseDownTime=0,d.triggerHandler(N,"plotly_legenddoubleclick",H)!==!1&&V!==!1&&v(W,N,G))}function R(N,E,W){var G,L,q=j(W),H=N.data()[0][0],V=H.trace,te=c.traceIs(V,"pie-like"),ee=!W._inHover&&E._context.edits.legendText&&!te,U=W._maxNameLength;H.groupTitle?(G=H.groupTitle.text,L=H.groupTitle.font):(L=W.font,W.entries?G=H.text:(G=te?H.label:V.name,V._meta&&(G=f.templateString(G,V._meta))));var Q=f.ensureSingle(N,"text",q+"text");Q.attr("text-anchor","start").call(p.font,L).text(ee?F(G,U):G);var Y=W.itemwidth+2*g.itemGap;y.positionText(Q,Y,0),ee?Q.call(y.makeEditable,{gd:E,text:G}).call(z,N,E,W).on("edit",function(Z){this.text(F(Z,U)).call(z,N,E,W);var X=H.trace._fullInput||{},re={};if(c.hasTransform(X,"groupby")){var ie=c.getTransformIndices(X,"groupby"),le=ie[ie.length-1],se=f.keyedContainer(X,"transforms["+le+"].styles","target","value.name");se.set(H.trace._group,Z),re=se.constructUpdate()}else re.name=Z;return X._isShape?c.call("_guiRelayout",E,"shapes["+V.index+"].name",re.name):c.call("_guiRestyle",E,re,V.index)}):z(Q,N,E,W)}function F(N,E){var W=Math.max(4,E);if(N&&N.trim().length>=W/2)return N;for(var G=W-(N=N||"").length;G>0;G--)N+=" ";return N}function A(N,E,W){var G,L=E._context.doubleClickDelay,q=1,H=f.ensureSingle(N,"rect",W+"toggle",function(V){E._context.staticPlot||V.style("cursor","pointer").attr("pointer-events","all"),V.call(m.fill,"rgba(0,0,0,0)")});E._context.staticPlot||(H.on("mousedown",function(){(G=new Date().getTime())-E._legendMouseDownTimeL&&(q=Math.max(q-1,1)),O(E,V,N,q,l.event)}}))}function z(N,E,W,G,L){G._inHover&&N.attr("data-notex",!0),y.convertToTspans(N,W,function(){(function(q,H,V,te){var ee=q.data()[0][0];if(V._inHover||!ee||ee.trace.showlegend){var U=q.select("g[class*=math-group]"),Q=U.node(),Y=j(V);V||(V=H._fullLayout[Y]);var Z,X,re=V.borderwidth,ie=(te===S?V.title.font:ee.groupTitle?ee.groupTitle.font:V.font).size*x;if(Q){var le=p.bBox(Q);Z=le.height,X=le.width,te===S?p.setTranslate(U,re,re+.75*Z):p.setTranslate(U,0,.25*Z)}else{var se="."+Y+(te===S?"title":"")+"text",pe=q.select(se),Te=y.lineCount(pe),Se=pe.node();if(Z=ie*Te,X=Se?p.bBox(Se).width:0,te===S)V.title.side==="left"&&(X+=2*g.itemGap),y.positionText(pe,re+g.titlePad,re+ie);else{var Oe=2*g.itemGap+V.itemwidth;ee.groupTitle&&(Oe=g.itemGap,X-=V.itemwidth),y.positionText(pe,Oe,-ie*((Te-1)/2-.3))}}te===S?(V._titleWidth=X,V._titleHeight=Z):(ee.lineHeight=ie,ee.height=Math.max(Z,16)+3,ee.width=X)}else q.remove()})(E,W,G,L)})}function B(N){return f.isRightAnchor(N)?"right":f.isCenterAnchor(N)?"center":"left"}function $(N){return f.isBottomAnchor(N)?"bottom":f.isMiddleAnchor(N)?"middle":"top"}function j(N){return N._id||"legend"}o.exports=function(N,E){if(E)P(N,E);else{var W=N._fullLayout,G=W._legends;W._infolayer.selectAll('[class^="legend"]').each(function(){var H=l.select(this),V=H.attr("class").split(" ")[0];V.match(C)&&G.indexOf(V)===-1&&H.remove()});for(var L=0;LB&&(z=B)}F[h][0]._groupMinRank=z,F[h][0]._preGroupSort=h}var $=function(G,L){return G.trace.legendrank-L.trace.legendrank||G._preSort-L._preSort};for(F.forEach(function(G,L){G[0]._preGroupSort=L}),F.sort(function(G,L){return G[0]._groupMinRank-L[0]._groupMinRank||G[0]._preGroupSort-L[0]._preGroupSort}),h=0;hT?T:w}o.exports=function(w,k,T){var M=k._fullLayout;T||(T=M.legend);var S=T.itemsizing==="constant",C=T.itemwidth,P=(C+2*g.itemGap)/2,D=c(P,0),O=function(A,z,B,$){var j;if(A+1)j=A;else{if(!(z&&z.width>0))return 0;j=z.width}return S?$:Math.min(j,B)};function R(A,z,B){var $=A[0].trace,j=$.marker||{},N=j.line||{},E=B?$.visible&&$.type===B:f.traceIs($,"bar"),W=l.select(z).select("g.legendpoints").selectAll("path.legend"+B).data(E?[A]:[]);W.enter().append("path").classed("legend"+B,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),W.exit().remove(),W.each(function(G){var L=l.select(this),q=G[0],H=O(q.mlw,j.line,5,2);L.style("stroke-width",H+"px");var V=q.mcc;if(!T._inHover&&"mc"in q){var te=p(j),ee=te.mid;ee===void 0&&(ee=(te.max+te.min)/2),V=d.tryColorscale(j,"")(ee)}var U=V||q.mc||j.color,Q=j.pattern,Y=Q&&d.getPatternAttr(Q.shape,0,"");if(Y){var Z=d.getPatternAttr(Q.bgcolor,0,null),X=d.getPatternAttr(Q.fgcolor,0,null),re=Q.fgopacity,ie=_(Q.size,8,10),le=_(Q.solidity,.5,1),se="legend-"+$.uid;L.call(d.pattern,"legend",k,se,Y,ie,le,V,Q.fillmode,Z,X,re)}else L.call(h.fill,U);H&&h.stroke(L,q.mlc||N.color)})}function F(A,z,B){var $=A[0],j=$.trace,N=B?j.visible&&j.type===B:f.traceIs(j,B),E=l.select(z).select("g.legendpoints").selectAll("path.legend"+B).data(N?[A]:[]);if(E.enter().append("path").classed("legend"+B,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),E.exit().remove(),E.size()){var W=j.marker||{},G=O(v(W.line.width,$.pts),W.line,5,2),L="pieLike",q=s.minExtend(j,{marker:{line:{width:G}}},L),H=s.minExtend($,{trace:q},L);y(E,H,q,k)}}w.each(function(A){var z=l.select(this),B=s.ensureSingle(z,"g","layers");B.style("opacity",A[0].trace.opacity);var $=T.valign,j=A[0].lineHeight,N=A[0].height;if($!=="middle"&&j&&N){var E={top:1,bottom:-1}[$]*(.5*(j-N+3));B.attr("transform",c(0,E))}else B.attr("transform",null);B.selectAll("g.legendfill").data([A]).enter().append("g").classed("legendfill",!0),B.selectAll("g.legendlines").data([A]).enter().append("g").classed("legendlines",!0);var W=B.selectAll("g.legendsymbols").data([A]);W.enter().append("g").classed("legendsymbols",!0),W.selectAll("g.legendpoints").data([A]).enter().append("g").classed("legendpoints",!0)}).each(function(A){var z,B=A[0].trace,$=[];if(B.visible)switch(B.type){case"histogram2d":case"heatmap":$=[["M-15,-2V4H15V-2Z"]],z=!0;break;case"choropleth":case"choroplethmapbox":$=[["M-6,-6V6H6V-6Z"]],z=!0;break;case"densitymapbox":$=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],z="radial";break;case"cone":$=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],z=!1;break;case"streamtube":$=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],z=!1;break;case"surface":$=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],z=!0;break;case"mesh3d":$=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!1;break;case"volume":$=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!0;break;case"isosurface":$=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],z=!1}var j=l.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data($);j.enter().append("path").classed("legend3dandfriends",!0).attr("transform",D).style("stroke-miterlimit",1),j.exit().remove(),j.each(function(N,E){var W,G=l.select(this),L=p(B),q=L.colorscale,H=L.reversescale;if(q){if(!z){var V=q.length;W=E===0?q[H?V-1:0][1]:E===1?q[H?0:V-1][1]:q[Math.floor((V-1)/2)][1]}}else{var te=B.vertexcolor||B.facecolor||B.color;W=s.isArrayOrTypedArray(te)?te[E]||te[0]:te}G.attr("d",N[0]),W?G.call(h.fill,W):G.call(function(ee){if(ee.size()){var U="legendfill-"+B.uid;d.gradient(ee,k,U,b(H,z==="radial"),q,"fill")}})})}).each(function(A){var z=A[0].trace,B=z.type==="waterfall";if(A[0]._distinct&&B){var $=A[0].trace[A[0].dir].marker;return A[0].mc=$.color,A[0].mlw=$.line.width,A[0].mlc=$.line.color,R(A,this,"waterfall")}var j=[];z.visible&&B&&(j=A[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var N=l.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(j);N.enter().append("path").classed("legendwaterfall",!0).attr("transform",D).style("stroke-miterlimit",1),N.exit().remove(),N.each(function(E){var W=l.select(this),G=z[E[0]].marker,L=O(void 0,G.line,5,2);W.attr("d",E[1]).style("stroke-width",L+"px").call(h.fill,G.color),L&&W.call(h.stroke,G.line.color)})}).each(function(A){R(A,this,"funnel")}).each(function(A){R(A,this)}).each(function(A){var z=A[0].trace,B=l.select(this).select("g.legendpoints").selectAll("path.legendbox").data(z.visible&&f.traceIs(z,"box-violin")?[A]:[]);B.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),B.exit().remove(),B.each(function(){var $=l.select(this);if(z.boxpoints!=="all"&&z.points!=="all"||h.opacity(z.fillcolor)!==0||h.opacity((z.line||{}).color)!==0){var j=O(void 0,z.line,5,2);$.style("stroke-width",j+"px").call(h.fill,z.fillcolor),j&&h.stroke($,z.line.color)}else{var N=s.minExtend(z,{marker:{size:S?12:s.constrain(z.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});B.call(d.pointStyle,N,k)}})}).each(function(A){F(A,this,"funnelarea")}).each(function(A){F(A,this,"pie")}).each(function(A){var z,B,$=x(A),j=$.showFill,N=$.showLine,E=$.showGradientLine,W=$.showGradientFill,G=$.anyFill,L=$.anyLine,q=A[0],H=q.trace,V=p(H),te=V.colorscale,ee=V.reversescale,U=m.hasMarkers(H)||!G?"M5,0":L?"M5,-2":"M5,-3",Q=l.select(this),Y=Q.select(".legendfill").selectAll("path").data(j||W?[A]:[]);if(Y.enter().append("path").classed("js-fill",!0),Y.exit().remove(),Y.attr("d",U+"h"+C+"v6h-"+C+"z").call(function(re){if(re.size())if(j)d.fillGroupStyle(re,k);else{var ie="legendfill-"+H.uid;d.gradient(re,k,ie,b(ee),te,"fill")}}),N||E){var Z=O(void 0,H.line,10,5);B=s.minExtend(H,{line:{width:Z}}),z=[s.minExtend(q,{trace:B})]}var X=Q.select(".legendlines").selectAll("path").data(N||E?[z]:[]);X.enter().append("path").classed("js-line",!0),X.exit().remove(),X.attr("d",U+(E?"l"+C+",0.0001":"h"+C)).call(N?d.lineGroupStyle:function(re){if(re.size()){var ie="legendline-"+H.uid;d.lineGroupStyle(re),d.gradient(re,k,ie,b(ee),te,"stroke")}})}).each(function(A){var z,B,$=x(A),j=$.anyFill,N=$.anyLine,E=$.showLine,W=$.showMarker,G=A[0],L=G.trace,q=!W&&!N&&!j&&m.hasText(L);function H(X,re,ie,le){var se=s.nestedProperty(L,X).get(),pe=s.isArrayOrTypedArray(se)&&re?re(se):se;if(S&&pe&&le!==void 0&&(pe=le),ie){if(peie[1])return ie[1]}return pe}function V(X){return G._distinct&&G.index&&X[G.index]?X[G.index]:X[0]}if(W||q||E){var te={},ee={};if(W){te.mc=H("marker.color",V),te.mx=H("marker.symbol",V),te.mo=H("marker.opacity",s.mean,[.2,1]),te.mlc=H("marker.line.color",V),te.mlw=H("marker.line.width",s.mean,[0,5],2),ee.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var U=H("marker.size",s.mean,[2,16],12);te.ms=U,ee.marker.size=U}E&&(ee.line={width:H("line.width",V,[0,10],5)}),q&&(te.tx="Aa",te.tp=H("textposition",V),te.ts=10,te.tc=H("textfont.color",V),te.tf=H("textfont.family",V)),z=[s.minExtend(G,te)],(B=s.minExtend(L,ee)).selectedpoints=null,B.texttemplate=null}var Q=l.select(this).select("g.legendpoints"),Y=Q.selectAll("path.scatterpts").data(W?z:[]);Y.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",D),Y.exit().remove(),Y.call(d.pointStyle,B,k),W&&(z[0].mrc=3);var Z=Q.selectAll("g.pointtext").data(q?z:[]);Z.enter().append("g").classed("pointtext",!0).append("text").attr("transform",D),Z.exit().remove(),Z.selectAll("text").call(d.textPointStyle,B,k)}).each(function(A){var z=A[0].trace,B=l.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(z.visible&&z.type==="candlestick"?[A,A]:[]);B.enter().append("path").classed("legendcandle",!0).attr("d",function($,j){return j?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",D).style("stroke-miterlimit",1),B.exit().remove(),B.each(function($,j){var N=l.select(this),E=z[j?"increasing":"decreasing"],W=O(void 0,E.line,5,2);N.style("stroke-width",W+"px").call(h.fill,E.fillcolor),W&&h.stroke(N,E.line.color)})}).each(function(A){var z=A[0].trace,B=l.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(z.visible&&z.type==="ohlc"?[A,A]:[]);B.enter().append("path").classed("legendohlc",!0).attr("d",function($,j){return j?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",D).style("stroke-miterlimit",1),B.exit().remove(),B.each(function($,j){var N=l.select(this),E=z[j?"increasing":"decreasing"],W=O(void 0,E.line,5,2);N.style("fill","none").call(d.dashLine,E.line.dash,W),W&&h.stroke(N,E.line.color)})})}},42068:function(o,a,n){n(93348),o.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},26023:function(o,a,n){var l=n(73972),f=n(74875),s=n(41675),c=n(24255),d=n(34031).eraseActiveShape,h=n(71828),p=h._,m=o.exports={};function y(M,S){var C,P,D=S.currentTarget,O=D.getAttribute("data-attr"),R=D.getAttribute("data-val")||!0,F=M._fullLayout,A={},z=s.list(M,null,!0),B=F._cartesianSpikesEnabled;if(O==="zoom"){var $,j=R==="in"?.5:2,N=(1+j)/2,E=(1-j)/2;for(P=0;P1?(U=["toggleHover"],Q=["resetViews"]):A?(ee=["zoomInGeo","zoomOutGeo"],U=["hoverClosestGeo"],Q=["resetGeo"]):F?(U=["hoverClosest3d"],Q=["resetCameraDefault3d","resetCameraLastSave3d"]):N?(ee=["zoomInMapbox","zoomOutMapbox"],U=["toggleHover"],Q=["resetViewMapbox"]):$?U=["hoverClosestGl2d"]:z?U=["hoverClosestPie"]:G?(U=["hoverClosestCartesian","hoverCompareCartesian"],Q=["resetViewSankey"]):U=["toggleHover"],R&&(U=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(se){for(var pe=0;pe0)){var k=function(M,S,C){for(var P=C.filter(function(F){return S[F].anchor===M._id}),D=0,O=0;O=Se.max)pe=re[Te+1];else if(se=Se.pmax)pe=re[Te+1];else if(seTe._length||ge+Ie<0)return;Ee=ue+Ie,De=ge+Ie;break;case Me:if(Re="col-resize",ue+Ie>Te._length)return;Ee=ue+Ie,De=ge;break;case ce:if(Re="col-resize",ge+Ie<0)return;Ee=ue,De=ge+Ie;break;default:Re="ew-resize",Ee=xe,De=xe+Ie}if(De=0;$--){var j=S.append("path").attr(P).style("opacity",$?.1:D).call(c.stroke,R).call(c.fill,O).call(d.dashLine,$?"solid":A,$?4+F:F);if(b(j,_,T),z){var N=h(_.layout,"selections",T);j.style({cursor:"move"});var E={element:j.node(),plotinfo:M,gd:_,editHelpers:N,isActiveSelection:!0},W=l(C,_);f(W,j,E)}else j.style("pointer-events",$?"all":"none");B[$]=j}var G=B[0];B[1].node().addEventListener("click",function(){return function(L,q){if(v(L)){var H=+q.node().getAttribute("data-index");if(H>=0){if(H===L._fullLayout._activeSelectionIndex)return void x(L);L._fullLayout._activeSelectionIndex=H,L._fullLayout._deactivateSelection=x,y(L)}}}(_,G)})}(_._fullLayout._selectionLayer)}function b(_,w,k){var T=k.xref+k.yref;d.setClipUrl(_,"clip"+w._fullLayout._uid+T,w)}function x(_){v(_)&&_._fullLayout._activeSelectionIndex>=0&&(s(_),delete _._fullLayout._activeSelectionIndex,y(_))}o.exports={draw:y,drawOne:g,activateLastSelection:function(_){if(v(_)){var w=_._fullLayout.selections.length-1;_._fullLayout._activeSelectionIndex=w,_._fullLayout._deactivateSelection=x,y(_)}}}},53777:function(o,a,n){var l=n(79952).P,f=n(1426).extendFlat;o.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:f({},l,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},90849:function(o){o.exports=function(a,n,l){l("newselection.mode"),l("newselection.line.width")&&(l("newselection.line.color"),l("newselection.line.dash")),l("activeselection.fillcolor"),l("activeselection.opacity")}},35855:function(o,a,n){var l=n(64505).selectMode,f=n(51873).clearOutline,s=n(60165),c=s.readPaths,d=s.writePaths,h=s.fixDatesForPaths;o.exports=function(p,m){if(p.length){var y=p[0][0];if(y){var v=y.getAttribute("d"),g=m.gd,b=g._fullLayout.newselection,x=m.plotinfo,_=x.xaxis,w=x.yaxis,k=m.isActiveSelection,T=m.dragmode,M=(g.layout||{}).selections||[];if(!l(T)&&k!==void 0){var S=g._fullLayout._activeSelectionIndex;if(S-1,kt=[];if(function(Mt){return Mt&&Array.isArray(Mt)&&Mt[0].hoverOnBox!==!0}(Qe)){Z(ke,Ae,Ie);var Je=function(Mt,zt){var wt,ve,_e=Mt[0],Ve=-1,We=[];for(ve=0;ve0?function(Mt,zt){var wt,ve,_e,Ve=[];for(_e=0;_e0&&Ve.push(wt);if(Ve.length===1&&Ve[0]===zt.searchInfo&&(ve=zt.searchInfo.cd[0].trace).selectedpoints.length===zt.pointNumbers.length){for(_e=0;_e1||(ve+=zt.selectedpoints.length)>1))return!1;return ve===1}(Ue)&&(ct=se(Je))){for(Be&&Be.remove(),Ne=0;Ne=0})(Re)&&Re._fullLayout._deactivateShape(Re),function(lt){return lt._fullLayout._activeSelectionIndex>=0}(Re)&&Re._fullLayout._deactivateSelection(Re);var Ie=Re._fullLayout._zoomlayer,Be=g(Ee),Ue=x(Ee);if(Be||Ue){var qe,Ye,at=Ie.selectAll(".select-outline-"+De.id);at&&Re._fullLayout._outlining&&(Be&&(qe=P(at,ke)),qe&&s.call("_guiRelayout",Re,{shapes:qe}),Ue&&!te(ke)&&(Ye=D(at,ke)),Ye&&(Re._fullLayout._noEmitSelectedAtStart=!0,s.call("_guiRelayout",Re,{selections:Ye}).then(function(){Ae&&O(Re)})),Re._fullLayout._outlining=!1)}De.selection={},De.selection.selectionDefs=ke.selectionDefs=[],De.selection.mergedPolygons=ke.mergedPolygons=[]}function re(ke){return ke._id}function ie(ke,Ae,Ee,De){if(!ke.calcdata)return[];var Re,Ie,Be,Ue=[],qe=Ae.map(re),Ye=Ee.map(re);for(Be=0;Be0?De[0]:Ee;return!!Ae.selectedpoints&&Ae.selectedpoints.indexOf(Re)>-1}function pe(ke,Ae,Ee){var De,Re;for(De=0;De-1&&Ae;if(!Ie&&Ae){var Ot=ne(ke,!0);if(Ot.length){var At=Ot[0].xref,Lt=Ot[0].yref;if(At&&Lt){var Rt=ue(Ot);ge([B(ke,At,"x"),B(ke,Lt,"y")])(jt,Rt)}}ke._fullLayout._noEmitSelectedAtStart?ke._fullLayout._noEmitSelectedAtStart=!1:Tt&&be(ke,jt),ct._reselect=!1}if(!Ie&&ct._deselect){var $t=ct._deselect;(function(Yt,Xt,Bt){for(var Wt=0;Wt=0)bt._fullLayout._deactivateShape(bt);else if(!Ye){var Rt=ze.clickmode;z.done(Et).then(function(){if(z.clear(Et),At===2){for(Nt.remove(),_e=0;_e-1&&ee(Lt,bt,De.xaxes,De.yaxes,De.subplot,De,Nt),Rt==="event"&&be(bt,void 0);h.click(bt,Lt,kt.id)}).catch(R.error)}},De.doneFn=function(){yt.remove(),z.done(Et).then(function(){z.clear(Et),!Ne&&ve&&De.selectionDefs&&(ve.subtract=St,De.selectionDefs.push(ve),De.mergedPolygons.length=0,[].push.apply(De.mergedPolygons,wt)),(Ne||Ye)&&X(De,Ne),De.doneFnCompleted&&De.doneFnCompleted(jt),at&&be(bt,We)}).catch(R.error)}},clearOutline:T,clearSelectionsCache:X,selectOnClick:ee}},89827:function(o,a,n){var l=n(50215),f=n(41940),s=n(82196).line,c=n(79952).P,d=n(1426).extendFlat,h=n(44467).templatedArray,p=(n(24695),n(9012)),m=n(5386).R,y=n(37281);o.exports=h("shape",{visible:d({},p.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:d({},p.legend,{editType:"calc+arraydraw"}),legendgroup:d({},p.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:d({},p.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:f({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:d({},p.legendrank,{editType:"calc+arraydraw"}),legendwidth:d({},p.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:d({},l.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},yref:d({},l.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:d({},s.color,{editType:"arraydraw"}),width:d({},s.width,{editType:"calc+arraydraw"}),dash:d({},c,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:m({},{keys:Object.keys(y)}),font:f({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})},5627:function(o,a,n){var l=n(71828),f=n(89298),s=n(21459),c=n(30477);function d(y){return p(y.line.width,y.xsizemode,y.x0,y.x1,y.path,!1)}function h(y){return p(y.line.width,y.ysizemode,y.y0,y.y1,y.path,!0)}function p(y,v,g,b,x,_){var w=y/2,k=_;if(v==="pixel"){var T=x?c.extractPathCoords(x,_?s.paramIsY:s.paramIsX):[g,b],M=l.aggNums(Math.max,null,T),S=l.aggNums(Math.min,null,T),C=S<0?Math.abs(S)+w:w,P=M>0?M+w:w;return{ppad:w,ppadplus:k?C:P,ppadminus:k?P:C}}return{ppad:w}}function m(y,v,g,b,x){var _=y.type==="category"||y.type==="multicategory"?y.r2c:y.d2c;if(v!==void 0)return[_(v),_(g)];if(b){var w,k,T,M,S=1/0,C=-1/0,P=b.match(s.segmentRE);for(y.type==="date"&&(_=c.decodeDate(_)),w=0;wC&&(C=M)));return C>=S?[S,C]:void 0}}o.exports=function(y){var v=y._fullLayout,g=l.filterVisible(v.shapes);if(g.length&&y._fullData.length)for(var b=0;b=re?ie-se:se-ie,-180/Math.PI*Math.atan2(pe,Te)}(C,D,P,O):0),A.call(function(re){return re.call(c.font,F).attr({}),s.convertToTspans(re,v),re});var Q=function(re,ie,le,se,pe,Te,Se){var Oe,Me,ce,ye,J=pe.label.textposition,ne=pe.label.textangle,de=pe.label.padding,xe=pe.type,ue=Math.PI/180*Te,ge=Math.sin(ue),be=Math.cos(ue),we=pe.label.xanchor,ke=pe.label.yanchor;if(xe==="line"){J==="start"?(Oe=re,Me=ie):J==="end"?(Oe=le,Me=se):(Oe=(re+le)/2,Me=(ie+se)/2),we==="auto"&&(we=J==="start"?ne==="auto"?le>re?"left":lere?"right":lere?"right":lere?"left":le1&&(Oe.length!==2||Oe[1][0]!=="Z")&&(G===0&&(Oe[0][0]="M"),R[W]=Oe,$(),j())}}()}}function re(pe,Te){(function(Se,Oe){if(R.length)for(var Me=0;MeMe?(J=Se,ue="y0",ne=Me,ge="y1"):(J=Me,ue="y1",ne=Se,ge="y0"),ut(wt),Mt(se,ie),function(ve,_e,Ve){var We=_e.xref,Ze=_e.yref,Ge=c.getFromId(Ve,We),Ke=c.getFromId(Ve,Ze),nt="";We==="paper"||Ge.autorange||(nt+=We),Ze==="paper"||Ke.autorange||(nt+=Ze),v.setClipUrl(ve,nt?"clip"+Ve._fullLayout._uid+nt:null,Ve)}(re,ie,X),Je.moveFn=Ae==="move"?pt:It,Je.altKey=wt.altKey)},doneFn:function(){M(X)||(x(re),zt(se),P(re,X,ie),f.call("_guiRelayout",X,pe.getUpdateObj()))},clickFn:function(){M(X)||zt(se)}};function ut(wt){if(M(X))Ae=null;else if(Be)Ae=wt.target.tagName==="path"?"move":wt.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var ve=Je.element.getBoundingClientRect(),_e=ve.right-ve.left,Ve=ve.bottom-ve.top,We=wt.clientX-ve.left,Ze=wt.clientY-ve.top,Ge=!Ue&&_e>Ee&&Ve>De&&!wt.shiftKey?b.getCursor(We/_e,1-Ze/Ve):"move";x(re,Ge),Ae=Ge.split("-")[0]}}function pt(wt,ve){if(ie.type==="path"){var _e=function(Ze){return Ze},Ve=_e,We=_e;Re?qe("xanchor",ie.xanchor=Qe(ce+wt)):(Ve=function(Ze){return Qe(ze(Ze)+wt)},at&&at.type==="date"&&(Ve=w.encodeDate(Ve))),Ie?qe("yanchor",ie.yanchor=it(ye+ve)):(We=function(Ze){return it(Ne(Ze)+ve)},ct&&ct.type==="date"&&(We=w.encodeDate(We))),qe("path",ie.path=D(ke,Ve,We))}else Re?qe("xanchor",ie.xanchor=Qe(ce+wt)):(qe("x0",ie.x0=Qe(Te+wt)),qe("x1",ie.x1=Qe(Oe+wt))),Ie?qe("yanchor",ie.yanchor=it(ye+ve)):(qe("y0",ie.y0=it(Se+ve)),qe("y1",ie.y1=it(Me+ve)));re.attr("d",k(X,ie)),Mt(se,ie),p(X,le,ie,Ye)}function It(wt,ve){if(Ue){var _e=function(ht){return ht},Ve=_e,We=_e;Re?qe("xanchor",ie.xanchor=Qe(ce+wt)):(Ve=function(ht){return Qe(ze(ht)+wt)},at&&at.type==="date"&&(Ve=w.encodeDate(Ve))),Ie?qe("yanchor",ie.yanchor=it(ye+ve)):(We=function(ht){return it(Ne(ht)+ve)},ct&&ct.type==="date"&&(We=w.encodeDate(We))),qe("path",ie.path=D(ke,Ve,We))}else if(Be){if(Ae==="resize-over-start-point"){var Ze=Te+wt,Ge=Ie?Se-ve:Se+ve;qe("x0",ie.x0=Re?Ze:Qe(Ze)),qe("y0",ie.y0=Ie?Ge:it(Ge))}else if(Ae==="resize-over-end-point"){var Ke=Oe+wt,nt=Ie?Me-ve:Me+ve;qe("x1",ie.x1=Re?Ke:Qe(Ke)),qe("y1",ie.y1=Ie?nt:it(nt))}}else{var st=function(ht){return Ae.indexOf(ht)!==-1},mt=st("n"),tt=st("s"),Ft=st("w"),Vt=st("e"),St=mt?J+ve:J,Nt=tt?ne+ve:ne,Dt=Ft?de+wt:de,gt=Vt?xe+wt:xe;Ie&&(mt&&(St=J-ve),tt&&(Nt=ne-ve)),(!Ie&&Nt-St>De||Ie&&St-Nt>De)&&(qe(ue,ie[ue]=Ie?St:it(St)),qe(ge,ie[ge]=Ie?Nt:it(Nt))),gt-Dt>Ee&&(qe(be,ie[be]=Re?Dt:Qe(Dt)),qe(we,ie[we]=Re?gt:Qe(gt)))}re.attr("d",k(X,ie)),Mt(se,ie),p(X,le,ie,Ye)}function Mt(wt,ve){(Re||Ie)&&function(){var _e=ve.type!=="path",Ve=wt.selectAll(".visual-cue").data([0]);Ve.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var We=ze(Re?ve.xanchor:s.midRange(_e?[ve.x0,ve.x1]:w.extractPathCoords(ve.path,_.paramIsX))),Ze=Ne(Ie?ve.yanchor:s.midRange(_e?[ve.y0,ve.y1]:w.extractPathCoords(ve.path,_.paramIsY)));if(We=w.roundPositionForSharpStrokeRendering(We,1),Ze=w.roundPositionForSharpStrokeRendering(Ze,1),Re&&Ie){var Ge="M"+(We-1-1)+","+(Ze-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ve.attr("d",Ge)}else if(Re){var Ke="M"+(We-1-1)+","+(Ze-9-1)+"v18 h2 v-18 Z";Ve.attr("d",Ke)}else{var nt="M"+(We-9-1)+","+(Ze-1-1)+"h18 v2 h-18 Z";Ve.attr("d",nt)}}()}function zt(wt){wt.selectAll(".visual-cue").remove()}b.init(Je),kt.node().onmousemove=ut}(R,Q,z,F,j,ee):z.editable===!0&&Q.style("pointer-events",V||y.opacity(G)*W<=.5?"stroke":"all");Q.node().addEventListener("click",function(){return function(X,re){if(S(X)){var ie=+re.node().getAttribute("data-index");if(ie>=0){if(ie===X._fullLayout._activeShapeIndex)return void O(X);X._fullLayout._activeShapeIndex=ie,X._fullLayout._deactivateShape=O,T(X)}}}(R,Q)})}z._input&&z.visible===!0&&(z.layer!=="below"?$(R._fullLayout._shapeUpperLayer):z.xref==="paper"||z.yref==="paper"?$(R._fullLayout._shapeLowerLayer):B._hadPlotinfo?$((B.mainplotinfo||B).shapelayer):$(R._fullLayout._shapeLowerLayer))}function P(R,F,A){var z=(A.xref+A.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");v.setClipUrl(R,z?"clip"+F._fullLayout._uid+z:null,F)}function D(R,F,A){return R.replace(_.segmentRE,function(z){var B=0,$=z.charAt(0),j=_.paramIsX[$],N=_.paramIsY[$],E=_.numParams[$];return $+z.substr(1).replace(_.paramRE,function(W){return B>=E||(j[B]?W=F(W):N[B]&&(W=A(W)),B++),W})})}function O(R){S(R)&&R._fullLayout._activeShapeIndex>=0&&(m(R),delete R._fullLayout._activeShapeIndex,T(R))}o.exports={draw:T,drawOne:C,eraseActiveShape:function(R){if(S(R)){m(R);var F=R._fullLayout._activeShapeIndex,A=(R.layout||{}).shapes||[];if(F0&&CU&&(Y="X"),Y});return H>U&&(Q=Q.replace(/[\s,]*X.*/,""),f.log("Ignoring extra params in segment "+q)),V+Q})}(d,p,y);if(d.xsizemode==="pixel"){var C=p(d.xanchor);v=C+d.x0,g=C+d.x1}else v=p(d.x0),g=p(d.x1);if(d.ysizemode==="pixel"){var P=y(d.yanchor);b=P-d.y0,x=P-d.y1}else b=y(d.y0),x=y(d.y1);if(_==="line")return"M"+v+","+b+"L"+g+","+x;if(_==="rect")return"M"+v+","+b+"H"+g+"V"+x+"H"+v+"Z";var D=(v+g)/2,O=(b+x)/2,R=Math.abs(D-v),F=Math.abs(O-b),A="A"+R+","+F,z=D+R+","+O;return"M"+z+A+" 0 1,1 "+D+","+(O-F)+A+" 0 0,1 "+z+"Z"}},89853:function(o,a,n){var l=n(34031);o.exports={moduleType:"component",name:"shapes",layoutAttributes:n(89827),supplyLayoutDefaults:n(84726),supplyDrawNewShapeDefaults:n(45547),includeBasePlot:n(76325)("shapes"),calcAutorange:n(5627),draw:l.draw,drawOne:l.drawOne}},37281:function(o){function a(s,c){return c?c.d2l(s):s}function n(s,c){return c?c.l2d(s):s}function l(s,c){return a(s.x1,c)-a(s.x0,c)}function f(s,c,d){return a(s.y1,d)-a(s.y0,d)}o.exports={x0:function(s){return s.x0},x1:function(s){return s.x1},y0:function(s){return s.y0},y1:function(s){return s.y1},slope:function(s,c,d){return s.type!=="line"?void 0:f(s,0,d)/l(s,c)},dx:l,dy:f,width:function(s,c){return Math.abs(l(s,c))},height:function(s,c,d){return Math.abs(f(s,0,d))},length:function(s,c,d){return s.type!=="line"?void 0:Math.sqrt(Math.pow(l(s,c),2)+Math.pow(f(s,0,d),2))},xcenter:function(s,c){return n((a(s.x1,c)+a(s.x0,c))/2,c)},ycenter:function(s,c,d){return n((a(s.y1,d)+a(s.y0,d))/2,d)}}},75067:function(o,a,n){var l=n(41940),f=n(35025),s=n(1426).extendDeepAll,c=n(30962).overrideAll,d=n(85594),h=n(44467).templatedArray,p=n(98292),m=h("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});o.exports=c(h("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:m,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:s(f({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:d.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:l({})},font:l({}),activebgcolor:{valType:"color",dflt:p.gripBgActiveColor},bgcolor:{valType:"color",dflt:p.railBgColor},bordercolor:{valType:"color",dflt:p.railBorderColor},borderwidth:{valType:"number",min:0,dflt:p.railBorderWidth},ticklen:{valType:"number",min:0,dflt:p.tickLength},tickcolor:{valType:"color",dflt:p.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:p.minorTickLength}}),"arraydraw","from-root")},98292:function(o){o.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},12343:function(o,a,n){var l=n(71828),f=n(85501),s=n(75067),c=n(98292).name,d=s.steps;function h(m,y,v){function g(k,T){return l.coerce(m,y,s,k,T)}for(var b=f(m,y,{name:"steps",handleItemDefaults:p}),x=0,_=0;_0&&(H=H.transition().duration(N.transition.duration).ease(N.transition.easing)),H.attr("transform",h(q-.5*y.gripWidth,N._dims.currentValueTotalHeight))}}function A(j,N){var E=j._dims;return E.inputAreaStart+y.stepInset+(E.inputAreaLength-2*y.stepInset)*Math.min(1,Math.max(0,N))}function z(j,N){var E=j._dims;return Math.min(1,Math.max(0,(N-y.stepInset-E.inputAreaStart)/(E.inputAreaLength-2*y.stepInset-2*E.inputAreaStart)))}function B(j,N,E){var W=E._dims,G=d.ensureSingle(j,"rect",y.railTouchRectClass,function(L){L.call(O,N,j,E).style("pointer-events","all")});G.attr({width:W.inputAreaLength,height:Math.max(W.inputAreaWidth,y.tickOffset+E.ticklen+W.labelHeight)}).call(s.fill,E.bgcolor).attr("opacity",0),c.setTranslate(G,0,W.currentValueTotalHeight)}function $(j,N){var E=N._dims,W=E.inputAreaLength-2*y.railInset,G=d.ensureSingle(j,"rect",y.railRectClass);G.attr({width:W,height:y.railWidth,rx:y.railRadius,ry:y.railRadius,"shape-rendering":"crispEdges"}).call(s.stroke,N.bordercolor).call(s.fill,N.bgcolor).style("stroke-width",N.borderwidth+"px"),c.setTranslate(G,y.railInset,.5*(E.inputAreaWidth-y.railWidth)+E.currentValueTotalHeight)}o.exports=function(j){var N=j._context.staticPlot,E=j._fullLayout,W=function(te,ee){for(var U=te[y.name],Q=[],Y=0;Y0?[0]:[]);function L(te){te._commandObserver&&(te._commandObserver.remove(),delete te._commandObserver),f.autoMargin(j,_(te))}if(G.enter().append("g").classed(y.containerClassName,!0).style("cursor",N?null:"ew-resize"),G.exit().each(function(){l.select(this).selectAll("g."+y.groupClassName).each(L)}).remove(),W.length!==0){var q=G.selectAll("g."+y.groupClassName).data(W,w);q.enter().append("g").classed(y.groupClassName,!0),q.exit().each(L).remove();for(var H=0;H0||Oe<0){var J={left:[-Me,0],right:[Me,0],top:[0,-Me],bottom:[0,Me]}[P.side];Q.attr("transform",h(J[0],J[1]))}}}return H.call(V),G&&($?H.on(".opacity",null):(A=0,z=!0,H.text(S).on("mouseover.opacity",function(){l.select(this).transition().duration(v.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){l.select(this).transition().duration(v.HIDE_PLACEHOLDER).style("opacity",0)})),H.call(y.makeEditable,{gd:x}).on("edit",function(U){C!==void 0?c.call("_guiRestyle",x,M,U,C):c.call("_guiRelayout",x,M,U)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(V)}).on("input",function(U){this.text(U||" ").call(y.positionText,D.x,D.y)})),H.classed("js-placeholder",z),R}}},7163:function(o,a,n){var l=n(41940),f=n(22399),s=n(1426).extendFlat,c=n(30962).overrideAll,d=n(35025),h=n(44467).templatedArray,p=h("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});o.exports=c(h("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:p,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:s(d({editType:"arraydraw"}),{}),font:l({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:f.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},75909:function(o){o.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},64897:function(o,a,n){var l=n(71828),f=n(85501),s=n(7163),c=n(75909).name,d=s.buttons;function h(m,y,v){function g(b,x){return l.coerce(m,y,s,b,x)}g("visible",f(m,y,{name:"buttons",handleItemDefaults:p}).length>0)&&(g("active"),g("direction"),g("type"),g("showactive"),g("x"),g("y"),l.noneOrAll(m,y,["x","y"]),g("xanchor"),g("yanchor"),g("pad.t"),g("pad.r"),g("pad.b"),g("pad.l"),l.coerceFont(g,"font",v.font),g("bgcolor",v.paper_bgcolor),g("bordercolor"),g("borderwidth"))}function p(m,y){function v(g,b){return l.coerce(m,y,d,g,b)}v("visible",m.method==="skip"||Array.isArray(m.args))&&(v("method"),v("args"),v("args2"),v("label"),v("execute"))}o.exports=function(m,y){f(m,y,{name:c,handleItemDefaults:h})}},13689:function(o,a,n){var l=n(39898),f=n(74875),s=n(7901),c=n(91424),d=n(71828),h=n(63893),p=n(44467).arrayEditor,m=n(18783).LINE_SPACING,y=n(75909),v=n(25849);function g(A){return A._index}function b(A,z){return+A.attr(y.menuIndexAttrName)===z._index}function x(A,z,B,$,j,N,E,W){z.active=E,p(A.layout,y.name,z).applyUpdate("active",E),z.type==="buttons"?w(A,$,null,null,z):z.type==="dropdown"&&(j.attr(y.menuIndexAttrName,"-1"),_(A,$,j,N,z),W||w(A,$,j,N,z))}function _(A,z,B,$,j){var N=d.ensureSingle(z,"g",y.headerClassName,function(H){H.style("pointer-events","all")}),E=j._dims,W=j.active,G=j.buttons[W]||y.blankHeaderOpts,L={y:j.pad.t,yPad:0,x:j.pad.l,xPad:0,index:0},q={width:E.headerWidth,height:E.headerHeight};N.call(k,j,G,A).call(R,j,L,q),d.ensureSingle(z,"text",y.headerArrowClassName,function(H){H.attr("text-anchor","end").call(c.font,j.font).text(y.arrowSymbol[j.direction])}).attr({x:E.headerWidth-y.arrowOffsetX+j.pad.l,y:E.headerHeight/2+y.textOffsetY+j.pad.t}),N.on("click",function(){B.call(F,String(b(B,j)?-1:j._index)),w(A,z,B,$,j)}),N.on("mouseover",function(){N.call(C)}),N.on("mouseout",function(){N.call(P,j)}),c.setTranslate(z,E.lx,E.ly)}function w(A,z,B,$,j){B||(B=z).attr("pointer-events","all");var N=function(Q){return+Q.attr(y.menuIndexAttrName)==-1}(B)&&j.type!=="buttons"?[]:j.buttons,E=j.type==="dropdown"?y.dropdownButtonClassName:y.buttonClassName,W=B.selectAll("g."+E).data(d.filterVisible(N)),G=W.enter().append("g").classed(E,!0),L=W.exit();j.type==="dropdown"?(G.attr("opacity","0").transition().attr("opacity","1"),L.transition().attr("opacity","0").remove()):L.remove();var q=0,H=0,V=j._dims,te=["up","down"].indexOf(j.direction)!==-1;j.type==="dropdown"&&(te?H=V.headerHeight+y.gapButtonHeader:q=V.headerWidth+y.gapButtonHeader),j.type==="dropdown"&&j.direction==="up"&&(H=-y.gapButtonHeader+y.gapButton-V.openHeight),j.type==="dropdown"&&j.direction==="left"&&(q=-y.gapButtonHeader+y.gapButton-V.openWidth);var ee={x:V.lx+q+j.pad.l,y:V.ly+H+j.pad.t,yPad:y.gapButton,xPad:y.gapButton,index:0},U={l:ee.x+j.borderwidth,t:ee.y+j.borderwidth};W.each(function(Q,Y){var Z=l.select(this);Z.call(k,j,Q,A).call(R,j,ee),Z.on("click",function(){l.event.defaultPrevented||(Q.execute&&(Q.args2&&j.active===Y?(x(A,j,0,z,B,$,-1),f.executeAPICommand(A,Q.method,Q.args2)):(x(A,j,0,z,B,$,Y),f.executeAPICommand(A,Q.method,Q.args))),A.emit("plotly_buttonclicked",{menu:j,button:Q,active:j.active}))}),Z.on("mouseover",function(){Z.call(C)}),Z.on("mouseout",function(){Z.call(P,j),W.call(S,j)})}),W.call(S,j),te?(U.w=Math.max(V.openWidth,V.headerWidth),U.h=ee.y-U.t):(U.w=ee.x-U.l,U.h=Math.max(V.openHeight,V.headerHeight)),U.direction=j.direction,$&&(W.size()?function(Q,Y,Z,X,re,ie){var le,se,pe,Te=re.direction,Se=Te==="up"||Te==="down",Oe=re._dims,Me=re.active;if(Se)for(se=0,pe=0;pe0?[0]:[]);if(j.enter().append("g").classed(y.containerClassName,!0).style("cursor","pointer"),j.exit().each(function(){l.select(this).selectAll("g."+y.headerGroupClassName).each($)}).remove(),B.length!==0){var N=j.selectAll("g."+y.headerGroupClassName).data(B,g);N.enter().append("g").classed(y.headerGroupClassName,!0);for(var E=d.ensureSingle(j,"g",y.dropdownButtonGroupClassName,function(H){H.style("pointer-events","all")}),W=0;WR,z=d.barLength+2*d.barPad,B=d.barWidth+2*d.barPad,$=k,j=M+S;j+B>g&&(j=g-B);var N=this.container.selectAll("rect.scrollbar-horizontal").data(A?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-horizontal",!0).call(f.fill,d.barColor),A?(this.hbar=N.attr({rx:d.barRadius,ry:d.barRadius,x:$,y:j,width:z,height:B}),this._hbarXMin=$+z/2,this._hbarTranslateMax=R-z):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var E=S>F,W=d.barWidth+2*d.barPad,G=d.barLength+2*d.barPad,L=k+T,q=M;L+W>v&&(L=v-W);var H=this.container.selectAll("rect.scrollbar-vertical").data(E?[0]:[]);H.exit().on(".drag",null).remove(),H.enter().append("rect").classed("scrollbar-vertical",!0).call(f.fill,d.barColor),E?(this.vbar=H.attr({rx:d.barRadius,ry:d.barRadius,x:L,y:q,width:W,height:G}),this._vbarYMin=q+G/2,this._vbarTranslateMax=F-G):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var V=this.id,te=b-.5,ee=E?x+W+.5:x+.5,U=_-.5,Q=A?w+B+.5:w+.5,Y=y._topdefs.selectAll("#"+V).data(A||E?[0]:[]);if(Y.exit().remove(),Y.enter().append("clipPath").attr("id",V).append("rect"),A||E?(this._clipRect=Y.select("rect").attr({x:Math.floor(te),y:Math.floor(U),width:Math.ceil(ee)-Math.floor(te),height:Math.ceil(Q)-Math.floor(U)}),this.container.call(s.setClipUrl,V,this.gd),this.bg.attr({x:k,y:M,width:T,height:S})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(s.setClipUrl,null),delete this._clipRect),A||E){var Z=l.behavior.drag().on("dragstart",function(){l.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Z);var X=l.behavior.drag().on("dragstart",function(){l.event.sourceEvent.preventDefault(),l.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));A&&this.hbar.on(".drag",null).call(X),E&&this.vbar.on(".drag",null).call(X)}this.setTranslate(p,m)},d.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(s.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},d.prototype._onBoxDrag=function(){var h=this.translateX,p=this.translateY;this.hbar&&(h-=l.event.dx),this.vbar&&(p-=l.event.dy),this.setTranslate(h,p)},d.prototype._onBoxWheel=function(){var h=this.translateX,p=this.translateY;this.hbar&&(h+=l.event.deltaY),this.vbar&&(p+=l.event.deltaY),this.setTranslate(h,p)},d.prototype._onBarDrag=function(){var h=this.translateX,p=this.translateY;if(this.hbar){var m=h+this._hbarXMin,y=m+this._hbarTranslateMax;h=(c.constrain(l.event.x,m,y)-m)/(y-m)*(this.position.w-this._box.w)}if(this.vbar){var v=p+this._vbarYMin,g=v+this._vbarTranslateMax;p=(c.constrain(l.event.y,v,g)-v)/(g-v)*(this.position.h-this._box.h)}this.setTranslate(h,p)},d.prototype.setTranslate=function(h,p){var m=this.position.w-this._box.w,y=this.position.h-this._box.h;if(h=c.constrain(h||0,0,m),p=c.constrain(p||0,0,y),this.translateX=h,this.translateY=p,this.container.call(s.setTranslate,this._box.l-this.position.l-h,this._box.t-this.position.t-p),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+h-.5),y:Math.floor(this.position.t+p-.5)}),this.hbar){var v=h/m;this.hbar.call(s.setTranslate,h+v*this._hbarTranslateMax,p)}if(this.vbar){var g=p/y;this.vbar.call(s.setTranslate,h,p+g*this._vbarTranslateMax)}}},18783:function(o){o.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},24695:function(o){o.exports={axisRefDescription:function(a,n,l){return["If set to a",a,"axis id (e.g. *"+a+"* or","*"+a+"2*), the `"+a+"` position refers to a",a,"coordinate. If set to *paper*, the `"+a+"`","position refers to the distance from the",n,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",n,"("+l+"). If set to a",a,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",n,"of the domain of that axis: e.g.,","*"+a+"2 domain* refers to the domain of the second",a," axis and a",a,"position of 0.5 refers to the","point between the",n,"and the",l,"of the domain of the","second",a,"axis."].join(" ")}}},31562:function(o){o.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},74808:function(o){o.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},37822:function(o){o.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},50606:function(o){o.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},32396:function(o,a){a.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],a.STYLE=a.CSS_DECLARATIONS.map(function(n){return n.join(": ")+"; "}).join("")},77922:function(o,a){a.xmlns="http://www.w3.org/2000/xmlns/",a.svg="http://www.w3.org/2000/svg",a.xlink="http://www.w3.org/1999/xlink",a.svgAttrs={xmlns:a.svg,"xmlns:xlink":a.xlink}},8729:function(o,a,n){a.version=n(11506).version,n(7417),n(98847);for(var l=n(73972),f=a.register=l.register,s=n(10641),c=Object.keys(s),d=0;d",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},99863:function(o,a){a.isLeftAnchor=function(n){return n.xanchor==="left"||n.xanchor==="auto"&&n.x<=.3333333333333333},a.isCenterAnchor=function(n){return n.xanchor==="center"||n.xanchor==="auto"&&n.x>.3333333333333333&&n.x<.6666666666666666},a.isRightAnchor=function(n){return n.xanchor==="right"||n.xanchor==="auto"&&n.x>=.6666666666666666},a.isTopAnchor=function(n){return n.yanchor==="top"||n.yanchor==="auto"&&n.y>=.6666666666666666},a.isMiddleAnchor=function(n){return n.yanchor==="middle"||n.yanchor==="auto"&&n.y>.3333333333333333&&n.y<.6666666666666666},a.isBottomAnchor=function(n){return n.yanchor==="bottom"||n.yanchor==="auto"&&n.y<=.3333333333333333}},26348:function(o,a,n){var l=n(64872),f=l.mod,s=l.modHalf,c=Math.PI,d=2*c;function h(v){return Math.abs(v[1]-v[0])>d-1e-14}function p(v,g){return s(g-v,d)}function m(v,g){if(h(g))return!0;var b,x;g[0](x=f(x,d))&&(x+=d);var _=f(v,d),w=_+d;return _>=b&&_<=x||w>=b&&w<=x}function y(v,g,b,x,_,w,k){_=_||0,w=w||0;var T,M,S,C,P,D=h([b,x]);function O(z,B){return[z*Math.cos(B)+_,w-z*Math.sin(B)]}D?(T=0,M=c,S=d):b=_&&v<=w);var _,w},pathArc:function(v,g,b,x,_){return y(null,v,g,b,x,_,0)},pathSector:function(v,g,b,x,_){return y(null,v,g,b,x,_,1)},pathAnnulus:function(v,g,b,x,_,w){return y(v,g,b,x,_,w,1)}}},73627:function(o,a){var n=Array.isArray,l=ArrayBuffer,f=DataView;function s(h){return l.isView(h)&&!(h instanceof f)}function c(h){return n(h)||s(h)}function d(h,p,m){if(c(h)){if(c(h[0])){for(var y=m,v=0;vw.max?x.set(_):x.set(+b)}},integer:{coerceFunction:function(b,x,_,w){b%1||!l(b)||w.min!==void 0&&bw.max?x.set(_):x.set(+b)}},string:{coerceFunction:function(b,x,_,w){if(typeof b!="string"){var k=typeof b=="number";w.strict!==!0&&k?x.set(String(b)):x.set(_)}else w.noBlank&&!b?x.set(_):x.set(b)}},color:{coerceFunction:function(b,x,_){f(b).isValid()?x.set(b):x.set(_)}},colorlist:{coerceFunction:function(b,x,_){Array.isArray(b)&&b.length&&b.every(function(w){return f(w).isValid()})?x.set(b):x.set(_)}},colorscale:{coerceFunction:function(b,x,_){x.set(c.get(b,_))}},angle:{coerceFunction:function(b,x,_){b==="auto"?x.set("auto"):l(b)?x.set(y(+b,360)):x.set(_)}},subplotid:{coerceFunction:function(b,x,_,w){var k=w.regex||m(_);typeof b=="string"&&k.test(b)?x.set(b):x.set(_)},validateFunction:function(b,x){var _=x.dflt;return b===_||typeof b=="string"&&!!m(_).test(b)}},flaglist:{coerceFunction:function(b,x,_,w){if((w.extras||[]).indexOf(b)===-1)if(typeof b=="string"){for(var k=b.split("+"),T=0;T=l&&N<=f?N:m}if(typeof N!="string"&&typeof N!="number")return m;N=String(N);var q=S(E),H=N.charAt(0);!q||H!=="G"&&H!=="g"||(N=N.substr(1),E="");var V=q&&E.substr(0,7)==="chinese",te=N.match(V?T:k);if(!te)return m;var ee=te[1],U=te[3]||"1",Q=Number(te[5]||1),Y=Number(te[7]||0),Z=Number(te[9]||0),X=Number(te[11]||0);if(q){if(ee.length===2)return m;var re;ee=Number(ee);try{var ie=_.getComponentMethod("calendars","getCal")(E);if(V){var le=U.charAt(U.length-1)==="i";U=parseInt(U,10),re=ie.newDate(ee,ie.toMonthIndex(ee,U,le),Q)}else re=ie.newDate(ee,Number(U),Q)}catch{return m}return re?(re.toJD()-x)*y+Y*v+Z*g+X*b:m}ee=ee.length===2?(Number(ee)+2e3-M)%100+M:Number(ee),U-=1;var se=new Date(Date.UTC(2e3,U,Q,Y,Z));return se.setUTCFullYear(ee),se.getUTCMonth()!==U||se.getUTCDate()!==Q?m:se.getTime()+X*b},l=a.MIN_MS=a.dateTime2ms("-9999"),f=a.MAX_MS=a.dateTime2ms("9999-12-31 23:59:59.9999"),a.isDateTime=function(N,E){return a.dateTime2ms(N,E)!==m};var P=90*y,D=3*v,O=5*g;function R(N,E,W,G,L){if((E||W||G||L)&&(N+=" "+C(E,2)+":"+C(W,2),(G||L)&&(N+=":"+C(G,2),L))){for(var q=4;L%10==0;)q-=1,L/=10;N+="."+C(L,q)}return N}a.ms2DateTime=function(N,E,W){if(typeof N!="number"||!(N>=l&&N<=f))return m;E||(E=0);var G,L,q,H,V,te,ee=Math.floor(10*h(N+.05,1)),U=Math.round(N-ee/10);if(S(W)){var Q=Math.floor(U/y)+x,Y=Math.floor(h(N,y));try{G=_.getComponentMethod("calendars","getCal")(W).fromJD(Q).formatDate("yyyy-mm-dd")}catch{G=w("G%Y-%m-%d")(new Date(U))}if(G.charAt(0)==="-")for(;G.length<11;)G="-0"+G.substr(1);else for(;G.length<10;)G="0"+G;L=E=l+y&&N<=f-y))return m;var E=Math.floor(10*h(N+.05,1)),W=new Date(Math.round(N-E/10));return R(s("%Y-%m-%d")(W),W.getHours(),W.getMinutes(),W.getSeconds(),10*W.getUTCMilliseconds()+E)},a.cleanDate=function(N,E,W){if(N===m)return E;if(a.isJSDate(N)||typeof N=="number"&&isFinite(N)){if(S(W))return d.error("JS Dates and milliseconds are incompatible with world calendars",N),E;if(!(N=a.ms2DateTimeLocal(+N))&&E!==void 0)return E}else if(!a.isDateTime(N,W))return d.error("unrecognized date",N),E;return N};var F=/%\d?f/g,A=/%h/g,z={1:"1",2:"1",3:"2",4:"2"};function B(N,E,W,G){N=N.replace(F,function(q){var H=Math.min(+q.charAt(1)||6,6);return(E/1e3%1+2).toFixed(H).substr(2).replace(/0+$/,"")||"0"});var L=new Date(Math.floor(E+.05));if(N=N.replace(A,function(){return z[W("%q")(L)]}),S(G))try{N=_.getComponentMethod("calendars","worldCalFmt")(N,E,G)}catch{return"Invalid"}return W(N)(L)}var $=[59,59.9,59.99,59.999,59.9999];a.formatDate=function(N,E,W,G,L,q){if(L=S(L)&&L,!E)if(W==="y")E=q.year;else if(W==="m")E=q.month;else{if(W!=="d")return function(H,V){var te=h(H+.05,y),ee=C(Math.floor(te/v),2)+":"+C(h(Math.floor(te/g),60),2);if(V!=="M"){c(V)||(V=0);var U=(100+Math.min(h(H/b,60),$[V])).toFixed(V).substr(1);V>0&&(U=U.replace(/0+$/,"").replace(/[\.]$/,"")),ee+=":"+U}return ee}(N,W)+` +var QD=Object.defineProperty;var e9=(e,t,r)=>t in e?QD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Nc=(e,t,r)=>(e9(e,typeof t!="symbol"?t+"":t,r),r);import{ay as ir,r as $e,az as Or,j as je,aA as qn,aB as t9,aC as n9,aD as r9,aE as Sa,aF as a9,aG as i9,aH as o9,aI as l9,aJ as s9,aK as u9,aL as c9,aM as f9,aN as d9,aO as h9,aP as p9,aQ as g9,aR as m9,aS as v9,aT as y9,aU as b9,aV as bn,aW as wr,aX as _r,aY as wn,T as Cr,aZ as Gt,a_ as Ef,a$ as Vn,b0 as x9,b1 as Tr,b2 as fr,b3 as w9,b4 as gy,b5 as Od,b6 as eS,b7 as tS,b8 as _9,b9 as _l,ba as my,bb as T9,ag as Ad,bc as ro,I as jl,bd as k9,be as M9,bf as nS,bg as S9,bh as oe,bi as C9,G as Jn,a2 as hi,bj as O9,al as A9,aa as rS,bk as P9,bl as sg,am as D9,bm as E9,bn as R9,bo as z2,bp as L9,a as vy,a7 as aS,bq as I9,a8 as A0,br as F9,bs as N9,bt as j9,bu as $9,bv as B9,bw as z9,bx as q9,by as W9,bz as U9,bA as q2,bB as H9,bC as yy,m as V9,R as et,bD as Y9,bE as G9,bF as X9,bG as Z9,bH as K9,bI as J9,bJ as Q9,bK as eE,B as Jr,bL as tE,d as by,bM as nE,bN as rE,_ as iS,X as aE,ar as oS,as as lS,at as Rf,au as Vi,aw as sS,bO as iE,bP as oE,w as xy,bQ as lE,v as sE,bR as uS,bS as cS,bT as uE,bU as cE,bV as fE,bW as dE}from"./vendor-DoRIiF9A.js";import{u as fS}from"./DashboardViewParams-mNv_VOpq.js";import{u as dS,A as wy,a as _y}from"./index-BqCr-mCb.js";var hf=(e=>(e[e.Small=0]="Small",e[e.Medium=1]="Medium",e[e.Big=2]="Big",e))(hf||{}),hS={exports:{}};(function(e,t){/*! For license information please see plotly-cartesian.min.js.LICENSE.txt */(function(r,i){e.exports=i()})(self,function(){return function(){var r={98847:function(o,a,n){var l=n(71828),f={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var s in f){var u=s.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");l.addStyleRule(u,f[s])}},98222:function(o,a,n){o.exports=n(82887)},27206:function(o,a,n){o.exports=n(60822)},5224:function(o,a,n){o.exports=n(83832)},59509:function(o,a,n){o.exports=n(72201)},49866:function(o,a,n){o.exports=n(99442)},19548:function(o,a,n){o.exports=n(8729)},61039:function(o,a,n){o.exports=n(14382)},24296:function(o,a,n){o.exports=n(43102)},58872:function(o,a,n){o.exports=n(92165)},65591:function(o,a,n){o.exports=n(36071)},69738:function(o,a,n){o.exports=n(43905)},92650:function(o,a,n){o.exports=n(35902)},73434:function(o,a,n){o.exports=n(94507)},760:function(o,a,n){var l=n(19548);l.register([n(27206),n(5224),n(58872),n(65591),n(69738),n(92650),n(49866),n(25743),n(6197),n(73434),n(54201),n(98222),n(61039),n(24296),n(66398),n(59509)]),o.exports=l},54201:function(o,a,n){o.exports=n(58810)},25743:function(o,a,n){o.exports=n(52979)},66398:function(o,a,n){o.exports=n(32275)},6197:function(o,a,n){o.exports=n(47462)},82884:function(o){o.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},50215:function(o,a,n){var l=n(82884),f=n(41940),s=n(85555),u=n(44467).templatedArray;n(24695),o.exports=u("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:f({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:l.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:l.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",s.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",s.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",s.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",s.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:f({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},3749:function(o,a,n){var l=n(71828),f=n(89298),s=n(92605).draw;function u(h){var p=h._fullLayout;l.filterVisible(p.annotations).forEach(function(g){var y=f.getFromId(h,g.xref),v=f.getFromId(h,g.yref),m=f.getRefType(g.xref),b=f.getRefType(g.yref);g._extremes={},m==="range"&&d(g,y),b==="range"&&d(g,v)})}function d(h,p){var g,y=p._id,v=y.charAt(0),m=h[v],b=h["a"+v],x=h[v+"ref"],_=h["a"+v+"ref"],w=h["_"+v+"padplus"],k=h["_"+v+"padminus"],T={x:1,y:-1}[v]*h[v+"shift"],M=3*h.arrowsize*h.arrowwidth||0,S=M+T,C=M-T,P=3*h.startarrowsize*h.arrowwidth||0,D=P+T,O=P-T;if(_===x){var R=f.findExtremes(p,[p.r2c(m)],{ppadplus:S,ppadminus:C}),F=f.findExtremes(p,[p.r2c(b)],{ppadplus:Math.max(w,D),ppadminus:Math.max(k,O)});g={min:[R.min[0],F.min[0]],max:[R.max[0],F.max[0]]}}else D=b?D+b:D,O=b?O-b:O,g=f.findExtremes(p,[p.r2c(m)],{ppadplus:Math.max(w,S,D),ppadminus:Math.max(k,C,O)});h._extremes[y]=g}o.exports=function(h){var p=h._fullLayout;if(l.filterVisible(p.annotations).length&&h._fullData.length)return l.syncOrAsync([s,u],h)}},44317:function(o,a,n){var l=n(71828),f=n(73972),s=n(44467).arrayEditor;function u(h,p){var g,y,v,m,b,x,_,w=h._fullLayout.annotations,k=[],T=[],M=[],S=(p||[]).length;for(g=0;g0||g.explicitOff.length>0},onClick:function(h,p){var g,y,v=u(h,p),m=v.on,b=v.off.concat(v.explicitOff),x={},_=h._fullLayout.annotations;if(m.length||b.length){for(g=0;g.6666666666666666?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[nt]}for(var we=!1,ke=["x","y"],Ae=0;Ae1)&&(Ye===qe?((Je=at.r2fraction(S["a"+Ue]))<0||Je>1)&&(we=!0):we=!0),Ee=at._offset+at.r2p(S[Ue]),Ie=.5}else{var ut=kt==="domain";Ue==="x"?(Re=S[Ue],Ee=ut?at._offset+at._length*Re:Ee=z.l+z.w*Re):(Re=1-S[Ue],Ee=ut?at._offset+at._length*Re:Ee=z.t+z.h*Re),Ie=S.showarrow?.5:Re}if(S.showarrow){it.head=Ee;var pt=S["a"+Ue];if(Be=ct*be(.5,S.xanchor)-bt*be(.5,S.yanchor),Ye===qe){var It=h.getRefType(Ye);It==="domain"?(Ue==="y"&&(pt=1-pt),it.tail=at._offset+at._length*pt):It==="paper"?Ue==="y"?(pt=1-pt,it.tail=z.t+z.h*pt):it.tail=z.l+z.w*pt:it.tail=at._offset+at.r2p(pt),De=Be}else it.tail=Ee+pt,De=Be+pt;it.text=it.tail+Be;var Mt=A[Ue==="x"?"width":"height"];if(qe==="paper"&&(it.head=u.constrain(it.head,1,Mt-1)),Ye==="pixel"){var zt=-Math.max(it.tail-3,it.text),wt=Math.min(it.tail+3,it.text)-Mt;zt>0?(it.tail+=zt,it.text+=zt):wt>0&&(it.tail-=wt,it.text-=wt)}it.tail+=Qe,it.head+=Qe}else De=Be=ze*be(Ie,Ne),it.text=Ee+Be;it.text+=Qe,Be+=Qe,De+=Qe,S["_"+Ue+"padplus"]=ze/2+De,S["_"+Ue+"padminus"]=ze/2-De,S["_"+Ue+"size"]=ze,S["_"+Ue+"shift"]=Be}if(we)ee.remove();else{var ve=0,_e=0;if(S.align!=="left"&&(ve=(de-J)*(S.align==="center"?.5:1)),S.valign!=="top"&&(_e=(xe-ne)*(S.valign==="middle"?.5:1)),ce)Me.select("svg").attr({x:Y+ve-1,y:Y+_e}).call(g.setClipUrl,X?W:null,M);else{var Ve=Y+_e-ye.top,We=Y+ve-ye.left;se.call(v.positionText,We,Ve).call(g.setClipUrl,X?W:null,M)}re.select("rect").call(g.setRect,Y,Y,de,xe),Z.call(g.setRect,U/2,U/2,ue-U,ge-U),ee.call(g.setTranslate,Math.round(G.x.text-ue/2),Math.round(G.y.text-ge/2)),H.attr({transform:"rotate("+L+","+G.x.text+","+G.y.text+")"});var Ze,Ge=function(Ke,nt){q.selectAll(".annotation-arrow-g").remove();var st=G.x.head,mt=G.y.head,tt=G.x.tail+Ke,Ft=G.y.tail+nt,Vt=G.x.text+Ke,St=G.y.text+nt,Nt=u.rotationXYMatrix(L,Vt,St),Dt=u.apply2DTransform(Nt),gt=u.apply2DTransform2(Nt),ht=+Z.attr("width"),yt=+Z.attr("height"),qt=Vt-.5*ht,Et=qt+ht,jt=St-.5*yt,Tt=jt+yt,Ot=[[qt,jt,qt,Tt],[qt,Tt,Et,Tt],[Et,Tt,Et,jt],[Et,jt,qt,jt]].map(gt);if(!Ot.reduce(function(an,sn){return an^!!u.segmentsIntersect(st,mt,st+1e6,mt+1e6,sn[0],sn[1],sn[2],sn[3])},!1)){Ot.forEach(function(an){var sn=u.segmentsIntersect(tt,Ft,st,mt,an[0],an[1],an[2],an[3]);sn&&(tt=sn.x,Ft=sn.y)});var At=S.arrowwidth,Lt=S.arrowcolor,Rt=S.arrowside,$t=q.append("g").style({opacity:p.opacity(Lt)}).classed("annotation-arrow-g",!0),Yt=$t.append("path").attr("d","M"+tt+","+Ft+"L"+st+","+mt).style("stroke-width",At+"px").call(p.stroke,p.rgb(Lt));if(_(Yt,Rt,S),B.annotationPosition&&Yt.node().parentNode&&!P){var Xt=st,Bt=mt;if(S.standoff){var Wt=Math.sqrt(Math.pow(st-tt,2)+Math.pow(mt-Ft,2));Xt+=S.standoff*(tt-st)/Wt,Bt+=S.standoff*(Ft-mt)/Wt}var tn,cn,ln=$t.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(tt-Xt)+","+(Ft-Bt),transform:d(Xt,Bt)}).style("stroke-width",At+6+"px").call(p.stroke,"rgba(0,0,0,0)").call(p.fill,"rgba(0,0,0,0)");b.init({element:ln.node(),gd:M,prepFn:function(){var an=g.getTranslate(ee);tn=an.x,cn=an.y,D&&D.autorange&&j(D._name+".autorange",!0),O&&O.autorange&&j(O._name+".autorange",!0)},moveFn:function(an,sn){var Zt=Dt(tn,cn),pn=Zt[0]+an,nn=Zt[1]+sn;ee.call(g.setTranslate,pn,nn),N("x",k(D,an,"x",z,S)),N("y",k(O,sn,"y",z,S)),S.axref===S.xref&&N("ax",k(D,an,"ax",z,S)),S.ayref===S.yref&&N("ay",k(O,sn,"ay",z,S)),$t.attr("transform",d(an,sn)),H.attr({transform:"rotate("+L+","+pn+","+nn+")"})},doneFn:function(){f.call("_guiRelayout",M,E());var an=document.querySelector(".js-notes-box-panel");an&&an.redraw(an.selectedObj)}})}}};S.showarrow&&Ge(0,0),V&&b.init({element:ee.node(),gd:M,prepFn:function(){Ze=H.attr("transform")},moveFn:function(Ke,nt){var st="pointer";if(S.showarrow)S.axref===S.xref?N("ax",k(D,Ke,"ax",z,S)):N("ax",S.ax+Ke),S.ayref===S.yref?N("ay",k(O,nt,"ay",z.w,S)):N("ay",S.ay+nt),Ge(Ke,nt);else{if(P)return;var mt,tt;if(D)mt=k(D,Ke,"x",z,S);else{var Ft=S._xsize/z.w,Vt=S.x+(S._xshift-S.xshift)/z.w-Ft/2;mt=b.align(Vt+Ke/z.w,Ft,0,1,S.xanchor)}if(O)tt=k(O,nt,"y",z,S);else{var St=S._ysize/z.h,Nt=S.y-(S._yshift+S.yshift)/z.h-St/2;tt=b.align(Nt-nt/z.h,St,0,1,S.yanchor)}N("x",mt),N("y",tt),D&&O||(st=b.getCursor(D?.5:mt,O?.5:tt,S.xanchor,S.yanchor))}H.attr({transform:d(Ke,nt)+Ze}),m(ee,st)},clickFn:function(Ke,nt){S.captureevents&&M.emit("plotly_clickannotation",pe(nt))},doneFn:function(){m(ee),f.call("_guiRelayout",M,E());var Ke=document.querySelector(".js-notes-box-panel");Ke&&Ke.redraw(Ke.selectedObj)}})}}}o.exports={draw:function(M){var S=M._fullLayout;S._infolayer.selectAll(".annotation").remove();for(var C=0;C=0,P=y.indexOf("end")>=0,D=k.backoff*M+v.standoff,O=T.backoff*S+v.startstandoff;if(w.nodeName==="line"){m={x:+g.attr("x1"),y:+g.attr("y1")},b={x:+g.attr("x2"),y:+g.attr("y2")};var R=m.x-b.x,F=m.y-b.y;if(_=(x=Math.atan2(F,R))+Math.PI,D&&O&&D+O>Math.sqrt(R*R+F*F))return void q();if(D){if(D*D>R*R+F*F)return void q();var A=D*Math.cos(x),z=D*Math.sin(x);b.x+=A,b.y+=z,g.attr({x2:b.x,y2:b.y})}if(O){if(O*O>R*R+F*F)return void q();var B=O*Math.cos(x),$=O*Math.sin(x);m.x-=B,m.y-=$,g.attr({x1:m.x,y1:m.y})}}else if(w.nodeName==="path"){var j=w.getTotalLength(),N="";if(j1){v=!0;break}}v?u.fullLayout._infolayer.select(".annotation-"+u.id+'[data-index="'+g+'"]').remove():(y._pdata=f(u.glplot.cameraParams,[d.xaxis.r2l(y.x)*h[0],d.yaxis.r2l(y.y)*h[1],d.zaxis.r2l(y.z)*h[2]]),l(u.graphDiv,y,g,u.id,y._xa,y._ya))}}},2468:function(o,a,n){var l=n(73972),f=n(71828);o.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:n(26997)}}},layoutAttributes:n(26997),handleDefaults:n(20226),includeBasePlot:function(s,u){var d=l.subplotsRegistry.gl3d;if(d)for(var h=d.attrRegex,p=Object.keys(s),g=0;g=0)))return y;if(_===3)b[_]>1&&(b[_]=1);else if(b[_]>=1)return y}var w=Math.round(255*b[0])+", "+Math.round(255*b[1])+", "+Math.round(255*b[2]);return x?"rgba("+w+", "+b[3]+")":"rgb("+w+")"}u.tinyRGB=function(y){var v=y.toRgb();return"rgb("+Math.round(v.r)+", "+Math.round(v.g)+", "+Math.round(v.b)+")"},u.rgb=function(y){return u.tinyRGB(l(y))},u.opacity=function(y){return y?l(y).getAlpha():0},u.addOpacity=function(y,v){var m=l(y).toRgb();return"rgba("+Math.round(m.r)+", "+Math.round(m.g)+", "+Math.round(m.b)+", "+v+")"},u.combine=function(y,v){var m=l(y).toRgb();if(m.a===1)return l(y).toRgbString();var b=l(v||p).toRgb(),x=b.a===1?b:{r:255*(1-b.a)+b.r*b.a,g:255*(1-b.a)+b.g*b.a,b:255*(1-b.a)+b.b*b.a},_={r:x.r*(1-m.a)+m.r*m.a,g:x.g*(1-m.a)+m.g*m.a,b:x.b*(1-m.a)+m.b*m.a};return l(_).toRgbString()},u.contrast=function(y,v,m){var b=l(y);return b.getAlpha()!==1&&(b=l(u.combine(y,p))),(b.isDark()?v?b.lighten(v):p:m?b.darken(m):h).toString()},u.stroke=function(y,v){var m=l(v);y.style({stroke:u.tinyRGB(m),"stroke-opacity":m.getAlpha()})},u.fill=function(y,v){var m=l(v);y.style({fill:u.tinyRGB(m),"fill-opacity":m.getAlpha()})},u.clean=function(y){if(y&&typeof y=="object"){var v,m,b,x,_=Object.keys(y);for(v=0;v<_.length;v++)if(x=y[b=_[v]],b.substr(b.length-5)==="color")if(Array.isArray(x))for(m=0;m0?wt>=Ze:wt<=Ze));ve++)wt>Ke&&wt0?wt>=Ze:wt<=Ze));ve++)wt>zt[0]&&wt1){var bt=Math.pow(10,Math.floor(Math.log(ct)/Math.LN10));at*=bt*p.roundUp(ct/bt,[2,5,10]),(Math.abs(J.start)/J.size+1e-6)%1<2e-6&&(qe.tick0=0)}qe.dtick=at}qe.domain=E?[Be+Y/se.h,Be+we-Y/se.h]:[Be+Q/se.w,Be+we-Q/se.w],qe.setScale(),$.attr("transform",g(Math.round(se.l),Math.round(se.t)));var ze,Ne=$.select("."+O.cbtitleunshift).attr("transform",g(-Math.round(se.l),-Math.round(se.t))),Qe=qe.ticklabelposition,it=qe.title.font.size,kt=$.select("."+O.cbaxis),Je=0,ut=0;function pt(It,Mt){var zt={propContainer:qe,propName:j._propPrefix+"title",traceIndex:j._traceIndex,_meta:j._meta,placeholder:le._dfltTitle.colorbar,containerGroup:$.select("."+O.cbtitle)},wt=It.charAt(0)==="h"?It.substr(1):"h"+It;$.selectAll("."+wt+",."+wt+"-math-group").remove(),x.draw(N,It,y(zt,Mt||{}))}return p.syncOrAsync([s.previousPromises,function(){var It,Mt;(E&&Ye||!E&&!Ye)&&(Oe==="top"&&(It=Q+se.l+ke*Z,Mt=Y+se.t+Ae*(1-Be-we)+3+.75*it),Oe==="bottom"&&(It=Q+se.l+ke*Z,Mt=Y+se.t+Ae*(1-Be)-3-.25*it),Oe==="right"&&(Mt=Y+se.t+Ae*X+3+.75*it,It=Q+se.l+ke*Be),pt(qe._id+"title",{attributes:{x:It,y:Mt,"text-anchor":E?"start":"middle"}}))},function(){if(!E&&!Ye||E&&Ye){var It,Mt=$.select("."+O.cbtitle),zt=Mt.select("text"),wt=[-H/2,H/2],ve=Mt.select(".h"+qe._id+"title-math-group").node(),_e=15.6;if(zt.node()&&(_e=parseInt(zt.node().style.fontSize,10)*C),ve?(It=m.bBox(ve),ut=It.width,(Je=It.height)>_e&&(wt[1]-=(Je-_e)/2)):zt.node()&&!zt.classed(O.jsPlaceholder)&&(It=m.bBox(zt.node()),ut=It.width,Je=It.height),E){if(Je){if(Je+=5,Oe==="top")qe.domain[1]-=Je/se.h,wt[1]*=-1;else{qe.domain[0]+=Je/se.h;var Ve=_.lineCount(zt);wt[1]+=(1-Ve)*_e}Mt.attr("transform",g(wt[0],wt[1])),qe.setScale()}}else ut&&(Oe==="right"&&(qe.domain[0]+=(ut+it/2)/se.w),Mt.attr("transform",g(wt[0],wt[1])),qe.setScale())}$.selectAll("."+O.cbfills+",."+O.cblines).attr("transform",E?g(0,Math.round(se.h*(1-qe.domain[1]))):g(Math.round(se.w*qe.domain[0]),0)),kt.attr("transform",E?g(0,Math.round(-se.t)):g(Math.round(-se.l),0));var We=$.select("."+O.cbfills).selectAll("rect."+O.cbfill).attr("style","").data(de);We.enter().append("rect").classed(O.cbfill,!0).attr("style",""),We.exit().remove();var Ze=Me.map(qe.c2p).map(Math.round).sort(function(mt,tt){return mt-tt});We.each(function(mt,tt){var Ft=[tt===0?Me[0]:(de[tt]+de[tt-1])/2,tt===de.length-1?Me[1]:(de[tt]+de[tt+1])/2].map(qe.c2p).map(Math.round);E&&(Ft[1]=p.constrain(Ft[1]+(Ft[1]>Ft[0])?1:-1,Ze[0],Ze[1]));var Vt=l.select(this).attr(E?"x":"y",Ee).attr(E?"y":"x",l.min(Ft)).attr(E?"width":"height",Math.max(ue,2)).attr(E?"height":"width",Math.max(l.max(Ft)-l.min(Ft),2));if(j._fillgradient)m.gradient(Vt,N,j._id,E?"vertical":"horizontalreversed",j._fillgradient,"fill");else{var St=ye(mt).replace("e-","");Vt.attr("fill",f(St).toHexString())}});var Ge=$.select("."+O.cblines).selectAll("path."+O.cbline).data(Te.color&&Te.width?xe:[]);Ge.enter().append("path").classed(O.cbline,!0),Ge.exit().remove(),Ge.each(function(mt){var tt=Ee,Ft=Math.round(qe.c2p(mt))+Te.width/2%1;l.select(this).attr("d","M"+(E?tt+","+Ft:Ft+","+tt)+(E?"h":"v")+ue).call(m.lineGroupStyle,Te.width,ce(mt),Te.dash)}),kt.selectAll("g."+qe._id+"tick,path").remove();var Ke=Ee+ue+(H||0)/2-(j.ticks==="outside"?1:0),nt=d.calcTicks(qe),st=d.getTickSigns(qe)[2];return d.drawTicks(N,qe,{vals:qe.ticks==="inside"?d.clipEnds(qe,nt):nt,layer:kt,path:d.makeTickPath(qe,Ke,st),transFn:d.makeTransTickFn(qe)}),d.drawLabels(N,qe,{vals:nt,layer:kt,transFn:d.makeTransTickLabelFn(qe),labelFns:d.makeLabelFns(qe,Ke)})},function(){if(E&&!Ye||!E&&Ye){var It,Mt,zt=qe.position||0,wt=qe._offset+qe._length/2;if(Oe==="right")Mt=wt,It=se.l+ke*zt+10+it*(qe.showticklabels?1:.5);else if(It=wt,Oe==="bottom"&&(Mt=se.t+Ae*zt+10+(Qe.indexOf("inside")===-1?qe.tickfont.size:0)+(qe.ticks!=="intside"&&j.ticklen||0)),Oe==="top"){var ve=Se.text.split("
").length;Mt=se.t+Ae*zt+10-ue-C*it*ve}pt((E?"h":"v")+qe._id+"title",{avoid:{selection:l.select(N).selectAll("g."+qe._id+"tick"),side:Oe,offsetTop:E?0:se.t,offsetLeft:E?se.l:0,maxShift:E?le.width:le.height},attributes:{x:It,y:Mt,"text-anchor":"middle"},transform:{rotate:E?-90:0,offset:0}})}},s.previousPromises,function(){var It,Mt=ue+H/2;Qe.indexOf("inside")===-1&&(It=m.bBox(kt.node()),Mt+=E?It.width:It.height),ze=Ne.select("text");var zt=0,wt=E&&Oe==="top",ve=!E&&Oe==="right",_e=0;if(ze.node()&&!ze.classed(O.jsPlaceholder)){var Ve,We=Ne.select(".h"+qe._id+"title-math-group").node();We&&(E&&Ye||!E&&!Ye)?(zt=(It=m.bBox(We)).width,Ve=It.height):(zt=(It=m.bBox(Ne.node())).right-se.l-(E?Ee:Ue),Ve=It.bottom-se.t-(E?Ue:Ee),E||Oe!=="top"||(Mt+=It.height,_e=It.height)),ve&&(ze.attr("transform",g(zt/2+it/2,0)),zt*=2),Mt=Math.max(Mt,E?zt:Ve)}var Ze=2*(E?Q:Y)+Mt+V+H/2,Ge=0;!E&&Se.text&&U==="bottom"&&X<=0&&(Ze+=Ge=Ze/2,_e+=Ge),le._hColorbarMoveTitle=Ge,le._hColorbarMoveCBTitle=_e;var Ke=V+H,nt=(E?Ee:Ue)-Ke/2-(E?Q:0),st=(E?Ue:Ee)-(E?be:Y+_e-Ge);$.select("."+O.cbbg).attr("x",nt).attr("y",st).attr(E?"width":"height",Math.max(Ze-Ge,2)).attr(E?"height":"width",Math.max(be+Ke,2)).call(b.fill,te).call(b.stroke,j.bordercolor).style("stroke-width",V);var mt=ve?Math.max(zt-10,0):0;$.selectAll("."+O.cboutline).attr("x",(E?Ee:Ue+Q)+mt).attr("y",(E?Ue+Y-be:Ee)+(wt?Je:0)).attr(E?"width":"height",Math.max(ue,2)).attr(E?"height":"width",Math.max(be-(E?2*Y+Je:2*Q+mt),2)).call(b.stroke,j.outlinecolor).style({fill:"none","stroke-width":H});var tt=E?De*Ze:0,Ft=E?0:(1-Re)*Ze-_e;if(tt=ie?se.l-tt:-tt,Ft=re?se.t-Ft:-Ft,$.attr("transform",g(tt,Ft)),!E&&(V||f(te).getAlpha()&&!f.equals(le.paper_bgcolor,te))){var Vt=kt.selectAll("text"),St=Vt[0].length,Nt=$.select("."+O.cbbg).node(),Dt=m.bBox(Nt),gt=m.getTranslate($);Vt.each(function(Rt,$t){var Yt=St-1;if($t===0||$t===Yt){var Xt,Bt=m.bBox(this),Wt=m.getTranslate(this);if($t===Yt){var tn=Bt.right+Wt.x;(Xt=Dt.right+gt.x+Ue-V-2+Z-tn)>0&&(Xt=0)}else if($t===0){var cn=Bt.left+Wt.x;(Xt=Dt.left+gt.x+Ue+V+2-cn)<0&&(Xt=0)}Xt&&(St<3?this.setAttribute("transform","translate("+Xt+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ht={},yt=P[ee],qt=D[ee],Et=P[U],jt=D[U],Tt=Ze-ue;E?(G==="pixels"?(ht.y=X,ht.t=be*Et,ht.b=be*jt):(ht.t=ht.b=0,ht.yt=X+W*Et,ht.yb=X-W*jt),q==="pixels"?(ht.x=Z,ht.l=Ze*yt,ht.r=Ze*qt):(ht.l=Tt*yt,ht.r=Tt*qt,ht.xl=Z-L*yt,ht.xr=Z+L*qt)):(G==="pixels"?(ht.x=Z,ht.l=be*yt,ht.r=be*qt):(ht.l=ht.r=0,ht.xl=Z+W*yt,ht.xr=Z-W*qt),q==="pixels"?(ht.y=1-X,ht.t=Ze*Et,ht.b=Ze*jt):(ht.t=Tt*Et,ht.b=Tt*jt,ht.yt=X-L*Et,ht.yb=X+L*jt));var Ot=j.y<.5?"b":"t",At=j.x<.5?"l":"r";N._fullLayout._reservedMargin[j._id]={};var Lt={r:le.width-nt-tt,l:nt+ht.r,b:le.height-st-Ft,t:st+ht.b};ie&&re?s.autoMargin(N,j._id,ht):ie?N._fullLayout._reservedMargin[j._id][Ot]=Lt[Ot]:re||E?N._fullLayout._reservedMargin[j._id][At]=Lt[At]:N._fullLayout._reservedMargin[j._id][Ot]=Lt[Ot]}],N)}(z,A,R);B&&B.then&&(R._promises||[]).push(B),R._context.edits.colorbarPosition&&function($,j,N){var E,W,G,L=j.orientation==="v",q=N._fullLayout._size;h.init({element:$.node(),gd:N,prepFn:function(){E=$.attr("transform"),v($)},moveFn:function(H,V){$.attr("transform",E+g(H,V)),W=h.align((L?j._uFrac:j._vFrac)+H/q.w,L?j._thickFrac:j._lenFrac,0,1,j.xanchor),G=h.align((L?j._vFrac:1-j._uFrac)-V/q.h,L?j._lenFrac:j._thickFrac,0,1,j.yanchor);var te=h.getCursor(W,G,j.xanchor,j.yanchor);v($,te)},doneFn:function(){if(v($),W!==void 0&&G!==void 0){var H={};H[j._propPrefix+"x"]=W,H[j._propPrefix+"y"]=G,j._traceIndex!==void 0?u.call("_guiRestyle",N,H,j._traceIndex):u.call("_guiRelayout",N,H)}}})}(z,A,R)}),F.exit().each(function(A){s.autoMargin(R,A._id)}).remove(),F.order()}}},76228:function(o,a,n){var l=n(71828);o.exports=function(f){return l.isPlainObject(f.colorbar)}},12311:function(o,a,n){o.exports={moduleType:"component",name:"colorbar",attributes:n(63583),supplyDefaults:n(62499),draw:n(98981).draw,hasColorbar:n(76228)}},50693:function(o,a,n){var l=n(63583),f=n(30587).counter,s=n(78607),u=n(63282).scales;function d(h){return"`"+h+"`"}s(u),o.exports=function(h,p){h=h||"";var g,y=(p=p||{}).cLetter||"c",v=("onlyIfNumerical"in p&&p.onlyIfNumerical,"noScale"in p?p.noScale:h==="marker.line"),m="showScaleDflt"in p?p.showScaleDflt:y==="z",b=typeof p.colorscaleDflt=="string"?u[p.colorscaleDflt]:null,x=p.editTypeOverride||"",_=h?h+".":"";"colorAttr"in p?(g=p.colorAttr,p.colorAttr):d(_+(g={z:"z",c:"color"}[y]));var w=y+"auto",k=y+"min",T=y+"max",M=y+"mid",S={};S[k]=S[T]=void 0;var C={};C[w]=!1;var P={};return g==="color"&&(P.color={valType:"color",arrayOk:!0,editType:x||"style"},p.anim&&(P.color.anim=!0)),P[w]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:S},P[k]={valType:"number",dflt:null,editType:x||"plot",impliedEdits:C},P[T]={valType:"number",dflt:null,editType:x||"plot",impliedEdits:C},P[M]={valType:"number",dflt:null,editType:"calc",impliedEdits:S},P.colorscale={valType:"colorscale",editType:"calc",dflt:b,impliedEdits:{autocolorscale:!1}},P.autocolorscale={valType:"boolean",dflt:p.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},P.reversescale={valType:"boolean",dflt:!1,editType:"plot"},v||(P.showscale={valType:"boolean",dflt:m,editType:"calc"},P.colorbar=l),p.noColorAxis||(P.coloraxis={valType:"subplotid",regex:f("coloraxis"),dflt:null,editType:"calc"}),P}},78803:function(o,a,n){var l=n(92770),f=n(71828),s=n(52075).extractOpts;o.exports=function(u,d,h){var p,g=u._fullLayout,y=h.vals,v=h.containerStr,m=v?f.nestedProperty(d,v).get():d,b=s(m),x=b.auto!==!1,_=b.min,w=b.max,k=b.mid,T=function(){return f.aggNums(Math.min,null,y)},M=function(){return f.aggNums(Math.max,null,y)};_===void 0?_=T():x&&(_=m._colorAx&&l(_)?Math.min(_,T()):T()),w===void 0?w=M():x&&(w=m._colorAx&&l(w)?Math.max(w,M()):M()),x&&k!==void 0&&(w-k>k-_?_=k-(w-k):w-k=0?g.colorscale.sequential:g.colorscale.sequentialminus,b._sync("colorscale",p))}},33046:function(o,a,n){var l=n(71828),f=n(52075).hasColorscale,s=n(52075).extractOpts;o.exports=function(u,d){function h(x,_){var w=x["_"+_];w!==void 0&&(x[_]=w)}function p(x,_){var w=_.container?l.nestedProperty(x,_.container).get():x;if(w)if(w.coloraxis)w._colorAx=d[w.coloraxis];else{var k=s(w),T=k.auto;(T||k.min===void 0)&&h(w,_.min),(T||k.max===void 0)&&h(w,_.max),k.autocolorscale&&h(w,"colorscale")}}for(var g=0;g=0;T--,M++){var S=_[T];k[M]=[1-S[0],S[1]]}return k}function b(_,w){w=w||{};for(var k=_.domain,T=_.range,M=T.length,S=new Array(M),C=0;C1.3333333333333333-h?d:h}},70461:function(o,a,n){var l=n(71828),f=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];o.exports=function(s,u,d,h){return s=d==="left"?0:d==="center"?1:d==="right"?2:l.constrain(Math.floor(3*s),0,2),u=h==="bottom"?0:h==="middle"?1:h==="top"?2:l.constrain(Math.floor(3*u),0,2),f[u][s]}},64505:function(o,a){a.selectMode=function(n){return n==="lasso"||n==="select"},a.drawMode=function(n){return n==="drawclosedpath"||n==="drawopenpath"||n==="drawline"||n==="drawrect"||n==="drawcircle"},a.openMode=function(n){return n==="drawline"||n==="drawopenpath"},a.rectMode=function(n){return n==="select"||n==="drawline"||n==="drawrect"||n==="drawcircle"},a.freeMode=function(n){return n==="lasso"||n==="drawclosedpath"||n==="drawopenpath"},a.selectingOrDrawing=function(n){return a.freeMode(n)||a.rectMode(n)}},28569:function(o,a,n){var l=n(48956),f=n(57035),s=n(38520),u=n(71828).removeElement,d=n(85555),h=o.exports={};h.align=n(92807),h.getCursor=n(70461);var p=n(26041);function g(){var v=document.createElement("div");v.className="dragcover";var m=v.style;return m.position="fixed",m.left=0,m.right=0,m.top=0,m.bottom=0,m.zIndex=999999999,m.background="none",document.body.appendChild(v),v}function y(v){return l(v.changedTouches?v.changedTouches[0]:v,document.body)}h.unhover=p.wrapped,h.unhoverRaw=p.raw,h.init=function(v){var m,b,x,_,w,k,T,M,S=v.gd,C=1,P=S._context.doubleClickDelay,D=v.element;S._mouseDownTime||(S._mouseDownTime=0),D.style.pointerEvents="all",D.onmousedown=R,s?(D._ontouchstart&&D.removeEventListener("touchstart",D._ontouchstart),D._ontouchstart=R,D.addEventListener("touchstart",R,{passive:!1})):D.ontouchstart=R;var O=v.clampFn||function(z,B,$){return Math.abs(z)<$&&(z=0),Math.abs(B)<$&&(B=0),[z,B]};function R(z){S._dragged=!1,S._dragging=!0;var B=y(z);m=B[0],b=B[1],T=z.target,k=z,M=z.buttons===2||z.ctrlKey,z.clientX===void 0&&z.clientY===void 0&&(z.clientX=m,z.clientY=b),(x=new Date().getTime())-S._mouseDownTimeP&&(C=Math.max(C-1,1)),S._dragged)v.doneFn&&v.doneFn();else if(v.clickFn&&v.clickFn(C,k),!M){var B;try{B=new MouseEvent("click",z)}catch{var $=y(z);(B=document.createEvent("MouseEvents")).initMouseEvent("click",z.bubbles,z.cancelable,z.view,z.detail,z.screenX,z.screenY,$[0],$[1],z.ctrlKey,z.altKey,z.shiftKey,z.metaKey,z.button,z.relatedTarget)}T.dispatchEvent(B)}S._dragging=!1,S._dragged=!1}else S._dragged=!1}},h.coverSlip=g},26041:function(o,a,n){var l=n(11086),f=n(79990),s=n(24401).getGraphDiv,u=n(26675),d=o.exports={};d.wrapped=function(h,p,g){(h=s(h))._fullLayout&&f.clear(h._fullLayout._uid+u.HOVERID),d.raw(h,p,g)},d.raw=function(h,p){var g=h._fullLayout,y=h._hoverdata;p||(p={}),p.target&&!h._dragged&&l.triggerHandler(h,"plotly_beforehover",p)===!1||(g._hoverlayer.selectAll("g").remove(),g._hoverlayer.selectAll("line").remove(),g._hoverlayer.selectAll("circle").remove(),h._hoverdata=void 0,p.target&&y&&h.emit("plotly_unhover",{event:p,points:y}))}},79952:function(o,a){a.P={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},a.u={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},91424:function(o,a,n){var l=n(39898),f=n(71828),s=f.numberFormat,u=n(92770),d=n(84267),h=n(73972),p=n(7901),g=n(21081),y=f.strTranslate,v=n(63893),m=n(77922),b=n(18783).LINE_SPACING,x=n(37822).DESELECTDIM,_=n(34098),w=n(39984),k=n(23469).appendArrayPointValue,T=o.exports={};function M(ce,ye,J){var ne=ye.fillpattern,de=ne&&T.getPatternAttr(ne.shape,0,"");if(de){var xe=T.getPatternAttr(ne.bgcolor,0,null),ue=T.getPatternAttr(ne.fgcolor,0,null),ge=ne.fgopacity,be=T.getPatternAttr(ne.size,0,8),we=T.getPatternAttr(ne.solidity,0,.3),ke=ye.uid;T.pattern(ce,"point",J,ke,de,be,we,void 0,ne.fillmode,xe,ue,ge)}else ye.fillcolor&&ce.call(p.fill,ye.fillcolor)}T.font=function(ce,ye,J,ne){f.isPlainObject(ye)&&(ne=ye.color,J=ye.size,ye=ye.family),ye&&ce.style("font-family",ye),J+1&&ce.style("font-size",J+"px"),ne&&ce.call(p.fill,ne)},T.setPosition=function(ce,ye,J){ce.attr("x",ye).attr("y",J)},T.setSize=function(ce,ye,J){ce.attr("width",ye).attr("height",J)},T.setRect=function(ce,ye,J,ne,de){ce.call(T.setPosition,ye,J).call(T.setSize,ne,de)},T.translatePoint=function(ce,ye,J,ne){var de=J.c2p(ce.x),xe=ne.c2p(ce.y);return!!(u(de)&&u(xe)&&ye.node())&&(ye.node().nodeName==="text"?ye.attr("x",de).attr("y",xe):ye.attr("transform",y(de,xe)),!0)},T.translatePoints=function(ce,ye,J){ce.each(function(ne){var de=l.select(this);T.translatePoint(ne,de,ye,J)})},T.hideOutsideRangePoint=function(ce,ye,J,ne,de,xe){ye.attr("display",J.isPtWithinRange(ce,de)&&ne.isPtWithinRange(ce,xe)?null:"none")},T.hideOutsideRangePoints=function(ce,ye){if(ye._hasClipOnAxisFalse){var J=ye.xaxis,ne=ye.yaxis;ce.each(function(de){var xe=de[0].trace,ue=xe.xcalendar,ge=xe.ycalendar,be=h.traceIs(xe,"bar-like")?".bartext":".point,.textpoint";ce.selectAll(be).each(function(we){T.hideOutsideRangePoint(we,l.select(this),J,ne,ue,ge)})})}},T.crispRound=function(ce,ye,J){return ye&&u(ye)?ce._context.staticPlot?ye:ye<1?1:Math.round(ye):J||0},T.singleLineStyle=function(ce,ye,J,ne,de){ye.style("fill","none");var xe=(((ce||[])[0]||{}).trace||{}).line||{},ue=J||xe.width||0,ge=de||xe.dash||"";p.stroke(ye,ne||xe.color),T.dashLine(ye,ge,ue)},T.lineGroupStyle=function(ce,ye,J,ne){ce.style("fill","none").each(function(de){var xe=(((de||[])[0]||{}).trace||{}).line||{},ue=ye||xe.width||0,ge=ne||xe.dash||"";l.select(this).call(p.stroke,J||xe.color).call(T.dashLine,ge,ue)})},T.dashLine=function(ce,ye,J){J=+J||0,ye=T.dashStyle(ye,J),ce.style({"stroke-dasharray":ye,"stroke-width":J+"px"})},T.dashStyle=function(ce,ye){ye=+ye||1;var J=Math.max(ye,3);return ce==="solid"?ce="":ce==="dot"?ce=J+"px,"+J+"px":ce==="dash"?ce=3*J+"px,"+3*J+"px":ce==="longdash"?ce=5*J+"px,"+5*J+"px":ce==="dashdot"?ce=3*J+"px,"+J+"px,"+J+"px,"+J+"px":ce==="longdashdot"&&(ce=5*J+"px,"+2*J+"px,"+J+"px,"+2*J+"px"),ce},T.singleFillStyle=function(ce,ye){var J=l.select(ce.node());M(ce,((J.data()[0]||[])[0]||{}).trace||{},ye)},T.fillGroupStyle=function(ce,ye){ce.style("stroke-width",0).each(function(J){var ne=l.select(this);J[0].trace&&M(ne,J[0].trace,ye)})};var S=n(90998);T.symbolNames=[],T.symbolFuncs=[],T.symbolBackOffs=[],T.symbolNeedLines={},T.symbolNoDot={},T.symbolNoFill={},T.symbolList=[],Object.keys(S).forEach(function(ce){var ye=S[ce],J=ye.n;T.symbolList.push(J,String(J),ce,J+100,String(J+100),ce+"-open"),T.symbolNames[J]=ce,T.symbolFuncs[J]=ye.f,T.symbolBackOffs[J]=ye.backoff||0,ye.needLine&&(T.symbolNeedLines[J]=!0),ye.noDot?T.symbolNoDot[J]=!0:T.symbolList.push(J+200,String(J+200),ce+"-dot",J+300,String(J+300),ce+"-open-dot"),ye.noFill&&(T.symbolNoFill[J]=!0)});var C=T.symbolNames.length;function P(ce,ye,J,ne){var de=ce%100;return T.symbolFuncs[de](ye,J,ne)+(ce>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}T.symbolNumber=function(ce){if(u(ce))ce=+ce;else if(typeof ce=="string"){var ye=0;ce.indexOf("-open")>0&&(ye=100,ce=ce.replace("-open","")),ce.indexOf("-dot")>0&&(ye+=200,ce=ce.replace("-dot","")),(ce=T.symbolNames.indexOf(ce))>=0&&(ce+=ye)}return ce%100>=C||ce>=400?0:Math.floor(Math.max(ce,0))};var D={x1:1,x2:0,y1:0,y2:0},O={x1:0,x2:0,y1:1,y2:0},R=s("~f"),F={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:D},horizontalreversed:{node:"linearGradient",attrs:D,reversed:!0},vertical:{node:"linearGradient",attrs:O},verticalreversed:{node:"linearGradient",attrs:O,reversed:!0}};T.gradient=function(ce,ye,J,ne,de,xe){for(var ue=de.length,ge=F[ne],be=new Array(ue),we=0;we=0&&ce.i===void 0&&(ce.i=xe.i),ye.style("opacity",ne.selectedOpacityFn?ne.selectedOpacityFn(ce):ce.mo===void 0?ue.opacity:ce.mo),ne.ms2mrc){var be;be=ce.ms==="various"||ue.size==="various"?3:ne.ms2mrc(ce.ms),ce.mrc=be,ne.selectedSizeFn&&(be=ce.mrc=ne.selectedSizeFn(ce));var we=T.symbolNumber(ce.mx||ue.symbol)||0;ce.om=we%200>=100;var ke=Me(ce,J),Ae=Y(ce,J);ye.attr("d",P(we,be,ke,Ae))}var Ee,De,Re,Ie=!1;if(ce.so)Re=ge.outlierwidth,De=ge.outliercolor,Ee=ue.outliercolor;else{var Be=(ge||{}).width;Re=(ce.mlw+1||Be+1||(ce.trace?(ce.trace.marker.line||{}).width:0)+1)-1||0,De="mlc"in ce?ce.mlcc=ne.lineScale(ce.mlc):f.isArrayOrTypedArray(ge.color)?p.defaultLine:ge.color,f.isArrayOrTypedArray(ue.color)&&(Ee=p.defaultLine,Ie=!0),Ee="mc"in ce?ce.mcc=ne.markerScale(ce.mc):ue.color||ue.colors||"rgba(0,0,0,0)",ne.selectedColorFn&&(Ee=ne.selectedColorFn(ce))}if(ce.om)ye.call(p.stroke,Ee).style({"stroke-width":(Re||1)+"px",fill:"none"});else{ye.style("stroke-width",(ce.isBlank?0:Re)+"px");var Ue=ue.gradient,qe=ce.mgt;qe?Ie=!0:qe=Ue&&Ue.type,f.isArrayOrTypedArray(qe)&&(qe=qe[0],F[qe]||(qe=0));var Ye=ue.pattern,at=Ye&&T.getPatternAttr(Ye.shape,ce.i,"");if(qe&&qe!=="none"){var lt=ce.mgc;lt?Ie=!0:lt=Ue.color;var ct=J.uid;Ie&&(ct+="-"+ce.i),T.gradient(ye,de,ct,qe,[[0,lt],[1,Ee]],"fill")}else if(at){var bt=!1,ze=Ye.fgcolor;!ze&&xe&&xe.color&&(ze=xe.color,bt=!0);var Ne=T.getPatternAttr(ze,ce.i,xe&&xe.color||null),Qe=T.getPatternAttr(Ye.bgcolor,ce.i,null),it=Ye.fgopacity,kt=T.getPatternAttr(Ye.size,ce.i,8),Je=T.getPatternAttr(Ye.solidity,ce.i,.3);bt=bt||ce.mcc||f.isArrayOrTypedArray(Ye.shape)||f.isArrayOrTypedArray(Ye.bgcolor)||f.isArrayOrTypedArray(Ye.fgcolor)||f.isArrayOrTypedArray(Ye.size)||f.isArrayOrTypedArray(Ye.solidity);var ut=J.uid;bt&&(ut+="-"+ce.i),T.pattern(ye,"point",de,ut,at,kt,Je,ce.mcc,Ye.fillmode,Qe,Ne,it)}else f.isArrayOrTypedArray(Ee)?p.fill(ye,Ee[ce.i]):p.fill(ye,Ee);Re&&p.stroke(ye,De)}},T.makePointStyleFns=function(ce){var ye={},J=ce.marker;return ye.markerScale=T.tryColorscale(J,""),ye.lineScale=T.tryColorscale(J,"line"),h.traceIs(ce,"symbols")&&(ye.ms2mrc=_.isBubble(ce)?w(ce):function(){return(J.size||6)/2}),ce.selectedpoints&&f.extendFlat(ye,T.makeSelectedPointStyleFns(ce)),ye},T.makeSelectedPointStyleFns=function(ce){var ye={},J=ce.selected||{},ne=ce.unselected||{},de=ce.marker||{},xe=J.marker||{},ue=ne.marker||{},ge=de.opacity,be=xe.opacity,we=ue.opacity,ke=be!==void 0,Ae=we!==void 0;(f.isArrayOrTypedArray(ge)||ke||Ae)&&(ye.selectedOpacityFn=function(at){var lt=at.mo===void 0?de.opacity:at.mo;return at.selected?ke?be:lt:Ae?we:x*lt});var Ee=de.color,De=xe.color,Re=ue.color;(De||Re)&&(ye.selectedColorFn=function(at){var lt=at.mcc||Ee;return at.selected?De||lt:Re||lt});var Ie=de.size,Be=xe.size,Ue=ue.size,qe=Be!==void 0,Ye=Ue!==void 0;return h.traceIs(ce,"symbols")&&(qe||Ye)&&(ye.selectedSizeFn=function(at){var lt=at.mrc||Ie/2;return at.selected?qe?Be/2:lt:Ye?Ue/2:lt}),ye},T.makeSelectedTextStyleFns=function(ce){var ye={},J=ce.selected||{},ne=ce.unselected||{},de=ce.textfont||{},xe=J.textfont||{},ue=ne.textfont||{},ge=de.color,be=xe.color,we=ue.color;return ye.selectedTextColorFn=function(ke){var Ae=ke.tc||ge;return ke.selected?be||Ae:we||(be?Ae:p.addOpacity(Ae,x))},ye},T.selectedPointStyle=function(ce,ye){if(ce.size()&&ye.selectedpoints){var J=T.makeSelectedPointStyleFns(ye),ne=ye.marker||{},de=[];J.selectedOpacityFn&&de.push(function(xe,ue){xe.style("opacity",J.selectedOpacityFn(ue))}),J.selectedColorFn&&de.push(function(xe,ue){p.fill(xe,J.selectedColorFn(ue))}),J.selectedSizeFn&&de.push(function(xe,ue){var ge=ue.mx||ne.symbol||0,be=J.selectedSizeFn(ue);xe.attr("d",P(T.symbolNumber(ge),be,Me(ue,ye),Y(ue,ye))),ue.mrc2=be}),de.length&&ce.each(function(xe){for(var ue=l.select(this),ge=0;ge0?J:0}function N(ce,ye,J){return J&&(ce=H(ce)),ye?W(ce[1]):E(ce[0])}function E(ce){var ye=l.round(ce,2);return A=ye,ye}function W(ce){var ye=l.round(ce,2);return z=ye,ye}function G(ce,ye,J,ne){var de=ce[0]-ye[0],xe=ce[1]-ye[1],ue=J[0]-ye[0],ge=J[1]-ye[1],be=Math.pow(de*de+xe*xe,.25),we=Math.pow(ue*ue+ge*ge,.25),ke=(we*we*de-be*be*ue)*ne,Ae=(we*we*xe-be*be*ge)*ne,Ee=3*we*(be+we),De=3*be*(be+we);return[[E(ye[0]+(Ee&&ke/Ee)),W(ye[1]+(Ee&&Ae/Ee))],[E(ye[0]-(De&&ke/De)),W(ye[1]-(De&&Ae/De))]]}T.textPointStyle=function(ce,ye,J){if(ce.size()){var ne;if(ye.selectedpoints){var de=T.makeSelectedTextStyleFns(ye);ne=de.selectedTextColorFn}var xe=ye.texttemplate,ue=J._fullLayout;ce.each(function(ge){var be=l.select(this),we=xe?f.extractOption(ge,ye,"txt","texttemplate"):f.extractOption(ge,ye,"tx","text");if(we||we===0){if(xe){var ke=ye._module.formatLabels,Ae=ke?ke(ge,ye,ue):{},Ee={};k(Ee,ye,ge.i);var De=ye._meta||{};we=f.texttemplateString(we,Ae,ue._d3locale,Ee,ge,De)}var Re=ge.tp||ye.textposition,Ie=j(ge,ye),Be=ne?ne(ge):ge.tc||ye.textfont.color;be.call(T.font,ge.tf||ye.textfont.family,Ie,Be).text(we).call(v.convertToTspans,J).call($,Re,Ie,ge.mrc)}else be.remove()})}},T.selectedTextStyle=function(ce,ye){if(ce.size()&&ye.selectedpoints){var J=T.makeSelectedTextStyleFns(ye);ce.each(function(ne){var de=l.select(this),xe=J.selectedTextColorFn(ne),ue=ne.tp||ye.textposition,ge=j(ne,ye);p.fill(de,xe);var be=h.traceIs(ye,"bar-like");$(de,ue,ge,ne.mrc2||ne.mrc,be)})}},T.smoothopen=function(ce,ye){if(ce.length<3)return"M"+ce.join("L");var J,ne="M"+ce[0],de=[];for(J=1;J=be||at>=ke&&at<=be)&&(lt<=Ae&<>=we||lt>=Ae&<<=we)&&(ce=[at,lt])}return ce}T.steps=function(ce){var ye=L[ce]||q;return function(J){for(var ne="M"+E(J[0][0])+","+W(J[0][1]),de=J.length,xe=1;xe=1e4&&(T.savedBBoxes={},V=0),J&&(T.savedBBoxes[J]=De),V++,f.extendFlat({},De)},T.setClipUrl=function(ce,ye,J){ce.attr("clip-path",ee(ye,J))},T.getTranslate=function(ce){var ye=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(J,ne,de){return[ne,de].join(" ")}).split(" ");return{x:+ye[0]||0,y:+ye[1]||0}},T.setTranslate=function(ce,ye,J){var ne=ce.attr?"attr":"getAttribute",de=ce.attr?"attr":"setAttribute",xe=ce[ne]("transform")||"";return ye=ye||0,J=J||0,xe=xe.replace(/(\btranslate\(.*?\);?)/,"").trim(),xe=(xe+=y(ye,J)).trim(),ce[de]("transform",xe),xe},T.getScale=function(ce){var ye=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(J,ne,de){return[ne,de].join(" ")}).split(" ");return{x:+ye[0]||1,y:+ye[1]||1}},T.setScale=function(ce,ye,J){var ne=ce.attr?"attr":"getAttribute",de=ce.attr?"attr":"setAttribute",xe=ce[ne]("transform")||"";return ye=ye||1,J=J||1,xe=xe.replace(/(\bscale\(.*?\);?)/,"").trim(),xe=(xe+="scale("+ye+","+J+")").trim(),ce[de]("transform",xe),xe};var U=/\s*sc.*/;T.setPointGroupScale=function(ce,ye,J){if(ye=ye||1,J=J||1,ce){var ne=ye===1&&J===1?"":"scale("+ye+","+J+")";ce.each(function(){var de=(this.getAttribute("transform")||"").replace(U,"");de=(de+=ne).trim(),this.setAttribute("transform",de)})}};var Q=/translate\([^)]*\)\s*$/;function Y(ce,ye){var J;return ce&&(J=ce.mf),J===void 0&&(J=ye.marker&&ye.marker.standoff||0),ye._geo||ye._xA?J:-J}T.setTextPointsScale=function(ce,ye,J){ce&&ce.each(function(){var ne,de=l.select(this),xe=de.select("text");if(xe.node()){var ue=parseFloat(xe.attr("x")||0),ge=parseFloat(xe.attr("y")||0),be=(de.attr("transform")||"").match(Q);ne=ye===1&&J===1?[]:[y(ue,ge),"scale("+ye+","+J+")",y(-ue,-ge)],be&&ne.push(be),de.attr("transform",ne.join(""))}})},T.getMarkerStandoff=Y;var Z,X,re,ie,le,se,pe=Math.atan2,Te=Math.cos,Se=Math.sin;function Oe(ce,ye){var J=ye[0],ne=ye[1];return[J*Te(ce)-ne*Se(ce),J*Se(ce)+ne*Te(ce)]}function Me(ce,ye){var J,ne,de=ce.ma;de===void 0&&(de=ye.marker.angle||0);var xe=ye.marker.angleref;if(xe==="previous"||xe==="north"){if(ye._geo){var ue=ye._geo.project(ce.lonlat);J=ue[0],ne=ue[1]}else{var ge=ye._xA,be=ye._yA;if(!ge||!be)return 90;J=ge.c2p(ce.x),ne=be.c2p(ce.y)}if(ye._geo){var we,ke=ce.lonlat[0],Ae=ce.lonlat[1],Ee=ye._geo.project([ke,Ae+1e-5]),De=ye._geo.project([ke+1e-5,Ae]),Re=pe(De[1]-ne,De[0]-J),Ie=pe(Ee[1]-ne,Ee[0]-J);if(xe==="north")we=de/180*Math.PI;else if(xe==="previous"){var Be=ke/180*Math.PI,Ue=Ae/180*Math.PI,qe=Z/180*Math.PI,Ye=X/180*Math.PI,at=qe-Be,lt=Te(Ye)*Se(at),ct=Se(Ye)*Te(Ue)-Te(Ye)*Se(Ue)*Te(at);we=-pe(lt,ct)-Math.PI,Z=ke,X=Ae}var bt=Oe(Re,[Te(we),0]),ze=Oe(Ie,[Se(we),0]);de=pe(bt[1]+ze[1],bt[0]+ze[0])/Math.PI*180,xe!=="previous"||se===ye.uid&&ce.i===le+1||(de=null)}if(xe==="previous"&&!ye._geo)if(se===ye.uid&&ce.i===le+1&&u(J)&&u(ne)){var Ne=J-re,Qe=ne-ie,it=ye.line&&ye.line.shape||"",kt=it.slice(it.length-1);kt==="h"&&(Qe=0),kt==="v"&&(Ne=0),de+=pe(Qe,Ne)/Math.PI*180+90}else de=null}return re=J,ie=ne,le=ce.i,se=ye.uid,de}T.getMarkerAngle=Me},90998:function(o,a,n){var l,f,s,u,d=n(95616),h=n(39898).round,p="M0,0Z",g=Math.sqrt(2),y=Math.sqrt(3),v=Math.PI,m=Math.cos,b=Math.sin;function x(w){return w===null}function _(w,k,T){if(!(w&&w%360!=0||k))return T;if(s===w&&u===k&&l===T)return f;function M(N,E){var W=m(N),G=b(N),L=E[0],q=E[1]+(k||0);return[L*W-q*G,L*G+q*W]}s=w,u=k,l=T;for(var S=w/180*v,C=0,P=0,D=d(T),O="",R=0;R0,b=d._context.staticPlot;h.each(function(x){var _,w=x[0].trace,k=w.error_x||{},T=w.error_y||{};w.ids&&(_=function(P){return P.id});var M=u.hasMarkers(w)&&w.marker.maxdisplayed>0;T.visible||k.visible||(x=[]);var S=l.select(this).selectAll("g.errorbar").data(x,_);if(S.exit().remove(),x.length){k.visible||S.selectAll("path.xerror").remove(),T.visible||S.selectAll("path.yerror").remove(),S.style("opacity",1);var C=S.enter().append("g").classed("errorbar",!0);m&&C.style("opacity",0).transition().duration(g.duration).style("opacity",1),s.setClipUrl(S,p.layerClipId,d),S.each(function(P){var D=l.select(this),O=function($,j,N){var E={x:j.c2p($.x),y:N.c2p($.y)};return $.yh!==void 0&&(E.yh=N.c2p($.yh),E.ys=N.c2p($.ys),f(E.ys)||(E.noYS=!0,E.ys=N.c2p($.ys,!0))),$.xh!==void 0&&(E.xh=j.c2p($.xh),E.xs=j.c2p($.xs),f(E.xs)||(E.noXS=!0,E.xs=j.c2p($.xs,!0))),E}(P,y,v);if(!M||P.vis){var R,F=D.select("path.yerror");if(T.visible&&f(O.x)&&f(O.yh)&&f(O.ys)){var A=T.width;R="M"+(O.x-A)+","+O.yh+"h"+2*A+"m-"+A+",0V"+O.ys,O.noYS||(R+="m-"+A+",0h"+2*A),F.size()?m&&(F=F.transition().duration(g.duration).ease(g.easing)):F=D.append("path").style("vector-effect",b?"none":"non-scaling-stroke").classed("yerror",!0),F.attr("d",R)}else F.remove();var z=D.select("path.xerror");if(k.visible&&f(O.y)&&f(O.xh)&&f(O.xs)){var B=(k.copy_ystyle?T:k).width;R="M"+O.xh+","+(O.y-B)+"v"+2*B+"m0,-"+B+"H"+O.xs,O.noXS||(R+="m0,-"+B+"v"+2*B),z.size()?m&&(z=z.transition().duration(g.duration).ease(g.easing)):z=D.append("path").style("vector-effect",b?"none":"non-scaling-stroke").classed("xerror",!0),z.attr("d",R)}else z.remove()}})}})}},62662:function(o,a,n){var l=n(39898),f=n(7901);o.exports=function(s){s.each(function(u){var d=u[0].trace,h=d.error_y||{},p=d.error_x||{},g=l.select(this);g.selectAll("path.yerror").style("stroke-width",h.thickness+"px").call(f.stroke,h.color),p.copy_ystyle&&(p=h),g.selectAll("path.xerror").style("stroke-width",p.thickness+"px").call(f.stroke,p.color)})}},77914:function(o,a,n){var l=n(41940),f=n(528).hoverlabel,s=n(1426).extendFlat;o.exports={hoverlabel:{bgcolor:s({},f.bgcolor,{arrayOk:!0}),bordercolor:s({},f.bordercolor,{arrayOk:!0}),font:l({arrayOk:!0,editType:"none"}),align:s({},f.align,{arrayOk:!0}),namelength:s({},f.namelength,{arrayOk:!0}),editType:"none"}}},30732:function(o,a,n){var l=n(71828),f=n(73972);function s(u,d,h,p){p=p||l.identity,Array.isArray(u)&&(d[0][h]=p(u))}o.exports=function(u){var d=u.calcdata,h=u._fullLayout;function p(b){return function(x){return l.coerceHoverinfo({hoverinfo:x},{_module:b._module},h)}}for(var g=0;g=0&&y.indexde[0]._length||pt<0||pt>xe[0]._length)return b.unhoverRaw(ie,le)}else ut="xpx"in le?le.xpx:de[0]._length/2,pt="ypx"in le?le.ypx:xe[0]._length/2;if(le.pointerX=ut+de[0]._offset,le.pointerY=pt+xe[0]._offset,De="xval"in le?w.flat(Se,le.xval):w.p2c(de,ut),Re="yval"in le?w.flat(Se,le.yval):w.p2c(xe,pt),!f(De[0])||!f(Re[0]))return u.warn("Fx.hover failed",le,ie),b.unhoverRaw(ie,le)}var zt=1/0;function wt(Zt,pn){for(Be=0;BeNe&&(Qe.splice(0,Ne),zt=Qe[0].distance),ye&&Ee!==0&&Qe.length===0){ze.distance=Ee,ze.index=!1;var Pn=qe._module.hoverPoints(ze,ct,bt,"closest",{hoverLayer:Oe._hoverlayer});if(Pn&&(Pn=Pn.filter(function(lr){return lr.spikeDistance<=Ee})),Pn&&Pn.length){var xn,Dn=Pn.filter(function(lr){return lr.xa.showspikes&&lr.xa.spikesnap!=="hovered data"});if(Dn.length){var tr=Dn[0];f(tr.x0)&&f(tr.y0)&&(xn=_e(tr),(!kt.vLinePoint||kt.vLinePoint.spikeDistance>xn.spikeDistance)&&(kt.vLinePoint=xn))}var ia=Pn.filter(function(lr){return lr.ya.showspikes&&lr.ya.spikesnap!=="hovered data"});if(ia.length){var fa=ia[0];f(fa.x0)&&f(fa.y0)&&(xn=_e(fa),(!kt.hLinePoint||kt.hLinePoint.spikeDistance>xn.spikeDistance)&&(kt.hLinePoint=xn))}}}}}function ve(Zt,pn,nn){for(var Kt,Cn=null,_n=1/0,Pn=0;Pn0&&Math.abs(Zt.distance)Ft-1;Vt--)gt(Qe[Vt]);Qe=St,Ze()}var ht=ie._hoverdata,yt=[],qt=te(ie),Et=ee(ie);for(Ie=0;Ie1||Qe.length>1)||ke==="closest"&&Je&&Qe.length>1,cn=m.combine(Oe.plot_bgcolor||m.background,Oe.paper_bgcolor),ln=j(Qe,{gd:ie,hovermode:ke,rotateLabels:tn,bgColor:cn,container:Oe._hoverlayer,outerContainer:Oe._paper.node(),commonLabelOpts:Oe.hoverlabel,hoverdistance:Oe.hoverdistance}),an=ln.hoverLabels;if(w.isUnifiedHover(ke)||(function(Zt,pn,nn,Kt){var Cn,_n,Pn,xn,Dn,tr,ia,fa=pn?"xa":"ya",lr=pn?"ya":"xa",ni=0,Ar=1,ur=Zt.size(),kr=new Array(ur),oa=0,On=Kt.minX,on=Kt.maxX,$n=Kt.minY,Pr=Kt.maxY,Ln=function(Tn){return Tn*nn._invScaleX},Bn=function(Tn){return Tn*nn._invScaleY};function jn(Tn){var Dr=Tn[0],Pa=Tn[Tn.length-1];if(_n=Dr.pmin-Dr.pos-Dr.dp+Dr.size,Pn=Pa.pos+Pa.dp+Pa.size-Dr.pmax,_n>.01){for(Dn=Tn.length-1;Dn>=0;Dn--)Tn[Dn].dp+=_n;Cn=!1}if(!(Pn<.01)){if(_n<-.01){for(Dn=Tn.length-1;Dn>=0;Dn--)Tn[Dn].dp-=Pn;Cn=!1}if(Cn){var Br=0;for(xn=0;xnDr.pmax&&Br++;for(xn=Tn.length-1;xn>=0&&!(Br<=0);xn--)(tr=Tn[xn]).pos>Dr.pmax-1&&(tr.del=!0,Br--);for(xn=0;xn=0;Dn--)Tn[Dn].dp-=Pn;for(xn=Tn.length-1;xn>=0&&!(Br<=0);xn--)(tr=Tn[xn]).pos+tr.dp+tr.size>Dr.pmax&&(tr.del=!0,Br--)}}}for(Zt.each(function(Tn){var Dr=Tn[fa],Pa=Tn[lr],Br=Dr._id.charAt(0)==="x",Ni=Dr.range;oa===0&&Ni&&Ni[0]>Ni[1]!==Br&&(Ar=-1);var ji=0,vi=Br?nn.width:nn.height;if(nn.hovermode==="x"||nn.hovermode==="y"){var ri,Xa,yi=E(Tn,pn),fs=Tn.anchor,rl=fs==="end"?-1:1;if(fs==="middle")Xa=(ri=Tn.crossPos+(Br?Bn(yi.y-Tn.by/2):Ln(Tn.bx/2+Tn.tx2width/2)))+(Br?Bn(Tn.by):Ln(Tn.bx));else if(Br)Xa=(ri=Tn.crossPos+Bn(R+yi.y)-Bn(Tn.by/2-R))+Bn(Tn.by);else{var ds=Ln(rl*R+yi.x),lo=ds+Ln(rl*Tn.bx);ri=Tn.crossPos+Math.min(ds,lo),Xa=Tn.crossPos+Math.max(ds,lo)}Br?$n!==void 0&&Pr!==void 0&&Math.min(Xa,Pr)-Math.max(ri,$n)>1&&(Pa.side==="left"?(ji=Pa._mainLinePosition,vi=nn.width):vi=Pa._mainLinePosition):On!==void 0&&on!==void 0&&Math.min(Xa,on)-Math.max(ri,On)>1&&(Pa.side==="top"?(ji=Pa._mainLinePosition,vi=nn.height):vi=Pa._mainLinePosition)}kr[oa++]=[{datum:Tn,traceIndex:Tn.trace.index,dp:0,pos:Tn.pos,posref:Tn.posref,size:Tn.by*(Br?P:1)/2,pmin:ji,pmax:vi}]}),kr.sort(function(Tn,Dr){return Tn[0].posref-Dr[0].posref||Ar*(Dr[0].traceIndex-Tn[0].traceIndex)});!Cn&&ni<=ur;){for(ni++,Cn=!0,xn=0;xn.01&&br.pmin===Mr.pmin&&br.pmax===Mr.pmax){for(Dn=Lr.length-1;Dn>=0;Dn--)Lr[Dn].dp+=_n;for(Un.push.apply(Un,Lr),kr.splice(xn+1,1),ia=0,Dn=Un.length-1;Dn>=0;Dn--)ia+=Un[Dn].dp;for(Pn=ia/Un.length,Dn=Un.length-1;Dn>=0;Dn--)Un[Dn].dp-=Pn;Cn=!1}else xn++}kr.forEach(jn)}for(xn=kr.length-1;xn>=0;xn--){var ja=kr[xn];for(Dn=ja.length-1;Dn>=0;Dn--){var _a=ja[Dn],la=_a.datum;la.offset=_a.dp,la.del=_a.del}}}(an,tn,Oe,ln.commonLabelBoundingBox),W(an,tn,Oe._invScaleX,Oe._invScaleY)),Te&&Te.tagName){var sn=_.getComponentMethod("annotations","hasClickToShow")(ie,yt);y(l.select(Te),sn?"pointer":"")}Te&&!pe&&function(Zt,pn,nn){if(!nn||nn.length!==Zt._hoverdata.length)return!0;for(var Kt=nn.length-1;Kt>=0;Kt--){var Cn=nn[Kt],_n=Zt._hoverdata[Kt];if(Cn.curveNumber!==_n.curveNumber||String(Cn.pointNumber)!==String(_n.pointNumber)||String(Cn.pointNumbers)!==String(_n.pointNumbers))return!0}return!1}(ie,0,ht)&&(ht&&ie.emit("plotly_unhover",{event:le,points:ht}),ie.emit("plotly_hover",{event:le,points:ie._hoverdata,xaxes:de,yaxes:xe,xvals:De,yvals:Re}))})(Q,Y,Z,X,re)})},a.loneHover=function(Q,Y){var Z=!0;Array.isArray(Q)||(Z=!1,Q=[Q]);var X=Y.gd,re=te(X),ie=ee(X),le=j(Q.map(function(Te){var Se=Te._x0||Te.x0||Te.x||0,Oe=Te._x1||Te.x1||Te.x||0,Me=Te._y0||Te.y0||Te.y||0,ce=Te._y1||Te.y1||Te.y||0,ye=Te.eventData;if(ye){var J=Math.min(Se,Oe),ne=Math.max(Se,Oe),de=Math.min(Me,ce),xe=Math.max(Me,ce),ue=Te.trace;if(_.traceIs(ue,"gl3d")){var ge=X._fullLayout[ue.scene]._scene.container,be=ge.offsetLeft,we=ge.offsetTop;J+=be,ne+=be,de+=we,xe+=we}ye.bbox={x0:J+ie,x1:ne+ie,y0:de+re,y1:xe+re},Y.inOut_bbox&&Y.inOut_bbox.push(ye.bbox)}else ye=!1;return{color:Te.color||m.defaultLine,x0:Te.x0||Te.x||0,x1:Te.x1||Te.x||0,y0:Te.y0||Te.y||0,y1:Te.y1||Te.y||0,xLabel:Te.xLabel,yLabel:Te.yLabel,zLabel:Te.zLabel,text:Te.text,name:Te.name,idealAlign:Te.idealAlign,borderColor:Te.borderColor,fontFamily:Te.fontFamily,fontSize:Te.fontSize,fontColor:Te.fontColor,nameLength:Te.nameLength,textAlign:Te.textAlign,trace:Te.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:Te.hovertemplate||!1,hovertemplateLabels:Te.hovertemplateLabels||!1,eventData:ye}}),{gd:X,hovermode:"closest",rotateLabels:!1,bgColor:Y.bgColor||m.background,container:l.select(Y.container),outerContainer:Y.outerContainer||Y.container}).hoverLabels,se=0,pe=0;return le.sort(function(Te,Se){return Te.y0-Se.y0}).each(function(Te,Se){var Oe=Te.y0-Te.by/2;Te.offset=Oe-5([\s\S]*)<\/extra>/;function j(Q,Y){var Z=Y.gd,X=Z._fullLayout,re=Y.hovermode,ie=Y.rotateLabels,le=Y.bgColor,se=Y.container,pe=Y.outerContainer,Te=Y.commonLabelOpts||{};if(Q.length===0)return[[]];var Se=Y.fontFamily||k.HOVERFONT,Oe=Y.fontSize||k.HOVERFONTSIZE,Me=Q[0],ce=Me.xa,ye=Me.ya,J=re.charAt(0),ne=J+"Label",de=Me[ne];if(de===void 0&&ce.type==="multicategory")for(var xe=0;xeX.width-jt?(ht=X.width-jt,Ft.attr("d","M"+(jt-R)+",0L"+jt+","+Et+R+"v"+Et+(2*F+qt.height)+"H-"+jt+"V"+Et+R+"H"+(jt-2*R)+"Z")):Ft.attr("d","M0,0L"+R+","+Et+R+"H"+jt+"v"+Et+(2*F+qt.height)+"H-"+jt+"V"+Et+R+"H-"+R+"Z"),Be.minX=ht-jt,Be.maxX=ht+jt,ce.side==="top"?(Be.minY=yt-(2*F+qt.height),Be.maxY=yt-F):(Be.minY=yt+F,Be.maxY=yt+(2*F+qt.height))}else{var Tt,Ot,At;ye.side==="right"?(Tt="start",Ot=1,At="",ht=ce._offset+ce._length):(Tt="end",Ot=-1,At="-",ht=ce._offset),yt=ye._offset+(Me.y0+Me.y1)/2,Vt.attr("text-anchor",Tt),Ft.attr("d","M0,0L"+At+R+","+R+"V"+(F+qt.height/2)+"h"+At+(2*F+qt.width)+"V-"+(F+qt.height/2)+"H"+At+R+"V-"+R+"Z"),Be.minY=yt-(F+qt.height/2),Be.maxY=yt+(F+qt.height/2),ye.side==="right"?(Be.minX=ht+R,Be.maxX=ht+R+(2*F+qt.width)):(Be.minX=ht-R-(2*F+qt.width),Be.maxX=ht-R);var Lt,Rt=qt.height/2,$t=ge-qt.top-Rt,Yt="clip"+X._uid+"commonlabel"+ye._id;if(ht=0?pt:It+wt=0?It:nt+wt=0?Je:ut+ve=0?ut:st+ve=0,tt.idealAlign!=="top"&&tn||!cn?tn?(Rt+=Yt/2,tt.anchor="start"):tt.anchor="middle":(Rt-=Yt/2,tt.anchor="end"),tt.crossPos=Rt;else{if(tt.pos=Rt,tn=Lt+$t/2+ln<=be,cn=Lt-$t/2-ln>=0,tt.idealAlign!=="left"&&tn||!cn)if(tn)Lt+=$t/2,tt.anchor="start";else{tt.anchor="middle";var an=ln/2,sn=Lt+an-be,Zt=Lt-an;sn>0&&(Lt-=sn),Zt<0&&(Lt+=-Zt)}else Lt-=$t/2,tt.anchor="end";tt.crossPos=Lt}Et.attr("text-anchor",tt.anchor),Tt&&jt.attr("text-anchor",tt.anchor),Ft.attr("transform",d(Lt,Rt)+(ie?h(S):""))}),{hoverLabels:mt,commonLabelBoundingBox:Be}}function N(Q,Y,Z,X,re,ie){var le="",se="";Q.nameOverride!==void 0&&(Q.name=Q.nameOverride),Q.name&&(Q.trace._meta&&(Q.name=u.templateString(Q.name,Q.trace._meta)),le=H(Q.name,Q.nameLength));var pe=Z.charAt(0),Te=pe==="x"?"y":"x";Q.zLabel!==void 0?(Q.xLabel!==void 0&&(se+="x: "+Q.xLabel+"
"),Q.yLabel!==void 0&&(se+="y: "+Q.yLabel+"
"),Q.trace.type!=="choropleth"&&Q.trace.type!=="choroplethmapbox"&&(se+=(se?"z: ":"")+Q.zLabel)):Y&&Q[pe+"Label"]===re?se=Q[Te+"Label"]||"":Q.xLabel===void 0?Q.yLabel!==void 0&&Q.trace.type!=="scattercarpet"&&(se=Q.yLabel):se=Q.yLabel===void 0?Q.xLabel:"("+Q.xLabel+", "+Q.yLabel+")",!Q.text&&Q.text!==0||Array.isArray(Q.text)||(se+=(se?"
":"")+Q.text),Q.extraText!==void 0&&(se+=(se?"
":"")+Q.extraText),ie&&se===""&&!Q.hovertemplate&&(le===""&&ie.remove(),se=le);var Se=Q.hovertemplate||!1;if(Se){var Oe=Q.hovertemplateLabels||Q;Q[pe+"Label"]!==re&&(Oe[pe+"other"]=Oe[pe+"Val"],Oe[pe+"otherLabel"]=Oe[pe+"Label"]),se=(se=u.hovertemplateString(Se,Oe,X._d3locale,Q.eventData[0]||{},Q.trace._meta)).replace($,function(Me,ce){return le=H(ce,Q.nameLength),""})}return[se,le]}function E(Q,Y){var Z=0,X=Q.offset;return Y&&(X*=-O,Z=Q.offset*D),{x:Z,y:X}}function W(Q,Y,Z,X){var re=function(le){return le*Z},ie=function(le){return le*X};Q.each(function(le){var se=l.select(this);if(le.del)return se.remove();var pe,Te,Se,Oe,Me=se.select("text.nums"),ce=le.anchor,ye=ce==="end"?-1:1,J=(Oe=(Se=(Te={start:1,end:-1,middle:0}[(pe=le).anchor])*(R+F))+Te*(pe.txwidth+F),pe.anchor==="middle"&&(Se-=pe.tx2width/2,Oe+=pe.txwidth/2+F),{alignShift:Te,textShiftX:Se,text2ShiftX:Oe}),ne=E(le,Y),de=ne.x,xe=ne.y,ue=ce==="middle";se.select("path").attr("d",ue?"M-"+re(le.bx/2+le.tx2width/2)+","+ie(xe-le.by/2)+"h"+re(le.bx)+"v"+ie(le.by)+"h-"+re(le.bx)+"Z":"M0,0L"+re(ye*R+de)+","+ie(R+xe)+"v"+ie(le.by/2-R)+"h"+re(ye*le.bx)+"v-"+ie(le.by)+"H"+re(ye*R+de)+"V"+ie(xe-R)+"Z");var ge=de+J.textShiftX,be=xe+le.ty0-le.by/2+F,we=le.textAlign||"auto";we!=="auto"&&(we==="left"&&ce!=="start"?(Me.attr("text-anchor","start"),ge=ue?-le.bx/2-le.tx2width/2+F:-le.bx-F):we==="right"&&ce!=="end"&&(Me.attr("text-anchor","end"),ge=ue?le.bx/2-le.tx2width/2-F:le.bx+F)),Me.call(g.positionText,re(ge),ie(be)),le.tx2width&&(se.select("text.name").call(g.positionText,re(J.text2ShiftX+J.alignShift*F+de),ie(xe+le.ty0-le.by/2+F)),se.select("rect").call(v.setRect,re(J.text2ShiftX+(J.alignShift-1)*le.tx2width/2+de),ie(xe-le.by/2-1),re(le.tx2width),ie(le.by+2)))})}function G(Q,Y){var Z=Q.index,X=Q.trace||{},re=Q.cd[0],ie=Q.cd[Z]||{};function le(Me){return Me||f(Me)&&Me===0}var se=Array.isArray(Z)?function(Me,ce){var ye=u.castOption(re,Z,Me);return le(ye)?ye:u.extractOption({},X,"",ce)}:function(Me,ce){return u.extractOption(ie,X,Me,ce)};function pe(Me,ce,ye){var J=se(ce,ye);le(J)&&(Q[Me]=J)}if(pe("hoverinfo","hi","hoverinfo"),pe("bgcolor","hbg","hoverlabel.bgcolor"),pe("borderColor","hbc","hoverlabel.bordercolor"),pe("fontFamily","htf","hoverlabel.font.family"),pe("fontSize","hts","hoverlabel.font.size"),pe("fontColor","htc","hoverlabel.font.color"),pe("nameLength","hnl","hoverlabel.namelength"),pe("textAlign","hta","hoverlabel.align"),Q.posref=Y==="y"||Y==="closest"&&X.orientation==="h"?Q.xa._offset+(Q.x0+Q.x1)/2:Q.ya._offset+(Q.y0+Q.y1)/2,Q.x0=u.constrain(Q.x0,0,Q.xa._length),Q.x1=u.constrain(Q.x1,0,Q.xa._length),Q.y0=u.constrain(Q.y0,0,Q.ya._length),Q.y1=u.constrain(Q.y1,0,Q.ya._length),Q.xLabelVal!==void 0&&(Q.xLabel="xLabel"in Q?Q.xLabel:x.hoverLabelText(Q.xa,Q.xLabelVal,X.xhoverformat),Q.xVal=Q.xa.c2d(Q.xLabelVal)),Q.yLabelVal!==void 0&&(Q.yLabel="yLabel"in Q?Q.yLabel:x.hoverLabelText(Q.ya,Q.yLabelVal,X.yhoverformat),Q.yVal=Q.ya.c2d(Q.yLabelVal)),Q.zLabelVal!==void 0&&Q.zLabel===void 0&&(Q.zLabel=String(Q.zLabelVal)),!(isNaN(Q.xerr)||Q.xa.type==="log"&&Q.xerr<=0)){var Te=x.tickText(Q.xa,Q.xa.c2l(Q.xerr),"hover").text;Q.xerrneg!==void 0?Q.xLabel+=" +"+Te+" / -"+x.tickText(Q.xa,Q.xa.c2l(Q.xerrneg),"hover").text:Q.xLabel+=" ± "+Te,Y==="x"&&(Q.distance+=1)}if(!(isNaN(Q.yerr)||Q.ya.type==="log"&&Q.yerr<=0)){var Se=x.tickText(Q.ya,Q.ya.c2l(Q.yerr),"hover").text;Q.yerrneg!==void 0?Q.yLabel+=" +"+Se+" / -"+x.tickText(Q.ya,Q.ya.c2l(Q.yerrneg),"hover").text:Q.yLabel+=" ± "+Se,Y==="y"&&(Q.distance+=1)}var Oe=Q.hoverinfo||Q.trace.hoverinfo;return Oe&&Oe!=="all"&&((Oe=Array.isArray(Oe)?Oe:Oe.split("+")).indexOf("x")===-1&&(Q.xLabel=void 0),Oe.indexOf("y")===-1&&(Q.yLabel=void 0),Oe.indexOf("z")===-1&&(Q.zLabel=void 0),Oe.indexOf("text")===-1&&(Q.text=void 0),Oe.indexOf("name")===-1&&(Q.name=void 0)),Q}function L(Q,Y,Z){var X,re,ie=Z.container,le=Z.fullLayout,se=le._size,pe=Z.event,Te=!!Y.hLinePoint,Se=!!Y.vLinePoint;if(ie.selectAll(".spikeline").remove(),Se||Te){var Oe=m.combine(le.plot_bgcolor,le.paper_bgcolor);if(Te){var Me,ce,ye=Y.hLinePoint;X=ye&&ye.xa,(re=ye&&ye.ya).spikesnap==="cursor"?(Me=pe.pointerX,ce=pe.pointerY):(Me=X._offset+ye.x,ce=re._offset+ye.y);var J,ne,de=s.readability(ye.color,Oe)<1.5?m.contrast(Oe):ye.color,xe=re.spikemode,ue=re.spikethickness,ge=re.spikecolor||de,be=x.getPxPosition(Q,re);if(xe.indexOf("toaxis")!==-1||xe.indexOf("across")!==-1){if(xe.indexOf("toaxis")!==-1&&(J=be,ne=Me),xe.indexOf("across")!==-1){var we=re._counterDomainMin,ke=re._counterDomainMax;re.anchor==="free"&&(we=Math.min(we,re.position),ke=Math.max(ke,re.position)),J=se.l+we*se.w,ne=se.l+ke*se.w}ie.insert("line",":first-child").attr({x1:J,x2:ne,y1:ce,y2:ce,"stroke-width":ue,stroke:ge,"stroke-dasharray":v.dashStyle(re.spikedash,ue)}).classed("spikeline",!0).classed("crisp",!0),ie.insert("line",":first-child").attr({x1:J,x2:ne,y1:ce,y2:ce,"stroke-width":ue+2,stroke:Oe}).classed("spikeline",!0).classed("crisp",!0)}xe.indexOf("marker")!==-1&&ie.insert("circle",":first-child").attr({cx:be+(re.side!=="right"?ue:-ue),cy:ce,r:ue,fill:ge}).classed("spikeline",!0)}if(Se){var Ae,Ee,De=Y.vLinePoint;X=De&&De.xa,re=De&&De.ya,X.spikesnap==="cursor"?(Ae=pe.pointerX,Ee=pe.pointerY):(Ae=X._offset+De.x,Ee=re._offset+De.y);var Re,Ie,Be=s.readability(De.color,Oe)<1.5?m.contrast(Oe):De.color,Ue=X.spikemode,qe=X.spikethickness,Ye=X.spikecolor||Be,at=x.getPxPosition(Q,X);if(Ue.indexOf("toaxis")!==-1||Ue.indexOf("across")!==-1){if(Ue.indexOf("toaxis")!==-1&&(Re=at,Ie=Ee),Ue.indexOf("across")!==-1){var lt=X._counterDomainMin,ct=X._counterDomainMax;X.anchor==="free"&&(lt=Math.min(lt,X.position),ct=Math.max(ct,X.position)),Re=se.t+(1-ct)*se.h,Ie=se.t+(1-lt)*se.h}ie.insert("line",":first-child").attr({x1:Ae,x2:Ae,y1:Re,y2:Ie,"stroke-width":qe,stroke:Ye,"stroke-dasharray":v.dashStyle(X.spikedash,qe)}).classed("spikeline",!0).classed("crisp",!0),ie.insert("line",":first-child").attr({x1:Ae,x2:Ae,y1:Re,y2:Ie,"stroke-width":qe+2,stroke:Oe}).classed("spikeline",!0).classed("crisp",!0)}Ue.indexOf("marker")!==-1&&ie.insert("circle",":first-child").attr({cx:Ae,cy:at-(X.side!=="top"?qe:-qe),r:qe,fill:Ye}).classed("spikeline",!0)}}}function q(Q,Y){return!Y}function H(Q,Y){return g.plainText(Q||"",{len:Y,allowedTags:["br","sub","sup","b","i","em"]})}function V(Q,Y,Z){var X=Y[Q+"a"],re=Y[Q+"Val"],ie=Y.cd[0];if(X.type==="category"||X.type==="multicategory")re=X._categoriesMap[re];else if(X.type==="date"){var le=Y.trace[Q+"periodalignment"];if(le){var se=Y.cd[Y.index],pe=se[Q+"Start"];pe===void 0&&(pe=se[Q]);var Te=se[Q+"End"];Te===void 0&&(Te=se[Q]);var Se=Te-pe;le==="end"?re+=Se:le==="middle"&&(re+=Se/2)}re=X.d2c(re)}return ie&&ie.t&&ie.t.posLetter===X._id&&(Z.boxmode!=="group"&&Z.violinmode!=="group"||(re+=ie.t.dPos)),re}function te(Q){return Q.offsetTop+Q.clientTop}function ee(Q){return Q.offsetLeft+Q.clientLeft}function U(Q,Y){var Z=Q._fullLayout,X=Y.getBoundingClientRect(),re=X.left,ie=X.top,le=re+X.width,se=ie+X.height,pe=u.apply3DTransform(Z._invTransform)(re,ie),Te=u.apply3DTransform(Z._invTransform)(le,se),Se=pe[0],Oe=pe[1],Me=Te[0],ce=Te[1];return{x:Se,y:Oe,width:Me-Se,height:ce-Oe,top:Math.min(Oe,ce),left:Math.min(Se,Me),right:Math.max(Se,Me),bottom:Math.max(Oe,ce)}}},38048:function(o,a,n){var l=n(71828),f=n(7901),s=n(23469).isUnifiedHover;o.exports=function(u,d,h,p){p=p||{};var g=d.legend;function y(v){p.font[v]||(p.font[v]=g?d.legend.font[v]:d.font[v])}d&&s(d.hovermode)&&(p.font||(p.font={}),y("size"),y("family"),y("color"),g?(p.bgcolor||(p.bgcolor=f.combine(d.legend.bgcolor,d.paper_bgcolor)),p.bordercolor||(p.bordercolor=d.legend.bordercolor)):p.bgcolor||(p.bgcolor=d.paper_bgcolor)),h("hoverlabel.bgcolor",p.bgcolor),h("hoverlabel.bordercolor",p.bordercolor),h("hoverlabel.namelength",p.namelength),l.coerceFont(h,"hoverlabel.font",p.font),h("hoverlabel.align",p.align)}},98212:function(o,a,n){var l=n(71828),f=n(528);o.exports=function(s,u){function d(h,p){return u[h]!==void 0?u[h]:l.coerce(s,u,f,h,p)}return d("clickmode"),d("hovermode")}},30211:function(o,a,n){var l=n(39898),f=n(71828),s=n(28569),u=n(23469),d=n(528),h=n(88335);o.exports={moduleType:"component",name:"fx",constants:n(26675),schema:{layout:d},attributes:n(77914),layoutAttributes:d,supplyLayoutGlobalDefaults:n(22774),supplyDefaults:n(54268),supplyLayoutDefaults:n(34938),calc:n(30732),getDistanceFunction:u.getDistanceFunction,getClosest:u.getClosest,inbox:u.inbox,quadrature:u.quadrature,appendArrayPointValue:u.appendArrayPointValue,castHoverOption:function(p,g,y){return f.castOption(p,g,"hoverlabel."+y)},castHoverinfo:function(p,g,y){return f.castOption(p,y,"hoverinfo",function(v){return f.coerceHoverinfo({hoverinfo:v},{_module:p._module},g)})},hover:h.hover,unhover:s.unhover,loneHover:h.loneHover,loneUnhover:function(p){var g=f.isD3Selection(p)?p:l.select(p);g.selectAll("g.hovertext").remove(),g.selectAll(".spikeline").remove()},click:n(75914)}},528:function(o,a,n){var l=n(26675),f=n(41940),s=f({editType:"none"});s.family.dflt=l.HOVERFONT,s.size.dflt=l.HOVERFONTSIZE,o.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:s,grouptitlefont:f({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},34938:function(o,a,n){var l=n(71828),f=n(528),s=n(98212),u=n(38048);o.exports=function(d,h){function p(m,b){return l.coerce(d,h,f,m,b)}s(d,h)&&(p("hoverdistance"),p("spikedistance")),p("dragmode")==="select"&&p("selectdirection");var g=h._has("mapbox"),y=h._has("geo"),v=h._basePlotModules.length;h.dragmode==="zoom"&&((g||y)&&v===1||g&&y&&v===2)&&(h.dragmode="pan"),u(d,h,p),l.coerceFont(p,"hoverlabel.grouptitlefont",h.hoverlabel.font)}},22774:function(o,a,n){var l=n(71828),f=n(38048),s=n(528);o.exports=function(u,d){f(u,d,function(h,p){return l.coerce(u,d,s,h,p)})}},83312:function(o,a,n){var l=n(71828),f=n(30587).counter,s=n(27670).Y,u=n(85555).idRegex,d=n(44467),h={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[f("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[u.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[u.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:s({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function p(v,m,b){var x=m[b+"axes"],_=Object.keys((v._splomAxes||{})[b]||{});return Array.isArray(x)?x:_.length?_:void 0}function g(v,m,b,x,_,w){var k=m(v+"gap",b),T=m("domain."+v);m(v+"side",x);for(var M=new Array(_),S=T[0],C=(T[1]-S)/(_-k),P=C*(1-k),D=0;D<_;D++){var O=S+C*D;M[w?_-1-D:D]=[O,O+P]}return M}function y(v,m,b,x,_){var w,k=new Array(b);function T(M,S){m.indexOf(S)!==-1&&x[S]===void 0?(k[M]=S,x[S]=M):k[M]=""}if(Array.isArray(v))for(w=0;w1){T||M||S||$("pattern")==="independent"&&(T=!0),P._hasSubplotGrid=T;var R,F,A=$("roworder")==="top to bottom",z=T?.2:.1,B=T?.3:.1;C&&m._splomGridDflt&&(R=m._splomGridDflt.xside,F=m._splomGridDflt.yside),P._domains={x:g("x",$,z,R,O),y:g("y",$,B,F,D,A)}}else delete m.grid}function $(j,N){return l.coerce(b,P,h,j,N)}},contentDefaults:function(v,m){var b=m.grid;if(b&&b._domains){var x,_,w,k,T,M,S,C=v.grid||{},P=m._subplots,D=b._hasSubplotGrid,O=b.rows,R=b.columns,F=b.pattern==="independent",A=b._axisMap={};if(D){var z=C.subplots||[];M=b.subplots=new Array(O);var B=1;for(x=0;x(y==="legend"?1:0));if(B===!1&&(m[y]=void 0),(B!==!1||x.uirevision)&&(w("uirevision",m.uirevision),B!==!1)){w("borderwidth");var $,j,N,E=w("orientation")==="h",W=w("yref")==="paper",G=w("xref")==="paper",L="left";if(E?($=0,l.getComponentMethod("rangeslider","isVisible")(v.xaxis)?W?(j=1.1,N="bottom"):(j=1,N="top"):W?(j=-.1,N="top"):(j=0,N="bottom")):(j=1,N="auto",G?$=1.02:($=1,L="right")),f.coerce(x,_,{x:{valType:"number",editType:"legend",min:G?-2:0,max:G?3:1,dflt:$}},"x"),f.coerce(x,_,{y:{valType:"number",editType:"legend",min:W?-2:0,max:W?3:1,dflt:j}},"y"),w("traceorder",O),p.isGrouped(m[y])&&w("tracegroupgap"),w("entrywidth"),w("entrywidthmode"),w("itemsizing"),w("itemwidth"),w("itemclick"),w("itemdoubleclick"),w("groupclick"),w("xanchor",L),w("yanchor",N),w("valign"),f.noneOrAll(x,_,["x","y"]),w("title.text")){w("title.side",E?"left":"top");var q=f.extendFlat({},k,{size:f.bigFont(k.size)});f.coerceFont(w,"title.font",q)}}}}o.exports=function(y,v,m){var b,x=m.slice(),_=v.shapes;if(_)for(b=0;b<_.length;b++){var w=_[b];if(w.showlegend){var k={_input:w._input,visible:w.visible,showlegend:w.showlegend,legend:w.legend};x.push(k)}}var T=["legend"];for(b=0;b1)}var X=q.hiddenlabels||[];if(!(V||q.showlegend&&te.length))return G.selectAll("."+H).remove(),q._topdefs.select("#"+W).remove(),s.autoMargin(N,H);var re=f.ensureSingle(G,"g",H,function(ce){V||ce.attr("pointer-events","all")}),ie=f.ensureSingleById(q._topdefs,"clipPath",W,function(ce){ce.append("rect")}),le=f.ensureSingle(re,"rect","bg",function(ce){ce.attr("shape-rendering","crispEdges")});le.call(g.stroke,L.bordercolor).call(g.fill,L.bgcolor).style("stroke-width",L.borderwidth+"px");var se,pe=f.ensureSingle(re,"g","scrollbox"),Te=L.title;L._titleWidth=0,L._titleHeight=0,Te.text?((se=f.ensureSingle(pe,"text",H+"titletext")).attr("text-anchor","start").call(p.font,Te.font).text(Te.text),z(se,pe,N,L,S)):pe.selectAll("."+H+"titletext").remove();var Se=f.ensureSingle(re,"rect","scrollbar",function(ce){ce.attr(m.scrollBarEnterAttrs).call(g.fill,m.scrollBarColor)}),Oe=pe.selectAll("g.groups").data(te);Oe.enter().append("g").attr("class","groups"),Oe.exit().remove();var Me=Oe.selectAll("g.traces").data(f.identity);Me.enter().append("g").attr("class","traces"),Me.exit().remove(),Me.style("opacity",function(ce){var ye=ce[0].trace;return u.traceIs(ye,"pie-like")?X.indexOf(ce[0].label)!==-1?.5:1:ye.visible==="legendonly"?.5:1}).each(function(){l.select(this).call(R,N,L)}).call(T,N,L).each(function(){V||l.select(this).call(A,N,H)}),f.syncOrAsync([s.previousPromises,function(){return function(ce,ye,J,ne){var de=ce._fullLayout,xe=j(ne);ne||(ne=de[xe]);var ue=de._size,ge=M.isVertical(ne),be=M.isGrouped(ne),we=ne.entrywidthmode==="fraction",ke=ne.borderwidth,Ae=2*ke,Ee=m.itemGap,De=ne.itemwidth+2*Ee,Re=2*(ke+Ee),Ie=$(ne),Be=ne.y<0||ne.y===0&&Ie==="top",Ue=ne.y>1||ne.y===1&&Ie==="bottom",qe=ne.tracegroupgap,Ye={};ne._maxHeight=Math.max(Be||Ue?de.height/2:ue.h,30);var at=0;ne._width=0,ne._height=0;var lt=function(Ge){var Ke=0,nt=0,st=Ge.title.side;return st&&(st.indexOf("left")!==-1&&(Ke=Ge._titleWidth),st.indexOf("top")!==-1&&(nt=Ge._titleHeight)),[Ke,nt]}(ne);if(ge)J.each(function(Ge){var Ke=Ge[0].height;p.setTranslate(this,ke+lt[0],ke+lt[1]+ne._height+Ke/2+Ee),ne._height+=Ke,ne._width=Math.max(ne._width,Ge[0].width)}),at=De+ne._width,ne._width+=Ee+De+Ae,ne._height+=Re,be&&(ye.each(function(Ge,Ke){p.setTranslate(this,0,Ke*ne.tracegroupgap)}),ne._height+=(ne._lgroupsLength-1)*ne.tracegroupgap);else{var ct=B(ne),bt=ne.x<0||ne.x===0&&ct==="right",ze=ne.x>1||ne.x===1&&ct==="left",Ne=Ue||Be,Qe=de.width/2;ne._maxWidth=Math.max(bt?Ne&&ct==="left"?ue.l+ue.w:Qe:ze?Ne&&ct==="right"?ue.r+ue.w:Qe:ue.w,2*De);var it=0,kt=0;J.each(function(Ge){var Ke=D(Ge,ne,De);it=Math.max(it,Ke),kt+=Ke}),at=null;var Je=0;if(be){var ut=0,pt=0,It=0;ye.each(function(){var Ge=0,Ke=0;l.select(this).selectAll("g.traces").each(function(st){var mt=D(st,ne,De),tt=st[0].height;p.setTranslate(this,lt[0],lt[1]+ke+Ee+tt/2+Ke),Ke+=tt,Ge=Math.max(Ge,mt),Ye[st[0].trace.legendgroup]=Ge});var nt=Ge+Ee;pt>0&&nt+ke+pt>ne._maxWidth?(Je=Math.max(Je,pt),pt=0,It+=ut+qe,ut=Ke):ut=Math.max(ut,Ke),p.setTranslate(this,pt,It),pt+=nt}),ne._width=Math.max(Je,pt)+ke,ne._height=It+ut+Re}else{var Mt=J.size(),zt=kt+Ae+(Mt-1)*Ee=ne._maxWidth&&(Je=Math.max(Je,Ve),ve=0,_e+=wt,ne._height+=wt,wt=0),p.setTranslate(this,lt[0]+ke+ve,lt[1]+ke+_e+Ke/2+Ee),Ve=ve+nt+Ee,ve+=st,wt=Math.max(wt,Ke)}),zt?(ne._width=ve+Ae,ne._height=wt+Re):(ne._width=Math.max(Je,Ve)+Ae,ne._height+=wt+Re)}}ne._width=Math.ceil(Math.max(ne._width+lt[0],ne._titleWidth+2*(ke+m.titlePad))),ne._height=Math.ceil(Math.max(ne._height+lt[1],ne._titleHeight+2*(ke+m.itemGap))),ne._effHeight=Math.min(ne._height,ne._maxHeight);var We=ce._context.edits,Ze=We.legendText||We.legendPosition;J.each(function(Ge){var Ke=l.select(this).select("."+xe+"toggle"),nt=Ge[0].height,st=Ge[0].trace.legendgroup,mt=D(Ge,ne,De);be&&st!==""&&(mt=Ye[st]);var tt=Ze?De:at||mt;ge||we||(tt+=Ee/2),p.setRect(Ke,0,-nt/2,tt,nt)})}(N,Oe,Me,L)},function(){var ce,ye,J,ne,de=q._size,xe=L.borderwidth,ue=L.xref==="paper",ge=L.yref==="paper";if(Te.text&&function(Ne,Qe,it){if(Qe.title.side==="top center"||Qe.title.side==="top right"){var kt=Qe.title.font.size*x,Je=0,ut=Ne.node(),pt=p.bBox(ut).width;Qe.title.side==="top center"?Je=.5*(Qe._width-2*it-2*m.titlePad-pt):Qe.title.side==="top right"&&(Je=Qe._width-2*it-2*m.titlePad-pt),y.positionText(Ne,it+m.titlePad+Je,it+kt)}}(se,L,xe),!V){var be,we;be=ue?de.l+de.w*L.x-_[B(L)]*L._width:q.width*L.x-_[B(L)]*L._width,we=ge?de.t+de.h*(1-L.y)-_[$(L)]*L._effHeight:q.height*(1-L.y)-_[$(L)]*L._effHeight;var ke=function(Ne,Qe,it,kt){var Je=Ne._fullLayout,ut=Je[Qe],pt=B(ut),It=$(ut),Mt=ut.xref==="paper",zt=ut.yref==="paper";Ne._fullLayout._reservedMargin[Qe]={};var wt=ut.y<.5?"b":"t",ve=ut.x<.5?"l":"r",_e={r:Je.width-it,l:it+ut._width,b:Je.height-kt,t:kt+ut._effHeight};if(Mt&&zt)return s.autoMargin(Ne,Qe,{x:ut.x,y:ut.y,l:ut._width*_[pt],r:ut._width*w[pt],b:ut._effHeight*w[It],t:ut._effHeight*_[It]});Mt?Ne._fullLayout._reservedMargin[Qe][wt]=_e[wt]:zt||ut.orientation==="v"?Ne._fullLayout._reservedMargin[Qe][ve]=_e[ve]:Ne._fullLayout._reservedMargin[Qe][wt]=_e[wt]}(N,H,be,we);if(ke)return;if(q.margin.autoexpand){var Ae=be,Ee=we;be=ue?f.constrain(be,0,q.width-L._width):Ae,we=ge?f.constrain(we,0,q.height-L._effHeight):Ee,be!==Ae&&f.log("Constrain "+H+".x to make legend fit inside graph"),we!==Ee&&f.log("Constrain "+H+".y to make legend fit inside graph")}p.setTranslate(re,be,we)}if(Se.on(".drag",null),re.on("wheel",null),V||L._height<=L._maxHeight||N._context.staticPlot){var De=L._effHeight;V&&(De=L._height),le.attr({width:L._width-xe,height:De-xe,x:xe/2,y:xe/2}),p.setTranslate(pe,0,0),ie.select("rect").attr({width:L._width-2*xe,height:De-2*xe,x:xe,y:xe}),p.setClipUrl(pe,W,N),p.setRect(Se,0,0,0,0),delete L._scrollY}else{var Re,Ie,Be,Ue=Math.max(m.scrollBarMinHeight,L._effHeight*L._effHeight/L._height),qe=L._effHeight-Ue-2*m.scrollBarMargin,Ye=L._height-L._effHeight,at=qe/Ye,lt=Math.min(L._scrollY||0,Ye);le.attr({width:L._width-2*xe+m.scrollBarWidth+m.scrollBarMargin,height:L._effHeight-xe,x:xe/2,y:xe/2}),ie.select("rect").attr({width:L._width-2*xe+m.scrollBarWidth+m.scrollBarMargin,height:L._effHeight-2*xe,x:xe,y:xe+lt}),p.setClipUrl(pe,W,N),ze(lt,Ue,at),re.on("wheel",function(){ze(lt=f.constrain(L._scrollY+l.event.deltaY/qe*Ye,0,Ye),Ue,at),lt!==0&<!==Ye&&l.event.preventDefault()});var ct=l.behavior.drag().on("dragstart",function(){var Ne=l.event.sourceEvent;Re=Ne.type==="touchstart"?Ne.changedTouches[0].clientY:Ne.clientY,Be=lt}).on("drag",function(){var Ne=l.event.sourceEvent;Ne.buttons===2||Ne.ctrlKey||(Ie=Ne.type==="touchmove"?Ne.changedTouches[0].clientY:Ne.clientY,lt=function(Qe,it,kt){var Je=(kt-it)/at+Qe;return f.constrain(Je,0,Ye)}(Be,Re,Ie),ze(lt,Ue,at))});Se.call(ct);var bt=l.behavior.drag().on("dragstart",function(){var Ne=l.event.sourceEvent;Ne.type==="touchstart"&&(Re=Ne.changedTouches[0].clientY,Be=lt)}).on("drag",function(){var Ne=l.event.sourceEvent;Ne.type==="touchmove"&&(Ie=Ne.changedTouches[0].clientY,lt=function(Qe,it,kt){var Je=(it-kt)/at+Qe;return f.constrain(Je,0,Ye)}(Be,Re,Ie),ze(lt,Ue,at))});pe.call(bt)}function ze(Ne,Qe,it){L._scrollY=N._fullLayout[H]._scrollY=Ne,p.setTranslate(pe,0,-Ne),p.setRect(Se,L._width,m.scrollBarMargin+Ne*it,m.scrollBarWidth,Qe),ie.select("rect").attr("y",xe+Ne)}N._context.edits.legendPosition&&(re.classed("cursor-move",!0),h.init({element:re.node(),gd:N,prepFn:function(){var Ne=p.getTranslate(re);J=Ne.x,ne=Ne.y},moveFn:function(Ne,Qe){var it=J+Ne,kt=ne+Qe;p.setTranslate(re,it,kt),ce=h.align(it,L._width,de.l,de.l+de.w,L.xanchor),ye=h.align(kt+L._height,-L._height,de.t+de.h,de.t,L.yanchor)},doneFn:function(){if(ce!==void 0&&ye!==void 0){var Ne={};Ne[H+".x"]=ce,Ne[H+".y"]=ye,u.call("_guiRelayout",N,Ne)}},clickFn:function(Ne,Qe){var it=G.selectAll("g.traces").filter(function(){var kt=this.getBoundingClientRect();return Qe.clientX>=kt.left&&Qe.clientX<=kt.right&&Qe.clientY>=kt.top&&Qe.clientY<=kt.bottom});it.size()>0&&O(N,re,it,Ne,Qe)}}))}],N)}}function D(N,E,W){var G=N[0],L=G.width,q=E.entrywidthmode,H=G.trace.legendwidth||E.entrywidth;return q==="fraction"?E._maxWidth*H:W+(H||L)}function O(N,E,W,G,L){var q=W.data()[0][0].trace,H={event:L,node:W.node(),curveNumber:q.index,expandedIndex:q._expandedIndex,data:N.data,layout:N.layout,frames:N._transitionData._frames,config:N._context,fullData:N._fullData,fullLayout:N._fullLayout};q._group&&(H.group=q._group),u.traceIs(q,"pie-like")&&(H.label=W.datum()[0].label);var V=d.triggerHandler(N,"plotly_legendclick",H);if(G===1){if(V===!1)return;E._clickTimeout=setTimeout(function(){N._fullLayout&&v(W,N,G)},N._context.doubleClickDelay)}else G===2&&(E._clickTimeout&&clearTimeout(E._clickTimeout),N._legendMouseDownTime=0,d.triggerHandler(N,"plotly_legenddoubleclick",H)!==!1&&V!==!1&&v(W,N,G))}function R(N,E,W){var G,L,q=j(W),H=N.data()[0][0],V=H.trace,te=u.traceIs(V,"pie-like"),ee=!W._inHover&&E._context.edits.legendText&&!te,U=W._maxNameLength;H.groupTitle?(G=H.groupTitle.text,L=H.groupTitle.font):(L=W.font,W.entries?G=H.text:(G=te?H.label:V.name,V._meta&&(G=f.templateString(G,V._meta))));var Q=f.ensureSingle(N,"text",q+"text");Q.attr("text-anchor","start").call(p.font,L).text(ee?F(G,U):G);var Y=W.itemwidth+2*m.itemGap;y.positionText(Q,Y,0),ee?Q.call(y.makeEditable,{gd:E,text:G}).call(z,N,E,W).on("edit",function(Z){this.text(F(Z,U)).call(z,N,E,W);var X=H.trace._fullInput||{},re={};if(u.hasTransform(X,"groupby")){var ie=u.getTransformIndices(X,"groupby"),le=ie[ie.length-1],se=f.keyedContainer(X,"transforms["+le+"].styles","target","value.name");se.set(H.trace._group,Z),re=se.constructUpdate()}else re.name=Z;return X._isShape?u.call("_guiRelayout",E,"shapes["+V.index+"].name",re.name):u.call("_guiRestyle",E,re,V.index)}):z(Q,N,E,W)}function F(N,E){var W=Math.max(4,E);if(N&&N.trim().length>=W/2)return N;for(var G=W-(N=N||"").length;G>0;G--)N+=" ";return N}function A(N,E,W){var G,L=E._context.doubleClickDelay,q=1,H=f.ensureSingle(N,"rect",W+"toggle",function(V){E._context.staticPlot||V.style("cursor","pointer").attr("pointer-events","all"),V.call(g.fill,"rgba(0,0,0,0)")});E._context.staticPlot||(H.on("mousedown",function(){(G=new Date().getTime())-E._legendMouseDownTimeL&&(q=Math.max(q-1,1)),O(E,V,N,q,l.event)}}))}function z(N,E,W,G,L){G._inHover&&N.attr("data-notex",!0),y.convertToTspans(N,W,function(){(function(q,H,V,te){var ee=q.data()[0][0];if(V._inHover||!ee||ee.trace.showlegend){var U=q.select("g[class*=math-group]"),Q=U.node(),Y=j(V);V||(V=H._fullLayout[Y]);var Z,X,re=V.borderwidth,ie=(te===S?V.title.font:ee.groupTitle?ee.groupTitle.font:V.font).size*x;if(Q){var le=p.bBox(Q);Z=le.height,X=le.width,te===S?p.setTranslate(U,re,re+.75*Z):p.setTranslate(U,0,.25*Z)}else{var se="."+Y+(te===S?"title":"")+"text",pe=q.select(se),Te=y.lineCount(pe),Se=pe.node();if(Z=ie*Te,X=Se?p.bBox(Se).width:0,te===S)V.title.side==="left"&&(X+=2*m.itemGap),y.positionText(pe,re+m.titlePad,re+ie);else{var Oe=2*m.itemGap+V.itemwidth;ee.groupTitle&&(Oe=m.itemGap,X-=V.itemwidth),y.positionText(pe,Oe,-ie*((Te-1)/2-.3))}}te===S?(V._titleWidth=X,V._titleHeight=Z):(ee.lineHeight=ie,ee.height=Math.max(Z,16)+3,ee.width=X)}else q.remove()})(E,W,G,L)})}function B(N){return f.isRightAnchor(N)?"right":f.isCenterAnchor(N)?"center":"left"}function $(N){return f.isBottomAnchor(N)?"bottom":f.isMiddleAnchor(N)?"middle":"top"}function j(N){return N._id||"legend"}o.exports=function(N,E){if(E)P(N,E);else{var W=N._fullLayout,G=W._legends;W._infolayer.selectAll('[class^="legend"]').each(function(){var H=l.select(this),V=H.attr("class").split(" ")[0];V.match(C)&&G.indexOf(V)===-1&&H.remove()});for(var L=0;LB&&(z=B)}F[h][0]._groupMinRank=z,F[h][0]._preGroupSort=h}var $=function(G,L){return G.trace.legendrank-L.trace.legendrank||G._preSort-L._preSort};for(F.forEach(function(G,L){G[0]._preGroupSort=L}),F.sort(function(G,L){return G[0]._groupMinRank-L[0]._groupMinRank||G[0]._preGroupSort-L[0]._preGroupSort}),h=0;hT?T:w}o.exports=function(w,k,T){var M=k._fullLayout;T||(T=M.legend);var S=T.itemsizing==="constant",C=T.itemwidth,P=(C+2*m.itemGap)/2,D=u(P,0),O=function(A,z,B,$){var j;if(A+1)j=A;else{if(!(z&&z.width>0))return 0;j=z.width}return S?$:Math.min(j,B)};function R(A,z,B){var $=A[0].trace,j=$.marker||{},N=j.line||{},E=B?$.visible&&$.type===B:f.traceIs($,"bar"),W=l.select(z).select("g.legendpoints").selectAll("path.legend"+B).data(E?[A]:[]);W.enter().append("path").classed("legend"+B,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),W.exit().remove(),W.each(function(G){var L=l.select(this),q=G[0],H=O(q.mlw,j.line,5,2);L.style("stroke-width",H+"px");var V=q.mcc;if(!T._inHover&&"mc"in q){var te=p(j),ee=te.mid;ee===void 0&&(ee=(te.max+te.min)/2),V=d.tryColorscale(j,"")(ee)}var U=V||q.mc||j.color,Q=j.pattern,Y=Q&&d.getPatternAttr(Q.shape,0,"");if(Y){var Z=d.getPatternAttr(Q.bgcolor,0,null),X=d.getPatternAttr(Q.fgcolor,0,null),re=Q.fgopacity,ie=_(Q.size,8,10),le=_(Q.solidity,.5,1),se="legend-"+$.uid;L.call(d.pattern,"legend",k,se,Y,ie,le,V,Q.fillmode,Z,X,re)}else L.call(h.fill,U);H&&h.stroke(L,q.mlc||N.color)})}function F(A,z,B){var $=A[0],j=$.trace,N=B?j.visible&&j.type===B:f.traceIs(j,B),E=l.select(z).select("g.legendpoints").selectAll("path.legend"+B).data(N?[A]:[]);if(E.enter().append("path").classed("legend"+B,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),E.exit().remove(),E.size()){var W=j.marker||{},G=O(v(W.line.width,$.pts),W.line,5,2),L="pieLike",q=s.minExtend(j,{marker:{line:{width:G}}},L),H=s.minExtend($,{trace:q},L);y(E,H,q,k)}}w.each(function(A){var z=l.select(this),B=s.ensureSingle(z,"g","layers");B.style("opacity",A[0].trace.opacity);var $=T.valign,j=A[0].lineHeight,N=A[0].height;if($!=="middle"&&j&&N){var E={top:1,bottom:-1}[$]*(.5*(j-N+3));B.attr("transform",u(0,E))}else B.attr("transform",null);B.selectAll("g.legendfill").data([A]).enter().append("g").classed("legendfill",!0),B.selectAll("g.legendlines").data([A]).enter().append("g").classed("legendlines",!0);var W=B.selectAll("g.legendsymbols").data([A]);W.enter().append("g").classed("legendsymbols",!0),W.selectAll("g.legendpoints").data([A]).enter().append("g").classed("legendpoints",!0)}).each(function(A){var z,B=A[0].trace,$=[];if(B.visible)switch(B.type){case"histogram2d":case"heatmap":$=[["M-15,-2V4H15V-2Z"]],z=!0;break;case"choropleth":case"choroplethmapbox":$=[["M-6,-6V6H6V-6Z"]],z=!0;break;case"densitymapbox":$=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],z="radial";break;case"cone":$=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],z=!1;break;case"streamtube":$=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],z=!1;break;case"surface":$=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],z=!0;break;case"mesh3d":$=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!1;break;case"volume":$=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!0;break;case"isosurface":$=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],z=!1}var j=l.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data($);j.enter().append("path").classed("legend3dandfriends",!0).attr("transform",D).style("stroke-miterlimit",1),j.exit().remove(),j.each(function(N,E){var W,G=l.select(this),L=p(B),q=L.colorscale,H=L.reversescale;if(q){if(!z){var V=q.length;W=E===0?q[H?V-1:0][1]:E===1?q[H?0:V-1][1]:q[Math.floor((V-1)/2)][1]}}else{var te=B.vertexcolor||B.facecolor||B.color;W=s.isArrayOrTypedArray(te)?te[E]||te[0]:te}G.attr("d",N[0]),W?G.call(h.fill,W):G.call(function(ee){if(ee.size()){var U="legendfill-"+B.uid;d.gradient(ee,k,U,b(H,z==="radial"),q,"fill")}})})}).each(function(A){var z=A[0].trace,B=z.type==="waterfall";if(A[0]._distinct&&B){var $=A[0].trace[A[0].dir].marker;return A[0].mc=$.color,A[0].mlw=$.line.width,A[0].mlc=$.line.color,R(A,this,"waterfall")}var j=[];z.visible&&B&&(j=A[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var N=l.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(j);N.enter().append("path").classed("legendwaterfall",!0).attr("transform",D).style("stroke-miterlimit",1),N.exit().remove(),N.each(function(E){var W=l.select(this),G=z[E[0]].marker,L=O(void 0,G.line,5,2);W.attr("d",E[1]).style("stroke-width",L+"px").call(h.fill,G.color),L&&W.call(h.stroke,G.line.color)})}).each(function(A){R(A,this,"funnel")}).each(function(A){R(A,this)}).each(function(A){var z=A[0].trace,B=l.select(this).select("g.legendpoints").selectAll("path.legendbox").data(z.visible&&f.traceIs(z,"box-violin")?[A]:[]);B.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),B.exit().remove(),B.each(function(){var $=l.select(this);if(z.boxpoints!=="all"&&z.points!=="all"||h.opacity(z.fillcolor)!==0||h.opacity((z.line||{}).color)!==0){var j=O(void 0,z.line,5,2);$.style("stroke-width",j+"px").call(h.fill,z.fillcolor),j&&h.stroke($,z.line.color)}else{var N=s.minExtend(z,{marker:{size:S?12:s.constrain(z.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});B.call(d.pointStyle,N,k)}})}).each(function(A){F(A,this,"funnelarea")}).each(function(A){F(A,this,"pie")}).each(function(A){var z,B,$=x(A),j=$.showFill,N=$.showLine,E=$.showGradientLine,W=$.showGradientFill,G=$.anyFill,L=$.anyLine,q=A[0],H=q.trace,V=p(H),te=V.colorscale,ee=V.reversescale,U=g.hasMarkers(H)||!G?"M5,0":L?"M5,-2":"M5,-3",Q=l.select(this),Y=Q.select(".legendfill").selectAll("path").data(j||W?[A]:[]);if(Y.enter().append("path").classed("js-fill",!0),Y.exit().remove(),Y.attr("d",U+"h"+C+"v6h-"+C+"z").call(function(re){if(re.size())if(j)d.fillGroupStyle(re,k);else{var ie="legendfill-"+H.uid;d.gradient(re,k,ie,b(ee),te,"fill")}}),N||E){var Z=O(void 0,H.line,10,5);B=s.minExtend(H,{line:{width:Z}}),z=[s.minExtend(q,{trace:B})]}var X=Q.select(".legendlines").selectAll("path").data(N||E?[z]:[]);X.enter().append("path").classed("js-line",!0),X.exit().remove(),X.attr("d",U+(E?"l"+C+",0.0001":"h"+C)).call(N?d.lineGroupStyle:function(re){if(re.size()){var ie="legendline-"+H.uid;d.lineGroupStyle(re),d.gradient(re,k,ie,b(ee),te,"stroke")}})}).each(function(A){var z,B,$=x(A),j=$.anyFill,N=$.anyLine,E=$.showLine,W=$.showMarker,G=A[0],L=G.trace,q=!W&&!N&&!j&&g.hasText(L);function H(X,re,ie,le){var se=s.nestedProperty(L,X).get(),pe=s.isArrayOrTypedArray(se)&&re?re(se):se;if(S&&pe&&le!==void 0&&(pe=le),ie){if(peie[1])return ie[1]}return pe}function V(X){return G._distinct&&G.index&&X[G.index]?X[G.index]:X[0]}if(W||q||E){var te={},ee={};if(W){te.mc=H("marker.color",V),te.mx=H("marker.symbol",V),te.mo=H("marker.opacity",s.mean,[.2,1]),te.mlc=H("marker.line.color",V),te.mlw=H("marker.line.width",s.mean,[0,5],2),ee.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var U=H("marker.size",s.mean,[2,16],12);te.ms=U,ee.marker.size=U}E&&(ee.line={width:H("line.width",V,[0,10],5)}),q&&(te.tx="Aa",te.tp=H("textposition",V),te.ts=10,te.tc=H("textfont.color",V),te.tf=H("textfont.family",V)),z=[s.minExtend(G,te)],(B=s.minExtend(L,ee)).selectedpoints=null,B.texttemplate=null}var Q=l.select(this).select("g.legendpoints"),Y=Q.selectAll("path.scatterpts").data(W?z:[]);Y.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",D),Y.exit().remove(),Y.call(d.pointStyle,B,k),W&&(z[0].mrc=3);var Z=Q.selectAll("g.pointtext").data(q?z:[]);Z.enter().append("g").classed("pointtext",!0).append("text").attr("transform",D),Z.exit().remove(),Z.selectAll("text").call(d.textPointStyle,B,k)}).each(function(A){var z=A[0].trace,B=l.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(z.visible&&z.type==="candlestick"?[A,A]:[]);B.enter().append("path").classed("legendcandle",!0).attr("d",function($,j){return j?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",D).style("stroke-miterlimit",1),B.exit().remove(),B.each(function($,j){var N=l.select(this),E=z[j?"increasing":"decreasing"],W=O(void 0,E.line,5,2);N.style("stroke-width",W+"px").call(h.fill,E.fillcolor),W&&h.stroke(N,E.line.color)})}).each(function(A){var z=A[0].trace,B=l.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(z.visible&&z.type==="ohlc"?[A,A]:[]);B.enter().append("path").classed("legendohlc",!0).attr("d",function($,j){return j?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",D).style("stroke-miterlimit",1),B.exit().remove(),B.each(function($,j){var N=l.select(this),E=z[j?"increasing":"decreasing"],W=O(void 0,E.line,5,2);N.style("fill","none").call(d.dashLine,E.line.dash,W),W&&h.stroke(N,E.line.color)})})}},42068:function(o,a,n){n(93348),o.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},26023:function(o,a,n){var l=n(73972),f=n(74875),s=n(41675),u=n(24255),d=n(34031).eraseActiveShape,h=n(71828),p=h._,g=o.exports={};function y(M,S){var C,P,D=S.currentTarget,O=D.getAttribute("data-attr"),R=D.getAttribute("data-val")||!0,F=M._fullLayout,A={},z=s.list(M,null,!0),B=F._cartesianSpikesEnabled;if(O==="zoom"){var $,j=R==="in"?.5:2,N=(1+j)/2,E=(1-j)/2;for(P=0;P1?(U=["toggleHover"],Q=["resetViews"]):A?(ee=["zoomInGeo","zoomOutGeo"],U=["hoverClosestGeo"],Q=["resetGeo"]):F?(U=["hoverClosest3d"],Q=["resetCameraDefault3d","resetCameraLastSave3d"]):N?(ee=["zoomInMapbox","zoomOutMapbox"],U=["toggleHover"],Q=["resetViewMapbox"]):$?U=["hoverClosestGl2d"]:z?U=["hoverClosestPie"]:G?(U=["hoverClosestCartesian","hoverCompareCartesian"],Q=["resetViewSankey"]):U=["toggleHover"],R&&(U=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(se){for(var pe=0;pe0)){var k=function(M,S,C){for(var P=C.filter(function(F){return S[F].anchor===M._id}),D=0,O=0;O=Se.max)pe=re[Te+1];else if(se=Se.pmax)pe=re[Te+1];else if(seTe._length||ge+Ie<0)return;Ee=ue+Ie,De=ge+Ie;break;case Me:if(Re="col-resize",ue+Ie>Te._length)return;Ee=ue+Ie,De=ge;break;case ce:if(Re="col-resize",ge+Ie<0)return;Ee=ue,De=ge+Ie;break;default:Re="ew-resize",Ee=xe,De=xe+Ie}if(De=0;$--){var j=S.append("path").attr(P).style("opacity",$?.1:D).call(u.stroke,R).call(u.fill,O).call(d.dashLine,$?"solid":A,$?4+F:F);if(b(j,_,T),z){var N=h(_.layout,"selections",T);j.style({cursor:"move"});var E={element:j.node(),plotinfo:M,gd:_,editHelpers:N,isActiveSelection:!0},W=l(C,_);f(W,j,E)}else j.style("pointer-events",$?"all":"none");B[$]=j}var G=B[0];B[1].node().addEventListener("click",function(){return function(L,q){if(v(L)){var H=+q.node().getAttribute("data-index");if(H>=0){if(H===L._fullLayout._activeSelectionIndex)return void x(L);L._fullLayout._activeSelectionIndex=H,L._fullLayout._deactivateSelection=x,y(L)}}}(_,G)})}(_._fullLayout._selectionLayer)}function b(_,w,k){var T=k.xref+k.yref;d.setClipUrl(_,"clip"+w._fullLayout._uid+T,w)}function x(_){v(_)&&_._fullLayout._activeSelectionIndex>=0&&(s(_),delete _._fullLayout._activeSelectionIndex,y(_))}o.exports={draw:y,drawOne:m,activateLastSelection:function(_){if(v(_)){var w=_._fullLayout.selections.length-1;_._fullLayout._activeSelectionIndex=w,_._fullLayout._deactivateSelection=x,y(_)}}}},53777:function(o,a,n){var l=n(79952).P,f=n(1426).extendFlat;o.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:f({},l,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},90849:function(o){o.exports=function(a,n,l){l("newselection.mode"),l("newselection.line.width")&&(l("newselection.line.color"),l("newselection.line.dash")),l("activeselection.fillcolor"),l("activeselection.opacity")}},35855:function(o,a,n){var l=n(64505).selectMode,f=n(51873).clearOutline,s=n(60165),u=s.readPaths,d=s.writePaths,h=s.fixDatesForPaths;o.exports=function(p,g){if(p.length){var y=p[0][0];if(y){var v=y.getAttribute("d"),m=g.gd,b=m._fullLayout.newselection,x=g.plotinfo,_=x.xaxis,w=x.yaxis,k=g.isActiveSelection,T=g.dragmode,M=(m.layout||{}).selections||[];if(!l(T)&&k!==void 0){var S=m._fullLayout._activeSelectionIndex;if(S-1,kt=[];if(function(Mt){return Mt&&Array.isArray(Mt)&&Mt[0].hoverOnBox!==!0}(Qe)){Z(ke,Ae,Ie);var Je=function(Mt,zt){var wt,ve,_e=Mt[0],Ve=-1,We=[];for(ve=0;ve0?function(Mt,zt){var wt,ve,_e,Ve=[];for(_e=0;_e0&&Ve.push(wt);if(Ve.length===1&&Ve[0]===zt.searchInfo&&(ve=zt.searchInfo.cd[0].trace).selectedpoints.length===zt.pointNumbers.length){for(_e=0;_e1||(ve+=zt.selectedpoints.length)>1))return!1;return ve===1}(Ue)&&(ct=se(Je))){for(Be&&Be.remove(),Ne=0;Ne=0})(Re)&&Re._fullLayout._deactivateShape(Re),function(lt){return lt._fullLayout._activeSelectionIndex>=0}(Re)&&Re._fullLayout._deactivateSelection(Re);var Ie=Re._fullLayout._zoomlayer,Be=m(Ee),Ue=x(Ee);if(Be||Ue){var qe,Ye,at=Ie.selectAll(".select-outline-"+De.id);at&&Re._fullLayout._outlining&&(Be&&(qe=P(at,ke)),qe&&s.call("_guiRelayout",Re,{shapes:qe}),Ue&&!te(ke)&&(Ye=D(at,ke)),Ye&&(Re._fullLayout._noEmitSelectedAtStart=!0,s.call("_guiRelayout",Re,{selections:Ye}).then(function(){Ae&&O(Re)})),Re._fullLayout._outlining=!1)}De.selection={},De.selection.selectionDefs=ke.selectionDefs=[],De.selection.mergedPolygons=ke.mergedPolygons=[]}function re(ke){return ke._id}function ie(ke,Ae,Ee,De){if(!ke.calcdata)return[];var Re,Ie,Be,Ue=[],qe=Ae.map(re),Ye=Ee.map(re);for(Be=0;Be0?De[0]:Ee;return!!Ae.selectedpoints&&Ae.selectedpoints.indexOf(Re)>-1}function pe(ke,Ae,Ee){var De,Re;for(De=0;De-1&&Ae;if(!Ie&&Ae){var Ot=ne(ke,!0);if(Ot.length){var At=Ot[0].xref,Lt=Ot[0].yref;if(At&&Lt){var Rt=ue(Ot);ge([B(ke,At,"x"),B(ke,Lt,"y")])(jt,Rt)}}ke._fullLayout._noEmitSelectedAtStart?ke._fullLayout._noEmitSelectedAtStart=!1:Tt&&be(ke,jt),ct._reselect=!1}if(!Ie&&ct._deselect){var $t=ct._deselect;(function(Yt,Xt,Bt){for(var Wt=0;Wt=0)bt._fullLayout._deactivateShape(bt);else if(!Ye){var Rt=ze.clickmode;z.done(Et).then(function(){if(z.clear(Et),At===2){for(Nt.remove(),_e=0;_e-1&&ee(Lt,bt,De.xaxes,De.yaxes,De.subplot,De,Nt),Rt==="event"&&be(bt,void 0);h.click(bt,Lt,kt.id)}).catch(R.error)}},De.doneFn=function(){yt.remove(),z.done(Et).then(function(){z.clear(Et),!Ne&&ve&&De.selectionDefs&&(ve.subtract=St,De.selectionDefs.push(ve),De.mergedPolygons.length=0,[].push.apply(De.mergedPolygons,wt)),(Ne||Ye)&&X(De,Ne),De.doneFnCompleted&&De.doneFnCompleted(jt),at&&be(bt,We)}).catch(R.error)}},clearOutline:T,clearSelectionsCache:X,selectOnClick:ee}},89827:function(o,a,n){var l=n(50215),f=n(41940),s=n(82196).line,u=n(79952).P,d=n(1426).extendFlat,h=n(44467).templatedArray,p=(n(24695),n(9012)),g=n(5386).R,y=n(37281);o.exports=h("shape",{visible:d({},p.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:d({},p.legend,{editType:"calc+arraydraw"}),legendgroup:d({},p.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:d({},p.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:f({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:d({},p.legendrank,{editType:"calc+arraydraw"}),legendwidth:d({},p.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:d({},l.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},yref:d({},l.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:d({},s.color,{editType:"arraydraw"}),width:d({},s.width,{editType:"calc+arraydraw"}),dash:d({},u,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:g({},{keys:Object.keys(y)}),font:f({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})},5627:function(o,a,n){var l=n(71828),f=n(89298),s=n(21459),u=n(30477);function d(y){return p(y.line.width,y.xsizemode,y.x0,y.x1,y.path,!1)}function h(y){return p(y.line.width,y.ysizemode,y.y0,y.y1,y.path,!0)}function p(y,v,m,b,x,_){var w=y/2,k=_;if(v==="pixel"){var T=x?u.extractPathCoords(x,_?s.paramIsY:s.paramIsX):[m,b],M=l.aggNums(Math.max,null,T),S=l.aggNums(Math.min,null,T),C=S<0?Math.abs(S)+w:w,P=M>0?M+w:w;return{ppad:w,ppadplus:k?C:P,ppadminus:k?P:C}}return{ppad:w}}function g(y,v,m,b,x){var _=y.type==="category"||y.type==="multicategory"?y.r2c:y.d2c;if(v!==void 0)return[_(v),_(m)];if(b){var w,k,T,M,S=1/0,C=-1/0,P=b.match(s.segmentRE);for(y.type==="date"&&(_=u.decodeDate(_)),w=0;wC&&(C=M)));return C>=S?[S,C]:void 0}}o.exports=function(y){var v=y._fullLayout,m=l.filterVisible(v.shapes);if(m.length&&y._fullData.length)for(var b=0;b=re?ie-se:se-ie,-180/Math.PI*Math.atan2(pe,Te)}(C,D,P,O):0),A.call(function(re){return re.call(u.font,F).attr({}),s.convertToTspans(re,v),re});var Q=function(re,ie,le,se,pe,Te,Se){var Oe,Me,ce,ye,J=pe.label.textposition,ne=pe.label.textangle,de=pe.label.padding,xe=pe.type,ue=Math.PI/180*Te,ge=Math.sin(ue),be=Math.cos(ue),we=pe.label.xanchor,ke=pe.label.yanchor;if(xe==="line"){J==="start"?(Oe=re,Me=ie):J==="end"?(Oe=le,Me=se):(Oe=(re+le)/2,Me=(ie+se)/2),we==="auto"&&(we=J==="start"?ne==="auto"?le>re?"left":lere?"right":lere?"right":lere?"left":le1&&(Oe.length!==2||Oe[1][0]!=="Z")&&(G===0&&(Oe[0][0]="M"),R[W]=Oe,$(),j())}}()}}function re(pe,Te){(function(Se,Oe){if(R.length)for(var Me=0;MeMe?(J=Se,ue="y0",ne=Me,ge="y1"):(J=Me,ue="y1",ne=Se,ge="y0"),ut(wt),Mt(se,ie),function(ve,_e,Ve){var We=_e.xref,Ze=_e.yref,Ge=u.getFromId(Ve,We),Ke=u.getFromId(Ve,Ze),nt="";We==="paper"||Ge.autorange||(nt+=We),Ze==="paper"||Ke.autorange||(nt+=Ze),v.setClipUrl(ve,nt?"clip"+Ve._fullLayout._uid+nt:null,Ve)}(re,ie,X),Je.moveFn=Ae==="move"?pt:It,Je.altKey=wt.altKey)},doneFn:function(){M(X)||(x(re),zt(se),P(re,X,ie),f.call("_guiRelayout",X,pe.getUpdateObj()))},clickFn:function(){M(X)||zt(se)}};function ut(wt){if(M(X))Ae=null;else if(Be)Ae=wt.target.tagName==="path"?"move":wt.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var ve=Je.element.getBoundingClientRect(),_e=ve.right-ve.left,Ve=ve.bottom-ve.top,We=wt.clientX-ve.left,Ze=wt.clientY-ve.top,Ge=!Ue&&_e>Ee&&Ve>De&&!wt.shiftKey?b.getCursor(We/_e,1-Ze/Ve):"move";x(re,Ge),Ae=Ge.split("-")[0]}}function pt(wt,ve){if(ie.type==="path"){var _e=function(Ze){return Ze},Ve=_e,We=_e;Re?qe("xanchor",ie.xanchor=Qe(ce+wt)):(Ve=function(Ze){return Qe(ze(Ze)+wt)},at&&at.type==="date"&&(Ve=w.encodeDate(Ve))),Ie?qe("yanchor",ie.yanchor=it(ye+ve)):(We=function(Ze){return it(Ne(Ze)+ve)},ct&&ct.type==="date"&&(We=w.encodeDate(We))),qe("path",ie.path=D(ke,Ve,We))}else Re?qe("xanchor",ie.xanchor=Qe(ce+wt)):(qe("x0",ie.x0=Qe(Te+wt)),qe("x1",ie.x1=Qe(Oe+wt))),Ie?qe("yanchor",ie.yanchor=it(ye+ve)):(qe("y0",ie.y0=it(Se+ve)),qe("y1",ie.y1=it(Me+ve)));re.attr("d",k(X,ie)),Mt(se,ie),p(X,le,ie,Ye)}function It(wt,ve){if(Ue){var _e=function(ht){return ht},Ve=_e,We=_e;Re?qe("xanchor",ie.xanchor=Qe(ce+wt)):(Ve=function(ht){return Qe(ze(ht)+wt)},at&&at.type==="date"&&(Ve=w.encodeDate(Ve))),Ie?qe("yanchor",ie.yanchor=it(ye+ve)):(We=function(ht){return it(Ne(ht)+ve)},ct&&ct.type==="date"&&(We=w.encodeDate(We))),qe("path",ie.path=D(ke,Ve,We))}else if(Be){if(Ae==="resize-over-start-point"){var Ze=Te+wt,Ge=Ie?Se-ve:Se+ve;qe("x0",ie.x0=Re?Ze:Qe(Ze)),qe("y0",ie.y0=Ie?Ge:it(Ge))}else if(Ae==="resize-over-end-point"){var Ke=Oe+wt,nt=Ie?Me-ve:Me+ve;qe("x1",ie.x1=Re?Ke:Qe(Ke)),qe("y1",ie.y1=Ie?nt:it(nt))}}else{var st=function(ht){return Ae.indexOf(ht)!==-1},mt=st("n"),tt=st("s"),Ft=st("w"),Vt=st("e"),St=mt?J+ve:J,Nt=tt?ne+ve:ne,Dt=Ft?de+wt:de,gt=Vt?xe+wt:xe;Ie&&(mt&&(St=J-ve),tt&&(Nt=ne-ve)),(!Ie&&Nt-St>De||Ie&&St-Nt>De)&&(qe(ue,ie[ue]=Ie?St:it(St)),qe(ge,ie[ge]=Ie?Nt:it(Nt))),gt-Dt>Ee&&(qe(be,ie[be]=Re?Dt:Qe(Dt)),qe(we,ie[we]=Re?gt:Qe(gt)))}re.attr("d",k(X,ie)),Mt(se,ie),p(X,le,ie,Ye)}function Mt(wt,ve){(Re||Ie)&&function(){var _e=ve.type!=="path",Ve=wt.selectAll(".visual-cue").data([0]);Ve.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var We=ze(Re?ve.xanchor:s.midRange(_e?[ve.x0,ve.x1]:w.extractPathCoords(ve.path,_.paramIsX))),Ze=Ne(Ie?ve.yanchor:s.midRange(_e?[ve.y0,ve.y1]:w.extractPathCoords(ve.path,_.paramIsY)));if(We=w.roundPositionForSharpStrokeRendering(We,1),Ze=w.roundPositionForSharpStrokeRendering(Ze,1),Re&&Ie){var Ge="M"+(We-1-1)+","+(Ze-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ve.attr("d",Ge)}else if(Re){var Ke="M"+(We-1-1)+","+(Ze-9-1)+"v18 h2 v-18 Z";Ve.attr("d",Ke)}else{var nt="M"+(We-9-1)+","+(Ze-1-1)+"h18 v2 h-18 Z";Ve.attr("d",nt)}}()}function zt(wt){wt.selectAll(".visual-cue").remove()}b.init(Je),kt.node().onmousemove=ut}(R,Q,z,F,j,ee):z.editable===!0&&Q.style("pointer-events",V||y.opacity(G)*W<=.5?"stroke":"all");Q.node().addEventListener("click",function(){return function(X,re){if(S(X)){var ie=+re.node().getAttribute("data-index");if(ie>=0){if(ie===X._fullLayout._activeShapeIndex)return void O(X);X._fullLayout._activeShapeIndex=ie,X._fullLayout._deactivateShape=O,T(X)}}}(R,Q)})}z._input&&z.visible===!0&&(z.layer!=="below"?$(R._fullLayout._shapeUpperLayer):z.xref==="paper"||z.yref==="paper"?$(R._fullLayout._shapeLowerLayer):B._hadPlotinfo?$((B.mainplotinfo||B).shapelayer):$(R._fullLayout._shapeLowerLayer))}function P(R,F,A){var z=(A.xref+A.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");v.setClipUrl(R,z?"clip"+F._fullLayout._uid+z:null,F)}function D(R,F,A){return R.replace(_.segmentRE,function(z){var B=0,$=z.charAt(0),j=_.paramIsX[$],N=_.paramIsY[$],E=_.numParams[$];return $+z.substr(1).replace(_.paramRE,function(W){return B>=E||(j[B]?W=F(W):N[B]&&(W=A(W)),B++),W})})}function O(R){S(R)&&R._fullLayout._activeShapeIndex>=0&&(g(R),delete R._fullLayout._activeShapeIndex,T(R))}o.exports={draw:T,drawOne:C,eraseActiveShape:function(R){if(S(R)){g(R);var F=R._fullLayout._activeShapeIndex,A=(R.layout||{}).shapes||[];if(F0&&CU&&(Y="X"),Y});return H>U&&(Q=Q.replace(/[\s,]*X.*/,""),f.log("Ignoring extra params in segment "+q)),V+Q})}(d,p,y);if(d.xsizemode==="pixel"){var C=p(d.xanchor);v=C+d.x0,m=C+d.x1}else v=p(d.x0),m=p(d.x1);if(d.ysizemode==="pixel"){var P=y(d.yanchor);b=P-d.y0,x=P-d.y1}else b=y(d.y0),x=y(d.y1);if(_==="line")return"M"+v+","+b+"L"+m+","+x;if(_==="rect")return"M"+v+","+b+"H"+m+"V"+x+"H"+v+"Z";var D=(v+m)/2,O=(b+x)/2,R=Math.abs(D-v),F=Math.abs(O-b),A="A"+R+","+F,z=D+R+","+O;return"M"+z+A+" 0 1,1 "+D+","+(O-F)+A+" 0 0,1 "+z+"Z"}},89853:function(o,a,n){var l=n(34031);o.exports={moduleType:"component",name:"shapes",layoutAttributes:n(89827),supplyLayoutDefaults:n(84726),supplyDrawNewShapeDefaults:n(45547),includeBasePlot:n(76325)("shapes"),calcAutorange:n(5627),draw:l.draw,drawOne:l.drawOne}},37281:function(o){function a(s,u){return u?u.d2l(s):s}function n(s,u){return u?u.l2d(s):s}function l(s,u){return a(s.x1,u)-a(s.x0,u)}function f(s,u,d){return a(s.y1,d)-a(s.y0,d)}o.exports={x0:function(s){return s.x0},x1:function(s){return s.x1},y0:function(s){return s.y0},y1:function(s){return s.y1},slope:function(s,u,d){return s.type!=="line"?void 0:f(s,0,d)/l(s,u)},dx:l,dy:f,width:function(s,u){return Math.abs(l(s,u))},height:function(s,u,d){return Math.abs(f(s,0,d))},length:function(s,u,d){return s.type!=="line"?void 0:Math.sqrt(Math.pow(l(s,u),2)+Math.pow(f(s,0,d),2))},xcenter:function(s,u){return n((a(s.x1,u)+a(s.x0,u))/2,u)},ycenter:function(s,u,d){return n((a(s.y1,d)+a(s.y0,d))/2,d)}}},75067:function(o,a,n){var l=n(41940),f=n(35025),s=n(1426).extendDeepAll,u=n(30962).overrideAll,d=n(85594),h=n(44467).templatedArray,p=n(98292),g=h("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});o.exports=u(h("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:g,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:s(f({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:d.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:l({})},font:l({}),activebgcolor:{valType:"color",dflt:p.gripBgActiveColor},bgcolor:{valType:"color",dflt:p.railBgColor},bordercolor:{valType:"color",dflt:p.railBorderColor},borderwidth:{valType:"number",min:0,dflt:p.railBorderWidth},ticklen:{valType:"number",min:0,dflt:p.tickLength},tickcolor:{valType:"color",dflt:p.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:p.minorTickLength}}),"arraydraw","from-root")},98292:function(o){o.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},12343:function(o,a,n){var l=n(71828),f=n(85501),s=n(75067),u=n(98292).name,d=s.steps;function h(g,y,v){function m(k,T){return l.coerce(g,y,s,k,T)}for(var b=f(g,y,{name:"steps",handleItemDefaults:p}),x=0,_=0;_0&&(H=H.transition().duration(N.transition.duration).ease(N.transition.easing)),H.attr("transform",h(q-.5*y.gripWidth,N._dims.currentValueTotalHeight))}}function A(j,N){var E=j._dims;return E.inputAreaStart+y.stepInset+(E.inputAreaLength-2*y.stepInset)*Math.min(1,Math.max(0,N))}function z(j,N){var E=j._dims;return Math.min(1,Math.max(0,(N-y.stepInset-E.inputAreaStart)/(E.inputAreaLength-2*y.stepInset-2*E.inputAreaStart)))}function B(j,N,E){var W=E._dims,G=d.ensureSingle(j,"rect",y.railTouchRectClass,function(L){L.call(O,N,j,E).style("pointer-events","all")});G.attr({width:W.inputAreaLength,height:Math.max(W.inputAreaWidth,y.tickOffset+E.ticklen+W.labelHeight)}).call(s.fill,E.bgcolor).attr("opacity",0),u.setTranslate(G,0,W.currentValueTotalHeight)}function $(j,N){var E=N._dims,W=E.inputAreaLength-2*y.railInset,G=d.ensureSingle(j,"rect",y.railRectClass);G.attr({width:W,height:y.railWidth,rx:y.railRadius,ry:y.railRadius,"shape-rendering":"crispEdges"}).call(s.stroke,N.bordercolor).call(s.fill,N.bgcolor).style("stroke-width",N.borderwidth+"px"),u.setTranslate(G,y.railInset,.5*(E.inputAreaWidth-y.railWidth)+E.currentValueTotalHeight)}o.exports=function(j){var N=j._context.staticPlot,E=j._fullLayout,W=function(te,ee){for(var U=te[y.name],Q=[],Y=0;Y0?[0]:[]);function L(te){te._commandObserver&&(te._commandObserver.remove(),delete te._commandObserver),f.autoMargin(j,_(te))}if(G.enter().append("g").classed(y.containerClassName,!0).style("cursor",N?null:"ew-resize"),G.exit().each(function(){l.select(this).selectAll("g."+y.groupClassName).each(L)}).remove(),W.length!==0){var q=G.selectAll("g."+y.groupClassName).data(W,w);q.enter().append("g").classed(y.groupClassName,!0),q.exit().each(L).remove();for(var H=0;H0||Oe<0){var J={left:[-Me,0],right:[Me,0],top:[0,-Me],bottom:[0,Me]}[P.side];Q.attr("transform",h(J[0],J[1]))}}}return H.call(V),G&&($?H.on(".opacity",null):(A=0,z=!0,H.text(S).on("mouseover.opacity",function(){l.select(this).transition().duration(v.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){l.select(this).transition().duration(v.HIDE_PLACEHOLDER).style("opacity",0)})),H.call(y.makeEditable,{gd:x}).on("edit",function(U){C!==void 0?u.call("_guiRestyle",x,M,U,C):u.call("_guiRelayout",x,M,U)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(V)}).on("input",function(U){this.text(U||" ").call(y.positionText,D.x,D.y)})),H.classed("js-placeholder",z),R}}},7163:function(o,a,n){var l=n(41940),f=n(22399),s=n(1426).extendFlat,u=n(30962).overrideAll,d=n(35025),h=n(44467).templatedArray,p=h("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});o.exports=u(h("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:p,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:s(d({editType:"arraydraw"}),{}),font:l({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:f.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},75909:function(o){o.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},64897:function(o,a,n){var l=n(71828),f=n(85501),s=n(7163),u=n(75909).name,d=s.buttons;function h(g,y,v){function m(b,x){return l.coerce(g,y,s,b,x)}m("visible",f(g,y,{name:"buttons",handleItemDefaults:p}).length>0)&&(m("active"),m("direction"),m("type"),m("showactive"),m("x"),m("y"),l.noneOrAll(g,y,["x","y"]),m("xanchor"),m("yanchor"),m("pad.t"),m("pad.r"),m("pad.b"),m("pad.l"),l.coerceFont(m,"font",v.font),m("bgcolor",v.paper_bgcolor),m("bordercolor"),m("borderwidth"))}function p(g,y){function v(m,b){return l.coerce(g,y,d,m,b)}v("visible",g.method==="skip"||Array.isArray(g.args))&&(v("method"),v("args"),v("args2"),v("label"),v("execute"))}o.exports=function(g,y){f(g,y,{name:u,handleItemDefaults:h})}},13689:function(o,a,n){var l=n(39898),f=n(74875),s=n(7901),u=n(91424),d=n(71828),h=n(63893),p=n(44467).arrayEditor,g=n(18783).LINE_SPACING,y=n(75909),v=n(25849);function m(A){return A._index}function b(A,z){return+A.attr(y.menuIndexAttrName)===z._index}function x(A,z,B,$,j,N,E,W){z.active=E,p(A.layout,y.name,z).applyUpdate("active",E),z.type==="buttons"?w(A,$,null,null,z):z.type==="dropdown"&&(j.attr(y.menuIndexAttrName,"-1"),_(A,$,j,N,z),W||w(A,$,j,N,z))}function _(A,z,B,$,j){var N=d.ensureSingle(z,"g",y.headerClassName,function(H){H.style("pointer-events","all")}),E=j._dims,W=j.active,G=j.buttons[W]||y.blankHeaderOpts,L={y:j.pad.t,yPad:0,x:j.pad.l,xPad:0,index:0},q={width:E.headerWidth,height:E.headerHeight};N.call(k,j,G,A).call(R,j,L,q),d.ensureSingle(z,"text",y.headerArrowClassName,function(H){H.attr("text-anchor","end").call(u.font,j.font).text(y.arrowSymbol[j.direction])}).attr({x:E.headerWidth-y.arrowOffsetX+j.pad.l,y:E.headerHeight/2+y.textOffsetY+j.pad.t}),N.on("click",function(){B.call(F,String(b(B,j)?-1:j._index)),w(A,z,B,$,j)}),N.on("mouseover",function(){N.call(C)}),N.on("mouseout",function(){N.call(P,j)}),u.setTranslate(z,E.lx,E.ly)}function w(A,z,B,$,j){B||(B=z).attr("pointer-events","all");var N=function(Q){return+Q.attr(y.menuIndexAttrName)==-1}(B)&&j.type!=="buttons"?[]:j.buttons,E=j.type==="dropdown"?y.dropdownButtonClassName:y.buttonClassName,W=B.selectAll("g."+E).data(d.filterVisible(N)),G=W.enter().append("g").classed(E,!0),L=W.exit();j.type==="dropdown"?(G.attr("opacity","0").transition().attr("opacity","1"),L.transition().attr("opacity","0").remove()):L.remove();var q=0,H=0,V=j._dims,te=["up","down"].indexOf(j.direction)!==-1;j.type==="dropdown"&&(te?H=V.headerHeight+y.gapButtonHeader:q=V.headerWidth+y.gapButtonHeader),j.type==="dropdown"&&j.direction==="up"&&(H=-y.gapButtonHeader+y.gapButton-V.openHeight),j.type==="dropdown"&&j.direction==="left"&&(q=-y.gapButtonHeader+y.gapButton-V.openWidth);var ee={x:V.lx+q+j.pad.l,y:V.ly+H+j.pad.t,yPad:y.gapButton,xPad:y.gapButton,index:0},U={l:ee.x+j.borderwidth,t:ee.y+j.borderwidth};W.each(function(Q,Y){var Z=l.select(this);Z.call(k,j,Q,A).call(R,j,ee),Z.on("click",function(){l.event.defaultPrevented||(Q.execute&&(Q.args2&&j.active===Y?(x(A,j,0,z,B,$,-1),f.executeAPICommand(A,Q.method,Q.args2)):(x(A,j,0,z,B,$,Y),f.executeAPICommand(A,Q.method,Q.args))),A.emit("plotly_buttonclicked",{menu:j,button:Q,active:j.active}))}),Z.on("mouseover",function(){Z.call(C)}),Z.on("mouseout",function(){Z.call(P,j),W.call(S,j)})}),W.call(S,j),te?(U.w=Math.max(V.openWidth,V.headerWidth),U.h=ee.y-U.t):(U.w=ee.x-U.l,U.h=Math.max(V.openHeight,V.headerHeight)),U.direction=j.direction,$&&(W.size()?function(Q,Y,Z,X,re,ie){var le,se,pe,Te=re.direction,Se=Te==="up"||Te==="down",Oe=re._dims,Me=re.active;if(Se)for(se=0,pe=0;pe0?[0]:[]);if(j.enter().append("g").classed(y.containerClassName,!0).style("cursor","pointer"),j.exit().each(function(){l.select(this).selectAll("g."+y.headerGroupClassName).each($)}).remove(),B.length!==0){var N=j.selectAll("g."+y.headerGroupClassName).data(B,m);N.enter().append("g").classed(y.headerGroupClassName,!0);for(var E=d.ensureSingle(j,"g",y.dropdownButtonGroupClassName,function(H){H.style("pointer-events","all")}),W=0;WR,z=d.barLength+2*d.barPad,B=d.barWidth+2*d.barPad,$=k,j=M+S;j+B>m&&(j=m-B);var N=this.container.selectAll("rect.scrollbar-horizontal").data(A?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-horizontal",!0).call(f.fill,d.barColor),A?(this.hbar=N.attr({rx:d.barRadius,ry:d.barRadius,x:$,y:j,width:z,height:B}),this._hbarXMin=$+z/2,this._hbarTranslateMax=R-z):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var E=S>F,W=d.barWidth+2*d.barPad,G=d.barLength+2*d.barPad,L=k+T,q=M;L+W>v&&(L=v-W);var H=this.container.selectAll("rect.scrollbar-vertical").data(E?[0]:[]);H.exit().on(".drag",null).remove(),H.enter().append("rect").classed("scrollbar-vertical",!0).call(f.fill,d.barColor),E?(this.vbar=H.attr({rx:d.barRadius,ry:d.barRadius,x:L,y:q,width:W,height:G}),this._vbarYMin=q+G/2,this._vbarTranslateMax=F-G):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var V=this.id,te=b-.5,ee=E?x+W+.5:x+.5,U=_-.5,Q=A?w+B+.5:w+.5,Y=y._topdefs.selectAll("#"+V).data(A||E?[0]:[]);if(Y.exit().remove(),Y.enter().append("clipPath").attr("id",V).append("rect"),A||E?(this._clipRect=Y.select("rect").attr({x:Math.floor(te),y:Math.floor(U),width:Math.ceil(ee)-Math.floor(te),height:Math.ceil(Q)-Math.floor(U)}),this.container.call(s.setClipUrl,V,this.gd),this.bg.attr({x:k,y:M,width:T,height:S})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(s.setClipUrl,null),delete this._clipRect),A||E){var Z=l.behavior.drag().on("dragstart",function(){l.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Z);var X=l.behavior.drag().on("dragstart",function(){l.event.sourceEvent.preventDefault(),l.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));A&&this.hbar.on(".drag",null).call(X),E&&this.vbar.on(".drag",null).call(X)}this.setTranslate(p,g)},d.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(s.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},d.prototype._onBoxDrag=function(){var h=this.translateX,p=this.translateY;this.hbar&&(h-=l.event.dx),this.vbar&&(p-=l.event.dy),this.setTranslate(h,p)},d.prototype._onBoxWheel=function(){var h=this.translateX,p=this.translateY;this.hbar&&(h+=l.event.deltaY),this.vbar&&(p+=l.event.deltaY),this.setTranslate(h,p)},d.prototype._onBarDrag=function(){var h=this.translateX,p=this.translateY;if(this.hbar){var g=h+this._hbarXMin,y=g+this._hbarTranslateMax;h=(u.constrain(l.event.x,g,y)-g)/(y-g)*(this.position.w-this._box.w)}if(this.vbar){var v=p+this._vbarYMin,m=v+this._vbarTranslateMax;p=(u.constrain(l.event.y,v,m)-v)/(m-v)*(this.position.h-this._box.h)}this.setTranslate(h,p)},d.prototype.setTranslate=function(h,p){var g=this.position.w-this._box.w,y=this.position.h-this._box.h;if(h=u.constrain(h||0,0,g),p=u.constrain(p||0,0,y),this.translateX=h,this.translateY=p,this.container.call(s.setTranslate,this._box.l-this.position.l-h,this._box.t-this.position.t-p),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+h-.5),y:Math.floor(this.position.t+p-.5)}),this.hbar){var v=h/g;this.hbar.call(s.setTranslate,h+v*this._hbarTranslateMax,p)}if(this.vbar){var m=p/y;this.vbar.call(s.setTranslate,h,p+m*this._vbarTranslateMax)}}},18783:function(o){o.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},24695:function(o){o.exports={axisRefDescription:function(a,n,l){return["If set to a",a,"axis id (e.g. *"+a+"* or","*"+a+"2*), the `"+a+"` position refers to a",a,"coordinate. If set to *paper*, the `"+a+"`","position refers to the distance from the",n,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",n,"("+l+"). If set to a",a,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",n,"of the domain of that axis: e.g.,","*"+a+"2 domain* refers to the domain of the second",a," axis and a",a,"position of 0.5 refers to the","point between the",n,"and the",l,"of the domain of the","second",a,"axis."].join(" ")}}},31562:function(o){o.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},74808:function(o){o.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},37822:function(o){o.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},50606:function(o){o.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},32396:function(o,a){a.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],a.STYLE=a.CSS_DECLARATIONS.map(function(n){return n.join(": ")+"; "}).join("")},77922:function(o,a){a.xmlns="http://www.w3.org/2000/xmlns/",a.svg="http://www.w3.org/2000/svg",a.xlink="http://www.w3.org/1999/xlink",a.svgAttrs={xmlns:a.svg,"xmlns:xlink":a.xlink}},8729:function(o,a,n){a.version=n(11506).version,n(7417),n(98847);for(var l=n(73972),f=a.register=l.register,s=n(10641),u=Object.keys(s),d=0;d",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},99863:function(o,a){a.isLeftAnchor=function(n){return n.xanchor==="left"||n.xanchor==="auto"&&n.x<=.3333333333333333},a.isCenterAnchor=function(n){return n.xanchor==="center"||n.xanchor==="auto"&&n.x>.3333333333333333&&n.x<.6666666666666666},a.isRightAnchor=function(n){return n.xanchor==="right"||n.xanchor==="auto"&&n.x>=.6666666666666666},a.isTopAnchor=function(n){return n.yanchor==="top"||n.yanchor==="auto"&&n.y>=.6666666666666666},a.isMiddleAnchor=function(n){return n.yanchor==="middle"||n.yanchor==="auto"&&n.y>.3333333333333333&&n.y<.6666666666666666},a.isBottomAnchor=function(n){return n.yanchor==="bottom"||n.yanchor==="auto"&&n.y<=.3333333333333333}},26348:function(o,a,n){var l=n(64872),f=l.mod,s=l.modHalf,u=Math.PI,d=2*u;function h(v){return Math.abs(v[1]-v[0])>d-1e-14}function p(v,m){return s(m-v,d)}function g(v,m){if(h(m))return!0;var b,x;m[0](x=f(x,d))&&(x+=d);var _=f(v,d),w=_+d;return _>=b&&_<=x||w>=b&&w<=x}function y(v,m,b,x,_,w,k){_=_||0,w=w||0;var T,M,S,C,P,D=h([b,x]);function O(z,B){return[z*Math.cos(B)+_,w-z*Math.sin(B)]}D?(T=0,M=u,S=d):b=_&&v<=w);var _,w},pathArc:function(v,m,b,x,_){return y(null,v,m,b,x,_,0)},pathSector:function(v,m,b,x,_){return y(null,v,m,b,x,_,1)},pathAnnulus:function(v,m,b,x,_,w){return y(v,m,b,x,_,w,1)}}},73627:function(o,a){var n=Array.isArray,l=ArrayBuffer,f=DataView;function s(h){return l.isView(h)&&!(h instanceof f)}function u(h){return n(h)||s(h)}function d(h,p,g){if(u(h)){if(u(h[0])){for(var y=g,v=0;vw.max?x.set(_):x.set(+b)}},integer:{coerceFunction:function(b,x,_,w){b%1||!l(b)||w.min!==void 0&&bw.max?x.set(_):x.set(+b)}},string:{coerceFunction:function(b,x,_,w){if(typeof b!="string"){var k=typeof b=="number";w.strict!==!0&&k?x.set(String(b)):x.set(_)}else w.noBlank&&!b?x.set(_):x.set(b)}},color:{coerceFunction:function(b,x,_){f(b).isValid()?x.set(b):x.set(_)}},colorlist:{coerceFunction:function(b,x,_){Array.isArray(b)&&b.length&&b.every(function(w){return f(w).isValid()})?x.set(b):x.set(_)}},colorscale:{coerceFunction:function(b,x,_){x.set(u.get(b,_))}},angle:{coerceFunction:function(b,x,_){b==="auto"?x.set("auto"):l(b)?x.set(y(+b,360)):x.set(_)}},subplotid:{coerceFunction:function(b,x,_,w){var k=w.regex||g(_);typeof b=="string"&&k.test(b)?x.set(b):x.set(_)},validateFunction:function(b,x){var _=x.dflt;return b===_||typeof b=="string"&&!!g(_).test(b)}},flaglist:{coerceFunction:function(b,x,_,w){if((w.extras||[]).indexOf(b)===-1)if(typeof b=="string"){for(var k=b.split("+"),T=0;T=l&&N<=f?N:g}if(typeof N!="string"&&typeof N!="number")return g;N=String(N);var q=S(E),H=N.charAt(0);!q||H!=="G"&&H!=="g"||(N=N.substr(1),E="");var V=q&&E.substr(0,7)==="chinese",te=N.match(V?T:k);if(!te)return g;var ee=te[1],U=te[3]||"1",Q=Number(te[5]||1),Y=Number(te[7]||0),Z=Number(te[9]||0),X=Number(te[11]||0);if(q){if(ee.length===2)return g;var re;ee=Number(ee);try{var ie=_.getComponentMethod("calendars","getCal")(E);if(V){var le=U.charAt(U.length-1)==="i";U=parseInt(U,10),re=ie.newDate(ee,ie.toMonthIndex(ee,U,le),Q)}else re=ie.newDate(ee,Number(U),Q)}catch{return g}return re?(re.toJD()-x)*y+Y*v+Z*m+X*b:g}ee=ee.length===2?(Number(ee)+2e3-M)%100+M:Number(ee),U-=1;var se=new Date(Date.UTC(2e3,U,Q,Y,Z));return se.setUTCFullYear(ee),se.getUTCMonth()!==U||se.getUTCDate()!==Q?g:se.getTime()+X*b},l=a.MIN_MS=a.dateTime2ms("-9999"),f=a.MAX_MS=a.dateTime2ms("9999-12-31 23:59:59.9999"),a.isDateTime=function(N,E){return a.dateTime2ms(N,E)!==g};var P=90*y,D=3*v,O=5*m;function R(N,E,W,G,L){if((E||W||G||L)&&(N+=" "+C(E,2)+":"+C(W,2),(G||L)&&(N+=":"+C(G,2),L))){for(var q=4;L%10==0;)q-=1,L/=10;N+="."+C(L,q)}return N}a.ms2DateTime=function(N,E,W){if(typeof N!="number"||!(N>=l&&N<=f))return g;E||(E=0);var G,L,q,H,V,te,ee=Math.floor(10*h(N+.05,1)),U=Math.round(N-ee/10);if(S(W)){var Q=Math.floor(U/y)+x,Y=Math.floor(h(N,y));try{G=_.getComponentMethod("calendars","getCal")(W).fromJD(Q).formatDate("yyyy-mm-dd")}catch{G=w("G%Y-%m-%d")(new Date(U))}if(G.charAt(0)==="-")for(;G.length<11;)G="-0"+G.substr(1);else for(;G.length<10;)G="0"+G;L=E=l+y&&N<=f-y))return g;var E=Math.floor(10*h(N+.05,1)),W=new Date(Math.round(N-E/10));return R(s("%Y-%m-%d")(W),W.getHours(),W.getMinutes(),W.getSeconds(),10*W.getUTCMilliseconds()+E)},a.cleanDate=function(N,E,W){if(N===g)return E;if(a.isJSDate(N)||typeof N=="number"&&isFinite(N)){if(S(W))return d.error("JS Dates and milliseconds are incompatible with world calendars",N),E;if(!(N=a.ms2DateTimeLocal(+N))&&E!==void 0)return E}else if(!a.isDateTime(N,W))return d.error("unrecognized date",N),E;return N};var F=/%\d?f/g,A=/%h/g,z={1:"1",2:"1",3:"2",4:"2"};function B(N,E,W,G){N=N.replace(F,function(q){var H=Math.min(+q.charAt(1)||6,6);return(E/1e3%1+2).toFixed(H).substr(2).replace(/0+$/,"")||"0"});var L=new Date(Math.floor(E+.05));if(N=N.replace(A,function(){return z[W("%q")(L)]}),S(G))try{N=_.getComponentMethod("calendars","worldCalFmt")(N,E,G)}catch{return"Invalid"}return W(N)(L)}var $=[59,59.9,59.99,59.999,59.9999];a.formatDate=function(N,E,W,G,L,q){if(L=S(L)&&L,!E)if(W==="y")E=q.year;else if(W==="m")E=q.month;else{if(W!=="d")return function(H,V){var te=h(H+.05,y),ee=C(Math.floor(te/v),2)+":"+C(h(Math.floor(te/m),60),2);if(V!=="M"){u(V)||(V=0);var U=(100+Math.min(h(H/b,60),$[V])).toFixed(V).substr(1);V>0&&(U=U.replace(/0+$/,"").replace(/[\.]$/,"")),ee+=":"+U}return ee}(N,W)+` `+B(q.dayMonthYear,N,G,L);E=q.dayMonth+` -`+q.year}return B(E,N,G,L)};var j=3*y;a.incrementMonth=function(N,E,W){W=S(W)&&W;var G=h(N,y);if(N=Math.round(N-G),W)try{var L=Math.round(N/y)+x,q=_.getComponentMethod("calendars","getCal")(W),H=q.fromJD(L);return E%12?q.add(H,E,"m"):q.add(H,E/12,"y"),(H.toJD()-x)*y+G}catch{d.error("invalid ms "+N+" in calendar "+W)}var V=new Date(N+j);return V.setUTCMonth(V.getUTCMonth()+E)+G-j},a.findExactDates=function(N,E){for(var W,G,L=0,q=0,H=0,V=0,te=S(E)&&_.getComponentMethod("calendars","getCal")(E),ee=0;ee1||D<0||D>1?null:{x:p+w*D,y:m+M*D}}function h(p,m,y,v,g){var b=v*p+g*m;if(b<0)return v*v+g*g;if(b>y){var x=v-p,_=g-m;return x*x+_*_}var w=v*m-g*p;return w*w/y}a.segmentsIntersect=d,a.segmentDistance=function(p,m,y,v,g,b,x,_){if(d(p,m,y,v,g,b,x,_))return 0;var w=y-p,k=v-m,T=x-g,M=_-b,S=w*w+k*k,C=T*T+M*M,P=Math.min(h(w,k,S,g-p,b-m),h(w,k,S,x-p,_-m),h(T,M,C,p-g,m-b),h(T,M,C,y-g,v-b));return Math.sqrt(P)},a.getTextLocation=function(p,m,y,v){if(p===f&&v===s||(l={},f=p,s=v),l[y])return l[y];var g=p.getPointAtLength(c(y-v/2,m)),b=p.getPointAtLength(c(y+v/2,m)),x=Math.atan((b.y-g.y)/(b.x-g.x)),_=p.getPointAtLength(c(y,m)),w={x:(4*_.x+g.x+b.x)/6,y:(4*_.y+g.y+b.y)/6,theta:x};return l[y]=w,w},a.clearLocationCache=function(){f=null},a.getVisibleSegment=function(p,m,y){var v,g,b=m.left,x=m.right,_=m.top,w=m.bottom,k=0,T=p.getTotalLength(),M=T;function S(P){var D=p.getPointAtLength(P);P===0?v=D:P===T&&(g=D);var O=D.xx?D.x-x:0,R=D.y<_?_-D.y:D.y>w?D.y-w:0;return Math.sqrt(O*O+R*R)}for(var C=S(k);C;){if((k+=C+y)>M)return;C=S(k)}for(C=S(M);C;){if(k>(M-=C+y))return;C=S(M)}return{min:k,max:M,len:M-k,total:T,isClosed:k===0&&M===T&&Math.abs(v.x-g.x)<.1&&Math.abs(v.y-g.y)<.1}},a.findPointOnPath=function(p,m,y,v){for(var g,b,x,_=(v=v||{}).pathLength||p.getTotalLength(),w=v.tolerance||.001,k=v.iterationLimit||30,T=p.getPointAtLength(0)[y]>p.getPointAtLength(_)[y]?-1:1,M=0,S=0,C=_;M0?C=g:S=g,M++}return b}},23389:function(o){o.exports=function(a){return a}},39240:function(o){o.exports=function(a,n){if(!n)return a;var l=1/Math.abs(n),f=l>1?(l*a+l*n)/l:a+n,s=String(f).length;if(s>16){var c=String(n).length;if(s>=String(a).length+c){var d=parseFloat(f).toPrecision(12);d.indexOf("e+")===-1&&(f=+d)}}return f}},71828:function(o,a,n){var l=n(39898),f=n(84096).g0,s=n(60721).WU,c=n(92770),d=n(50606),h=d.FP_SAFE,p=-h,m=d.BADNUM,y=o.exports={};y.adjustFormat=function(Y){return!Y||/^\d[.]\df/.test(Y)||/[.]\d%/.test(Y)?Y:Y==="0.f"?"~f":/^\d%/.test(Y)?"~%":/^\ds/.test(Y)?"~s":!/^[~,.0$]/.test(Y)&&/[&fps]/.test(Y)?"~"+Y:Y};var v={};y.warnBadFormat=function(Y){var Z=String(Y);v[Z]||(v[Z]=1,y.warn('encountered bad format: "'+Z+'"'))},y.noFormat=function(Y){return String(Y)},y.numberFormat=function(Y){var Z;try{Z=s(y.adjustFormat(Y))}catch{return y.warnBadFormat(Y),y.noFormat}return Z},y.nestedProperty=n(65487),y.keyedContainer=n(66636),y.relativeAttr=n(6962),y.isPlainObject=n(41965),y.toLogRange=n(58163),y.relinkPrivateKeys=n(51332);var g=n(73627);y.isTypedArray=g.isTypedArray,y.isArrayOrTypedArray=g.isArrayOrTypedArray,y.isArray1D=g.isArray1D,y.ensureArray=g.ensureArray,y.concat=g.concat,y.maxRowLength=g.maxRowLength,y.minRowLength=g.minRowLength;var b=n(64872);y.mod=b.mod,y.modHalf=b.modHalf;var x=n(96554);y.valObjectMeta=x.valObjectMeta,y.coerce=x.coerce,y.coerce2=x.coerce2,y.coerceFont=x.coerceFont,y.coercePattern=x.coercePattern,y.coerceHoverinfo=x.coerceHoverinfo,y.coerceSelectionMarkerOpacity=x.coerceSelectionMarkerOpacity,y.validate=x.validate;var _=n(41631);y.dateTime2ms=_.dateTime2ms,y.isDateTime=_.isDateTime,y.ms2DateTime=_.ms2DateTime,y.ms2DateTimeLocal=_.ms2DateTimeLocal,y.cleanDate=_.cleanDate,y.isJSDate=_.isJSDate,y.formatDate=_.formatDate,y.incrementMonth=_.incrementMonth,y.dateTick0=_.dateTick0,y.dfltRange=_.dfltRange,y.findExactDates=_.findExactDates,y.MIN_MS=_.MIN_MS,y.MAX_MS=_.MAX_MS;var w=n(65888);y.findBin=w.findBin,y.sorterAsc=w.sorterAsc,y.sorterDes=w.sorterDes,y.distinctVals=w.distinctVals,y.roundUp=w.roundUp,y.sort=w.sort,y.findIndexOfMin=w.findIndexOfMin,y.sortObjectKeys=n(78607);var k=n(80038);y.aggNums=k.aggNums,y.len=k.len,y.mean=k.mean,y.median=k.median,y.midRange=k.midRange,y.variance=k.variance,y.stdev=k.stdev,y.interp=k.interp;var T=n(35657);y.init2dArray=T.init2dArray,y.transposeRagged=T.transposeRagged,y.dot=T.dot,y.translationMatrix=T.translationMatrix,y.rotationMatrix=T.rotationMatrix,y.rotationXYMatrix=T.rotationXYMatrix,y.apply3DTransform=T.apply3DTransform,y.apply2DTransform=T.apply2DTransform,y.apply2DTransform2=T.apply2DTransform2,y.convertCssMatrix=T.convertCssMatrix,y.inverseTransformMatrix=T.inverseTransformMatrix;var M=n(26348);y.deg2rad=M.deg2rad,y.rad2deg=M.rad2deg,y.angleDelta=M.angleDelta,y.angleDist=M.angleDist,y.isFullCircle=M.isFullCircle,y.isAngleInsideSector=M.isAngleInsideSector,y.isPtInsideSector=M.isPtInsideSector,y.pathArc=M.pathArc,y.pathSector=M.pathSector,y.pathAnnulus=M.pathAnnulus;var S=n(99863);y.isLeftAnchor=S.isLeftAnchor,y.isCenterAnchor=S.isCenterAnchor,y.isRightAnchor=S.isRightAnchor,y.isTopAnchor=S.isTopAnchor,y.isMiddleAnchor=S.isMiddleAnchor,y.isBottomAnchor=S.isBottomAnchor;var C=n(87642);y.segmentsIntersect=C.segmentsIntersect,y.segmentDistance=C.segmentDistance,y.getTextLocation=C.getTextLocation,y.clearLocationCache=C.clearLocationCache,y.getVisibleSegment=C.getVisibleSegment,y.findPointOnPath=C.findPointOnPath;var P=n(1426);y.extendFlat=P.extendFlat,y.extendDeep=P.extendDeep,y.extendDeepAll=P.extendDeepAll,y.extendDeepNoArrays=P.extendDeepNoArrays;var D=n(47769);y.log=D.log,y.warn=D.warn,y.error=D.error;var O=n(30587);y.counterRegex=O.counter;var R=n(79990);y.throttle=R.throttle,y.throttleDone=R.done,y.clearThrottle=R.clear;var F=n(24401);function A(Y){var Z={};for(var X in Y)for(var re=Y[X],ie=0;ieh||Y=Z)&&c(Y)&&Y>=0&&Y%1==0},y.noop=n(64213),y.identity=n(23389),y.repeat=function(Y,Z){for(var X=new Array(Z),re=0;reX?Math.max(X,Math.min(Z,Y)):Math.max(Z,Math.min(X,Y))},y.bBoxIntersect=function(Y,Z,X){return X=X||0,Y.left<=Z.right+X&&Z.left<=Y.right+X&&Y.top<=Z.bottom+X&&Z.top<=Y.bottom+X},y.simpleMap=function(Y,Z,X,re,ie){for(var le=Y.length,se=new Array(le),pe=0;pe=Math.pow(2,X)?ie>10?(y.warn("randstr failed uniqueness"),Te):Y(Z,X,re,(ie||0)+1):Te},y.OptionControl=function(Y,Z){Y||(Y={}),Z||(Z="opt");var X={optionList:[],_newoption:function(re){re[Z]=Y,X[re.name]=re,X.optionList.push(re)}};return X["_"+Z]=Y,X},y.smooth=function(Y,Z){if((Z=Math.round(Z)||0)<2)return Y;var X,re,ie,le,se=Y.length,pe=2*se,Te=2*Z-1,Se=new Array(Te),Oe=new Array(se);for(X=0;X=pe&&(ie-=pe*Math.floor(ie/pe)),ie<0?ie=-1-ie:ie>=se&&(ie=pe-1-ie),le+=Y[ie]*Se[re];Oe[X]=le}return Oe},y.syncOrAsync=function(Y,Z,X){var re;function ie(){return y.syncOrAsync(Y,Z,X)}for(;Y.length;)if((re=(0,Y.splice(0,1)[0])(Z))&&re.then)return re.then(ie);return X&&X(Z)},y.stripTrailingSlash=function(Y){return Y.substr(-1)==="/"?Y.substr(0,Y.length-1):Y},y.noneOrAll=function(Y,Z,X){if(Y){var re,ie=!1,le=!0;for(re=0;re0?ie:0})},y.fillArray=function(Y,Z,X,re){if(re=re||y.identity,y.isArrayOrTypedArray(Y))for(var ie=0;ie1?ie+se[1]:"";if(le&&(se.length>1||pe.length>4||X))for(;re.test(pe);)pe=pe.replace(re,"$1"+le+"$2");return pe+Te},y.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var W=/^\w*$/;y.templateString=function(Y,Z){var X={};return Y.replace(y.TEMPLATE_STRING_REGEX,function(re,ie){var le;return W.test(ie)?le=Z[ie]:(X[ie]=X[ie]||y.nestedProperty(Z,ie).get,le=X[ie]()),y.isValidTextValue(le)?le:""})};var G={max:10,count:0,name:"hovertemplate"};y.hovertemplateString=function(){return te.apply(G,arguments)};var L={max:10,count:0,name:"texttemplate"};y.texttemplateString=function(){return te.apply(L,arguments)};var q=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/,H={max:10,count:0,name:"texttemplate",parseMultDiv:!0};y.texttemplateStringForShapes=function(){return te.apply(H,arguments)};var V=/^[:|\|]/;function te(Y,Z,X){var re=this,ie=arguments;Z||(Z={});var le={};return Y.replace(y.TEMPLATE_STRING_REGEX,function(se,pe,Te){var Se=pe==="_xother"||pe==="_yother",Oe=pe==="_xother_"||pe==="_yother_",Me=pe==="xother_"||pe==="yother_",ce=pe==="xother"||pe==="yother"||Se||Me||Oe,ye=pe;(Se||Oe)&&(ye=ye.substring(1)),(Me||Oe)&&(ye=ye.substring(0,ye.length-1));var J,ne,de,xe=null,ue=null;if(re.parseMultDiv){var ge=function(Ae){var Ee=Ae.match(q);return Ee?{key:Ee[1],op:Ee[2],number:Number(Ee[3])}:{key:Ae,op:null,number:null}}(ye);ye=ge.key,xe=ge.op,ue=ge.number}if(ce){if((J=Z[ye])===void 0)return""}else for(de=3;de=48&&se<=57,Se=pe>=48&&pe<=57;if(Te&&(re=10*re+se-48),Se&&(ie=10*ie+pe-48),!Te||!Se){if(re!==ie)return re-ie;if(se!==pe)return se-pe}}return ie-re};var ee=2e9;y.seedPseudoRandom=function(){ee=2e9},y.pseudoRandom=function(){var Y=ee;return ee=(69069*ee+1)%4294967296,Math.abs(ee-Y)<429496729?y.pseudoRandom():ee/4294967296},y.fillText=function(Y,Z,X){var re=Array.isArray(X)?function(se){X.push(se)}:function(se){X.text=se},ie=y.extractOption(Y,Z,"htx","hovertext");if(y.isValidTextValue(ie))return re(ie);var le=y.extractOption(Y,Z,"tx","text");return y.isValidTextValue(le)?re(le):void 0},y.isValidTextValue=function(Y){return Y||Y===0},y.formatPercent=function(Y,Z){Z=Z||0;for(var X=(Math.round(100*Y*Math.pow(10,Z))*Math.pow(.1,Z)).toFixed(Z)+"%",re=0;re1&&(Se=1):Se=0,y.strTranslate(ie-Se*(X+se),le-Se*(re+pe))+y.strScale(Se)+(Te?"rotate("+Te+(Z?"":" "+X+" "+re)+")":"")},y.setTransormAndDisplay=function(Y,Z){Y.attr("transform",y.getTextTransform(Z)),Y.style("display",Z.scale?null:"none")},y.ensureUniformFontSize=function(Y,Z){var X=y.extendFlat({},Z);return X.size=Math.max(Z.size,Y._fullLayout.uniformtext.minsize||0),X},y.join2=function(Y,Z,X){var re=Y.length;return re>1?Y.slice(0,-1).join(Z)+X+Y[re-1]:Y.join(Z)},y.bigFont=function(Y){return Math.round(1.2*Y)};var U=y.getFirefoxVersion(),Q=U!==null&&U<86;y.getPositionFromD3Event=function(){return Q?[l.event.layerX,l.event.layerY]:[l.event.offsetX,l.event.offsetY]}},41965:function(o){o.exports=function(a){return window&&window.process&&window.process.versions?Object.prototype.toString.call(a)==="[object Object]":Object.prototype.toString.call(a)==="[object Object]"&&Object.getPrototypeOf(a).hasOwnProperty("hasOwnProperty")}},66636:function(o,a,n){var l=n(65487),f=/^\w*$/;o.exports=function(s,c,d,h){var p,m,y;d=d||"name",h=h||"value";var v={};c&&c.length?(y=l(s,c),m=y.get()):m=s,c=c||"";var g={};if(m)for(p=0;p2)return v[w]=2|v[w],x.set(_,null);if(b){for(p=w;p1){var d=["LOG:"];for(c=0;c1){var h=[];for(c=0;c"),"long")}},s.warn=function(){var c;if(l.logging>0){var d=["WARN:"];for(c=0;c0){var h=[];for(c=0;c"),"stick")}},s.error=function(){var c;if(l.logging>0){var d=["ERROR:"];for(c=0;c0){var h=[];for(c=0;c"),"stick")}}},77310:function(o,a,n){var l=n(39898);o.exports=function(f,s,c){var d=f.selectAll("g."+c.replace(/\s/g,".")).data(s,function(p){return p[0].trace.uid});d.exit().remove(),d.enter().append("g").attr("class",c),d.order();var h=f.classed("rangeplot")?"nodeRangePlot3":"node3";return d.each(function(p){p[0][h]=l.select(this)}),d}},35657:function(o,a,n){var l=n(79576);a.init2dArray=function(f,s){for(var c=new Array(f),d=0;dn/2?a-Math.round(a/n)*n:a}}},65487:function(o,a,n){var l=n(92770),f=n(73627).isArrayOrTypedArray;function s(v,g){return function(){var b,x,_,w,k,T=v;for(w=0;w/g),x=0;xm||M===f||Mv||k&&g(w))}:function(w,k){var T=w[0],M=w[1];if(T===f||Tm||M===f||Mv)return!1;var S,C,P,D,O,R=h.length,F=h[0][0],A=h[0][1],z=0;for(S=1;SMath.max(C,F)||M>Math.max(P,A)))if(Mx||Math.abs(l(y,w))>p)return!0;return!1},s.filter=function(c,d){var h=[c[0]],p=0,m=0;function y(v){c.push(v);var g=h.length,b=p;h.splice(m+1);for(var x=b+1;x1&&y(c.pop()),{addPt:y,raw:c,filtered:h}}},45142:function(o,a,n){var l=n(92770),f=n(35791);o.exports=function(s){var c;if(typeof(c=s&&s.hasOwnProperty("userAgent")?s.userAgent:function(){var g;return typeof navigator<"u"&&(g=navigator.userAgent),g&&g.headers&&typeof g.headers["user-agent"]=="string"&&(g=g.headers["user-agent"]),g}())!="string")return!0;var d=f({ua:{headers:{"user-agent":c}},tablet:!0,featureDetect:!1});if(!d){for(var h=c.split(" "),p=1;p-1;m--){var y=h[m];if(y.substr(0,8)==="Version/"){var v=y.substr(8).split(".")[0];if(l(v)&&(v=+v),v>=13)return!0}}}return d}},75138:function(o){o.exports=function(a,n){if(n instanceof RegExp){for(var l=n.toString(),f=0;ff.queueLength&&(c.undoQueue.queue.shift(),c.undoQueue.index--))},startSequence:function(c){c.undoQueue=c.undoQueue||{index:0,queue:[],sequence:!1},c.undoQueue.sequence=!0,c.undoQueue.beginSequence=!0},stopSequence:function(c){c.undoQueue=c.undoQueue||{index:0,queue:[],sequence:!1},c.undoQueue.sequence=!1,c.undoQueue.beginSequence=!1},undo:function(c){var d,h;if(!(c.undoQueue===void 0||isNaN(c.undoQueue.index)||c.undoQueue.index<=0)){for(c.undoQueue.index--,d=c.undoQueue.queue[c.undoQueue.index],c.undoQueue.inSequence=!0,h=0;h=c.undoQueue.queue.length)){for(d=c.undoQueue.queue[c.undoQueue.index],c.undoQueue.inSequence=!0,h=0;hg}function y(v,g){return v>=g}a.findBin=function(v,g,b){if(l(g.start))return b?Math.ceil((v-g.start)/g.size-d)-1:Math.floor((v-g.start)/g.size+d);var x,_,w=0,k=g.length,T=0,M=k>1?(g[k-1]-g[0])/(k-1):1;for(_=M>=0?b?h:p:b?y:m,v+=M*d*(b?-1:1)*(M>=0?1:-1);w90&&f.log("Long binary search..."),w-1},a.sorterAsc=function(v,g){return v-g},a.sorterDes=function(v,g){return g-v},a.distinctVals=function(v){var g,b=v.slice();for(b.sort(a.sorterAsc),g=b.length-1;g>-1&&b[g]===c;g--);for(var x,_=b[g]-b[0]||1,w=_/(g||1)/1e4,k=[],T=0;T<=g;T++){var M=b[T],S=M-x;x===void 0?(k.push(M),x=M):S>w&&(_=Math.min(_,S),k.push(M),x=M)}return{vals:k,minDiff:_}},a.roundUp=function(v,g,b){for(var x,_=0,w=g.length-1,k=0,T=b?0:1,M=b?1:0,S=b?Math.ceil:Math.floor;_0&&(x=1),b&&x)return v.sort(g)}return x?v:v.reverse()},a.findIndexOfMin=function(v,g){g=g||s;for(var b,x=1/0,_=0;_d.length)&&(h=d.length),l(c)||(c=!1),f(d[0])){for(m=new Array(h),p=0;ps.length-1)return s[s.length-1];var d=c%1;return d*s[Math.ceil(c)]+(1-d)*s[Math.floor(c)]}},3883:function(o,a,n){var l=n(32396),f=n(91424),s=n(71828),c=null;o.exports=function(){if(c!==null)return c;c=!1;var d=s.isIE()||s.isSafari()||s.isIOS();if(window.navigator.userAgent&&!d){var h=Array.from(l.CSS_DECLARATIONS).reverse(),p=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof p=="function")c=h.some(function(v){return p.apply(null,v)});else{var m=f.tester.append("image").attr("style",l.STYLE),y=window.getComputedStyle(m.node()).imageRendering;c=h.some(function(v){var g=v[1];return y===g||y===g.toLowerCase()}),m.remove()}}return c}},63893:function(o,a,n){var l=n(39898),f=n(71828),s=f.strTranslate,c=n(77922),d=n(18783).LINE_SPACING,h=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;a.convertToTspans=function(N,E,W){var G=N.text(),L=!N.attr("data-notex")&&E&&E._context.typesetMath&&typeof MathJax<"u"&&G.match(h),q=l.select(N.node().parentNode);if(!q.empty()){var H=N.attr("class")?N.attr("class").split(" ")[0]:"text";return H+="-math",q.selectAll("svg."+H).remove(),q.selectAll("g."+H+"-group").remove(),N.style("display",null).attr({"data-unformatted":G,"data-math":"N"}),L?(E&&E._promises||[]).push(new Promise(function(te){N.style("display","none");var ee=parseInt(N.node().style.fontSize,10),U={fontSize:ee};(function(Q,Y,Z){var X,re,ie,le,se=parseInt((MathJax.version||"").split(".")[0]);if(se===2||se===3){var pe=function(){var Se="math-output-"+f.randstr({},64),Oe=(le=l.select("body").append("div").attr({id:Se}).style({visibility:"hidden",position:"absolute","font-size":Y.fontSize+"px"}).text(Q.replace(p,"\\lt ").replace(m,"\\gt "))).node();return se===2?MathJax.Hub.Typeset(Oe):MathJax.typeset([Oe])},Te=function(){var Se=le.select(se===2?".MathJax_SVG":".MathJax"),Oe=!Se.empty()&&le.select("svg").node();if(Oe){var Me,ce=Oe.getBoundingClientRect();Me=se===2?l.select("body").select("#MathJax_SVG_glyphs"):Se.select("defs"),Z(Se,Me,ce)}else f.log("There was an error in the tex syntax.",Q),Z();le.remove()};se===2?MathJax.Hub.Queue(function(){return re=f.extendDeepAll({},MathJax.Hub.config),ie=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:y},displayAlign:"left"})},function(){if((X=MathJax.Hub.config.menuSettings.renderer)!=="SVG")return MathJax.Hub.setRenderer("SVG")},pe,Te,function(){if(X!=="SVG")return MathJax.Hub.setRenderer(X)},function(){return ie!==void 0&&(MathJax.Hub.processSectionDelay=ie),MathJax.Hub.Config(re)}):se===3&&(re=f.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=y,(X=MathJax.config.startup.output)!=="svg"&&(MathJax.config.startup.output="svg"),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){pe(),Te(),X!=="svg"&&(MathJax.config.startup.output=X),MathJax.config=re}))}else f.warn("No MathJax version:",MathJax.version)})(L[2],U,function(Q,Y,Z){q.selectAll("svg."+H).remove(),q.selectAll("g."+H+"-group").remove();var X=Q&&Q.select("svg");if(!X||!X.node())return V(),void te();var re=q.append("g").classed(H+"-group",!0).attr({"pointer-events":"none","data-unformatted":G,"data-math":"Y"});re.node().appendChild(X.node()),Y&&Y.node()&&X.node().insertBefore(Y.node().cloneNode(!0),X.node().firstChild);var ie=Z.width,le=Z.height;X.attr({class:H,height:le,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var se=N.node().style.fill||"black",pe=X.select("g");pe.attr({fill:se,stroke:se});var Te=pe.node().getBoundingClientRect(),Se=Te.width,Oe=Te.height;(Se>ie||Oe>le)&&(X.style("overflow","hidden"),Se=(Te=X.node().getBoundingClientRect()).width,Oe=Te.height);var Me=+N.attr("x"),ce=+N.attr("y"),ye=-(ee||N.node().getBoundingClientRect().height)/4;if(H[0]==="y")re.attr({transform:"rotate("+[-90,Me,ce]+")"+s(-Se/2,ye-Oe/2)});else if(H[0]==="l")ce=ye-Oe/2;else if(H[0]==="a"&&H.indexOf("atitle")!==0)Me=0,ce=ye;else{var J=N.attr("text-anchor");Me-=Se*(J==="middle"?.5:J==="end"?1:0),ce=ce+ye-Oe/2}X.attr({x:Me,y:ce}),W&&W.call(N,re),te(re)})})):V(),N}function V(){q.empty()||(H=N.attr("class")+"-math",q.select("svg."+H).remove()),N.text("").style("white-space","pre");var te=function(ee,U){U=U.replace(w," ");var Q,Y=!1,Z=[],X=-1;function re(){X++;var ue=document.createElementNS(c.svg,"tspan");l.select(ue).attr({class:"line",dy:X*d+"em"}),ee.appendChild(ue),Q=ue;var ge=Z;if(Z=[{node:ue}],ge.length>1)for(var be=1;be doesnt match end tag <"+ue+">. Pretending it did match.",U),Q=Z[Z.length-1].node}else f.log("Ignoring unexpected end tag .",U)}M.test(U)?re():(Q=ee,Z=[{node:ee}]);for(var pe=U.split(k),Te=0;Te|>|>)/g,y=[["$","$"],["\\(","\\)"]],v={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},g={sub:"0.3em",sup:"-0.6em"},b={sub:"-0.21em",sup:"0.42em"},x="​",_=["http:","https:","mailto:","",void 0,":"],w=a.NEWLINES=/(\r\n?|\n)/g,k=/(<[^<>]*>)/,T=/<(\/?)([^ >]*)(\s+(.*))?>/i,M=//i;a.BR_TAG_ALL=//gi;var S=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,C=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,P=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,D=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function O(N,E){if(!N)return null;var W=N.match(E),G=W&&(W[3]||W[4]);return G&&z(G)}var R=/(^|;)\s*color:/;a.plainText=function(N,E){for(var W=(E=E||{}).len!==void 0&&E.len!==-1?E.len:1/0,G=E.allowedTags!==void 0?E.allowedTags:["br"],L=N.split(k),q=[],H="",V=0,te=0;te3?q.push(ee.substr(0,Z-3)+"..."):q.push(ee.substr(0,Z));break}H=""}}return q.join("")};var F={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},A=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function z(N){return N.replace(A,function(E,W){return(W.charAt(0)==="#"?function(G){if(!(G>1114111)){var L=String.fromCodePoint;if(L)return L(G);var q=String.fromCharCode;return G<=65535?q(G):q(55232+(G>>10),G%1024+56320)}}(W.charAt(1)==="x"?parseInt(W.substr(2),16):parseInt(W.substr(1),10)):F[W])||E})}function B(N){var E=encodeURI(decodeURI(N)),W=document.createElement("a"),G=document.createElement("a");W.href=N,G.href=E;var L=W.protocol,q=G.protocol;return _.indexOf(L)!==-1&&_.indexOf(q)!==-1?E:""}function $(N,E,W){var G,L,q,H=W.horizontalAlign,V=W.verticalAlign||"top",te=N.node().getBoundingClientRect(),ee=E.node().getBoundingClientRect();return L=V==="bottom"?function(){return te.bottom-G.height}:V==="middle"?function(){return te.top+(te.height-G.height)/2}:function(){return te.top},q=H==="right"?function(){return te.right-G.width}:H==="center"?function(){return te.left+(te.width-G.width)/2}:function(){return te.left},function(){G=this.node().getBoundingClientRect();var U=q()-ee.left,Q=L()-ee.top,Y=W.gd||{};if(W.gd){Y._fullLayout._calcInverseTransform(Y);var Z=f.apply3DTransform(Y._fullLayout._invTransform)(U,Q);U=Z[0],Q=Z[1]}return this.style({top:Q+"px",left:U+"px","z-index":1e3}),this}}a.convertEntities=z,a.sanitizeHTML=function(N){N=N.replace(w," ");for(var E=document.createElement("p"),W=E,G=[],L=N.split(k),q=0;qd.ts+s?m():d.timer=setTimeout(function(){m(),d.timer=null},s)},a.done=function(f){var s=n[f];return s&&s.timer?new Promise(function(c){var d=s.onDone;s.onDone=function(){d&&d(),c(),s.onDone=null}}):Promise.resolve()},a.clear=function(f){if(f)l(n[f]),delete n[f];else for(var s in n)a.clear(s)}},58163:function(o,a,n){var l=n(92770);o.exports=function(f,s){if(f>0)return Math.log(f)/Math.LN10;var c=Math.log(Math.min(s[0],s[1]))/Math.LN10;return l(c)||(c=Math.log(Math.max(s[0],s[1]))/Math.LN10-6),c}},37815:function(o){o.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},92177:function(o){o.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},14458:function(o,a,n){var l=n(73972);o.exports=function(f){for(var s,c,d=l.layoutArrayContainers,h=l.layoutArrayRegexes,p=f.split("[")[0],m=0;m0&&c.log("Clearing previous rejected promises from queue."),C._promises=[]},a.cleanLayout=function(C){var P,D;C||(C={}),C.xaxis1&&(C.xaxis||(C.xaxis=C.xaxis1),delete C.xaxis1),C.yaxis1&&(C.yaxis||(C.yaxis=C.yaxis1),delete C.yaxis1),C.scene1&&(C.scene||(C.scene=C.scene1),delete C.scene1);var O=(d.subplotsRegistry.cartesian||{}).attrRegex,R=(d.subplotsRegistry.polar||{}).attrRegex,F=(d.subplotsRegistry.ternary||{}).attrRegex,A=(d.subplotsRegistry.gl3d||{}).attrRegex,z=Object.keys(C);for(P=0;P3?(Z.x=1.02,Z.xanchor="left"):Z.x<-2&&(Z.x=-.02,Z.xanchor="right"),Z.y>3?(Z.y=1.02,Z.yanchor="bottom"):Z.y<-2&&(Z.y=-.02,Z.yanchor="top")),b(C),C.dragmode==="rotate"&&(C.dragmode="orbit"),p.clean(C),C.template&&C.template.layout&&a.cleanLayout(C.template.layout),C},a.cleanData=function(C){for(var P=0;P0)return C.substr(0,P)}a.hasParent=function(C,P){for(var D=M(P);D;){if(D in C)return!0;D=M(D)}return!1};var S=["x","y","z"];a.clearAxisTypes=function(C,P,D){for(var O=0;O1&&s.warn("Full array edits are incompatible with other edits",x);var C=v[""][""];if(p(C))y.set(null);else{if(!Array.isArray(C))return s.warn("Unrecognized full array edit value",x,C),!0;y.set(C)}return!T&&(_(M,S),w(m),!0)}var P,D,O,R,F,A,z,B,$=Object.keys(v).map(Number).sort(c),j=y.get(),N=j||[],E=b(S,x).get(),W=[],G=-1,L=N.length;for(P=0;P<$.length;P++)if(R=v[O=$[P]],F=Object.keys(R),A=R[""],z=h(A),O<0||O>N.length-(z?0:1))s.warn("index out of range",x,O);else if(A!==void 0)F.length>1&&s.warn("Insertion & removal are incompatible with edits to the same index.",x,O),p(A)?W.push(O):z?(A==="add"&&(A={}),N.splice(O,0,A),E&&E.splice(O,0,{})):s.warn("Unrecognized full object edit value",x,O,A),G===-1&&(G=O);else for(D=0;D=0;P--)N.splice(W[P],1),E&&E.splice(W[P],1);if(N.length?j||y.set(N):y.set(null),T)return!1;if(_(M,S),k!==f){var q;if(G===-1)q=$;else{for(L=Math.max(N.length,L),q=[],P=0;P<$.length&&!((O=$[P])>=G);P++)q.push(O);for(P=G;P=ue.data.length||ke<-ue.data.length)throw new Error(be+" must be valid indices for gd.data.");if(ge.indexOf(ke,we+1)>-1||ke>=0&&ge.indexOf(-ue.data.length+ke)>-1||ke<0&&ge.indexOf(ue.data.length+ke)>-1)throw new Error("each index in "+be+" must be unique.")}}function E(ue,ge,be){if(!Array.isArray(ue.data))throw new Error("gd.data must be an array.");if(ge===void 0)throw new Error("currentIndices is a required argument.");if(Array.isArray(ge)||(ge=[ge]),N(ue,ge,"currentIndices"),be===void 0||Array.isArray(be)||(be=[be]),be!==void 0&&N(ue,be,"newIndices"),be!==void 0&&ge.length!==be.length)throw new Error("current and new indices must be of equal length.")}function W(ue,ge,be,we,ke){(function(qe,Ye,at,lt){var ct=c.isPlainObject(lt);if(!Array.isArray(qe.data))throw new Error("gd.data must be an array");if(!c.isPlainObject(Ye))throw new Error("update must be a key:value object");if(at===void 0)throw new Error("indices must be an integer or array of integers");for(var bt in N(qe,at,"indices"),Ye){if(!Array.isArray(Ye[bt])||Ye[bt].length!==at.length)throw new Error("attribute "+bt+" must be an array of length equal to indices array length");if(ct&&(!(bt in lt)||!Array.isArray(lt[bt])||lt[bt].length!==Ye[bt].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}})(ue,ge,be,we);for(var Ae=function(qe,Ye,at,lt){var ct,bt,ze,Ne,Qe,it=c.isPlainObject(lt),kt=[];for(var Je in Array.isArray(at)||(at=[at]),at=j(at,qe.data.length-1),Ye)for(var ut=0;ut-1&&be.indexOf("grouptitlefont")===-1?De(be,be.replace("titlefont","title.font")):be.indexOf("titleposition")>-1?De(be,be.replace("titleposition","title.position")):be.indexOf("titleside")>-1?De(be,be.replace("titleside","title.side")):be.indexOf("titleoffset")>-1&&De(be,be.replace("titleoffset","title.offset")):De(be,be.replace("title","title.text"));function De(Re,Ie){ue[Ie]=ue[Re],delete ue[Re]}}function U(ue,ge,be){ue=c.getGraphDiv(ue),P.clearPromiseQueue(ue);var we={};if(typeof ge=="string")we[ge]=be;else{if(!c.isPlainObject(ge))return c.warn("Relayout fail.",ge,be),Promise.reject();we=c.extendFlat({},ge)}Object.keys(we).length&&(ue.changed=!0);var ke=ie(ue,we),Ae=ke.flags;Ae.calc&&(ue.calcdata=void 0);var Ee=[v.previousPromises];Ae.layoutReplot?Ee.push(D.layoutReplot):Object.keys(we).length&&(Q(ue,Ae,ke)||v.supplyDefaults(ue),Ae.legend&&Ee.push(D.doLegend),Ae.layoutstyle&&Ee.push(D.layoutStyles),Ae.axrange&&Y(Ee,ke.rangesAltered),Ae.ticks&&Ee.push(D.doTicksRelayout),Ae.modebar&&Ee.push(D.doModeBar),Ae.camera&&Ee.push(D.doCamera),Ae.colorbars&&Ee.push(D.doColorBars),Ee.push(A)),Ee.push(v.rehover,v.redrag,v.reselect),p.add(ue,U,[ue,ke.undoit],U,[ue,ke.redoit]);var De=c.syncOrAsync(Ee,ue);return De&&De.then||(De=Promise.resolve(ue)),De.then(function(){return ue.emit("plotly_relayout",ke.eventData),ue})}function Q(ue,ge,be){var we,ke,Ae=ue._fullLayout;if(!ge.axrange)return!1;for(var Ee in ge)if(Ee!=="axrange"&&ge[Ee])return!1;var De=function(Ye,at){return c.coerce(we,ke,x,Ye,at)},Re={};for(var Ie in be.rangesAltered){var Be=g.id2name(Ie);if(we=ue.layout[Be],ke=Ae[Be],b(we,ke,De,Re),ke._matchGroup){for(var Ue in ke._matchGroup)if(Ue!==Ie){var qe=Ae[g.id2name(Ue)];qe.autorange=ke.autorange,qe.range=ke.range.slice(),qe._input.range=ke.range.slice()}}}return!0}function Y(ue,ge){var be=ge?function(we){var ke=[];for(var Ae in ge){var Ee=g.getFromId(we,Ae);if(ke.push(Ae),(Ee.ticklabelposition||"").indexOf("inside")!==-1&&Ee._anchorAxis&&ke.push(Ee._anchorAxis._id),Ee._matchGroup)for(var De in Ee._matchGroup)ge[De]||ke.push(De)}return g.draw(we,ke,{skipTitle:!0})}:function(we){return g.draw(we,"redraw")};ue.push(M,D.doAutoRangeAndConstraints,be,D.drawData,D.finalDraw)}var Z=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,X=/^[xyz]axis[0-9]*\.autorange$/,re=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function ie(ue,ge){var be,we,ke,Ae=ue.layout,Ee=ue._fullLayout,De=Ee._guiEditing,Re=H(Ee._preGUI,De),Ie=Object.keys(ge),Be=g.list(ue),Ue=c.extendDeepAll({},ge),qe={};for(ee(ge),Ie=Object.keys(ge),we=0;we0&&typeof ut.parts[It]!="string";)It--;var Mt=ut.parts[It],zt=ut.parts[It-1]+"."+Mt,wt=ut.parts.slice(0,It).join("."),ve=d(ue.layout,wt).get(),_e=d(Ee,wt).get(),Ve=ut.get();if(pt!==void 0){bt[Je]=pt,ze[Je]=Mt==="reverse"?pt:q(Ve);var We=y.getLayoutValObject(Ee,ut.parts);if(We&&We.impliedEdits&&pt!==null)for(var Ze in We.impliedEdits)Ne(c.relativeAttr(Je,Ze),We.impliedEdits[Ze]);if(["width","height"].indexOf(Je)!==-1)if(pt){Ne("autosize",null);var Ge=Je==="height"?"width":"height";Ne(Ge,Ee[Ge])}else Ee[Je]=ue._initialAutoSize[Je];else if(Je==="autosize")Ne("width",pt?null:Ee.width),Ne("height",pt?null:Ee.height);else if(zt.match(Z))kt(zt),d(Ee,wt+"._inputRange").set(null);else if(zt.match(X)){kt(zt),d(Ee,wt+"._inputRange").set(null);var Ke=d(Ee,wt).get();Ke._inputDomain&&(Ke._input.domain=Ke._inputDomain.slice())}else zt.match(re)&&d(Ee,wt+"._inputDomain").set(null);if(Mt==="type"){Qe=ve;var nt=_e.type==="linear"&&pt==="log",st=_e.type==="log"&&pt==="linear";if(nt||st){if(Qe&&Qe.range)if(_e.autorange)nt&&(Qe.range=Qe.range[1]>Qe.range[0]?[1,2]:[2,1]);else{var mt=Qe.range[0],tt=Qe.range[1];nt?(mt<=0&&tt<=0&&Ne(wt+".autorange",!0),mt<=0?mt=tt/1e6:tt<=0&&(tt=mt/1e6),Ne(wt+".range[0]",Math.log(mt)/Math.LN10),Ne(wt+".range[1]",Math.log(tt)/Math.LN10)):(Ne(wt+".range[0]",Math.pow(10,mt)),Ne(wt+".range[1]",Math.pow(10,tt)))}else Ne(wt+".autorange",!0);Array.isArray(Ee._subplots.polar)&&Ee._subplots.polar.length&&Ee[ut.parts[0]]&&ut.parts[1]==="radialaxis"&&delete Ee[ut.parts[0]]._subplot.viewInitial["radialaxis.range"],m.getComponentMethod("annotations","convertCoords")(ue,_e,pt,Ne),m.getComponentMethod("images","convertCoords")(ue,_e,pt,Ne)}else Ne(wt+".autorange",!0),Ne(wt+".range",null);d(Ee,wt+"._inputRange").set(null)}else if(Mt.match(R)){var Ft=d(Ee,Je).get(),Vt=(pt||{}).type;Vt&&Vt!=="-"||(Vt="linear"),m.getComponentMethod("annotations","convertCoords")(ue,Ft,Vt,Ne),m.getComponentMethod("images","convertCoords")(ue,Ft,Vt,Ne)}var St=C.containerArrayMatch(Je);if(St){be=St.array,we=St.index;var Nt=St.property,Dt=We||{editType:"calc"};we!==""&&Nt===""&&(C.isAddVal(pt)?ze[Je]=null:C.isRemoveVal(pt)?ze[Je]=(d(Ae,be).get()||[])[we]:c.warn("unrecognized full object value",ge)),O.update(ct,Dt),qe[be]||(qe[be]={});var gt=qe[be][we];gt||(gt=qe[be][we]={}),gt[Nt]=pt,delete ge[Je]}else Mt==="reverse"?(ve.range?ve.range.reverse():(Ne(wt+".autorange",!0),ve.range=[1,0]),_e.autorange?ct.calc=!0:ct.plot=!0):(Je==="dragmode"&&(pt===!1&&Ve!==!1||pt!==!1&&Ve===!1)||Ee._has("scatter-like")&&Ee._has("regl")&&Je==="dragmode"&&(pt==="lasso"||pt==="select")&&Ve!=="lasso"&&Ve!=="select"||Ee._has("gl2d")?ct.plot=!0:We?O.update(ct,We):ct.calc=!0,ut.set(pt))}}for(be in qe)C.applyContainerArrayChanges(ue,Re(Ae,be),qe[be],ct,Re)||(ct.plot=!0);for(var ht in it){var yt=(Qe=g.getFromId(ue,ht))&&Qe._constraintGroup;if(yt)for(var qt in ct.calc=!0,yt)it[qt]||(g.getFromId(ue,qt)._constraintShrinkable=!0)}(le(ue)||ge.height||ge.width)&&(ct.plot=!0);var Et=Ee.shapes;for(we=0;we1;)if(we.pop(),(be=d(ge,we.join(".")+".uirevision").get())!==void 0)return be;return ge.uirevision}function ce(ue,ge){for(var be=0;be=ke.length?ke[0]:ke[Ie]:ke}function De(Ie){return Array.isArray(Ae)?Ie>=Ae.length?Ae[0]:Ae[Ie]:Ae}function Re(Ie,Be){var Ue=0;return function(){if(Ie&&++Ue===Be)return Ie()}}return we._frameWaitingCnt===void 0&&(we._frameWaitingCnt=0),new Promise(function(Ie,Be){function Ue(){ue.emit("plotly_animating"),we._lastFrameAt=-1/0,we._timeToNext=0,we._runningTransitions=0,we._currentFrame=null;var Je=function(){we._animationRaf=window.requestAnimationFrame(Je),Date.now()-we._lastFrameAt>we._timeToNext&&function(){we._currentFrame&&we._currentFrame.onComplete&&we._currentFrame.onComplete();var ut=we._currentFrame=we._frameQueue.shift();if(ut){var pt=ut.name?ut.name.toString():null;ue._fullLayout._currentFrame=pt,we._lastFrameAt=Date.now(),we._timeToNext=ut.frameOpts.duration,v.transition(ue,ut.frame.data,ut.frame.layout,P.coerceTraceIndices(ue,ut.frame.traces),ut.frameOpts,ut.transitionOpts).then(function(){ut.onComplete&&ut.onComplete()}),ue.emit("plotly_animatingframe",{name:pt,frame:ut.frame,animation:{frame:ut.frameOpts,transition:ut.transitionOpts}})}else ue.emit("plotly_animated"),window.cancelAnimationFrame(we._animationRaf),we._animationRaf=null}()};Je()}var qe,Ye,at=0;function lt(Je){return Array.isArray(ke)?at>=ke.length?Je.transitionOpts=ke[at]:Je.transitionOpts=ke[0]:Je.transitionOpts=ke,at++,Je}var ct=[],bt=ge==null,ze=Array.isArray(ge);if(bt||ze||!c.isPlainObject(ge)){if(bt||["string","number"].indexOf(typeof ge)!==-1)for(qe=0;qe0&&itit)&&kt.push(Ye);ct=kt}}ct.length>0?function(Je){if(Je.length!==0){for(var ut=0;ut=0;we--)if(c.isPlainObject(ge[we])){var qe=ge[we].name,Ye=(Re[qe]||Ue[qe]||{}).name,at=ge[we].name,lt=Re[Ye]||Ue[Ye];Ye&&at&&typeof at=="number"&<&&F<5&&(F++,c.warn('addFrames: overwriting frame "'+(Re[Ye]||Ue[Ye]).name+'" with a frame whose name of type "number" also equates to "'+Ye+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),F===5&&c.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),Ue[qe]={name:qe},Be.push({frame:v.supplyFrameDefaults(ge[we]),index:be&&be[we]!==void 0&&be[we]!==null?be[we]:Ie+we})}Be.sort(function(Je,ut){return Je.index>ut.index?-1:Je.index=0;we--){if(typeof(ke=Be[we].frame).name=="number"&&c.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!ke.name)for(;Re[ke.name="frame "+ue._transitionData._counter++];);if(Re[ke.name]){for(Ae=0;Ae=0;be--)we=ge[be],Ae.push({type:"delete",index:we}),Ee.unshift({type:"insert",index:we,value:ke[we]});var De=v.modifyFrames,Re=v.modifyFrames,Ie=[ue,Ee],Be=[ue,Ae];return p&&p.add(ue,De,Ie,Re,Be),v.modifyFrames(ue,Ae)},a.addTraces=function ue(ge,be,we){ge=c.getGraphDiv(ge);var ke,Ae,Ee=[],De=a.deleteTraces,Re=ue,Ie=[ge,Ee],Be=[ge,be];for(function(Ue,qe,Ye){var at,lt;if(!Array.isArray(Ue.data))throw new Error("gd.data must be an array.");if(qe===void 0)throw new Error("traces must be defined.");for(Array.isArray(qe)||(qe=[qe]),at=0;at=0&&Be=0&&Be=$.length)return!1;if(R.dimensions===2){if(A++,F.length===A)return R;var j=F[A];if(!S(j))return!1;R=$[B][j]}else R=$[B]}else R=$}}return R}function S(R){return R===Math.round(R)&&R>=0}function C(){var R,F,A={};for(R in y(A,c),l.subplotsRegistry)if((F=l.subplotsRegistry[R]).layoutAttributes)if(Array.isArray(F.attr))for(var z=0;z=j.length)return!1;z=(A=(l.transformsRegistry[j[N].type]||{}).attributes)&&A[F[2]],$=3}else{var E=R._module;if(E||(E=(l.modules[R.type||s.type.dflt]||{})._module),!E)return!1;if(!(z=(A=E.attributes)&&A[B])){var W=E.basePlotModule;W&&W.attributes&&(z=W.attributes[B])}z||(z=s[B])}return M(z,F,$)},a.getLayoutValObject=function(R,F){var A=function(z,B){var $,j,N,E,W=z._basePlotModules;if(W){var G;for($=0;$=v&&(y._input||{})._templateitemname;b&&(g=v);var x,_=m+"["+g+"]";function w(){x={},b&&(x[_]={},x[_][s]=b)}function k(M,S){b?l.nestedProperty(x[_],M).set(S):x[_+"."+M]=S}function T(){var M=x;return w(),M}return w(),{modifyBase:function(M,S){x[M]=S},modifyItem:k,getUpdateObj:T,applyUpdate:function(M,S){M&&k(M,S);var C=T();for(var P in C)l.nestedProperty(p,P).set(C[P])}}}},61549:function(o,a,n){var l=n(39898),f=n(73972),s=n(74875),c=n(71828),d=n(63893),h=n(33306),p=n(7901),m=n(91424),y=n(92998),v=n(64168),g=n(89298),b=n(18783),x=n(99082),_=x.enforce,w=x.clean,k=n(71739).doAutoRange,T="start";function M(O,R,F){for(var A=0;A=O[1]||z[1]<=O[0])&&B[0]R[0])return!0}return!1}function S(O){var R,F,A,z,B,$,j=O._fullLayout,N=j._size,E=N.p,W=g.list(O,"",!0);if(j._paperdiv.style({width:O._context.responsive&&j.autosize&&!O._context._hasZeroWidth&&!O.layout.width?"100%":j.width+"px",height:O._context.responsive&&j.autosize&&!O._context._hasZeroHeight&&!O.layout.height?"100%":j.height+"px"}).selectAll(".main-svg").call(m.setSize,j.width,j.height),O._context.setBackground(O,j.paper_bgcolor),a.drawMainTitle(O),v.manage(O),!j._has("cartesian"))return s.previousPromises(O);function G(Ie,Be,Ue){var qe=Ie._lw/2;return Ie._id.charAt(0)==="x"?Be?Ue==="top"?Be._offset-E-qe:Be._offset+Be._length+E+qe:N.t+N.h*(1-(Ie.position||0))+qe%1:Be?Ue==="right"?Be._offset+Be._length+E+qe:Be._offset-E-qe:N.l+N.w*(Ie.position||0)+qe%1}for(R=0;R.5?"t":"b",ee=G._fullLayout.margin[te],U=0;return L.yref==="paper"?U=q+L.pad.t+L.pad.b:L.yref==="container"&&(U=function(Q,Y,Z,X,re){var ie=0;return Z==="middle"&&(ie+=re/2),Q==="t"?(Z==="top"&&(ie+=re),ie+=X-Y*X):(Z==="bottom"&&(ie+=re),ie+=Y*X),ie}(te,H,V,G._fullLayout.height,q)+L.pad.t+L.pad.b),U>ee?U:0}(O,F,E);W>0&&(function(G,L,q,H){var V="title.automargin",te=G._fullLayout.title,ee=te.y>.5?"t":"b",U={x:te.x,y:te.y,t:0,b:0},Q={};te.yref==="paper"&&function(Y,Z,X,re,ie){var le=Z.yref==="paper"?Y._fullLayout._size.h:Y._fullLayout.height,se=c.isTopAnchor(Z)?re:re-ie,pe=X==="b"?le-se:se;return!(c.isTopAnchor(Z)&&X==="t"||c.isBottomAnchor(Z)&&X==="b")&&peN?D.push({code:"unused",traceType:A,templateCount:j,dataCount:N}):N>j&&D.push({code:"reused",traceType:A,templateCount:j,dataCount:N})}}else D.push({code:"data"});if(function E(W,G){for(var L in W)if(L.charAt(0)!=="_"){var q=W[L],H=x(W,L,G);f(q)?(Array.isArray(W)&&q._template===!1&&q.templateitemname&&D.push({code:"missing",path:H,templateitemname:q.templateitemname}),E(q,H)):Array.isArray(q)&&_(q)&&E(q,H)}}({data:R,layout:O},""),D.length)return D.map(w)}},403:function(o,a,n){var l=n(92770),f=n(72391),s=n(74875),c=n(71828),d=n(25095),h=n(5900),p=n(70942),m=n(11506).version,y={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};o.exports=function(v,g){var b,x,_,w;function k(N){return!(N in g)||c.validate(g[N],y[N])}if(g=g||{},c.isPlainObject(v)?(b=v.data||[],x=v.layout||{},_=v.config||{},w={}):(v=c.getGraphDiv(v),b=c.extendDeep([],v.data),x=c.extendDeep({},v.layout),_=v._context,w=v._fullLayout||{}),!k("width")&&g.width!==null||!k("height")&&g.height!==null)throw new Error("Height and width should be pixel values.");if(!k("format"))throw new Error("Export format is not "+c.join2(y.format.values,", "," or ")+".");var T={};function M(N,E){return c.coerce(g,T,y,N,E)}var S=M("format"),C=M("width"),P=M("height"),D=M("scale"),O=M("setBackground"),R=M("imageDataOnly"),F=document.createElement("div");F.style.position="absolute",F.style.left="-5000px",document.body.appendChild(F);var A=c.extendFlat({},x);C?A.width=C:g.width===null&&l(w.width)&&(A.width=w.width),P?A.height=P:g.height===null&&l(w.height)&&(A.height=w.height);var z=c.extendFlat({},_,{_exportedPlot:!0,staticPlot:!0,setBackground:O}),B=d.getRedrawFunc(F);function $(){return new Promise(function(N){setTimeout(N,d.getDelay(F._fullLayout))})}function j(){return new Promise(function(N,E){var W=h(F,S,D),G=F._fullLayout.width,L=F._fullLayout.height;function q(){f.purge(F),document.body.removeChild(F)}if(S==="full-json"){var H=s.graphJson(F,!1,"keepdata","object",!0,!0);return H.version=m,H=JSON.stringify(H),q(),N(R?H:d.encodeJSON(H))}if(q(),S==="svg")return N(R?W:d.encodeSVG(W));var V=document.createElement("canvas");V.id=c.randstr(),p({format:S,width:G,height:L,scale:D,canvas:V,svg:W,promise:!0}).then(N).catch(E)})}return new Promise(function(N,E){f.newPlot(F,b,A,z).then(B).then($).then(j).then(function(W){N(function(G){return R?G.replace(d.IMAGE_URL_PREFIX,""):G}(W))}).catch(function(W){E(W)})})}},84936:function(o,a,n){var l=n(71828),f=n(74875),s=n(86281),c=n(72075).dfltConfig,d=l.isPlainObject,h=Array.isArray,p=l.isArrayOrTypedArray;function m(k,T,M,S,C,P){P=P||[];for(var D=Object.keys(k),O=0;Oz.length&&S.push(g("unused",C,F.concat(z.length)));var W,G,L,q,H,V=z.length,te=Array.isArray(E);if(te&&(V=Math.min(V,E.length)),B.dimensions===2)for(G=0;Gz[G].length&&S.push(g("unused",C,F.concat(G,z[G].length)));var ee=z[G].length;for(W=0;W<(te?Math.min(ee,E[G].length):ee);W++)L=te?E[G][W]:E,q=A[G][W],H=z[G][W],l.validate(q,L)?H!==q&&H!==+q&&S.push(g("dynamic",C,F.concat(G,W),q,H)):S.push(g("value",C,F.concat(G,W),q))}else S.push(g("array",C,F.concat(G),A[G]));else for(G=0;G1&&P.push(g("object","layout"))),f.supplyDefaults(D);for(var O=D._fullData,R=M.length,F=0;F0&&Math.round(x)===x))return{vals:y};g=x}for(var _=p.calendar,w=v==="start",k=v==="end",T=h[m+"period0"],M=s(T,_)||0,S=[],C=[],P=[],D=y.length,O=0;Oz;)A=c(A,-g,_);for(;A<=z;)A=c(A,g,_);F=c(A,-g,_)}else{for(A=M+(R=Math.round((z-M)/b))*b;A>z;)A-=b;for(;A<=z;)A+=b;F=A-b}S[O]=w?F:k?A:(F+A)/2,C[O]=F,P[O]=A}return{vals:S,starts:C,ends:P}}},89502:function(o){o.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},71739:function(o,a,n){var l=n(39898),f=n(92770),s=n(71828),c=n(50606).FP_SAFE,d=n(73972),h=n(91424),p=n(41675),m=p.getFromId,y=p.isLinked;function v(O,R){var F,A,z=[],B=O._fullLayout,$=b(B,R,0),j=b(B,R,1),N=_(O,R),E=N.min,W=N.max;if(E.length===0||W.length===0)return s.simpleMap(R.range,R.r2l);var G=E[0].val,L=W[0].val;for(F=1;F0&&((Y=le-$(te)-j(ee))>se?Z/Y>pe&&(U=te,Q=ee,pe=Z/Y):Z/le>pe&&(U={val:te.val,nopad:1},Q={val:ee.val,nopad:1},pe=Z/le));if(G===L){var Te=G-1,Se=G+1;if(re)if(G===0)z=[0,1];else{var Oe=(G>0?W:E).reduce(function(ce,ye){return Math.max(ce,j(ye))},0),Me=G/(1-Math.min(.5,Oe/le));z=G>0?[0,Me]:[Me,0]}else z=ie?[Math.max(0,Te),Math.max(1,Se)]:[Te,Se]}else re?(U.val>=0&&(U={val:0,nopad:1}),Q.val<=0&&(Q={val:0,nopad:1})):ie&&(U.val-pe*$(U)<0&&(U={val:0,nopad:1}),Q.val<=0&&(Q={val:1,nopad:1})),pe=(Q.val-U.val-g(R,te.val,ee.val))/(le-$(U)-j(Q)),z=[U.val-pe*$(U),Q.val+pe*j(Q)];return z=D(z,R),R.limitRange&&R.limitRange(),H&&z.reverse(),s.simpleMap(z,R.l2r||Number)}function g(O,R,F){var A=0;if(O.rangebreaks)for(var z=O.locateBreaks(R,F),B=0;B0?F.ppadplus:F.ppadminus)||F.ppad||0),X=Y((O._m>0?F.ppadminus:F.ppadplus)||F.ppad||0),re=Y(F.vpadplus||F.vpad),ie=Y(F.vpadminus||F.vpad);if(!U){if(W=1/0,G=-1/0,ee)for(A=0;A0&&(W=z),z>G&&z-c&&(W=z),z>G&&z=pe;A--)se(A);return{min:L,max:q,opts:F}},concatExtremes:_};var x=3;function _(O,R,F){var A,z,B,$=R._id,j=O._fullData,N=O._fullLayout,E=[],W=[];function G(te,ee){for(A=0;A=F&&(E.extrapad||!$)){j=!1;break}z(R,E.val)&&E.pad<=F&&($||!E.extrapad)&&(O.splice(N,1),N--)}if(j){var W=B&&R===0;O.push({val:R,pad:W?0:F,extrapad:!W&&$})}}function M(O){return f(O)&&Math.abs(O)=R}function P(O,R,F){return R===void 0||F===void 0||(R=O.d2l(R))=N&&(B=N,F=N),$<=N&&($=N,A=N)}}return F=function(E,W){var G=W.autorangeoptions;return G&&G.minallowed!==void 0&&P(W,G.minallowed,G.maxallowed)?G.minallowed:G&&G.clipmin!==void 0&&P(W,G.clipmin,G.clipmax)?Math.max(E,W.d2l(G.clipmin)):E}(F,R),A=function(E,W){var G=W.autorangeoptions;return G&&G.maxallowed!==void 0&&P(W,G.minallowed,G.maxallowed)?G.maxallowed:G&&G.clipmax!==void 0&&P(W,G.clipmin,G.clipmax)?Math.min(E,W.d2l(G.clipmax)):E}(A,R),[F,A]}},23074:function(o){o.exports=function(a,n,l){var f,s;if(l){var c=n==="reversed"||n==="min reversed"||n==="max reversed";f=l[c?1:0],s=l[c?0:1]}var d=a("autorangeoptions.minallowed",s===null?f:void 0),h=a("autorangeoptions.maxallowed",f===null?s:void 0);d===void 0&&a("autorangeoptions.clipmin"),h===void 0&&a("autorangeoptions.clipmax"),a("autorangeoptions.include")}},89298:function(o,a,n){var l=n(39898),f=n(92770),s=n(74875),c=n(73972),d=n(71828),h=d.strTranslate,p=n(63893),m=n(92998),y=n(7901),v=n(91424),g=n(13838),b=n(66287),x=n(50606),_=x.ONEMAXYEAR,w=x.ONEAVGYEAR,k=x.ONEMINYEAR,T=x.ONEMAXQUARTER,M=x.ONEAVGQUARTER,S=x.ONEMINQUARTER,C=x.ONEMAXMONTH,P=x.ONEAVGMONTH,D=x.ONEMINMONTH,O=x.ONEWEEK,R=x.ONEDAY,F=R/2,A=x.ONEHOUR,z=x.ONEMIN,B=x.ONESEC,$=x.MINUS_SIGN,j=x.BADNUM,N={K:"zeroline"},E={K:"gridline",L:"path"},W={K:"minor-gridline",L:"path"},G={K:"tick",L:"path"},L={K:"tick",L:"text"},q={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},H=n(18783),V=H.MID_SHIFT,te=H.CAP_SHIFT,ee=H.LINE_SPACING,U=H.OPPOSITE_SIDE,Q=o.exports={};Q.setConvert=n(21994);var Y=n(4322),Z=n(41675),X=Z.idSort,re=Z.isLinked;Q.id2name=Z.id2name,Q.name2id=Z.name2id,Q.cleanId=Z.cleanId,Q.list=Z.list,Q.listIds=Z.listIds,Q.getFromId=Z.getFromId,Q.getFromTrace=Z.getFromTrace;var ie=n(71739);Q.getAutoRange=ie.getAutoRange,Q.findExtremes=ie.findExtremes;var le=1e-4;function se(ve){var _e=(ve[1]-ve[0])*le;return[ve[0]-_e,ve[1]+_e]}Q.coerceRef=function(ve,_e,Ve,We,Ze,Ge){var Ke=We.charAt(We.length-1),nt=Ve._fullLayout._subplots[Ke+"axis"],st=We+"ref",mt={};return Ze||(Ze=nt[0]||(typeof Ge=="string"?Ge:Ge[0])),Ge||(Ge=Ze),nt=nt.concat(nt.map(function(tt){return tt+" domain"})),mt[st]={valType:"enumerated",values:nt.concat(Ge?typeof Ge=="string"?[Ge]:Ge:[]),dflt:Ze},d.coerce(ve,_e,mt,st)},Q.getRefType=function(ve){return ve===void 0?ve:ve==="paper"?"paper":ve==="pixel"?"pixel":/( domain)$/.test(ve)?"domain":"range"},Q.coercePosition=function(ve,_e,Ve,We,Ze,Ge){var Ke,nt;if(Q.getRefType(We)!=="range")Ke=d.ensureNumber,nt=Ve(Ze,Ge);else{var st=Q.getFromId(_e,We);nt=Ve(Ze,Ge=st.fraction2r(Ge)),Ke=st.cleanPos}ve[Ze]=Ke(nt)},Q.cleanPosition=function(ve,_e,Ve){return(Ve==="paper"||Ve==="pixel"?d.ensureNumber:Q.getFromId(_e,Ve).cleanPos)(ve)},Q.redrawComponents=function(ve,_e){_e=_e||Q.listIds(ve);var Ve=ve._fullLayout;function We(Ze,Ge,Ke,nt){for(var st=c.getComponentMethod(Ze,Ge),mt={},tt=0;tt<_e.length;tt++)for(var Ft=Ve[Q.id2name(_e[tt])][Ke],Vt=0;VtVe&&tt2e-6||((Ve-ve._forceTick0)/ve._minDtick%1+1.000001)%1>2e-6)&&(ve._minDtick=0)):ve._minDtick=0},Q.saveRangeInitial=function(ve,_e){for(var Ve=Q.list(ve,"",!0),We=!1,Ze=0;Ze.3*$t||Lt(qt)||Lt(Et))){var Yt=yt.dtick/2;gt+=gt+Yt.8){var Tt=Number(yt.substr(1));jt.exactYears>.8&&Tt%12==0?gt=Q.tickIncrement(gt,"M6","reverse")+1.5*R:jt.exactMonths>.8?gt=Q.tickIncrement(gt,"M1","reverse")+15.5*R:gt-=F;var Ot=Q.tickIncrement(gt,yt);if(Ot<=qt)return Ot}return gt}(Dt,ve,Nt,nt,Ze)),St=Dt;St<=st;)St=Q.tickIncrement(St,Nt,!1,Ze);return{start:_e.c2r(Dt,0,Ze),end:_e.c2r(St,0,Ze),size:Nt,_dataSpan:st-nt}},Q.prepMinorTicks=function(ve,_e,Ve){if(!_e.minor.dtick){delete ve.dtick;var We,Ze=_e.dtick&&f(_e._tmin);if(Ze){var Ge=Q.tickIncrement(_e._tmin,_e.dtick,!0);We=[_e._tmin,.99*Ge+.01*_e._tmin]}else{var Ke=d.simpleMap(_e.range,_e.r2l);We=[Ke[0],.8*Ke[0]+.2*Ke[1]]}if(ve.range=d.simpleMap(We,_e.l2r),ve._isMinor=!0,Q.prepTicks(ve,Ve),Ze){var nt=f(_e.dtick),st=f(ve.dtick),mt=nt?_e.dtick:+_e.dtick.substring(1),tt=st?ve.dtick:+ve.dtick.substring(1);nt&&st?Oe(mt,tt)?mt===2*O&&tt===2*R&&(ve.dtick=O):mt===2*O&&tt===3*R?ve.dtick=O:mt!==O||(_e._input.minor||{}).nticks?Me(mt/tt,2.5)?ve.dtick=mt/2:ve.dtick=mt:ve.dtick=R:String(_e.dtick).charAt(0)==="M"?st?ve.dtick="M1":Oe(mt,tt)?mt>=12&&tt===2&&(ve.dtick="M3"):ve.dtick=_e.dtick:String(ve.dtick).charAt(0)==="L"?String(_e.dtick).charAt(0)==="L"?Oe(mt,tt)||(ve.dtick=Me(mt/tt,2.5)?_e.dtick/2:_e.dtick):ve.dtick="D1":ve.dtick==="D2"&&+_e.dtick>1&&(ve.dtick=1)}ve.range=_e.range}_e.minor._tick0Init===void 0&&(ve.tick0=_e.tick0)},Q.prepTicks=function(ve,_e){var Ve=d.simpleMap(ve.range,ve.r2l,void 0,void 0,_e);if(ve.tickmode==="auto"||!ve.dtick){var We,Ze=ve.nticks;Ze||(ve.type==="category"||ve.type==="multicategory"?(We=ve.tickfont?d.bigFont(ve.tickfont.size||12):15,Ze=ve._length/We):(We=ve._id.charAt(0)==="y"?40:80,Ze=d.constrain(ve._length/We,4,9)+1),ve._name==="radialaxis"&&(Ze*=2)),ve.minor&&ve.minor.tickmode!=="array"||ve.tickmode==="array"&&(Ze*=100),ve._roughDTick=Math.abs(Ve[1]-Ve[0])/Ze,Q.autoTicks(ve,ve._roughDTick),ve._minDtick>0&&ve.dtick<2*ve._minDtick&&(ve.dtick=ve._minDtick,ve.tick0=ve.l2r(ve._forceTick0))}ve.ticklabelmode==="period"&&function(Ge){var Ke;function nt(){return!(f(Ge.dtick)||Ge.dtick.charAt(0)!=="M")}var st=nt(),mt=Q.getTickFormat(Ge);if(mt){var tt=Ge._dtickInit!==Ge.dtick;/%[fLQsSMX]/.test(mt)||(/%[HI]/.test(mt)?(Ke=A,tt&&!st&&Ge.dtick=(ht?0:1);yt--){var qt=!yt;yt?(ve._dtickInit=ve.dtick,ve._tick0Init=ve.tick0):(ve.minor._dtickInit=ve.minor.dtick,ve.minor._tick0Init=ve.minor.tick0);var Et=yt?ve:d.extendFlat({},ve,ve.minor);if(qt?Q.prepMinorTicks(Et,ve,_e):Q.prepTicks(Et,_e),Et.tickmode!=="array")if(Et.tickmode!=="sync"){var jt=se(st),Tt=jt[0],Ot=jt[1],At=f(Et.dtick),Lt=Ze==="log"&&!(At||Et.dtick.charAt(0)==="L"),Rt=Q.tickFirst(Et,_e);if(yt){if(ve._tmin=Rt,Rt=Ot:Bt<=Ot;Bt=Q.tickIncrement(Bt,Wt,mt,Ge)){if(yt&&$t++,Et.rangebreaks&&!mt){if(Bt=Ft)break}if(Dt.length>Vt||Bt===Xt)break;Xt=Bt;var tn={value:Bt};yt?(Lt&&Bt!==(0|Bt)&&(tn.simpleLabel=!0),Ke>1&&$t%Ke&&(tn.skipLabel=!0),Dt.push(tn)):(tn.minor=!0,gt.push(tn))}}else Dt=[],St=J(ve);else yt?(Dt=[],St=ne(ve)):(gt=[],Nt=ne(ve))}if(ht&&!(ve.minor.ticks==="inside"&&ve.ticks==="outside"||ve.minor.ticks==="outside"&&ve.ticks==="inside")){for(var cn=Dt.map(function(lr){return lr.value}),ln=[],an=0;an0?(la=ur-1,An=ur):(la=ur,An=ur);var on,$n=lr[la].value,Pr=lr[An].value,Ln=Math.abs(Pr-$n),Bn=Ar||Ln,jn=0;Bn>=k?jn=Ln>=k&&Ln<=_?Ln:w:Ar===M&&Bn>=S?jn=Ln>=S&&Ln<=T?Ln:M:Bn>=D?jn=Ln>=D&&Ln<=C?Ln:P:Ar===O&&Bn>=O?jn=O:Bn>=R?jn=R:Ar===F&&Bn>=F?jn=F:Ar===A&&Bn>=A&&(jn=A),jn>=Ln&&(jn=Ln,on=!0);var Un=kr+jn;if(ti.rangebreaks&&jn>0){for(var Lr=0,xr=0;xr<84;xr++){var Mr=(xr+.5)/84;ti.maskBreaks(kr*(1-Mr)+Mr*Un)!==j&&Lr++}(jn*=Lr/84)||(lr[ur].drop=!0),on&&Ln>O&&(jn=Ln)}(jn>0||ur===0)&&(lr[ur].periodX=kr+jn/2)}}(Dt,ve,ve._definedDelta),ve.rangebreaks){var Kt=ve._id.charAt(0)==="y",On=1;ve.tickmode==="auto"&&(On=ve.tickfont?ve.tickfont.size:12);var Tn=NaN;for(Ve=Dt.length-1;Ve>-1;Ve--)if(Dt[Ve].drop)Dt.splice(Ve,1);else{Dt[Ve].value=It(Dt[Ve].value,ve);var Dn=ve.c2p(Dt[Ve].value);(Kt?Tn>Dn-On:TnFt||EnFt&&(wn.periodX=Ft),En10||We.substr(5)!=="01-01"?ve._tickround="d":ve._tickround=+_e.substr(1)%12==0?"y":"m";else if(_e>=R&&Ze<=10||_e>=15*R)ve._tickround="d";else if(_e>=z&&Ze<=16||_e>=A)ve._tickround="M";else if(_e>=B&&Ze<=19||_e>=z)ve._tickround="S";else{var Ge=ve.l2r(Ve+_e).replace(/^-/,"").length;ve._tickround=Math.max(Ze,Ge)-20,ve._tickround<0&&(ve._tickround=4)}}else if(f(_e)||_e.charAt(0)==="L"){var Ke=ve.range.map(ve.r2d||Number);f(_e)||(_e=Number(_e.substr(1))),ve._tickround=2-Math.floor(Math.log(_e)/Math.LN10+.01);var nt=Math.max(Math.abs(Ke[0]),Math.abs(Ke[1])),st=Math.floor(Math.log(nt)/Math.LN10+.01),mt=ve.minexponent===void 0?3:ve.minexponent;Math.abs(st)>mt&&(Ie(ve.exponentformat)&&!Be(st)?ve._tickexponent=3*Math.round((st-1)/3):ve._tickexponent=st)}else ve._tickround=null}function De(ve,_e,Ve){var We=ve.tickfont||{};return{x:_e,dx:0,dy:0,text:Ve||"",fontSize:We.size,font:We.family,fontColor:We.color}}Q.autoTicks=function(ve,_e,Ve){var We;function Ze(Ft){return Math.pow(Ft,Math.floor(Math.log(_e)/Math.LN10))}if(ve.type==="date"){ve.tick0=d.dateTick0(ve.calendar,0);var Ge=2*_e;if(Ge>w)_e/=w,We=Ze(10),ve.dtick="M"+12*Ae(_e,We,de);else if(Ge>P)_e/=P,ve.dtick="M"+Ae(_e,1,xe);else if(Ge>R){if(ve.dtick=Ae(_e,R,ve._hasDayOfWeekBreaks?[1,2,7,14]:ge),!Ve){var Ke=Q.getTickFormat(ve),nt=ve.ticklabelmode==="period";nt&&(ve._rawTick0=ve.tick0),/%[uVW]/.test(Ke)?ve.tick0=d.dateTick0(ve.calendar,2):ve.tick0=d.dateTick0(ve.calendar,1),nt&&(ve._dowTick0=ve.tick0)}}else Ge>A?ve.dtick=Ae(_e,A,xe):Ge>z?ve.dtick=Ae(_e,z,ue):Ge>B?ve.dtick=Ae(_e,B,ue):(We=Ze(10),ve.dtick=Ae(_e,We,de))}else if(ve.type==="log"){ve.tick0=0;var st=d.simpleMap(ve.range,ve.r2l);if(ve._isMinor&&(_e*=1.5),_e>.7)ve.dtick=Math.ceil(_e);else if(Math.abs(st[1]-st[0])<1){var mt=1.5*Math.abs((st[1]-st[0])/_e);_e=Math.abs(Math.pow(10,st[1])-Math.pow(10,st[0]))/mt,We=Ze(10),ve.dtick="L"+Ae(_e,We,de)}else ve.dtick=_e>.3?"D2":"D1"}else ve.type==="category"||ve.type==="multicategory"?(ve.tick0=0,ve.dtick=Math.ceil(Math.max(_e,1))):pt(ve)?(ve.tick0=0,We=1,ve.dtick=Ae(_e,We,ke)):(ve.tick0=0,We=Ze(10),ve.dtick=Ae(_e,We,de));if(ve.dtick===0&&(ve.dtick=1),!f(ve.dtick)&&typeof ve.dtick!="string"){var tt=ve.dtick;throw ve.dtick=1,"ax.dtick error: "+String(tt)}},Q.tickIncrement=function(ve,_e,Ve,We){var Ze=Ve?-1:1;if(f(_e))return d.increment(ve,Ze*_e);var Ge=_e.charAt(0),Ke=Ze*Number(_e.substr(1));if(Ge==="M")return d.incrementMonth(ve,Ke,We);if(Ge==="L")return Math.log(Math.pow(10,ve)+Ke)/Math.LN10;if(Ge==="D"){var nt=_e==="D2"?we:be,st=ve+.01*Ze,mt=d.roundUp(d.mod(st,1),nt,Ve);return Math.floor(st)+Math.log(l.round(Math.pow(10,mt),1))/Math.LN10}throw"unrecognized dtick "+String(_e)},Q.tickFirst=function(ve,_e){var Ve=ve.r2l||Number,We=d.simpleMap(ve.range,Ve,void 0,void 0,_e),Ze=We[1] ")}else gt._prevDateHead=Tt,Ot+="
"+Tt;ht.text=Ot}(ve,Ge,Ve,nt):st==="log"?function(gt,ht,yt,qt,Et){var jt=gt.dtick,Tt=ht.x,Ot=gt.tickformat,At=typeof jt=="string"&&jt.charAt(0);if(Et==="never"&&(Et=""),qt&&At!=="L"&&(jt="L3",At="L"),Ot||At==="L")ht.text=Ue(Math.pow(10,Tt),gt,Et,qt);else if(f(jt)||At==="D"&&d.mod(Tt+.01,1)<.1){var Lt=Math.round(Tt),Rt=Math.abs(Lt),$t=gt.exponentformat;$t==="power"||Ie($t)&&Be(Lt)?(ht.text=Lt===0?1:Lt===1?"10":"10"+(Lt>1?"":$)+Rt+"",ht.fontSize*=1.25):($t==="e"||$t==="E")&&Rt>2?ht.text="1"+$t+(Lt>0?"+":$)+Rt:(ht.text=Ue(Math.pow(10,Tt),gt,"","fakehover"),jt==="D1"&>._id.charAt(0)==="y"&&(ht.dy-=ht.fontSize/6))}else{if(At!=="D")throw"unrecognized dtick "+String(jt);ht.text=String(Math.round(Math.pow(10,d.mod(Tt,1)))),ht.fontSize*=.75}if(gt.dtick==="D1"){var Yt=String(ht.text).charAt(0);Yt!=="0"&&Yt!=="1"||(gt._id.charAt(0)==="y"?ht.dx-=ht.fontSize/4:(ht.dy+=ht.fontSize/2,ht.dx+=(gt.range[1]>gt.range[0]?1:-1)*ht.fontSize*(Tt<0?.5:.25)))}}(ve,Ge,0,nt,St):st==="category"?function(gt,ht){var yt=gt._categories[Math.round(ht.x)];yt===void 0&&(yt=""),ht.text=String(yt)}(ve,Ge):st==="multicategory"?function(gt,ht,yt){var qt=Math.round(ht.x),Et=gt._categories[qt]||[],jt=Et[1]===void 0?"":String(Et[1]),Tt=Et[0]===void 0?"":String(Et[0]);yt?ht.text=Tt+" - "+jt:(ht.text=jt,ht.text2=Tt)}(ve,Ge,Ve):pt(ve)?function(gt,ht,yt,qt,Et){if(gt.thetaunit!=="radians"||yt)ht.text=Ue(ht.x,gt,Et,qt);else{var jt=ht.x/180;if(jt===0)ht.text="0";else{var Tt=function(At){function Lt(Xt,Bt){return Math.abs(Xt-Bt)<=1e-6}var Rt=function(Xt){for(var Bt=1;!Lt(Math.round(Xt*Bt)/Bt,Xt);)Bt*=10;return Bt}(At),$t=At*Rt,Yt=Math.abs(function Xt(Bt,Wt){return Lt(Wt,0)?Bt:Xt(Wt,Bt%Wt)}($t,Rt));return[Math.round($t/Yt),Math.round(Rt/Yt)]}(jt);if(Tt[1]>=100)ht.text=Ue(d.deg2rad(ht.x),gt,Et,qt);else{var Ot=ht.x<0;Tt[1]===1?Tt[0]===1?ht.text="π":ht.text=Tt[0]+"π":ht.text=["",Tt[0],"","⁄","",Tt[1],"","π"].join(""),Ot&&(ht.text=$+ht.text)}}}}(ve,Ge,Ve,nt,St):function(gt,ht,yt,qt,Et){Et==="never"?Et="":gt.showexponent==="all"&&Math.abs(ht.x/gt.dtick)<1e-6&&(Et="hide"),ht.text=Ue(ht.x,gt,Et,qt)}(ve,Ge,0,nt,St),We||(ve.tickprefix&&!Vt(ve.showtickprefix)&&(Ge.text=ve.tickprefix+Ge.text),ve.ticksuffix&&!Vt(ve.showticksuffix)&&(Ge.text+=ve.ticksuffix)),ve.labelalias&&ve.labelalias.hasOwnProperty(Ge.text)){var Nt=ve.labelalias[Ge.text];typeof Nt=="string"&&(Ge.text=Nt)}if(ve.tickson==="boundaries"||ve.showdividers){var Dt=function(gt){var ht=ve.l2p(gt);return ht>=0&&ht<=ve._length?gt:null};Ge.xbnd=[Dt(Ge.x-.5),Dt(Ge.x+ve.dtick-.5)]}return Ge},Q.hoverLabelText=function(ve,_e,Ve){Ve&&(ve=d.extendFlat({},ve,{hoverformat:Ve}));var We=Array.isArray(_e)?_e[0]:_e,Ze=Array.isArray(_e)?_e[1]:void 0;if(Ze!==void 0&&Ze!==We)return Q.hoverLabelText(ve,We,Ve)+" - "+Q.hoverLabelText(ve,Ze,Ve);var Ge=ve.type==="log"&&We<=0,Ke=Q.tickText(ve,ve.c2l(Ge?-We:We),"hover").text;return Ge?We===0?"0":$+Ke:Ke};var Re=["f","p","n","μ","m","","k","M","G","T"];function Ie(ve){return ve==="SI"||ve==="B"}function Be(ve){return ve>14||ve<-15}function Ue(ve,_e,Ve,We){var Ze=ve<0,Ge=_e._tickround,Ke=Ve||_e.exponentformat||"B",nt=_e._tickexponent,st=Q.getTickFormat(_e),mt=_e.separatethousands;if(We){var tt={exponentformat:Ke,minexponent:_e.minexponent,dtick:_e.showexponent==="none"?_e.dtick:f(ve)&&Math.abs(ve)||1,range:_e.showexponent==="none"?_e.range.map(_e.r2d):[0,ve||1]};Ee(tt),Ge=(Number(tt._tickround)||0)+4,nt=tt._tickexponent,_e.hoverformat&&(st=_e.hoverformat)}if(st)return _e._numFormat(st)(ve).replace(/-/g,$);var Ft,Vt=Math.pow(10,-Ge)/2;if(Ke==="none"&&(nt=0),(ve=Math.abs(ve))"+Ft+"":Ke==="B"&&nt===9?ve+="B":Ie(Ke)&&(ve+=Re[nt/3+5])),Ze?$+ve:ve}function qe(ve,_e){if(ve){var Ve=Object.keys(q).reduce(function(We,Ze){return _e.indexOf(Ze)!==-1&&q[Ze].forEach(function(Ge){We[Ge]=1}),We},{});Object.keys(ve).forEach(function(We){Ve[We]||(We.length===1?ve[We]=0:delete ve[We])})}}function Ye(ve,_e){for(var Ve=[],We={},Ze=0;Ze<_e.length;Ze++){var Ge=_e[Ze];We[Ge.text2]?We[Ge.text2].push(Ge.x):We[Ge.text2]=[Ge.x]}for(var Ke in We)Ve.push(De(ve,d.interp(We[Ke],.5),Ke));return Ve}function at(ve){return ve.periodX!==void 0?ve.periodX:ve.x}function lt(ve){return[ve.text,ve.x,ve.axInfo,ve.font,ve.fontSize,ve.fontColor].join("_")}function ct(ve){var _e=ve.title.font.size,Ve=(ve.title.text.match(p.BR_TAG_ALL)||[]).length;return ve.title.hasOwnProperty("standoff")?Ve?_e*(te+Ve*ee):_e*te:Ve?_e*(Ve+1)*ee:_e}function bt(ve,_e){var Ve=ve.l2p(_e);return Ve>1&&Ve=Ze.min&&ve=0,ht=tt(Vt,St[1])<=0;return(Nt||gt)&&(Dt||ht)}if(ve.tickformatstops&&ve.tickformatstops.length>0)switch(ve.type){case"date":case"linear":for(_e=0;_e=Ke(Ze)))){Ve=We;break}break;case"log":for(_e=0;_e=0&&Ze.unshift(Ze.splice(mt,1).shift())}});var Ke={false:{left:0,right:0}};return d.syncOrAsync(Ze.map(function(nt){return function(){if(nt){var st=Q.getFromId(ve,nt);Ve||(Ve={}),Ve.axShifts=Ke,Ve.overlayingShiftedAx=Ge;var mt=Q.drawOne(ve,st,Ve);return st._shiftPusher&&wt(st,st._fullDepth||0,Ke,!0),st._r=st.range.slice(),st._rl=d.simpleMap(st._r,st.r2l),mt}}}))},Q.drawOne=function(ve,_e,Ve){var We,Ze,Ge,Ke=(Ve=Ve||{}).axShifts||{},nt=Ve.overlayingShiftedAx||[];_e.setScale();var st=ve._fullLayout,mt=_e._id,tt=mt.charAt(0),Ft=Q.counterLetter(mt),Vt=st._plots[_e._mainSubplot];if(Vt){if(_e._shiftPusher=_e.autoshift||nt.indexOf(_e._id)!==-1||nt.indexOf(_e.overlaying)!==-1,_e._shiftPusher&_e.anchor==="free"){var St=_e.linewidth/2||0;_e.ticks==="inside"&&(St+=_e.ticklen),wt(_e,St,Ke,!0),wt(_e,_e.shift||0,Ke,!1)}Ve.skipTitle===!0&&_e._shift!==void 0||(_e._shift=function(An,on){return An.autoshift?on[An.overlaying][An.side]:An.shift||0}(_e,Ke));var Nt=Vt[tt+"axislayer"],Dt=_e._mainLinePosition,gt=Dt+=_e._shift,ht=_e._mainMirrorPosition,yt=_e._vals=Q.calcTicks(_e),qt=[_e.mirror,gt,ht].join("_");for(We=0;We0?An.bottom-jn:0,Un))));var Lr=0,xr=0;if(_e._shiftPusher&&(Lr=Math.max(Un,An.height>0?Ln==="l"?jn-An.left:An.right-jn:0),_e.title.text!==st._dfltTitle[tt]&&(xr=(_e._titleStandoff||0)+(_e._titleScoot||0),Ln==="l"&&(xr+=ct(_e))),_e._fullDepth=Math.max(Lr,xr)),_e.automargin){on={x:0,y:0,r:0,l:0,t:0,b:0};var Mr=[0,1],Na=typeof _e._shift=="number"?_e._shift:0;if(tt==="x"){if(Ln==="b"?on[Ln]=_e._depth:(on[Ln]=_e._depth=Math.max(An.width>0?jn-An.top:0,Un),Mr.reverse()),An.width>0){var wa=An.right-(_e._offset+_e._length);wa>0&&(on.xr=1,on.r=wa);var sa=_e._offset-An.left;sa>0&&(on.xl=0,on.l=sa)}}else if(Ln==="l"?(_e._depth=Math.max(An.height>0?jn-An.left:0,Un),on[Ln]=_e._depth-Na):(_e._depth=Math.max(An.height>0?An.right-jn:0,Un),on[Ln]=_e._depth+Na,Mr.reverse()),An.height>0){var kn=An.bottom-(_e._offset+_e._length);kn>0&&(on.yb=0,on.b=kn);var Dr=_e._offset-An.top;Dr>0&&(on.yt=1,on.t=Dr)}on[Ft]=_e.anchor==="free"?_e.position:_e._anchorAxis.domain[Mr[0]],_e.title.text!==st._dfltTitle[tt]&&(on[Ln]+=ct(_e)+(_e.title.standoff||0)),_e.mirror&&_e.anchor!=="free"&&(($n={x:0,y:0,r:0,l:0,t:0,b:0})[Bn]=_e.linewidth,_e.mirror&&_e.mirror!==!0&&($n[Bn]+=Un),_e.mirror===!0||_e.mirror==="ticks"?$n[Ft]=_e._anchorAxis.domain[Mr[1]]:_e.mirror!=="all"&&_e.mirror!=="allticks"||($n[Ft]=[_e._counterDomainMin,_e._counterDomainMax][Mr[1]]))}kr&&(Pr=c.getComponentMethod("rangeslider","autoMarginOpts")(ve,_e)),typeof _e.automargin=="string"&&(qe(on,_e.automargin),qe($n,_e.automargin)),s.autoMargin(ve,Ne(_e),on),s.autoMargin(ve,Qe(_e),$n),s.autoMargin(ve,it(_e),Pr)}),d.syncOrAsync(Ar)}}function la(An){var on=mt+(An||"tick");return Et[on]||(Et[on]=function($n,Pr){var Ln,Bn,jn,Un;return $n._selections[Pr].size()?(Ln=1/0,Bn=-1/0,jn=1/0,Un=-1/0,$n._selections[Pr].each(function(){var Lr=ze(this),xr=v.bBox(Lr.node().parentNode);Ln=Math.min(Ln,xr.top),Bn=Math.max(Bn,xr.bottom),jn=Math.min(jn,xr.left),Un=Math.max(Un,xr.right)})):(Ln=0,Bn=0,jn=0,Un=0),{top:Ln,bottom:Bn,left:jn,right:Un,height:Bn-Ln,width:Un-jn}}(_e,on)),Et[on]}},Q.getTickSigns=function(ve,_e){var Ve=ve._id.charAt(0),We={x:"top",y:"right"}[Ve],Ze=ve.side===We?1:-1,Ge=[-1,1,Ze,-Ze];return(_e?(ve.minor||{}).ticks:ve.ticks)!=="inside"==(Ve==="x")&&(Ge=Ge.map(function(Ke){return-Ke})),ve.side&&Ge.push({l:-1,t:-1,r:1,b:1}[ve.side.charAt(0)]),Ge},Q.makeTransTickFn=function(ve){return ve._id.charAt(0)==="x"?function(_e){return h(ve._offset+ve.l2p(_e.x),0)}:function(_e){return h(0,ve._offset+ve.l2p(_e.x))}},Q.makeTransTickLabelFn=function(ve){var _e=function(Ze){var Ge=Ze.ticklabelposition||"",Ke=function(ht){return Ge.indexOf(ht)!==-1},nt=Ke("top"),st=Ke("left"),mt=Ke("right"),tt=Ke("bottom"),Ft=Ke("inside"),Vt=tt||st||nt||mt;if(!Vt&&!Ft)return[0,0];var St=Ze.side,Nt=Vt?(Ze.tickwidth||0)/2:0,Dt=3,gt=Ze.tickfont?Ze.tickfont.size:12;return(tt||nt)&&(Nt+=gt*te,Dt+=(Ze.linewidth||0)/2),(st||mt)&&(Nt+=(Ze.linewidth||0)/2,Dt+=3),Ft&&St==="top"&&(Dt-=gt*(1-te)),(st||nt)&&(Nt=-Nt),St!=="bottom"&&St!=="right"||(Dt=-Dt),[Vt?Nt:0,Ft?Dt:0]}(ve),Ve=_e[0],We=_e[1];return ve._id.charAt(0)==="x"?function(Ze){return h(Ve+ve._offset+ve.l2p(at(Ze)),We)}:function(Ze){return h(We,Ve+ve._offset+ve.l2p(at(Ze)))}},Q.makeTickPath=function(ve,_e,Ve,We){We||(We={});var Ze=We.minor;if(Ze&&!ve.minor)return"";var Ge=We.len!==void 0?We.len:Ze?ve.minor.ticklen:ve.ticklen,Ke=ve._id.charAt(0),nt=(ve.linewidth||1)/2;return Ke==="x"?"M0,"+(_e+nt*Ve)+"v"+Ge*Ve:"M"+(_e+nt*Ve)+",0h"+Ge*Ve},Q.makeLabelFns=function(ve,_e,Ve){var We=ve.ticklabelposition||"",Ze=function($t){return We.indexOf($t)!==-1},Ge=Ze("top"),Ke=Ze("left"),nt=Ze("right"),st=Ze("bottom")||Ke||Ge||nt,mt=Ze("inside"),tt=We==="inside"&&ve.ticks==="inside"||!mt&&ve.ticks==="outside"&&ve.tickson!=="boundaries",Ft=0,Vt=0,St=tt?ve.ticklen:0;if(mt?St*=-1:st&&(St=0),tt&&(Ft+=St,Ve)){var Nt=d.deg2rad(Ve);Ft=St*Math.cos(Nt)+1,Vt=St*Math.sin(Nt)}ve.showticklabels&&(tt||ve.showline)&&(Ft+=.2*ve.tickfont.size);var Dt,gt,ht,yt,qt,Et={labelStandoff:Ft+=(ve.linewidth||1)/2*(mt?-1:1),labelShift:Vt},jt=0,Tt=ve.side,Ot=ve._id.charAt(0),At=ve.tickangle;if(Ot==="x")yt=(qt=!mt&&Tt==="bottom"||mt&&Tt==="top")?1:-1,mt&&(yt*=-1),Dt=Vt*yt,gt=_e+Ft*yt,ht=qt?1:-.2,Math.abs(At)===90&&(mt?ht+=V:ht=At===-90&&Tt==="bottom"?te:At===90&&Tt==="top"?V:.5,jt=V/2*(At/90)),Et.xFn=function($t){return $t.dx+Dt+jt*$t.fontSize},Et.yFn=function($t){return $t.dy+gt+$t.fontSize*ht},Et.anchorFn=function($t,Yt){if(st){if(Ke)return"end";if(nt)return"start"}return f(Yt)&&Yt!==0&&Yt!==180?Yt*yt<0!==mt?"end":"start":"middle"},Et.heightFn=function($t,Yt,Xt){return Yt<-60||Yt>60?-.5*Xt:ve.side==="top"!==mt?-Xt:0};else if(Ot==="y"){if(yt=(qt=!mt&&Tt==="left"||mt&&Tt==="right")?1:-1,mt&&(yt*=-1),Dt=Ft,gt=Vt*yt,ht=0,mt||Math.abs(At)!==90||(ht=At===-90&&Tt==="left"||At===90&&Tt==="right"?te:.5),mt){var Lt=f(At)?+At:0;if(Lt!==0){var Rt=d.deg2rad(Lt);jt=Math.abs(Math.sin(Rt))*te*yt,ht=0}}Et.xFn=function($t){return $t.dx+_e-(Dt+$t.fontSize*ht)*yt+jt*$t.fontSize},Et.yFn=function($t){return $t.dy+gt+$t.fontSize*V},Et.anchorFn=function($t,Yt){return f(Yt)&&Math.abs(Yt)===90?"middle":qt?"end":"start"},Et.heightFn=function($t,Yt,Xt){return ve.side==="right"&&(Yt*=-1),Yt<-30?-Xt:Yt<30?-.5*Xt:0}}return Et},Q.drawTicks=function(ve,_e,Ve){Ve=Ve||{};var We=_e._id+"tick",Ze=[].concat(_e.minor&&_e.minor.ticks?Ve.vals.filter(function(Ke){return Ke.minor&&!Ke.noTick}):[]).concat(_e.ticks?Ve.vals.filter(function(Ke){return!Ke.minor&&!Ke.noTick}):[]),Ge=Ve.layer.selectAll("path."+We).data(Ze,lt);Ge.exit().remove(),Ge.enter().append("path").classed(We,1).classed("ticks",1).classed("crisp",Ve.crisp!==!1).each(function(Ke){return y.stroke(l.select(this),Ke.minor?_e.minor.tickcolor:_e.tickcolor)}).style("stroke-width",function(Ke){return v.crispRound(ve,Ke.minor?_e.minor.tickwidth:_e.tickwidth,1)+"px"}).attr("d",Ve.path).style("display",null),zt(_e,[G]),Ge.attr("transform",Ve.transFn)},Q.drawGrid=function(ve,_e,Ve){if(Ve=Ve||{},_e.tickmode!=="sync"){var We=_e._id+"grid",Ze=_e.minor&&_e.minor.showgrid,Ge=Ze?Ve.vals.filter(function(ht){return ht.minor}):[],Ke=_e.showgrid?Ve.vals.filter(function(ht){return!ht.minor}):[],nt=Ve.counterAxis;if(nt&&Q.shouldShowZeroLine(ve,_e,nt))for(var st=_e.tickmode==="array",mt=0;mt=0;Nt--){var Dt=Nt?Vt:St;if(Dt){var gt=Dt.selectAll("path."+We).data(Nt?Ke:Ge,lt);gt.exit().remove(),gt.enter().append("path").classed(We,1).classed("crisp",Ve.crisp!==!1),gt.attr("transform",Ve.transFn).attr("d",Ve.path).each(function(ht){return y.stroke(l.select(this),ht.minor?_e.minor.gridcolor:_e.gridcolor||"#ddd")}).style("stroke-dasharray",function(ht){return v.dashStyle(ht.minor?_e.minor.griddash:_e.griddash,ht.minor?_e.minor.gridwidth:_e.gridwidth)}).style("stroke-width",function(ht){return(ht.minor?Ft:_e._gw)+"px"}).style("display",null),typeof Ve.path=="function"&>.attr("d",Ve.path)}}zt(_e,[E,W])}},Q.drawZeroLine=function(ve,_e,Ve){Ve=Ve||Ve;var We=_e._id+"zl",Ze=Q.shouldShowZeroLine(ve,_e,Ve.counterAxis),Ge=Ve.layer.selectAll("path."+We).data(Ze?[{x:0,id:_e._id}]:[]);Ge.exit().remove(),Ge.enter().append("path").classed(We,1).classed("zl",1).classed("crisp",Ve.crisp!==!1).each(function(){Ve.layer.selectAll("path").sort(function(Ke,nt){return X(Ke.id,nt.id)})}),Ge.attr("transform",Ve.transFn).attr("d",Ve.path).call(y.stroke,_e.zerolinecolor||y.defaultLine).style("stroke-width",v.crispRound(ve,_e.zerolinewidth,_e._gw||1)+"px").style("display",null),zt(_e,[N])},Q.drawLabels=function(ve,_e,Ve){Ve=Ve||{};var We=ve._fullLayout,Ze=_e._id,Ge=Ze.charAt(0),Ke=Ve.cls||Ze+"tick",nt=Ve.vals.filter(function(yt){return yt.text}),st=Ve.labelFns,mt=Ve.secondary?0:_e.tickangle,tt=(_e._prevTickAngles||{})[Ke],Ft=Ve.layer.selectAll("g."+Ke).data(_e.showticklabels?nt:[],lt),Vt=[];function St(yt,qt){yt.each(function(Et){var jt=l.select(this),Tt=jt.select(".text-math-group"),Ot=st.anchorFn(Et,qt),At=Ve.transFn.call(jt.node(),Et)+(f(qt)&&+qt!=0?" rotate("+qt+","+st.xFn(Et)+","+(st.yFn(Et)-Et.fontSize/2)+")":""),Lt=p.lineCount(jt),Rt=ee*Et.fontSize,$t=st.heightFn(Et,f(qt)?+qt:0,(Lt-1)*Rt);if($t&&(At+=h(0,$t)),Tt.empty()){var Yt=jt.select("text");Yt.attr({transform:At,"text-anchor":Ot}),Yt.style("opacity",1),_e._adjustTickLabelsOverflow&&_e._adjustTickLabelsOverflow()}else{var Xt=v.bBox(Tt.node()).width*{end:-.5,start:.5}[Ot];Tt.attr("transform",At+h(Xt,0))}})}Ft.enter().append("g").classed(Ke,1).append("text").attr("text-anchor","middle").each(function(yt){var qt=l.select(this),Et=ve._promises.length;qt.call(p.positionText,st.xFn(yt),st.yFn(yt)).call(v.font,yt.font,yt.fontSize,yt.fontColor).text(yt.text).call(p.convertToTspans,ve),ve._promises[Et]?Vt.push(ve._promises.pop().then(function(){St(qt,mt)})):St(qt,mt)}),zt(_e,[L]),Ft.exit().remove(),Ve.repositionOnUpdate&&Ft.each(function(yt){l.select(this).select("text").call(p.positionText,st.xFn(yt),st.yFn(yt))}),_e._adjustTickLabelsOverflow=function(){var yt=_e.ticklabeloverflow;if(yt&&yt!=="allow"){var qt=yt.indexOf("hide")!==-1,Et=_e._id.charAt(0)==="x",jt=0,Tt=Et?ve._fullLayout.width:ve._fullLayout.height;if(yt.indexOf("domain")!==-1){var Ot=d.simpleMap(_e.range,_e.r2l);jt=_e.l2p(Ot[0])+_e._offset,Tt=_e.l2p(Ot[1])+_e._offset}var At=Math.min(jt,Tt),Lt=Math.max(jt,Tt),Rt=_e.side,$t=1/0,Yt=-1/0;for(var Xt in Ft.each(function(tn){var cn=l.select(this);if(cn.select(".text-math-group").empty()){var ln=v.bBox(cn.node()),an=0;Et?(ln.right>Lt||ln.leftLt||ln.top+(_e.tickangle?0:tn.fontSize/4)_e["_visibleLabelMin_"+Ot._id]?Wt.style("display","none"):Lt.K!=="tick"||At||Wt.style("display",null)})})})})},St(Ft,tt+1?tt:mt);var Nt=null;_e._selections&&(_e._selections[Ke]=Ft);var Dt=[function(){return Vt.length&&Promise.all(Vt)}];_e.automargin&&We._redrawFromAutoMarginCount&&tt===90?(Nt=90,Dt.push(function(){St(Ft,tt)})):Dt.push(function(){if(St(Ft,mt),nt.length&&Ge==="x"&&!f(mt)&&(_e.type!=="log"||String(_e.dtick).charAt(0)!=="D")){Nt=0;var yt,qt=0,Et=[];if(Ft.each(function(cn){qt=Math.max(qt,cn.fontSize);var ln=_e.l2p(cn.x),an=ze(this),sn=v.bBox(an.node());Et.push({top:0,bottom:10,height:10,left:ln-sn.width/2,right:ln+sn.width/2+2,width:sn.width+2})}),_e.tickson!=="boundaries"&&!_e.showdividers||Ve.secondary){var jt=nt.length,Tt=Math.abs((nt[jt-1].x-nt[0].x)*_e._m)/(jt-1),Ot=_e.ticklabelposition||"",At=function(cn){return Ot.indexOf(cn)!==-1},Lt=At("top"),Rt=At("left"),$t=At("right"),Yt=At("bottom")||Rt||Lt||$t?(_e.tickwidth||0)+6:0,Xt=Tt<2.5*qt||_e.type==="multicategory"||_e._name==="realaxis";for(yt=0;yt1)for(nt=1;nt2*R}(x,g))return"date";var M=b.autotypenumbers!=="strict";return function(S,C){for(var P=S.length,D=y(P),O=0,R=0,F={},A=0;A2*O}(x,M)?"category":function(S,C){for(var P=S.length,D=0;D=2){var F,A,z="";if(R.length===2){for(F=0;F<2;F++)if(A=S(R[F])){z=w;break}}var B=O("pattern",z);if(B===w)for(F=0;F<2;F++)(A=S(R[F]))&&(P.bounds[F]=R[F]=A-1);if(B)for(F=0;F<2;F++)switch(A=R[F],B){case w:if(!l(A)||(A=+A)!==Math.floor(A)||A<0||A>=7)return void(P.enabled=!1);P.bounds[F]=R[F]=A;break;case k:if(!l(A)||(A=+A)<0||A>24)return void(P.enabled=!1);P.bounds[F]=R[F]=A}if(D.autorange===!1){var $=D.range;if($[0]<$[1]){if(R[0]<$[0]&&R[1]>$[1])return void(P.enabled=!1)}else if(R[0]>$[0]&&R[1]<$[1])return void(P.enabled=!1)}}else{var j=O("values");if(!j||!j.length)return void(P.enabled=!1);O("dvalue")}}}o.exports=function(C,P,D,O,R){var F,A=O.letter,z=O.font||{},B=O.splomStash||{},$=D("visible",!O.visibleDflt),j=P._template||{},N=P.type||j.type||"-";N==="date"&&(f.getComponentMethod("calendars","handleDefaults")(C,P,"calendar",O.calendar),O.noTicklabelmode||(F=D("ticklabelmode")));var E="";O.noTicklabelposition&&N!=="multicategory"||(E=s.coerce(C,P,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:F==="period"?["outside","inside"]:A==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),O.noTicklabeloverflow||D("ticklabeloverflow",E.indexOf("inside")!==-1?"hide past domain":N==="category"||N==="multicategory"?"allow":"hide past div"),_(P,R),x(C,P,D,O),g(C,P,D,O),N==="category"||O.noHover||D("hoverformat");var W=D("color"),G=W!==h.color.dflt?W:z.color,L=B.label||R._dfltTitle[A];if(v(C,P,D,N,O),!$)return P;D("title.text",L),s.coerceFont(D,"title.font",{family:z.family,size:s.bigFont(z.size),color:G}),p(C,P,D,N);var q=O.hasMinor;if(q&&(c.newContainer(P,"minor"),p(C,P,D,N,{isMinor:!0})),y(C,P,D,N,O),m(C,P,D,O),q){var H=O.isMinor;O.isMinor=!0,m(C,P,D,O),O.isMinor=H}b(C,P,D,{dfltColor:W,bgColor:O.bgColor,showGrid:O.showGrid,hasMinor:q,attributes:h}),!q||P.minor.ticks||P.minor.showgrid||delete P.minor,(P.showline||P.ticks)&&D("mirror");var V,te=N==="multicategory";if(O.noTickson||N!=="category"&&!te||!P.ticks&&!P.showgrid||(te&&(V="boundaries"),D("tickson",V)==="boundaries"&&delete P.ticklabelposition),te&&D("showdividers")&&(D("dividercolor"),D("dividerwidth")),N==="date")if(d(C,P,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:T}),P.rangebreaks.length){for(var ee=0;eep?1:-1:+(c.substr(1)||1)-+(d.substr(1)||1)},a.ref2id=function(c){return!!/^[xyz]/.test(c)&&c.split(" ")[0]},a.isLinked=function(c,d){return s(d,c._axisMatchGroups)||s(d,c._axisConstraintGroups)}},15258:function(o){o.exports=function(a,n,l,f){if(n.type==="category"){var s,c=a.categoryarray,d=Array.isArray(c)&&c.length>0;d&&(s="array");var h,p=l("categoryorder",s);p==="array"&&(h=l("categoryarray")),d||p!=="array"||(p=n.categoryorder="trace"),p==="trace"?n._initialCategories=[]:p==="array"?n._initialCategories=h.slice():(h=function(m,y){var v,g,b,x=y.dataAttr||m._id.charAt(0),_={};if(y.axData)v=y.axData;else for(v=[],g=0;gS?C.substr(S):P.substr(M))+D:C+P+k*T:D}function _(k,T){for(var M=T._size,S=M.h/M.w,C={},P=Object.keys(k),D=0;Dp*$)||W){for(M=0;MY&&ieU&&(U=ie);R/=(U-ee)/(2*Q),ee=P.l2r(ee),U=P.l2r(U),P.range=P._input.range=H=0?Math.min(ie,.9):1/(1/Math.max(ie,-.3)+3.222))}function H(ie,le,se,pe,Te){return ie.append("path").attr("class","zoombox").style({fill:le>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",p(se,pe)).attr("d",Te+"Z")}function V(ie,le,se){return ie.append("path").attr("class","zoombox-corners").style({fill:y.background,stroke:y.defaultLine,"stroke-width":1,opacity:0}).attr("transform",p(le,se)).attr("d","M0,0Z")}function te(ie,le,se,pe,Te,Se){ie.attr("d",pe+"M"+se.l+","+se.t+"v"+se.h+"h"+se.w+"v-"+se.h+"h-"+se.w+"Z"),ee(ie,le,Te,Se)}function ee(ie,le,se,pe){se||(ie.transition().style("fill",pe>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),le.transition().style("opacity",1).duration(200))}function U(ie){l.select(ie).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Q(ie){j&&ie.data&&ie._context.showTips&&(f.notifier(f._(ie,"Double-click to zoom back out"),"long"),j=!1)}function Y(ie){var le=Math.floor(Math.min(ie.b-ie.t,ie.r-ie.l,$)/2);return"M"+(ie.l-3.5)+","+(ie.t-.5+le)+"h3v"+-le+"h"+le+"v-3h-"+(le+3)+"ZM"+(ie.r+3.5)+","+(ie.t-.5+le)+"h-3v"+-le+"h"+-le+"v-3h"+(le+3)+"ZM"+(ie.r+3.5)+","+(ie.b+.5-le)+"h-3v"+le+"h"+-le+"v3h"+(le+3)+"ZM"+(ie.l-3.5)+","+(ie.b+.5-le)+"h3v"+le+"h"+le+"v3h-"+(le+3)+"Z"}function Z(ie,le,se,pe,Te){for(var Se,Oe,Me,ce,ye=!1,J={},ne={},de=(Te||{}).xaHash,xe=(Te||{}).yaHash,ue=0;ue=0)At._fullLayout._deactivateShape(At);else{var Lt=At._fullLayout.clickmode;if(U(At),Tt!==2||Ne||gt(),ze)Lt.indexOf("select")>-1&&F(Ot,At,de,xe,le.id,We),Lt.indexOf("event")>-1&&g.click(At,Ot,le.id);else if(Tt===1&&Ne){var Rt=Oe?ye:ce,$t=Oe==="s"||Me==="w"?0:1,Yt=Rt._name+".range["+$t+"]",Xt=function(tn,cn){var ln,an=tn.range[cn],sn=Math.abs(an-tn.range[1-cn]);return tn.type==="date"?an:tn.type==="log"?(ln=Math.ceil(Math.max(0,-Math.log(sn)/Math.LN10))+3,s("."+ln+"g")(Math.pow(10,an))):(ln=Math.floor(Math.log(Math.abs(an))/Math.LN10)-Math.floor(Math.log(sn)/Math.LN10)+4,s("."+String(ln)+"g")(an))}(Rt,$t),Bt="left",Wt="middle";if(Rt.fixedrange)return;Oe?(Wt=Oe==="n"?"top":"bottom",Rt.side==="right"&&(Bt="right")):Me==="e"&&(Bt="right"),At._context.showAxisRangeEntryBoxes&&l.select(kt).call(m.makeEditable,{gd:At,immediate:!0,background:At._fullLayout.paper_bgcolor,text:String(Xt),fill:Rt.tickfont?Rt.tickfont.color:"#444",horizontalAlign:Bt,verticalAlign:Wt}).on("edit",function(tn){var cn=Rt.d2r(tn);cn!==void 0&&h.call("_guiRelayout",At,Yt,cn)})}}}function Ke(Tt,Ot){if(ie._transitioningWithDuration)return!1;var At=Math.max(0,Math.min(be,lt*Tt+Je)),Lt=Math.max(0,Math.min(we,ct*Ot+ut)),Rt=Math.abs(At-Je),$t=Math.abs(Lt-ut);function Yt(){wt="",pt.r=pt.l,pt.t=pt.b,_e.attr("d","M0,0Z")}if(pt.l=Math.min(Je,At),pt.r=Math.max(Je,At),pt.t=Math.min(ut,Lt),pt.b=Math.max(ut,Lt),ke.isSubplotConstrained)Rt>$||$t>$?(wt="xy",Rt/be>$t/we?($t=Rt*we/be,ut>Lt?pt.t=ut-$t:pt.b=ut+$t):(Rt=$t*be/we,Je>At?pt.l=Je-Rt:pt.r=Je+Rt),_e.attr("d",Y(pt))):Yt();else if(Ae.isSubplotConstrained)if(Rt>$||$t>$){wt="xy";var Xt=Math.min(pt.l/be,(we-pt.b)/we),Bt=Math.max(pt.r/be,(we-pt.t)/we);pt.l=Xt*be,pt.r=Bt*be,pt.b=(1-Xt)*we,pt.t=(1-Bt)*we,_e.attr("d",Y(pt))}else Yt();else!De||$t0){var Wt;if(Ae.isSubplotConstrained||!Ee&&De.length===1){for(Wt=0;Wt1&&(Lt.maxallowed!==void 0&&Ie===(Lt.range[0]1&&(Rt.maxallowed!==void 0&&Be===(Rt.range[0]P[1]-.000244140625&&(c.domain=m),f.noneOrAll(s.domain,c.domain,m),c.tickmode==="sync"&&(c.tickmode="auto")}return d("layer"),c}},89426:function(o,a,n){var l=n(59652);o.exports=function(f,s,c,d,h){h||(h={});var p=h.tickSuffixDflt,m=l(f);c("tickprefix")&&c("showtickprefix",m),c("ticksuffix",p)&&c("showticksuffix",m)}},23608:function(o,a,n){var l=n(23074);o.exports=function(f,s,c,d){var h=s._template||{},p=s.type||h.type||"-";c("minallowed"),c("maxallowed");var m,y=c("range"),v=s.getAutorangeDflt(y,d),g=c("autorange",v);!y||(y[0]!==null||y[1]!==null)&&(y[0]!==null&&y[1]!==null||g!=="reversed"&&g!==!0)&&(y[0]===null||g!=="min"&&g!=="max reversed")&&(y[1]===null||g!=="max"&&g!=="min reversed")||(y=void 0,delete s.range,s.autorange=!0,m=!0),m||(g=c("autorange",v=s.getAutorangeDflt(y,d))),g&&(l(c,g,y),p!=="linear"&&p!=="-"||c("rangemode")),s.cleanRange()}},42449:function(o,a,n){var l=n(18783).FROM_BL;o.exports=function(f,s,c){c===void 0&&(c=l[f.constraintoward||"center"]);var d=[f.r2l(f.range[0]),f.r2l(f.range[1])],h=d[0]+(d[1]-d[0])*c;f.range=f._input.range=[f.l2r(h+(d[0]-h)*s),f.l2r(h+(d[1]-h)*s)],f.setScale()}},21994:function(o,a,n){var l=n(39898),f=n(84096).g0,s=n(71828),c=s.numberFormat,d=n(92770),h=s.cleanNumber,p=s.ms2DateTime,m=s.dateTime2ms,y=s.ensureNumber,v=s.isArrayOrTypedArray,g=n(50606),b=g.FP_SAFE,x=g.BADNUM,_=g.LOG_CLIP,w=g.ONEWEEK,k=g.ONEDAY,T=g.ONEHOUR,M=g.ONEMIN,S=g.ONESEC,C=n(41675),P=n(85555),D=P.HOUR_PATTERN,O=P.WEEKDAY_PATTERN;function R(A){return Math.pow(10,A)}function F(A){return A!=null}o.exports=function(A,z){z=z||{};var B=A._id||"x",$=B.charAt(0);function j(Z,X){if(Z>0)return Math.log(Z)/Math.LN10;if(Z<=0&&X&&A.range&&A.range.length===2){var re=A.range[0],ie=A.range[1];return .5*(re+ie-2*_*Math.abs(re-ie))}return x}function N(Z,X,re,ie){if((ie||{}).msUTC&&d(Z))return+Z;var le=m(Z,re||A.calendar);if(le===x){if(!d(Z))return x;Z=+Z;var se=Math.floor(10*s.mod(Z+.05,1)),pe=Math.round(Z-se/10);le=m(new Date(pe))+se/10}return le}function E(Z,X,re){return p(Z,X,re||A.calendar)}function W(Z){return A._categories[Math.round(Z)]}function G(Z){if(F(Z)){if(A._categoriesMap===void 0&&(A._categoriesMap={}),A._categoriesMap[Z]!==void 0)return A._categoriesMap[Z];A._categories.push(typeof Z=="number"?String(Z):Z);var X=A._categories.length-1;return A._categoriesMap[Z]=X,X}return x}function L(Z){if(A._categoriesMap)return A._categoriesMap[Z]}function q(Z){var X=L(Z);return X!==void 0?X:d(Z)?+Z:void 0}function H(Z){return d(Z)?+Z:L(Z)}function V(Z,X,re){return l.round(re+X*Z,2)}function te(Z,X,re){return(Z-re)/X}var ee=function(Z){return d(Z)?V(Z,A._m,A._b):x},U=function(Z){return te(Z,A._m,A._b)};if(A.rangebreaks){var Q=$==="y";ee=function(Z){if(!d(Z))return x;var X=A._rangebreaks.length;if(!X)return V(Z,A._m,A._b);var re=Q;A.range[0]>A.range[1]&&(re=!re);for(var ie=re?-1:1,le=ie*Z,se=0,pe=0;peSe)){se=le<(Te+Se)/2?pe:pe+1;break}se=pe+1}var Oe=A._B[se]||0;return isFinite(Oe)?V(Z,A._m2,Oe):0},U=function(Z){var X=A._rangebreaks.length;if(!X)return te(Z,A._m,A._b);for(var re=0,ie=0;ieA._rangebreaks[ie].pmax&&(re=ie+1);return te(Z,A._m2,A._B[re])}}A.c2l=A.type==="log"?j:y,A.l2c=A.type==="log"?R:y,A.l2p=ee,A.p2l=U,A.c2p=A.type==="log"?function(Z,X){return ee(j(Z,X))}:ee,A.p2c=A.type==="log"?function(Z){return R(U(Z))}:U,["linear","-"].indexOf(A.type)!==-1?(A.d2r=A.r2d=A.d2c=A.r2c=A.d2l=A.r2l=h,A.c2d=A.c2r=A.l2d=A.l2r=y,A.d2p=A.r2p=function(Z){return A.l2p(h(Z))},A.p2d=A.p2r=U,A.cleanPos=y):A.type==="log"?(A.d2r=A.d2l=function(Z,X){return j(h(Z),X)},A.r2d=A.r2c=function(Z){return R(h(Z))},A.d2c=A.r2l=h,A.c2d=A.l2r=y,A.c2r=j,A.l2d=R,A.d2p=function(Z,X){return A.l2p(A.d2r(Z,X))},A.p2d=function(Z){return R(U(Z))},A.r2p=function(Z){return A.l2p(h(Z))},A.p2r=U,A.cleanPos=y):A.type==="date"?(A.d2r=A.r2d=s.identity,A.d2c=A.r2c=A.d2l=A.r2l=N,A.c2d=A.c2r=A.l2d=A.l2r=E,A.d2p=A.r2p=function(Z,X,re){return A.l2p(N(Z,0,re))},A.p2d=A.p2r=function(Z,X,re){return E(U(Z),X,re)},A.cleanPos=function(Z){return s.cleanDate(Z,x,A.calendar)}):A.type==="category"?(A.d2c=A.d2l=G,A.r2d=A.c2d=A.l2d=W,A.d2r=A.d2l_noadd=q,A.r2c=function(Z){var X=H(Z);return X!==void 0?X:A.fraction2r(.5)},A.l2r=A.c2r=y,A.r2l=H,A.d2p=function(Z){return A.l2p(A.r2c(Z))},A.p2d=function(Z){return W(U(Z))},A.r2p=A.d2p,A.p2r=U,A.cleanPos=function(Z){return typeof Z=="string"&&Z!==""?Z:y(Z)}):A.type==="multicategory"&&(A.r2d=A.c2d=A.l2d=W,A.d2r=A.d2l_noadd=q,A.r2c=function(Z){var X=q(Z);return X!==void 0?X:A.fraction2r(.5)},A.r2c_just_indices=L,A.l2r=A.c2r=y,A.r2l=q,A.d2p=function(Z){return A.l2p(A.r2c(Z))},A.p2d=function(Z){return W(U(Z))},A.r2p=A.d2p,A.p2r=U,A.cleanPos=function(Z){return Array.isArray(Z)||typeof Z=="string"&&Z!==""?Z:y(Z)},A.setupMultiCategory=function(Z){var X,re,ie=A._traceIndices,le=A._matchGroup;if(le&&A._categories.length===0){for(var se in le)if(se!==B){var pe=z[C.id2name(se)];ie=ie.concat(pe._traceIndices)}}var Te=[[0,{}],[0,{}]],Se=[];for(X=0;Xpe[1]&&(ie[se?0:1]=re)}},A.cleanRange=function(Z,X){A._cleanRange(Z,X),A.limitRange(Z)},A._cleanRange=function(Z,X){X||(X={}),Z||(Z="range");var re,ie,le=s.nestedProperty(A,Z).get();if(ie=(ie=A.type==="date"?s.dfltRange(A.calendar):$==="y"?P.DFLTRANGEY:A._name==="realaxis"?[0,1]:X.dfltRange||P.DFLTRANGEX).slice(),A.rangemode!=="tozero"&&A.rangemode!=="nonnegative"||(ie[0]=0),le&&le.length===2){var se=le[0]===null,pe=le[1]===null;for(A.type!=="date"||A.autorange||(le[0]=s.cleanDate(le[0],x,A.calendar),le[1]=s.cleanDate(le[1],x,A.calendar)),re=0;re<2;re++)if(A.type==="date"){if(!s.isDateTime(le[re],A.calendar)){A[Z]=ie;break}if(A.r2l(le[0])===A.r2l(le[1])){var Te=s.constrain(A.r2l(le[0]),s.MIN_MS+1e3,s.MAX_MS-1e3);le[0]=A.l2r(Te-1e3),le[1]=A.l2r(Te+1e3);break}}else{if(!d(le[re])){if(se||pe||!d(le[1-re])){A[Z]=ie;break}le[re]=le[1-re]*(re?10:.1)}if(le[re]<-b?le[re]=-b:le[re]>b&&(le[re]=b),le[0]===le[1]){var Se=Math.max(1,Math.abs(1e-6*le[0]));le[0]-=Se,le[1]+=Se}}}else s.nestedProperty(A,Z).set(ie)},A.setScale=function(Z){var X=z._size;if(A.overlaying){var re=C.getFromId({_fullLayout:z},A.overlaying);A.domain=re.domain}var ie=Z&&A._r?"_r":"range",le=A.calendar;A.cleanRange(ie);var se,pe,Te=A.r2l(A[ie][0],le),Se=A.r2l(A[ie][1],le),Oe=$==="y";if(Oe?(A._offset=X.t+(1-A.domain[1])*X.h,A._length=X.h*(A.domain[1]-A.domain[0]),A._m=A._length/(Te-Se),A._b=-A._m*Se):(A._offset=X.l+A.domain[0]*X.w,A._length=X.w*(A.domain[1]-A.domain[0]),A._m=A._length/(Se-Te),A._b=-A._m*Te),A._rangebreaks=[],A._lBreaks=0,A._m2=0,A._B=[],A.rangebreaks&&(A._rangebreaks=A.locateBreaks(Math.min(Te,Se),Math.max(Te,Se)),A._rangebreaks.length)){for(se=0;seSe&&(Me=!Me),Me&&A._rangebreaks.reverse();var ce=Me?-1:1;for(A._m2=ce*A._length/(Math.abs(Se-Te)-A._lBreaks),A._B.push(-A._m2*(Oe?Se:Te)),se=0;seie&&(ie+=7,leie&&(ie+=24,le=re&&le=re&&Z=Ae.min&&(geAe.max&&(Ae.max=be),we=!1)}we&&pe.push({min:ge,max:be})}};for(re=0;rem.duration?(function(){for(var D={},O=0;O rect").call(c.setTranslate,0,0).call(c.setScale,1,1),M.plot.call(c.setTranslate,S._offset,C._offset).call(c.setScale,1,1);var P=M.plot.selectAll(".scatterlayer .trace");P.selectAll(".point").call(c.setPointGroupScale,1,1),P.selectAll(".textpoint").call(c.setTextPointsScale,1,1),P.call(c.hideOutsideRangePoints,M)}function T(M,S){var C=M.plotinfo,P=C.xaxis,D=C.yaxis,O=P._length,R=D._length,F=!!M.xr1,A=!!M.yr1,z=[];if(F){var B=s.simpleMap(M.xr0,P.r2l),$=s.simpleMap(M.xr1,P.r2l),j=B[1]-B[0],N=$[1]-$[0];z[0]=(B[0]*(1-S)+S*$[0]-B[0])/(B[1]-B[0])*O,z[2]=O*(1-S+S*N/j),P.range[0]=P.l2r(B[0]*(1-S)+S*$[0]),P.range[1]=P.l2r(B[1]*(1-S)+S*$[1])}else z[0]=0,z[2]=O;if(A){var E=s.simpleMap(M.yr0,D.r2l),W=s.simpleMap(M.yr1,D.r2l),G=E[1]-E[0],L=W[1]-W[0];z[1]=(E[1]*(1-S)+S*W[1]-E[1])/(E[0]-E[1])*R,z[3]=R*(1-S+S*L/G),D.range[0]=P.l2r(E[0]*(1-S)+S*W[0]),D.range[1]=D.l2r(E[1]*(1-S)+S*W[1])}else z[1]=0,z[3]=R;d.drawOne(h,P,{skipTitle:!0}),d.drawOne(h,D,{skipTitle:!0}),d.redrawComponents(h,[P._id,D._id]);var q=F?O/z[2]:1,H=A?R/z[3]:1,V=F?z[0]:0,te=A?z[1]:0,ee=F?z[0]/z[2]*O:0,U=A?z[1]/z[3]*R:0,Q=P._offset-ee,Y=D._offset-U;C.clipRect.call(c.setTranslate,V,te).call(c.setScale,1/q,1/H),C.plot.call(c.setTranslate,Q,Y).call(c.setScale,q,H),c.setPointGroupScale(C.zoomScalePts,1/q,1/H),c.setTextPointsScale(C.zoomScaleTxt,1/q,1/H)}d.redrawComponents(h)}},951:function(o,a,n){var l=n(73972).traceIs,f=n(4322);function s(d){return{v:"x",h:"y"}[d.orientation||"v"]}function c(d,h){var p=s(d),m=l(d,"box-violin"),y=l(d._fullInput||{},"candlestick");return m&&!y&&h===p&&d[p]===void 0&&d[p+"0"]===void 0}o.exports=function(d,h,p,m){p("autotypenumbers",m.autotypenumbersDflt),p("type",(m.splomStash||{}).type)==="-"&&(function(y,v){if(y.type==="-"){var g,b=y._id,x=b.charAt(0);b.indexOf("scene")!==-1&&(b=x);var _=function(D,O,R){for(var F=0;F0&&(A["_"+R+"axes"]||{})[O]||(A[R+"axis"]||R)===O&&(c(A,R)||(A[R]||[]).length||A[R+"0"]))return A}}(v,b,x);if(_)if(_.type!=="histogram"||x!=={v:"y",h:"x"}[_.orientation||"v"]){var w=x+"calendar",k=_[w],T={noMultiCategory:!l(_,"cartesian")||l(_,"noMultiCategory")};if(_.type==="box"&&_._hasPreCompStats&&x==={h:"x",v:"y"}[_.orientation||"v"]&&(T.noMultiCategory=!0),T.autotypenumbers=y.autotypenumbers,c(_,x)){var M=s(_),S=[];for(g=0;g0?".":"")+g;f.isPlainObject(b)?h(b,m,x,v+1):m(x,g,b)}})}a.manageCommandObserver=function(p,m,y,v){var g={},b=!0;m&&m._commandObserver&&(g=m._commandObserver),g.cache||(g.cache={}),g.lookupTable={};var x=a.hasSimpleAPICommandBindings(p,y,g.lookupTable);if(m&&m._commandObserver){if(x)return g;if(m._commandObserver.remove)return m._commandObserver.remove(),m._commandObserver=null,g}if(x){s(p,x,g.cache),g.check=function(){if(b){var k=s(p,x,g.cache);return k.changed&&v&&g.lookupTable[k.value]!==void 0&&(g.disable(),Promise.resolve(v({value:k.value,type:x.type,prop:x.prop,traces:x.traces,index:g.lookupTable[k.value]})).then(g.enable,g.enable)),k.changed}};for(var _=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],w=0;w<_.length;w++)p._internalOn(_[w],g.check);g.remove=function(){for(var k=0;k<_.length;k++)p._removeInternalListener(_[k],g.check)}}else f.log("Unable to automatically bind plot updates to API command"),g.lookupTable={},g.remove=function(){};return g.disable=function(){b=!1},g.enable=function(){b=!0},m&&(m._commandObserver=g),g},a.hasSimpleAPICommandBindings=function(p,m,y){var v,g,b=m.length;for(v=0;v=q.width-20?(te["text-anchor"]="start",te.x=5):(te["text-anchor"]="end",te.x=q._paper.attr("width")-7),H.attr(te);var ee=H.select(".js-link-to-tool"),U=H.select(".js-link-spacer"),Q=H.select(".js-sourcelinks");L._context.showSources&&L._context.showSources(L),L._context.showLink&&function(Y,Z){Z.text("");var X=Z.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(Y._context.linkText+" »");if(Y._context.sendData)X.on("click",function(){S.sendDataToCloud(Y)});else{var re=window.location.pathname.split("/"),ie=window.location.search;X.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+re[2].split(".")[0]+"/"+re[1]+ie})}}(L,ee),U.text(ee.text()&&Q.text()?" - ":"")}},S.sendDataToCloud=function(L){var q=(window.PLOTLYENV||{}).BASE_URL||L._context.plotlyServerURL;if(q){L.emit("plotly_beforeexport");var H=l.select(L).append("div").attr("id","hiddenform").style("display","none"),V=H.append("form").attr({action:q+"/external",method:"post",target:"_blank"});return V.append("input").attr({type:"text",name:"data"}).node().value=S.graphJson(L,!1,"keepdata"),V.node().submit(),H.remove(),L.emit("plotly_afterexport"),!1}};var D=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],O=["year","month","dayMonth","dayMonthYear"];function R(L,q){var H=L._context.locale;H||(H="en-US");var V=!1,te={};function ee(re){for(var ie=!0,le=0;le1&&J.length>1){for(d.getComponentMethod("grid","sizeDefaults")(U,ee),te=0;te15&&J.length>15&&ee.shapes.length===0&&ee.images.length===0,S.linkSubplots(Y,ee,Q,V),S.cleanPlot(Y,ee,Q,V);var ge=!(!V._has||!V._has("gl2d")),be=!(!ee._has||!ee._has("gl2d")),we=!(!V._has||!V._has("cartesian"))||ge,ke=!(!ee._has||!ee._has("cartesian"))||be;we&&!ke?V._bgLayer.remove():ke&&!we&&(ee._shouldCreateBgLayer=!0),V._zoomlayer&&!L._dragging&&b({_fullLayout:V}),function(Re,Ie){var Be,Ue=[];Ie.meta&&(Be=Ie._meta={meta:Ie.meta,layout:{meta:Ie.meta}});for(var qe=0;qe0){var Z=1-2*U;V=Math.round(Z*V),te=Math.round(Z*te)}}var X=S.layoutAttributes.width.min,re=S.layoutAttributes.height.min;V1,le=!q.height&&Math.abs(H.height-te)>1;(le||ie)&&(ie&&(H.width=V),le&&(H.height=te)),L._initialAutoSize||(L._initialAutoSize={width:V,height:te}),S.sanitizeMargins(H)},S.supplyLayoutModuleDefaults=function(L,q,H,V){var te,ee,U,Q=d.componentsRegistry,Y=q._basePlotModules,Z=d.subplotsRegistry.cartesian;for(te in Q)(U=Q[te]).includeBasePlot&&U.includeBasePlot(L,q);for(var X in Y.length||Y.push(Z),q._has("cartesian")&&(d.getComponentMethod("grid","contentDefaults")(L,q),Z.finalizeSubplots(L,q)),q._subplots)q._subplots[X].sort(m.subplotSort);for(ee=0;ee1&&(H.l/=Te,H.r/=Te)}if(ie){var Se=(H.t+H.b)/ie;Se>1&&(H.t/=Se,H.b/=Se)}var Oe=H.xl!==void 0?H.xl:H.x,Me=H.xr!==void 0?H.xr:H.x,ce=H.yt!==void 0?H.yt:H.y,ye=H.yb!==void 0?H.yb:H.y;le[q]={l:{val:Oe,size:H.l+pe},r:{val:Me,size:H.r+pe},b:{val:ye,size:H.b+pe},t:{val:ce,size:H.t+pe}},se[q]=1}else delete le[q],delete se[q];if(!V._replotting)return S.doAutoMargin(L)}},S.doAutoMargin=function(L){var q=L._fullLayout,H=q.width,V=q.height;q._size||(q._size={}),$(q);var te=q._size,ee=q.margin,U={t:0,b:0,l:0,r:0},Q=m.extendFlat({},te),Y=ee.l,Z=ee.r,X=ee.t,re=ee.b,ie=q._pushmargin,le=q._pushmarginIds,se=q.minreducedwidth,pe=q.minreducedheight;if(ee.autoexpand!==!1){for(var Te in ie)le[Te]||delete ie[Te];var Se=L._fullLayout._reservedMargin;for(var Oe in Se)for(var Me in Se[Oe]){var ce=Se[Oe][Me];U[Me]=Math.max(U[Me],ce)}for(var ye in ie.base={l:{val:0,size:Y},r:{val:1,size:Z},t:{val:1,size:X},b:{val:0,size:re}},U){var J=0;for(var ne in ie)ne!=="base"&&c(ie[ne][ye].size)&&(J=ie[ne][ye].size>J?ie[ne][ye].size:J);var de=Math.max(0,ee[ye]-J);U[ye]=Math.max(0,U[ye]-de)}for(var xe in ie){var ue=ie[xe].l||{},ge=ie[xe].b||{},be=ue.val,we=ue.size,ke=ge.val,Ae=ge.size,Ee=H-U.r-U.l,De=V-U.t-U.b;for(var Re in ie){if(c(we)&&ie[Re].r){var Ie=ie[Re].r.val,Be=ie[Re].r.size;if(Ie>be){var Ue=(we*Ie+(Be-Ee)*be)/(Ie-be),qe=(Be*(1-be)+(we-Ee)*(1-Ie))/(Ie-be);Ue+qe>Y+Z&&(Y=Ue,Z=qe)}}if(c(Ae)&&ie[Re].t){var Ye=ie[Re].t.val,at=ie[Re].t.size;if(Ye>ke){var lt=(Ae*Ye+(at-De)*ke)/(Ye-ke),ct=(at*(1-ke)+(Ae-De)*(1-Ye))/(Ye-ke);lt+ct>re+X&&(re=lt,X=ct)}}}}}var bt=m.constrain(H-ee.l-ee.r,2,se),ze=m.constrain(V-ee.t-ee.b,2,pe),Ne=Math.max(0,H-bt),Qe=Math.max(0,V-ze);if(Ne){var it=(Y+Z)/Ne;it>1&&(Y/=it,Z/=it)}if(Qe){var kt=(re+X)/Qe;kt>1&&(re/=kt,X/=kt)}if(te.l=Math.round(Y)+U.l,te.r=Math.round(Z)+U.r,te.t=Math.round(X)+U.t,te.b=Math.round(re)+U.b,te.p=Math.round(ee.pad),te.w=Math.round(H)-te.l-te.r,te.h=Math.round(V)-te.t-te.b,!q._replotting&&(S.didMarginChange(Q,te)||function(ut){if("_redrawFromAutoMarginCount"in ut._fullLayout)return!1;var pt=g.list(ut,"",!0);for(var It in pt)if(pt[It].autoshift||pt[It].shift)return!0;return!1}(L))){"_redrawFromAutoMarginCount"in q?q._redrawFromAutoMarginCount++:q._redrawFromAutoMarginCount=1;var Je=3*(1+Object.keys(le).length);if(q._redrawFromAutoMarginCount0&&(L._transitioningWithDuration=!0),L._transitionData._interruptCallbacks.push(function(){V=!0}),H.redraw&&L._transitionData._interruptCallbacks.push(function(){return d.call("redraw",L)}),L._transitionData._interruptCallbacks.push(function(){L.emit("plotly_transitioninterrupted",[])});var Q=0,Y=0;function Z(){return Q++,function(){var X;Y++,V||Y!==Q||(X=U,L._transitionData&&(function(re){if(re)for(;re.length;)re.shift()}(L._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(H.redraw)return d.call("redraw",L)}).then(function(){L._transitioning=!1,L._transitioningWithDuration=!1,L.emit("plotly_transitioned",[])}).then(X)))}}H.runFn(Z),setTimeout(Z())})}],ee=m.syncOrAsync(te,L);return ee&&ee.then||(ee=Promise.resolve()),ee.then(function(){return L})}S.didMarginChange=function(L,q){for(var H=0;H1)return!0}return!1},S.graphJson=function(L,q,H,V,te,ee){(te&&q&&!L._fullData||te&&!q&&!L._fullLayout)&&S.supplyDefaults(L);var U=te?L._fullData:L.data,Q=te?L._fullLayout:L.layout,Y=(L._transitionData||{})._frames;function Z(ie,le){if(typeof ie=="function")return le?"_function_":null;if(m.isPlainObject(ie)){var se,pe={};return Object.keys(ie).sort().forEach(function(Te){if(["_","["].indexOf(Te.charAt(0))===-1)if(typeof ie[Te]!="function"){if(H==="keepdata"){if(Te.substr(Te.length-3)==="src")return}else if(H==="keepstream"){if(typeof(se=ie[Te+"src"])=="string"&&se.indexOf(":")>0&&!m.isPlainObject(ie.stream))return}else if(H!=="keepall"&&typeof(se=ie[Te+"src"])=="string"&&se.indexOf(":")>0)return;pe[Te]=Z(ie[Te],le)}else le&&(pe[Te]="_function")}),pe}return Array.isArray(ie)?ie.map(function(Te){return Z(Te,le)}):m.isTypedArray(ie)?m.simpleMap(ie,m.identity):m.isJSDate(ie)?m.ms2DateTimeLocal(+ie):ie}var X={data:(U||[]).map(function(ie){var le=Z(ie);return q&&delete le.fit,le})};if(!q&&(X.layout=Z(Q),te)){var re=Q._size;X.layout.computed={margin:{b:re.b,l:re.l,r:re.r,t:re.t}}}return Y&&(X.frames=Z(Y)),ee&&(X.config=Z(L._context,!0)),V==="object"?X:JSON.stringify(X)},S.modifyFrames=function(L,q){var H,V,te,ee=L._transitionData._frames,U=L._transitionData._frameHash;for(H=0;H=0;ee--)if(ye[ee].enabled){H._indexToPoints=ye[ee]._indexToPoints;break}V&&V.calc&&(ce=V.calc(L,H))}Array.isArray(ce)&&ce[0]||(ce=[{x:v,y:v}]),ce[0].t||(ce[0].t={}),ce[0].trace=H,Z[Oe]=ce}}for(W(U,Q,Y),te=0;te0){for(var h=[],p=0;p=D&&(R.min=0,F.min=0,A.min=0,_.aaxis&&delete _.aaxis.min,_.baxis&&delete _.baxis.min,_.caxis&&delete _.caxis.min)}function x(_,w,k,T){var M=v[w._name];function S(F,A){return s.coerce(_,w,M,F,A)}S("uirevision",T.uirevision),w.type="linear";var C=S("color"),P=C!==M.color.dflt?C:k.font.color,D=w._name.charAt(0).toUpperCase(),O="Component "+D,R=S("title.text",O);w._hovertitle=R===O?R:D,s.coerceFont(S,"title.font",{family:k.font.family,size:s.bigFont(k.font.size),color:P}),S("min"),m(_,w,S,"linear"),h(_,w,S,"linear"),d(_,w,S,"linear"),p(_,w,S,{outerTicks:!0}),S("showticklabels")&&(s.coerceFont(S,"tickfont",{family:k.font.family,size:k.font.size,color:P}),S("tickangle"),S("tickformat")),y(_,w,S,{dfltColor:C,bgColor:k.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:M}),S("hoverformat"),S("layer")}o.exports=function(_,w,k){c(_,w,k,{type:"ternary",attributes:v,handleDefaults:b,font:w.font,paper_bgcolor:w.paper_bgcolor})}},64380:function(o,a,n){var l=n(39898),f=n(84267),s=n(73972),c=n(71828),d=c.strTranslate,h=c._,p=n(7901),m=n(91424),y=n(21994),v=n(1426).extendFlat,g=n(74875),b=n(89298),x=n(28569),_=n(30211),w=n(64505),k=w.freeMode,T=w.rectMode,M=n(92998),S=n(47322).prepSelect,C=n(47322).selectOnClick,P=n(47322).clearOutline,D=n(47322).clearSelectionsCache,O=n(85555);function R(W,G){this.id=W.id,this.graphDiv=W.graphDiv,this.init(G),this.makeFramework(G),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}o.exports=R;var F=R.prototype;F.init=function(W){this.container=W._ternarylayer,this.defs=W._defs,this.layoutId=W._uid,this.traceHash={},this.layers={}},F.plot=function(W,G){var L=this,q=G[L.id],H=G._size;L._hasClipOnAxisFalse=!1;for(var V=0;VA*le?H=(V=le)*A:V=(H=ie)/A,te=X*H/ie,ee=re*V/le,L=G.l+G.w*Y-H/2,q=G.t+G.h*(1-Z)-V/2,U.x0=L,U.y0=q,U.w=H,U.h=V,U.sum=se,U.xaxis={type:"linear",range:[pe+2*Se-se,se-pe-2*Te],domain:[Y-te/2,Y+te/2],_id:"x"},y(U.xaxis,U.graphDiv._fullLayout),U.xaxis.setScale(),U.xaxis.isPtWithinRange=function(be){return be.a>=U.aaxis.range[0]&&be.a<=U.aaxis.range[1]&&be.b>=U.baxis.range[1]&&be.b<=U.baxis.range[0]&&be.c>=U.caxis.range[1]&&be.c<=U.caxis.range[0]},U.yaxis={type:"linear",range:[pe,se-Te-Se],domain:[Z-ee/2,Z+ee/2],_id:"y"},y(U.yaxis,U.graphDiv._fullLayout),U.yaxis.setScale(),U.yaxis.isPtWithinRange=function(){return!0};var Oe=U.yaxis.domain[0],Me=U.aaxis=v({},W.aaxis,{range:[pe,se-Te-Se],side:"left",tickangle:(+W.aaxis.tickangle||0)-30,domain:[Oe,Oe+ee*A],anchor:"free",position:0,_id:"y",_length:H});y(Me,U.graphDiv._fullLayout),Me.setScale();var ce=U.baxis=v({},W.baxis,{range:[se-pe-Se,Te],side:"bottom",domain:U.xaxis.domain,anchor:"free",position:0,_id:"x",_length:H});y(ce,U.graphDiv._fullLayout),ce.setScale();var ye=U.caxis=v({},W.caxis,{range:[se-pe-Te,Se],side:"right",tickangle:(+W.caxis.tickangle||0)+30,domain:[Oe,Oe+ee*A],anchor:"free",position:0,_id:"y",_length:H});y(ye,U.graphDiv._fullLayout),ye.setScale();var J="M"+L+","+(q+V)+"h"+H+"l-"+H/2+",-"+V+"Z";U.clipDef.select("path").attr("d",J),U.layers.plotbg.select("path").attr("d",J);var ne="M0,"+V+"h"+H+"l-"+H/2+",-"+V+"Z";U.clipDefRelative.select("path").attr("d",ne);var de=d(L,q);U.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",de),U.clipDefRelative.select("path").attr("transform",null);var xe=d(L-ce._offset,q+V);U.layers.baxis.attr("transform",xe),U.layers.bgrid.attr("transform",xe);var ue=d(L+H/2,q)+"rotate(30)"+d(0,-Me._offset);U.layers.aaxis.attr("transform",ue),U.layers.agrid.attr("transform",ue);var ge=d(L+H/2,q)+"rotate(-30)"+d(0,-ye._offset);U.layers.caxis.attr("transform",ge),U.layers.cgrid.attr("transform",ge),U.drawAxes(!0),U.layers.aline.select("path").attr("d",Me.showline?"M"+L+","+(q+V)+"l"+H/2+",-"+V:"M0,0").call(p.stroke,Me.linecolor||"#000").style("stroke-width",(Me.linewidth||0)+"px"),U.layers.bline.select("path").attr("d",ce.showline?"M"+L+","+(q+V)+"h"+H:"M0,0").call(p.stroke,ce.linecolor||"#000").style("stroke-width",(ce.linewidth||0)+"px"),U.layers.cline.select("path").attr("d",ye.showline?"M"+(L+H/2)+","+q+"l"+H/2+","+V:"M0,0").call(p.stroke,ye.linecolor||"#000").style("stroke-width",(ye.linewidth||0)+"px"),U.graphDiv._context.staticPlot||U.initInteractions(),m.setClipUrl(U.layers.frontplot,U._hasClipOnAxisFalse?null:U.clipId,U.graphDiv)},F.drawAxes=function(W){var G=this,L=G.graphDiv,q=G.id.substr(7)+"title",H=G.layers,V=G.aaxis,te=G.baxis,ee=G.caxis;if(G.drawAx(V),G.drawAx(te),G.drawAx(ee),W){var U=Math.max(V.showticklabels?V.tickfont.size/2:0,(ee.showticklabels?.75*ee.tickfont.size:0)+(ee.ticks==="outside"?.87*ee.ticklen:0)),Q=(te.showticklabels?te.tickfont.size:0)+(te.ticks==="outside"?te.ticklen:0)+3;H["a-title"]=M.draw(L,"a"+q,{propContainer:V,propName:G.id+".aaxis.title",placeholder:h(L,"Click to enter Component A title"),attributes:{x:G.x0+G.w/2,y:G.y0-V.title.font.size/3-U,"text-anchor":"middle"}}),H["b-title"]=M.draw(L,"b"+q,{propContainer:te,propName:G.id+".baxis.title",placeholder:h(L,"Click to enter Component B title"),attributes:{x:G.x0-Q,y:G.y0+G.h+.83*te.title.font.size+Q,"text-anchor":"middle"}}),H["c-title"]=M.draw(L,"c"+q,{propContainer:ee,propName:G.id+".caxis.title",placeholder:h(L,"Click to enter Component C title"),attributes:{x:G.x0+G.w+Q,y:G.y0+G.h+.83*ee.title.font.size+Q,"text-anchor":"middle"}})}},F.drawAx=function(W){var G,L=this,q=L.graphDiv,H=W._name,V=H.charAt(0),te=W._id,ee=L.layers[H],U=V+"tickLayout",Q=(G=W).ticks+String(G.ticklen)+String(G.showticklabels);L[U]!==Q&&(ee.selectAll("."+te+"tick").remove(),L[U]=Q),W.setScale();var Y=b.calcTicks(W),Z=b.clipEnds(W,Y),X=b.makeTransTickFn(W),re=b.getTickSigns(W)[2],ie=c.deg2rad(30),le=re*(W.linewidth||1)/2,se=re*W.ticklen,pe=L.w,Te=L.h,Se=V==="b"?"M0,"+le+"l"+Math.sin(ie)*se+","+Math.cos(ie)*se:"M"+le+",0l"+Math.cos(ie)*se+","+-Math.sin(ie)*se,Oe={a:"M0,0l"+Te+",-"+pe/2,b:"M0,0l-"+pe/2+",-"+Te,c:"M0,0l-"+Te+","+pe/2}[V];b.drawTicks(q,W,{vals:W.ticks==="inside"?Z:Y,layer:ee,path:Se,transFn:X,crisp:!1}),b.drawGrid(q,W,{vals:Z,layer:L.layers[V+"grid"],path:Oe,transFn:X,crisp:!1}),b.drawLabels(q,W,{vals:Y,layer:ee,transFn:X,labelFns:b.makeLabelFns(W,0,30)})};var z=O.MINZOOM/2+.87,B="m-0.87,.5h"+z+"v3h-"+(z+5.2)+"l"+(z/2+2.6)+",-"+(.87*z+4.5)+"l2.6,1.5l-"+z/2+","+.87*z+"Z",$="m0.87,.5h-"+z+"v3h"+(z+5.2)+"l-"+(z/2+2.6)+",-"+(.87*z+4.5)+"l-2.6,1.5l"+z/2+","+.87*z+"Z",j="m0,1l"+z/2+","+.87*z+"l2.6,-1.5l-"+(z/2+2.6)+",-"+(.87*z+4.5)+"l-"+(z/2+2.6)+","+(.87*z+4.5)+"l2.6,1.5l"+z/2+",-"+.87*z+"Z",N=!0;function E(W){l.select(W).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}F.clearOutline=function(){D(this.dragOptions),P(this.dragOptions.gd)},F.initInteractions=function(){var W,G,L,q,H,V,te,ee,U,Q,Y,Z,X=this,re=X.layers.plotbg.select("path").node(),ie=X.graphDiv,le=ie._fullLayout._zoomlayer;function se(ne){var de={};return de[X.id+".aaxis.min"]=ne.a,de[X.id+".baxis.min"]=ne.b,de[X.id+".caxis.min"]=ne.c,de}function pe(ne,de){var xe=ie._fullLayout.clickmode;E(ie),ne===2&&(ie.emit("plotly_doubleclick",null),s.call("_guiRelayout",ie,se({a:0,b:0,c:0}))),xe.indexOf("select")>-1&&ne===1&&C(de,ie,[X.xaxis],[X.yaxis],X.id,X.dragOptions),xe.indexOf("event")>-1&&_.click(ie,de,X.id)}function Te(ne,de){return 1-de/X.h}function Se(ne,de){return 1-(ne+(X.h-de)/Math.sqrt(3))/X.w}function Oe(ne,de){return(ne-(X.h-de)/Math.sqrt(3))/X.w}function Me(ne,de){var xe=L+ne*W,ue=q+de*G,ge=Math.max(0,Math.min(1,Te(0,q),Te(0,ue))),be=Math.max(0,Math.min(1,Se(L,q),Se(xe,ue))),we=Math.max(0,Math.min(1,Oe(L,q),Oe(xe,ue))),ke=(ge/2+we)*X.w,Ae=(1-ge/2-be)*X.w,Ee=(ke+Ae)/2,De=Ae-ke,Re=(1-ge)*X.h,Ie=Re-De/A;De.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),Z.transition().style("opacity",1).duration(200),Q=!0),ie.emit("plotly_relayouting",se(te))}function ce(){E(ie),te!==H&&(s.call("_guiRelayout",ie,se(te)),N&&ie.data&&ie._context.showTips&&(c.notifier(h(ie,"Double-click to zoom back out"),"long"),N=!1))}function ye(ne,de){var xe=ne/X.xaxis._m,ue=de/X.yaxis._m,ge=[(te={a:H.a-ue,b:H.b+(xe+ue)/2,c:H.c-(xe-ue)/2}).a,te.b,te.c].sort(c.sorterAsc),be=ge.indexOf(te.a),we=ge.indexOf(te.b),ke=ge.indexOf(te.c);ge[0]<0&&(ge[1]+ge[0]/2<0?(ge[2]+=ge[0]+ge[1],ge[0]=ge[1]=0):(ge[2]+=ge[0]/2,ge[1]+=ge[0]/2,ge[0]=0),te={a:ge[be],b:ge[we],c:ge[ke]},de=(H.a-te.a)*X.yaxis._m,ne=(H.c-te.c-H.b+te.b)*X.xaxis._m);var Ae=d(X.x0+ne,X.y0+de);X.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Ae);var Ee=d(-ne,-de);X.clipDefRelative.select("path").attr("transform",Ee),X.aaxis.range=[te.a,X.sum-te.b-te.c],X.baxis.range=[X.sum-te.a-te.c,te.b],X.caxis.range=[X.sum-te.a-te.b,te.c],X.drawAxes(!1),X._hasClipOnAxisFalse&&X.plotContainer.select(".scatterlayer").selectAll(".trace").call(m.hideOutsideRangePoints,X),ie.emit("plotly_relayouting",se(te))}function J(){s.call("_guiRelayout",ie,se(te))}this.dragOptions={element:re,gd:ie,plotinfo:{id:X.id,domain:ie._fullLayout[X.id].domain,xaxis:X.xaxis,yaxis:X.yaxis},subplot:X.id,prepFn:function(ne,de,xe){X.dragOptions.xaxes=[X.xaxis],X.dragOptions.yaxes=[X.yaxis],W=ie._fullLayout._invScaleX,G=ie._fullLayout._invScaleY;var ue=X.dragOptions.dragmode=ie._fullLayout.dragmode;k(ue)?X.dragOptions.minDrag=1:X.dragOptions.minDrag=void 0,ue==="zoom"?(X.dragOptions.moveFn=Me,X.dragOptions.clickFn=pe,X.dragOptions.doneFn=ce,function(ge,be,we){var ke=re.getBoundingClientRect();L=be-ke.left,q=we-ke.top,ie._fullLayout._calcInverseTransform(ie);var Ae=ie._fullLayout._invTransform,Ee=c.apply3DTransform(Ae)(L,q);L=Ee[0],q=Ee[1],H={a:X.aaxis.range[0],b:X.baxis.range[1],c:X.caxis.range[1]},te=H,V=X.aaxis.range[1]-H.a,ee=f(X.graphDiv._fullLayout[X.id].bgcolor).getLuminance(),U="M0,"+X.h+"L"+X.w/2+", 0L"+X.w+","+X.h+"Z",Q=!1,Y=le.append("path").attr("class","zoombox").attr("transform",d(X.x0,X.y0)).style({fill:ee>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",U),Z=le.append("path").attr("class","zoombox-corners").attr("transform",d(X.x0,X.y0)).style({fill:p.background,stroke:p.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),X.clearOutline(ie)}(0,de,xe)):ue==="pan"?(X.dragOptions.moveFn=ye,X.dragOptions.clickFn=pe,X.dragOptions.doneFn=J,H={a:X.aaxis.range[0],b:X.baxis.range[1],c:X.caxis.range[1]},te=H,X.clearOutline(ie)):(T(ue)||k(ue))&&S(ne,de,xe,X.dragOptions,ue)}},re.onmousemove=function(ne){_.hover(ie,ne,X.id),ie._fullLayout._lasthover=re,ie._fullLayout._hoversubplot=X.id},re.onmouseout=function(ne){ie._dragging||x.unhover(ie,ne)},x.init(this.dragOptions)}},73972:function(o,a,n){var l=n(47769),f=n(64213),s=n(75138),c=n(41965),d=n(24401).addStyleRule,h=n(1426),p=n(9012),m=n(10820),y=h.extendFlat,v=h.extendDeepAll;function g(C){var P=C.name,D=C.categories,O=C.meta;if(a.modules[P])l.log("Type "+P+" already registered");else{a.subplotsRegistry[C.basePlotModule.name]||function(N){var E=N.name;if(a.subplotsRegistry[E])l.log("Plot type "+E+" already registered.");else for(var W in w(N),a.subplotsRegistry[E]=N,a.componentsRegistry)M(W,N.name)}(C.basePlotModule);for(var R={},F=0;F-1&&(x[w[m]].title={text:""});for(m=0;m")!==-1?"":F.html(z).text()});return F.remove(),A}(O)).replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(m,"'"),f.isIE()&&(O=(O=(O=O.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("#$2")')).replace(/(\\')/gi,'"')),O}},75341:function(o,a,n){var l=n(71828);o.exports=function(f,s){for(var c=0;cA+R||!l(F))}for(var B=0;Bm))return d}return h!==void 0?h:c.dflt},a.coerceColor=function(c,d,h){return f(d).isValid()?d:h!==void 0?h:c.dflt},a.coerceEnumerated=function(c,d,h){return c.coerceNumber&&(d=+d),c.values.indexOf(d)!==-1?d:h!==void 0?h:c.dflt},a.getValue=function(c,d){var h;return Array.isArray(c)?d0?se+=pe:k<0&&(se-=pe)}return se}function ee(le){var se=k,pe=le.b,Te=te(le);return l.inbox(pe-se,Te-se,z+(Te-se)/(Te-pe)-1)}var U=v[T+"a"],Q=v[M+"a"];P=Math.abs(U.r2c(U.range[1])-U.r2c(U.range[0]));var Y=l.getDistanceFunction(x,S,C,function(le){return(S(le)+C(le))/2});if(l.getClosest(D,Y,v),v.index!==!1&&D[v.index].p!==p){j||(L=function(le){return Math.min(N(le),le.p-R.bargroupwidth/2)},q=function(le){return Math.max(E(le),le.p+R.bargroupwidth/2)});var Z=D[v.index],X=O.base?Z.b+Z.s:Z.s;v[M+"0"]=v[M+"1"]=Q.c2p(Z[M],!0),v[M+"LabelVal"]=X;var re=R.extents[R.extents.round(Z.p)];v[T+"0"]=U.c2p(F?L(Z):re[0],!0),v[T+"1"]=U.c2p(F?q(Z):re[1],!0);var ie=Z.orig_p!==void 0;return v[T+"LabelVal"]=ie?Z.orig_p:Z.p,v.labelLabel=h(U,v[T+"LabelVal"],O[T+"hoverformat"]),v.valueLabel=h(Q,v[M+"LabelVal"],O[M+"hoverformat"]),v.baseLabel=h(Q,Z.b,O[M+"hoverformat"]),v.spikeDistance=(function(le){var se=k,pe=le.b,Te=te(le);return l.inbox(pe-se,Te-se,B+(Te-se)/(Te-pe)-1)}(Z)+function(le){return H(N(le),E(le),B)}(Z))/2,v[T+"Spike"]=U.c2p(Z.p,!0),c(Z,O,v),v.hovertemplate=O.hovertemplate,v}}function y(v,g){var b=g.mcc||v.marker.color,x=g.mlcc||v.marker.line.color,_=d(v,g);return s.opacity(b)?b:s.opacity(x)&&_?x:void 0}o.exports={hoverPoints:function(v,g,b,x,_){var w=m(v,g,b,x,_);if(w){var k=w.cd,T=k[0].trace,M=k[w.index];return w.color=y(T,M),f.getComponentMethod("errorbars","hoverInfo")(M,T,w),[w]}},hoverOnBars:m,getTraceColor:y}},60822:function(o,a,n){o.exports={attributes:n(1486),layoutAttributes:n(43641),supplyDefaults:n(90769).supplyDefaults,crossTraceDefaults:n(90769).crossTraceDefaults,supplyLayoutDefaults:n(13957),calc:n(92290),crossTraceCalc:n(11661).crossTraceCalc,colorbar:n(4898),arraysToCalcdata:n(75341),plot:n(17295).plot,style:n(16688).style,styleOnSelect:n(16688).styleOnSelect,hoverPoints:n(95423).hoverPoints,eventData:n(58065),selectPoints:n(81974),moduleType:"trace",name:"bar",basePlotModule:n(93612),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}},43641:function(o){o.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},13957:function(o,a,n){var l=n(73972),f=n(89298),s=n(71828),c=n(43641);o.exports=function(d,h,p){function m(T,M){return s.coerce(d,h,c,T,M)}for(var y=!1,v=!1,g=!1,b={},x=m("barmode"),_=0;_0}function F(B){return B==="auto"?0:B}function A(B,$){var j=Math.PI/180*$,N=Math.abs(Math.sin(j)),E=Math.abs(Math.cos(j));return{x:B.width*E+B.height*N,y:B.width*N+B.height*E}}function z(B,$,j,N,E,W){var G=!!W.isHorizontal,L=!!W.constrained,q=W.angle||0,H=W.anchor||"end",V=H==="end",te=H==="start",ee=((W.leftToRight||0)+1)/2,U=1-ee,Q=E.width,Y=E.height,Z=Math.abs($-B),X=Math.abs(N-j),re=Z>2*S&&X>2*S?S:0;Z-=2*re,X-=2*re;var ie=F(q);q!=="auto"||Q<=Z&&Y<=X||!(Q>Z||Y>X)||(Q>X||Y>Z)&&Q.01?we:function(De,Re,Ie){return Ie&&De===Re?De:Math.abs(De-Re)>=2?we(De):De>Re?Math.ceil(De):Math.floor(De)};ne=ke(ne,de,re),de=ke(de,ne,re),xe=ke(xe,ue,!re),ue=ke(ue,xe,!re)}var Ae=O(s.ensureSingle(ye,"path"),q,E,W);if(Ae.style("vector-effect",H?"none":"non-scaling-stroke").attr("d",isNaN((de-ne)*(ue-xe))||ge&&B._context.staticPlot?"M0,0Z":"M"+ne+","+xe+"V"+ue+"H"+de+"V"+xe+"Z").call(h.setClipUrl,$.layerClipId,B),!q.uniformtext.mode&&ie){var Ee=h.makePointStyleFns(U);h.singlePointStyle(Se,Ae,U,Ee,B)}(function(De,Re,Ie,Be,Ue,qe,Ye,at,lt,ct,bt){var ze,Ne=Re.xaxis,Qe=Re.yaxis,it=De._fullLayout;function kt(Dt,gt,ht){return s.ensureSingle(Dt,"text").text(gt).attr({class:"bartext bartext-"+ze,"text-anchor":"middle","data-notex":1}).call(h.font,ht).call(c.convertToTspans,De)}var Je=Be[0].trace,ut=Je.orientation==="h",pt=function(Dt,gt,ht,yt,qt){var Et,jt=gt[0].trace;return Et=jt.texttemplate?function(Tt,Ot,At,Lt,Rt){var $t=Ot[0].trace,Yt=s.castOption($t,At,"texttemplate");if(!Yt)return"";var Xt,Bt,Wt,tn,cn=$t.type==="histogram",ln=$t.type==="waterfall",an=$t.type==="funnel",sn=$t.orientation==="h";function Zt(wn){return m(tn,tn.c2l(wn),!0).text}sn?(Xt="y",Bt=Rt,Wt="x",tn=Lt):(Xt="x",Bt=Lt,Wt="y",tn=Rt);var pn,nn=Ot[At],Kt={};Kt.label=nn.p,Kt.labelLabel=Kt[Xt+"Label"]=(pn=nn.p,m(Bt,Bt.c2l(pn),!0).text);var On=s.castOption($t,nn.i,"text");(On===0||On)&&(Kt.text=On),Kt.value=nn.s,Kt.valueLabel=Kt[Wt+"Label"]=Zt(nn.s);var Tn={};M(Tn,$t,nn.i),(cn||Tn.x===void 0)&&(Tn.x=sn?Kt.value:Kt.label),(cn||Tn.y===void 0)&&(Tn.y=sn?Kt.label:Kt.value),(cn||Tn.xLabel===void 0)&&(Tn.xLabel=sn?Kt.valueLabel:Kt.labelLabel),(cn||Tn.yLabel===void 0)&&(Tn.yLabel=sn?Kt.labelLabel:Kt.valueLabel),ln&&(Kt.delta=+nn.rawS||nn.s,Kt.deltaLabel=Zt(Kt.delta),Kt.final=nn.v,Kt.finalLabel=Zt(Kt.final),Kt.initial=Kt.final-Kt.delta,Kt.initialLabel=Zt(Kt.initial)),an&&(Kt.value=nn.s,Kt.valueLabel=Zt(Kt.value),Kt.percentInitial=nn.begR,Kt.percentInitialLabel=s.formatPercent(nn.begR),Kt.percentPrevious=nn.difR,Kt.percentPreviousLabel=s.formatPercent(nn.difR),Kt.percentTotal=nn.sumR,Kt.percenTotalLabel=s.formatPercent(nn.sumR));var Dn=s.castOption($t,nn.i,"customdata");return Dn&&(Kt.customdata=Dn),s.texttemplateString(Yt,Kt,Tt._d3locale,Tn,Kt,$t._meta||{})}(Dt,gt,ht,yt,qt):jt.textinfo?function(Tt,Ot,At,Lt){var Rt=Tt[0].trace,$t=Rt.orientation==="h",Yt=Rt.type==="waterfall",Xt=Rt.type==="funnel";function Bt(Dn){return m($t?At:Lt,+Dn,!0).text}var Wt,tn,cn=Rt.textinfo,ln=Tt[Ot],an=cn.split("+"),sn=[],Zt=function(Dn){return an.indexOf(Dn)!==-1};if(Zt("label")&&sn.push((tn=Tt[Ot].p,m($t?Lt:At,tn,!0).text)),Zt("text")&&((Wt=s.castOption(Rt,ln.i,"text"))===0||Wt)&&sn.push(Wt),Yt){var pn=+ln.rawS||ln.s,nn=ln.v,Kt=nn-pn;Zt("initial")&&sn.push(Bt(Kt)),Zt("delta")&&sn.push(Bt(pn)),Zt("final")&&sn.push(Bt(nn))}if(Xt){Zt("value")&&sn.push(Bt(ln.s));var On=0;Zt("percent initial")&&On++,Zt("percent previous")&&On++,Zt("percent total")&&On++;var Tn=On>1;Zt("percent initial")&&(Wt=s.formatPercent(ln.begR),Tn&&(Wt+=" of initial"),sn.push(Wt)),Zt("percent previous")&&(Wt=s.formatPercent(ln.difR),Tn&&(Wt+=" of previous"),sn.push(Wt)),Zt("percent total")&&(Wt=s.formatPercent(ln.sumR),Tn&&(Wt+=" of total"),sn.push(Wt))}return sn.join("
")}(gt,ht,yt,qt):x.getValue(jt.text,ht),x.coerceString(k,Et)}(it,Be,Ue,Ne,Qe);ze=function(Dt,gt){var ht=x.getValue(Dt.textposition,gt);return x.coerceEnumerated(T,ht)}(Je,Ue);var It=ct.mode==="stack"||ct.mode==="relative",Mt=Be[Ue],zt=!It||Mt._outmost;if(pt&&ze!=="none"&&(!Mt.isBlank&&qe!==Ye&&at!==lt||ze!=="auto"&&ze!=="inside")){var wt=it.font,ve=b.getBarColor(Be[Ue],Je),_e=b.getInsideTextFont(Je,Ue,wt,ve),Ve=b.getOutsideTextFont(Je,Ue,wt),We=Ie.datum();ut?Ne.type==="log"&&We.s0<=0&&(qe=Ne.range[0]0&&nt>0&&(Ke<=mt&&nt<=tt||Ke<=tt&&nt<=mt||(ut?mt>=Ke*(tt/nt):tt>=nt*(mt/Ke)))?ze="inside":(ze="outside",Ze.remove(),Ze=null)):ze="inside"),!Ze){var Ft=(Ze=kt(Ie,pt,st=s.ensureUniformFontSize(De,ze==="outside"?Ve:_e))).attr("transform");if(Ze.attr("transform",""),Ke=(Ge=h.bBox(Ze.node())).width,nt=Ge.height,Ze.attr("transform",Ft),Ke<=0||nt<=0)return void Ze.remove()}var Vt,St=Je.textangle;Vt=ze==="outside"?function(Dt,gt,ht,yt,qt,Et){var jt,Tt=!!Et.isHorizontal,Ot=!!Et.constrained,At=Et.angle||0,Lt=qt.width,Rt=qt.height,$t=Math.abs(gt-Dt),Yt=Math.abs(yt-ht);jt=Tt?Yt>2*S?S:0:$t>2*S?S:0;var Xt=1;Ot&&(Xt=Tt?Math.min(1,Yt/Rt):Math.min(1,$t/Lt));var Bt=F(At),Wt=A(qt,Bt),tn=(Tt?Wt.x:Wt.y)/2,cn=(qt.left+qt.right)/2,ln=(qt.top+qt.bottom)/2,an=(Dt+gt)/2,sn=(ht+yt)/2,Zt=0,pn=0,nn=Tt?D(gt,Dt):D(ht,yt);return Tt?(an=gt-nn*jt,Zt=nn*tn):(sn=yt+nn*jt,pn=-nn*tn),{textX:cn,textY:ln,targetX:an,targetY:sn,anchorX:Zt,anchorY:pn,scale:Xt,rotate:Bt}}(qe,Ye,at,lt,Ge,{isHorizontal:ut,constrained:Je.constraintext==="both"||Je.constraintext==="outside",angle:St}):z(qe,Ye,at,lt,Ge,{isHorizontal:ut,constrained:Je.constraintext==="both"||Je.constraintext==="inside",angle:St,anchor:Je.insidetextanchor}),Vt.fontSize=st.size,v(Je.type==="histogram"?"bar":Je.type,Vt,it),Mt.transform=Vt;var Nt=O(Ze,it,ct,bt);s.setTransormAndDisplay(Nt,Vt)}else Ie.select("text").remove()})(B,$,ye,te,Oe,ne,de,xe,ue,E,W),$.layerClipId&&h.hideOutsideRangePoint(Se,ye.select("text"),G,L,U.xcalendar,U.ycalendar)});var Te=U.cliponaxis===!1;h.setClipUrl(ee,Te?null:$.layerClipId,B)});p.getComponentMethod("errorbars","plot")(B,V,$,E)},toMoveInsideBar:z}},81974:function(o){function a(n,l,f,s,c){var d=l.c2p(s?n.s0:n.p0,!0),h=l.c2p(s?n.s1:n.p1,!0),p=f.c2p(s?n.p0:n.s0,!0),m=f.c2p(s?n.p1:n.s1,!0);return c?[(d+h)/2,(p+m)/2]:s?[h,(p+m)/2]:[(d+h)/2,m]}o.exports=function(n,l){var f,s=n.cd,c=n.xaxis,d=n.yaxis,h=s[0].trace,p=h.type==="funnel",m=h.orientation==="h",y=[];if(l===!1)for(f=0;f1||O.bargap===0&&O.bargroupgap===0&&!R[0].trace.marker.line.width)&&l.select(this).attr("shape-rendering","crispEdges")}),P.selectAll("g.points").each(function(R){b(l.select(this),R[0].trace,C)}),d.getComponentMethod("errorbars","style")(P)},styleTextPoints:x,styleOnSelect:function(C,P,D){var O=P[0].trace;O.selectedpoints?function(R,F,A){s.selectedPointStyle(R.selectAll("path"),F),function(z,B,$){z.each(function(j){var N,E=l.select(this);if(j.selected){N=c.ensureUniformFontSize($,_(E,j,B,$));var W=B.selected.textfont&&B.selected.textfont.color;W&&(N.color=W),s.font(E,N)}else s.selectedTextStyle(E,B)})}(R.selectAll("text"),F,A)}(D,O,C):(b(D,O,C),d.getComponentMethod("errorbars","style")(D))},getInsideTextFont:k,getOutsideTextFont:T,getBarColor:S,resizeText:h}},98340:function(o,a,n){var l=n(7901),f=n(52075).hasColorscale,s=n(1586),c=n(71828).coercePattern;o.exports=function(d,h,p,m,y){var v=p("marker.color",m),g=f(d,"marker");g&&s(d,h,y,p,{prefix:"marker.",cLetter:"c"}),p("marker.line.color",l.defaultLine),f(d,"marker.line")&&s(d,h,y,p,{prefix:"marker.line.",cLetter:"c"}),p("marker.line.width"),p("marker.opacity"),c(p,"marker.pattern",v,g),p("selected.marker.color"),p("unselected.marker.color")}},72597:function(o,a,n){var l=n(39898),f=n(71828);function s(c){return"_"+c+"Text_minsize"}o.exports={recordMinTextSize:function(c,d,h){if(h.uniformtext.mode){var p=s(c),m=h.uniformtext.minsize,y=d.scale*d.fontSize;d.hide=yj.uf};if(T._hasPreCompStats){var Y=T[P],Z=function(Re){return C.d2c((T[Re]||[])[M])},X=1/0,re=-1/0;for(M=0;M=j.q1&&j.q3>=j.med){var le=Z("lowerfence");j.lf=le!==d&&le<=j.q1?le:g(j,E,W);var se=Z("upperfence");j.uf=se!==d&&se>=j.q3?se:b(j,E,W);var pe=Z("mean");j.mean=pe!==d?pe:W?c.mean(E,W):(j.q1+j.q3)/2;var Te=Z("sd");j.sd=pe!==d&&Te>=0?Te:W?c.stdev(E,W,j.mean):j.q3-j.q1,j.lo=x(j),j.uo=_(j);var Se=Z("notchspan");Se=Se!==d&&Se>0?Se:w(j,W),j.ln=j.med-Se,j.un=j.med+Se;var Oe=j.lf,Me=j.uf;T.boxpoints&&E.length&&(Oe=Math.min(Oe,E[0]),Me=Math.max(Me,E[W-1])),T.notched&&(Oe=Math.min(Oe,j.ln),Me=Math.max(Me,j.un)),j.min=Oe,j.max=Me}else{var ce;c.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+j.q1,"median = "+j.med,"q3 = "+j.q3].join(` -`)),ce=j.med!==d?j.med:j.q1!==d?j.q3!==d?(j.q1+j.q3)/2:j.q1:j.q3!==d?j.q3:0,j.med=ce,j.q1=j.q3=ce,j.lf=j.uf=ce,j.mean=j.sd=ce,j.ln=j.un=ce,j.min=j.max=ce}X=Math.min(X,j.min),re=Math.max(re,j.max),j.pts2=N.filter(Q),B.push(j)}}T._extremes[C._id]=f.findExtremes(C,[X,re],{padded:!0})}else{var ye=C.makeCalcdata(T,P),J=function(Re,Ie){for(var Be=Re.length,Ue=new Array(Be+1),qe=0;qe=0&&xe0){var Ae,Ee;(j={}).pos=j[O]=ee[M],N=j.pts=de[M].sort(y),W=(E=j[P]=N.map(v)).length,j.min=E[0],j.max=E[W-1],j.mean=c.mean(E,W),j.sd=c.stdev(E,W,j.mean)*T.sdmultiple,j.med=c.interp(E,.5),W%2&&(we||ke)?(we?(Ae=E.slice(0,W/2),Ee=E.slice(W/2+1)):ke&&(Ae=E.slice(0,W/2+1),Ee=E.slice(W/2)),j.q1=c.interp(Ae,.5),j.q3=c.interp(Ee,.5)):(j.q1=c.interp(E,.25),j.q3=c.interp(E,.75)),j.lf=g(j,E,W),j.uf=b(j,E,W),j.lo=x(j),j.uo=_(j);var De=w(j,W);j.ln=j.med-De,j.un=j.med+De,ue=Math.min(ue,j.ln),ge=Math.max(ge,j.un),j.pts2=N.filter(Q),B.push(j)}T._extremes[C._id]=f.findExtremes(C,T.notched?ye.concat([ue,ge]):ye,{padded:!0})}return function(Re,Ie){if(c.isArrayOrTypedArray(Ie.selectedpoints))for(var Be=0;Be0?(B[0].t={num:F[$],dPos:U,posLetter:O,valLetter:P,labels:{med:h(k,"median:"),min:h(k,"min:"),q1:h(k,"q1:"),q3:h(k,"q3:"),max:h(k,"max:"),mean:T.boxmean==="sd"||T.sizemode==="sd"?h(k,"mean ± σ:").replace("σ",T.sdmultiple===1?"σ":T.sdmultiple+"σ"):h(k,"mean:"),lf:h(k,"lower fence:"),uf:h(k,"upper fence:")}},F[$]++,B):[{t:{empty:!0}}]};var p={text:"tx",hovertext:"htx"};function m(k,T,M){for(var S in p)c.isArrayOrTypedArray(T[S])&&(Array.isArray(M)?c.isArrayOrTypedArray(T[S][M[0]])&&(k[p[S]]=T[S][M[0]][M[1]]):k[p[S]]=T[S][M])}function y(k,T){return k.v-T.v}function v(k){return k.v}function g(k,T,M){return M===0?k.q1:Math.min(k.q1,T[Math.min(c.findBin(2.5*k.q1-1.5*k.q3,T,!0)+1,M-1)])}function b(k,T,M){return M===0?k.q3:Math.max(k.q3,T[Math.max(c.findBin(2.5*k.q3-1.5*k.q1,T),0)])}function x(k){return 4*k.q1-3*k.q3}function _(k){return 4*k.q3-3*k.q1}function w(k,T){return T===0?0:1.57*(k.q3-k.q1)/Math.sqrt(T)}},37188:function(o,a,n){var l=n(89298),f=n(71828),s=n(99082).getAxisGroup,c=["v","h"];function d(h,p,m,y){var v,g,b,x=p.calcdata,_=p._fullLayout,w=y._id,k=w.charAt(0),T=[],M=0;for(v=0;v1,O=1-_[h+"gap"],R=1-_[h+"groupgap"];for(v=0;v0){var ie=N.pointpos,le=N.jitter,se=N.marker.size/2,pe=0;ie+le>=0&&((pe=X*(ie+le))>$?(re=!0,Y=se,U=pe):pe>te&&(Y=se,U=$)),pe<=$&&(U=$);var Te=0;ie-le<=0&&((Te=-X*(ie-le))>j?(re=!0,Z=se,Q=Te):Te>ee&&(Z=se,Q=j)),Te<=j&&(Q=j)}else U=$,Q=j;var Se=new Array(b.length);for(g=0;g0?(D="v",O=F>0?Math.min(z,A):Math.min(A)):F>0?(D="h",O=Math.min(z)):O=0;if(O){g._length=O;var W=b("orientation",D);g._hasPreCompStats?W==="v"&&F===0?(b("x0",0),b("dx",1)):W==="h"&&R===0&&(b("y0",0),b("dy",1)):W==="v"&&F===0?b("x0"):W==="h"&&R===0&&b("y0"),f.getComponentMethod("calendars","handleTraceDefaults")(v,g,["x","y"],x)}else g.visible=!1}function y(v,g,b,x){var _=x.prefix,w=l.coerce2(v,g,p,"marker.outliercolor"),k=b("marker.line.outliercolor"),T="outliers";g._hasPreCompStats?T="all":(w||k)&&(T="suspectedoutliers");var M=b(_+"points",T);M?(b("jitter",M==="all"?.3:0),b("pointpos",M==="all"?-1.5:0),b("marker.symbol"),b("marker.opacity"),b("marker.size"),b("marker.angle"),b("marker.color",g.line.color),b("marker.line.color"),b("marker.line.width"),M==="suspectedoutliers"&&(b("marker.line.outliercolor",g.marker.color),b("marker.line.outlierwidth")),b("selected.marker.color"),b("unselected.marker.color"),b("selected.marker.size"),b("unselected.marker.size"),b("text"),b("hovertext")):delete g.marker;var S=b("hoveron");S!=="all"&&S.indexOf("points")===-1||b("hovertemplate"),l.coerceSelectionMarkerOpacity(g,b)}o.exports={supplyDefaults:function(v,g,b,x){function _(O,R){return l.coerce(v,g,p,O,R)}if(m(v,g,_,x),g.visible!==!1){c(v,g,x,_),_("xhoverformat"),_("yhoverformat");var w=g._hasPreCompStats;w&&(_("lowerfence"),_("upperfence")),_("line.color",(v.marker||{}).color||b),_("line.width"),_("fillcolor",s.addOpacity(g.line.color,.5));var k=!1;if(w){var T=_("mean"),M=_("sd");T&&T.length&&(k=!0,M&&M.length&&(k="sd"))}_("whiskerwidth");var S,C=_("sizemode");C==="quartiles"&&(S=_("boxmean",k)),_("showwhiskers",C==="quartiles"),C!=="sd"&&S!=="sd"||_("sdmultiple"),_("width"),_("quartilemethod");var P=!1;if(w){var D=_("notchspan");D&&D.length&&(P=!0)}else l.validate(v.notchwidth,p.notchwidth)&&(P=!0);_("notched",P)&&_("notchwidth"),y(v,g,_,{prefix:"box"})}},crossTraceDefaults:function(v,g){var b,x;function _(T){return l.coerce(x._input,x,p,T)}for(var w=0;wM.lo&&(E.so=!0)}return P});T.enter().append("path").classed("point",!0),T.exit().remove(),T.call(s.translatePoints,g,b)}function h(p,m,y,v){var g,b,x=m.val,_=m.pos,w=!!_.rangebreaks,k=v.bPos,T=v.bPosPxOffset||0,M=y.boxmean||(y.meanline||{}).visible;Array.isArray(v.bdPos)?(g=v.bdPos[0],b=v.bdPos[1]):(g=v.bdPos,b=v.bdPos);var S=p.selectAll("path.mean").data(y.type==="box"&&y.boxmean||y.type==="violin"&&y.box.visible&&y.meanline.visible?f.identity:[]);S.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),S.exit().remove(),S.each(function(C){var P=_.c2l(C.pos+k,!0),D=_.l2p(P-g)+T,O=_.l2p(P+b)+T,R=w?(D+O)/2:_.l2p(P)+T,F=x.c2p(C.mean,!0),A=x.c2p(C.mean-C.sd,!0),z=x.c2p(C.mean+C.sd,!0);y.orientation==="h"?l.select(this).attr("d","M"+F+","+D+"V"+O+(M==="sd"?"m0,0L"+A+","+R+"L"+F+","+D+"L"+z+","+R+"Z":"")):l.select(this).attr("d","M"+D+","+F+"H"+O+(M==="sd"?"m0,0L"+R+","+A+"L"+D+","+F+"L"+R+","+z+"Z":""))})}o.exports={plot:function(p,m,y,v){var g=p._context.staticPlot,b=m.xaxis,x=m.yaxis;f.makeTraceGroups(v,y,"trace boxes").each(function(_){var w,k,T=l.select(this),M=_[0],S=M.t,C=M.trace;S.wdPos=S.bdPos*C.whiskerwidth,C.visible!==!0||S.empty?T.remove():(C.orientation==="h"?(w=x,k=b):(w=b,k=x),c(T,{pos:w,val:k},C,S,g),d(T,{x:b,y:x},C,S),h(T,{pos:w,val:k},C,S))})},plotBoxAndWhiskers:c,plotPoints:d,plotBoxMean:h}},24626:function(o){o.exports=function(a,n){var l,f,s=a.cd,c=a.xaxis,d=a.yaxis,h=[];if(n===!1)for(l=0;ld.level||d.starts.length&&c===d.level)}break;case"constraint":if(f.prefixBoundary=!1,f.edgepaths.length)return;var h=f.x.length,p=f.y.length,m=-1/0,y=1/0;for(l=0;l":b>m&&(f.prefixBoundary=!0);break;case"<":(bm||f.starts.length&&g===y)&&(f.prefixBoundary=!0);break;case"][":v=Math.min(b[0],b[1]),g=Math.max(b[0],b[1]),vm&&(f.prefixBoundary=!0)}}}},90654:function(o,a,n){var l=n(21081),f=n(86068),s=n(53572);o.exports={min:"zmin",max:"zmax",calc:function(c,d,h){var p=d.contours,m=d.line,y=p.size||1,v=p.coloring,g=f(d,{isColorbar:!0});if(v==="heatmap"){var b=l.extractOpts(d);h._fillgradient=b.reversescale?l.flipScale(b.colorscale):b.colorscale,h._zrange=[b.min,b.max]}else v==="fill"&&(h._fillcolor=g);h._line={color:v==="lines"?g:m.color,width:p.showlines!==!1?m.width:0,dash:m.dash},h._levels={start:p.start,end:s(p),size:y}}}},36914:function(o){o.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},83179:function(o,a,n){var l=n(92770),f=n(14523),s=n(7901),c=s.addOpacity,d=s.opacity,h=n(74808),p=h.CONSTRAINT_REDUCTION,m=h.COMPARISON_OPS2;o.exports=function(y,v,g,b,x,_){var w,k,T,M=v.contours,S=g("contours.operation");M._operation=p[S],function(C,P){var D;m.indexOf(P.operation)===-1?(C("contours.value",[0,1]),Array.isArray(P.value)?P.value.length>2?P.value=P.value.slice(2):P.length===0?P.value=[0,1]:P.length<2?(D=parseFloat(P.value[0]),P.value=[D,D+1]):P.value=[parseFloat(P.value[0]),parseFloat(P.value[1])]:l(P.value)&&(D=parseFloat(P.value),P.value=[D,D+1])):(C("contours.value",0),l(P.value)||(Array.isArray(P.value)?P.value=parseFloat(P.value[0]):P.value=0))}(g,M),S==="="?w=M.showlines=!0:(w=g("contours.showlines"),T=g("fillcolor",c((y.line||{}).color||x,.5))),w&&(k=g("line.color",T&&d(T)?c(v.fillcolor,1):x),g("line.width",2),g("line.dash")),g("line.smoothing"),f(g,b,k,_)}},64237:function(o,a,n){var l=n(74808),f=n(92770);function s(h,p){var m,y=Array.isArray(p);function v(g){return f(g)?+g:null}return l.COMPARISON_OPS2.indexOf(h)!==-1?m=v(y?p[0]:p):l.INTERVAL_OPS.indexOf(h)!==-1?m=y?[v(p[0]),v(p[1])]:[v(p),v(p)]:l.SET_OPS.indexOf(h)!==-1&&(m=y?p.map(v):[v(p)]),m}function c(h){return function(p){p=s(h,p);var m=Math.min(p[0],p[1]),y=Math.max(p[0],p[1]);return{start:m,end:y,size:y-m}}}function d(h){return function(p){return{start:p=s(h,p),end:1/0,size:1/0}}}o.exports={"[]":c("[]"),"][":c("]["),">":d(">"),"<":d("<"),"=":d("=")}},67217:function(o){o.exports=function(a,n,l,f){var s=f("contours.start"),c=f("contours.end"),d=s===!1||c===!1,h=l("contours.size");!(d?n.autocontour=!0:l("autocontour",!1))&&h||l("ncontours")}},84857:function(o,a,n){var l=n(71828);function f(s){return l.extendFlat({},s,{edgepaths:l.extendDeep([],s.edgepaths),paths:l.extendDeep([],s.paths),starts:l.extendDeep([],s.starts)})}o.exports=function(s,c){var d,h,p,m=function(g){return g.reverse()},y=function(g){return g};switch(c){case"=":case"<":return s;case">":for(s.length!==1&&l.warn("Contour data invalid for the specified inequality operation."),h=s[0],d=0;d1e3){l.warn("Too many contours, clipping at 1000",c);break}return y}},53572:function(o){o.exports=function(a){return a.end+a.size/1e6}},81696:function(o,a,n){var l=n(71828),f=n(36914);function s(h,p,m,y){return Math.abs(h[0]-p[0])20&&re?X===208||X===1114?le=ie[0]===0?1:-1:se=ie[1]===0?1:-1:f.BOTTOMSTART.indexOf(X)!==-1?se=1:f.LEFTSTART.indexOf(X)!==-1?le=1:f.TOPSTART.indexOf(X)!==-1?se=-1:le=-1,[le,se]}(x,m,p),w=[d(h,p,[-_[0],-_[1]])],k=h.z.length,T=h.z[0].length,M=p.slice(),S=_.slice();for(g=0;g<1e4;g++){if(x>20?(x=f.CHOOSESADDLE[x][(_[0]||_[1])<0?0:1],h.crossings[b]=f.SADDLEREMAINDER[x]):delete h.crossings[b],!(_=f.NEWDELTA[x])){l.log("Found bad marching index:",x,p,h.level);break}w.push(d(h,p,_)),p[0]+=_[0],p[1]+=_[1],b=p.join(","),s(w[w.length-1],w[w.length-2],y,v)&&w.pop();var C=_[0]&&(p[0]<0||p[0]>T-2)||_[1]&&(p[1]<0||p[1]>k-2);if(p[0]===M[0]&&p[1]===M[1]&&_[0]===S[0]&&_[1]===S[1]||m&&C)break;x=h.crossings[b]}g===1e4&&l.log("Infinite loop in contour?");var P,D,O,R,F,A,z,B,$,j,N,E,W,G,L,q=s(w[0],w[w.length-1],y,v),H=0,V=.2*h.smoothing,te=[],ee=0;for(g=1;g=ee;g--)if((P=te[g])=ee&&P+te[D]B&&$--,h.edgepaths[$]=N.concat(w,j));break}Z||(h.edgepaths[B]=w.concat(j))}for(B=0;B=S)&&(h<=M&&(h=M),p>=S&&(p=S),y=Math.floor((p-h)/m)+1,v=0),x=0;xM&&(k.unshift(M),T.unshift(T[0])),k[k.length-1]s?0:1)+(c[0][1]>s?0:2)+(c[1][1]>s?0:4)+(c[1][0]>s?0:8);return d===5||d===10?s>(c[0][0]+c[0][1]+c[1][0]+c[1][1])/4?d===5?713:1114:d===5?104:208:d===15?0:d}o.exports=function(s){var c,d,h,p,m,y,v,g,b,x=s[0].z,_=x.length,w=x[0].length,k=_===2||w===2;for(d=0;d<_-1;d++)for(p=[],d===0&&(p=p.concat(l.BOTTOMSTART)),d===_-2&&(p=p.concat(l.TOPSTART)),c=0;c=0&&(D=L,R=F):Math.abs(P[1]-D[1])<.01?Math.abs(P[1]-L[1])<.01&&(L[0]-P[0])*(D[0]-L[0])>=0&&(D=L,R=F):f.log("endpt to newendpt is not vert. or horz.",P,D,L)}if(P=D,R>=0)break;B+="L"+D}if(R===S.edgepaths.length){f.log("unclosed perimeter path");break}$=R,(N=j.indexOf($)===-1)&&($=j[0],B+="Z")}for($=0;$D.center?D.right-F:F-D.left)/(B+Math.abs(Math.sin(z)*R)),N=(A>D.middle?D.bottom-A:A-D.top)/(Math.abs($)+Math.cos(z)*R);if(j<1||N<1)return 1/0;var E=w.EDGECOST*(1/(j-1)+1/(N-1));E+=w.ANGLECOST*z*z;for(var W=F-B,G=A-$,L=F+B,q=A+$,H=0;H2*w.MAXCOST)break;N&&(F/=2),A=(R=z-F/2)+1.5*F}if(j<=w.MAXCOST)return B},a.addLabelData=function(S,C,P,D){var O=C.fontSize,R=C.width+O/3,F=Math.max(0,C.height-O/3),A=S.x,z=S.y,B=S.theta,$=Math.sin(B),j=Math.cos(B),N=function(W,G){return[A+W*j-G*$,z+W*$+G*j]},E=[N(-R/2,-F/2),N(-R/2,F/2),N(R/2,F/2),N(R/2,-F/2)];P.push({text:C.text,x:A,y:z,dy:C.dy,theta:B,level:C.level,width:R,height:F}),D.push(E)},a.drawLabels=function(S,C,P,D,O){var R=S.selectAll("text").data(C,function(z){return z.text+","+z.x+","+z.y+","+z.theta});if(R.exit().remove(),R.enter().append("text").attr({"data-notex":1,"text-anchor":"middle"}).each(function(z){var B=z.x+Math.sin(z.theta)*z.dy,$=z.y-Math.cos(z.theta)*z.dy;l.select(this).text(z.text).attr({x:B,y:$,transform:"rotate("+180*z.theta/Math.PI+" "+B+" "+$+")"}).call(d.convertToTspans,P)}),O){for(var F="",A=0;Ah.end&&(h.start=h.end=(h.start+h.end)/2),c._input.contours||(c._input.contours={}),f.extendFlat(c._input.contours,{start:h.start,end:h.end,size:h.size}),c._input.autocontour=!0}else if(h.type!=="constraint"){var v,g=h.start,b=h.end,x=c._input.contours;g>b&&(h.start=x.start=b,b=h.end=x.end=g,g=h.start),h.size>0||(v=g===b?1:s(g,b,c.ncontours).dtick,x.size=h.size=v)}}},84426:function(o,a,n){var l=n(39898),f=n(91424),s=n(70035),c=n(86068);o.exports=function(d){var h=l.select(d).selectAll("g.contour");h.style("opacity",function(p){return p[0].trace.opacity}),h.each(function(p){var m=l.select(this),y=p[0].trace,v=y.contours,g=y.line,b=v.size||1,x=v.start,_=v.type==="constraint",w=!_&&v.coloring==="lines",k=!_&&v.coloring==="fill",T=w||k?c(y):null;m.selectAll("g.contourlevel").each(function(C){l.select(this).selectAll("path").call(f.lineGroupStyle,g.width,w?T(C.level):g.color,g.dash)});var M=v.labelfont;if(m.selectAll("g.contourlabels text").each(function(C){f.font(l.select(this),{family:M.family,size:M.size,color:M.color||(w?T(C.level):g.color)})}),_)m.selectAll("g.contourfill path").style("fill",y.fillcolor);else if(k){var S;m.selectAll("g.contourfill path").style("fill",function(C){return S===void 0&&(S=C.level),T(C.level+.5*b)}),S===void 0&&(S=x),m.selectAll("g.contourbg path").style("fill",T(S-.5*b))}}),s(d)}},8724:function(o,a,n){var l=n(1586),f=n(14523);o.exports=function(s,c,d,h,p){var m,y=d("contours.coloring"),v="";y==="fill"&&(m=d("contours.showlines")),m!==!1&&(y!=="lines"&&(v=d("line.color","#000")),d("line.width",.5),d("line.dash")),y!=="none"&&(s.showlegend!==!0&&(c.showlegend=!1),c._dfltShowLegend=!1,l(s,c,h,d,{prefix:"",cLetter:"z"})),d("line.smoothing"),f(d,h,v,p)}},21606:function(o,a,n){var l=n(82196),f=n(9012),s=n(41940),c=n(12663).axisHoverFormat,d=n(5386).fF,h=n(5386).si,p=n(50693),m=n(1426).extendFlat;o.exports=m({z:{valType:"data_array",editType:"calc"},x:m({},l.x,{impliedEdits:{xtype:"array"}}),x0:m({},l.x0,{impliedEdits:{xtype:"scaled"}}),dx:m({},l.dx,{impliedEdits:{xtype:"scaled"}}),y:m({},l.y,{impliedEdits:{ytype:"array"}}),y0:m({},l.y0,{impliedEdits:{ytype:"scaled"}}),dy:m({},l.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:m({},l.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:m({},l.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:m({},l.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:m({},l.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:m({},l.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:m({},l.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:c("x"),yhoverformat:c("y"),zhoverformat:c("z",1),hovertemplate:d(),texttemplate:h({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:s({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:m({},f.showlegend,{dflt:!1})},{transforms:void 0},p("",{cLetter:"z",autoColorDflt:!1}))},90757:function(o,a,n){var l=n(73972),f=n(71828),s=n(89298),c=n(42973),d=n(17562),h=n(78803),p=n(68296),m=n(4742),y=n(824),v=n(43907),g=n(70769),b=n(50606).BADNUM;function x(_){for(var w=[],k=_.length,T=0;T1){var Z=(Y[Y.length-1]-Y[0])/(Y.length-1),X=Math.abs(Z/100);for(F=0;FX)return!1}return!0}(z.rangebreaks||B.rangebreaks)&&(R=function(Y,Z,X){for(var re=[],ie=-1,le=0;le=0;p--)(m=((b[[(c=(h=x[p])[0])-1,d=h[1]]]||k)[2]+(b[[c+1,d]]||k)[2]+(b[[c,d-1]]||k)[2]+(b[[c,d+1]]||k)[2])/20)&&(y[h]=[c,d,m],x.splice(p,1),v=!0);if(!v)throw"findEmpties iterated with no new neighbors";for(h in y)b[h]=y[h],g.push(y[h])}return g.sort(function(M,S){return S[2]-M[2]})}},46248:function(o,a,n){var l=n(30211),f=n(71828),s=n(89298),c=n(21081).extractOpts;o.exports=function(d,h,p,m,y){y||(y={});var v,g,b,x,_=y.isContour,w=d.cd[0],k=w.trace,T=d.xa,M=d.ya,S=w.x,C=w.y,P=w.z,D=w.xCenter,O=w.yCenter,R=w.zmask,F=k.zhoverformat,A=S,z=C;if(d.index!==!1){try{b=Math.round(d.index[1]),x=Math.round(d.index[0])}catch{return void f.error("Error hovering on heatmap, pointNumber must be [row,col], found:",d.index)}if(b<0||b>=P[0].length||x<0||x>P.length)return}else{if(l.inbox(h-S[0],h-S[S.length-1],0)>0||l.inbox(p-C[0],p-C[C.length-1],0)>0)return;if(_){var B;for(A=[2*S[0]-S[1]],B=1;BS&&(P=Math.max(P,Math.abs(d[y][v]-M)/(C-S))))}return P}o.exports=function(d,h){var p,m=1;for(c(d,h),p=0;p.01;p++)m=c(d,h,s(m));return m>.01&&l.log("interp2d didn't converge quickly",m),d}},58623:function(o,a,n){var l=n(71828);o.exports=function(f,s){f("texttemplate");var c=l.extendFlat({},s.font,{color:"auto",size:"auto"});l.coerceFont(f,"textfont",c)}},70769:function(o,a,n){var l=n(73972),f=n(71828).isArrayOrTypedArray;o.exports=function(s,c,d,h,p,m){var y,v,g,b=[],x=l.traceIs(s,"contour"),_=l.traceIs(s,"histogram"),w=l.traceIs(s,"gl2d");if(f(c)&&c.length>1&&!_&&m.type!=="category"){var k=c.length;if(!(k<=p))return x?c.slice(0,p):c.slice(0,p+1);if(x||w)b=c.slice(0,p);else if(p===1)b=[c[0]-.5,c[0]+.5];else{for(b=[1.5*c[0]-.5*c[1]],g=1;g0;)j=A.c2p(Y[G]),G--;for(j<$&&(N=j,j=$,$=N,Te=!0),G=0;E===void 0&&G0;)W=z.c2p(Z[G]),G--;W=A._length||j<=0||E>=z._length||W<=0)return H.selectAll("image").data([]).exit().remove(),void M(H);Oe==="fast"?(ce=pe,ye=se):(ce=J,ye=ne);var de=document.createElement("canvas");de.width=ce,de.height=ye;var xe,ue,ge=de.getContext("2d",{willReadFrequently:!0}),be=g(te,{noNumericCheck:!0,returnArray:!0});Oe==="fast"?(xe=Te?function(pn){return pe-1-pn}:h.identity,ue=Se?function(pn){return se-1-pn}:h.identity):(xe=function(pn){return h.constrain(Math.round(A.c2p(Y[pn])-$),0,J)},ue=function(pn){return h.constrain(Math.round(z.c2p(Z[pn])-E),0,ne)});var we,ke,Ae,Ee,De=ue(0),Re=[De,De],Ie=Te?0:1,Be=Se?0:1,Ue=0,qe=0,Ye=0,at=0;function lt(pn,nn){if(pn!==void 0){var Kt=be(pn);return Kt[0]=Math.round(Kt[0]),Kt[1]=Math.round(Kt[1]),Kt[2]=Math.round(Kt[2]),Ue+=nn,qe+=Kt[0]*nn,Ye+=Kt[1]*nn,at+=Kt[2]*nn,Kt}return[0,0,0,0]}function ct(pn,nn,Kt,On){var Tn=pn[Kt.bin0];if(Tn===void 0)return lt(void 0,1);var Dn,wn=pn[Kt.bin1],En=nn[Kt.bin0],tr=nn[Kt.bin1],oa=wn-Tn||0,da=En-Tn||0;return Dn=wn===void 0?tr===void 0?0:En===void 0?2*(tr-Tn):2*(2*tr-En-Tn)/3:tr===void 0?En===void 0?0:2*(2*Tn-wn-En)/3:En===void 0?2*(2*tr-wn-Tn)/3:tr+Tn-wn-En,lt(Tn+Kt.frac*oa+On.frac*(da+Kt.frac*Dn))}if(Oe!=="default"){var bt,ze=0;try{bt=new Uint8Array(ce*ye*4)}catch{bt=new Array(ce*ye*4)}if(Oe==="smooth"){var Ne,Qe,it,kt=X||Y,Je=re||Z,ut=new Array(kt.length),pt=new Array(Je.length),It=new Array(J),Mt=X?C:S,zt=re?C:S;for(G=0;Ggt||gt>z._length))for(L=Vt;Lyt||yt>A._length)){var qt=m({x:ht,y:Dt},te,D._fullLayout);qt.x=ht,qt.y=Dt;var Et=V.z[G][L];Et===void 0?(qt.z="",qt.zLabel=""):(qt.z=Et,qt.zLabel=d.tickText(st,Et,"hover").text);var jt=V.text&&V.text[G]&&V.text[G][L];jt!==void 0&&jt!==!1||(jt=""),qt.text=jt;var Tt=h.texttemplateString(Ke,qt,D._fullLayout._d3locale,qt,te._meta||{});if(Tt){var Ot=Tt.split("
"),At=Ot.length,Lt=0;for(q=0;q0&&(S=!0);for(var D=0;Dh){var p=h-c[f];return c[f]=h,p}}return 0},max:function(f,s,c,d){var h=d[s];if(l(h)){if(h=Number(h),!l(c[f]))return c[f]=h,h;if(c[f]p?x>c?x>1.1*f?f:x>1.1*s?s:c:x>d?d:x>h?h:p:Math.pow(10,Math.floor(Math.log(x)/Math.LN10))}function g(x,_,w,k,T,M){if(k&&x>c){var S=b(_,T,M),C=b(w,T,M),P=x===f?0:1;return S[P]!==C[P]}return Math.floor(w/x)-Math.floor(_/x)>.1}function b(x,_,w){var k=_.c2d(x,f,w).split("-");return k[0]===""&&(k.unshift(),k[0]="-"+k[0]),k}o.exports=function(x,_,w,k,T){var M,S,C=-1.1*_,P=-.1*_,D=x-P,O=w[0],R=w[1],F=Math.min(y(O+P,O+D,k,T),y(R+P,R+D,k,T)),A=Math.min(y(O+C,O+P,k,T),y(R+C,R+P,k,T));if(F>A&&Ac){var z=M===f?1:6,B=M===f?"M12":"M1";return function($,j){var N=k.c2d($,f,T),E=N.indexOf("-",z);E>0&&(N=N.substr(0,E));var W=k.d2c(N,0,T);if(W<$){var G=m(W,B,!1,T);(W+G)/2<$+x&&(W=G)}return j&&S?m(W,B,!0,T):W}}return function($,j){var N=M*Math.round($/M);return N+M/10<$&&N+.9*M<$+x&&(N+=M),j&&S&&(N-=M),N}}},72138:function(o,a,n){var l=n(92770),f=n(71828),s=n(73972),c=n(89298),d=n(75341),h=n(59575),p=n(36362),m=n(42174),y=n(40965);function v(g,b,x,_,w){var k,T,M,S,C,P,D,O=_+"bins",R=g._fullLayout,F=b["_"+_+"bingroup"],A=R._histogramBinOpts[F],z=R.barmode==="overlay",B=function(Se){return x.r2c(Se,0,S)},$=function(Se){return x.c2r(Se,0,S)},j=x.type==="date"?function(Se){return Se||Se===0?f.cleanDate(Se,null,S):null}:function(Se){return l(Se)?Number(Se):null};function N(Se,Oe,Me){Oe[Se+"Found"]?(Oe[Se]=j(Oe[Se]),Oe[Se]===null&&(Oe[Se]=Me[Se])):(P[Se]=Oe[Se]=Me[Se],f.nestedProperty(T[0],O+"."+Se).set(Me[Se]))}if(b["_"+_+"autoBinFinished"])delete b["_"+_+"autoBinFinished"];else{T=A.traces;var E=[],W=!0,G=!1,L=!1;for(k=0;kx.r2l(Z)&&(re=c.tickIncrement(re,A.size,!0,S)),ee.start=x.l2r(re),Y||f.nestedProperty(b,O+".start").set(ee.start)}var ie=A.end,le=x.r2l(te.end),se=le!==void 0;if((A.endFound||se)&&le!==x.r2l(ie)){var pe=se?le:f.aggNums(Math.max,null,C);ee.end=x.l2r(pe),se||f.nestedProperty(b,O+".start").set(ee.end)}var Te="autobin"+_;return b._input[Te]===!1&&(b._input[O]=f.extendFlat({},b[O]||{}),delete b._input[Te],delete b[Te]),[ee,C]}o.exports={calc:function(g,b){var x,_,w,k,T=[],M=[],S=b.orientation==="h",C=c.getFromId(g,S?b.yaxis:b.xaxis),P=S?"y":"x",D={x:"y",y:"x"}[P],O=b[P+"calendar"],R=b.cumulative,F=v(g,b,C,P),A=F[0],z=F[1],B=typeof A.size=="string",$=[],j=B?$:A,N=[],E=[],W=[],G=0,L=b.histnorm,q=b.histfunc,H=L.indexOf("density")!==-1;R.enabled&&H&&(L=L.replace(/ ?density$/,""),H=!1);var V,te=q==="max"||q==="min"?null:0,ee=h.count,U=p[L],Q=!1,Y=function(ne){return C.r2c(ne,0,O)};for(f.isArrayOrTypedArray(b[D])&&q!=="count"&&(V=b[D],Q=q==="avg",ee=h[q]),x=Y(A.start),w=Y(A.end)+(x-c.tickIncrement(x,A.size,!1,O))/1e6;x=0&&k=0;ue--)ke(ue);else if(de==="increasing"){for(ue=1;ue=0;ue--)ne[ue]+=ne[ue+1];xe==="exclude"&&(ne.push(0),ne.shift())}}(M,R.direction,R.currentbin);var Oe=Math.min(T.length,M.length),Me=[],ce=0,ye=Oe-1;for(x=0;x=ce;x--)if(M[x]){ye=x;break}for(x=ce;x<=ye;x++)if(l(T[x])&&l(M[x])){var J={p:T[x],s:M[x],b:0};R.enabled||(J.pts=W[x],le?J.ph0=J.ph1=W[x].length?z[W[x][0]]:T[x]:(b._computePh=!0,J.ph0=re($[x]),J.ph1=re($[x+1],!0))),Me.push(J)}return Me.length===1&&(Me[0].width1=c.tickIncrement(Me[0].p,A.size,!1,O)-Me[0].p),d(Me,b),f.isArrayOrTypedArray(b.selectedpoints)&&f.tagSelected(Me,b,Te),Me},calcAllAutoBins:v}},72406:function(o){o.exports={eventDataKeys:["binNumber"]}},82222:function(o,a,n){var l=n(71828),f=n(41675),s=n(73972).traceIs,c=n(26125),d=l.nestedProperty,h=n(99082).getAxisGroup,p=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],m=["x","y"];o.exports=function(y,v){var g,b,x,_,w,k,T,M=v._histogramBinOpts={},S=[],C={},P=[];function D(H,V){return l.coerce(g._input,g,g._module.attributes,H,V)}function O(H){return H.orientation==="v"?"x":"y"}function R(H,V,te){var ee=H.uid+"__"+te;V||(V=ee);var U=function(X,re){return f.getFromTrace({_fullLayout:v},X,re).type}(H,te),Q=H[te+"calendar"]||"",Y=M[V],Z=!0;Y&&(U===Y.axType&&Q===Y.calendar?(Z=!1,Y.traces.push(H),Y.dirs.push(te)):(V=ee,U!==Y.axType&&l.warn(["Attempted to group the bins of trace",H.index,"set on a","type:"+U,"axis","with bins on","type:"+Y.axType,"axis."].join(" ")),Q!==Y.calendar&&l.warn(["Attempted to group the bins of trace",H.index,"set with a",Q,"calendar","with bins",Y.calendar?"on a "+Y.calendar+" calendar":"w/o a set calendar"].join(" ")))),Z&&(M[V]={traces:[H],dirs:[te],axType:U,calendar:H[te+"calendar"]||""}),H["_"+te+"bingroup"]=V}for(w=0;w$&&F.splice($,F.length-$),B.length>$&&B.splice($,B.length-$);var j=[],N=[],E=[],W=typeof R.size=="string",G=typeof z.size=="string",L=[],q=[],H=W?L:R,V=G?q:z,te=0,ee=[],U=[],Q=b.histnorm,Y=b.histfunc,Z=Q.indexOf("density")!==-1,X=Y==="max"||Y==="min"?null:0,re=s.count,ie=c[Q],le=!1,se=[],pe=[],Te="z"in b?b.z:"marker"in b&&Array.isArray(b.marker.color)?b.marker.color:"";Te&&Y!=="count"&&(le=Y==="avg",re=s[Y]);var Se=R.size,Oe=P(R.start),Me=P(R.end)+(Oe-f.tickIncrement(Oe,Se,!1,S))/1e6;for(x=Oe;x=0&&w=0&&k0||l.inbox(h-p.y0,h-(p.y0+p.h*m.dy),0)>0)){var g,b=Math.floor((d-p.x0)/m.dx),x=Math.floor(Math.abs(h-p.y0)/m.dy);if(m._hasZ?g=p.z[x][b]:m._hasSource&&(g=m._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(b,x,1,1).data),g){var _,w=p.hi||m.hoverinfo;if(w){var k=w.split("+");k.indexOf("all")!==-1&&(k=["color"]),k.indexOf("color")!==-1&&(_=!0)}var T,M=s.colormodel[m.colormodel],S=M.colormodel||m.colormodel,C=S.length,P=m._scaler(g),D=M.suffix,O=[];(m.hovertemplate||_)&&(O.push("["+[P[0]+D[0],P[1]+D[1],P[2]+D[2]].join(", ")),C===4&&O.push(", "+P[3]+D[3]),O.push("]"),O=O.join(""),c.extraText=S.toUpperCase()+": "+O),Array.isArray(m.hovertext)&&Array.isArray(m.hovertext[x])?T=m.hovertext[x][b]:Array.isArray(m.text)&&Array.isArray(m.text[x])&&(T=m.text[x][b]);var R=v.c2p(p.y0+(x+.5)*m.dy),F=p.x0+(b+.5)*m.dx,A=p.y0+(x+.5)*m.dy,z="["+g.slice(0,m.colormodel.length).join(", ")+"]";return[f.extendFlat(c,{index:[x,b],x0:y.c2p(p.x0+b*m.dx),x1:y.c2p(p.x0+(b+1)*m.dx),y0:R,y1:R,color:P,xVal:F,xLabelVal:F,yVal:A,yLabelVal:A,zLabelVal:z,text:T,hovertemplateLabels:{zLabel:z,colorLabel:O,"color[0]Label":P[0]+D[0],"color[1]Label":P[1]+D[1],"color[2]Label":P[2]+D[2],"color[3]Label":P[3]+D[3]}})]}}}},94507:function(o,a,n){o.exports={attributes:n(17230),supplyDefaults:n(13245),calc:n(71113),plot:n(60775),style:n(12826),hoverPoints:n(28749),eventData:n(30835),moduleType:"trace",name:"image",basePlotModule:n(93612),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}},60775:function(o,a,n){var l=n(39898),f=n(71828),s=f.strTranslate,c=n(77922),d=n(51877),h=n(3883),p=n(32396).STYLE;o.exports=function(m,y,v,g){var b=y.xaxis,x=y.yaxis,_=!m._context._exportedPlot&&h();f.makeTraceGroups(g,v,"im").each(function(w){var k=l.select(this),T=w[0],M=T.trace,S=(M.zsmooth==="fast"||M.zsmooth===!1&&_)&&!M._hasZ&&M._hasSource&&b.type==="linear"&&x.type==="linear";M._realImage=S;var C,P,D,O,R,F,A=T.z,z=T.x0,B=T.y0,$=T.w,j=T.h,N=M.dx,E=M.dy;for(F=0;C===void 0&&F<$;)C=b.c2p(z+F*N),F++;for(F=$;P===void 0&&F>0;)P=b.c2p(z+F*N),F--;for(F=0;O===void 0&&F0;)R=x.c2p(B+F*E),F--;PV[0];if(te||ee){var U=C+W/2,Q=O+G/2;q+="transform:"+s(U+"px",Q+"px")+"scale("+(te?-1:1)+","+(ee?-1:1)+")"+s(-U+"px",-Q+"px")+";"}}L.attr("style",q);var Y=new Promise(function(X){if(M._hasZ)X();else if(M._hasSource)if(M._canvas&&M._canvas.el.width===$&&M._canvas.el.height===j&&M._canvas.source===M.source)X();else{var re=document.createElement("canvas");re.width=$,re.height=j;var ie=re.getContext("2d",{willReadFrequently:!0});M._image=M._image||new Image;var le=M._image;le.onload=function(){ie.drawImage(le,0,0),M._canvas={el:re,source:M.source},X()},le.setAttribute("src",M.source)}}).then(function(){var X,re;if(M._hasZ)re=Z(function(le,se){return A[se][le]}),X=re.toDataURL("image/png");else if(M._hasSource)if(S)X=M.source;else{var ie=M._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,$,j).data;re=Z(function(le,se){var pe=4*(se*$+le);return[ie[pe],ie[pe+1],ie[pe+2],ie[pe+3]]}),X=re.toDataURL("image/png")}L.attr({"xlink:href":X,height:G,width:W,x:C,y:O})});m._promises.push(Y)}function Z(X){var re=document.createElement("canvas");re.width=W,re.height=G;var ie,le=re.getContext("2d",{willReadFrequently:!0}),se=function(de){return f.constrain(Math.round(b.c2p(z+de*N)-C),0,W)},pe=function(de){return f.constrain(Math.round(x.c2p(B+de*E)-O),0,G)},Te=d.colormodel[M.colormodel],Se=Te.colormodel||M.colormodel,Oe=Te.fmt;for(F=0;F=0}),(m.type==="funnelarea"?D:m.sort)&&g.sort(function(z,B){return B.v-z.v}),g[0]&&(g[0].vTotal=P),g},crossTraceCalc:function(p,m){var y=(m||{}).type;y||(y="pie");var v=p._fullLayout,g=p.calcdata,b=v[y+"colorway"],x=v["_"+y+"colormap"];v["extend"+y+"colors"]&&(b=h(b,c));for(var _=0,w=0;w0){_=!0;break}}_||(x=0)}return{hasLabels:g,hasValues:b,len:x}}function m(y,v,g,b,x){b("marker.line.width")&&b("marker.line.color",x?void 0:g.paper_bgcolor);var _=b("marker.colors");h(b,"marker.pattern",_),y.marker&&!v.marker.pattern.fgcolor&&(v.marker.pattern.fgcolor=y.marker.colors),v.marker.pattern.bgcolor||(v.marker.pattern.bgcolor=g.paper_bgcolor)}o.exports={handleLabelsAndValues:p,handleMarkerDefaults:m,supplyDefaults:function(y,v,g,b){function x(D,O){return f.coerce(y,v,s,D,O)}var _=p(x("labels"),x("values")),w=_.len;if(v._hasLabels=_.hasLabels,v._hasValues=_.hasValues,!v._hasLabels&&v._hasValues&&(x("label0"),x("dlabel")),w){v._length=w,m(y,v,b,x,!0),x("scalegroup");var k,T=x("text"),M=x("texttemplate");if(M||(k=x("textinfo",Array.isArray(T)?"text+percent":"percent")),x("hovertext"),x("hovertemplate"),M||k&&k!=="none"){var S=x("textposition");d(y,v,b,x,S,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(S)||S==="auto"||S==="outside")&&x("automargin"),(S==="inside"||S==="auto"||Array.isArray(S))&&x("insidetextorientation")}c(v,b,x);var C=x("hole");if(x("title.text")){var P=x("title.position",C?"middle center":"top center");C||P!=="middle center"||(v.title.position="top center"),f.coerceFont(x,"title.font",b.font)}x("sort"),x("direction"),x("rotation"),x("pull")}else v.visible=!1}}},20007:function(o,a,n){var l=n(23469).appendArrayMultiPointValues;o.exports=function(f,s){var c={curveNumber:s.index,pointNumbers:f.pts,data:s._input,fullData:s,label:f.label,color:f.color,value:f.v,percent:f.percent,text:f.text,bbox:f.bbox,v:f.v};return f.pts.length===1&&(c.pointNumber=c.i=f.pts[0]),l(c,s,f.pts),s.type==="funnelarea"&&(delete c.v,delete c.i),c}},22209:function(o,a,n){var l=n(91424),f=n(7901);o.exports=function(s,c,d,h){var p=d.marker.pattern;p&&p.shape?l.pointStyle(s,d,h,c):f.fill(s,c.color)}},53581:function(o,a,n){var l=n(71828);function f(s){return s.indexOf("e")!==-1?s.replace(/[.]?0+e/,"e"):s.indexOf(".")!==-1?s.replace(/[.]?0+$/,""):s}a.formatPiePercent=function(s,c){var d=f((100*s).toPrecision(3));return l.numSeparate(d,c)+"%"},a.formatPieValue=function(s,c){var d=f(s.toPrecision(10));return l.numSeparate(d,c)},a.getFirstFilled=function(s,c){if(Array.isArray(s))for(var d=0;d"),name:X.hovertemplate||re.indexOf("name")!==-1?X.name:void 0,idealAlign:Y.pxmid[0]<0?"left":"right",color:_.castOption(Oe.bgcolor,Y.pts)||Y.color,borderColor:_.castOption(Oe.bordercolor,Y.pts),fontFamily:_.castOption(Me.family,Y.pts),fontSize:_.castOption(Me.size,Y.pts),fontColor:_.castOption(Me.color,Y.pts),nameLength:_.castOption(Oe.namelength,Y.pts),textAlign:_.castOption(Oe.align,Y.pts),hovertemplate:_.castOption(X.hovertemplate,Y.pts),hovertemplateLabels:Y,eventData:[w(Y,X)]},{container:Z._hoverlayer.node(),outerContainer:Z._paper.node(),gd:q,inOut_bbox:ce}),Y.bbox=ce[0],U._hasHoverLabel=!0}U._hasHoverEvent=!0,q.emit("plotly_hover",{points:[w(Y,X)],event:l.event})}}),L.on("mouseout",function(Y){var Z=q._fullLayout,X=q._fullData[U.index],re=l.select(this).datum();U._hasHoverEvent&&(Y.originalEvent=l.event,q.emit("plotly_unhover",{points:[w(re,X)],event:l.event}),U._hasHoverEvent=!1),U._hasHoverLabel&&(s.loneUnhover(Z._hoverlayer.node()),U._hasHoverLabel=!1)}),L.on("click",function(Y){var Z=q._fullLayout,X=q._fullData[U.index];q._dragging||Z.hovermode===!1||(q._hoverdata=[w(Y,X)],s.click(q,l.event))})}function M(L,q,H){var V=_.castOption(L.insidetextfont.color,q.pts);!V&&L._input.textfont&&(V=_.castOption(L._input.textfont.color,q.pts));var te=_.castOption(L.insidetextfont.family,q.pts)||_.castOption(L.textfont.family,q.pts)||H.family,ee=_.castOption(L.insidetextfont.size,q.pts)||_.castOption(L.textfont.size,q.pts)||H.size;return{color:V||c.contrast(q.color),family:te,size:ee}}function S(L,q){for(var H,V,te=0;tewe&&we>Ae||ke=-4;Te-=2)Se(Math.PI*Te,"tan");for(Te=4;Te>=-4;Te-=2)Se(Math.PI*(Te+1),"tan")}if(re||le){for(Te=4;Te>=-4;Te-=2)Se(Math.PI*(Te+1.5),"rad");for(Te=4;Te>=-4;Te-=2)Se(Math.PI*(Te+.5),"rad")}}if(Q||se||re){var Oe=Math.sqrt(L.width*L.width+L.height*L.height);if((ee={scale:te*V*2/Oe,rCenter:1-te,rotate:0}).textPosAngle=(q.startangle+q.stopangle)/2,ee.scale>=1)return ee;pe.push(ee)}(se||le)&&((ee=P(L,V,U,Y,Z)).textPosAngle=(q.startangle+q.stopangle)/2,pe.push(ee)),(se||ie)&&((ee=D(L,V,U,Y,Z)).textPosAngle=(q.startangle+q.stopangle)/2,pe.push(ee));for(var Me=0,ce=0,ye=0;ye=1)break}return pe[Me]}function P(L,q,H,V,te){q=Math.max(0,q-2*x);var ee=L.width/L.height,U=F(ee,V,q,H);return{scale:2*U/L.height,rCenter:O(ee,U/q),rotate:R(te)}}function D(L,q,H,V,te){q=Math.max(0,q-2*x);var ee=L.height/L.width,U=F(ee,V,q,H);return{scale:2*U/L.width,rCenter:O(ee,U/q),rotate:R(te+Math.PI/2)}}function O(L,q){return Math.cos(q)-L*q}function R(L){return(180/Math.PI*L+720)%180-90}function F(L,q,H,V){var te=L+1/(2*Math.tan(q));return H*Math.min(1/(Math.sqrt(te*te+.5)+te),V/(Math.sqrt(L*L+V/2)+L))}function A(L,q){return L.v!==q.vTotal||q.trace.hole?Math.min(1/(1+1/Math.sin(L.halfangle)),L.ring/2):1}function z(L,q){var H=q.pxmid[0],V=q.pxmid[1],te=L.width/2,ee=L.height/2;return H<0&&(te*=-1),V<0&&(ee*=-1),{scale:1,rCenter:1,rotate:0,x:te+Math.abs(ee)*(te>0?1:-1)/2,y:ee/(1+H*H/(V*V)),outside:!0}}function B(L,q){var H,V,te,ee=L.trace,U={x:L.cx,y:L.cy},Q={tx:0,ty:0};Q.ty+=ee.title.font.size,te=j(ee),ee.title.position.indexOf("top")!==-1?(U.y-=(1+te)*L.r,Q.ty-=L.titleBox.height):ee.title.position.indexOf("bottom")!==-1&&(U.y+=(1+te)*L.r);var Y,Z=L.r/((Y=L.trace.aspectratio)===void 0?1:Y),X=q.w*(ee.domain.x[1]-ee.domain.x[0])/2;return ee.title.position.indexOf("left")!==-1?(X+=Z,U.x-=(1+te)*Z,Q.tx+=L.titleBox.width/2):ee.title.position.indexOf("center")!==-1?X*=2:ee.title.position.indexOf("right")!==-1&&(X+=Z,U.x+=(1+te)*Z,Q.tx-=L.titleBox.width/2),H=X/L.titleBox.width,V=$(L,q)/L.titleBox.height,{x:U.x,y:U.y,scale:Math.min(H,V),tx:Q.tx,ty:Q.ty}}function $(L,q){var H=L.trace,V=q.h*(H.domain.y[1]-H.domain.y[0]);return Math.min(L.titleBox.height,V/2)}function j(L){var q,H=L.pull;if(!H)return 0;if(Array.isArray(H))for(H=0,q=0;qH&&(H=L.pull[q]);return H}function N(L,q){for(var H=[],V=0;V1?ye=(ce=le.r)/pe.aspectratio:ce=(ye=le.r)*pe.aspectratio,Me=(ce*=(1+pe.baseratio)/2)*ye}Se=Math.min(Se,Me/le.vTotal)}for(se=0;se")}if(ee){var Te=h.castOption(te,q.i,"texttemplate");if(Te){var Se=function(Me){return{label:Me.label,value:Me.v,valueLabel:_.formatPieValue(Me.v,V.separators),percent:Me.v/H.vTotal,percentLabel:_.formatPiePercent(Me.v/H.vTotal,V.separators),color:Me.color,text:Me.text,customdata:h.castOption(te,Me.i,"customdata")}}(q),Oe=_.getFirstFilled(te.text,q.pts);(k(Oe)||Oe==="")&&(Se.text=Oe),q.text=h.texttemplateString(Te,Se,L._fullLayout._d3locale,Se,te._meta||{})}else q.text=""}}function G(L,q){var H=L.rotate*Math.PI/180,V=Math.cos(H),te=Math.sin(H),ee=(q.left+q.right)/2,U=(q.top+q.bottom)/2;L.textX=ee*V-U*te,L.textY=ee*te+U*V,L.noCenter=!0}o.exports={plot:function(L,q){var H=L._context.staticPlot,V=L._fullLayout,te=V._size;b("pie",V),S(q,L),N(q,te);var ee=h.makeTraceGroups(V._pielayer,q,"trace").each(function(U){var Q=l.select(this),Y=U[0],Z=Y.trace;(function(X){var re,ie,le,se=X[0],pe=se.r,Te=se.trace,Se=_.getRotationAngle(Te.rotation),Oe=2*Math.PI/se.vTotal,Me="px0",ce="px1";if(Te.direction==="counterclockwise"){for(re=0;rese.vTotal/2?1:0,ie.halfangle=Math.PI*Math.min(ie.v/se.vTotal,.5),ie.ring=1-Te.hole,ie.rInscribed=A(ie,se))})(U),Q.attr("stroke-linejoin","round"),Q.each(function(){var X=l.select(this).selectAll("g.slice").data(U);X.enter().append("g").classed("slice",!0),X.exit().remove();var re=[[[],[]],[[],[]]],ie=!1;X.each(function(ce,ye){if(ce.hidden)l.select(this).selectAll("path,g").remove();else{ce.pointNumber=ce.i,ce.curveNumber=Z.index,re[ce.pxmid[1]<0?0:1][ce.pxmid[0]<0?0:1].push(ce);var J=Y.cx,ne=Y.cy,de=l.select(this),xe=de.selectAll("path.surface").data([ce]);if(xe.enter().append("path").classed("surface",!0).style({"pointer-events":H?"none":"all"}),de.call(T,L,U),Z.pull){var ue=+_.castOption(Z.pull,ce.pts)||0;ue>0&&(J+=ue*ce.pxmid[0],ne+=ue*ce.pxmid[1])}ce.cxFinal=J,ce.cyFinal=ne;var ge=Z.hole;if(ce.v===Y.vTotal){var be="M"+(J+ce.px0[0])+","+(ne+ce.px0[1])+De(ce.px0,ce.pxmid,!0,1)+De(ce.pxmid,ce.px0,!0,1)+"Z";ge?xe.attr("d","M"+(J+ge*ce.px0[0])+","+(ne+ge*ce.px0[1])+De(ce.px0,ce.pxmid,!1,ge)+De(ce.pxmid,ce.px0,!1,ge)+"Z"+be):xe.attr("d",be)}else{var we=De(ce.px0,ce.px1,!0,1);if(ge){var ke=1-ge;xe.attr("d","M"+(J+ge*ce.px1[0])+","+(ne+ge*ce.px1[1])+De(ce.px1,ce.px0,!1,ge)+"l"+ke*ce.px0[0]+","+ke*ce.px0[1]+we+"Z")}else xe.attr("d","M"+J+","+ne+"l"+ce.px0[0]+","+ce.px0[1]+we+"Z")}W(L,ce,Y);var Ae=_.castOption(Z.textposition,ce.pts),Ee=de.selectAll("g.slicetext").data(ce.text&&Ae!=="none"?[0]:[]);Ee.enter().append("g").classed("slicetext",!0),Ee.exit().remove(),Ee.each(function(){var Re=h.ensureSingle(l.select(this),"text","",function(ct){ct.attr("data-notex",1)}),Ie=h.ensureUniformFontSize(L,Ae==="outside"?function(ct,bt,ze){return{color:_.castOption(ct.outsidetextfont.color,bt.pts)||_.castOption(ct.textfont.color,bt.pts)||ze.color,family:_.castOption(ct.outsidetextfont.family,bt.pts)||_.castOption(ct.textfont.family,bt.pts)||ze.family,size:_.castOption(ct.outsidetextfont.size,bt.pts)||_.castOption(ct.textfont.size,bt.pts)||ze.size}}(Z,ce,V.font):M(Z,ce,V.font));Re.text(ce.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(d.font,Ie).call(y.convertToTspans,L);var Be,Ue=d.bBox(Re.node());if(Ae==="outside")Be=z(Ue,ce);else if(Be=C(Ue,ce,Y),Ae==="auto"&&Be.scale<1){var qe=h.ensureUniformFontSize(L,Z.outsidetextfont);Re.call(d.font,qe),Be=z(Ue=d.bBox(Re.node()),ce)}var Ye=Be.textPosAngle,at=Ye===void 0?ce.pxmid:E(Y.r,Ye);if(Be.targetX=J+at[0]*Be.rCenter+(Be.x||0),Be.targetY=ne+at[1]*Be.rCenter+(Be.y||0),G(Be,Ue),Be.outside){var lt=Be.targetY;ce.yLabelMin=lt-Ue.height/2,ce.yLabelMid=lt,ce.yLabelMax=lt+Ue.height/2,ce.labelExtraX=0,ce.labelExtraY=0,ie=!0}Be.fontSize=Ie.size,g(Z.type,Be,V),U[ye].transform=Be,h.setTransormAndDisplay(Re,Be)})}function De(Re,Ie,Be,Ue){var qe=Ue*(Ie[0]-Re[0]),Ye=Ue*(Ie[1]-Re[1]);return"a"+Ue*Y.r+","+Ue*Y.r+" 0 "+ce.largeArc+(Be?" 1 ":" 0 ")+qe+","+Ye}});var le=l.select(this).selectAll("g.titletext").data(Z.title.text?[0]:[]);if(le.enter().append("g").classed("titletext",!0),le.exit().remove(),le.each(function(){var ce,ye=h.ensureSingle(l.select(this),"text","",function(ne){ne.attr("data-notex",1)}),J=Z.title.text;Z._meta&&(J=h.templateString(J,Z._meta)),ye.text(J).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(d.font,Z.title.font).call(y.convertToTspans,L),ce=Z.title.position==="middle center"?function(ne){var de=Math.sqrt(ne.titleBox.width*ne.titleBox.width+ne.titleBox.height*ne.titleBox.height);return{x:ne.cx,y:ne.cy,scale:ne.trace.hole*ne.r*2/de,tx:0,ty:-ne.titleBox.height/2+ne.trace.title.font.size}}(Y):B(Y,te),ye.attr("transform",m(ce.x,ce.y)+p(Math.min(1,ce.scale))+m(ce.tx,ce.ty))}),ie&&function(ce,ye){var J,ne,de,xe,ue,ge,be,we,ke,Ae,Ee,De,Re;function Ie(Ye,at){return Ye.pxmid[1]-at.pxmid[1]}function Be(Ye,at){return at.pxmid[1]-Ye.pxmid[1]}function Ue(Ye,at){at||(at={});var lt,ct,bt,ze,Ne=at.labelExtraY+(ne?at.yLabelMax:at.yLabelMin),Qe=ne?Ye.yLabelMin:Ye.yLabelMax,it=ne?Ye.yLabelMax:Ye.yLabelMin,kt=Ye.cyFinal+ue(Ye.px0[1],Ye.px1[1]),Je=Ne-Qe;if(Je*be>0&&(Ye.labelExtraY=Je),Array.isArray(ye.pull))for(ct=0;ct=(_.castOption(ye.pull,bt.pts)||0)||((Ye.pxmid[1]-bt.pxmid[1])*be>0?(Je=bt.cyFinal+ue(bt.px0[1],bt.px1[1])-Qe-Ye.labelExtraY)*be>0&&(Ye.labelExtraY+=Je):(it+Ye.labelExtraY-kt)*be>0&&(lt=3*ge*Math.abs(ct-Ae.indexOf(Ye)),(ze=bt.cxFinal+xe(bt.px0[0],bt.px1[0])+lt-(Ye.cxFinal+Ye.pxmid[0])-Ye.labelExtraX)*ge>0&&(Ye.labelExtraX+=ze)))}for(ne=0;ne<2;ne++)for(de=ne?Ie:Be,ue=ne?Math.max:Math.min,be=ne?1:-1,J=0;J<2;J++){for(xe=J?Math.max:Math.min,ge=J?1:-1,(we=ce[ne][J]).sort(de),ke=ce[1-ne][J],Ae=ke.concat(we),De=[],Ee=0;EeMath.abs(we)?ue+="l"+we*J.pxmid[0]/J.pxmid[1]+","+we+"H"+(xe+J.labelExtraX+ge):ue+="l"+J.labelExtraX+","+be+"v"+(we-be)+"h"+ge}else ue+="V"+(J.yLabelMid+J.labelExtraY)+"h"+ge;h.ensureSingle(ne,"path","textline").call(c.stroke,ye.outsidetextfont.color).attr({"stroke-width":Math.min(2,ye.outsidetextfont.size/8),d:ue,fill:"none"})}else ne.select("path.textline").remove()})}(X,Z),ie&&Z.automargin){var se=d.bBox(Q.node()),pe=Z.domain,Te=te.w*(pe.x[1]-pe.x[0]),Se=te.h*(pe.y[1]-pe.y[0]),Oe=(.5*Te-Y.r)/te.w,Me=(.5*Se-Y.r)/te.h;f.autoMargin(L,"pie."+Z.uid+".automargin",{xl:pe.x[0]-Oe,xr:pe.x[1]+Oe,yb:pe.y[0]-Me,yt:pe.y[1]+Me,l:Math.max(Y.cx-Y.r-se.left,0),r:Math.max(se.right-(Y.cx+Y.r),0),b:Math.max(se.bottom-(Y.cy+Y.r),0),t:Math.max(Y.cy-Y.r-se.top,0),pad:5})}})});setTimeout(function(){ee.selectAll("tspan").each(function(){var U=l.select(this);U.attr("dy")&&U.attr("dy",U.attr("dy"))})},0)},formatSliceLabel:W,transformInsideText:C,determineInsideTextFont:M,positionTitleOutside:B,prerenderTitles:S,layoutAreas:N,attachFxHandlers:T,computeTransform:G}},68357:function(o,a,n){var l=n(39898),f=n(63463),s=n(72597).resizeText;o.exports=function(c){var d=c._fullLayout._pielayer.selectAll(".trace");s(c,d,"pie"),d.each(function(h){var p=h[0].trace,m=l.select(this);m.style({opacity:p.opacity}),m.selectAll("path.surface").each(function(y){l.select(this).call(f,y,p,c)})})}},63463:function(o,a,n){var l=n(7901),f=n(53581).castOption,s=n(22209);o.exports=function(c,d,h,p){var m=h.marker.line,y=f(m.color,d.pts)||l.defaultLine,v=f(m.width,d.pts)||0;c.call(s,d,h,p).style("stroke-width",v).call(l.stroke,y)}},75225:function(o,a,n){var l=n(71828);o.exports=function(f,s){for(var c=0;cM&&W[C].gap;)C--;for(D=W[C].s,S=W.length-1;S>C;S--)W[S].s=D;for(;MB[b]&&b=0;b--){var x=c[b];if(x.type==="scatter"&&x.xaxis===v.xaxis&&x.yaxis===v.yaxis){x.opacity=void 0;break}}}}}},17438:function(o,a,n){var l=n(71828),f=n(73972),s=n(82196),c=n(47581),d=n(34098),h=n(67513),p=n(73927),m=n(565),y=n(49508),v=n(11058),g=n(94039),b=n(82410),x=n(28908),_=n(71828).coercePattern;o.exports=function(w,k,T,M){function S(z,B){return l.coerce(w,k,s,z,B)}var C=h(w,k,M,S);if(C||(k.visible=!1),k.visible){p(w,k,M,S),S("xhoverformat"),S("yhoverformat");var P=m(w,k,M,S);M.scattermode==="group"&&k.orientation===void 0&&S("orientation","v");var D=!P&&C=Math.min(Te,Se)&&w<=Math.max(Te,Se)?0:1/0}var Oe=Math.max(3,pe.mrc||0),Me=1-1/Oe,ce=Math.abs(x.c2p(pe.x)-w);return ce=Math.min(Te,Se)&&k<=Math.max(Te,Se)?0:1/0}var Oe=Math.max(3,pe.mrc||0),Me=1-1/Oe,ce=Math.abs(_.c2p(pe.y)-k);return cele!=(ee=L[W][1])>=le&&(H=L[W-1][0],V=L[W][0],ee-te&&(q=H+(V-H)*(le-te)/(ee-te),Z=Math.min(Z,q),X=Math.max(X,q)));Z=Math.max(Z,0),X=Math.min(X,x._length);var se=d.defaultLine;return d.opacity(b.fillcolor)?se=b.fillcolor:d.opacity((b.line||{}).color)&&(se=b.line.color),l.extendFlat(p,{distance:p.maxHoverDistance,x0:Z,x1:X,y0:le,y1:le,color:se,hovertemplate:!1}),delete p.index,b.text&&!Array.isArray(b.text)?p.text=String(b.text):p.text=b.name,[p]}}}},67368:function(o,a,n){var l=n(34098);o.exports={hasLines:l.hasLines,hasMarkers:l.hasMarkers,hasText:l.hasText,isBubble:l.isBubble,attributes:n(82196),layoutAttributes:n(21479),supplyDefaults:n(17438),crossTraceDefaults:n(34936),supplyLayoutDefaults:n(79334),calc:n(47761).calc,crossTraceCalc:n(72626),arraysToCalcdata:n(75225),plot:n(32663),colorbar:n(4898),formatLabels:n(8225),style:n(16296).style,styleOnSelect:n(16296).styleOnSelect,hoverPoints:n(33720),selectPoints:n(98002),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:n(93612),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}},21479:function(o){o.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}},79334:function(o,a,n){var l=n(71828),f=n(21479);o.exports=function(s,c){var d,h=c.barmode==="group";c.scattermode==="group"&&(d=h?c.bargap:.2,l.coerce(s,c,f,"scattergap",d))}},11058:function(o,a,n){var l=n(71828).isArrayOrTypedArray,f=n(52075).hasColorscale,s=n(1586);o.exports=function(c,d,h,p,m,y){y||(y={});var v=(c.marker||{}).color;m("line.color",h),f(c,"line")?s(c,d,p,m,{prefix:"line.",cLetter:"c"}):m("line.color",!l(v)&&v||h),m("line.width"),y.noDash||m("line.dash"),y.backoff&&m("line.backoff")}},34621:function(o,a,n){var l=n(91424),f=n(50606),s=f.BADNUM,c=f.LOG_CLIP,d=c+.5,h=c-.5,p=n(71828),m=p.segmentsIntersect,y=p.constrain,v=n(47581);o.exports=function(g,b){var x,_,w,k,T,M,S,C,P,D,O,R,F,A,z,B,$,j,N=b.trace||{},E=b.xaxis,W=b.yaxis,G=E.type==="log",L=W.type==="log",q=E._length,H=W._length,V=b.backoff,te=N.marker,ee=b.connectGaps,U=b.baseTolerance,Q=b.shape,Y=Q==="linear",Z=N.fill&&N.fill!=="none",X=[],re=v.minTolerance,ie=g.length,le=new Array(ie),se=0;function pe(Je){var ut=g[Je];if(!ut)return!1;var pt=b.linearized?E.l2p(ut.x):E.c2p(ut.x),It=b.linearized?W.l2p(ut.y):W.c2p(ut.y);if(pt===s){if(G&&(pt=E.c2p(ut.x,!0)),pt===s)return!1;L&&It===s&&(pt*=Math.abs(E._m*H*(E._m>0?d:h)/(W._m*q*(W._m>0?d:h)))),pt*=1e3}if(It===s){if(L&&(It=W.c2p(ut.y,!0)),It===s)return!1;It*=1e3}return[pt,It]}function Te(Je,ut,pt,It){var Mt=pt-Je,zt=It-ut,wt=.5-Je,ve=.5-ut,_e=Mt*Mt+zt*zt,Ve=Mt*wt+zt*ve;if(Ve>0&&Ve<_e){var We=wt*zt-ve*Mt;if(We*We<_e)return!0}}function Se(Je,ut){var pt=Je[0]/q,It=Je[1]/H,Mt=Math.max(0,-pt,pt-1,-It,It-1);return Mt&&$!==void 0&&Te(pt,It,$,j)&&(Mt=0),Mt&&ut&&Te(pt,It,ut[0]/q,ut[1]/H)&&(Mt=0),(1+v.toleranceGrowth*Mt)*U}function Oe(Je,ut){var pt=Je[0]-ut[0],It=Je[1]-ut[1];return Math.sqrt(pt*pt+It*It)}var Me,ce,ye,J,ne,de,xe,ue=v.maxScreensAway,ge=-q*ue,be=q*(1+ue),we=-H*ue,ke=H*(1+ue),Ae=[[ge,we,be,we],[be,we,be,ke],[be,ke,ge,ke],[ge,ke,ge,we]];function Ee(Je){if(Je[0]be||Je[1]ke)return[y(Je[0],ge,be),y(Je[1],we,ke)]}function De(Je,ut){return Je[0]===ut[0]&&(Je[0]===ge||Je[0]===be)||Je[1]===ut[1]&&(Je[1]===we||Je[1]===ke)||void 0}function Re(Je,ut,pt){return function(It,Mt){var zt=Ee(It),wt=Ee(Mt),ve=[];if(zt&&wt&&De(zt,wt))return ve;zt&&ve.push(zt),wt&&ve.push(wt);var _e=2*p.constrain((It[Je]+Mt[Je])/2,ut,pt)-((zt||It)[Je]+(wt||Mt)[Je]);return _e&&((zt&&wt?_e>0==zt[Je]>wt[Je]?zt:wt:zt||wt)[Je]+=_e),ve}}function Ie(Je){var ut=Je[0],pt=Je[1],It=ut===le[se-1][0],Mt=pt===le[se-1][1];if(!It||!Mt)if(se>1){var zt=ut===le[se-2][0],wt=pt===le[se-2][1];It&&(ut===ge||ut===be)&&zt?wt?se--:le[se-1]=Je:Mt&&(pt===we||pt===ke)&&wt?zt?se--:le[se-1]=Je:le[se++]=Je}else le[se++]=Je}function Be(Je){le[se-1][0]!==Je[0]&&le[se-1][1]!==Je[1]&&Ie([ye,J]),Ie(Je),ne=null,ye=J=0}Q==="linear"||Q==="spline"?xe=function(Je,ut){for(var pt=[],It=0,Mt=0;Mt<4;Mt++){var zt=Ae[Mt],wt=m(Je[0],Je[1],ut[0],ut[1],zt[0],zt[1],zt[2],zt[3]);wt&&(!It||Math.abs(wt.x-pt[0][0])>1||Math.abs(wt.y-pt[0][1])>1)&&(wt=[wt.x,wt.y],It&&Oe(wt,Je)be?be:0,ce=Je[1]ke?ke:0,Me||ce){if(se)if(ne){var ut=xe(ne,Je);ut.length>1&&(Be(ut[0]),le[se++]=ut[1])}else de=xe(le[se-1],Je)[0],le[se++]=de;else le[se++]=[Me||Je[0],ce||Je[1]];var pt=le[se-1];Me&&ce&&(pt[0]!==Me||pt[1]!==ce)?(ne&&(ye!==Me&&J!==ce?Ie(ye&&J?(It=ne,zt=(Mt=Je)[0]-It[0],wt=(Mt[1]-It[1])/zt,(It[1]*Mt[0]-Mt[1]*It[0])/zt>0?[wt>0?ge:be,ke]:[wt>0?be:ge,we]):[ye||Me,J||ce]):ye&&J&&Ie([ye,J])),Ie([Me,ce])):ye-Me&&J-ce&&Ie([Me||ye,ce||J]),ne=Je,ye=Me,J=ce}else ne&&Be(xe(ne,Je)[0]),le[se++]=Je;var It,Mt,zt,wt}for(x=0;xSe(M,Ye))break;w=M,(F=P[0]*C[0]+P[1]*C[1])>O?(O=F,k=M,S=!1):F=g.length||!M)break;qe(M),_=M}}else qe(k)}ne&&Ie([ye||ne[0],J||ne[1]]),X.push(le.slice(0,se))}var at=Q.slice(Q.length-1);if(V&&at!=="h"&&at!=="v"){for(var lt=!1,ct=-1,bt=[],ze=0;ze=0?p=b:(p=b=g,g++),p0?Math.max(y,h):0}}},4898:function(o){o.exports={container:"marker",min:"cmin",max:"cmax"}},49508:function(o,a,n){var l=n(7901),f=n(52075).hasColorscale,s=n(1586),c=n(34098);o.exports=function(d,h,p,m,y,v){var g=c.isBubble(d),b=(d.line||{}).color;v=v||{},b&&(p=b),y("marker.symbol"),y("marker.opacity",g?.7:1),y("marker.size"),v.noAngle||(y("marker.angle"),v.noAngleRef||y("marker.angleref"),v.noStandOff||y("marker.standoff")),y("marker.color",p),f(d,"marker")&&s(d,h,m,y,{prefix:"marker.",cLetter:"c"}),v.noSelect||(y("selected.marker.color"),y("unselected.marker.color"),y("selected.marker.size"),y("unselected.marker.size")),v.noLine||(y("marker.line.color",b&&!Array.isArray(b)&&h.marker.color!==b?b:g?l.background:l.defaultLine),f(d,"marker.line")&&s(d,h,m,y,{prefix:"marker.line.",cLetter:"c"}),y("marker.line.width",g?1:0)),g&&(y("marker.sizeref"),y("marker.sizemin"),y("marker.sizemode")),v.gradient&&y("marker.gradient.type")!=="none"&&y("marker.gradient.color")}},73927:function(o,a,n){var l=n(71828).dateTick0,f=n(50606).ONEWEEK;function s(c,d){return l(d,c%f==0?1:0)}o.exports=function(c,d,h,p,m){if(m||(m={x:!0,y:!0}),m.x){var y=p("xperiod");y&&(p("xperiod0",s(y,d.xcalendar)),p("xperiodalignment"))}if(m.y){var v=p("yperiod");v&&(p("yperiod0",s(v,d.ycalendar)),p("yperiodalignment"))}}},32663:function(o,a,n){var l=n(39898),f=n(73972),s=n(71828),c=s.ensureSingle,d=s.identity,h=n(91424),p=n(34098),m=n(34621),y=n(68687),v=n(61082).tester;function g(b,x,_,w,k,T,M){var S,C=b._context.staticPlot;(function(xe,ue,ge,be,we){var ke=ge.xaxis,Ae=ge.yaxis,Ee=l.extent(s.simpleMap(ke.range,ke.r2c)),De=l.extent(s.simpleMap(Ae.range,Ae.r2c)),Re=be[0].trace;if(p.hasMarkers(Re)){var Ie=Re.marker.maxdisplayed;if(Ie!==0){var Be=be.filter(function(at){return at.x>=Ee[0]&&at.x<=Ee[1]&&at.y>=De[0]&&at.y<=De[1]}),Ue=Math.ceil(Be.length/Ie),qe=0;we.forEach(function(at,lt){var ct=at[0].trace;p.hasMarkers(ct)&&ct.marker.maxdisplayed>0&<0;function D(xe){return P?xe.transition():xe}var O=_.xaxis,R=_.yaxis,F=w[0].trace,A=F.line,z=l.select(T),B=c(z,"g","errorbars"),$=c(z,"g","lines"),j=c(z,"g","points"),N=c(z,"g","text");if(f.getComponentMethod("errorbars","plot")(b,B,_,M),F.visible===!0){var E,W;D(z).style("opacity",F.opacity);var G=F.fill.charAt(F.fill.length-1);G!=="x"&&G!=="y"&&(G=""),w[0][_.isRangePlot?"nodeRangePlot3":"node3"]=z;var L,q,H="",V=[],te=F._prevtrace;te&&(H=te._prevRevpath||"",W=te._nextFill,V=te._polygons);var ee,U,Q,Y,Z,X,re,ie="",le="",se=[],pe=s.noop;if(E=F._ownFill,p.hasLines(F)||F.fill!=="none"){for(W&&W.datum(w),["hv","vh","hvh","vhv"].indexOf(A.shape)!==-1?(ee=h.steps(A.shape),U=h.steps(A.shape.split("").reverse().join(""))):ee=U=A.shape==="spline"?function(xe){var ue=xe[xe.length-1];return xe.length>1&&xe[0][0]===ue[0]&&xe[0][1]===ue[1]?h.smoothclosed(xe.slice(1),A.smoothing):h.smoothopen(xe,A.smoothing)}:function(xe){return"M"+xe.join("L")},Q=function(xe){return U(xe.reverse())},se=m(w,{xaxis:O,yaxis:R,trace:F,connectGaps:F.connectgaps,baseTolerance:Math.max(A.width||1,3)/4,shape:A.shape,backoff:A.backoff,simplify:A.simplify,fill:F.fill}),re=F._polygons=new Array(se.length),S=0;S0,D=y(b,x,_);(M=w.selectAll("g.trace").data(D,function(O){return O[0].trace.uid})).enter().append("g").attr("class",function(O){return"trace scatter trace"+O[0].trace.uid}).style("stroke-miterlimit",2),M.order(),function(O,R,F){R.each(function(A){var z=c(l.select(this),"g","fills");h.setClipUrl(z,F.layerClipId,O);var B=A[0].trace,$=[];B._ownfill&&$.push("_ownFill"),B._nexttrace&&$.push("_nextFill");var j=z.selectAll("g").data($,d);j.enter().append("g"),j.exit().each(function(N){B[N]=null}).remove(),j.order().each(function(N){B[N]=c(l.select(this),"path","js-fill")})})}(b,M,x),P?(T&&(S=T()),l.transition().duration(k.duration).ease(k.easing).each("end",function(){S&&S()}).each("interrupt",function(){S&&S()}).each(function(){w.selectAll("g.trace").each(function(O,R){g(b,R,x,O,D,this,k)})})):M.each(function(O,R){g(b,R,x,O,D,this,k)}),C&&M.exit().remove(),w.selectAll("path:not([d])").remove()}},98002:function(o,a,n){var l=n(34098);o.exports=function(f,s){var c,d,h,p,m=f.cd,y=f.xaxis,v=f.yaxis,g=[],b=m[0].trace;if(!l.hasMarkers(b)&&!l.hasText(b))return[];if(s===!1)for(c=0;c"),p.hovertemplate=x.hovertemplate,h}function C(P,D){M.push(P._hovertitle+": "+D)}}},52979:function(o,a,n){o.exports={attributes:n(50413),supplyDefaults:n(46008),colorbar:n(4898),formatLabels:n(93645),calc:n(54337),plot:n(7507),style:n(16296).style,styleOnSelect:n(16296).styleOnSelect,hoverPoints:n(47250),selectPoints:n(98002),eventData:n(4524),moduleType:"trace",name:"scatterternary",basePlotModule:n(61639),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}},7507:function(o,a,n){var l=n(32663);o.exports=function(f,s,c){var d=s.plotContainer;d.select(".scatterlayer").selectAll("*").remove();for(var h=s.xaxis,p=s.yaxis,m={xaxis:h,yaxis:p,plot:d,layerClipId:s._hasClipOnAxisFalse?s.clipIdRelative:null},y=s.layers.frontplot.select("g.scatterlayer"),v=0;v0){var P,D,O,R,F,A=h.xa,z=h.ya;w.orientation==="h"?(F=p,P="y",O=z,D="x",R=A):(F=m,P="x",O=A,D="y",R=z);var B=_[h.index];if(F>=B.span[0]&&F<=B.span[1]){var $=f.extendFlat({},h),j=R.c2p(F,!0),N=d.getKdeValue(B,w,F),E=d.getPositionOnKdePath(B,w,j),W=O._offset,G=O._length;$[P+"0"]=E[0],$[P+"1"]=E[1],$[D+"0"]=$[D+"1"]=j,$[D+"Label"]=D+": "+s.hoverLabelText(R,F,w[D+"hoverformat"])+", "+_[0].t.labels.kde+" "+N.toFixed(3);for(var L=0,q=0;qj&&(j=G,N=W)}}return j?A(N):d};case"rms":return function(z,B){for(var $=0,j=0,N=0;N":return function(V){return H(V)>L};case">=":return function(V){return H(V)>=L};case"[]":return function(V){var te=H(V);return te>=L[0]&&te<=L[1]};case"()":return function(V){var te=H(V);return te>L[0]&&te=L[0]&&teL[0]&&te<=L[1]};case"][":return function(V){var te=H(V);return te<=L[0]||te>=L[1]};case")(":return function(V){var te=H(V);return teL[1]};case"](":return function(V){var te=H(V);return te<=L[0]||te>L[1]};case")[":return function(V){var te=H(V);return te=L[1]};case"{}":return function(V){return L.indexOf(H(V))!==-1};case"}{":return function(V){return L.indexOf(H(V))===-1}}}(g,s.getDataToCoordFunc(y,v,x,b),w),D={},O={},R=0;T?(S=function(B){D[B.astr]=l.extendDeep([],B.get()),B.set(new Array(_))},C=function(B,$){var j=D[B.astr][$];B.get()[$]=j}):(S=function(B){D[B.astr]=l.extendDeep([],B.get()),B.set([])},C=function(B,$){var j=D[B.astr][$];B.get().push(j)}),z(S);for(var F=c(v.transforms,g),A=0;A<_;A++)P(b[A])?(z(C,A),O[R++]=F(A)):T&&R++;g._indexToPoints=O,v._length=R}}function z(B,$){for(var j=0;j1?"%{group} (%{trace})":"%{group}");var b=h.styles,x=v.styles=[];if(b)for(y=0;yy)throw new RangeError('The value "'+J+'" is invalid for option "size"');var ne=new Uint8Array(J);return Object.setPrototypeOf(ne,g.prototype),ne}function g(J,ne,de){if(typeof J=="number"){if(typeof ne=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _(J)}return b(J,ne,de)}function b(J,ne,de){if(typeof J=="string")return function(ge,be){if(typeof be=="string"&&be!==""||(be="utf8"),!g.isEncoding(be))throw new TypeError("Unknown encoding: "+be);var we=0|M(ge,be),ke=v(we),Ae=ke.write(ge,be);return Ae!==we&&(ke=ke.slice(0,Ae)),ke}(J,ne);if(ArrayBuffer.isView(J))return function(ge){if(Se(ge,Uint8Array)){var be=new Uint8Array(ge);return k(be.buffer,be.byteOffset,be.byteLength)}return w(ge)}(J);if(J==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+d(J));if(Se(J,ArrayBuffer)||J&&Se(J.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Se(J,SharedArrayBuffer)||J&&Se(J.buffer,SharedArrayBuffer)))return k(J,ne,de);if(typeof J=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var xe=J.valueOf&&J.valueOf();if(xe!=null&&xe!==J)return g.from(xe,ne,de);var ue=function(ge){if(g.isBuffer(ge)){var be=0|T(ge.length),we=v(be);return we.length===0||ge.copy(we,0,0,be),we}return ge.length!==void 0?typeof ge.length!="number"||Oe(ge.length)?v(0):w(ge):ge.type==="Buffer"&&Array.isArray(ge.data)?w(ge.data):void 0}(J);if(ue)return ue;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof J[Symbol.toPrimitive]=="function")return g.from(J[Symbol.toPrimitive]("string"),ne,de);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+d(J))}function x(J){if(typeof J!="number")throw new TypeError('"size" argument must be of type number');if(J<0)throw new RangeError('The value "'+J+'" is invalid for option "size"')}function _(J){return x(J),v(J<0?0:0|T(J))}function w(J){for(var ne=J.length<0?0:0|T(J.length),de=v(ne),xe=0;xe=y)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+y.toString(16)+" bytes");return 0|J}function M(J,ne){if(g.isBuffer(J))return J.length;if(ArrayBuffer.isView(J)||Se(J,ArrayBuffer))return J.byteLength;if(typeof J!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+d(J));var de=J.length,xe=arguments.length>2&&arguments[2]===!0;if(!xe&&de===0)return 0;for(var ue=!1;;)switch(ne){case"ascii":case"latin1":case"binary":return de;case"utf8":case"utf-8":return se(J).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*de;case"hex":return de>>>1;case"base64":return pe(J).length;default:if(ue)return xe?-1:se(J).length;ne=(""+ne).toLowerCase(),ue=!0}}function S(J,ne,de){var xe=!1;if((ne===void 0||ne<0)&&(ne=0),ne>this.length||((de===void 0||de>this.length)&&(de=this.length),de<=0)||(de>>>=0)<=(ne>>>=0))return"";for(J||(J="utf8");;)switch(J){case"hex":return W(this,ne,de);case"utf8":case"utf-8":return $(this,ne,de);case"ascii":return N(this,ne,de);case"latin1":case"binary":return E(this,ne,de);case"base64":return B(this,ne,de);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,ne,de);default:if(xe)throw new TypeError("Unknown encoding: "+J);J=(J+"").toLowerCase(),xe=!0}}function C(J,ne,de){var xe=J[ne];J[ne]=J[de],J[de]=xe}function P(J,ne,de,xe,ue){if(J.length===0)return-1;if(typeof de=="string"?(xe=de,de=0):de>2147483647?de=2147483647:de<-2147483648&&(de=-2147483648),Oe(de=+de)&&(de=ue?0:J.length-1),de<0&&(de=J.length+de),de>=J.length){if(ue)return-1;de=J.length-1}else if(de<0){if(!ue)return-1;de=0}if(typeof ne=="string"&&(ne=g.from(ne,xe)),g.isBuffer(ne))return ne.length===0?-1:D(J,ne,de,xe,ue);if(typeof ne=="number")return ne&=255,typeof Uint8Array.prototype.indexOf=="function"?ue?Uint8Array.prototype.indexOf.call(J,ne,de):Uint8Array.prototype.lastIndexOf.call(J,ne,de):D(J,[ne],de,xe,ue);throw new TypeError("val must be string, number or Buffer")}function D(J,ne,de,xe,ue){var ge,be=1,we=J.length,ke=ne.length;if(xe!==void 0&&((xe=String(xe).toLowerCase())==="ucs2"||xe==="ucs-2"||xe==="utf16le"||xe==="utf-16le")){if(J.length<2||ne.length<2)return-1;be=2,we/=2,ke/=2,de/=2}function Ae(Ie,Be){return be===1?Ie[Be]:Ie.readUInt16BE(Be*be)}if(ue){var Ee=-1;for(ge=de;gewe&&(de=we-ke),ge=de;ge>=0;ge--){for(var De=!0,Re=0;Reue&&(xe=ue):xe=ue;var ge,be=ne.length;for(xe>be/2&&(xe=be/2),ge=0;ge>8,ke=be%256,Ae.push(ke),Ae.push(we);return Ae}(ne,J.length-de),J,de,xe)}function B(J,ne,de){return ne===0&&de===J.length?h.fromByteArray(J):h.fromByteArray(J.slice(ne,de))}function $(J,ne,de){de=Math.min(J.length,de);for(var xe=[],ue=ne;ue239?4:ge>223?3:ge>191?2:1;if(ue+we<=de){var ke=void 0,Ae=void 0,Ee=void 0,De=void 0;switch(we){case 1:ge<128&&(be=ge);break;case 2:(192&(ke=J[ue+1]))==128&&(De=(31&ge)<<6|63&ke)>127&&(be=De);break;case 3:ke=J[ue+1],Ae=J[ue+2],(192&ke)==128&&(192&Ae)==128&&(De=(15&ge)<<12|(63&ke)<<6|63&Ae)>2047&&(De<55296||De>57343)&&(be=De);break;case 4:ke=J[ue+1],Ae=J[ue+2],Ee=J[ue+3],(192&ke)==128&&(192&Ae)==128&&(192&Ee)==128&&(De=(15&ge)<<18|(63&ke)<<12|(63&Ae)<<6|63&Ee)>65535&&De<1114112&&(be=De)}}be===null?(be=65533,we=1):be>65535&&(be-=65536,xe.push(be>>>10&1023|55296),be=56320|1023&be),xe.push(be),ue+=we}return function(Re){var Ie=Re.length;if(Ie<=j)return String.fromCharCode.apply(String,Re);for(var Be="",Ue=0;Ue"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.byteOffset}}),g.poolSize=8192,g.from=function(J,ne,de){return b(J,ne,de)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array),g.alloc=function(J,ne,de){return function(xe,ue,ge){return x(xe),xe<=0?v(xe):ue!==void 0?typeof ge=="string"?v(xe).fill(ue,ge):v(xe).fill(ue):v(xe)}(J,ne,de)},g.allocUnsafe=function(J){return _(J)},g.allocUnsafeSlow=function(J){return _(J)},g.isBuffer=function(J){return J!=null&&J._isBuffer===!0&&J!==g.prototype},g.compare=function(J,ne){if(Se(J,Uint8Array)&&(J=g.from(J,J.offset,J.byteLength)),Se(ne,Uint8Array)&&(ne=g.from(ne,ne.offset,ne.byteLength)),!g.isBuffer(J)||!g.isBuffer(ne))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(J===ne)return 0;for(var de=J.length,xe=ne.length,ue=0,ge=Math.min(de,xe);uexe.length?(g.isBuffer(ge)||(ge=g.from(ge)),ge.copy(xe,ue)):Uint8Array.prototype.set.call(xe,ge,ue);else{if(!g.isBuffer(ge))throw new TypeError('"list" argument must be an Array of Buffers');ge.copy(xe,ue)}ue+=ge.length}return xe},g.byteLength=M,g.prototype._isBuffer=!0,g.prototype.swap16=function(){var J=this.length;if(J%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ne=0;nene&&(J+=" ... "),""},m&&(g.prototype[m]=g.prototype.inspect),g.prototype.compare=function(J,ne,de,xe,ue){if(Se(J,Uint8Array)&&(J=g.from(J,J.offset,J.byteLength)),!g.isBuffer(J))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+d(J));if(ne===void 0&&(ne=0),de===void 0&&(de=J?J.length:0),xe===void 0&&(xe=0),ue===void 0&&(ue=this.length),ne<0||de>J.length||xe<0||ue>this.length)throw new RangeError("out of range index");if(xe>=ue&&ne>=de)return 0;if(xe>=ue)return-1;if(ne>=de)return 1;if(this===J)return 0;for(var ge=(ue>>>=0)-(xe>>>=0),be=(de>>>=0)-(ne>>>=0),we=Math.min(ge,be),ke=this.slice(xe,ue),Ae=J.slice(ne,de),Ee=0;Ee>>=0,isFinite(de)?(de>>>=0,xe===void 0&&(xe="utf8")):(xe=de,de=void 0)}var ue=this.length-ne;if((de===void 0||de>ue)&&(de=ue),J.length>0&&(de<0||ne<0)||ne>this.length)throw new RangeError("Attempt to write outside buffer bounds");xe||(xe="utf8");for(var ge=!1;;)switch(xe){case"hex":return O(this,J,ne,de);case"utf8":case"utf-8":return R(this,J,ne,de);case"ascii":case"latin1":case"binary":return F(this,J,ne,de);case"base64":return A(this,J,ne,de);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,J,ne,de);default:if(ge)throw new TypeError("Unknown encoding: "+xe);xe=(""+xe).toLowerCase(),ge=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var j=4096;function N(J,ne,de){var xe="";de=Math.min(J.length,de);for(var ue=ne;uexe)&&(de=xe);for(var ue="",ge=ne;gede)throw new RangeError("Trying to access beyond buffer length")}function q(J,ne,de,xe,ue,ge){if(!g.isBuffer(J))throw new TypeError('"buffer" argument must be a Buffer instance');if(ne>ue||neJ.length)throw new RangeError("Index out of range")}function H(J,ne,de,xe,ue){X(ne,xe,ue,J,de,7);var ge=Number(ne&BigInt(4294967295));J[de++]=ge,ge>>=8,J[de++]=ge,ge>>=8,J[de++]=ge,ge>>=8,J[de++]=ge;var be=Number(ne>>BigInt(32)&BigInt(4294967295));return J[de++]=be,be>>=8,J[de++]=be,be>>=8,J[de++]=be,be>>=8,J[de++]=be,de}function V(J,ne,de,xe,ue){X(ne,xe,ue,J,de,7);var ge=Number(ne&BigInt(4294967295));J[de+7]=ge,ge>>=8,J[de+6]=ge,ge>>=8,J[de+5]=ge,ge>>=8,J[de+4]=ge;var be=Number(ne>>BigInt(32)&BigInt(4294967295));return J[de+3]=be,be>>=8,J[de+2]=be,be>>=8,J[de+1]=be,be>>=8,J[de]=be,de+8}function te(J,ne,de,xe,ue,ge){if(de+xe>J.length)throw new RangeError("Index out of range");if(de<0)throw new RangeError("Index out of range")}function ee(J,ne,de,xe,ue){return ne=+ne,de>>>=0,ue||te(J,0,de,4),p.write(J,ne,de,xe,23,4),de+4}function U(J,ne,de,xe,ue){return ne=+ne,de>>>=0,ue||te(J,0,de,8),p.write(J,ne,de,xe,52,8),de+8}g.prototype.slice=function(J,ne){var de=this.length;(J=~~J)<0?(J+=de)<0&&(J=0):J>de&&(J=de),(ne=ne===void 0?de:~~ne)<0?(ne+=de)<0&&(ne=0):ne>de&&(ne=de),ne>>=0,ne>>>=0,de||L(J,ne,this.length);for(var xe=this[J],ue=1,ge=0;++ge>>=0,ne>>>=0,de||L(J,ne,this.length);for(var xe=this[J+--ne],ue=1;ne>0&&(ue*=256);)xe+=this[J+--ne]*ue;return xe},g.prototype.readUint8=g.prototype.readUInt8=function(J,ne){return J>>>=0,ne||L(J,1,this.length),this[J]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(J,ne){return J>>>=0,ne||L(J,2,this.length),this[J]|this[J+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(J,ne){return J>>>=0,ne||L(J,2,this.length),this[J]<<8|this[J+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(J,ne){return J>>>=0,ne||L(J,4,this.length),(this[J]|this[J+1]<<8|this[J+2]<<16)+16777216*this[J+3]},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(J,ne){return J>>>=0,ne||L(J,4,this.length),16777216*this[J]+(this[J+1]<<16|this[J+2]<<8|this[J+3])},g.prototype.readBigUInt64LE=ce(function(J){re(J>>>=0,"offset");var ne=this[J],de=this[J+7];ne!==void 0&&de!==void 0||ie(J,this.length-8);var xe=ne+this[++J]*Math.pow(2,8)+this[++J]*Math.pow(2,16)+this[++J]*Math.pow(2,24),ue=this[++J]+this[++J]*Math.pow(2,8)+this[++J]*Math.pow(2,16)+de*Math.pow(2,24);return BigInt(xe)+(BigInt(ue)<>>=0,"offset");var ne=this[J],de=this[J+7];ne!==void 0&&de!==void 0||ie(J,this.length-8);var xe=ne*Math.pow(2,24)+this[++J]*Math.pow(2,16)+this[++J]*Math.pow(2,8)+this[++J],ue=this[++J]*Math.pow(2,24)+this[++J]*Math.pow(2,16)+this[++J]*Math.pow(2,8)+de;return(BigInt(xe)<>>=0,ne>>>=0,de||L(J,ne,this.length);for(var xe=this[J],ue=1,ge=0;++ge=(ue*=128)&&(xe-=Math.pow(2,8*ne)),xe},g.prototype.readIntBE=function(J,ne,de){J>>>=0,ne>>>=0,de||L(J,ne,this.length);for(var xe=ne,ue=1,ge=this[J+--xe];xe>0&&(ue*=256);)ge+=this[J+--xe]*ue;return ge>=(ue*=128)&&(ge-=Math.pow(2,8*ne)),ge},g.prototype.readInt8=function(J,ne){return J>>>=0,ne||L(J,1,this.length),128&this[J]?-1*(255-this[J]+1):this[J]},g.prototype.readInt16LE=function(J,ne){J>>>=0,ne||L(J,2,this.length);var de=this[J]|this[J+1]<<8;return 32768&de?4294901760|de:de},g.prototype.readInt16BE=function(J,ne){J>>>=0,ne||L(J,2,this.length);var de=this[J+1]|this[J]<<8;return 32768&de?4294901760|de:de},g.prototype.readInt32LE=function(J,ne){return J>>>=0,ne||L(J,4,this.length),this[J]|this[J+1]<<8|this[J+2]<<16|this[J+3]<<24},g.prototype.readInt32BE=function(J,ne){return J>>>=0,ne||L(J,4,this.length),this[J]<<24|this[J+1]<<16|this[J+2]<<8|this[J+3]},g.prototype.readBigInt64LE=ce(function(J){re(J>>>=0,"offset");var ne=this[J],de=this[J+7];ne!==void 0&&de!==void 0||ie(J,this.length-8);var xe=this[J+4]+this[J+5]*Math.pow(2,8)+this[J+6]*Math.pow(2,16)+(de<<24);return(BigInt(xe)<>>=0,"offset");var ne=this[J],de=this[J+7];ne!==void 0&&de!==void 0||ie(J,this.length-8);var xe=(ne<<24)+this[++J]*Math.pow(2,16)+this[++J]*Math.pow(2,8)+this[++J];return(BigInt(xe)<>>=0,ne||L(J,4,this.length),p.read(this,J,!0,23,4)},g.prototype.readFloatBE=function(J,ne){return J>>>=0,ne||L(J,4,this.length),p.read(this,J,!1,23,4)},g.prototype.readDoubleLE=function(J,ne){return J>>>=0,ne||L(J,8,this.length),p.read(this,J,!0,52,8)},g.prototype.readDoubleBE=function(J,ne){return J>>>=0,ne||L(J,8,this.length),p.read(this,J,!1,52,8)},g.prototype.writeUintLE=g.prototype.writeUIntLE=function(J,ne,de,xe){J=+J,ne>>>=0,de>>>=0,xe||q(this,J,ne,de,Math.pow(2,8*de)-1,0);var ue=1,ge=0;for(this[ne]=255&J;++ge>>=0,de>>>=0,xe||q(this,J,ne,de,Math.pow(2,8*de)-1,0);var ue=de-1,ge=1;for(this[ne+ue]=255&J;--ue>=0&&(ge*=256);)this[ne+ue]=J/ge&255;return ne+de},g.prototype.writeUint8=g.prototype.writeUInt8=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,1,255,0),this[ne]=255&J,ne+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,2,65535,0),this[ne]=255&J,this[ne+1]=J>>>8,ne+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,2,65535,0),this[ne]=J>>>8,this[ne+1]=255&J,ne+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,4,4294967295,0),this[ne+3]=J>>>24,this[ne+2]=J>>>16,this[ne+1]=J>>>8,this[ne]=255&J,ne+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,4,4294967295,0),this[ne]=J>>>24,this[ne+1]=J>>>16,this[ne+2]=J>>>8,this[ne+3]=255&J,ne+4},g.prototype.writeBigUInt64LE=ce(function(J){return H(this,J,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=ce(function(J){return V(this,J,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(J,ne,de,xe){if(J=+J,ne>>>=0,!xe){var ue=Math.pow(2,8*de-1);q(this,J,ne,de,ue-1,-ue)}var ge=0,be=1,we=0;for(this[ne]=255&J;++ge>0)-we&255;return ne+de},g.prototype.writeIntBE=function(J,ne,de,xe){if(J=+J,ne>>>=0,!xe){var ue=Math.pow(2,8*de-1);q(this,J,ne,de,ue-1,-ue)}var ge=de-1,be=1,we=0;for(this[ne+ge]=255&J;--ge>=0&&(be*=256);)J<0&&we===0&&this[ne+ge+1]!==0&&(we=1),this[ne+ge]=(J/be>>0)-we&255;return ne+de},g.prototype.writeInt8=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,1,127,-128),J<0&&(J=255+J+1),this[ne]=255&J,ne+1},g.prototype.writeInt16LE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,2,32767,-32768),this[ne]=255&J,this[ne+1]=J>>>8,ne+2},g.prototype.writeInt16BE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,2,32767,-32768),this[ne]=J>>>8,this[ne+1]=255&J,ne+2},g.prototype.writeInt32LE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,4,2147483647,-2147483648),this[ne]=255&J,this[ne+1]=J>>>8,this[ne+2]=J>>>16,this[ne+3]=J>>>24,ne+4},g.prototype.writeInt32BE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,4,2147483647,-2147483648),J<0&&(J=4294967295+J+1),this[ne]=J>>>24,this[ne+1]=J>>>16,this[ne+2]=J>>>8,this[ne+3]=255&J,ne+4},g.prototype.writeBigInt64LE=ce(function(J){return H(this,J,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=ce(function(J){return V(this,J,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeFloatLE=function(J,ne,de){return ee(this,J,ne,!0,de)},g.prototype.writeFloatBE=function(J,ne,de){return ee(this,J,ne,!1,de)},g.prototype.writeDoubleLE=function(J,ne,de){return U(this,J,ne,!0,de)},g.prototype.writeDoubleBE=function(J,ne,de){return U(this,J,ne,!1,de)},g.prototype.copy=function(J,ne,de,xe){if(!g.isBuffer(J))throw new TypeError("argument should be a Buffer");if(de||(de=0),xe||xe===0||(xe=this.length),ne>=J.length&&(ne=J.length),ne||(ne=0),xe>0&&xe=this.length)throw new RangeError("Index out of range");if(xe<0)throw new RangeError("sourceEnd out of bounds");xe>this.length&&(xe=this.length),J.length-ne>>=0,de=de===void 0?this.length:de>>>0,J||(J=0),typeof J=="number")for(ge=ne;ge"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var Ee,De=c(be);if(we){var Re=c(this).constructor;Ee=Reflect.construct(De,arguments,Re)}else Ee=De.apply(this,arguments);return function(Ie,Be){if(Be&&(d(Be)==="object"||typeof Be=="function"))return Be;if(Be!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return s(Ie)}(this,Ee)});function Ae(){var Ee;return function(De,Re){if(!(De instanceof Re))throw new TypeError("Cannot call a class as a function")}(this,Ae),Ee=ke.call(this),Object.defineProperty(s(Ee),"message",{value:ne.apply(s(Ee),arguments),writable:!0,configurable:!0}),Ee.name="".concat(Ee.name," [").concat(J,"]"),Ee.stack,delete Ee.name,Ee}return ue=Ae,(ge=[{key:"code",get:function(){return J},set:function(Ee){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Ee,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(J,"]: ").concat(this.message)}}])&&l(ue.prototype,ge),Object.defineProperty(ue,"prototype",{writable:!1}),Ae}(de)}function Z(J){for(var ne="",de=J.length,xe=J[0]==="-"?1:0;de>=xe+4;de-=3)ne="_".concat(J.slice(de-3,de)).concat(ne);return"".concat(J.slice(0,de)).concat(ne)}function X(J,ne,de,xe,ue,ge){if(J>de||J= 0".concat(we," and < 2").concat(we," ** ").concat(8*(ge+1)).concat(we):">= -(2".concat(we," ** ").concat(8*(ge+1)-1).concat(we,") and < 2 ** ")+"".concat(8*(ge+1)-1).concat(we),new Q.ERR_OUT_OF_RANGE("value",be,J)}(function(ke,Ae,Ee){re(Ae,"offset"),ke[Ae]!==void 0&&ke[Ae+Ee]!==void 0||ie(Ae,ke.length-(Ee+1))})(xe,ue,ge)}function re(J,ne){if(typeof J!="number")throw new Q.ERR_INVALID_ARG_TYPE(ne,"number",J)}function ie(J,ne,de){throw Math.floor(J)!==J?(re(J,de),new Q.ERR_OUT_OF_RANGE("offset","an integer",J)):ne<0?new Q.ERR_BUFFER_OUT_OF_BOUNDS:new Q.ERR_OUT_OF_RANGE("offset",">= ".concat(0," and <= ").concat(ne),J)}Y("ERR_BUFFER_OUT_OF_BOUNDS",function(J){return J?"".concat(J," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError),Y("ERR_INVALID_ARG_TYPE",function(J,ne){return'The "'.concat(J,'" argument must be of type number. Received type ').concat(d(ne))},TypeError),Y("ERR_OUT_OF_RANGE",function(J,ne,de){var xe='The value of "'.concat(J,'" is out of range.'),ue=de;return Number.isInteger(de)&&Math.abs(de)>Math.pow(2,32)?ue=Z(String(de)):typeof de=="bigint"&&(ue=String(de),(de>Math.pow(BigInt(2),BigInt(32))||de<-Math.pow(BigInt(2),BigInt(32)))&&(ue=Z(ue)),ue+="n"),xe+" It must be ".concat(ne,". Received ").concat(ue)},RangeError);var le=/[^+/0-9A-Za-z-_]/g;function se(J,ne){var de;ne=ne||1/0;for(var xe=J.length,ue=null,ge=[],be=0;be55295&&de<57344){if(!ue){if(de>56319){(ne-=3)>-1&&ge.push(239,191,189);continue}if(be+1===xe){(ne-=3)>-1&&ge.push(239,191,189);continue}ue=de;continue}if(de<56320){(ne-=3)>-1&&ge.push(239,191,189),ue=de;continue}de=65536+(ue-55296<<10|de-56320)}else ue&&(ne-=3)>-1&&ge.push(239,191,189);if(ue=null,de<128){if((ne-=1)<0)break;ge.push(de)}else if(de<2048){if((ne-=2)<0)break;ge.push(de>>6|192,63&de|128)}else if(de<65536){if((ne-=3)<0)break;ge.push(de>>12|224,de>>6&63|128,63&de|128)}else{if(!(de<1114112))throw new Error("Invalid code point");if((ne-=4)<0)break;ge.push(de>>18|240,de>>12&63|128,de>>6&63|128,63&de|128)}}return ge}function pe(J){return h.toByteArray(function(ne){if((ne=(ne=ne.split("=")[0]).trim().replace(le,"")).length<2)return"";for(;ne.length%4!=0;)ne+="=";return ne}(J))}function Te(J,ne,de,xe){var ue;for(ue=0;ue=ne.length||ue>=J.length);++ue)ne[ue+de]=J[ue];return ue}function Se(J,ne){return J instanceof ne||J!=null&&J.constructor!=null&&J.constructor.name!=null&&J.constructor.name===ne.name}function Oe(J){return J!=J}var Me=function(){for(var J="0123456789abcdef",ne=new Array(256),de=0;de<16;++de)for(var xe=16*de,ue=0;ue<16;++ue)ne[xe+ue]=J[de]+J[ue];return ne}();function ce(J){return typeof BigInt>"u"?ye:J}function ye(){throw new Error("BigInt not supported")}},35791:function(o){o.exports=f,o.exports.isMobile=f,o.exports.default=f;var a=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,n=/CrOS/,l=/android|ipad|playbook|silk/i;function f(s){s||(s={});var c=s.ua;if(c||typeof navigator>"u"||(c=navigator.userAgent),c&&c.headers&&typeof c.headers["user-agent"]=="string"&&(c=c.headers["user-agent"]),typeof c!="string")return!1;var d=a.test(c)&&!n.test(c)||!!s.tablet&&l.test(c);return!d&&s.tablet&&s.featureDetect&&navigator&&navigator.maxTouchPoints>1&&c.indexOf("Macintosh")!==-1&&c.indexOf("Safari")!==-1&&(d=!0),d}},39898:function(o,a,n){var l,f;(function(){var s={version:"3.8.0"},c=[].slice,d=function(I){return c.call(I)},h=self.document;function p(I){return I&&(I.ownerDocument||I.document||I).documentElement}function m(I){return I&&(I.ownerDocument&&I.ownerDocument.defaultView||I.document&&I||I.defaultView)}if(h)try{d(h.documentElement.childNodes)[0].nodeType}catch{d=function(K){for(var ae=K.length,fe=new Array(ae);ae--;)fe[ae]=K[ae];return fe}}if(Date.now||(Date.now=function(){return+new Date}),h)try{h.createElement("DIV").style.setProperty("opacity",0,"")}catch{var y=this.Element.prototype,v=y.setAttribute,g=y.setAttributeNS,b=this.CSSStyleDeclaration.prototype,x=b.setProperty;y.setAttribute=function(K,ae){v.call(this,K,ae+"")},y.setAttributeNS=function(K,ae,fe){g.call(this,K,ae,fe+"")},b.setProperty=function(K,ae,fe){x.call(this,K,ae+"",fe)}}function _(I,K){return IK?1:I>=K?0:NaN}function w(I){return I===null?NaN:+I}function k(I){return!isNaN(I)}function T(I){return{left:function(K,ae,fe,he){for(arguments.length<3&&(fe=0),arguments.length<4&&(he=K.length);fe>>1;I(K[me],ae)<0?fe=me+1:he=me}return fe},right:function(K,ae,fe,he){for(arguments.length<3&&(fe=0),arguments.length<4&&(he=K.length);fe>>1;I(K[me],ae)>0?he=me:fe=me+1}return fe}}}s.ascending=_,s.descending=function(I,K){return KI?1:K>=I?0:NaN},s.min=function(I,K){var ae,fe,he=-1,me=I.length;if(arguments.length===1){for(;++he=fe){ae=fe;break}for(;++hefe&&(ae=fe)}else{for(;++he=fe){ae=fe;break}for(;++hefe&&(ae=fe)}return ae},s.max=function(I,K){var ae,fe,he=-1,me=I.length;if(arguments.length===1){for(;++he=fe){ae=fe;break}for(;++heae&&(ae=fe)}else{for(;++he=fe){ae=fe;break}for(;++heae&&(ae=fe)}return ae},s.extent=function(I,K){var ae,fe,he,me=-1,Ce=I.length;if(arguments.length===1){for(;++me=fe){ae=he=fe;break}for(;++mefe&&(ae=fe),he=fe){ae=he=fe;break}for(;++mefe&&(ae=fe),he1)return Ce/(Le-1)},s.deviation=function(){var I=s.variance.apply(this,arguments);return I&&Math.sqrt(I)};var M=T(_);function S(I){return I.length}s.bisectLeft=M.left,s.bisect=s.bisectRight=M.right,s.bisector=function(I){return T(I.length===1?function(K,ae){return _(I(K),ae)}:I)},s.shuffle=function(I,K,ae){(me=arguments.length)<3&&(ae=I.length,me<2&&(K=0));for(var fe,he,me=ae-K;me;)he=Math.random()*me--|0,fe=I[me+K],I[me+K]=I[he+K],I[he+K]=fe;return I},s.permute=function(I,K){for(var ae=K.length,fe=new Array(ae);ae--;)fe[ae]=I[K[ae]];return fe},s.pairs=function(I){for(var K=0,ae=I.length-1,fe=I[0],he=new Array(ae<0?0:ae);K=0;)for(K=(fe=I[he]).length;--K>=0;)ae[--Ce]=fe[K];return ae};var C=Math.abs;function P(I,K){for(var ae in K)Object.defineProperty(I.prototype,ae,{value:K[ae],enumerable:!1})}function D(){this._=Object.create(null)}s.range=function(I,K,ae){if(arguments.length<3&&(ae=1,arguments.length<2&&(K=I,I=0)),(K-I)/ae==1/0)throw new Error("infinite range");var fe,he=[],me=function(Pe){for(var Le=1;Pe*Le%1;)Le*=10;return Le}(C(ae)),Ce=-1;if(I*=me,K*=me,(ae*=me)<0)for(;(fe=I+ae*++Ce)>K;)he.push(fe/me);else for(;(fe=I+ae*++Ce)=fe.length)return K?K.call(ae,Le):I?Le.sort(I):Le;for(var He,Xe,rt,vt,Ct=-1,dt=Le.length,xt=fe[Fe++],ot=new D;++Ct=fe.length)return Pe;var Fe=[],He=he[Le++];return Pe.forEach(function(Xe,rt){Fe.push({key:Xe,values:Ce(rt,Le)})}),He?Fe.sort(function(Xe,rt){return He(Xe.key,rt.key)}):Fe}return ae.map=function(Pe,Le){return me(Le,Pe,0)},ae.entries=function(Pe){return Ce(me(s.map,Pe,0),0)},ae.key=function(Pe){return fe.push(Pe),ae},ae.sortKeys=function(Pe){return he[fe.length-1]=Pe,ae},ae.sortValues=function(Pe){return I=Pe,ae},ae.rollup=function(Pe){return K=Pe,ae},ae},s.set=function(I){var K=new E;if(I)for(var ae=0,fe=I.length;ae=0&&(fe=I.slice(ae+1),I=I.slice(0,ae)),I)return arguments.length<2?this[I].on(fe):this[I].on(fe,K);if(arguments.length===2){if(K==null)for(I in this)this.hasOwnProperty(I)&&this[I].on(fe,null);return this}},s.event=null,s.requote=function(I){return I.replace(Y,"\\$&")};var Y=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Z={}.__proto__?function(I,K){I.__proto__=K}:function(I,K){for(var ae in K)I[ae]=K[ae]};function X(I){return Z(I,se),I}var re=function(I,K){return K.querySelector(I)},ie=function(I,K){return K.querySelectorAll(I)},le=function(I,K){var ae=I.matches||I[L(I,"matchesSelector")];return le=function(fe,he){return ae.call(fe,he)},le(I,K)};typeof Sizzle=="function"&&(re=function(I,K){return Sizzle(I,K)[0]||null},ie=Sizzle,le=Sizzle.matchesSelector),s.selection=function(){return s.select(h.documentElement)};var se=s.selection.prototype=[];function pe(I){return typeof I=="function"?I:function(){return re(I,this)}}function Te(I){return typeof I=="function"?I:function(){return ie(I,this)}}se.select=function(I){var K,ae,fe,he,me=[];I=pe(I);for(var Ce=-1,Pe=this.length;++Ce=0&&(ae=I.slice(0,K))!=="xmlns"&&(I=I.slice(K+1)),Oe.hasOwnProperty(ae)?{space:Oe[ae],local:I}:I}},se.attr=function(I,K){if(arguments.length<2){if(typeof I=="string"){var ae=this.node();return(I=s.ns.qualify(I)).local?ae.getAttributeNS(I.space,I.local):ae.getAttribute(I)}for(K in I)this.each(Me(K,I[K]));return this}return this.each(Me(I,K))},se.classed=function(I,K){if(arguments.length<2){if(typeof I=="string"){var ae=this.node(),fe=(I=J(I)).length,he=-1;if(K=ae.classList){for(;++he=0;)(ae=fe[he])&&(me&&me!==ae.nextSibling&&me.parentNode.insertBefore(ae,me),me=ae);return this},se.sort=function(I){I=Ae.apply(this,arguments);for(var K=-1,ae=this.length;++K0&&(I=I.slice(0,he));var Ce=Be.get(I);function Pe(){var Le=this[fe];Le&&(this.removeEventListener(I,Le,Le.$),delete this[fe])}return Ce&&(I=Ce,me=qe),he?K?function(){var Le=me(K,d(arguments));Pe.call(this),this.addEventListener(I,this[fe]=Le,Le.$=ae),Le._=K}:Pe:K?H:function(){var Le,Fe=new RegExp("^__on([^.]+)"+s.requote(I)+"$");for(var He in this)if(Le=He.match(Fe)){var Xe=this[He];this.removeEventListener(Le[1],Xe,Xe.$),delete this[He]}}}s.selection.enter=De,s.selection.enter.prototype=Re,Re.append=se.append,Re.empty=se.empty,Re.node=se.node,Re.call=se.call,Re.size=se.size,Re.select=function(I){for(var K,ae,fe,he,me,Ce=[],Pe=-1,Le=this.length;++Pe=fe&&(fe=Ce+1);!(Le=Fe[fe])&&++fe1?ut:I<-1?-ut:Math.asin(I)}function zt(I){return((I=Math.exp(I))+1/I)/2}var wt=Math.SQRT2;s.interpolateZoom=function(I,K){var ae,fe,he=I[0],me=I[1],Ce=I[2],Pe=K[0],Le=K[1],Fe=K[2],He=Pe-he,Xe=Le-me,rt=He*He+Xe*Xe;if(rt0&&(en=en.transition().duration(rt)),en.call(_t.event)}function Jt(){Ce&&Ce.domain(me.range().map(function(en){return(en-Fe.x)/Fe.k}).map(me.invert)),Le&&Le.domain(Pe.range().map(function(en){return(en-Fe.y)/Fe.k}).map(Pe.invert))}function gn(en){vt++||en({type:"zoomstart"})}function yn(en){Jt(),en({type:"zoom",scale:Fe.k,translate:[Fe.x,Fe.y]})}function Mn(en){--vt||(en({type:"zoomend"}),K=null)}function bn(){var en=this,fn=Pt.of(en,arguments),Rn=0,In=s.select(m(en)).on(dt,function(){Rn=1,Ht(s.mouse(en),Wn),yn(fn)}).on(xt,function(){In.on(dt,null).on(xt,null),cr(Rn),Mn(fn)}),Wn=ft(s.mouse(en)),cr=lt(en);Pc.call(en),gn(fn)}function Nn(){var en,fn=this,Rn=Pt.of(fn,arguments),In={},Wn=0,cr=".zoom-"+s.event.changedTouches[0].identifier,Ir="touchmove"+cr,Sr="touchend"+cr,Vr=[],Fr=s.select(fn),Yr=lt(fn);function ha(){var Zr=s.touches(fn);return en=Fe.k,Zr.forEach(function(Nr){Nr.identifier in In&&(In[Nr.identifier]=ft(Nr))}),Zr}function Za(){var Zr=s.event.target;s.select(Zr).on(Ir,ai).on(Sr,ii),Vr.push(Zr);for(var Nr=s.event.changedTouches,ma=0,va=Nr.length;ma1){bi=_a[0];var $i=_a[1],Rc=bi[0]-$i[0],$2=bi[1]-$i[1];Wn=Rc*Rc+$2*$2}}function ai(){var Zr,Nr,ma,va,_a=s.touches(fn);Pc.call(fn);for(var $a=0,bi=_a.length;$a360?Pe-=360:Pe<0&&(Pe+=360),Pe<60?fe+(he-fe)*Pe/60:Pe<180?he:Pe<240?fe+(he-fe)*(240-Pe)/60:fe}(Ce))}return I=isNaN(I)?0:(I%=360)<0?I+360:I,K=isNaN(K)||K<0?0:K>1?1:K,fe=2*(ae=ae<0?0:ae>1?1:ae)-(he=ae<=.5?ae*(1+K):ae+K-ae*K),new Et(me(I+120),me(I),me(I-120))}function nt(I,K,ae){return this instanceof nt?(this.h=+I,this.c=+K,void(this.l=+ae)):arguments.length<2?I instanceof nt?new nt(I.h,I.c,I.l):function(fe,he,me){return fe>0?new nt(Math.atan2(me,he)*It,Math.sqrt(he*he+me*me),fe):new nt(NaN,NaN,fe)}(I instanceof tt?I.l:(I=$t((I=s.rgb(I)).r,I.g,I.b)).l,I.a,I.b):new nt(I,K,ae)}Ge.brighter=function(I){return I=Math.pow(.7,arguments.length?I:1),new Ze(this.h,this.s,this.l/I)},Ge.darker=function(I){return I=Math.pow(.7,arguments.length?I:1),new Ze(this.h,this.s,I*this.l)},Ge.rgb=function(){return Ke(this.h,this.s,this.l)},s.hcl=nt;var st=nt.prototype=new We;function mt(I,K,ae){return isNaN(I)&&(I=0),isNaN(K)&&(K=0),new tt(ae,Math.cos(I*=pt)*K,Math.sin(I)*K)}function tt(I,K,ae){return this instanceof tt?(this.l=+I,this.a=+K,void(this.b=+ae)):arguments.length<2?I instanceof tt?new tt(I.l,I.a,I.b):I instanceof nt?mt(I.h,I.c,I.l):$t((I=Et(I)).r,I.g,I.b):new tt(I,K,ae)}st.brighter=function(I){return new nt(this.h,this.c,Math.min(100,this.l+Ft*(arguments.length?I:1)))},st.darker=function(I){return new nt(this.h,this.c,Math.max(0,this.l-Ft*(arguments.length?I:1)))},st.rgb=function(){return mt(this.h,this.c,this.l).rgb()},s.lab=tt;var Ft=18,Vt=.95047,St=1,Nt=1.08883,Dt=tt.prototype=new We;function gt(I,K,ae){var fe=(I+16)/116,he=fe+K/500,me=fe-ae/200;return new Et(qt(3.2404542*(he=ht(he)*Vt)-1.5371385*(fe=ht(fe)*St)-.4985314*(me=ht(me)*Nt)),qt(-.969266*he+1.8760108*fe+.041556*me),qt(.0556434*he-.2040259*fe+1.0572252*me))}function ht(I){return I>.206893034?I*I*I:(I-.13793103448275862)/7.787037}function yt(I){return I>.008856?Math.pow(I,.3333333333333333):7.787037*I+.13793103448275862}function qt(I){return Math.round(255*(I<=.00304?12.92*I:1.055*Math.pow(I,.4166666666666667)-.055))}function Et(I,K,ae){return this instanceof Et?(this.r=~~I,this.g=~~K,void(this.b=~~ae)):arguments.length<2?I instanceof Et?new Et(I.r,I.g,I.b):Lt(""+I,Et,Ke):new Et(I,K,ae)}function jt(I){return new Et(I>>16,I>>8&255,255&I)}function Tt(I){return jt(I)+""}Dt.brighter=function(I){return new tt(Math.min(100,this.l+Ft*(arguments.length?I:1)),this.a,this.b)},Dt.darker=function(I){return new tt(Math.max(0,this.l-Ft*(arguments.length?I:1)),this.a,this.b)},Dt.rgb=function(){return gt(this.l,this.a,this.b)},s.rgb=Et;var Ot=Et.prototype=new We;function At(I){return I<16?"0"+Math.max(0,I).toString(16):Math.min(255,I).toString(16)}function Lt(I,K,ae){var fe,he,me,Ce=0,Pe=0,Le=0;if(fe=/([a-z]+)\((.*)\)/.exec(I=I.toLowerCase()))switch(he=fe[2].split(","),fe[1]){case"hsl":return ae(parseFloat(he[0]),parseFloat(he[1])/100,parseFloat(he[2])/100);case"rgb":return K(Xt(he[0]),Xt(he[1]),Xt(he[2]))}return(me=Bt.get(I))?K(me.r,me.g,me.b):(I==null||I.charAt(0)!=="#"||isNaN(me=parseInt(I.slice(1),16))||(I.length===4?(Ce=(3840&me)>>4,Ce|=Ce>>4,Pe=240&me,Pe|=Pe>>4,Le=15&me,Le|=Le<<4):I.length===7&&(Ce=(16711680&me)>>16,Pe=(65280&me)>>8,Le=255&me)),K(Ce,Pe,Le))}function Rt(I,K,ae){var fe,he,me=Math.min(I/=255,K/=255,ae/=255),Ce=Math.max(I,K,ae),Pe=Ce-me,Le=(Ce+me)/2;return Pe?(he=Le<.5?Pe/(Ce+me):Pe/(2-Ce-me),fe=I==Ce?(K-ae)/Pe+(K0&&Le<1?0:fe),new Ze(fe,he,Le)}function $t(I,K,ae){var fe=yt((.4124564*(I=Yt(I))+.3575761*(K=Yt(K))+.1804375*(ae=Yt(ae)))/Vt),he=yt((.2126729*I+.7151522*K+.072175*ae)/St);return tt(116*he-16,500*(fe-he),200*(he-yt((.0193339*I+.119192*K+.9503041*ae)/Nt)))}function Yt(I){return(I/=255)<=.04045?I/12.92:Math.pow((I+.055)/1.055,2.4)}function Xt(I){var K=parseFloat(I);return I.charAt(I.length-1)==="%"?Math.round(2.55*K):K}Ot.brighter=function(I){I=Math.pow(.7,arguments.length?I:1);var K=this.r,ae=this.g,fe=this.b,he=30;return K||ae||fe?(K&&K=200&&Xe<300||Xe===304){try{He=ae.call(he,Pe)}catch(rt){return void me.error.call(he,rt)}me.load.call(he,He)}else me.error.call(he,Pe)}return self.XDomainRequest&&!("withCredentials"in Pe)&&/^(http(s)?:)?\/\//.test(I)&&(Pe=new XDomainRequest),"onload"in Pe?Pe.onload=Pe.onerror=Fe:Pe.onreadystatechange=function(){Pe.readyState>3&&Fe()},Pe.onprogress=function(He){var Xe=s.event;s.event=He;try{me.progress.call(he,Pe)}finally{s.event=Xe}},he.header=function(He,Xe){return He=(He+"").toLowerCase(),arguments.length<2?Ce[He]:(Xe==null?delete Ce[He]:Ce[He]=Xe+"",he)},he.mimeType=function(He){return arguments.length?(K=He==null?null:He+"",he):K},he.responseType=function(He){return arguments.length?(Le=He,he):Le},he.response=function(He){return ae=He,he},["get","post"].forEach(function(He){he[He]=function(){return he.send.apply(he,[He].concat(d(arguments)))}}),he.send=function(He,Xe,rt){if(arguments.length===2&&typeof Xe=="function"&&(rt=Xe,Xe=null),Pe.open(He,I,!0),K==null||"accept"in Ce||(Ce.accept=K+",*/*"),Pe.setRequestHeader)for(var vt in Ce)Pe.setRequestHeader(vt,Ce[vt]);return K!=null&&Pe.overrideMimeType&&Pe.overrideMimeType(K),Le!=null&&(Pe.responseType=Le),rt!=null&&he.on("error",rt).on("load",function(Ct){rt(null,Ct)}),me.beforesend.call(he,Pe),Pe.send(Xe??null),he},he.abort=function(){return Pe.abort(),he},s.rebind(he,me,"on"),fe==null?he:he.get(function(He){return He.length===1?function(Xe,rt){He(Xe==null?rt:null)}:He}(fe))}Bt.forEach(function(I,K){Bt.set(I,jt(K))}),s.functor=Wt,s.xhr=tn(W),s.dsv=function(I,K){var ae=new RegExp('["'+I+` +`+q.year}return B(E,N,G,L)};var j=3*y;a.incrementMonth=function(N,E,W){W=S(W)&&W;var G=h(N,y);if(N=Math.round(N-G),W)try{var L=Math.round(N/y)+x,q=_.getComponentMethod("calendars","getCal")(W),H=q.fromJD(L);return E%12?q.add(H,E,"m"):q.add(H,E/12,"y"),(H.toJD()-x)*y+G}catch{d.error("invalid ms "+N+" in calendar "+W)}var V=new Date(N+j);return V.setUTCMonth(V.getUTCMonth()+E)+G-j},a.findExactDates=function(N,E){for(var W,G,L=0,q=0,H=0,V=0,te=S(E)&&_.getComponentMethod("calendars","getCal")(E),ee=0;ee1||D<0||D>1?null:{x:p+w*D,y:g+M*D}}function h(p,g,y,v,m){var b=v*p+m*g;if(b<0)return v*v+m*m;if(b>y){var x=v-p,_=m-g;return x*x+_*_}var w=v*g-m*p;return w*w/y}a.segmentsIntersect=d,a.segmentDistance=function(p,g,y,v,m,b,x,_){if(d(p,g,y,v,m,b,x,_))return 0;var w=y-p,k=v-g,T=x-m,M=_-b,S=w*w+k*k,C=T*T+M*M,P=Math.min(h(w,k,S,m-p,b-g),h(w,k,S,x-p,_-g),h(T,M,C,p-m,g-b),h(T,M,C,y-m,v-b));return Math.sqrt(P)},a.getTextLocation=function(p,g,y,v){if(p===f&&v===s||(l={},f=p,s=v),l[y])return l[y];var m=p.getPointAtLength(u(y-v/2,g)),b=p.getPointAtLength(u(y+v/2,g)),x=Math.atan((b.y-m.y)/(b.x-m.x)),_=p.getPointAtLength(u(y,g)),w={x:(4*_.x+m.x+b.x)/6,y:(4*_.y+m.y+b.y)/6,theta:x};return l[y]=w,w},a.clearLocationCache=function(){f=null},a.getVisibleSegment=function(p,g,y){var v,m,b=g.left,x=g.right,_=g.top,w=g.bottom,k=0,T=p.getTotalLength(),M=T;function S(P){var D=p.getPointAtLength(P);P===0?v=D:P===T&&(m=D);var O=D.xx?D.x-x:0,R=D.y<_?_-D.y:D.y>w?D.y-w:0;return Math.sqrt(O*O+R*R)}for(var C=S(k);C;){if((k+=C+y)>M)return;C=S(k)}for(C=S(M);C;){if(k>(M-=C+y))return;C=S(M)}return{min:k,max:M,len:M-k,total:T,isClosed:k===0&&M===T&&Math.abs(v.x-m.x)<.1&&Math.abs(v.y-m.y)<.1}},a.findPointOnPath=function(p,g,y,v){for(var m,b,x,_=(v=v||{}).pathLength||p.getTotalLength(),w=v.tolerance||.001,k=v.iterationLimit||30,T=p.getPointAtLength(0)[y]>p.getPointAtLength(_)[y]?-1:1,M=0,S=0,C=_;M0?C=m:S=m,M++}return b}},23389:function(o){o.exports=function(a){return a}},39240:function(o){o.exports=function(a,n){if(!n)return a;var l=1/Math.abs(n),f=l>1?(l*a+l*n)/l:a+n,s=String(f).length;if(s>16){var u=String(n).length;if(s>=String(a).length+u){var d=parseFloat(f).toPrecision(12);d.indexOf("e+")===-1&&(f=+d)}}return f}},71828:function(o,a,n){var l=n(39898),f=n(84096).g0,s=n(60721).WU,u=n(92770),d=n(50606),h=d.FP_SAFE,p=-h,g=d.BADNUM,y=o.exports={};y.adjustFormat=function(Y){return!Y||/^\d[.]\df/.test(Y)||/[.]\d%/.test(Y)?Y:Y==="0.f"?"~f":/^\d%/.test(Y)?"~%":/^\ds/.test(Y)?"~s":!/^[~,.0$]/.test(Y)&&/[&fps]/.test(Y)?"~"+Y:Y};var v={};y.warnBadFormat=function(Y){var Z=String(Y);v[Z]||(v[Z]=1,y.warn('encountered bad format: "'+Z+'"'))},y.noFormat=function(Y){return String(Y)},y.numberFormat=function(Y){var Z;try{Z=s(y.adjustFormat(Y))}catch{return y.warnBadFormat(Y),y.noFormat}return Z},y.nestedProperty=n(65487),y.keyedContainer=n(66636),y.relativeAttr=n(6962),y.isPlainObject=n(41965),y.toLogRange=n(58163),y.relinkPrivateKeys=n(51332);var m=n(73627);y.isTypedArray=m.isTypedArray,y.isArrayOrTypedArray=m.isArrayOrTypedArray,y.isArray1D=m.isArray1D,y.ensureArray=m.ensureArray,y.concat=m.concat,y.maxRowLength=m.maxRowLength,y.minRowLength=m.minRowLength;var b=n(64872);y.mod=b.mod,y.modHalf=b.modHalf;var x=n(96554);y.valObjectMeta=x.valObjectMeta,y.coerce=x.coerce,y.coerce2=x.coerce2,y.coerceFont=x.coerceFont,y.coercePattern=x.coercePattern,y.coerceHoverinfo=x.coerceHoverinfo,y.coerceSelectionMarkerOpacity=x.coerceSelectionMarkerOpacity,y.validate=x.validate;var _=n(41631);y.dateTime2ms=_.dateTime2ms,y.isDateTime=_.isDateTime,y.ms2DateTime=_.ms2DateTime,y.ms2DateTimeLocal=_.ms2DateTimeLocal,y.cleanDate=_.cleanDate,y.isJSDate=_.isJSDate,y.formatDate=_.formatDate,y.incrementMonth=_.incrementMonth,y.dateTick0=_.dateTick0,y.dfltRange=_.dfltRange,y.findExactDates=_.findExactDates,y.MIN_MS=_.MIN_MS,y.MAX_MS=_.MAX_MS;var w=n(65888);y.findBin=w.findBin,y.sorterAsc=w.sorterAsc,y.sorterDes=w.sorterDes,y.distinctVals=w.distinctVals,y.roundUp=w.roundUp,y.sort=w.sort,y.findIndexOfMin=w.findIndexOfMin,y.sortObjectKeys=n(78607);var k=n(80038);y.aggNums=k.aggNums,y.len=k.len,y.mean=k.mean,y.median=k.median,y.midRange=k.midRange,y.variance=k.variance,y.stdev=k.stdev,y.interp=k.interp;var T=n(35657);y.init2dArray=T.init2dArray,y.transposeRagged=T.transposeRagged,y.dot=T.dot,y.translationMatrix=T.translationMatrix,y.rotationMatrix=T.rotationMatrix,y.rotationXYMatrix=T.rotationXYMatrix,y.apply3DTransform=T.apply3DTransform,y.apply2DTransform=T.apply2DTransform,y.apply2DTransform2=T.apply2DTransform2,y.convertCssMatrix=T.convertCssMatrix,y.inverseTransformMatrix=T.inverseTransformMatrix;var M=n(26348);y.deg2rad=M.deg2rad,y.rad2deg=M.rad2deg,y.angleDelta=M.angleDelta,y.angleDist=M.angleDist,y.isFullCircle=M.isFullCircle,y.isAngleInsideSector=M.isAngleInsideSector,y.isPtInsideSector=M.isPtInsideSector,y.pathArc=M.pathArc,y.pathSector=M.pathSector,y.pathAnnulus=M.pathAnnulus;var S=n(99863);y.isLeftAnchor=S.isLeftAnchor,y.isCenterAnchor=S.isCenterAnchor,y.isRightAnchor=S.isRightAnchor,y.isTopAnchor=S.isTopAnchor,y.isMiddleAnchor=S.isMiddleAnchor,y.isBottomAnchor=S.isBottomAnchor;var C=n(87642);y.segmentsIntersect=C.segmentsIntersect,y.segmentDistance=C.segmentDistance,y.getTextLocation=C.getTextLocation,y.clearLocationCache=C.clearLocationCache,y.getVisibleSegment=C.getVisibleSegment,y.findPointOnPath=C.findPointOnPath;var P=n(1426);y.extendFlat=P.extendFlat,y.extendDeep=P.extendDeep,y.extendDeepAll=P.extendDeepAll,y.extendDeepNoArrays=P.extendDeepNoArrays;var D=n(47769);y.log=D.log,y.warn=D.warn,y.error=D.error;var O=n(30587);y.counterRegex=O.counter;var R=n(79990);y.throttle=R.throttle,y.throttleDone=R.done,y.clearThrottle=R.clear;var F=n(24401);function A(Y){var Z={};for(var X in Y)for(var re=Y[X],ie=0;ieh||Y=Z)&&u(Y)&&Y>=0&&Y%1==0},y.noop=n(64213),y.identity=n(23389),y.repeat=function(Y,Z){for(var X=new Array(Z),re=0;reX?Math.max(X,Math.min(Z,Y)):Math.max(Z,Math.min(X,Y))},y.bBoxIntersect=function(Y,Z,X){return X=X||0,Y.left<=Z.right+X&&Z.left<=Y.right+X&&Y.top<=Z.bottom+X&&Z.top<=Y.bottom+X},y.simpleMap=function(Y,Z,X,re,ie){for(var le=Y.length,se=new Array(le),pe=0;pe=Math.pow(2,X)?ie>10?(y.warn("randstr failed uniqueness"),Te):Y(Z,X,re,(ie||0)+1):Te},y.OptionControl=function(Y,Z){Y||(Y={}),Z||(Z="opt");var X={optionList:[],_newoption:function(re){re[Z]=Y,X[re.name]=re,X.optionList.push(re)}};return X["_"+Z]=Y,X},y.smooth=function(Y,Z){if((Z=Math.round(Z)||0)<2)return Y;var X,re,ie,le,se=Y.length,pe=2*se,Te=2*Z-1,Se=new Array(Te),Oe=new Array(se);for(X=0;X=pe&&(ie-=pe*Math.floor(ie/pe)),ie<0?ie=-1-ie:ie>=se&&(ie=pe-1-ie),le+=Y[ie]*Se[re];Oe[X]=le}return Oe},y.syncOrAsync=function(Y,Z,X){var re;function ie(){return y.syncOrAsync(Y,Z,X)}for(;Y.length;)if((re=(0,Y.splice(0,1)[0])(Z))&&re.then)return re.then(ie);return X&&X(Z)},y.stripTrailingSlash=function(Y){return Y.substr(-1)==="/"?Y.substr(0,Y.length-1):Y},y.noneOrAll=function(Y,Z,X){if(Y){var re,ie=!1,le=!0;for(re=0;re0?ie:0})},y.fillArray=function(Y,Z,X,re){if(re=re||y.identity,y.isArrayOrTypedArray(Y))for(var ie=0;ie1?ie+se[1]:"";if(le&&(se.length>1||pe.length>4||X))for(;re.test(pe);)pe=pe.replace(re,"$1"+le+"$2");return pe+Te},y.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var W=/^\w*$/;y.templateString=function(Y,Z){var X={};return Y.replace(y.TEMPLATE_STRING_REGEX,function(re,ie){var le;return W.test(ie)?le=Z[ie]:(X[ie]=X[ie]||y.nestedProperty(Z,ie).get,le=X[ie]()),y.isValidTextValue(le)?le:""})};var G={max:10,count:0,name:"hovertemplate"};y.hovertemplateString=function(){return te.apply(G,arguments)};var L={max:10,count:0,name:"texttemplate"};y.texttemplateString=function(){return te.apply(L,arguments)};var q=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/,H={max:10,count:0,name:"texttemplate",parseMultDiv:!0};y.texttemplateStringForShapes=function(){return te.apply(H,arguments)};var V=/^[:|\|]/;function te(Y,Z,X){var re=this,ie=arguments;Z||(Z={});var le={};return Y.replace(y.TEMPLATE_STRING_REGEX,function(se,pe,Te){var Se=pe==="_xother"||pe==="_yother",Oe=pe==="_xother_"||pe==="_yother_",Me=pe==="xother_"||pe==="yother_",ce=pe==="xother"||pe==="yother"||Se||Me||Oe,ye=pe;(Se||Oe)&&(ye=ye.substring(1)),(Me||Oe)&&(ye=ye.substring(0,ye.length-1));var J,ne,de,xe=null,ue=null;if(re.parseMultDiv){var ge=function(Ae){var Ee=Ae.match(q);return Ee?{key:Ee[1],op:Ee[2],number:Number(Ee[3])}:{key:Ae,op:null,number:null}}(ye);ye=ge.key,xe=ge.op,ue=ge.number}if(ce){if((J=Z[ye])===void 0)return""}else for(de=3;de=48&&se<=57,Se=pe>=48&&pe<=57;if(Te&&(re=10*re+se-48),Se&&(ie=10*ie+pe-48),!Te||!Se){if(re!==ie)return re-ie;if(se!==pe)return se-pe}}return ie-re};var ee=2e9;y.seedPseudoRandom=function(){ee=2e9},y.pseudoRandom=function(){var Y=ee;return ee=(69069*ee+1)%4294967296,Math.abs(ee-Y)<429496729?y.pseudoRandom():ee/4294967296},y.fillText=function(Y,Z,X){var re=Array.isArray(X)?function(se){X.push(se)}:function(se){X.text=se},ie=y.extractOption(Y,Z,"htx","hovertext");if(y.isValidTextValue(ie))return re(ie);var le=y.extractOption(Y,Z,"tx","text");return y.isValidTextValue(le)?re(le):void 0},y.isValidTextValue=function(Y){return Y||Y===0},y.formatPercent=function(Y,Z){Z=Z||0;for(var X=(Math.round(100*Y*Math.pow(10,Z))*Math.pow(.1,Z)).toFixed(Z)+"%",re=0;re1&&(Se=1):Se=0,y.strTranslate(ie-Se*(X+se),le-Se*(re+pe))+y.strScale(Se)+(Te?"rotate("+Te+(Z?"":" "+X+" "+re)+")":"")},y.setTransormAndDisplay=function(Y,Z){Y.attr("transform",y.getTextTransform(Z)),Y.style("display",Z.scale?null:"none")},y.ensureUniformFontSize=function(Y,Z){var X=y.extendFlat({},Z);return X.size=Math.max(Z.size,Y._fullLayout.uniformtext.minsize||0),X},y.join2=function(Y,Z,X){var re=Y.length;return re>1?Y.slice(0,-1).join(Z)+X+Y[re-1]:Y.join(Z)},y.bigFont=function(Y){return Math.round(1.2*Y)};var U=y.getFirefoxVersion(),Q=U!==null&&U<86;y.getPositionFromD3Event=function(){return Q?[l.event.layerX,l.event.layerY]:[l.event.offsetX,l.event.offsetY]}},41965:function(o){o.exports=function(a){return window&&window.process&&window.process.versions?Object.prototype.toString.call(a)==="[object Object]":Object.prototype.toString.call(a)==="[object Object]"&&Object.getPrototypeOf(a).hasOwnProperty("hasOwnProperty")}},66636:function(o,a,n){var l=n(65487),f=/^\w*$/;o.exports=function(s,u,d,h){var p,g,y;d=d||"name",h=h||"value";var v={};u&&u.length?(y=l(s,u),g=y.get()):g=s,u=u||"";var m={};if(g)for(p=0;p2)return v[w]=2|v[w],x.set(_,null);if(b){for(p=w;p1){var d=["LOG:"];for(u=0;u1){var h=[];for(u=0;u"),"long")}},s.warn=function(){var u;if(l.logging>0){var d=["WARN:"];for(u=0;u0){var h=[];for(u=0;u"),"stick")}},s.error=function(){var u;if(l.logging>0){var d=["ERROR:"];for(u=0;u0){var h=[];for(u=0;u"),"stick")}}},77310:function(o,a,n){var l=n(39898);o.exports=function(f,s,u){var d=f.selectAll("g."+u.replace(/\s/g,".")).data(s,function(p){return p[0].trace.uid});d.exit().remove(),d.enter().append("g").attr("class",u),d.order();var h=f.classed("rangeplot")?"nodeRangePlot3":"node3";return d.each(function(p){p[0][h]=l.select(this)}),d}},35657:function(o,a,n){var l=n(79576);a.init2dArray=function(f,s){for(var u=new Array(f),d=0;dn/2?a-Math.round(a/n)*n:a}}},65487:function(o,a,n){var l=n(92770),f=n(73627).isArrayOrTypedArray;function s(v,m){return function(){var b,x,_,w,k,T=v;for(w=0;w/g),x=0;xg||M===f||Mv||k&&m(w))}:function(w,k){var T=w[0],M=w[1];if(T===f||Tg||M===f||Mv)return!1;var S,C,P,D,O,R=h.length,F=h[0][0],A=h[0][1],z=0;for(S=1;SMath.max(C,F)||M>Math.max(P,A)))if(Mx||Math.abs(l(y,w))>p)return!0;return!1},s.filter=function(u,d){var h=[u[0]],p=0,g=0;function y(v){u.push(v);var m=h.length,b=p;h.splice(g+1);for(var x=b+1;x1&&y(u.pop()),{addPt:y,raw:u,filtered:h}}},45142:function(o,a,n){var l=n(92770),f=n(35791);o.exports=function(s){var u;if(typeof(u=s&&s.hasOwnProperty("userAgent")?s.userAgent:function(){var m;return typeof navigator<"u"&&(m=navigator.userAgent),m&&m.headers&&typeof m.headers["user-agent"]=="string"&&(m=m.headers["user-agent"]),m}())!="string")return!0;var d=f({ua:{headers:{"user-agent":u}},tablet:!0,featureDetect:!1});if(!d){for(var h=u.split(" "),p=1;p-1;g--){var y=h[g];if(y.substr(0,8)==="Version/"){var v=y.substr(8).split(".")[0];if(l(v)&&(v=+v),v>=13)return!0}}}return d}},75138:function(o){o.exports=function(a,n){if(n instanceof RegExp){for(var l=n.toString(),f=0;ff.queueLength&&(u.undoQueue.queue.shift(),u.undoQueue.index--))},startSequence:function(u){u.undoQueue=u.undoQueue||{index:0,queue:[],sequence:!1},u.undoQueue.sequence=!0,u.undoQueue.beginSequence=!0},stopSequence:function(u){u.undoQueue=u.undoQueue||{index:0,queue:[],sequence:!1},u.undoQueue.sequence=!1,u.undoQueue.beginSequence=!1},undo:function(u){var d,h;if(!(u.undoQueue===void 0||isNaN(u.undoQueue.index)||u.undoQueue.index<=0)){for(u.undoQueue.index--,d=u.undoQueue.queue[u.undoQueue.index],u.undoQueue.inSequence=!0,h=0;h=u.undoQueue.queue.length)){for(d=u.undoQueue.queue[u.undoQueue.index],u.undoQueue.inSequence=!0,h=0;hm}function y(v,m){return v>=m}a.findBin=function(v,m,b){if(l(m.start))return b?Math.ceil((v-m.start)/m.size-d)-1:Math.floor((v-m.start)/m.size+d);var x,_,w=0,k=m.length,T=0,M=k>1?(m[k-1]-m[0])/(k-1):1;for(_=M>=0?b?h:p:b?y:g,v+=M*d*(b?-1:1)*(M>=0?1:-1);w90&&f.log("Long binary search..."),w-1},a.sorterAsc=function(v,m){return v-m},a.sorterDes=function(v,m){return m-v},a.distinctVals=function(v){var m,b=v.slice();for(b.sort(a.sorterAsc),m=b.length-1;m>-1&&b[m]===u;m--);for(var x,_=b[m]-b[0]||1,w=_/(m||1)/1e4,k=[],T=0;T<=m;T++){var M=b[T],S=M-x;x===void 0?(k.push(M),x=M):S>w&&(_=Math.min(_,S),k.push(M),x=M)}return{vals:k,minDiff:_}},a.roundUp=function(v,m,b){for(var x,_=0,w=m.length-1,k=0,T=b?0:1,M=b?1:0,S=b?Math.ceil:Math.floor;_0&&(x=1),b&&x)return v.sort(m)}return x?v:v.reverse()},a.findIndexOfMin=function(v,m){m=m||s;for(var b,x=1/0,_=0;_d.length)&&(h=d.length),l(u)||(u=!1),f(d[0])){for(g=new Array(h),p=0;ps.length-1)return s[s.length-1];var d=u%1;return d*s[Math.ceil(u)]+(1-d)*s[Math.floor(u)]}},3883:function(o,a,n){var l=n(32396),f=n(91424),s=n(71828),u=null;o.exports=function(){if(u!==null)return u;u=!1;var d=s.isIE()||s.isSafari()||s.isIOS();if(window.navigator.userAgent&&!d){var h=Array.from(l.CSS_DECLARATIONS).reverse(),p=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof p=="function")u=h.some(function(v){return p.apply(null,v)});else{var g=f.tester.append("image").attr("style",l.STYLE),y=window.getComputedStyle(g.node()).imageRendering;u=h.some(function(v){var m=v[1];return y===m||y===m.toLowerCase()}),g.remove()}}return u}},63893:function(o,a,n){var l=n(39898),f=n(71828),s=f.strTranslate,u=n(77922),d=n(18783).LINE_SPACING,h=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;a.convertToTspans=function(N,E,W){var G=N.text(),L=!N.attr("data-notex")&&E&&E._context.typesetMath&&typeof MathJax<"u"&&G.match(h),q=l.select(N.node().parentNode);if(!q.empty()){var H=N.attr("class")?N.attr("class").split(" ")[0]:"text";return H+="-math",q.selectAll("svg."+H).remove(),q.selectAll("g."+H+"-group").remove(),N.style("display",null).attr({"data-unformatted":G,"data-math":"N"}),L?(E&&E._promises||[]).push(new Promise(function(te){N.style("display","none");var ee=parseInt(N.node().style.fontSize,10),U={fontSize:ee};(function(Q,Y,Z){var X,re,ie,le,se=parseInt((MathJax.version||"").split(".")[0]);if(se===2||se===3){var pe=function(){var Se="math-output-"+f.randstr({},64),Oe=(le=l.select("body").append("div").attr({id:Se}).style({visibility:"hidden",position:"absolute","font-size":Y.fontSize+"px"}).text(Q.replace(p,"\\lt ").replace(g,"\\gt "))).node();return se===2?MathJax.Hub.Typeset(Oe):MathJax.typeset([Oe])},Te=function(){var Se=le.select(se===2?".MathJax_SVG":".MathJax"),Oe=!Se.empty()&&le.select("svg").node();if(Oe){var Me,ce=Oe.getBoundingClientRect();Me=se===2?l.select("body").select("#MathJax_SVG_glyphs"):Se.select("defs"),Z(Se,Me,ce)}else f.log("There was an error in the tex syntax.",Q),Z();le.remove()};se===2?MathJax.Hub.Queue(function(){return re=f.extendDeepAll({},MathJax.Hub.config),ie=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:y},displayAlign:"left"})},function(){if((X=MathJax.Hub.config.menuSettings.renderer)!=="SVG")return MathJax.Hub.setRenderer("SVG")},pe,Te,function(){if(X!=="SVG")return MathJax.Hub.setRenderer(X)},function(){return ie!==void 0&&(MathJax.Hub.processSectionDelay=ie),MathJax.Hub.Config(re)}):se===3&&(re=f.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=y,(X=MathJax.config.startup.output)!=="svg"&&(MathJax.config.startup.output="svg"),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){pe(),Te(),X!=="svg"&&(MathJax.config.startup.output=X),MathJax.config=re}))}else f.warn("No MathJax version:",MathJax.version)})(L[2],U,function(Q,Y,Z){q.selectAll("svg."+H).remove(),q.selectAll("g."+H+"-group").remove();var X=Q&&Q.select("svg");if(!X||!X.node())return V(),void te();var re=q.append("g").classed(H+"-group",!0).attr({"pointer-events":"none","data-unformatted":G,"data-math":"Y"});re.node().appendChild(X.node()),Y&&Y.node()&&X.node().insertBefore(Y.node().cloneNode(!0),X.node().firstChild);var ie=Z.width,le=Z.height;X.attr({class:H,height:le,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var se=N.node().style.fill||"black",pe=X.select("g");pe.attr({fill:se,stroke:se});var Te=pe.node().getBoundingClientRect(),Se=Te.width,Oe=Te.height;(Se>ie||Oe>le)&&(X.style("overflow","hidden"),Se=(Te=X.node().getBoundingClientRect()).width,Oe=Te.height);var Me=+N.attr("x"),ce=+N.attr("y"),ye=-(ee||N.node().getBoundingClientRect().height)/4;if(H[0]==="y")re.attr({transform:"rotate("+[-90,Me,ce]+")"+s(-Se/2,ye-Oe/2)});else if(H[0]==="l")ce=ye-Oe/2;else if(H[0]==="a"&&H.indexOf("atitle")!==0)Me=0,ce=ye;else{var J=N.attr("text-anchor");Me-=Se*(J==="middle"?.5:J==="end"?1:0),ce=ce+ye-Oe/2}X.attr({x:Me,y:ce}),W&&W.call(N,re),te(re)})})):V(),N}function V(){q.empty()||(H=N.attr("class")+"-math",q.select("svg."+H).remove()),N.text("").style("white-space","pre");var te=function(ee,U){U=U.replace(w," ");var Q,Y=!1,Z=[],X=-1;function re(){X++;var ue=document.createElementNS(u.svg,"tspan");l.select(ue).attr({class:"line",dy:X*d+"em"}),ee.appendChild(ue),Q=ue;var ge=Z;if(Z=[{node:ue}],ge.length>1)for(var be=1;be doesnt match end tag <"+ue+">. Pretending it did match.",U),Q=Z[Z.length-1].node}else f.log("Ignoring unexpected end tag .",U)}M.test(U)?re():(Q=ee,Z=[{node:ee}]);for(var pe=U.split(k),Te=0;Te|>|>)/g,y=[["$","$"],["\\(","\\)"]],v={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},m={sub:"0.3em",sup:"-0.6em"},b={sub:"-0.21em",sup:"0.42em"},x="​",_=["http:","https:","mailto:","",void 0,":"],w=a.NEWLINES=/(\r\n?|\n)/g,k=/(<[^<>]*>)/,T=/<(\/?)([^ >]*)(\s+(.*))?>/i,M=//i;a.BR_TAG_ALL=//gi;var S=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,C=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,P=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,D=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function O(N,E){if(!N)return null;var W=N.match(E),G=W&&(W[3]||W[4]);return G&&z(G)}var R=/(^|;)\s*color:/;a.plainText=function(N,E){for(var W=(E=E||{}).len!==void 0&&E.len!==-1?E.len:1/0,G=E.allowedTags!==void 0?E.allowedTags:["br"],L=N.split(k),q=[],H="",V=0,te=0;te3?q.push(ee.substr(0,Z-3)+"..."):q.push(ee.substr(0,Z));break}H=""}}return q.join("")};var F={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},A=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function z(N){return N.replace(A,function(E,W){return(W.charAt(0)==="#"?function(G){if(!(G>1114111)){var L=String.fromCodePoint;if(L)return L(G);var q=String.fromCharCode;return G<=65535?q(G):q(55232+(G>>10),G%1024+56320)}}(W.charAt(1)==="x"?parseInt(W.substr(2),16):parseInt(W.substr(1),10)):F[W])||E})}function B(N){var E=encodeURI(decodeURI(N)),W=document.createElement("a"),G=document.createElement("a");W.href=N,G.href=E;var L=W.protocol,q=G.protocol;return _.indexOf(L)!==-1&&_.indexOf(q)!==-1?E:""}function $(N,E,W){var G,L,q,H=W.horizontalAlign,V=W.verticalAlign||"top",te=N.node().getBoundingClientRect(),ee=E.node().getBoundingClientRect();return L=V==="bottom"?function(){return te.bottom-G.height}:V==="middle"?function(){return te.top+(te.height-G.height)/2}:function(){return te.top},q=H==="right"?function(){return te.right-G.width}:H==="center"?function(){return te.left+(te.width-G.width)/2}:function(){return te.left},function(){G=this.node().getBoundingClientRect();var U=q()-ee.left,Q=L()-ee.top,Y=W.gd||{};if(W.gd){Y._fullLayout._calcInverseTransform(Y);var Z=f.apply3DTransform(Y._fullLayout._invTransform)(U,Q);U=Z[0],Q=Z[1]}return this.style({top:Q+"px",left:U+"px","z-index":1e3}),this}}a.convertEntities=z,a.sanitizeHTML=function(N){N=N.replace(w," ");for(var E=document.createElement("p"),W=E,G=[],L=N.split(k),q=0;qd.ts+s?g():d.timer=setTimeout(function(){g(),d.timer=null},s)},a.done=function(f){var s=n[f];return s&&s.timer?new Promise(function(u){var d=s.onDone;s.onDone=function(){d&&d(),u(),s.onDone=null}}):Promise.resolve()},a.clear=function(f){if(f)l(n[f]),delete n[f];else for(var s in n)a.clear(s)}},58163:function(o,a,n){var l=n(92770);o.exports=function(f,s){if(f>0)return Math.log(f)/Math.LN10;var u=Math.log(Math.min(s[0],s[1]))/Math.LN10;return l(u)||(u=Math.log(Math.max(s[0],s[1]))/Math.LN10-6),u}},37815:function(o){o.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},92177:function(o){o.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},14458:function(o,a,n){var l=n(73972);o.exports=function(f){for(var s,u,d=l.layoutArrayContainers,h=l.layoutArrayRegexes,p=f.split("[")[0],g=0;g0&&u.log("Clearing previous rejected promises from queue."),C._promises=[]},a.cleanLayout=function(C){var P,D;C||(C={}),C.xaxis1&&(C.xaxis||(C.xaxis=C.xaxis1),delete C.xaxis1),C.yaxis1&&(C.yaxis||(C.yaxis=C.yaxis1),delete C.yaxis1),C.scene1&&(C.scene||(C.scene=C.scene1),delete C.scene1);var O=(d.subplotsRegistry.cartesian||{}).attrRegex,R=(d.subplotsRegistry.polar||{}).attrRegex,F=(d.subplotsRegistry.ternary||{}).attrRegex,A=(d.subplotsRegistry.gl3d||{}).attrRegex,z=Object.keys(C);for(P=0;P3?(Z.x=1.02,Z.xanchor="left"):Z.x<-2&&(Z.x=-.02,Z.xanchor="right"),Z.y>3?(Z.y=1.02,Z.yanchor="bottom"):Z.y<-2&&(Z.y=-.02,Z.yanchor="top")),b(C),C.dragmode==="rotate"&&(C.dragmode="orbit"),p.clean(C),C.template&&C.template.layout&&a.cleanLayout(C.template.layout),C},a.cleanData=function(C){for(var P=0;P0)return C.substr(0,P)}a.hasParent=function(C,P){for(var D=M(P);D;){if(D in C)return!0;D=M(D)}return!1};var S=["x","y","z"];a.clearAxisTypes=function(C,P,D){for(var O=0;O1&&s.warn("Full array edits are incompatible with other edits",x);var C=v[""][""];if(p(C))y.set(null);else{if(!Array.isArray(C))return s.warn("Unrecognized full array edit value",x,C),!0;y.set(C)}return!T&&(_(M,S),w(g),!0)}var P,D,O,R,F,A,z,B,$=Object.keys(v).map(Number).sort(u),j=y.get(),N=j||[],E=b(S,x).get(),W=[],G=-1,L=N.length;for(P=0;P<$.length;P++)if(R=v[O=$[P]],F=Object.keys(R),A=R[""],z=h(A),O<0||O>N.length-(z?0:1))s.warn("index out of range",x,O);else if(A!==void 0)F.length>1&&s.warn("Insertion & removal are incompatible with edits to the same index.",x,O),p(A)?W.push(O):z?(A==="add"&&(A={}),N.splice(O,0,A),E&&E.splice(O,0,{})):s.warn("Unrecognized full object edit value",x,O,A),G===-1&&(G=O);else for(D=0;D=0;P--)N.splice(W[P],1),E&&E.splice(W[P],1);if(N.length?j||y.set(N):y.set(null),T)return!1;if(_(M,S),k!==f){var q;if(G===-1)q=$;else{for(L=Math.max(N.length,L),q=[],P=0;P<$.length&&!((O=$[P])>=G);P++)q.push(O);for(P=G;P=ue.data.length||ke<-ue.data.length)throw new Error(be+" must be valid indices for gd.data.");if(ge.indexOf(ke,we+1)>-1||ke>=0&&ge.indexOf(-ue.data.length+ke)>-1||ke<0&&ge.indexOf(ue.data.length+ke)>-1)throw new Error("each index in "+be+" must be unique.")}}function E(ue,ge,be){if(!Array.isArray(ue.data))throw new Error("gd.data must be an array.");if(ge===void 0)throw new Error("currentIndices is a required argument.");if(Array.isArray(ge)||(ge=[ge]),N(ue,ge,"currentIndices"),be===void 0||Array.isArray(be)||(be=[be]),be!==void 0&&N(ue,be,"newIndices"),be!==void 0&&ge.length!==be.length)throw new Error("current and new indices must be of equal length.")}function W(ue,ge,be,we,ke){(function(qe,Ye,at,lt){var ct=u.isPlainObject(lt);if(!Array.isArray(qe.data))throw new Error("gd.data must be an array");if(!u.isPlainObject(Ye))throw new Error("update must be a key:value object");if(at===void 0)throw new Error("indices must be an integer or array of integers");for(var bt in N(qe,at,"indices"),Ye){if(!Array.isArray(Ye[bt])||Ye[bt].length!==at.length)throw new Error("attribute "+bt+" must be an array of length equal to indices array length");if(ct&&(!(bt in lt)||!Array.isArray(lt[bt])||lt[bt].length!==Ye[bt].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}})(ue,ge,be,we);for(var Ae=function(qe,Ye,at,lt){var ct,bt,ze,Ne,Qe,it=u.isPlainObject(lt),kt=[];for(var Je in Array.isArray(at)||(at=[at]),at=j(at,qe.data.length-1),Ye)for(var ut=0;ut-1&&be.indexOf("grouptitlefont")===-1?De(be,be.replace("titlefont","title.font")):be.indexOf("titleposition")>-1?De(be,be.replace("titleposition","title.position")):be.indexOf("titleside")>-1?De(be,be.replace("titleside","title.side")):be.indexOf("titleoffset")>-1&&De(be,be.replace("titleoffset","title.offset")):De(be,be.replace("title","title.text"));function De(Re,Ie){ue[Ie]=ue[Re],delete ue[Re]}}function U(ue,ge,be){ue=u.getGraphDiv(ue),P.clearPromiseQueue(ue);var we={};if(typeof ge=="string")we[ge]=be;else{if(!u.isPlainObject(ge))return u.warn("Relayout fail.",ge,be),Promise.reject();we=u.extendFlat({},ge)}Object.keys(we).length&&(ue.changed=!0);var ke=ie(ue,we),Ae=ke.flags;Ae.calc&&(ue.calcdata=void 0);var Ee=[v.previousPromises];Ae.layoutReplot?Ee.push(D.layoutReplot):Object.keys(we).length&&(Q(ue,Ae,ke)||v.supplyDefaults(ue),Ae.legend&&Ee.push(D.doLegend),Ae.layoutstyle&&Ee.push(D.layoutStyles),Ae.axrange&&Y(Ee,ke.rangesAltered),Ae.ticks&&Ee.push(D.doTicksRelayout),Ae.modebar&&Ee.push(D.doModeBar),Ae.camera&&Ee.push(D.doCamera),Ae.colorbars&&Ee.push(D.doColorBars),Ee.push(A)),Ee.push(v.rehover,v.redrag,v.reselect),p.add(ue,U,[ue,ke.undoit],U,[ue,ke.redoit]);var De=u.syncOrAsync(Ee,ue);return De&&De.then||(De=Promise.resolve(ue)),De.then(function(){return ue.emit("plotly_relayout",ke.eventData),ue})}function Q(ue,ge,be){var we,ke,Ae=ue._fullLayout;if(!ge.axrange)return!1;for(var Ee in ge)if(Ee!=="axrange"&&ge[Ee])return!1;var De=function(Ye,at){return u.coerce(we,ke,x,Ye,at)},Re={};for(var Ie in be.rangesAltered){var Be=m.id2name(Ie);if(we=ue.layout[Be],ke=Ae[Be],b(we,ke,De,Re),ke._matchGroup){for(var Ue in ke._matchGroup)if(Ue!==Ie){var qe=Ae[m.id2name(Ue)];qe.autorange=ke.autorange,qe.range=ke.range.slice(),qe._input.range=ke.range.slice()}}}return!0}function Y(ue,ge){var be=ge?function(we){var ke=[];for(var Ae in ge){var Ee=m.getFromId(we,Ae);if(ke.push(Ae),(Ee.ticklabelposition||"").indexOf("inside")!==-1&&Ee._anchorAxis&&ke.push(Ee._anchorAxis._id),Ee._matchGroup)for(var De in Ee._matchGroup)ge[De]||ke.push(De)}return m.draw(we,ke,{skipTitle:!0})}:function(we){return m.draw(we,"redraw")};ue.push(M,D.doAutoRangeAndConstraints,be,D.drawData,D.finalDraw)}var Z=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,X=/^[xyz]axis[0-9]*\.autorange$/,re=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function ie(ue,ge){var be,we,ke,Ae=ue.layout,Ee=ue._fullLayout,De=Ee._guiEditing,Re=H(Ee._preGUI,De),Ie=Object.keys(ge),Be=m.list(ue),Ue=u.extendDeepAll({},ge),qe={};for(ee(ge),Ie=Object.keys(ge),we=0;we0&&typeof ut.parts[It]!="string";)It--;var Mt=ut.parts[It],zt=ut.parts[It-1]+"."+Mt,wt=ut.parts.slice(0,It).join("."),ve=d(ue.layout,wt).get(),_e=d(Ee,wt).get(),Ve=ut.get();if(pt!==void 0){bt[Je]=pt,ze[Je]=Mt==="reverse"?pt:q(Ve);var We=y.getLayoutValObject(Ee,ut.parts);if(We&&We.impliedEdits&&pt!==null)for(var Ze in We.impliedEdits)Ne(u.relativeAttr(Je,Ze),We.impliedEdits[Ze]);if(["width","height"].indexOf(Je)!==-1)if(pt){Ne("autosize",null);var Ge=Je==="height"?"width":"height";Ne(Ge,Ee[Ge])}else Ee[Je]=ue._initialAutoSize[Je];else if(Je==="autosize")Ne("width",pt?null:Ee.width),Ne("height",pt?null:Ee.height);else if(zt.match(Z))kt(zt),d(Ee,wt+"._inputRange").set(null);else if(zt.match(X)){kt(zt),d(Ee,wt+"._inputRange").set(null);var Ke=d(Ee,wt).get();Ke._inputDomain&&(Ke._input.domain=Ke._inputDomain.slice())}else zt.match(re)&&d(Ee,wt+"._inputDomain").set(null);if(Mt==="type"){Qe=ve;var nt=_e.type==="linear"&&pt==="log",st=_e.type==="log"&&pt==="linear";if(nt||st){if(Qe&&Qe.range)if(_e.autorange)nt&&(Qe.range=Qe.range[1]>Qe.range[0]?[1,2]:[2,1]);else{var mt=Qe.range[0],tt=Qe.range[1];nt?(mt<=0&&tt<=0&&Ne(wt+".autorange",!0),mt<=0?mt=tt/1e6:tt<=0&&(tt=mt/1e6),Ne(wt+".range[0]",Math.log(mt)/Math.LN10),Ne(wt+".range[1]",Math.log(tt)/Math.LN10)):(Ne(wt+".range[0]",Math.pow(10,mt)),Ne(wt+".range[1]",Math.pow(10,tt)))}else Ne(wt+".autorange",!0);Array.isArray(Ee._subplots.polar)&&Ee._subplots.polar.length&&Ee[ut.parts[0]]&&ut.parts[1]==="radialaxis"&&delete Ee[ut.parts[0]]._subplot.viewInitial["radialaxis.range"],g.getComponentMethod("annotations","convertCoords")(ue,_e,pt,Ne),g.getComponentMethod("images","convertCoords")(ue,_e,pt,Ne)}else Ne(wt+".autorange",!0),Ne(wt+".range",null);d(Ee,wt+"._inputRange").set(null)}else if(Mt.match(R)){var Ft=d(Ee,Je).get(),Vt=(pt||{}).type;Vt&&Vt!=="-"||(Vt="linear"),g.getComponentMethod("annotations","convertCoords")(ue,Ft,Vt,Ne),g.getComponentMethod("images","convertCoords")(ue,Ft,Vt,Ne)}var St=C.containerArrayMatch(Je);if(St){be=St.array,we=St.index;var Nt=St.property,Dt=We||{editType:"calc"};we!==""&&Nt===""&&(C.isAddVal(pt)?ze[Je]=null:C.isRemoveVal(pt)?ze[Je]=(d(Ae,be).get()||[])[we]:u.warn("unrecognized full object value",ge)),O.update(ct,Dt),qe[be]||(qe[be]={});var gt=qe[be][we];gt||(gt=qe[be][we]={}),gt[Nt]=pt,delete ge[Je]}else Mt==="reverse"?(ve.range?ve.range.reverse():(Ne(wt+".autorange",!0),ve.range=[1,0]),_e.autorange?ct.calc=!0:ct.plot=!0):(Je==="dragmode"&&(pt===!1&&Ve!==!1||pt!==!1&&Ve===!1)||Ee._has("scatter-like")&&Ee._has("regl")&&Je==="dragmode"&&(pt==="lasso"||pt==="select")&&Ve!=="lasso"&&Ve!=="select"||Ee._has("gl2d")?ct.plot=!0:We?O.update(ct,We):ct.calc=!0,ut.set(pt))}}for(be in qe)C.applyContainerArrayChanges(ue,Re(Ae,be),qe[be],ct,Re)||(ct.plot=!0);for(var ht in it){var yt=(Qe=m.getFromId(ue,ht))&&Qe._constraintGroup;if(yt)for(var qt in ct.calc=!0,yt)it[qt]||(m.getFromId(ue,qt)._constraintShrinkable=!0)}(le(ue)||ge.height||ge.width)&&(ct.plot=!0);var Et=Ee.shapes;for(we=0;we1;)if(we.pop(),(be=d(ge,we.join(".")+".uirevision").get())!==void 0)return be;return ge.uirevision}function ce(ue,ge){for(var be=0;be=ke.length?ke[0]:ke[Ie]:ke}function De(Ie){return Array.isArray(Ae)?Ie>=Ae.length?Ae[0]:Ae[Ie]:Ae}function Re(Ie,Be){var Ue=0;return function(){if(Ie&&++Ue===Be)return Ie()}}return we._frameWaitingCnt===void 0&&(we._frameWaitingCnt=0),new Promise(function(Ie,Be){function Ue(){ue.emit("plotly_animating"),we._lastFrameAt=-1/0,we._timeToNext=0,we._runningTransitions=0,we._currentFrame=null;var Je=function(){we._animationRaf=window.requestAnimationFrame(Je),Date.now()-we._lastFrameAt>we._timeToNext&&function(){we._currentFrame&&we._currentFrame.onComplete&&we._currentFrame.onComplete();var ut=we._currentFrame=we._frameQueue.shift();if(ut){var pt=ut.name?ut.name.toString():null;ue._fullLayout._currentFrame=pt,we._lastFrameAt=Date.now(),we._timeToNext=ut.frameOpts.duration,v.transition(ue,ut.frame.data,ut.frame.layout,P.coerceTraceIndices(ue,ut.frame.traces),ut.frameOpts,ut.transitionOpts).then(function(){ut.onComplete&&ut.onComplete()}),ue.emit("plotly_animatingframe",{name:pt,frame:ut.frame,animation:{frame:ut.frameOpts,transition:ut.transitionOpts}})}else ue.emit("plotly_animated"),window.cancelAnimationFrame(we._animationRaf),we._animationRaf=null}()};Je()}var qe,Ye,at=0;function lt(Je){return Array.isArray(ke)?at>=ke.length?Je.transitionOpts=ke[at]:Je.transitionOpts=ke[0]:Je.transitionOpts=ke,at++,Je}var ct=[],bt=ge==null,ze=Array.isArray(ge);if(bt||ze||!u.isPlainObject(ge)){if(bt||["string","number"].indexOf(typeof ge)!==-1)for(qe=0;qe0&&itit)&&kt.push(Ye);ct=kt}}ct.length>0?function(Je){if(Je.length!==0){for(var ut=0;ut=0;we--)if(u.isPlainObject(ge[we])){var qe=ge[we].name,Ye=(Re[qe]||Ue[qe]||{}).name,at=ge[we].name,lt=Re[Ye]||Ue[Ye];Ye&&at&&typeof at=="number"&<&&F<5&&(F++,u.warn('addFrames: overwriting frame "'+(Re[Ye]||Ue[Ye]).name+'" with a frame whose name of type "number" also equates to "'+Ye+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),F===5&&u.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),Ue[qe]={name:qe},Be.push({frame:v.supplyFrameDefaults(ge[we]),index:be&&be[we]!==void 0&&be[we]!==null?be[we]:Ie+we})}Be.sort(function(Je,ut){return Je.index>ut.index?-1:Je.index=0;we--){if(typeof(ke=Be[we].frame).name=="number"&&u.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!ke.name)for(;Re[ke.name="frame "+ue._transitionData._counter++];);if(Re[ke.name]){for(Ae=0;Ae=0;be--)we=ge[be],Ae.push({type:"delete",index:we}),Ee.unshift({type:"insert",index:we,value:ke[we]});var De=v.modifyFrames,Re=v.modifyFrames,Ie=[ue,Ee],Be=[ue,Ae];return p&&p.add(ue,De,Ie,Re,Be),v.modifyFrames(ue,Ae)},a.addTraces=function ue(ge,be,we){ge=u.getGraphDiv(ge);var ke,Ae,Ee=[],De=a.deleteTraces,Re=ue,Ie=[ge,Ee],Be=[ge,be];for(function(Ue,qe,Ye){var at,lt;if(!Array.isArray(Ue.data))throw new Error("gd.data must be an array.");if(qe===void 0)throw new Error("traces must be defined.");for(Array.isArray(qe)||(qe=[qe]),at=0;at=0&&Be=0&&Be=$.length)return!1;if(R.dimensions===2){if(A++,F.length===A)return R;var j=F[A];if(!S(j))return!1;R=$[B][j]}else R=$[B]}else R=$}}return R}function S(R){return R===Math.round(R)&&R>=0}function C(){var R,F,A={};for(R in y(A,u),l.subplotsRegistry)if((F=l.subplotsRegistry[R]).layoutAttributes)if(Array.isArray(F.attr))for(var z=0;z=j.length)return!1;z=(A=(l.transformsRegistry[j[N].type]||{}).attributes)&&A[F[2]],$=3}else{var E=R._module;if(E||(E=(l.modules[R.type||s.type.dflt]||{})._module),!E)return!1;if(!(z=(A=E.attributes)&&A[B])){var W=E.basePlotModule;W&&W.attributes&&(z=W.attributes[B])}z||(z=s[B])}return M(z,F,$)},a.getLayoutValObject=function(R,F){var A=function(z,B){var $,j,N,E,W=z._basePlotModules;if(W){var G;for($=0;$=v&&(y._input||{})._templateitemname;b&&(m=v);var x,_=g+"["+m+"]";function w(){x={},b&&(x[_]={},x[_][s]=b)}function k(M,S){b?l.nestedProperty(x[_],M).set(S):x[_+"."+M]=S}function T(){var M=x;return w(),M}return w(),{modifyBase:function(M,S){x[M]=S},modifyItem:k,getUpdateObj:T,applyUpdate:function(M,S){M&&k(M,S);var C=T();for(var P in C)l.nestedProperty(p,P).set(C[P])}}}},61549:function(o,a,n){var l=n(39898),f=n(73972),s=n(74875),u=n(71828),d=n(63893),h=n(33306),p=n(7901),g=n(91424),y=n(92998),v=n(64168),m=n(89298),b=n(18783),x=n(99082),_=x.enforce,w=x.clean,k=n(71739).doAutoRange,T="start";function M(O,R,F){for(var A=0;A=O[1]||z[1]<=O[0])&&B[0]R[0])return!0}return!1}function S(O){var R,F,A,z,B,$,j=O._fullLayout,N=j._size,E=N.p,W=m.list(O,"",!0);if(j._paperdiv.style({width:O._context.responsive&&j.autosize&&!O._context._hasZeroWidth&&!O.layout.width?"100%":j.width+"px",height:O._context.responsive&&j.autosize&&!O._context._hasZeroHeight&&!O.layout.height?"100%":j.height+"px"}).selectAll(".main-svg").call(g.setSize,j.width,j.height),O._context.setBackground(O,j.paper_bgcolor),a.drawMainTitle(O),v.manage(O),!j._has("cartesian"))return s.previousPromises(O);function G(Ie,Be,Ue){var qe=Ie._lw/2;return Ie._id.charAt(0)==="x"?Be?Ue==="top"?Be._offset-E-qe:Be._offset+Be._length+E+qe:N.t+N.h*(1-(Ie.position||0))+qe%1:Be?Ue==="right"?Be._offset+Be._length+E+qe:Be._offset-E-qe:N.l+N.w*(Ie.position||0)+qe%1}for(R=0;R.5?"t":"b",ee=G._fullLayout.margin[te],U=0;return L.yref==="paper"?U=q+L.pad.t+L.pad.b:L.yref==="container"&&(U=function(Q,Y,Z,X,re){var ie=0;return Z==="middle"&&(ie+=re/2),Q==="t"?(Z==="top"&&(ie+=re),ie+=X-Y*X):(Z==="bottom"&&(ie+=re),ie+=Y*X),ie}(te,H,V,G._fullLayout.height,q)+L.pad.t+L.pad.b),U>ee?U:0}(O,F,E);W>0&&(function(G,L,q,H){var V="title.automargin",te=G._fullLayout.title,ee=te.y>.5?"t":"b",U={x:te.x,y:te.y,t:0,b:0},Q={};te.yref==="paper"&&function(Y,Z,X,re,ie){var le=Z.yref==="paper"?Y._fullLayout._size.h:Y._fullLayout.height,se=u.isTopAnchor(Z)?re:re-ie,pe=X==="b"?le-se:se;return!(u.isTopAnchor(Z)&&X==="t"||u.isBottomAnchor(Z)&&X==="b")&&peN?D.push({code:"unused",traceType:A,templateCount:j,dataCount:N}):N>j&&D.push({code:"reused",traceType:A,templateCount:j,dataCount:N})}}else D.push({code:"data"});if(function E(W,G){for(var L in W)if(L.charAt(0)!=="_"){var q=W[L],H=x(W,L,G);f(q)?(Array.isArray(W)&&q._template===!1&&q.templateitemname&&D.push({code:"missing",path:H,templateitemname:q.templateitemname}),E(q,H)):Array.isArray(q)&&_(q)&&E(q,H)}}({data:R,layout:O},""),D.length)return D.map(w)}},403:function(o,a,n){var l=n(92770),f=n(72391),s=n(74875),u=n(71828),d=n(25095),h=n(5900),p=n(70942),g=n(11506).version,y={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};o.exports=function(v,m){var b,x,_,w;function k(N){return!(N in m)||u.validate(m[N],y[N])}if(m=m||{},u.isPlainObject(v)?(b=v.data||[],x=v.layout||{},_=v.config||{},w={}):(v=u.getGraphDiv(v),b=u.extendDeep([],v.data),x=u.extendDeep({},v.layout),_=v._context,w=v._fullLayout||{}),!k("width")&&m.width!==null||!k("height")&&m.height!==null)throw new Error("Height and width should be pixel values.");if(!k("format"))throw new Error("Export format is not "+u.join2(y.format.values,", "," or ")+".");var T={};function M(N,E){return u.coerce(m,T,y,N,E)}var S=M("format"),C=M("width"),P=M("height"),D=M("scale"),O=M("setBackground"),R=M("imageDataOnly"),F=document.createElement("div");F.style.position="absolute",F.style.left="-5000px",document.body.appendChild(F);var A=u.extendFlat({},x);C?A.width=C:m.width===null&&l(w.width)&&(A.width=w.width),P?A.height=P:m.height===null&&l(w.height)&&(A.height=w.height);var z=u.extendFlat({},_,{_exportedPlot:!0,staticPlot:!0,setBackground:O}),B=d.getRedrawFunc(F);function $(){return new Promise(function(N){setTimeout(N,d.getDelay(F._fullLayout))})}function j(){return new Promise(function(N,E){var W=h(F,S,D),G=F._fullLayout.width,L=F._fullLayout.height;function q(){f.purge(F),document.body.removeChild(F)}if(S==="full-json"){var H=s.graphJson(F,!1,"keepdata","object",!0,!0);return H.version=g,H=JSON.stringify(H),q(),N(R?H:d.encodeJSON(H))}if(q(),S==="svg")return N(R?W:d.encodeSVG(W));var V=document.createElement("canvas");V.id=u.randstr(),p({format:S,width:G,height:L,scale:D,canvas:V,svg:W,promise:!0}).then(N).catch(E)})}return new Promise(function(N,E){f.newPlot(F,b,A,z).then(B).then($).then(j).then(function(W){N(function(G){return R?G.replace(d.IMAGE_URL_PREFIX,""):G}(W))}).catch(function(W){E(W)})})}},84936:function(o,a,n){var l=n(71828),f=n(74875),s=n(86281),u=n(72075).dfltConfig,d=l.isPlainObject,h=Array.isArray,p=l.isArrayOrTypedArray;function g(k,T,M,S,C,P){P=P||[];for(var D=Object.keys(k),O=0;Oz.length&&S.push(m("unused",C,F.concat(z.length)));var W,G,L,q,H,V=z.length,te=Array.isArray(E);if(te&&(V=Math.min(V,E.length)),B.dimensions===2)for(G=0;Gz[G].length&&S.push(m("unused",C,F.concat(G,z[G].length)));var ee=z[G].length;for(W=0;W<(te?Math.min(ee,E[G].length):ee);W++)L=te?E[G][W]:E,q=A[G][W],H=z[G][W],l.validate(q,L)?H!==q&&H!==+q&&S.push(m("dynamic",C,F.concat(G,W),q,H)):S.push(m("value",C,F.concat(G,W),q))}else S.push(m("array",C,F.concat(G),A[G]));else for(G=0;G1&&P.push(m("object","layout"))),f.supplyDefaults(D);for(var O=D._fullData,R=M.length,F=0;F0&&Math.round(x)===x))return{vals:y};m=x}for(var _=p.calendar,w=v==="start",k=v==="end",T=h[g+"period0"],M=s(T,_)||0,S=[],C=[],P=[],D=y.length,O=0;Oz;)A=u(A,-m,_);for(;A<=z;)A=u(A,m,_);F=u(A,-m,_)}else{for(A=M+(R=Math.round((z-M)/b))*b;A>z;)A-=b;for(;A<=z;)A+=b;F=A-b}S[O]=w?F:k?A:(F+A)/2,C[O]=F,P[O]=A}return{vals:S,starts:C,ends:P}}},89502:function(o){o.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},71739:function(o,a,n){var l=n(39898),f=n(92770),s=n(71828),u=n(50606).FP_SAFE,d=n(73972),h=n(91424),p=n(41675),g=p.getFromId,y=p.isLinked;function v(O,R){var F,A,z=[],B=O._fullLayout,$=b(B,R,0),j=b(B,R,1),N=_(O,R),E=N.min,W=N.max;if(E.length===0||W.length===0)return s.simpleMap(R.range,R.r2l);var G=E[0].val,L=W[0].val;for(F=1;F0&&((Y=le-$(te)-j(ee))>se?Z/Y>pe&&(U=te,Q=ee,pe=Z/Y):Z/le>pe&&(U={val:te.val,nopad:1},Q={val:ee.val,nopad:1},pe=Z/le));if(G===L){var Te=G-1,Se=G+1;if(re)if(G===0)z=[0,1];else{var Oe=(G>0?W:E).reduce(function(ce,ye){return Math.max(ce,j(ye))},0),Me=G/(1-Math.min(.5,Oe/le));z=G>0?[0,Me]:[Me,0]}else z=ie?[Math.max(0,Te),Math.max(1,Se)]:[Te,Se]}else re?(U.val>=0&&(U={val:0,nopad:1}),Q.val<=0&&(Q={val:0,nopad:1})):ie&&(U.val-pe*$(U)<0&&(U={val:0,nopad:1}),Q.val<=0&&(Q={val:1,nopad:1})),pe=(Q.val-U.val-m(R,te.val,ee.val))/(le-$(U)-j(Q)),z=[U.val-pe*$(U),Q.val+pe*j(Q)];return z=D(z,R),R.limitRange&&R.limitRange(),H&&z.reverse(),s.simpleMap(z,R.l2r||Number)}function m(O,R,F){var A=0;if(O.rangebreaks)for(var z=O.locateBreaks(R,F),B=0;B0?F.ppadplus:F.ppadminus)||F.ppad||0),X=Y((O._m>0?F.ppadminus:F.ppadplus)||F.ppad||0),re=Y(F.vpadplus||F.vpad),ie=Y(F.vpadminus||F.vpad);if(!U){if(W=1/0,G=-1/0,ee)for(A=0;A0&&(W=z),z>G&&z-u&&(W=z),z>G&&z=pe;A--)se(A);return{min:L,max:q,opts:F}},concatExtremes:_};var x=3;function _(O,R,F){var A,z,B,$=R._id,j=O._fullData,N=O._fullLayout,E=[],W=[];function G(te,ee){for(A=0;A=F&&(E.extrapad||!$)){j=!1;break}z(R,E.val)&&E.pad<=F&&($||!E.extrapad)&&(O.splice(N,1),N--)}if(j){var W=B&&R===0;O.push({val:R,pad:W?0:F,extrapad:!W&&$})}}function M(O){return f(O)&&Math.abs(O)=R}function P(O,R,F){return R===void 0||F===void 0||(R=O.d2l(R))=N&&(B=N,F=N),$<=N&&($=N,A=N)}}return F=function(E,W){var G=W.autorangeoptions;return G&&G.minallowed!==void 0&&P(W,G.minallowed,G.maxallowed)?G.minallowed:G&&G.clipmin!==void 0&&P(W,G.clipmin,G.clipmax)?Math.max(E,W.d2l(G.clipmin)):E}(F,R),A=function(E,W){var G=W.autorangeoptions;return G&&G.maxallowed!==void 0&&P(W,G.minallowed,G.maxallowed)?G.maxallowed:G&&G.clipmax!==void 0&&P(W,G.clipmin,G.clipmax)?Math.min(E,W.d2l(G.clipmax)):E}(A,R),[F,A]}},23074:function(o){o.exports=function(a,n,l){var f,s;if(l){var u=n==="reversed"||n==="min reversed"||n==="max reversed";f=l[u?1:0],s=l[u?0:1]}var d=a("autorangeoptions.minallowed",s===null?f:void 0),h=a("autorangeoptions.maxallowed",f===null?s:void 0);d===void 0&&a("autorangeoptions.clipmin"),h===void 0&&a("autorangeoptions.clipmax"),a("autorangeoptions.include")}},89298:function(o,a,n){var l=n(39898),f=n(92770),s=n(74875),u=n(73972),d=n(71828),h=d.strTranslate,p=n(63893),g=n(92998),y=n(7901),v=n(91424),m=n(13838),b=n(66287),x=n(50606),_=x.ONEMAXYEAR,w=x.ONEAVGYEAR,k=x.ONEMINYEAR,T=x.ONEMAXQUARTER,M=x.ONEAVGQUARTER,S=x.ONEMINQUARTER,C=x.ONEMAXMONTH,P=x.ONEAVGMONTH,D=x.ONEMINMONTH,O=x.ONEWEEK,R=x.ONEDAY,F=R/2,A=x.ONEHOUR,z=x.ONEMIN,B=x.ONESEC,$=x.MINUS_SIGN,j=x.BADNUM,N={K:"zeroline"},E={K:"gridline",L:"path"},W={K:"minor-gridline",L:"path"},G={K:"tick",L:"path"},L={K:"tick",L:"text"},q={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},H=n(18783),V=H.MID_SHIFT,te=H.CAP_SHIFT,ee=H.LINE_SPACING,U=H.OPPOSITE_SIDE,Q=o.exports={};Q.setConvert=n(21994);var Y=n(4322),Z=n(41675),X=Z.idSort,re=Z.isLinked;Q.id2name=Z.id2name,Q.name2id=Z.name2id,Q.cleanId=Z.cleanId,Q.list=Z.list,Q.listIds=Z.listIds,Q.getFromId=Z.getFromId,Q.getFromTrace=Z.getFromTrace;var ie=n(71739);Q.getAutoRange=ie.getAutoRange,Q.findExtremes=ie.findExtremes;var le=1e-4;function se(ve){var _e=(ve[1]-ve[0])*le;return[ve[0]-_e,ve[1]+_e]}Q.coerceRef=function(ve,_e,Ve,We,Ze,Ge){var Ke=We.charAt(We.length-1),nt=Ve._fullLayout._subplots[Ke+"axis"],st=We+"ref",mt={};return Ze||(Ze=nt[0]||(typeof Ge=="string"?Ge:Ge[0])),Ge||(Ge=Ze),nt=nt.concat(nt.map(function(tt){return tt+" domain"})),mt[st]={valType:"enumerated",values:nt.concat(Ge?typeof Ge=="string"?[Ge]:Ge:[]),dflt:Ze},d.coerce(ve,_e,mt,st)},Q.getRefType=function(ve){return ve===void 0?ve:ve==="paper"?"paper":ve==="pixel"?"pixel":/( domain)$/.test(ve)?"domain":"range"},Q.coercePosition=function(ve,_e,Ve,We,Ze,Ge){var Ke,nt;if(Q.getRefType(We)!=="range")Ke=d.ensureNumber,nt=Ve(Ze,Ge);else{var st=Q.getFromId(_e,We);nt=Ve(Ze,Ge=st.fraction2r(Ge)),Ke=st.cleanPos}ve[Ze]=Ke(nt)},Q.cleanPosition=function(ve,_e,Ve){return(Ve==="paper"||Ve==="pixel"?d.ensureNumber:Q.getFromId(_e,Ve).cleanPos)(ve)},Q.redrawComponents=function(ve,_e){_e=_e||Q.listIds(ve);var Ve=ve._fullLayout;function We(Ze,Ge,Ke,nt){for(var st=u.getComponentMethod(Ze,Ge),mt={},tt=0;tt<_e.length;tt++)for(var Ft=Ve[Q.id2name(_e[tt])][Ke],Vt=0;VtVe&&tt2e-6||((Ve-ve._forceTick0)/ve._minDtick%1+1.000001)%1>2e-6)&&(ve._minDtick=0)):ve._minDtick=0},Q.saveRangeInitial=function(ve,_e){for(var Ve=Q.list(ve,"",!0),We=!1,Ze=0;Ze.3*$t||Lt(qt)||Lt(Et))){var Yt=yt.dtick/2;gt+=gt+Yt.8){var Tt=Number(yt.substr(1));jt.exactYears>.8&&Tt%12==0?gt=Q.tickIncrement(gt,"M6","reverse")+1.5*R:jt.exactMonths>.8?gt=Q.tickIncrement(gt,"M1","reverse")+15.5*R:gt-=F;var Ot=Q.tickIncrement(gt,yt);if(Ot<=qt)return Ot}return gt}(Dt,ve,Nt,nt,Ze)),St=Dt;St<=st;)St=Q.tickIncrement(St,Nt,!1,Ze);return{start:_e.c2r(Dt,0,Ze),end:_e.c2r(St,0,Ze),size:Nt,_dataSpan:st-nt}},Q.prepMinorTicks=function(ve,_e,Ve){if(!_e.minor.dtick){delete ve.dtick;var We,Ze=_e.dtick&&f(_e._tmin);if(Ze){var Ge=Q.tickIncrement(_e._tmin,_e.dtick,!0);We=[_e._tmin,.99*Ge+.01*_e._tmin]}else{var Ke=d.simpleMap(_e.range,_e.r2l);We=[Ke[0],.8*Ke[0]+.2*Ke[1]]}if(ve.range=d.simpleMap(We,_e.l2r),ve._isMinor=!0,Q.prepTicks(ve,Ve),Ze){var nt=f(_e.dtick),st=f(ve.dtick),mt=nt?_e.dtick:+_e.dtick.substring(1),tt=st?ve.dtick:+ve.dtick.substring(1);nt&&st?Oe(mt,tt)?mt===2*O&&tt===2*R&&(ve.dtick=O):mt===2*O&&tt===3*R?ve.dtick=O:mt!==O||(_e._input.minor||{}).nticks?Me(mt/tt,2.5)?ve.dtick=mt/2:ve.dtick=mt:ve.dtick=R:String(_e.dtick).charAt(0)==="M"?st?ve.dtick="M1":Oe(mt,tt)?mt>=12&&tt===2&&(ve.dtick="M3"):ve.dtick=_e.dtick:String(ve.dtick).charAt(0)==="L"?String(_e.dtick).charAt(0)==="L"?Oe(mt,tt)||(ve.dtick=Me(mt/tt,2.5)?_e.dtick/2:_e.dtick):ve.dtick="D1":ve.dtick==="D2"&&+_e.dtick>1&&(ve.dtick=1)}ve.range=_e.range}_e.minor._tick0Init===void 0&&(ve.tick0=_e.tick0)},Q.prepTicks=function(ve,_e){var Ve=d.simpleMap(ve.range,ve.r2l,void 0,void 0,_e);if(ve.tickmode==="auto"||!ve.dtick){var We,Ze=ve.nticks;Ze||(ve.type==="category"||ve.type==="multicategory"?(We=ve.tickfont?d.bigFont(ve.tickfont.size||12):15,Ze=ve._length/We):(We=ve._id.charAt(0)==="y"?40:80,Ze=d.constrain(ve._length/We,4,9)+1),ve._name==="radialaxis"&&(Ze*=2)),ve.minor&&ve.minor.tickmode!=="array"||ve.tickmode==="array"&&(Ze*=100),ve._roughDTick=Math.abs(Ve[1]-Ve[0])/Ze,Q.autoTicks(ve,ve._roughDTick),ve._minDtick>0&&ve.dtick<2*ve._minDtick&&(ve.dtick=ve._minDtick,ve.tick0=ve.l2r(ve._forceTick0))}ve.ticklabelmode==="period"&&function(Ge){var Ke;function nt(){return!(f(Ge.dtick)||Ge.dtick.charAt(0)!=="M")}var st=nt(),mt=Q.getTickFormat(Ge);if(mt){var tt=Ge._dtickInit!==Ge.dtick;/%[fLQsSMX]/.test(mt)||(/%[HI]/.test(mt)?(Ke=A,tt&&!st&&Ge.dtick=(ht?0:1);yt--){var qt=!yt;yt?(ve._dtickInit=ve.dtick,ve._tick0Init=ve.tick0):(ve.minor._dtickInit=ve.minor.dtick,ve.minor._tick0Init=ve.minor.tick0);var Et=yt?ve:d.extendFlat({},ve,ve.minor);if(qt?Q.prepMinorTicks(Et,ve,_e):Q.prepTicks(Et,_e),Et.tickmode!=="array")if(Et.tickmode!=="sync"){var jt=se(st),Tt=jt[0],Ot=jt[1],At=f(Et.dtick),Lt=Ze==="log"&&!(At||Et.dtick.charAt(0)==="L"),Rt=Q.tickFirst(Et,_e);if(yt){if(ve._tmin=Rt,Rt=Ot:Bt<=Ot;Bt=Q.tickIncrement(Bt,Wt,mt,Ge)){if(yt&&$t++,Et.rangebreaks&&!mt){if(Bt=Ft)break}if(Dt.length>Vt||Bt===Xt)break;Xt=Bt;var tn={value:Bt};yt?(Lt&&Bt!==(0|Bt)&&(tn.simpleLabel=!0),Ke>1&&$t%Ke&&(tn.skipLabel=!0),Dt.push(tn)):(tn.minor=!0,gt.push(tn))}}else Dt=[],St=J(ve);else yt?(Dt=[],St=ne(ve)):(gt=[],Nt=ne(ve))}if(ht&&!(ve.minor.ticks==="inside"&&ve.ticks==="outside"||ve.minor.ticks==="outside"&&ve.ticks==="inside")){for(var cn=Dt.map(function(lr){return lr.value}),ln=[],an=0;an0?(oa=ur-1,On=ur):(oa=ur,On=ur);var on,$n=lr[oa].value,Pr=lr[On].value,Ln=Math.abs(Pr-$n),Bn=Ar||Ln,jn=0;Bn>=k?jn=Ln>=k&&Ln<=_?Ln:w:Ar===M&&Bn>=S?jn=Ln>=S&&Ln<=T?Ln:M:Bn>=D?jn=Ln>=D&&Ln<=C?Ln:P:Ar===O&&Bn>=O?jn=O:Bn>=R?jn=R:Ar===F&&Bn>=F?jn=F:Ar===A&&Bn>=A&&(jn=A),jn>=Ln&&(jn=Ln,on=!0);var Un=kr+jn;if(ni.rangebreaks&&jn>0){for(var Lr=0,br=0;br<84;br++){var Mr=(br+.5)/84;ni.maskBreaks(kr*(1-Mr)+Mr*Un)!==j&&Lr++}(jn*=Lr/84)||(lr[ur].drop=!0),on&&Ln>O&&(jn=Ln)}(jn>0||ur===0)&&(lr[ur].periodX=kr+jn/2)}}(Dt,ve,ve._definedDelta),ve.rangebreaks){var Kt=ve._id.charAt(0)==="y",Cn=1;ve.tickmode==="auto"&&(Cn=ve.tickfont?ve.tickfont.size:12);var _n=NaN;for(Ve=Dt.length-1;Ve>-1;Ve--)if(Dt[Ve].drop)Dt.splice(Ve,1);else{Dt[Ve].value=It(Dt[Ve].value,ve);var Pn=ve.c2p(Dt[Ve].value);(Kt?_n>Pn-Cn:_nFt||DnFt&&(xn.periodX=Ft),Dn10||We.substr(5)!=="01-01"?ve._tickround="d":ve._tickround=+_e.substr(1)%12==0?"y":"m";else if(_e>=R&&Ze<=10||_e>=15*R)ve._tickround="d";else if(_e>=z&&Ze<=16||_e>=A)ve._tickround="M";else if(_e>=B&&Ze<=19||_e>=z)ve._tickround="S";else{var Ge=ve.l2r(Ve+_e).replace(/^-/,"").length;ve._tickround=Math.max(Ze,Ge)-20,ve._tickround<0&&(ve._tickround=4)}}else if(f(_e)||_e.charAt(0)==="L"){var Ke=ve.range.map(ve.r2d||Number);f(_e)||(_e=Number(_e.substr(1))),ve._tickround=2-Math.floor(Math.log(_e)/Math.LN10+.01);var nt=Math.max(Math.abs(Ke[0]),Math.abs(Ke[1])),st=Math.floor(Math.log(nt)/Math.LN10+.01),mt=ve.minexponent===void 0?3:ve.minexponent;Math.abs(st)>mt&&(Ie(ve.exponentformat)&&!Be(st)?ve._tickexponent=3*Math.round((st-1)/3):ve._tickexponent=st)}else ve._tickround=null}function De(ve,_e,Ve){var We=ve.tickfont||{};return{x:_e,dx:0,dy:0,text:Ve||"",fontSize:We.size,font:We.family,fontColor:We.color}}Q.autoTicks=function(ve,_e,Ve){var We;function Ze(Ft){return Math.pow(Ft,Math.floor(Math.log(_e)/Math.LN10))}if(ve.type==="date"){ve.tick0=d.dateTick0(ve.calendar,0);var Ge=2*_e;if(Ge>w)_e/=w,We=Ze(10),ve.dtick="M"+12*Ae(_e,We,de);else if(Ge>P)_e/=P,ve.dtick="M"+Ae(_e,1,xe);else if(Ge>R){if(ve.dtick=Ae(_e,R,ve._hasDayOfWeekBreaks?[1,2,7,14]:ge),!Ve){var Ke=Q.getTickFormat(ve),nt=ve.ticklabelmode==="period";nt&&(ve._rawTick0=ve.tick0),/%[uVW]/.test(Ke)?ve.tick0=d.dateTick0(ve.calendar,2):ve.tick0=d.dateTick0(ve.calendar,1),nt&&(ve._dowTick0=ve.tick0)}}else Ge>A?ve.dtick=Ae(_e,A,xe):Ge>z?ve.dtick=Ae(_e,z,ue):Ge>B?ve.dtick=Ae(_e,B,ue):(We=Ze(10),ve.dtick=Ae(_e,We,de))}else if(ve.type==="log"){ve.tick0=0;var st=d.simpleMap(ve.range,ve.r2l);if(ve._isMinor&&(_e*=1.5),_e>.7)ve.dtick=Math.ceil(_e);else if(Math.abs(st[1]-st[0])<1){var mt=1.5*Math.abs((st[1]-st[0])/_e);_e=Math.abs(Math.pow(10,st[1])-Math.pow(10,st[0]))/mt,We=Ze(10),ve.dtick="L"+Ae(_e,We,de)}else ve.dtick=_e>.3?"D2":"D1"}else ve.type==="category"||ve.type==="multicategory"?(ve.tick0=0,ve.dtick=Math.ceil(Math.max(_e,1))):pt(ve)?(ve.tick0=0,We=1,ve.dtick=Ae(_e,We,ke)):(ve.tick0=0,We=Ze(10),ve.dtick=Ae(_e,We,de));if(ve.dtick===0&&(ve.dtick=1),!f(ve.dtick)&&typeof ve.dtick!="string"){var tt=ve.dtick;throw ve.dtick=1,"ax.dtick error: "+String(tt)}},Q.tickIncrement=function(ve,_e,Ve,We){var Ze=Ve?-1:1;if(f(_e))return d.increment(ve,Ze*_e);var Ge=_e.charAt(0),Ke=Ze*Number(_e.substr(1));if(Ge==="M")return d.incrementMonth(ve,Ke,We);if(Ge==="L")return Math.log(Math.pow(10,ve)+Ke)/Math.LN10;if(Ge==="D"){var nt=_e==="D2"?we:be,st=ve+.01*Ze,mt=d.roundUp(d.mod(st,1),nt,Ve);return Math.floor(st)+Math.log(l.round(Math.pow(10,mt),1))/Math.LN10}throw"unrecognized dtick "+String(_e)},Q.tickFirst=function(ve,_e){var Ve=ve.r2l||Number,We=d.simpleMap(ve.range,Ve,void 0,void 0,_e),Ze=We[1] ")}else gt._prevDateHead=Tt,Ot+="
"+Tt;ht.text=Ot}(ve,Ge,Ve,nt):st==="log"?function(gt,ht,yt,qt,Et){var jt=gt.dtick,Tt=ht.x,Ot=gt.tickformat,At=typeof jt=="string"&&jt.charAt(0);if(Et==="never"&&(Et=""),qt&&At!=="L"&&(jt="L3",At="L"),Ot||At==="L")ht.text=Ue(Math.pow(10,Tt),gt,Et,qt);else if(f(jt)||At==="D"&&d.mod(Tt+.01,1)<.1){var Lt=Math.round(Tt),Rt=Math.abs(Lt),$t=gt.exponentformat;$t==="power"||Ie($t)&&Be(Lt)?(ht.text=Lt===0?1:Lt===1?"10":"10"+(Lt>1?"":$)+Rt+"",ht.fontSize*=1.25):($t==="e"||$t==="E")&&Rt>2?ht.text="1"+$t+(Lt>0?"+":$)+Rt:(ht.text=Ue(Math.pow(10,Tt),gt,"","fakehover"),jt==="D1"&>._id.charAt(0)==="y"&&(ht.dy-=ht.fontSize/6))}else{if(At!=="D")throw"unrecognized dtick "+String(jt);ht.text=String(Math.round(Math.pow(10,d.mod(Tt,1)))),ht.fontSize*=.75}if(gt.dtick==="D1"){var Yt=String(ht.text).charAt(0);Yt!=="0"&&Yt!=="1"||(gt._id.charAt(0)==="y"?ht.dx-=ht.fontSize/4:(ht.dy+=ht.fontSize/2,ht.dx+=(gt.range[1]>gt.range[0]?1:-1)*ht.fontSize*(Tt<0?.5:.25)))}}(ve,Ge,0,nt,St):st==="category"?function(gt,ht){var yt=gt._categories[Math.round(ht.x)];yt===void 0&&(yt=""),ht.text=String(yt)}(ve,Ge):st==="multicategory"?function(gt,ht,yt){var qt=Math.round(ht.x),Et=gt._categories[qt]||[],jt=Et[1]===void 0?"":String(Et[1]),Tt=Et[0]===void 0?"":String(Et[0]);yt?ht.text=Tt+" - "+jt:(ht.text=jt,ht.text2=Tt)}(ve,Ge,Ve):pt(ve)?function(gt,ht,yt,qt,Et){if(gt.thetaunit!=="radians"||yt)ht.text=Ue(ht.x,gt,Et,qt);else{var jt=ht.x/180;if(jt===0)ht.text="0";else{var Tt=function(At){function Lt(Xt,Bt){return Math.abs(Xt-Bt)<=1e-6}var Rt=function(Xt){for(var Bt=1;!Lt(Math.round(Xt*Bt)/Bt,Xt);)Bt*=10;return Bt}(At),$t=At*Rt,Yt=Math.abs(function Xt(Bt,Wt){return Lt(Wt,0)?Bt:Xt(Wt,Bt%Wt)}($t,Rt));return[Math.round($t/Yt),Math.round(Rt/Yt)]}(jt);if(Tt[1]>=100)ht.text=Ue(d.deg2rad(ht.x),gt,Et,qt);else{var Ot=ht.x<0;Tt[1]===1?Tt[0]===1?ht.text="π":ht.text=Tt[0]+"π":ht.text=["",Tt[0],"","⁄","",Tt[1],"","π"].join(""),Ot&&(ht.text=$+ht.text)}}}}(ve,Ge,Ve,nt,St):function(gt,ht,yt,qt,Et){Et==="never"?Et="":gt.showexponent==="all"&&Math.abs(ht.x/gt.dtick)<1e-6&&(Et="hide"),ht.text=Ue(ht.x,gt,Et,qt)}(ve,Ge,0,nt,St),We||(ve.tickprefix&&!Vt(ve.showtickprefix)&&(Ge.text=ve.tickprefix+Ge.text),ve.ticksuffix&&!Vt(ve.showticksuffix)&&(Ge.text+=ve.ticksuffix)),ve.labelalias&&ve.labelalias.hasOwnProperty(Ge.text)){var Nt=ve.labelalias[Ge.text];typeof Nt=="string"&&(Ge.text=Nt)}if(ve.tickson==="boundaries"||ve.showdividers){var Dt=function(gt){var ht=ve.l2p(gt);return ht>=0&&ht<=ve._length?gt:null};Ge.xbnd=[Dt(Ge.x-.5),Dt(Ge.x+ve.dtick-.5)]}return Ge},Q.hoverLabelText=function(ve,_e,Ve){Ve&&(ve=d.extendFlat({},ve,{hoverformat:Ve}));var We=Array.isArray(_e)?_e[0]:_e,Ze=Array.isArray(_e)?_e[1]:void 0;if(Ze!==void 0&&Ze!==We)return Q.hoverLabelText(ve,We,Ve)+" - "+Q.hoverLabelText(ve,Ze,Ve);var Ge=ve.type==="log"&&We<=0,Ke=Q.tickText(ve,ve.c2l(Ge?-We:We),"hover").text;return Ge?We===0?"0":$+Ke:Ke};var Re=["f","p","n","μ","m","","k","M","G","T"];function Ie(ve){return ve==="SI"||ve==="B"}function Be(ve){return ve>14||ve<-15}function Ue(ve,_e,Ve,We){var Ze=ve<0,Ge=_e._tickround,Ke=Ve||_e.exponentformat||"B",nt=_e._tickexponent,st=Q.getTickFormat(_e),mt=_e.separatethousands;if(We){var tt={exponentformat:Ke,minexponent:_e.minexponent,dtick:_e.showexponent==="none"?_e.dtick:f(ve)&&Math.abs(ve)||1,range:_e.showexponent==="none"?_e.range.map(_e.r2d):[0,ve||1]};Ee(tt),Ge=(Number(tt._tickround)||0)+4,nt=tt._tickexponent,_e.hoverformat&&(st=_e.hoverformat)}if(st)return _e._numFormat(st)(ve).replace(/-/g,$);var Ft,Vt=Math.pow(10,-Ge)/2;if(Ke==="none"&&(nt=0),(ve=Math.abs(ve))"+Ft+"":Ke==="B"&&nt===9?ve+="B":Ie(Ke)&&(ve+=Re[nt/3+5])),Ze?$+ve:ve}function qe(ve,_e){if(ve){var Ve=Object.keys(q).reduce(function(We,Ze){return _e.indexOf(Ze)!==-1&&q[Ze].forEach(function(Ge){We[Ge]=1}),We},{});Object.keys(ve).forEach(function(We){Ve[We]||(We.length===1?ve[We]=0:delete ve[We])})}}function Ye(ve,_e){for(var Ve=[],We={},Ze=0;Ze<_e.length;Ze++){var Ge=_e[Ze];We[Ge.text2]?We[Ge.text2].push(Ge.x):We[Ge.text2]=[Ge.x]}for(var Ke in We)Ve.push(De(ve,d.interp(We[Ke],.5),Ke));return Ve}function at(ve){return ve.periodX!==void 0?ve.periodX:ve.x}function lt(ve){return[ve.text,ve.x,ve.axInfo,ve.font,ve.fontSize,ve.fontColor].join("_")}function ct(ve){var _e=ve.title.font.size,Ve=(ve.title.text.match(p.BR_TAG_ALL)||[]).length;return ve.title.hasOwnProperty("standoff")?Ve?_e*(te+Ve*ee):_e*te:Ve?_e*(Ve+1)*ee:_e}function bt(ve,_e){var Ve=ve.l2p(_e);return Ve>1&&Ve=Ze.min&&ve=0,ht=tt(Vt,St[1])<=0;return(Nt||gt)&&(Dt||ht)}if(ve.tickformatstops&&ve.tickformatstops.length>0)switch(ve.type){case"date":case"linear":for(_e=0;_e=Ke(Ze)))){Ve=We;break}break;case"log":for(_e=0;_e=0&&Ze.unshift(Ze.splice(mt,1).shift())}});var Ke={false:{left:0,right:0}};return d.syncOrAsync(Ze.map(function(nt){return function(){if(nt){var st=Q.getFromId(ve,nt);Ve||(Ve={}),Ve.axShifts=Ke,Ve.overlayingShiftedAx=Ge;var mt=Q.drawOne(ve,st,Ve);return st._shiftPusher&&wt(st,st._fullDepth||0,Ke,!0),st._r=st.range.slice(),st._rl=d.simpleMap(st._r,st.r2l),mt}}}))},Q.drawOne=function(ve,_e,Ve){var We,Ze,Ge,Ke=(Ve=Ve||{}).axShifts||{},nt=Ve.overlayingShiftedAx||[];_e.setScale();var st=ve._fullLayout,mt=_e._id,tt=mt.charAt(0),Ft=Q.counterLetter(mt),Vt=st._plots[_e._mainSubplot];if(Vt){if(_e._shiftPusher=_e.autoshift||nt.indexOf(_e._id)!==-1||nt.indexOf(_e.overlaying)!==-1,_e._shiftPusher&_e.anchor==="free"){var St=_e.linewidth/2||0;_e.ticks==="inside"&&(St+=_e.ticklen),wt(_e,St,Ke,!0),wt(_e,_e.shift||0,Ke,!1)}Ve.skipTitle===!0&&_e._shift!==void 0||(_e._shift=function(On,on){return On.autoshift?on[On.overlaying][On.side]:On.shift||0}(_e,Ke));var Nt=Vt[tt+"axislayer"],Dt=_e._mainLinePosition,gt=Dt+=_e._shift,ht=_e._mainMirrorPosition,yt=_e._vals=Q.calcTicks(_e),qt=[_e.mirror,gt,ht].join("_");for(We=0;We0?On.bottom-jn:0,Un))));var Lr=0,br=0;if(_e._shiftPusher&&(Lr=Math.max(Un,On.height>0?Ln==="l"?jn-On.left:On.right-jn:0),_e.title.text!==st._dfltTitle[tt]&&(br=(_e._titleStandoff||0)+(_e._titleScoot||0),Ln==="l"&&(br+=ct(_e))),_e._fullDepth=Math.max(Lr,br)),_e.automargin){on={x:0,y:0,r:0,l:0,t:0,b:0};var Mr=[0,1],ja=typeof _e._shift=="number"?_e._shift:0;if(tt==="x"){if(Ln==="b"?on[Ln]=_e._depth:(on[Ln]=_e._depth=Math.max(On.width>0?jn-On.top:0,Un),Mr.reverse()),On.width>0){var _a=On.right-(_e._offset+_e._length);_a>0&&(on.xr=1,on.r=_a);var la=_e._offset-On.left;la>0&&(on.xl=0,on.l=la)}}else if(Ln==="l"?(_e._depth=Math.max(On.height>0?jn-On.left:0,Un),on[Ln]=_e._depth-ja):(_e._depth=Math.max(On.height>0?On.right-jn:0,Un),on[Ln]=_e._depth+ja,Mr.reverse()),On.height>0){var Tn=On.bottom-(_e._offset+_e._length);Tn>0&&(on.yb=0,on.b=Tn);var Dr=_e._offset-On.top;Dr>0&&(on.yt=1,on.t=Dr)}on[Ft]=_e.anchor==="free"?_e.position:_e._anchorAxis.domain[Mr[0]],_e.title.text!==st._dfltTitle[tt]&&(on[Ln]+=ct(_e)+(_e.title.standoff||0)),_e.mirror&&_e.anchor!=="free"&&(($n={x:0,y:0,r:0,l:0,t:0,b:0})[Bn]=_e.linewidth,_e.mirror&&_e.mirror!==!0&&($n[Bn]+=Un),_e.mirror===!0||_e.mirror==="ticks"?$n[Ft]=_e._anchorAxis.domain[Mr[1]]:_e.mirror!=="all"&&_e.mirror!=="allticks"||($n[Ft]=[_e._counterDomainMin,_e._counterDomainMax][Mr[1]]))}kr&&(Pr=u.getComponentMethod("rangeslider","autoMarginOpts")(ve,_e)),typeof _e.automargin=="string"&&(qe(on,_e.automargin),qe($n,_e.automargin)),s.autoMargin(ve,Ne(_e),on),s.autoMargin(ve,Qe(_e),$n),s.autoMargin(ve,it(_e),Pr)}),d.syncOrAsync(Ar)}}function oa(On){var on=mt+(On||"tick");return Et[on]||(Et[on]=function($n,Pr){var Ln,Bn,jn,Un;return $n._selections[Pr].size()?(Ln=1/0,Bn=-1/0,jn=1/0,Un=-1/0,$n._selections[Pr].each(function(){var Lr=ze(this),br=v.bBox(Lr.node().parentNode);Ln=Math.min(Ln,br.top),Bn=Math.max(Bn,br.bottom),jn=Math.min(jn,br.left),Un=Math.max(Un,br.right)})):(Ln=0,Bn=0,jn=0,Un=0),{top:Ln,bottom:Bn,left:jn,right:Un,height:Bn-Ln,width:Un-jn}}(_e,on)),Et[on]}},Q.getTickSigns=function(ve,_e){var Ve=ve._id.charAt(0),We={x:"top",y:"right"}[Ve],Ze=ve.side===We?1:-1,Ge=[-1,1,Ze,-Ze];return(_e?(ve.minor||{}).ticks:ve.ticks)!=="inside"==(Ve==="x")&&(Ge=Ge.map(function(Ke){return-Ke})),ve.side&&Ge.push({l:-1,t:-1,r:1,b:1}[ve.side.charAt(0)]),Ge},Q.makeTransTickFn=function(ve){return ve._id.charAt(0)==="x"?function(_e){return h(ve._offset+ve.l2p(_e.x),0)}:function(_e){return h(0,ve._offset+ve.l2p(_e.x))}},Q.makeTransTickLabelFn=function(ve){var _e=function(Ze){var Ge=Ze.ticklabelposition||"",Ke=function(ht){return Ge.indexOf(ht)!==-1},nt=Ke("top"),st=Ke("left"),mt=Ke("right"),tt=Ke("bottom"),Ft=Ke("inside"),Vt=tt||st||nt||mt;if(!Vt&&!Ft)return[0,0];var St=Ze.side,Nt=Vt?(Ze.tickwidth||0)/2:0,Dt=3,gt=Ze.tickfont?Ze.tickfont.size:12;return(tt||nt)&&(Nt+=gt*te,Dt+=(Ze.linewidth||0)/2),(st||mt)&&(Nt+=(Ze.linewidth||0)/2,Dt+=3),Ft&&St==="top"&&(Dt-=gt*(1-te)),(st||nt)&&(Nt=-Nt),St!=="bottom"&&St!=="right"||(Dt=-Dt),[Vt?Nt:0,Ft?Dt:0]}(ve),Ve=_e[0],We=_e[1];return ve._id.charAt(0)==="x"?function(Ze){return h(Ve+ve._offset+ve.l2p(at(Ze)),We)}:function(Ze){return h(We,Ve+ve._offset+ve.l2p(at(Ze)))}},Q.makeTickPath=function(ve,_e,Ve,We){We||(We={});var Ze=We.minor;if(Ze&&!ve.minor)return"";var Ge=We.len!==void 0?We.len:Ze?ve.minor.ticklen:ve.ticklen,Ke=ve._id.charAt(0),nt=(ve.linewidth||1)/2;return Ke==="x"?"M0,"+(_e+nt*Ve)+"v"+Ge*Ve:"M"+(_e+nt*Ve)+",0h"+Ge*Ve},Q.makeLabelFns=function(ve,_e,Ve){var We=ve.ticklabelposition||"",Ze=function($t){return We.indexOf($t)!==-1},Ge=Ze("top"),Ke=Ze("left"),nt=Ze("right"),st=Ze("bottom")||Ke||Ge||nt,mt=Ze("inside"),tt=We==="inside"&&ve.ticks==="inside"||!mt&&ve.ticks==="outside"&&ve.tickson!=="boundaries",Ft=0,Vt=0,St=tt?ve.ticklen:0;if(mt?St*=-1:st&&(St=0),tt&&(Ft+=St,Ve)){var Nt=d.deg2rad(Ve);Ft=St*Math.cos(Nt)+1,Vt=St*Math.sin(Nt)}ve.showticklabels&&(tt||ve.showline)&&(Ft+=.2*ve.tickfont.size);var Dt,gt,ht,yt,qt,Et={labelStandoff:Ft+=(ve.linewidth||1)/2*(mt?-1:1),labelShift:Vt},jt=0,Tt=ve.side,Ot=ve._id.charAt(0),At=ve.tickangle;if(Ot==="x")yt=(qt=!mt&&Tt==="bottom"||mt&&Tt==="top")?1:-1,mt&&(yt*=-1),Dt=Vt*yt,gt=_e+Ft*yt,ht=qt?1:-.2,Math.abs(At)===90&&(mt?ht+=V:ht=At===-90&&Tt==="bottom"?te:At===90&&Tt==="top"?V:.5,jt=V/2*(At/90)),Et.xFn=function($t){return $t.dx+Dt+jt*$t.fontSize},Et.yFn=function($t){return $t.dy+gt+$t.fontSize*ht},Et.anchorFn=function($t,Yt){if(st){if(Ke)return"end";if(nt)return"start"}return f(Yt)&&Yt!==0&&Yt!==180?Yt*yt<0!==mt?"end":"start":"middle"},Et.heightFn=function($t,Yt,Xt){return Yt<-60||Yt>60?-.5*Xt:ve.side==="top"!==mt?-Xt:0};else if(Ot==="y"){if(yt=(qt=!mt&&Tt==="left"||mt&&Tt==="right")?1:-1,mt&&(yt*=-1),Dt=Ft,gt=Vt*yt,ht=0,mt||Math.abs(At)!==90||(ht=At===-90&&Tt==="left"||At===90&&Tt==="right"?te:.5),mt){var Lt=f(At)?+At:0;if(Lt!==0){var Rt=d.deg2rad(Lt);jt=Math.abs(Math.sin(Rt))*te*yt,ht=0}}Et.xFn=function($t){return $t.dx+_e-(Dt+$t.fontSize*ht)*yt+jt*$t.fontSize},Et.yFn=function($t){return $t.dy+gt+$t.fontSize*V},Et.anchorFn=function($t,Yt){return f(Yt)&&Math.abs(Yt)===90?"middle":qt?"end":"start"},Et.heightFn=function($t,Yt,Xt){return ve.side==="right"&&(Yt*=-1),Yt<-30?-Xt:Yt<30?-.5*Xt:0}}return Et},Q.drawTicks=function(ve,_e,Ve){Ve=Ve||{};var We=_e._id+"tick",Ze=[].concat(_e.minor&&_e.minor.ticks?Ve.vals.filter(function(Ke){return Ke.minor&&!Ke.noTick}):[]).concat(_e.ticks?Ve.vals.filter(function(Ke){return!Ke.minor&&!Ke.noTick}):[]),Ge=Ve.layer.selectAll("path."+We).data(Ze,lt);Ge.exit().remove(),Ge.enter().append("path").classed(We,1).classed("ticks",1).classed("crisp",Ve.crisp!==!1).each(function(Ke){return y.stroke(l.select(this),Ke.minor?_e.minor.tickcolor:_e.tickcolor)}).style("stroke-width",function(Ke){return v.crispRound(ve,Ke.minor?_e.minor.tickwidth:_e.tickwidth,1)+"px"}).attr("d",Ve.path).style("display",null),zt(_e,[G]),Ge.attr("transform",Ve.transFn)},Q.drawGrid=function(ve,_e,Ve){if(Ve=Ve||{},_e.tickmode!=="sync"){var We=_e._id+"grid",Ze=_e.minor&&_e.minor.showgrid,Ge=Ze?Ve.vals.filter(function(ht){return ht.minor}):[],Ke=_e.showgrid?Ve.vals.filter(function(ht){return!ht.minor}):[],nt=Ve.counterAxis;if(nt&&Q.shouldShowZeroLine(ve,_e,nt))for(var st=_e.tickmode==="array",mt=0;mt=0;Nt--){var Dt=Nt?Vt:St;if(Dt){var gt=Dt.selectAll("path."+We).data(Nt?Ke:Ge,lt);gt.exit().remove(),gt.enter().append("path").classed(We,1).classed("crisp",Ve.crisp!==!1),gt.attr("transform",Ve.transFn).attr("d",Ve.path).each(function(ht){return y.stroke(l.select(this),ht.minor?_e.minor.gridcolor:_e.gridcolor||"#ddd")}).style("stroke-dasharray",function(ht){return v.dashStyle(ht.minor?_e.minor.griddash:_e.griddash,ht.minor?_e.minor.gridwidth:_e.gridwidth)}).style("stroke-width",function(ht){return(ht.minor?Ft:_e._gw)+"px"}).style("display",null),typeof Ve.path=="function"&>.attr("d",Ve.path)}}zt(_e,[E,W])}},Q.drawZeroLine=function(ve,_e,Ve){Ve=Ve||Ve;var We=_e._id+"zl",Ze=Q.shouldShowZeroLine(ve,_e,Ve.counterAxis),Ge=Ve.layer.selectAll("path."+We).data(Ze?[{x:0,id:_e._id}]:[]);Ge.exit().remove(),Ge.enter().append("path").classed(We,1).classed("zl",1).classed("crisp",Ve.crisp!==!1).each(function(){Ve.layer.selectAll("path").sort(function(Ke,nt){return X(Ke.id,nt.id)})}),Ge.attr("transform",Ve.transFn).attr("d",Ve.path).call(y.stroke,_e.zerolinecolor||y.defaultLine).style("stroke-width",v.crispRound(ve,_e.zerolinewidth,_e._gw||1)+"px").style("display",null),zt(_e,[N])},Q.drawLabels=function(ve,_e,Ve){Ve=Ve||{};var We=ve._fullLayout,Ze=_e._id,Ge=Ze.charAt(0),Ke=Ve.cls||Ze+"tick",nt=Ve.vals.filter(function(yt){return yt.text}),st=Ve.labelFns,mt=Ve.secondary?0:_e.tickangle,tt=(_e._prevTickAngles||{})[Ke],Ft=Ve.layer.selectAll("g."+Ke).data(_e.showticklabels?nt:[],lt),Vt=[];function St(yt,qt){yt.each(function(Et){var jt=l.select(this),Tt=jt.select(".text-math-group"),Ot=st.anchorFn(Et,qt),At=Ve.transFn.call(jt.node(),Et)+(f(qt)&&+qt!=0?" rotate("+qt+","+st.xFn(Et)+","+(st.yFn(Et)-Et.fontSize/2)+")":""),Lt=p.lineCount(jt),Rt=ee*Et.fontSize,$t=st.heightFn(Et,f(qt)?+qt:0,(Lt-1)*Rt);if($t&&(At+=h(0,$t)),Tt.empty()){var Yt=jt.select("text");Yt.attr({transform:At,"text-anchor":Ot}),Yt.style("opacity",1),_e._adjustTickLabelsOverflow&&_e._adjustTickLabelsOverflow()}else{var Xt=v.bBox(Tt.node()).width*{end:-.5,start:.5}[Ot];Tt.attr("transform",At+h(Xt,0))}})}Ft.enter().append("g").classed(Ke,1).append("text").attr("text-anchor","middle").each(function(yt){var qt=l.select(this),Et=ve._promises.length;qt.call(p.positionText,st.xFn(yt),st.yFn(yt)).call(v.font,yt.font,yt.fontSize,yt.fontColor).text(yt.text).call(p.convertToTspans,ve),ve._promises[Et]?Vt.push(ve._promises.pop().then(function(){St(qt,mt)})):St(qt,mt)}),zt(_e,[L]),Ft.exit().remove(),Ve.repositionOnUpdate&&Ft.each(function(yt){l.select(this).select("text").call(p.positionText,st.xFn(yt),st.yFn(yt))}),_e._adjustTickLabelsOverflow=function(){var yt=_e.ticklabeloverflow;if(yt&&yt!=="allow"){var qt=yt.indexOf("hide")!==-1,Et=_e._id.charAt(0)==="x",jt=0,Tt=Et?ve._fullLayout.width:ve._fullLayout.height;if(yt.indexOf("domain")!==-1){var Ot=d.simpleMap(_e.range,_e.r2l);jt=_e.l2p(Ot[0])+_e._offset,Tt=_e.l2p(Ot[1])+_e._offset}var At=Math.min(jt,Tt),Lt=Math.max(jt,Tt),Rt=_e.side,$t=1/0,Yt=-1/0;for(var Xt in Ft.each(function(tn){var cn=l.select(this);if(cn.select(".text-math-group").empty()){var ln=v.bBox(cn.node()),an=0;Et?(ln.right>Lt||ln.leftLt||ln.top+(_e.tickangle?0:tn.fontSize/4)_e["_visibleLabelMin_"+Ot._id]?Wt.style("display","none"):Lt.K!=="tick"||At||Wt.style("display",null)})})})})},St(Ft,tt+1?tt:mt);var Nt=null;_e._selections&&(_e._selections[Ke]=Ft);var Dt=[function(){return Vt.length&&Promise.all(Vt)}];_e.automargin&&We._redrawFromAutoMarginCount&&tt===90?(Nt=90,Dt.push(function(){St(Ft,tt)})):Dt.push(function(){if(St(Ft,mt),nt.length&&Ge==="x"&&!f(mt)&&(_e.type!=="log"||String(_e.dtick).charAt(0)!=="D")){Nt=0;var yt,qt=0,Et=[];if(Ft.each(function(cn){qt=Math.max(qt,cn.fontSize);var ln=_e.l2p(cn.x),an=ze(this),sn=v.bBox(an.node());Et.push({top:0,bottom:10,height:10,left:ln-sn.width/2,right:ln+sn.width/2+2,width:sn.width+2})}),_e.tickson!=="boundaries"&&!_e.showdividers||Ve.secondary){var jt=nt.length,Tt=Math.abs((nt[jt-1].x-nt[0].x)*_e._m)/(jt-1),Ot=_e.ticklabelposition||"",At=function(cn){return Ot.indexOf(cn)!==-1},Lt=At("top"),Rt=At("left"),$t=At("right"),Yt=At("bottom")||Rt||Lt||$t?(_e.tickwidth||0)+6:0,Xt=Tt<2.5*qt||_e.type==="multicategory"||_e._name==="realaxis";for(yt=0;yt1)for(nt=1;nt2*R}(x,m))return"date";var M=b.autotypenumbers!=="strict";return function(S,C){for(var P=S.length,D=y(P),O=0,R=0,F={},A=0;A2*O}(x,M)?"category":function(S,C){for(var P=S.length,D=0;D=2){var F,A,z="";if(R.length===2){for(F=0;F<2;F++)if(A=S(R[F])){z=w;break}}var B=O("pattern",z);if(B===w)for(F=0;F<2;F++)(A=S(R[F]))&&(P.bounds[F]=R[F]=A-1);if(B)for(F=0;F<2;F++)switch(A=R[F],B){case w:if(!l(A)||(A=+A)!==Math.floor(A)||A<0||A>=7)return void(P.enabled=!1);P.bounds[F]=R[F]=A;break;case k:if(!l(A)||(A=+A)<0||A>24)return void(P.enabled=!1);P.bounds[F]=R[F]=A}if(D.autorange===!1){var $=D.range;if($[0]<$[1]){if(R[0]<$[0]&&R[1]>$[1])return void(P.enabled=!1)}else if(R[0]>$[0]&&R[1]<$[1])return void(P.enabled=!1)}}else{var j=O("values");if(!j||!j.length)return void(P.enabled=!1);O("dvalue")}}}o.exports=function(C,P,D,O,R){var F,A=O.letter,z=O.font||{},B=O.splomStash||{},$=D("visible",!O.visibleDflt),j=P._template||{},N=P.type||j.type||"-";N==="date"&&(f.getComponentMethod("calendars","handleDefaults")(C,P,"calendar",O.calendar),O.noTicklabelmode||(F=D("ticklabelmode")));var E="";O.noTicklabelposition&&N!=="multicategory"||(E=s.coerce(C,P,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:F==="period"?["outside","inside"]:A==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),O.noTicklabeloverflow||D("ticklabeloverflow",E.indexOf("inside")!==-1?"hide past domain":N==="category"||N==="multicategory"?"allow":"hide past div"),_(P,R),x(C,P,D,O),m(C,P,D,O),N==="category"||O.noHover||D("hoverformat");var W=D("color"),G=W!==h.color.dflt?W:z.color,L=B.label||R._dfltTitle[A];if(v(C,P,D,N,O),!$)return P;D("title.text",L),s.coerceFont(D,"title.font",{family:z.family,size:s.bigFont(z.size),color:G}),p(C,P,D,N);var q=O.hasMinor;if(q&&(u.newContainer(P,"minor"),p(C,P,D,N,{isMinor:!0})),y(C,P,D,N,O),g(C,P,D,O),q){var H=O.isMinor;O.isMinor=!0,g(C,P,D,O),O.isMinor=H}b(C,P,D,{dfltColor:W,bgColor:O.bgColor,showGrid:O.showGrid,hasMinor:q,attributes:h}),!q||P.minor.ticks||P.minor.showgrid||delete P.minor,(P.showline||P.ticks)&&D("mirror");var V,te=N==="multicategory";if(O.noTickson||N!=="category"&&!te||!P.ticks&&!P.showgrid||(te&&(V="boundaries"),D("tickson",V)==="boundaries"&&delete P.ticklabelposition),te&&D("showdividers")&&(D("dividercolor"),D("dividerwidth")),N==="date")if(d(C,P,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:T}),P.rangebreaks.length){for(var ee=0;eep?1:-1:+(u.substr(1)||1)-+(d.substr(1)||1)},a.ref2id=function(u){return!!/^[xyz]/.test(u)&&u.split(" ")[0]},a.isLinked=function(u,d){return s(d,u._axisMatchGroups)||s(d,u._axisConstraintGroups)}},15258:function(o){o.exports=function(a,n,l,f){if(n.type==="category"){var s,u=a.categoryarray,d=Array.isArray(u)&&u.length>0;d&&(s="array");var h,p=l("categoryorder",s);p==="array"&&(h=l("categoryarray")),d||p!=="array"||(p=n.categoryorder="trace"),p==="trace"?n._initialCategories=[]:p==="array"?n._initialCategories=h.slice():(h=function(g,y){var v,m,b,x=y.dataAttr||g._id.charAt(0),_={};if(y.axData)v=y.axData;else for(v=[],m=0;mS?C.substr(S):P.substr(M))+D:C+P+k*T:D}function _(k,T){for(var M=T._size,S=M.h/M.w,C={},P=Object.keys(k),D=0;Dp*$)||W){for(M=0;MY&&ieU&&(U=ie);R/=(U-ee)/(2*Q),ee=P.l2r(ee),U=P.l2r(U),P.range=P._input.range=H=0?Math.min(ie,.9):1/(1/Math.max(ie,-.3)+3.222))}function H(ie,le,se,pe,Te){return ie.append("path").attr("class","zoombox").style({fill:le>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",p(se,pe)).attr("d",Te+"Z")}function V(ie,le,se){return ie.append("path").attr("class","zoombox-corners").style({fill:y.background,stroke:y.defaultLine,"stroke-width":1,opacity:0}).attr("transform",p(le,se)).attr("d","M0,0Z")}function te(ie,le,se,pe,Te,Se){ie.attr("d",pe+"M"+se.l+","+se.t+"v"+se.h+"h"+se.w+"v-"+se.h+"h-"+se.w+"Z"),ee(ie,le,Te,Se)}function ee(ie,le,se,pe){se||(ie.transition().style("fill",pe>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),le.transition().style("opacity",1).duration(200))}function U(ie){l.select(ie).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Q(ie){j&&ie.data&&ie._context.showTips&&(f.notifier(f._(ie,"Double-click to zoom back out"),"long"),j=!1)}function Y(ie){var le=Math.floor(Math.min(ie.b-ie.t,ie.r-ie.l,$)/2);return"M"+(ie.l-3.5)+","+(ie.t-.5+le)+"h3v"+-le+"h"+le+"v-3h-"+(le+3)+"ZM"+(ie.r+3.5)+","+(ie.t-.5+le)+"h-3v"+-le+"h"+-le+"v-3h"+(le+3)+"ZM"+(ie.r+3.5)+","+(ie.b+.5-le)+"h-3v"+le+"h"+-le+"v3h"+(le+3)+"ZM"+(ie.l-3.5)+","+(ie.b+.5-le)+"h3v"+le+"h"+le+"v3h-"+(le+3)+"Z"}function Z(ie,le,se,pe,Te){for(var Se,Oe,Me,ce,ye=!1,J={},ne={},de=(Te||{}).xaHash,xe=(Te||{}).yaHash,ue=0;ue=0)At._fullLayout._deactivateShape(At);else{var Lt=At._fullLayout.clickmode;if(U(At),Tt!==2||Ne||gt(),ze)Lt.indexOf("select")>-1&&F(Ot,At,de,xe,le.id,We),Lt.indexOf("event")>-1&&m.click(At,Ot,le.id);else if(Tt===1&&Ne){var Rt=Oe?ye:ce,$t=Oe==="s"||Me==="w"?0:1,Yt=Rt._name+".range["+$t+"]",Xt=function(tn,cn){var ln,an=tn.range[cn],sn=Math.abs(an-tn.range[1-cn]);return tn.type==="date"?an:tn.type==="log"?(ln=Math.ceil(Math.max(0,-Math.log(sn)/Math.LN10))+3,s("."+ln+"g")(Math.pow(10,an))):(ln=Math.floor(Math.log(Math.abs(an))/Math.LN10)-Math.floor(Math.log(sn)/Math.LN10)+4,s("."+String(ln)+"g")(an))}(Rt,$t),Bt="left",Wt="middle";if(Rt.fixedrange)return;Oe?(Wt=Oe==="n"?"top":"bottom",Rt.side==="right"&&(Bt="right")):Me==="e"&&(Bt="right"),At._context.showAxisRangeEntryBoxes&&l.select(kt).call(g.makeEditable,{gd:At,immediate:!0,background:At._fullLayout.paper_bgcolor,text:String(Xt),fill:Rt.tickfont?Rt.tickfont.color:"#444",horizontalAlign:Bt,verticalAlign:Wt}).on("edit",function(tn){var cn=Rt.d2r(tn);cn!==void 0&&h.call("_guiRelayout",At,Yt,cn)})}}}function Ke(Tt,Ot){if(ie._transitioningWithDuration)return!1;var At=Math.max(0,Math.min(be,lt*Tt+Je)),Lt=Math.max(0,Math.min(we,ct*Ot+ut)),Rt=Math.abs(At-Je),$t=Math.abs(Lt-ut);function Yt(){wt="",pt.r=pt.l,pt.t=pt.b,_e.attr("d","M0,0Z")}if(pt.l=Math.min(Je,At),pt.r=Math.max(Je,At),pt.t=Math.min(ut,Lt),pt.b=Math.max(ut,Lt),ke.isSubplotConstrained)Rt>$||$t>$?(wt="xy",Rt/be>$t/we?($t=Rt*we/be,ut>Lt?pt.t=ut-$t:pt.b=ut+$t):(Rt=$t*be/we,Je>At?pt.l=Je-Rt:pt.r=Je+Rt),_e.attr("d",Y(pt))):Yt();else if(Ae.isSubplotConstrained)if(Rt>$||$t>$){wt="xy";var Xt=Math.min(pt.l/be,(we-pt.b)/we),Bt=Math.max(pt.r/be,(we-pt.t)/we);pt.l=Xt*be,pt.r=Bt*be,pt.b=(1-Xt)*we,pt.t=(1-Bt)*we,_e.attr("d",Y(pt))}else Yt();else!De||$t0){var Wt;if(Ae.isSubplotConstrained||!Ee&&De.length===1){for(Wt=0;Wt1&&(Lt.maxallowed!==void 0&&Ie===(Lt.range[0]1&&(Rt.maxallowed!==void 0&&Be===(Rt.range[0]P[1]-.000244140625&&(u.domain=g),f.noneOrAll(s.domain,u.domain,g),u.tickmode==="sync"&&(u.tickmode="auto")}return d("layer"),u}},89426:function(o,a,n){var l=n(59652);o.exports=function(f,s,u,d,h){h||(h={});var p=h.tickSuffixDflt,g=l(f);u("tickprefix")&&u("showtickprefix",g),u("ticksuffix",p)&&u("showticksuffix",g)}},23608:function(o,a,n){var l=n(23074);o.exports=function(f,s,u,d){var h=s._template||{},p=s.type||h.type||"-";u("minallowed"),u("maxallowed");var g,y=u("range"),v=s.getAutorangeDflt(y,d),m=u("autorange",v);!y||(y[0]!==null||y[1]!==null)&&(y[0]!==null&&y[1]!==null||m!=="reversed"&&m!==!0)&&(y[0]===null||m!=="min"&&m!=="max reversed")&&(y[1]===null||m!=="max"&&m!=="min reversed")||(y=void 0,delete s.range,s.autorange=!0,g=!0),g||(m=u("autorange",v=s.getAutorangeDflt(y,d))),m&&(l(u,m,y),p!=="linear"&&p!=="-"||u("rangemode")),s.cleanRange()}},42449:function(o,a,n){var l=n(18783).FROM_BL;o.exports=function(f,s,u){u===void 0&&(u=l[f.constraintoward||"center"]);var d=[f.r2l(f.range[0]),f.r2l(f.range[1])],h=d[0]+(d[1]-d[0])*u;f.range=f._input.range=[f.l2r(h+(d[0]-h)*s),f.l2r(h+(d[1]-h)*s)],f.setScale()}},21994:function(o,a,n){var l=n(39898),f=n(84096).g0,s=n(71828),u=s.numberFormat,d=n(92770),h=s.cleanNumber,p=s.ms2DateTime,g=s.dateTime2ms,y=s.ensureNumber,v=s.isArrayOrTypedArray,m=n(50606),b=m.FP_SAFE,x=m.BADNUM,_=m.LOG_CLIP,w=m.ONEWEEK,k=m.ONEDAY,T=m.ONEHOUR,M=m.ONEMIN,S=m.ONESEC,C=n(41675),P=n(85555),D=P.HOUR_PATTERN,O=P.WEEKDAY_PATTERN;function R(A){return Math.pow(10,A)}function F(A){return A!=null}o.exports=function(A,z){z=z||{};var B=A._id||"x",$=B.charAt(0);function j(Z,X){if(Z>0)return Math.log(Z)/Math.LN10;if(Z<=0&&X&&A.range&&A.range.length===2){var re=A.range[0],ie=A.range[1];return .5*(re+ie-2*_*Math.abs(re-ie))}return x}function N(Z,X,re,ie){if((ie||{}).msUTC&&d(Z))return+Z;var le=g(Z,re||A.calendar);if(le===x){if(!d(Z))return x;Z=+Z;var se=Math.floor(10*s.mod(Z+.05,1)),pe=Math.round(Z-se/10);le=g(new Date(pe))+se/10}return le}function E(Z,X,re){return p(Z,X,re||A.calendar)}function W(Z){return A._categories[Math.round(Z)]}function G(Z){if(F(Z)){if(A._categoriesMap===void 0&&(A._categoriesMap={}),A._categoriesMap[Z]!==void 0)return A._categoriesMap[Z];A._categories.push(typeof Z=="number"?String(Z):Z);var X=A._categories.length-1;return A._categoriesMap[Z]=X,X}return x}function L(Z){if(A._categoriesMap)return A._categoriesMap[Z]}function q(Z){var X=L(Z);return X!==void 0?X:d(Z)?+Z:void 0}function H(Z){return d(Z)?+Z:L(Z)}function V(Z,X,re){return l.round(re+X*Z,2)}function te(Z,X,re){return(Z-re)/X}var ee=function(Z){return d(Z)?V(Z,A._m,A._b):x},U=function(Z){return te(Z,A._m,A._b)};if(A.rangebreaks){var Q=$==="y";ee=function(Z){if(!d(Z))return x;var X=A._rangebreaks.length;if(!X)return V(Z,A._m,A._b);var re=Q;A.range[0]>A.range[1]&&(re=!re);for(var ie=re?-1:1,le=ie*Z,se=0,pe=0;peSe)){se=le<(Te+Se)/2?pe:pe+1;break}se=pe+1}var Oe=A._B[se]||0;return isFinite(Oe)?V(Z,A._m2,Oe):0},U=function(Z){var X=A._rangebreaks.length;if(!X)return te(Z,A._m,A._b);for(var re=0,ie=0;ieA._rangebreaks[ie].pmax&&(re=ie+1);return te(Z,A._m2,A._B[re])}}A.c2l=A.type==="log"?j:y,A.l2c=A.type==="log"?R:y,A.l2p=ee,A.p2l=U,A.c2p=A.type==="log"?function(Z,X){return ee(j(Z,X))}:ee,A.p2c=A.type==="log"?function(Z){return R(U(Z))}:U,["linear","-"].indexOf(A.type)!==-1?(A.d2r=A.r2d=A.d2c=A.r2c=A.d2l=A.r2l=h,A.c2d=A.c2r=A.l2d=A.l2r=y,A.d2p=A.r2p=function(Z){return A.l2p(h(Z))},A.p2d=A.p2r=U,A.cleanPos=y):A.type==="log"?(A.d2r=A.d2l=function(Z,X){return j(h(Z),X)},A.r2d=A.r2c=function(Z){return R(h(Z))},A.d2c=A.r2l=h,A.c2d=A.l2r=y,A.c2r=j,A.l2d=R,A.d2p=function(Z,X){return A.l2p(A.d2r(Z,X))},A.p2d=function(Z){return R(U(Z))},A.r2p=function(Z){return A.l2p(h(Z))},A.p2r=U,A.cleanPos=y):A.type==="date"?(A.d2r=A.r2d=s.identity,A.d2c=A.r2c=A.d2l=A.r2l=N,A.c2d=A.c2r=A.l2d=A.l2r=E,A.d2p=A.r2p=function(Z,X,re){return A.l2p(N(Z,0,re))},A.p2d=A.p2r=function(Z,X,re){return E(U(Z),X,re)},A.cleanPos=function(Z){return s.cleanDate(Z,x,A.calendar)}):A.type==="category"?(A.d2c=A.d2l=G,A.r2d=A.c2d=A.l2d=W,A.d2r=A.d2l_noadd=q,A.r2c=function(Z){var X=H(Z);return X!==void 0?X:A.fraction2r(.5)},A.l2r=A.c2r=y,A.r2l=H,A.d2p=function(Z){return A.l2p(A.r2c(Z))},A.p2d=function(Z){return W(U(Z))},A.r2p=A.d2p,A.p2r=U,A.cleanPos=function(Z){return typeof Z=="string"&&Z!==""?Z:y(Z)}):A.type==="multicategory"&&(A.r2d=A.c2d=A.l2d=W,A.d2r=A.d2l_noadd=q,A.r2c=function(Z){var X=q(Z);return X!==void 0?X:A.fraction2r(.5)},A.r2c_just_indices=L,A.l2r=A.c2r=y,A.r2l=q,A.d2p=function(Z){return A.l2p(A.r2c(Z))},A.p2d=function(Z){return W(U(Z))},A.r2p=A.d2p,A.p2r=U,A.cleanPos=function(Z){return Array.isArray(Z)||typeof Z=="string"&&Z!==""?Z:y(Z)},A.setupMultiCategory=function(Z){var X,re,ie=A._traceIndices,le=A._matchGroup;if(le&&A._categories.length===0){for(var se in le)if(se!==B){var pe=z[C.id2name(se)];ie=ie.concat(pe._traceIndices)}}var Te=[[0,{}],[0,{}]],Se=[];for(X=0;Xpe[1]&&(ie[se?0:1]=re)}},A.cleanRange=function(Z,X){A._cleanRange(Z,X),A.limitRange(Z)},A._cleanRange=function(Z,X){X||(X={}),Z||(Z="range");var re,ie,le=s.nestedProperty(A,Z).get();if(ie=(ie=A.type==="date"?s.dfltRange(A.calendar):$==="y"?P.DFLTRANGEY:A._name==="realaxis"?[0,1]:X.dfltRange||P.DFLTRANGEX).slice(),A.rangemode!=="tozero"&&A.rangemode!=="nonnegative"||(ie[0]=0),le&&le.length===2){var se=le[0]===null,pe=le[1]===null;for(A.type!=="date"||A.autorange||(le[0]=s.cleanDate(le[0],x,A.calendar),le[1]=s.cleanDate(le[1],x,A.calendar)),re=0;re<2;re++)if(A.type==="date"){if(!s.isDateTime(le[re],A.calendar)){A[Z]=ie;break}if(A.r2l(le[0])===A.r2l(le[1])){var Te=s.constrain(A.r2l(le[0]),s.MIN_MS+1e3,s.MAX_MS-1e3);le[0]=A.l2r(Te-1e3),le[1]=A.l2r(Te+1e3);break}}else{if(!d(le[re])){if(se||pe||!d(le[1-re])){A[Z]=ie;break}le[re]=le[1-re]*(re?10:.1)}if(le[re]<-b?le[re]=-b:le[re]>b&&(le[re]=b),le[0]===le[1]){var Se=Math.max(1,Math.abs(1e-6*le[0]));le[0]-=Se,le[1]+=Se}}}else s.nestedProperty(A,Z).set(ie)},A.setScale=function(Z){var X=z._size;if(A.overlaying){var re=C.getFromId({_fullLayout:z},A.overlaying);A.domain=re.domain}var ie=Z&&A._r?"_r":"range",le=A.calendar;A.cleanRange(ie);var se,pe,Te=A.r2l(A[ie][0],le),Se=A.r2l(A[ie][1],le),Oe=$==="y";if(Oe?(A._offset=X.t+(1-A.domain[1])*X.h,A._length=X.h*(A.domain[1]-A.domain[0]),A._m=A._length/(Te-Se),A._b=-A._m*Se):(A._offset=X.l+A.domain[0]*X.w,A._length=X.w*(A.domain[1]-A.domain[0]),A._m=A._length/(Se-Te),A._b=-A._m*Te),A._rangebreaks=[],A._lBreaks=0,A._m2=0,A._B=[],A.rangebreaks&&(A._rangebreaks=A.locateBreaks(Math.min(Te,Se),Math.max(Te,Se)),A._rangebreaks.length)){for(se=0;seSe&&(Me=!Me),Me&&A._rangebreaks.reverse();var ce=Me?-1:1;for(A._m2=ce*A._length/(Math.abs(Se-Te)-A._lBreaks),A._B.push(-A._m2*(Oe?Se:Te)),se=0;seie&&(ie+=7,leie&&(ie+=24,le=re&&le=re&&Z=Ae.min&&(geAe.max&&(Ae.max=be),we=!1)}we&&pe.push({min:ge,max:be})}};for(re=0;reg.duration?(function(){for(var D={},O=0;O rect").call(u.setTranslate,0,0).call(u.setScale,1,1),M.plot.call(u.setTranslate,S._offset,C._offset).call(u.setScale,1,1);var P=M.plot.selectAll(".scatterlayer .trace");P.selectAll(".point").call(u.setPointGroupScale,1,1),P.selectAll(".textpoint").call(u.setTextPointsScale,1,1),P.call(u.hideOutsideRangePoints,M)}function T(M,S){var C=M.plotinfo,P=C.xaxis,D=C.yaxis,O=P._length,R=D._length,F=!!M.xr1,A=!!M.yr1,z=[];if(F){var B=s.simpleMap(M.xr0,P.r2l),$=s.simpleMap(M.xr1,P.r2l),j=B[1]-B[0],N=$[1]-$[0];z[0]=(B[0]*(1-S)+S*$[0]-B[0])/(B[1]-B[0])*O,z[2]=O*(1-S+S*N/j),P.range[0]=P.l2r(B[0]*(1-S)+S*$[0]),P.range[1]=P.l2r(B[1]*(1-S)+S*$[1])}else z[0]=0,z[2]=O;if(A){var E=s.simpleMap(M.yr0,D.r2l),W=s.simpleMap(M.yr1,D.r2l),G=E[1]-E[0],L=W[1]-W[0];z[1]=(E[1]*(1-S)+S*W[1]-E[1])/(E[0]-E[1])*R,z[3]=R*(1-S+S*L/G),D.range[0]=P.l2r(E[0]*(1-S)+S*W[0]),D.range[1]=D.l2r(E[1]*(1-S)+S*W[1])}else z[1]=0,z[3]=R;d.drawOne(h,P,{skipTitle:!0}),d.drawOne(h,D,{skipTitle:!0}),d.redrawComponents(h,[P._id,D._id]);var q=F?O/z[2]:1,H=A?R/z[3]:1,V=F?z[0]:0,te=A?z[1]:0,ee=F?z[0]/z[2]*O:0,U=A?z[1]/z[3]*R:0,Q=P._offset-ee,Y=D._offset-U;C.clipRect.call(u.setTranslate,V,te).call(u.setScale,1/q,1/H),C.plot.call(u.setTranslate,Q,Y).call(u.setScale,q,H),u.setPointGroupScale(C.zoomScalePts,1/q,1/H),u.setTextPointsScale(C.zoomScaleTxt,1/q,1/H)}d.redrawComponents(h)}},951:function(o,a,n){var l=n(73972).traceIs,f=n(4322);function s(d){return{v:"x",h:"y"}[d.orientation||"v"]}function u(d,h){var p=s(d),g=l(d,"box-violin"),y=l(d._fullInput||{},"candlestick");return g&&!y&&h===p&&d[p]===void 0&&d[p+"0"]===void 0}o.exports=function(d,h,p,g){p("autotypenumbers",g.autotypenumbersDflt),p("type",(g.splomStash||{}).type)==="-"&&(function(y,v){if(y.type==="-"){var m,b=y._id,x=b.charAt(0);b.indexOf("scene")!==-1&&(b=x);var _=function(D,O,R){for(var F=0;F0&&(A["_"+R+"axes"]||{})[O]||(A[R+"axis"]||R)===O&&(u(A,R)||(A[R]||[]).length||A[R+"0"]))return A}}(v,b,x);if(_)if(_.type!=="histogram"||x!=={v:"y",h:"x"}[_.orientation||"v"]){var w=x+"calendar",k=_[w],T={noMultiCategory:!l(_,"cartesian")||l(_,"noMultiCategory")};if(_.type==="box"&&_._hasPreCompStats&&x==={h:"x",v:"y"}[_.orientation||"v"]&&(T.noMultiCategory=!0),T.autotypenumbers=y.autotypenumbers,u(_,x)){var M=s(_),S=[];for(m=0;m0?".":"")+m;f.isPlainObject(b)?h(b,g,x,v+1):g(x,m,b)}})}a.manageCommandObserver=function(p,g,y,v){var m={},b=!0;g&&g._commandObserver&&(m=g._commandObserver),m.cache||(m.cache={}),m.lookupTable={};var x=a.hasSimpleAPICommandBindings(p,y,m.lookupTable);if(g&&g._commandObserver){if(x)return m;if(g._commandObserver.remove)return g._commandObserver.remove(),g._commandObserver=null,m}if(x){s(p,x,m.cache),m.check=function(){if(b){var k=s(p,x,m.cache);return k.changed&&v&&m.lookupTable[k.value]!==void 0&&(m.disable(),Promise.resolve(v({value:k.value,type:x.type,prop:x.prop,traces:x.traces,index:m.lookupTable[k.value]})).then(m.enable,m.enable)),k.changed}};for(var _=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],w=0;w<_.length;w++)p._internalOn(_[w],m.check);m.remove=function(){for(var k=0;k<_.length;k++)p._removeInternalListener(_[k],m.check)}}else f.log("Unable to automatically bind plot updates to API command"),m.lookupTable={},m.remove=function(){};return m.disable=function(){b=!1},m.enable=function(){b=!0},g&&(g._commandObserver=m),m},a.hasSimpleAPICommandBindings=function(p,g,y){var v,m,b=g.length;for(v=0;v=q.width-20?(te["text-anchor"]="start",te.x=5):(te["text-anchor"]="end",te.x=q._paper.attr("width")-7),H.attr(te);var ee=H.select(".js-link-to-tool"),U=H.select(".js-link-spacer"),Q=H.select(".js-sourcelinks");L._context.showSources&&L._context.showSources(L),L._context.showLink&&function(Y,Z){Z.text("");var X=Z.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(Y._context.linkText+" »");if(Y._context.sendData)X.on("click",function(){S.sendDataToCloud(Y)});else{var re=window.location.pathname.split("/"),ie=window.location.search;X.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+re[2].split(".")[0]+"/"+re[1]+ie})}}(L,ee),U.text(ee.text()&&Q.text()?" - ":"")}},S.sendDataToCloud=function(L){var q=(window.PLOTLYENV||{}).BASE_URL||L._context.plotlyServerURL;if(q){L.emit("plotly_beforeexport");var H=l.select(L).append("div").attr("id","hiddenform").style("display","none"),V=H.append("form").attr({action:q+"/external",method:"post",target:"_blank"});return V.append("input").attr({type:"text",name:"data"}).node().value=S.graphJson(L,!1,"keepdata"),V.node().submit(),H.remove(),L.emit("plotly_afterexport"),!1}};var D=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],O=["year","month","dayMonth","dayMonthYear"];function R(L,q){var H=L._context.locale;H||(H="en-US");var V=!1,te={};function ee(re){for(var ie=!0,le=0;le1&&J.length>1){for(d.getComponentMethod("grid","sizeDefaults")(U,ee),te=0;te15&&J.length>15&&ee.shapes.length===0&&ee.images.length===0,S.linkSubplots(Y,ee,Q,V),S.cleanPlot(Y,ee,Q,V);var ge=!(!V._has||!V._has("gl2d")),be=!(!ee._has||!ee._has("gl2d")),we=!(!V._has||!V._has("cartesian"))||ge,ke=!(!ee._has||!ee._has("cartesian"))||be;we&&!ke?V._bgLayer.remove():ke&&!we&&(ee._shouldCreateBgLayer=!0),V._zoomlayer&&!L._dragging&&b({_fullLayout:V}),function(Re,Ie){var Be,Ue=[];Ie.meta&&(Be=Ie._meta={meta:Ie.meta,layout:{meta:Ie.meta}});for(var qe=0;qe0){var Z=1-2*U;V=Math.round(Z*V),te=Math.round(Z*te)}}var X=S.layoutAttributes.width.min,re=S.layoutAttributes.height.min;V1,le=!q.height&&Math.abs(H.height-te)>1;(le||ie)&&(ie&&(H.width=V),le&&(H.height=te)),L._initialAutoSize||(L._initialAutoSize={width:V,height:te}),S.sanitizeMargins(H)},S.supplyLayoutModuleDefaults=function(L,q,H,V){var te,ee,U,Q=d.componentsRegistry,Y=q._basePlotModules,Z=d.subplotsRegistry.cartesian;for(te in Q)(U=Q[te]).includeBasePlot&&U.includeBasePlot(L,q);for(var X in Y.length||Y.push(Z),q._has("cartesian")&&(d.getComponentMethod("grid","contentDefaults")(L,q),Z.finalizeSubplots(L,q)),q._subplots)q._subplots[X].sort(g.subplotSort);for(ee=0;ee1&&(H.l/=Te,H.r/=Te)}if(ie){var Se=(H.t+H.b)/ie;Se>1&&(H.t/=Se,H.b/=Se)}var Oe=H.xl!==void 0?H.xl:H.x,Me=H.xr!==void 0?H.xr:H.x,ce=H.yt!==void 0?H.yt:H.y,ye=H.yb!==void 0?H.yb:H.y;le[q]={l:{val:Oe,size:H.l+pe},r:{val:Me,size:H.r+pe},b:{val:ye,size:H.b+pe},t:{val:ce,size:H.t+pe}},se[q]=1}else delete le[q],delete se[q];if(!V._replotting)return S.doAutoMargin(L)}},S.doAutoMargin=function(L){var q=L._fullLayout,H=q.width,V=q.height;q._size||(q._size={}),$(q);var te=q._size,ee=q.margin,U={t:0,b:0,l:0,r:0},Q=g.extendFlat({},te),Y=ee.l,Z=ee.r,X=ee.t,re=ee.b,ie=q._pushmargin,le=q._pushmarginIds,se=q.minreducedwidth,pe=q.minreducedheight;if(ee.autoexpand!==!1){for(var Te in ie)le[Te]||delete ie[Te];var Se=L._fullLayout._reservedMargin;for(var Oe in Se)for(var Me in Se[Oe]){var ce=Se[Oe][Me];U[Me]=Math.max(U[Me],ce)}for(var ye in ie.base={l:{val:0,size:Y},r:{val:1,size:Z},t:{val:1,size:X},b:{val:0,size:re}},U){var J=0;for(var ne in ie)ne!=="base"&&u(ie[ne][ye].size)&&(J=ie[ne][ye].size>J?ie[ne][ye].size:J);var de=Math.max(0,ee[ye]-J);U[ye]=Math.max(0,U[ye]-de)}for(var xe in ie){var ue=ie[xe].l||{},ge=ie[xe].b||{},be=ue.val,we=ue.size,ke=ge.val,Ae=ge.size,Ee=H-U.r-U.l,De=V-U.t-U.b;for(var Re in ie){if(u(we)&&ie[Re].r){var Ie=ie[Re].r.val,Be=ie[Re].r.size;if(Ie>be){var Ue=(we*Ie+(Be-Ee)*be)/(Ie-be),qe=(Be*(1-be)+(we-Ee)*(1-Ie))/(Ie-be);Ue+qe>Y+Z&&(Y=Ue,Z=qe)}}if(u(Ae)&&ie[Re].t){var Ye=ie[Re].t.val,at=ie[Re].t.size;if(Ye>ke){var lt=(Ae*Ye+(at-De)*ke)/(Ye-ke),ct=(at*(1-ke)+(Ae-De)*(1-Ye))/(Ye-ke);lt+ct>re+X&&(re=lt,X=ct)}}}}}var bt=g.constrain(H-ee.l-ee.r,2,se),ze=g.constrain(V-ee.t-ee.b,2,pe),Ne=Math.max(0,H-bt),Qe=Math.max(0,V-ze);if(Ne){var it=(Y+Z)/Ne;it>1&&(Y/=it,Z/=it)}if(Qe){var kt=(re+X)/Qe;kt>1&&(re/=kt,X/=kt)}if(te.l=Math.round(Y)+U.l,te.r=Math.round(Z)+U.r,te.t=Math.round(X)+U.t,te.b=Math.round(re)+U.b,te.p=Math.round(ee.pad),te.w=Math.round(H)-te.l-te.r,te.h=Math.round(V)-te.t-te.b,!q._replotting&&(S.didMarginChange(Q,te)||function(ut){if("_redrawFromAutoMarginCount"in ut._fullLayout)return!1;var pt=m.list(ut,"",!0);for(var It in pt)if(pt[It].autoshift||pt[It].shift)return!0;return!1}(L))){"_redrawFromAutoMarginCount"in q?q._redrawFromAutoMarginCount++:q._redrawFromAutoMarginCount=1;var Je=3*(1+Object.keys(le).length);if(q._redrawFromAutoMarginCount0&&(L._transitioningWithDuration=!0),L._transitionData._interruptCallbacks.push(function(){V=!0}),H.redraw&&L._transitionData._interruptCallbacks.push(function(){return d.call("redraw",L)}),L._transitionData._interruptCallbacks.push(function(){L.emit("plotly_transitioninterrupted",[])});var Q=0,Y=0;function Z(){return Q++,function(){var X;Y++,V||Y!==Q||(X=U,L._transitionData&&(function(re){if(re)for(;re.length;)re.shift()}(L._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(H.redraw)return d.call("redraw",L)}).then(function(){L._transitioning=!1,L._transitioningWithDuration=!1,L.emit("plotly_transitioned",[])}).then(X)))}}H.runFn(Z),setTimeout(Z())})}],ee=g.syncOrAsync(te,L);return ee&&ee.then||(ee=Promise.resolve()),ee.then(function(){return L})}S.didMarginChange=function(L,q){for(var H=0;H1)return!0}return!1},S.graphJson=function(L,q,H,V,te,ee){(te&&q&&!L._fullData||te&&!q&&!L._fullLayout)&&S.supplyDefaults(L);var U=te?L._fullData:L.data,Q=te?L._fullLayout:L.layout,Y=(L._transitionData||{})._frames;function Z(ie,le){if(typeof ie=="function")return le?"_function_":null;if(g.isPlainObject(ie)){var se,pe={};return Object.keys(ie).sort().forEach(function(Te){if(["_","["].indexOf(Te.charAt(0))===-1)if(typeof ie[Te]!="function"){if(H==="keepdata"){if(Te.substr(Te.length-3)==="src")return}else if(H==="keepstream"){if(typeof(se=ie[Te+"src"])=="string"&&se.indexOf(":")>0&&!g.isPlainObject(ie.stream))return}else if(H!=="keepall"&&typeof(se=ie[Te+"src"])=="string"&&se.indexOf(":")>0)return;pe[Te]=Z(ie[Te],le)}else le&&(pe[Te]="_function")}),pe}return Array.isArray(ie)?ie.map(function(Te){return Z(Te,le)}):g.isTypedArray(ie)?g.simpleMap(ie,g.identity):g.isJSDate(ie)?g.ms2DateTimeLocal(+ie):ie}var X={data:(U||[]).map(function(ie){var le=Z(ie);return q&&delete le.fit,le})};if(!q&&(X.layout=Z(Q),te)){var re=Q._size;X.layout.computed={margin:{b:re.b,l:re.l,r:re.r,t:re.t}}}return Y&&(X.frames=Z(Y)),ee&&(X.config=Z(L._context,!0)),V==="object"?X:JSON.stringify(X)},S.modifyFrames=function(L,q){var H,V,te,ee=L._transitionData._frames,U=L._transitionData._frameHash;for(H=0;H=0;ee--)if(ye[ee].enabled){H._indexToPoints=ye[ee]._indexToPoints;break}V&&V.calc&&(ce=V.calc(L,H))}Array.isArray(ce)&&ce[0]||(ce=[{x:v,y:v}]),ce[0].t||(ce[0].t={}),ce[0].trace=H,Z[Oe]=ce}}for(W(U,Q,Y),te=0;te0){for(var h=[],p=0;p=D&&(R.min=0,F.min=0,A.min=0,_.aaxis&&delete _.aaxis.min,_.baxis&&delete _.baxis.min,_.caxis&&delete _.caxis.min)}function x(_,w,k,T){var M=v[w._name];function S(F,A){return s.coerce(_,w,M,F,A)}S("uirevision",T.uirevision),w.type="linear";var C=S("color"),P=C!==M.color.dflt?C:k.font.color,D=w._name.charAt(0).toUpperCase(),O="Component "+D,R=S("title.text",O);w._hovertitle=R===O?R:D,s.coerceFont(S,"title.font",{family:k.font.family,size:s.bigFont(k.font.size),color:P}),S("min"),g(_,w,S,"linear"),h(_,w,S,"linear"),d(_,w,S,"linear"),p(_,w,S,{outerTicks:!0}),S("showticklabels")&&(s.coerceFont(S,"tickfont",{family:k.font.family,size:k.font.size,color:P}),S("tickangle"),S("tickformat")),y(_,w,S,{dfltColor:C,bgColor:k.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:M}),S("hoverformat"),S("layer")}o.exports=function(_,w,k){u(_,w,k,{type:"ternary",attributes:v,handleDefaults:b,font:w.font,paper_bgcolor:w.paper_bgcolor})}},64380:function(o,a,n){var l=n(39898),f=n(84267),s=n(73972),u=n(71828),d=u.strTranslate,h=u._,p=n(7901),g=n(91424),y=n(21994),v=n(1426).extendFlat,m=n(74875),b=n(89298),x=n(28569),_=n(30211),w=n(64505),k=w.freeMode,T=w.rectMode,M=n(92998),S=n(47322).prepSelect,C=n(47322).selectOnClick,P=n(47322).clearOutline,D=n(47322).clearSelectionsCache,O=n(85555);function R(W,G){this.id=W.id,this.graphDiv=W.graphDiv,this.init(G),this.makeFramework(G),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}o.exports=R;var F=R.prototype;F.init=function(W){this.container=W._ternarylayer,this.defs=W._defs,this.layoutId=W._uid,this.traceHash={},this.layers={}},F.plot=function(W,G){var L=this,q=G[L.id],H=G._size;L._hasClipOnAxisFalse=!1;for(var V=0;VA*le?H=(V=le)*A:V=(H=ie)/A,te=X*H/ie,ee=re*V/le,L=G.l+G.w*Y-H/2,q=G.t+G.h*(1-Z)-V/2,U.x0=L,U.y0=q,U.w=H,U.h=V,U.sum=se,U.xaxis={type:"linear",range:[pe+2*Se-se,se-pe-2*Te],domain:[Y-te/2,Y+te/2],_id:"x"},y(U.xaxis,U.graphDiv._fullLayout),U.xaxis.setScale(),U.xaxis.isPtWithinRange=function(be){return be.a>=U.aaxis.range[0]&&be.a<=U.aaxis.range[1]&&be.b>=U.baxis.range[1]&&be.b<=U.baxis.range[0]&&be.c>=U.caxis.range[1]&&be.c<=U.caxis.range[0]},U.yaxis={type:"linear",range:[pe,se-Te-Se],domain:[Z-ee/2,Z+ee/2],_id:"y"},y(U.yaxis,U.graphDiv._fullLayout),U.yaxis.setScale(),U.yaxis.isPtWithinRange=function(){return!0};var Oe=U.yaxis.domain[0],Me=U.aaxis=v({},W.aaxis,{range:[pe,se-Te-Se],side:"left",tickangle:(+W.aaxis.tickangle||0)-30,domain:[Oe,Oe+ee*A],anchor:"free",position:0,_id:"y",_length:H});y(Me,U.graphDiv._fullLayout),Me.setScale();var ce=U.baxis=v({},W.baxis,{range:[se-pe-Se,Te],side:"bottom",domain:U.xaxis.domain,anchor:"free",position:0,_id:"x",_length:H});y(ce,U.graphDiv._fullLayout),ce.setScale();var ye=U.caxis=v({},W.caxis,{range:[se-pe-Te,Se],side:"right",tickangle:(+W.caxis.tickangle||0)+30,domain:[Oe,Oe+ee*A],anchor:"free",position:0,_id:"y",_length:H});y(ye,U.graphDiv._fullLayout),ye.setScale();var J="M"+L+","+(q+V)+"h"+H+"l-"+H/2+",-"+V+"Z";U.clipDef.select("path").attr("d",J),U.layers.plotbg.select("path").attr("d",J);var ne="M0,"+V+"h"+H+"l-"+H/2+",-"+V+"Z";U.clipDefRelative.select("path").attr("d",ne);var de=d(L,q);U.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",de),U.clipDefRelative.select("path").attr("transform",null);var xe=d(L-ce._offset,q+V);U.layers.baxis.attr("transform",xe),U.layers.bgrid.attr("transform",xe);var ue=d(L+H/2,q)+"rotate(30)"+d(0,-Me._offset);U.layers.aaxis.attr("transform",ue),U.layers.agrid.attr("transform",ue);var ge=d(L+H/2,q)+"rotate(-30)"+d(0,-ye._offset);U.layers.caxis.attr("transform",ge),U.layers.cgrid.attr("transform",ge),U.drawAxes(!0),U.layers.aline.select("path").attr("d",Me.showline?"M"+L+","+(q+V)+"l"+H/2+",-"+V:"M0,0").call(p.stroke,Me.linecolor||"#000").style("stroke-width",(Me.linewidth||0)+"px"),U.layers.bline.select("path").attr("d",ce.showline?"M"+L+","+(q+V)+"h"+H:"M0,0").call(p.stroke,ce.linecolor||"#000").style("stroke-width",(ce.linewidth||0)+"px"),U.layers.cline.select("path").attr("d",ye.showline?"M"+(L+H/2)+","+q+"l"+H/2+","+V:"M0,0").call(p.stroke,ye.linecolor||"#000").style("stroke-width",(ye.linewidth||0)+"px"),U.graphDiv._context.staticPlot||U.initInteractions(),g.setClipUrl(U.layers.frontplot,U._hasClipOnAxisFalse?null:U.clipId,U.graphDiv)},F.drawAxes=function(W){var G=this,L=G.graphDiv,q=G.id.substr(7)+"title",H=G.layers,V=G.aaxis,te=G.baxis,ee=G.caxis;if(G.drawAx(V),G.drawAx(te),G.drawAx(ee),W){var U=Math.max(V.showticklabels?V.tickfont.size/2:0,(ee.showticklabels?.75*ee.tickfont.size:0)+(ee.ticks==="outside"?.87*ee.ticklen:0)),Q=(te.showticklabels?te.tickfont.size:0)+(te.ticks==="outside"?te.ticklen:0)+3;H["a-title"]=M.draw(L,"a"+q,{propContainer:V,propName:G.id+".aaxis.title",placeholder:h(L,"Click to enter Component A title"),attributes:{x:G.x0+G.w/2,y:G.y0-V.title.font.size/3-U,"text-anchor":"middle"}}),H["b-title"]=M.draw(L,"b"+q,{propContainer:te,propName:G.id+".baxis.title",placeholder:h(L,"Click to enter Component B title"),attributes:{x:G.x0-Q,y:G.y0+G.h+.83*te.title.font.size+Q,"text-anchor":"middle"}}),H["c-title"]=M.draw(L,"c"+q,{propContainer:ee,propName:G.id+".caxis.title",placeholder:h(L,"Click to enter Component C title"),attributes:{x:G.x0+G.w+Q,y:G.y0+G.h+.83*ee.title.font.size+Q,"text-anchor":"middle"}})}},F.drawAx=function(W){var G,L=this,q=L.graphDiv,H=W._name,V=H.charAt(0),te=W._id,ee=L.layers[H],U=V+"tickLayout",Q=(G=W).ticks+String(G.ticklen)+String(G.showticklabels);L[U]!==Q&&(ee.selectAll("."+te+"tick").remove(),L[U]=Q),W.setScale();var Y=b.calcTicks(W),Z=b.clipEnds(W,Y),X=b.makeTransTickFn(W),re=b.getTickSigns(W)[2],ie=u.deg2rad(30),le=re*(W.linewidth||1)/2,se=re*W.ticklen,pe=L.w,Te=L.h,Se=V==="b"?"M0,"+le+"l"+Math.sin(ie)*se+","+Math.cos(ie)*se:"M"+le+",0l"+Math.cos(ie)*se+","+-Math.sin(ie)*se,Oe={a:"M0,0l"+Te+",-"+pe/2,b:"M0,0l-"+pe/2+",-"+Te,c:"M0,0l-"+Te+","+pe/2}[V];b.drawTicks(q,W,{vals:W.ticks==="inside"?Z:Y,layer:ee,path:Se,transFn:X,crisp:!1}),b.drawGrid(q,W,{vals:Z,layer:L.layers[V+"grid"],path:Oe,transFn:X,crisp:!1}),b.drawLabels(q,W,{vals:Y,layer:ee,transFn:X,labelFns:b.makeLabelFns(W,0,30)})};var z=O.MINZOOM/2+.87,B="m-0.87,.5h"+z+"v3h-"+(z+5.2)+"l"+(z/2+2.6)+",-"+(.87*z+4.5)+"l2.6,1.5l-"+z/2+","+.87*z+"Z",$="m0.87,.5h-"+z+"v3h"+(z+5.2)+"l-"+(z/2+2.6)+",-"+(.87*z+4.5)+"l-2.6,1.5l"+z/2+","+.87*z+"Z",j="m0,1l"+z/2+","+.87*z+"l2.6,-1.5l-"+(z/2+2.6)+",-"+(.87*z+4.5)+"l-"+(z/2+2.6)+","+(.87*z+4.5)+"l2.6,1.5l"+z/2+",-"+.87*z+"Z",N=!0;function E(W){l.select(W).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}F.clearOutline=function(){D(this.dragOptions),P(this.dragOptions.gd)},F.initInteractions=function(){var W,G,L,q,H,V,te,ee,U,Q,Y,Z,X=this,re=X.layers.plotbg.select("path").node(),ie=X.graphDiv,le=ie._fullLayout._zoomlayer;function se(ne){var de={};return de[X.id+".aaxis.min"]=ne.a,de[X.id+".baxis.min"]=ne.b,de[X.id+".caxis.min"]=ne.c,de}function pe(ne,de){var xe=ie._fullLayout.clickmode;E(ie),ne===2&&(ie.emit("plotly_doubleclick",null),s.call("_guiRelayout",ie,se({a:0,b:0,c:0}))),xe.indexOf("select")>-1&&ne===1&&C(de,ie,[X.xaxis],[X.yaxis],X.id,X.dragOptions),xe.indexOf("event")>-1&&_.click(ie,de,X.id)}function Te(ne,de){return 1-de/X.h}function Se(ne,de){return 1-(ne+(X.h-de)/Math.sqrt(3))/X.w}function Oe(ne,de){return(ne-(X.h-de)/Math.sqrt(3))/X.w}function Me(ne,de){var xe=L+ne*W,ue=q+de*G,ge=Math.max(0,Math.min(1,Te(0,q),Te(0,ue))),be=Math.max(0,Math.min(1,Se(L,q),Se(xe,ue))),we=Math.max(0,Math.min(1,Oe(L,q),Oe(xe,ue))),ke=(ge/2+we)*X.w,Ae=(1-ge/2-be)*X.w,Ee=(ke+Ae)/2,De=Ae-ke,Re=(1-ge)*X.h,Ie=Re-De/A;De.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),Z.transition().style("opacity",1).duration(200),Q=!0),ie.emit("plotly_relayouting",se(te))}function ce(){E(ie),te!==H&&(s.call("_guiRelayout",ie,se(te)),N&&ie.data&&ie._context.showTips&&(u.notifier(h(ie,"Double-click to zoom back out"),"long"),N=!1))}function ye(ne,de){var xe=ne/X.xaxis._m,ue=de/X.yaxis._m,ge=[(te={a:H.a-ue,b:H.b+(xe+ue)/2,c:H.c-(xe-ue)/2}).a,te.b,te.c].sort(u.sorterAsc),be=ge.indexOf(te.a),we=ge.indexOf(te.b),ke=ge.indexOf(te.c);ge[0]<0&&(ge[1]+ge[0]/2<0?(ge[2]+=ge[0]+ge[1],ge[0]=ge[1]=0):(ge[2]+=ge[0]/2,ge[1]+=ge[0]/2,ge[0]=0),te={a:ge[be],b:ge[we],c:ge[ke]},de=(H.a-te.a)*X.yaxis._m,ne=(H.c-te.c-H.b+te.b)*X.xaxis._m);var Ae=d(X.x0+ne,X.y0+de);X.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Ae);var Ee=d(-ne,-de);X.clipDefRelative.select("path").attr("transform",Ee),X.aaxis.range=[te.a,X.sum-te.b-te.c],X.baxis.range=[X.sum-te.a-te.c,te.b],X.caxis.range=[X.sum-te.a-te.b,te.c],X.drawAxes(!1),X._hasClipOnAxisFalse&&X.plotContainer.select(".scatterlayer").selectAll(".trace").call(g.hideOutsideRangePoints,X),ie.emit("plotly_relayouting",se(te))}function J(){s.call("_guiRelayout",ie,se(te))}this.dragOptions={element:re,gd:ie,plotinfo:{id:X.id,domain:ie._fullLayout[X.id].domain,xaxis:X.xaxis,yaxis:X.yaxis},subplot:X.id,prepFn:function(ne,de,xe){X.dragOptions.xaxes=[X.xaxis],X.dragOptions.yaxes=[X.yaxis],W=ie._fullLayout._invScaleX,G=ie._fullLayout._invScaleY;var ue=X.dragOptions.dragmode=ie._fullLayout.dragmode;k(ue)?X.dragOptions.minDrag=1:X.dragOptions.minDrag=void 0,ue==="zoom"?(X.dragOptions.moveFn=Me,X.dragOptions.clickFn=pe,X.dragOptions.doneFn=ce,function(ge,be,we){var ke=re.getBoundingClientRect();L=be-ke.left,q=we-ke.top,ie._fullLayout._calcInverseTransform(ie);var Ae=ie._fullLayout._invTransform,Ee=u.apply3DTransform(Ae)(L,q);L=Ee[0],q=Ee[1],H={a:X.aaxis.range[0],b:X.baxis.range[1],c:X.caxis.range[1]},te=H,V=X.aaxis.range[1]-H.a,ee=f(X.graphDiv._fullLayout[X.id].bgcolor).getLuminance(),U="M0,"+X.h+"L"+X.w/2+", 0L"+X.w+","+X.h+"Z",Q=!1,Y=le.append("path").attr("class","zoombox").attr("transform",d(X.x0,X.y0)).style({fill:ee>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",U),Z=le.append("path").attr("class","zoombox-corners").attr("transform",d(X.x0,X.y0)).style({fill:p.background,stroke:p.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),X.clearOutline(ie)}(0,de,xe)):ue==="pan"?(X.dragOptions.moveFn=ye,X.dragOptions.clickFn=pe,X.dragOptions.doneFn=J,H={a:X.aaxis.range[0],b:X.baxis.range[1],c:X.caxis.range[1]},te=H,X.clearOutline(ie)):(T(ue)||k(ue))&&S(ne,de,xe,X.dragOptions,ue)}},re.onmousemove=function(ne){_.hover(ie,ne,X.id),ie._fullLayout._lasthover=re,ie._fullLayout._hoversubplot=X.id},re.onmouseout=function(ne){ie._dragging||x.unhover(ie,ne)},x.init(this.dragOptions)}},73972:function(o,a,n){var l=n(47769),f=n(64213),s=n(75138),u=n(41965),d=n(24401).addStyleRule,h=n(1426),p=n(9012),g=n(10820),y=h.extendFlat,v=h.extendDeepAll;function m(C){var P=C.name,D=C.categories,O=C.meta;if(a.modules[P])l.log("Type "+P+" already registered");else{a.subplotsRegistry[C.basePlotModule.name]||function(N){var E=N.name;if(a.subplotsRegistry[E])l.log("Plot type "+E+" already registered.");else for(var W in w(N),a.subplotsRegistry[E]=N,a.componentsRegistry)M(W,N.name)}(C.basePlotModule);for(var R={},F=0;F-1&&(x[w[g]].title={text:""});for(g=0;g")!==-1?"":F.html(z).text()});return F.remove(),A}(O)).replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(g,"'"),f.isIE()&&(O=(O=(O=O.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("#$2")')).replace(/(\\')/gi,'"')),O}},75341:function(o,a,n){var l=n(71828);o.exports=function(f,s){for(var u=0;uA+R||!l(F))}for(var B=0;Bg))return d}return h!==void 0?h:u.dflt},a.coerceColor=function(u,d,h){return f(d).isValid()?d:h!==void 0?h:u.dflt},a.coerceEnumerated=function(u,d,h){return u.coerceNumber&&(d=+d),u.values.indexOf(d)!==-1?d:h!==void 0?h:u.dflt},a.getValue=function(u,d){var h;return Array.isArray(u)?d0?se+=pe:k<0&&(se-=pe)}return se}function ee(le){var se=k,pe=le.b,Te=te(le);return l.inbox(pe-se,Te-se,z+(Te-se)/(Te-pe)-1)}var U=v[T+"a"],Q=v[M+"a"];P=Math.abs(U.r2c(U.range[1])-U.r2c(U.range[0]));var Y=l.getDistanceFunction(x,S,C,function(le){return(S(le)+C(le))/2});if(l.getClosest(D,Y,v),v.index!==!1&&D[v.index].p!==p){j||(L=function(le){return Math.min(N(le),le.p-R.bargroupwidth/2)},q=function(le){return Math.max(E(le),le.p+R.bargroupwidth/2)});var Z=D[v.index],X=O.base?Z.b+Z.s:Z.s;v[M+"0"]=v[M+"1"]=Q.c2p(Z[M],!0),v[M+"LabelVal"]=X;var re=R.extents[R.extents.round(Z.p)];v[T+"0"]=U.c2p(F?L(Z):re[0],!0),v[T+"1"]=U.c2p(F?q(Z):re[1],!0);var ie=Z.orig_p!==void 0;return v[T+"LabelVal"]=ie?Z.orig_p:Z.p,v.labelLabel=h(U,v[T+"LabelVal"],O[T+"hoverformat"]),v.valueLabel=h(Q,v[M+"LabelVal"],O[M+"hoverformat"]),v.baseLabel=h(Q,Z.b,O[M+"hoverformat"]),v.spikeDistance=(function(le){var se=k,pe=le.b,Te=te(le);return l.inbox(pe-se,Te-se,B+(Te-se)/(Te-pe)-1)}(Z)+function(le){return H(N(le),E(le),B)}(Z))/2,v[T+"Spike"]=U.c2p(Z.p,!0),u(Z,O,v),v.hovertemplate=O.hovertemplate,v}}function y(v,m){var b=m.mcc||v.marker.color,x=m.mlcc||v.marker.line.color,_=d(v,m);return s.opacity(b)?b:s.opacity(x)&&_?x:void 0}o.exports={hoverPoints:function(v,m,b,x,_){var w=g(v,m,b,x,_);if(w){var k=w.cd,T=k[0].trace,M=k[w.index];return w.color=y(T,M),f.getComponentMethod("errorbars","hoverInfo")(M,T,w),[w]}},hoverOnBars:g,getTraceColor:y}},60822:function(o,a,n){o.exports={attributes:n(1486),layoutAttributes:n(43641),supplyDefaults:n(90769).supplyDefaults,crossTraceDefaults:n(90769).crossTraceDefaults,supplyLayoutDefaults:n(13957),calc:n(92290),crossTraceCalc:n(11661).crossTraceCalc,colorbar:n(4898),arraysToCalcdata:n(75341),plot:n(17295).plot,style:n(16688).style,styleOnSelect:n(16688).styleOnSelect,hoverPoints:n(95423).hoverPoints,eventData:n(58065),selectPoints:n(81974),moduleType:"trace",name:"bar",basePlotModule:n(93612),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}},43641:function(o){o.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},13957:function(o,a,n){var l=n(73972),f=n(89298),s=n(71828),u=n(43641);o.exports=function(d,h,p){function g(T,M){return s.coerce(d,h,u,T,M)}for(var y=!1,v=!1,m=!1,b={},x=g("barmode"),_=0;_0}function F(B){return B==="auto"?0:B}function A(B,$){var j=Math.PI/180*$,N=Math.abs(Math.sin(j)),E=Math.abs(Math.cos(j));return{x:B.width*E+B.height*N,y:B.width*N+B.height*E}}function z(B,$,j,N,E,W){var G=!!W.isHorizontal,L=!!W.constrained,q=W.angle||0,H=W.anchor||"end",V=H==="end",te=H==="start",ee=((W.leftToRight||0)+1)/2,U=1-ee,Q=E.width,Y=E.height,Z=Math.abs($-B),X=Math.abs(N-j),re=Z>2*S&&X>2*S?S:0;Z-=2*re,X-=2*re;var ie=F(q);q!=="auto"||Q<=Z&&Y<=X||!(Q>Z||Y>X)||(Q>X||Y>Z)&&Q.01?we:function(De,Re,Ie){return Ie&&De===Re?De:Math.abs(De-Re)>=2?we(De):De>Re?Math.ceil(De):Math.floor(De)};ne=ke(ne,de,re),de=ke(de,ne,re),xe=ke(xe,ue,!re),ue=ke(ue,xe,!re)}var Ae=O(s.ensureSingle(ye,"path"),q,E,W);if(Ae.style("vector-effect",H?"none":"non-scaling-stroke").attr("d",isNaN((de-ne)*(ue-xe))||ge&&B._context.staticPlot?"M0,0Z":"M"+ne+","+xe+"V"+ue+"H"+de+"V"+xe+"Z").call(h.setClipUrl,$.layerClipId,B),!q.uniformtext.mode&&ie){var Ee=h.makePointStyleFns(U);h.singlePointStyle(Se,Ae,U,Ee,B)}(function(De,Re,Ie,Be,Ue,qe,Ye,at,lt,ct,bt){var ze,Ne=Re.xaxis,Qe=Re.yaxis,it=De._fullLayout;function kt(Dt,gt,ht){return s.ensureSingle(Dt,"text").text(gt).attr({class:"bartext bartext-"+ze,"text-anchor":"middle","data-notex":1}).call(h.font,ht).call(u.convertToTspans,De)}var Je=Be[0].trace,ut=Je.orientation==="h",pt=function(Dt,gt,ht,yt,qt){var Et,jt=gt[0].trace;return Et=jt.texttemplate?function(Tt,Ot,At,Lt,Rt){var $t=Ot[0].trace,Yt=s.castOption($t,At,"texttemplate");if(!Yt)return"";var Xt,Bt,Wt,tn,cn=$t.type==="histogram",ln=$t.type==="waterfall",an=$t.type==="funnel",sn=$t.orientation==="h";function Zt(xn){return g(tn,tn.c2l(xn),!0).text}sn?(Xt="y",Bt=Rt,Wt="x",tn=Lt):(Xt="x",Bt=Lt,Wt="y",tn=Rt);var pn,nn=Ot[At],Kt={};Kt.label=nn.p,Kt.labelLabel=Kt[Xt+"Label"]=(pn=nn.p,g(Bt,Bt.c2l(pn),!0).text);var Cn=s.castOption($t,nn.i,"text");(Cn===0||Cn)&&(Kt.text=Cn),Kt.value=nn.s,Kt.valueLabel=Kt[Wt+"Label"]=Zt(nn.s);var _n={};M(_n,$t,nn.i),(cn||_n.x===void 0)&&(_n.x=sn?Kt.value:Kt.label),(cn||_n.y===void 0)&&(_n.y=sn?Kt.label:Kt.value),(cn||_n.xLabel===void 0)&&(_n.xLabel=sn?Kt.valueLabel:Kt.labelLabel),(cn||_n.yLabel===void 0)&&(_n.yLabel=sn?Kt.labelLabel:Kt.valueLabel),ln&&(Kt.delta=+nn.rawS||nn.s,Kt.deltaLabel=Zt(Kt.delta),Kt.final=nn.v,Kt.finalLabel=Zt(Kt.final),Kt.initial=Kt.final-Kt.delta,Kt.initialLabel=Zt(Kt.initial)),an&&(Kt.value=nn.s,Kt.valueLabel=Zt(Kt.value),Kt.percentInitial=nn.begR,Kt.percentInitialLabel=s.formatPercent(nn.begR),Kt.percentPrevious=nn.difR,Kt.percentPreviousLabel=s.formatPercent(nn.difR),Kt.percentTotal=nn.sumR,Kt.percenTotalLabel=s.formatPercent(nn.sumR));var Pn=s.castOption($t,nn.i,"customdata");return Pn&&(Kt.customdata=Pn),s.texttemplateString(Yt,Kt,Tt._d3locale,_n,Kt,$t._meta||{})}(Dt,gt,ht,yt,qt):jt.textinfo?function(Tt,Ot,At,Lt){var Rt=Tt[0].trace,$t=Rt.orientation==="h",Yt=Rt.type==="waterfall",Xt=Rt.type==="funnel";function Bt(Pn){return g($t?At:Lt,+Pn,!0).text}var Wt,tn,cn=Rt.textinfo,ln=Tt[Ot],an=cn.split("+"),sn=[],Zt=function(Pn){return an.indexOf(Pn)!==-1};if(Zt("label")&&sn.push((tn=Tt[Ot].p,g($t?Lt:At,tn,!0).text)),Zt("text")&&((Wt=s.castOption(Rt,ln.i,"text"))===0||Wt)&&sn.push(Wt),Yt){var pn=+ln.rawS||ln.s,nn=ln.v,Kt=nn-pn;Zt("initial")&&sn.push(Bt(Kt)),Zt("delta")&&sn.push(Bt(pn)),Zt("final")&&sn.push(Bt(nn))}if(Xt){Zt("value")&&sn.push(Bt(ln.s));var Cn=0;Zt("percent initial")&&Cn++,Zt("percent previous")&&Cn++,Zt("percent total")&&Cn++;var _n=Cn>1;Zt("percent initial")&&(Wt=s.formatPercent(ln.begR),_n&&(Wt+=" of initial"),sn.push(Wt)),Zt("percent previous")&&(Wt=s.formatPercent(ln.difR),_n&&(Wt+=" of previous"),sn.push(Wt)),Zt("percent total")&&(Wt=s.formatPercent(ln.sumR),_n&&(Wt+=" of total"),sn.push(Wt))}return sn.join("
")}(gt,ht,yt,qt):x.getValue(jt.text,ht),x.coerceString(k,Et)}(it,Be,Ue,Ne,Qe);ze=function(Dt,gt){var ht=x.getValue(Dt.textposition,gt);return x.coerceEnumerated(T,ht)}(Je,Ue);var It=ct.mode==="stack"||ct.mode==="relative",Mt=Be[Ue],zt=!It||Mt._outmost;if(pt&&ze!=="none"&&(!Mt.isBlank&&qe!==Ye&&at!==lt||ze!=="auto"&&ze!=="inside")){var wt=it.font,ve=b.getBarColor(Be[Ue],Je),_e=b.getInsideTextFont(Je,Ue,wt,ve),Ve=b.getOutsideTextFont(Je,Ue,wt),We=Ie.datum();ut?Ne.type==="log"&&We.s0<=0&&(qe=Ne.range[0]0&&nt>0&&(Ke<=mt&&nt<=tt||Ke<=tt&&nt<=mt||(ut?mt>=Ke*(tt/nt):tt>=nt*(mt/Ke)))?ze="inside":(ze="outside",Ze.remove(),Ze=null)):ze="inside"),!Ze){var Ft=(Ze=kt(Ie,pt,st=s.ensureUniformFontSize(De,ze==="outside"?Ve:_e))).attr("transform");if(Ze.attr("transform",""),Ke=(Ge=h.bBox(Ze.node())).width,nt=Ge.height,Ze.attr("transform",Ft),Ke<=0||nt<=0)return void Ze.remove()}var Vt,St=Je.textangle;Vt=ze==="outside"?function(Dt,gt,ht,yt,qt,Et){var jt,Tt=!!Et.isHorizontal,Ot=!!Et.constrained,At=Et.angle||0,Lt=qt.width,Rt=qt.height,$t=Math.abs(gt-Dt),Yt=Math.abs(yt-ht);jt=Tt?Yt>2*S?S:0:$t>2*S?S:0;var Xt=1;Ot&&(Xt=Tt?Math.min(1,Yt/Rt):Math.min(1,$t/Lt));var Bt=F(At),Wt=A(qt,Bt),tn=(Tt?Wt.x:Wt.y)/2,cn=(qt.left+qt.right)/2,ln=(qt.top+qt.bottom)/2,an=(Dt+gt)/2,sn=(ht+yt)/2,Zt=0,pn=0,nn=Tt?D(gt,Dt):D(ht,yt);return Tt?(an=gt-nn*jt,Zt=nn*tn):(sn=yt+nn*jt,pn=-nn*tn),{textX:cn,textY:ln,targetX:an,targetY:sn,anchorX:Zt,anchorY:pn,scale:Xt,rotate:Bt}}(qe,Ye,at,lt,Ge,{isHorizontal:ut,constrained:Je.constraintext==="both"||Je.constraintext==="outside",angle:St}):z(qe,Ye,at,lt,Ge,{isHorizontal:ut,constrained:Je.constraintext==="both"||Je.constraintext==="inside",angle:St,anchor:Je.insidetextanchor}),Vt.fontSize=st.size,v(Je.type==="histogram"?"bar":Je.type,Vt,it),Mt.transform=Vt;var Nt=O(Ze,it,ct,bt);s.setTransormAndDisplay(Nt,Vt)}else Ie.select("text").remove()})(B,$,ye,te,Oe,ne,de,xe,ue,E,W),$.layerClipId&&h.hideOutsideRangePoint(Se,ye.select("text"),G,L,U.xcalendar,U.ycalendar)});var Te=U.cliponaxis===!1;h.setClipUrl(ee,Te?null:$.layerClipId,B)});p.getComponentMethod("errorbars","plot")(B,V,$,E)},toMoveInsideBar:z}},81974:function(o){function a(n,l,f,s,u){var d=l.c2p(s?n.s0:n.p0,!0),h=l.c2p(s?n.s1:n.p1,!0),p=f.c2p(s?n.p0:n.s0,!0),g=f.c2p(s?n.p1:n.s1,!0);return u?[(d+h)/2,(p+g)/2]:s?[h,(p+g)/2]:[(d+h)/2,g]}o.exports=function(n,l){var f,s=n.cd,u=n.xaxis,d=n.yaxis,h=s[0].trace,p=h.type==="funnel",g=h.orientation==="h",y=[];if(l===!1)for(f=0;f1||O.bargap===0&&O.bargroupgap===0&&!R[0].trace.marker.line.width)&&l.select(this).attr("shape-rendering","crispEdges")}),P.selectAll("g.points").each(function(R){b(l.select(this),R[0].trace,C)}),d.getComponentMethod("errorbars","style")(P)},styleTextPoints:x,styleOnSelect:function(C,P,D){var O=P[0].trace;O.selectedpoints?function(R,F,A){s.selectedPointStyle(R.selectAll("path"),F),function(z,B,$){z.each(function(j){var N,E=l.select(this);if(j.selected){N=u.ensureUniformFontSize($,_(E,j,B,$));var W=B.selected.textfont&&B.selected.textfont.color;W&&(N.color=W),s.font(E,N)}else s.selectedTextStyle(E,B)})}(R.selectAll("text"),F,A)}(D,O,C):(b(D,O,C),d.getComponentMethod("errorbars","style")(D))},getInsideTextFont:k,getOutsideTextFont:T,getBarColor:S,resizeText:h}},98340:function(o,a,n){var l=n(7901),f=n(52075).hasColorscale,s=n(1586),u=n(71828).coercePattern;o.exports=function(d,h,p,g,y){var v=p("marker.color",g),m=f(d,"marker");m&&s(d,h,y,p,{prefix:"marker.",cLetter:"c"}),p("marker.line.color",l.defaultLine),f(d,"marker.line")&&s(d,h,y,p,{prefix:"marker.line.",cLetter:"c"}),p("marker.line.width"),p("marker.opacity"),u(p,"marker.pattern",v,m),p("selected.marker.color"),p("unselected.marker.color")}},72597:function(o,a,n){var l=n(39898),f=n(71828);function s(u){return"_"+u+"Text_minsize"}o.exports={recordMinTextSize:function(u,d,h){if(h.uniformtext.mode){var p=s(u),g=h.uniformtext.minsize,y=d.scale*d.fontSize;d.hide=yj.uf};if(T._hasPreCompStats){var Y=T[P],Z=function(Re){return C.d2c((T[Re]||[])[M])},X=1/0,re=-1/0;for(M=0;M=j.q1&&j.q3>=j.med){var le=Z("lowerfence");j.lf=le!==d&&le<=j.q1?le:m(j,E,W);var se=Z("upperfence");j.uf=se!==d&&se>=j.q3?se:b(j,E,W);var pe=Z("mean");j.mean=pe!==d?pe:W?u.mean(E,W):(j.q1+j.q3)/2;var Te=Z("sd");j.sd=pe!==d&&Te>=0?Te:W?u.stdev(E,W,j.mean):j.q3-j.q1,j.lo=x(j),j.uo=_(j);var Se=Z("notchspan");Se=Se!==d&&Se>0?Se:w(j,W),j.ln=j.med-Se,j.un=j.med+Se;var Oe=j.lf,Me=j.uf;T.boxpoints&&E.length&&(Oe=Math.min(Oe,E[0]),Me=Math.max(Me,E[W-1])),T.notched&&(Oe=Math.min(Oe,j.ln),Me=Math.max(Me,j.un)),j.min=Oe,j.max=Me}else{var ce;u.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+j.q1,"median = "+j.med,"q3 = "+j.q3].join(` +`)),ce=j.med!==d?j.med:j.q1!==d?j.q3!==d?(j.q1+j.q3)/2:j.q1:j.q3!==d?j.q3:0,j.med=ce,j.q1=j.q3=ce,j.lf=j.uf=ce,j.mean=j.sd=ce,j.ln=j.un=ce,j.min=j.max=ce}X=Math.min(X,j.min),re=Math.max(re,j.max),j.pts2=N.filter(Q),B.push(j)}}T._extremes[C._id]=f.findExtremes(C,[X,re],{padded:!0})}else{var ye=C.makeCalcdata(T,P),J=function(Re,Ie){for(var Be=Re.length,Ue=new Array(Be+1),qe=0;qe=0&&xe0){var Ae,Ee;(j={}).pos=j[O]=ee[M],N=j.pts=de[M].sort(y),W=(E=j[P]=N.map(v)).length,j.min=E[0],j.max=E[W-1],j.mean=u.mean(E,W),j.sd=u.stdev(E,W,j.mean)*T.sdmultiple,j.med=u.interp(E,.5),W%2&&(we||ke)?(we?(Ae=E.slice(0,W/2),Ee=E.slice(W/2+1)):ke&&(Ae=E.slice(0,W/2+1),Ee=E.slice(W/2)),j.q1=u.interp(Ae,.5),j.q3=u.interp(Ee,.5)):(j.q1=u.interp(E,.25),j.q3=u.interp(E,.75)),j.lf=m(j,E,W),j.uf=b(j,E,W),j.lo=x(j),j.uo=_(j);var De=w(j,W);j.ln=j.med-De,j.un=j.med+De,ue=Math.min(ue,j.ln),ge=Math.max(ge,j.un),j.pts2=N.filter(Q),B.push(j)}T._extremes[C._id]=f.findExtremes(C,T.notched?ye.concat([ue,ge]):ye,{padded:!0})}return function(Re,Ie){if(u.isArrayOrTypedArray(Ie.selectedpoints))for(var Be=0;Be0?(B[0].t={num:F[$],dPos:U,posLetter:O,valLetter:P,labels:{med:h(k,"median:"),min:h(k,"min:"),q1:h(k,"q1:"),q3:h(k,"q3:"),max:h(k,"max:"),mean:T.boxmean==="sd"||T.sizemode==="sd"?h(k,"mean ± σ:").replace("σ",T.sdmultiple===1?"σ":T.sdmultiple+"σ"):h(k,"mean:"),lf:h(k,"lower fence:"),uf:h(k,"upper fence:")}},F[$]++,B):[{t:{empty:!0}}]};var p={text:"tx",hovertext:"htx"};function g(k,T,M){for(var S in p)u.isArrayOrTypedArray(T[S])&&(Array.isArray(M)?u.isArrayOrTypedArray(T[S][M[0]])&&(k[p[S]]=T[S][M[0]][M[1]]):k[p[S]]=T[S][M])}function y(k,T){return k.v-T.v}function v(k){return k.v}function m(k,T,M){return M===0?k.q1:Math.min(k.q1,T[Math.min(u.findBin(2.5*k.q1-1.5*k.q3,T,!0)+1,M-1)])}function b(k,T,M){return M===0?k.q3:Math.max(k.q3,T[Math.max(u.findBin(2.5*k.q3-1.5*k.q1,T),0)])}function x(k){return 4*k.q1-3*k.q3}function _(k){return 4*k.q3-3*k.q1}function w(k,T){return T===0?0:1.57*(k.q3-k.q1)/Math.sqrt(T)}},37188:function(o,a,n){var l=n(89298),f=n(71828),s=n(99082).getAxisGroup,u=["v","h"];function d(h,p,g,y){var v,m,b,x=p.calcdata,_=p._fullLayout,w=y._id,k=w.charAt(0),T=[],M=0;for(v=0;v1,O=1-_[h+"gap"],R=1-_[h+"groupgap"];for(v=0;v0){var ie=N.pointpos,le=N.jitter,se=N.marker.size/2,pe=0;ie+le>=0&&((pe=X*(ie+le))>$?(re=!0,Y=se,U=pe):pe>te&&(Y=se,U=$)),pe<=$&&(U=$);var Te=0;ie-le<=0&&((Te=-X*(ie-le))>j?(re=!0,Z=se,Q=Te):Te>ee&&(Z=se,Q=j)),Te<=j&&(Q=j)}else U=$,Q=j;var Se=new Array(b.length);for(m=0;m0?(D="v",O=F>0?Math.min(z,A):Math.min(A)):F>0?(D="h",O=Math.min(z)):O=0;if(O){m._length=O;var W=b("orientation",D);m._hasPreCompStats?W==="v"&&F===0?(b("x0",0),b("dx",1)):W==="h"&&R===0&&(b("y0",0),b("dy",1)):W==="v"&&F===0?b("x0"):W==="h"&&R===0&&b("y0"),f.getComponentMethod("calendars","handleTraceDefaults")(v,m,["x","y"],x)}else m.visible=!1}function y(v,m,b,x){var _=x.prefix,w=l.coerce2(v,m,p,"marker.outliercolor"),k=b("marker.line.outliercolor"),T="outliers";m._hasPreCompStats?T="all":(w||k)&&(T="suspectedoutliers");var M=b(_+"points",T);M?(b("jitter",M==="all"?.3:0),b("pointpos",M==="all"?-1.5:0),b("marker.symbol"),b("marker.opacity"),b("marker.size"),b("marker.angle"),b("marker.color",m.line.color),b("marker.line.color"),b("marker.line.width"),M==="suspectedoutliers"&&(b("marker.line.outliercolor",m.marker.color),b("marker.line.outlierwidth")),b("selected.marker.color"),b("unselected.marker.color"),b("selected.marker.size"),b("unselected.marker.size"),b("text"),b("hovertext")):delete m.marker;var S=b("hoveron");S!=="all"&&S.indexOf("points")===-1||b("hovertemplate"),l.coerceSelectionMarkerOpacity(m,b)}o.exports={supplyDefaults:function(v,m,b,x){function _(O,R){return l.coerce(v,m,p,O,R)}if(g(v,m,_,x),m.visible!==!1){u(v,m,x,_),_("xhoverformat"),_("yhoverformat");var w=m._hasPreCompStats;w&&(_("lowerfence"),_("upperfence")),_("line.color",(v.marker||{}).color||b),_("line.width"),_("fillcolor",s.addOpacity(m.line.color,.5));var k=!1;if(w){var T=_("mean"),M=_("sd");T&&T.length&&(k=!0,M&&M.length&&(k="sd"))}_("whiskerwidth");var S,C=_("sizemode");C==="quartiles"&&(S=_("boxmean",k)),_("showwhiskers",C==="quartiles"),C!=="sd"&&S!=="sd"||_("sdmultiple"),_("width"),_("quartilemethod");var P=!1;if(w){var D=_("notchspan");D&&D.length&&(P=!0)}else l.validate(v.notchwidth,p.notchwidth)&&(P=!0);_("notched",P)&&_("notchwidth"),y(v,m,_,{prefix:"box"})}},crossTraceDefaults:function(v,m){var b,x;function _(T){return l.coerce(x._input,x,p,T)}for(var w=0;wM.lo&&(E.so=!0)}return P});T.enter().append("path").classed("point",!0),T.exit().remove(),T.call(s.translatePoints,m,b)}function h(p,g,y,v){var m,b,x=g.val,_=g.pos,w=!!_.rangebreaks,k=v.bPos,T=v.bPosPxOffset||0,M=y.boxmean||(y.meanline||{}).visible;Array.isArray(v.bdPos)?(m=v.bdPos[0],b=v.bdPos[1]):(m=v.bdPos,b=v.bdPos);var S=p.selectAll("path.mean").data(y.type==="box"&&y.boxmean||y.type==="violin"&&y.box.visible&&y.meanline.visible?f.identity:[]);S.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),S.exit().remove(),S.each(function(C){var P=_.c2l(C.pos+k,!0),D=_.l2p(P-m)+T,O=_.l2p(P+b)+T,R=w?(D+O)/2:_.l2p(P)+T,F=x.c2p(C.mean,!0),A=x.c2p(C.mean-C.sd,!0),z=x.c2p(C.mean+C.sd,!0);y.orientation==="h"?l.select(this).attr("d","M"+F+","+D+"V"+O+(M==="sd"?"m0,0L"+A+","+R+"L"+F+","+D+"L"+z+","+R+"Z":"")):l.select(this).attr("d","M"+D+","+F+"H"+O+(M==="sd"?"m0,0L"+R+","+A+"L"+D+","+F+"L"+R+","+z+"Z":""))})}o.exports={plot:function(p,g,y,v){var m=p._context.staticPlot,b=g.xaxis,x=g.yaxis;f.makeTraceGroups(v,y,"trace boxes").each(function(_){var w,k,T=l.select(this),M=_[0],S=M.t,C=M.trace;S.wdPos=S.bdPos*C.whiskerwidth,C.visible!==!0||S.empty?T.remove():(C.orientation==="h"?(w=x,k=b):(w=b,k=x),u(T,{pos:w,val:k},C,S,m),d(T,{x:b,y:x},C,S),h(T,{pos:w,val:k},C,S))})},plotBoxAndWhiskers:u,plotPoints:d,plotBoxMean:h}},24626:function(o){o.exports=function(a,n){var l,f,s=a.cd,u=a.xaxis,d=a.yaxis,h=[];if(n===!1)for(l=0;ld.level||d.starts.length&&u===d.level)}break;case"constraint":if(f.prefixBoundary=!1,f.edgepaths.length)return;var h=f.x.length,p=f.y.length,g=-1/0,y=1/0;for(l=0;l":b>g&&(f.prefixBoundary=!0);break;case"<":(bg||f.starts.length&&m===y)&&(f.prefixBoundary=!0);break;case"][":v=Math.min(b[0],b[1]),m=Math.max(b[0],b[1]),vg&&(f.prefixBoundary=!0)}}}},90654:function(o,a,n){var l=n(21081),f=n(86068),s=n(53572);o.exports={min:"zmin",max:"zmax",calc:function(u,d,h){var p=d.contours,g=d.line,y=p.size||1,v=p.coloring,m=f(d,{isColorbar:!0});if(v==="heatmap"){var b=l.extractOpts(d);h._fillgradient=b.reversescale?l.flipScale(b.colorscale):b.colorscale,h._zrange=[b.min,b.max]}else v==="fill"&&(h._fillcolor=m);h._line={color:v==="lines"?m:g.color,width:p.showlines!==!1?g.width:0,dash:g.dash},h._levels={start:p.start,end:s(p),size:y}}}},36914:function(o){o.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},83179:function(o,a,n){var l=n(92770),f=n(14523),s=n(7901),u=s.addOpacity,d=s.opacity,h=n(74808),p=h.CONSTRAINT_REDUCTION,g=h.COMPARISON_OPS2;o.exports=function(y,v,m,b,x,_){var w,k,T,M=v.contours,S=m("contours.operation");M._operation=p[S],function(C,P){var D;g.indexOf(P.operation)===-1?(C("contours.value",[0,1]),Array.isArray(P.value)?P.value.length>2?P.value=P.value.slice(2):P.length===0?P.value=[0,1]:P.length<2?(D=parseFloat(P.value[0]),P.value=[D,D+1]):P.value=[parseFloat(P.value[0]),parseFloat(P.value[1])]:l(P.value)&&(D=parseFloat(P.value),P.value=[D,D+1])):(C("contours.value",0),l(P.value)||(Array.isArray(P.value)?P.value=parseFloat(P.value[0]):P.value=0))}(m,M),S==="="?w=M.showlines=!0:(w=m("contours.showlines"),T=m("fillcolor",u((y.line||{}).color||x,.5))),w&&(k=m("line.color",T&&d(T)?u(v.fillcolor,1):x),m("line.width",2),m("line.dash")),m("line.smoothing"),f(m,b,k,_)}},64237:function(o,a,n){var l=n(74808),f=n(92770);function s(h,p){var g,y=Array.isArray(p);function v(m){return f(m)?+m:null}return l.COMPARISON_OPS2.indexOf(h)!==-1?g=v(y?p[0]:p):l.INTERVAL_OPS.indexOf(h)!==-1?g=y?[v(p[0]),v(p[1])]:[v(p),v(p)]:l.SET_OPS.indexOf(h)!==-1&&(g=y?p.map(v):[v(p)]),g}function u(h){return function(p){p=s(h,p);var g=Math.min(p[0],p[1]),y=Math.max(p[0],p[1]);return{start:g,end:y,size:y-g}}}function d(h){return function(p){return{start:p=s(h,p),end:1/0,size:1/0}}}o.exports={"[]":u("[]"),"][":u("]["),">":d(">"),"<":d("<"),"=":d("=")}},67217:function(o){o.exports=function(a,n,l,f){var s=f("contours.start"),u=f("contours.end"),d=s===!1||u===!1,h=l("contours.size");!(d?n.autocontour=!0:l("autocontour",!1))&&h||l("ncontours")}},84857:function(o,a,n){var l=n(71828);function f(s){return l.extendFlat({},s,{edgepaths:l.extendDeep([],s.edgepaths),paths:l.extendDeep([],s.paths),starts:l.extendDeep([],s.starts)})}o.exports=function(s,u){var d,h,p,g=function(m){return m.reverse()},y=function(m){return m};switch(u){case"=":case"<":return s;case">":for(s.length!==1&&l.warn("Contour data invalid for the specified inequality operation."),h=s[0],d=0;d1e3){l.warn("Too many contours, clipping at 1000",u);break}return y}},53572:function(o){o.exports=function(a){return a.end+a.size/1e6}},81696:function(o,a,n){var l=n(71828),f=n(36914);function s(h,p,g,y){return Math.abs(h[0]-p[0])20&&re?X===208||X===1114?le=ie[0]===0?1:-1:se=ie[1]===0?1:-1:f.BOTTOMSTART.indexOf(X)!==-1?se=1:f.LEFTSTART.indexOf(X)!==-1?le=1:f.TOPSTART.indexOf(X)!==-1?se=-1:le=-1,[le,se]}(x,g,p),w=[d(h,p,[-_[0],-_[1]])],k=h.z.length,T=h.z[0].length,M=p.slice(),S=_.slice();for(m=0;m<1e4;m++){if(x>20?(x=f.CHOOSESADDLE[x][(_[0]||_[1])<0?0:1],h.crossings[b]=f.SADDLEREMAINDER[x]):delete h.crossings[b],!(_=f.NEWDELTA[x])){l.log("Found bad marching index:",x,p,h.level);break}w.push(d(h,p,_)),p[0]+=_[0],p[1]+=_[1],b=p.join(","),s(w[w.length-1],w[w.length-2],y,v)&&w.pop();var C=_[0]&&(p[0]<0||p[0]>T-2)||_[1]&&(p[1]<0||p[1]>k-2);if(p[0]===M[0]&&p[1]===M[1]&&_[0]===S[0]&&_[1]===S[1]||g&&C)break;x=h.crossings[b]}m===1e4&&l.log("Infinite loop in contour?");var P,D,O,R,F,A,z,B,$,j,N,E,W,G,L,q=s(w[0],w[w.length-1],y,v),H=0,V=.2*h.smoothing,te=[],ee=0;for(m=1;m=ee;m--)if((P=te[m])=ee&&P+te[D]B&&$--,h.edgepaths[$]=N.concat(w,j));break}Z||(h.edgepaths[B]=w.concat(j))}for(B=0;B=S)&&(h<=M&&(h=M),p>=S&&(p=S),y=Math.floor((p-h)/g)+1,v=0),x=0;xM&&(k.unshift(M),T.unshift(T[0])),k[k.length-1]s?0:1)+(u[0][1]>s?0:2)+(u[1][1]>s?0:4)+(u[1][0]>s?0:8);return d===5||d===10?s>(u[0][0]+u[0][1]+u[1][0]+u[1][1])/4?d===5?713:1114:d===5?104:208:d===15?0:d}o.exports=function(s){var u,d,h,p,g,y,v,m,b,x=s[0].z,_=x.length,w=x[0].length,k=_===2||w===2;for(d=0;d<_-1;d++)for(p=[],d===0&&(p=p.concat(l.BOTTOMSTART)),d===_-2&&(p=p.concat(l.TOPSTART)),u=0;u=0&&(D=L,R=F):Math.abs(P[1]-D[1])<.01?Math.abs(P[1]-L[1])<.01&&(L[0]-P[0])*(D[0]-L[0])>=0&&(D=L,R=F):f.log("endpt to newendpt is not vert. or horz.",P,D,L)}if(P=D,R>=0)break;B+="L"+D}if(R===S.edgepaths.length){f.log("unclosed perimeter path");break}$=R,(N=j.indexOf($)===-1)&&($=j[0],B+="Z")}for($=0;$D.center?D.right-F:F-D.left)/(B+Math.abs(Math.sin(z)*R)),N=(A>D.middle?D.bottom-A:A-D.top)/(Math.abs($)+Math.cos(z)*R);if(j<1||N<1)return 1/0;var E=w.EDGECOST*(1/(j-1)+1/(N-1));E+=w.ANGLECOST*z*z;for(var W=F-B,G=A-$,L=F+B,q=A+$,H=0;H2*w.MAXCOST)break;N&&(F/=2),A=(R=z-F/2)+1.5*F}if(j<=w.MAXCOST)return B},a.addLabelData=function(S,C,P,D){var O=C.fontSize,R=C.width+O/3,F=Math.max(0,C.height-O/3),A=S.x,z=S.y,B=S.theta,$=Math.sin(B),j=Math.cos(B),N=function(W,G){return[A+W*j-G*$,z+W*$+G*j]},E=[N(-R/2,-F/2),N(-R/2,F/2),N(R/2,F/2),N(R/2,-F/2)];P.push({text:C.text,x:A,y:z,dy:C.dy,theta:B,level:C.level,width:R,height:F}),D.push(E)},a.drawLabels=function(S,C,P,D,O){var R=S.selectAll("text").data(C,function(z){return z.text+","+z.x+","+z.y+","+z.theta});if(R.exit().remove(),R.enter().append("text").attr({"data-notex":1,"text-anchor":"middle"}).each(function(z){var B=z.x+Math.sin(z.theta)*z.dy,$=z.y-Math.cos(z.theta)*z.dy;l.select(this).text(z.text).attr({x:B,y:$,transform:"rotate("+180*z.theta/Math.PI+" "+B+" "+$+")"}).call(d.convertToTspans,P)}),O){for(var F="",A=0;Ah.end&&(h.start=h.end=(h.start+h.end)/2),u._input.contours||(u._input.contours={}),f.extendFlat(u._input.contours,{start:h.start,end:h.end,size:h.size}),u._input.autocontour=!0}else if(h.type!=="constraint"){var v,m=h.start,b=h.end,x=u._input.contours;m>b&&(h.start=x.start=b,b=h.end=x.end=m,m=h.start),h.size>0||(v=m===b?1:s(m,b,u.ncontours).dtick,x.size=h.size=v)}}},84426:function(o,a,n){var l=n(39898),f=n(91424),s=n(70035),u=n(86068);o.exports=function(d){var h=l.select(d).selectAll("g.contour");h.style("opacity",function(p){return p[0].trace.opacity}),h.each(function(p){var g=l.select(this),y=p[0].trace,v=y.contours,m=y.line,b=v.size||1,x=v.start,_=v.type==="constraint",w=!_&&v.coloring==="lines",k=!_&&v.coloring==="fill",T=w||k?u(y):null;g.selectAll("g.contourlevel").each(function(C){l.select(this).selectAll("path").call(f.lineGroupStyle,m.width,w?T(C.level):m.color,m.dash)});var M=v.labelfont;if(g.selectAll("g.contourlabels text").each(function(C){f.font(l.select(this),{family:M.family,size:M.size,color:M.color||(w?T(C.level):m.color)})}),_)g.selectAll("g.contourfill path").style("fill",y.fillcolor);else if(k){var S;g.selectAll("g.contourfill path").style("fill",function(C){return S===void 0&&(S=C.level),T(C.level+.5*b)}),S===void 0&&(S=x),g.selectAll("g.contourbg path").style("fill",T(S-.5*b))}}),s(d)}},8724:function(o,a,n){var l=n(1586),f=n(14523);o.exports=function(s,u,d,h,p){var g,y=d("contours.coloring"),v="";y==="fill"&&(g=d("contours.showlines")),g!==!1&&(y!=="lines"&&(v=d("line.color","#000")),d("line.width",.5),d("line.dash")),y!=="none"&&(s.showlegend!==!0&&(u.showlegend=!1),u._dfltShowLegend=!1,l(s,u,h,d,{prefix:"",cLetter:"z"})),d("line.smoothing"),f(d,h,v,p)}},21606:function(o,a,n){var l=n(82196),f=n(9012),s=n(41940),u=n(12663).axisHoverFormat,d=n(5386).fF,h=n(5386).si,p=n(50693),g=n(1426).extendFlat;o.exports=g({z:{valType:"data_array",editType:"calc"},x:g({},l.x,{impliedEdits:{xtype:"array"}}),x0:g({},l.x0,{impliedEdits:{xtype:"scaled"}}),dx:g({},l.dx,{impliedEdits:{xtype:"scaled"}}),y:g({},l.y,{impliedEdits:{ytype:"array"}}),y0:g({},l.y0,{impliedEdits:{ytype:"scaled"}}),dy:g({},l.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:g({},l.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:g({},l.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:g({},l.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:g({},l.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:g({},l.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:g({},l.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:u("x"),yhoverformat:u("y"),zhoverformat:u("z",1),hovertemplate:d(),texttemplate:h({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:s({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:g({},f.showlegend,{dflt:!1})},{transforms:void 0},p("",{cLetter:"z",autoColorDflt:!1}))},90757:function(o,a,n){var l=n(73972),f=n(71828),s=n(89298),u=n(42973),d=n(17562),h=n(78803),p=n(68296),g=n(4742),y=n(824),v=n(43907),m=n(70769),b=n(50606).BADNUM;function x(_){for(var w=[],k=_.length,T=0;T1){var Z=(Y[Y.length-1]-Y[0])/(Y.length-1),X=Math.abs(Z/100);for(F=0;FX)return!1}return!0}(z.rangebreaks||B.rangebreaks)&&(R=function(Y,Z,X){for(var re=[],ie=-1,le=0;le=0;p--)(g=((b[[(u=(h=x[p])[0])-1,d=h[1]]]||k)[2]+(b[[u+1,d]]||k)[2]+(b[[u,d-1]]||k)[2]+(b[[u,d+1]]||k)[2])/20)&&(y[h]=[u,d,g],x.splice(p,1),v=!0);if(!v)throw"findEmpties iterated with no new neighbors";for(h in y)b[h]=y[h],m.push(y[h])}return m.sort(function(M,S){return S[2]-M[2]})}},46248:function(o,a,n){var l=n(30211),f=n(71828),s=n(89298),u=n(21081).extractOpts;o.exports=function(d,h,p,g,y){y||(y={});var v,m,b,x,_=y.isContour,w=d.cd[0],k=w.trace,T=d.xa,M=d.ya,S=w.x,C=w.y,P=w.z,D=w.xCenter,O=w.yCenter,R=w.zmask,F=k.zhoverformat,A=S,z=C;if(d.index!==!1){try{b=Math.round(d.index[1]),x=Math.round(d.index[0])}catch{return void f.error("Error hovering on heatmap, pointNumber must be [row,col], found:",d.index)}if(b<0||b>=P[0].length||x<0||x>P.length)return}else{if(l.inbox(h-S[0],h-S[S.length-1],0)>0||l.inbox(p-C[0],p-C[C.length-1],0)>0)return;if(_){var B;for(A=[2*S[0]-S[1]],B=1;BS&&(P=Math.max(P,Math.abs(d[y][v]-M)/(C-S))))}return P}o.exports=function(d,h){var p,g=1;for(u(d,h),p=0;p.01;p++)g=u(d,h,s(g));return g>.01&&l.log("interp2d didn't converge quickly",g),d}},58623:function(o,a,n){var l=n(71828);o.exports=function(f,s){f("texttemplate");var u=l.extendFlat({},s.font,{color:"auto",size:"auto"});l.coerceFont(f,"textfont",u)}},70769:function(o,a,n){var l=n(73972),f=n(71828).isArrayOrTypedArray;o.exports=function(s,u,d,h,p,g){var y,v,m,b=[],x=l.traceIs(s,"contour"),_=l.traceIs(s,"histogram"),w=l.traceIs(s,"gl2d");if(f(u)&&u.length>1&&!_&&g.type!=="category"){var k=u.length;if(!(k<=p))return x?u.slice(0,p):u.slice(0,p+1);if(x||w)b=u.slice(0,p);else if(p===1)b=[u[0]-.5,u[0]+.5];else{for(b=[1.5*u[0]-.5*u[1]],m=1;m0;)j=A.c2p(Y[G]),G--;for(j<$&&(N=j,j=$,$=N,Te=!0),G=0;E===void 0&&G0;)W=z.c2p(Z[G]),G--;W=A._length||j<=0||E>=z._length||W<=0)return H.selectAll("image").data([]).exit().remove(),void M(H);Oe==="fast"?(ce=pe,ye=se):(ce=J,ye=ne);var de=document.createElement("canvas");de.width=ce,de.height=ye;var xe,ue,ge=de.getContext("2d",{willReadFrequently:!0}),be=m(te,{noNumericCheck:!0,returnArray:!0});Oe==="fast"?(xe=Te?function(pn){return pe-1-pn}:h.identity,ue=Se?function(pn){return se-1-pn}:h.identity):(xe=function(pn){return h.constrain(Math.round(A.c2p(Y[pn])-$),0,J)},ue=function(pn){return h.constrain(Math.round(z.c2p(Z[pn])-E),0,ne)});var we,ke,Ae,Ee,De=ue(0),Re=[De,De],Ie=Te?0:1,Be=Se?0:1,Ue=0,qe=0,Ye=0,at=0;function lt(pn,nn){if(pn!==void 0){var Kt=be(pn);return Kt[0]=Math.round(Kt[0]),Kt[1]=Math.round(Kt[1]),Kt[2]=Math.round(Kt[2]),Ue+=nn,qe+=Kt[0]*nn,Ye+=Kt[1]*nn,at+=Kt[2]*nn,Kt}return[0,0,0,0]}function ct(pn,nn,Kt,Cn){var _n=pn[Kt.bin0];if(_n===void 0)return lt(void 0,1);var Pn,xn=pn[Kt.bin1],Dn=nn[Kt.bin0],tr=nn[Kt.bin1],ia=xn-_n||0,fa=Dn-_n||0;return Pn=xn===void 0?tr===void 0?0:Dn===void 0?2*(tr-_n):2*(2*tr-Dn-_n)/3:tr===void 0?Dn===void 0?0:2*(2*_n-xn-Dn)/3:Dn===void 0?2*(2*tr-xn-_n)/3:tr+_n-xn-Dn,lt(_n+Kt.frac*ia+Cn.frac*(fa+Kt.frac*Pn))}if(Oe!=="default"){var bt,ze=0;try{bt=new Uint8Array(ce*ye*4)}catch{bt=new Array(ce*ye*4)}if(Oe==="smooth"){var Ne,Qe,it,kt=X||Y,Je=re||Z,ut=new Array(kt.length),pt=new Array(Je.length),It=new Array(J),Mt=X?C:S,zt=re?C:S;for(G=0;Ggt||gt>z._length))for(L=Vt;Lyt||yt>A._length)){var qt=g({x:ht,y:Dt},te,D._fullLayout);qt.x=ht,qt.y=Dt;var Et=V.z[G][L];Et===void 0?(qt.z="",qt.zLabel=""):(qt.z=Et,qt.zLabel=d.tickText(st,Et,"hover").text);var jt=V.text&&V.text[G]&&V.text[G][L];jt!==void 0&&jt!==!1||(jt=""),qt.text=jt;var Tt=h.texttemplateString(Ke,qt,D._fullLayout._d3locale,qt,te._meta||{});if(Tt){var Ot=Tt.split("
"),At=Ot.length,Lt=0;for(q=0;q0&&(S=!0);for(var D=0;Dh){var p=h-u[f];return u[f]=h,p}}return 0},max:function(f,s,u,d){var h=d[s];if(l(h)){if(h=Number(h),!l(u[f]))return u[f]=h,h;if(u[f]p?x>u?x>1.1*f?f:x>1.1*s?s:u:x>d?d:x>h?h:p:Math.pow(10,Math.floor(Math.log(x)/Math.LN10))}function m(x,_,w,k,T,M){if(k&&x>u){var S=b(_,T,M),C=b(w,T,M),P=x===f?0:1;return S[P]!==C[P]}return Math.floor(w/x)-Math.floor(_/x)>.1}function b(x,_,w){var k=_.c2d(x,f,w).split("-");return k[0]===""&&(k.unshift(),k[0]="-"+k[0]),k}o.exports=function(x,_,w,k,T){var M,S,C=-1.1*_,P=-.1*_,D=x-P,O=w[0],R=w[1],F=Math.min(y(O+P,O+D,k,T),y(R+P,R+D,k,T)),A=Math.min(y(O+C,O+P,k,T),y(R+C,R+P,k,T));if(F>A&&Au){var z=M===f?1:6,B=M===f?"M12":"M1";return function($,j){var N=k.c2d($,f,T),E=N.indexOf("-",z);E>0&&(N=N.substr(0,E));var W=k.d2c(N,0,T);if(W<$){var G=g(W,B,!1,T);(W+G)/2<$+x&&(W=G)}return j&&S?g(W,B,!0,T):W}}return function($,j){var N=M*Math.round($/M);return N+M/10<$&&N+.9*M<$+x&&(N+=M),j&&S&&(N-=M),N}}},72138:function(o,a,n){var l=n(92770),f=n(71828),s=n(73972),u=n(89298),d=n(75341),h=n(59575),p=n(36362),g=n(42174),y=n(40965);function v(m,b,x,_,w){var k,T,M,S,C,P,D,O=_+"bins",R=m._fullLayout,F=b["_"+_+"bingroup"],A=R._histogramBinOpts[F],z=R.barmode==="overlay",B=function(Se){return x.r2c(Se,0,S)},$=function(Se){return x.c2r(Se,0,S)},j=x.type==="date"?function(Se){return Se||Se===0?f.cleanDate(Se,null,S):null}:function(Se){return l(Se)?Number(Se):null};function N(Se,Oe,Me){Oe[Se+"Found"]?(Oe[Se]=j(Oe[Se]),Oe[Se]===null&&(Oe[Se]=Me[Se])):(P[Se]=Oe[Se]=Me[Se],f.nestedProperty(T[0],O+"."+Se).set(Me[Se]))}if(b["_"+_+"autoBinFinished"])delete b["_"+_+"autoBinFinished"];else{T=A.traces;var E=[],W=!0,G=!1,L=!1;for(k=0;kx.r2l(Z)&&(re=u.tickIncrement(re,A.size,!0,S)),ee.start=x.l2r(re),Y||f.nestedProperty(b,O+".start").set(ee.start)}var ie=A.end,le=x.r2l(te.end),se=le!==void 0;if((A.endFound||se)&&le!==x.r2l(ie)){var pe=se?le:f.aggNums(Math.max,null,C);ee.end=x.l2r(pe),se||f.nestedProperty(b,O+".start").set(ee.end)}var Te="autobin"+_;return b._input[Te]===!1&&(b._input[O]=f.extendFlat({},b[O]||{}),delete b._input[Te],delete b[Te]),[ee,C]}o.exports={calc:function(m,b){var x,_,w,k,T=[],M=[],S=b.orientation==="h",C=u.getFromId(m,S?b.yaxis:b.xaxis),P=S?"y":"x",D={x:"y",y:"x"}[P],O=b[P+"calendar"],R=b.cumulative,F=v(m,b,C,P),A=F[0],z=F[1],B=typeof A.size=="string",$=[],j=B?$:A,N=[],E=[],W=[],G=0,L=b.histnorm,q=b.histfunc,H=L.indexOf("density")!==-1;R.enabled&&H&&(L=L.replace(/ ?density$/,""),H=!1);var V,te=q==="max"||q==="min"?null:0,ee=h.count,U=p[L],Q=!1,Y=function(ne){return C.r2c(ne,0,O)};for(f.isArrayOrTypedArray(b[D])&&q!=="count"&&(V=b[D],Q=q==="avg",ee=h[q]),x=Y(A.start),w=Y(A.end)+(x-u.tickIncrement(x,A.size,!1,O))/1e6;x=0&&k=0;ue--)ke(ue);else if(de==="increasing"){for(ue=1;ue=0;ue--)ne[ue]+=ne[ue+1];xe==="exclude"&&(ne.push(0),ne.shift())}}(M,R.direction,R.currentbin);var Oe=Math.min(T.length,M.length),Me=[],ce=0,ye=Oe-1;for(x=0;x=ce;x--)if(M[x]){ye=x;break}for(x=ce;x<=ye;x++)if(l(T[x])&&l(M[x])){var J={p:T[x],s:M[x],b:0};R.enabled||(J.pts=W[x],le?J.ph0=J.ph1=W[x].length?z[W[x][0]]:T[x]:(b._computePh=!0,J.ph0=re($[x]),J.ph1=re($[x+1],!0))),Me.push(J)}return Me.length===1&&(Me[0].width1=u.tickIncrement(Me[0].p,A.size,!1,O)-Me[0].p),d(Me,b),f.isArrayOrTypedArray(b.selectedpoints)&&f.tagSelected(Me,b,Te),Me},calcAllAutoBins:v}},72406:function(o){o.exports={eventDataKeys:["binNumber"]}},82222:function(o,a,n){var l=n(71828),f=n(41675),s=n(73972).traceIs,u=n(26125),d=l.nestedProperty,h=n(99082).getAxisGroup,p=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],g=["x","y"];o.exports=function(y,v){var m,b,x,_,w,k,T,M=v._histogramBinOpts={},S=[],C={},P=[];function D(H,V){return l.coerce(m._input,m,m._module.attributes,H,V)}function O(H){return H.orientation==="v"?"x":"y"}function R(H,V,te){var ee=H.uid+"__"+te;V||(V=ee);var U=function(X,re){return f.getFromTrace({_fullLayout:v},X,re).type}(H,te),Q=H[te+"calendar"]||"",Y=M[V],Z=!0;Y&&(U===Y.axType&&Q===Y.calendar?(Z=!1,Y.traces.push(H),Y.dirs.push(te)):(V=ee,U!==Y.axType&&l.warn(["Attempted to group the bins of trace",H.index,"set on a","type:"+U,"axis","with bins on","type:"+Y.axType,"axis."].join(" ")),Q!==Y.calendar&&l.warn(["Attempted to group the bins of trace",H.index,"set with a",Q,"calendar","with bins",Y.calendar?"on a "+Y.calendar+" calendar":"w/o a set calendar"].join(" ")))),Z&&(M[V]={traces:[H],dirs:[te],axType:U,calendar:H[te+"calendar"]||""}),H["_"+te+"bingroup"]=V}for(w=0;w$&&F.splice($,F.length-$),B.length>$&&B.splice($,B.length-$);var j=[],N=[],E=[],W=typeof R.size=="string",G=typeof z.size=="string",L=[],q=[],H=W?L:R,V=G?q:z,te=0,ee=[],U=[],Q=b.histnorm,Y=b.histfunc,Z=Q.indexOf("density")!==-1,X=Y==="max"||Y==="min"?null:0,re=s.count,ie=u[Q],le=!1,se=[],pe=[],Te="z"in b?b.z:"marker"in b&&Array.isArray(b.marker.color)?b.marker.color:"";Te&&Y!=="count"&&(le=Y==="avg",re=s[Y]);var Se=R.size,Oe=P(R.start),Me=P(R.end)+(Oe-f.tickIncrement(Oe,Se,!1,S))/1e6;for(x=Oe;x=0&&w=0&&k0||l.inbox(h-p.y0,h-(p.y0+p.h*g.dy),0)>0)){var m,b=Math.floor((d-p.x0)/g.dx),x=Math.floor(Math.abs(h-p.y0)/g.dy);if(g._hasZ?m=p.z[x][b]:g._hasSource&&(m=g._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(b,x,1,1).data),m){var _,w=p.hi||g.hoverinfo;if(w){var k=w.split("+");k.indexOf("all")!==-1&&(k=["color"]),k.indexOf("color")!==-1&&(_=!0)}var T,M=s.colormodel[g.colormodel],S=M.colormodel||g.colormodel,C=S.length,P=g._scaler(m),D=M.suffix,O=[];(g.hovertemplate||_)&&(O.push("["+[P[0]+D[0],P[1]+D[1],P[2]+D[2]].join(", ")),C===4&&O.push(", "+P[3]+D[3]),O.push("]"),O=O.join(""),u.extraText=S.toUpperCase()+": "+O),Array.isArray(g.hovertext)&&Array.isArray(g.hovertext[x])?T=g.hovertext[x][b]:Array.isArray(g.text)&&Array.isArray(g.text[x])&&(T=g.text[x][b]);var R=v.c2p(p.y0+(x+.5)*g.dy),F=p.x0+(b+.5)*g.dx,A=p.y0+(x+.5)*g.dy,z="["+m.slice(0,g.colormodel.length).join(", ")+"]";return[f.extendFlat(u,{index:[x,b],x0:y.c2p(p.x0+b*g.dx),x1:y.c2p(p.x0+(b+1)*g.dx),y0:R,y1:R,color:P,xVal:F,xLabelVal:F,yVal:A,yLabelVal:A,zLabelVal:z,text:T,hovertemplateLabels:{zLabel:z,colorLabel:O,"color[0]Label":P[0]+D[0],"color[1]Label":P[1]+D[1],"color[2]Label":P[2]+D[2],"color[3]Label":P[3]+D[3]}})]}}}},94507:function(o,a,n){o.exports={attributes:n(17230),supplyDefaults:n(13245),calc:n(71113),plot:n(60775),style:n(12826),hoverPoints:n(28749),eventData:n(30835),moduleType:"trace",name:"image",basePlotModule:n(93612),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}},60775:function(o,a,n){var l=n(39898),f=n(71828),s=f.strTranslate,u=n(77922),d=n(51877),h=n(3883),p=n(32396).STYLE;o.exports=function(g,y,v,m){var b=y.xaxis,x=y.yaxis,_=!g._context._exportedPlot&&h();f.makeTraceGroups(m,v,"im").each(function(w){var k=l.select(this),T=w[0],M=T.trace,S=(M.zsmooth==="fast"||M.zsmooth===!1&&_)&&!M._hasZ&&M._hasSource&&b.type==="linear"&&x.type==="linear";M._realImage=S;var C,P,D,O,R,F,A=T.z,z=T.x0,B=T.y0,$=T.w,j=T.h,N=M.dx,E=M.dy;for(F=0;C===void 0&&F<$;)C=b.c2p(z+F*N),F++;for(F=$;P===void 0&&F>0;)P=b.c2p(z+F*N),F--;for(F=0;O===void 0&&F0;)R=x.c2p(B+F*E),F--;PV[0];if(te||ee){var U=C+W/2,Q=O+G/2;q+="transform:"+s(U+"px",Q+"px")+"scale("+(te?-1:1)+","+(ee?-1:1)+")"+s(-U+"px",-Q+"px")+";"}}L.attr("style",q);var Y=new Promise(function(X){if(M._hasZ)X();else if(M._hasSource)if(M._canvas&&M._canvas.el.width===$&&M._canvas.el.height===j&&M._canvas.source===M.source)X();else{var re=document.createElement("canvas");re.width=$,re.height=j;var ie=re.getContext("2d",{willReadFrequently:!0});M._image=M._image||new Image;var le=M._image;le.onload=function(){ie.drawImage(le,0,0),M._canvas={el:re,source:M.source},X()},le.setAttribute("src",M.source)}}).then(function(){var X,re;if(M._hasZ)re=Z(function(le,se){return A[se][le]}),X=re.toDataURL("image/png");else if(M._hasSource)if(S)X=M.source;else{var ie=M._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,$,j).data;re=Z(function(le,se){var pe=4*(se*$+le);return[ie[pe],ie[pe+1],ie[pe+2],ie[pe+3]]}),X=re.toDataURL("image/png")}L.attr({"xlink:href":X,height:G,width:W,x:C,y:O})});g._promises.push(Y)}function Z(X){var re=document.createElement("canvas");re.width=W,re.height=G;var ie,le=re.getContext("2d",{willReadFrequently:!0}),se=function(de){return f.constrain(Math.round(b.c2p(z+de*N)-C),0,W)},pe=function(de){return f.constrain(Math.round(x.c2p(B+de*E)-O),0,G)},Te=d.colormodel[M.colormodel],Se=Te.colormodel||M.colormodel,Oe=Te.fmt;for(F=0;F=0}),(g.type==="funnelarea"?D:g.sort)&&m.sort(function(z,B){return B.v-z.v}),m[0]&&(m[0].vTotal=P),m},crossTraceCalc:function(p,g){var y=(g||{}).type;y||(y="pie");var v=p._fullLayout,m=p.calcdata,b=v[y+"colorway"],x=v["_"+y+"colormap"];v["extend"+y+"colors"]&&(b=h(b,u));for(var _=0,w=0;w0){_=!0;break}}_||(x=0)}return{hasLabels:m,hasValues:b,len:x}}function g(y,v,m,b,x){b("marker.line.width")&&b("marker.line.color",x?void 0:m.paper_bgcolor);var _=b("marker.colors");h(b,"marker.pattern",_),y.marker&&!v.marker.pattern.fgcolor&&(v.marker.pattern.fgcolor=y.marker.colors),v.marker.pattern.bgcolor||(v.marker.pattern.bgcolor=m.paper_bgcolor)}o.exports={handleLabelsAndValues:p,handleMarkerDefaults:g,supplyDefaults:function(y,v,m,b){function x(D,O){return f.coerce(y,v,s,D,O)}var _=p(x("labels"),x("values")),w=_.len;if(v._hasLabels=_.hasLabels,v._hasValues=_.hasValues,!v._hasLabels&&v._hasValues&&(x("label0"),x("dlabel")),w){v._length=w,g(y,v,b,x,!0),x("scalegroup");var k,T=x("text"),M=x("texttemplate");if(M||(k=x("textinfo",Array.isArray(T)?"text+percent":"percent")),x("hovertext"),x("hovertemplate"),M||k&&k!=="none"){var S=x("textposition");d(y,v,b,x,S,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(S)||S==="auto"||S==="outside")&&x("automargin"),(S==="inside"||S==="auto"||Array.isArray(S))&&x("insidetextorientation")}u(v,b,x);var C=x("hole");if(x("title.text")){var P=x("title.position",C?"middle center":"top center");C||P!=="middle center"||(v.title.position="top center"),f.coerceFont(x,"title.font",b.font)}x("sort"),x("direction"),x("rotation"),x("pull")}else v.visible=!1}}},20007:function(o,a,n){var l=n(23469).appendArrayMultiPointValues;o.exports=function(f,s){var u={curveNumber:s.index,pointNumbers:f.pts,data:s._input,fullData:s,label:f.label,color:f.color,value:f.v,percent:f.percent,text:f.text,bbox:f.bbox,v:f.v};return f.pts.length===1&&(u.pointNumber=u.i=f.pts[0]),l(u,s,f.pts),s.type==="funnelarea"&&(delete u.v,delete u.i),u}},22209:function(o,a,n){var l=n(91424),f=n(7901);o.exports=function(s,u,d,h){var p=d.marker.pattern;p&&p.shape?l.pointStyle(s,d,h,u):f.fill(s,u.color)}},53581:function(o,a,n){var l=n(71828);function f(s){return s.indexOf("e")!==-1?s.replace(/[.]?0+e/,"e"):s.indexOf(".")!==-1?s.replace(/[.]?0+$/,""):s}a.formatPiePercent=function(s,u){var d=f((100*s).toPrecision(3));return l.numSeparate(d,u)+"%"},a.formatPieValue=function(s,u){var d=f(s.toPrecision(10));return l.numSeparate(d,u)},a.getFirstFilled=function(s,u){if(Array.isArray(s))for(var d=0;d"),name:X.hovertemplate||re.indexOf("name")!==-1?X.name:void 0,idealAlign:Y.pxmid[0]<0?"left":"right",color:_.castOption(Oe.bgcolor,Y.pts)||Y.color,borderColor:_.castOption(Oe.bordercolor,Y.pts),fontFamily:_.castOption(Me.family,Y.pts),fontSize:_.castOption(Me.size,Y.pts),fontColor:_.castOption(Me.color,Y.pts),nameLength:_.castOption(Oe.namelength,Y.pts),textAlign:_.castOption(Oe.align,Y.pts),hovertemplate:_.castOption(X.hovertemplate,Y.pts),hovertemplateLabels:Y,eventData:[w(Y,X)]},{container:Z._hoverlayer.node(),outerContainer:Z._paper.node(),gd:q,inOut_bbox:ce}),Y.bbox=ce[0],U._hasHoverLabel=!0}U._hasHoverEvent=!0,q.emit("plotly_hover",{points:[w(Y,X)],event:l.event})}}),L.on("mouseout",function(Y){var Z=q._fullLayout,X=q._fullData[U.index],re=l.select(this).datum();U._hasHoverEvent&&(Y.originalEvent=l.event,q.emit("plotly_unhover",{points:[w(re,X)],event:l.event}),U._hasHoverEvent=!1),U._hasHoverLabel&&(s.loneUnhover(Z._hoverlayer.node()),U._hasHoverLabel=!1)}),L.on("click",function(Y){var Z=q._fullLayout,X=q._fullData[U.index];q._dragging||Z.hovermode===!1||(q._hoverdata=[w(Y,X)],s.click(q,l.event))})}function M(L,q,H){var V=_.castOption(L.insidetextfont.color,q.pts);!V&&L._input.textfont&&(V=_.castOption(L._input.textfont.color,q.pts));var te=_.castOption(L.insidetextfont.family,q.pts)||_.castOption(L.textfont.family,q.pts)||H.family,ee=_.castOption(L.insidetextfont.size,q.pts)||_.castOption(L.textfont.size,q.pts)||H.size;return{color:V||u.contrast(q.color),family:te,size:ee}}function S(L,q){for(var H,V,te=0;tewe&&we>Ae||ke=-4;Te-=2)Se(Math.PI*Te,"tan");for(Te=4;Te>=-4;Te-=2)Se(Math.PI*(Te+1),"tan")}if(re||le){for(Te=4;Te>=-4;Te-=2)Se(Math.PI*(Te+1.5),"rad");for(Te=4;Te>=-4;Te-=2)Se(Math.PI*(Te+.5),"rad")}}if(Q||se||re){var Oe=Math.sqrt(L.width*L.width+L.height*L.height);if((ee={scale:te*V*2/Oe,rCenter:1-te,rotate:0}).textPosAngle=(q.startangle+q.stopangle)/2,ee.scale>=1)return ee;pe.push(ee)}(se||le)&&((ee=P(L,V,U,Y,Z)).textPosAngle=(q.startangle+q.stopangle)/2,pe.push(ee)),(se||ie)&&((ee=D(L,V,U,Y,Z)).textPosAngle=(q.startangle+q.stopangle)/2,pe.push(ee));for(var Me=0,ce=0,ye=0;ye=1)break}return pe[Me]}function P(L,q,H,V,te){q=Math.max(0,q-2*x);var ee=L.width/L.height,U=F(ee,V,q,H);return{scale:2*U/L.height,rCenter:O(ee,U/q),rotate:R(te)}}function D(L,q,H,V,te){q=Math.max(0,q-2*x);var ee=L.height/L.width,U=F(ee,V,q,H);return{scale:2*U/L.width,rCenter:O(ee,U/q),rotate:R(te+Math.PI/2)}}function O(L,q){return Math.cos(q)-L*q}function R(L){return(180/Math.PI*L+720)%180-90}function F(L,q,H,V){var te=L+1/(2*Math.tan(q));return H*Math.min(1/(Math.sqrt(te*te+.5)+te),V/(Math.sqrt(L*L+V/2)+L))}function A(L,q){return L.v!==q.vTotal||q.trace.hole?Math.min(1/(1+1/Math.sin(L.halfangle)),L.ring/2):1}function z(L,q){var H=q.pxmid[0],V=q.pxmid[1],te=L.width/2,ee=L.height/2;return H<0&&(te*=-1),V<0&&(ee*=-1),{scale:1,rCenter:1,rotate:0,x:te+Math.abs(ee)*(te>0?1:-1)/2,y:ee/(1+H*H/(V*V)),outside:!0}}function B(L,q){var H,V,te,ee=L.trace,U={x:L.cx,y:L.cy},Q={tx:0,ty:0};Q.ty+=ee.title.font.size,te=j(ee),ee.title.position.indexOf("top")!==-1?(U.y-=(1+te)*L.r,Q.ty-=L.titleBox.height):ee.title.position.indexOf("bottom")!==-1&&(U.y+=(1+te)*L.r);var Y,Z=L.r/((Y=L.trace.aspectratio)===void 0?1:Y),X=q.w*(ee.domain.x[1]-ee.domain.x[0])/2;return ee.title.position.indexOf("left")!==-1?(X+=Z,U.x-=(1+te)*Z,Q.tx+=L.titleBox.width/2):ee.title.position.indexOf("center")!==-1?X*=2:ee.title.position.indexOf("right")!==-1&&(X+=Z,U.x+=(1+te)*Z,Q.tx-=L.titleBox.width/2),H=X/L.titleBox.width,V=$(L,q)/L.titleBox.height,{x:U.x,y:U.y,scale:Math.min(H,V),tx:Q.tx,ty:Q.ty}}function $(L,q){var H=L.trace,V=q.h*(H.domain.y[1]-H.domain.y[0]);return Math.min(L.titleBox.height,V/2)}function j(L){var q,H=L.pull;if(!H)return 0;if(Array.isArray(H))for(H=0,q=0;qH&&(H=L.pull[q]);return H}function N(L,q){for(var H=[],V=0;V1?ye=(ce=le.r)/pe.aspectratio:ce=(ye=le.r)*pe.aspectratio,Me=(ce*=(1+pe.baseratio)/2)*ye}Se=Math.min(Se,Me/le.vTotal)}for(se=0;se")}if(ee){var Te=h.castOption(te,q.i,"texttemplate");if(Te){var Se=function(Me){return{label:Me.label,value:Me.v,valueLabel:_.formatPieValue(Me.v,V.separators),percent:Me.v/H.vTotal,percentLabel:_.formatPiePercent(Me.v/H.vTotal,V.separators),color:Me.color,text:Me.text,customdata:h.castOption(te,Me.i,"customdata")}}(q),Oe=_.getFirstFilled(te.text,q.pts);(k(Oe)||Oe==="")&&(Se.text=Oe),q.text=h.texttemplateString(Te,Se,L._fullLayout._d3locale,Se,te._meta||{})}else q.text=""}}function G(L,q){var H=L.rotate*Math.PI/180,V=Math.cos(H),te=Math.sin(H),ee=(q.left+q.right)/2,U=(q.top+q.bottom)/2;L.textX=ee*V-U*te,L.textY=ee*te+U*V,L.noCenter=!0}o.exports={plot:function(L,q){var H=L._context.staticPlot,V=L._fullLayout,te=V._size;b("pie",V),S(q,L),N(q,te);var ee=h.makeTraceGroups(V._pielayer,q,"trace").each(function(U){var Q=l.select(this),Y=U[0],Z=Y.trace;(function(X){var re,ie,le,se=X[0],pe=se.r,Te=se.trace,Se=_.getRotationAngle(Te.rotation),Oe=2*Math.PI/se.vTotal,Me="px0",ce="px1";if(Te.direction==="counterclockwise"){for(re=0;rese.vTotal/2?1:0,ie.halfangle=Math.PI*Math.min(ie.v/se.vTotal,.5),ie.ring=1-Te.hole,ie.rInscribed=A(ie,se))})(U),Q.attr("stroke-linejoin","round"),Q.each(function(){var X=l.select(this).selectAll("g.slice").data(U);X.enter().append("g").classed("slice",!0),X.exit().remove();var re=[[[],[]],[[],[]]],ie=!1;X.each(function(ce,ye){if(ce.hidden)l.select(this).selectAll("path,g").remove();else{ce.pointNumber=ce.i,ce.curveNumber=Z.index,re[ce.pxmid[1]<0?0:1][ce.pxmid[0]<0?0:1].push(ce);var J=Y.cx,ne=Y.cy,de=l.select(this),xe=de.selectAll("path.surface").data([ce]);if(xe.enter().append("path").classed("surface",!0).style({"pointer-events":H?"none":"all"}),de.call(T,L,U),Z.pull){var ue=+_.castOption(Z.pull,ce.pts)||0;ue>0&&(J+=ue*ce.pxmid[0],ne+=ue*ce.pxmid[1])}ce.cxFinal=J,ce.cyFinal=ne;var ge=Z.hole;if(ce.v===Y.vTotal){var be="M"+(J+ce.px0[0])+","+(ne+ce.px0[1])+De(ce.px0,ce.pxmid,!0,1)+De(ce.pxmid,ce.px0,!0,1)+"Z";ge?xe.attr("d","M"+(J+ge*ce.px0[0])+","+(ne+ge*ce.px0[1])+De(ce.px0,ce.pxmid,!1,ge)+De(ce.pxmid,ce.px0,!1,ge)+"Z"+be):xe.attr("d",be)}else{var we=De(ce.px0,ce.px1,!0,1);if(ge){var ke=1-ge;xe.attr("d","M"+(J+ge*ce.px1[0])+","+(ne+ge*ce.px1[1])+De(ce.px1,ce.px0,!1,ge)+"l"+ke*ce.px0[0]+","+ke*ce.px0[1]+we+"Z")}else xe.attr("d","M"+J+","+ne+"l"+ce.px0[0]+","+ce.px0[1]+we+"Z")}W(L,ce,Y);var Ae=_.castOption(Z.textposition,ce.pts),Ee=de.selectAll("g.slicetext").data(ce.text&&Ae!=="none"?[0]:[]);Ee.enter().append("g").classed("slicetext",!0),Ee.exit().remove(),Ee.each(function(){var Re=h.ensureSingle(l.select(this),"text","",function(ct){ct.attr("data-notex",1)}),Ie=h.ensureUniformFontSize(L,Ae==="outside"?function(ct,bt,ze){return{color:_.castOption(ct.outsidetextfont.color,bt.pts)||_.castOption(ct.textfont.color,bt.pts)||ze.color,family:_.castOption(ct.outsidetextfont.family,bt.pts)||_.castOption(ct.textfont.family,bt.pts)||ze.family,size:_.castOption(ct.outsidetextfont.size,bt.pts)||_.castOption(ct.textfont.size,bt.pts)||ze.size}}(Z,ce,V.font):M(Z,ce,V.font));Re.text(ce.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(d.font,Ie).call(y.convertToTspans,L);var Be,Ue=d.bBox(Re.node());if(Ae==="outside")Be=z(Ue,ce);else if(Be=C(Ue,ce,Y),Ae==="auto"&&Be.scale<1){var qe=h.ensureUniformFontSize(L,Z.outsidetextfont);Re.call(d.font,qe),Be=z(Ue=d.bBox(Re.node()),ce)}var Ye=Be.textPosAngle,at=Ye===void 0?ce.pxmid:E(Y.r,Ye);if(Be.targetX=J+at[0]*Be.rCenter+(Be.x||0),Be.targetY=ne+at[1]*Be.rCenter+(Be.y||0),G(Be,Ue),Be.outside){var lt=Be.targetY;ce.yLabelMin=lt-Ue.height/2,ce.yLabelMid=lt,ce.yLabelMax=lt+Ue.height/2,ce.labelExtraX=0,ce.labelExtraY=0,ie=!0}Be.fontSize=Ie.size,m(Z.type,Be,V),U[ye].transform=Be,h.setTransormAndDisplay(Re,Be)})}function De(Re,Ie,Be,Ue){var qe=Ue*(Ie[0]-Re[0]),Ye=Ue*(Ie[1]-Re[1]);return"a"+Ue*Y.r+","+Ue*Y.r+" 0 "+ce.largeArc+(Be?" 1 ":" 0 ")+qe+","+Ye}});var le=l.select(this).selectAll("g.titletext").data(Z.title.text?[0]:[]);if(le.enter().append("g").classed("titletext",!0),le.exit().remove(),le.each(function(){var ce,ye=h.ensureSingle(l.select(this),"text","",function(ne){ne.attr("data-notex",1)}),J=Z.title.text;Z._meta&&(J=h.templateString(J,Z._meta)),ye.text(J).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(d.font,Z.title.font).call(y.convertToTspans,L),ce=Z.title.position==="middle center"?function(ne){var de=Math.sqrt(ne.titleBox.width*ne.titleBox.width+ne.titleBox.height*ne.titleBox.height);return{x:ne.cx,y:ne.cy,scale:ne.trace.hole*ne.r*2/de,tx:0,ty:-ne.titleBox.height/2+ne.trace.title.font.size}}(Y):B(Y,te),ye.attr("transform",g(ce.x,ce.y)+p(Math.min(1,ce.scale))+g(ce.tx,ce.ty))}),ie&&function(ce,ye){var J,ne,de,xe,ue,ge,be,we,ke,Ae,Ee,De,Re;function Ie(Ye,at){return Ye.pxmid[1]-at.pxmid[1]}function Be(Ye,at){return at.pxmid[1]-Ye.pxmid[1]}function Ue(Ye,at){at||(at={});var lt,ct,bt,ze,Ne=at.labelExtraY+(ne?at.yLabelMax:at.yLabelMin),Qe=ne?Ye.yLabelMin:Ye.yLabelMax,it=ne?Ye.yLabelMax:Ye.yLabelMin,kt=Ye.cyFinal+ue(Ye.px0[1],Ye.px1[1]),Je=Ne-Qe;if(Je*be>0&&(Ye.labelExtraY=Je),Array.isArray(ye.pull))for(ct=0;ct=(_.castOption(ye.pull,bt.pts)||0)||((Ye.pxmid[1]-bt.pxmid[1])*be>0?(Je=bt.cyFinal+ue(bt.px0[1],bt.px1[1])-Qe-Ye.labelExtraY)*be>0&&(Ye.labelExtraY+=Je):(it+Ye.labelExtraY-kt)*be>0&&(lt=3*ge*Math.abs(ct-Ae.indexOf(Ye)),(ze=bt.cxFinal+xe(bt.px0[0],bt.px1[0])+lt-(Ye.cxFinal+Ye.pxmid[0])-Ye.labelExtraX)*ge>0&&(Ye.labelExtraX+=ze)))}for(ne=0;ne<2;ne++)for(de=ne?Ie:Be,ue=ne?Math.max:Math.min,be=ne?1:-1,J=0;J<2;J++){for(xe=J?Math.max:Math.min,ge=J?1:-1,(we=ce[ne][J]).sort(de),ke=ce[1-ne][J],Ae=ke.concat(we),De=[],Ee=0;EeMath.abs(we)?ue+="l"+we*J.pxmid[0]/J.pxmid[1]+","+we+"H"+(xe+J.labelExtraX+ge):ue+="l"+J.labelExtraX+","+be+"v"+(we-be)+"h"+ge}else ue+="V"+(J.yLabelMid+J.labelExtraY)+"h"+ge;h.ensureSingle(ne,"path","textline").call(u.stroke,ye.outsidetextfont.color).attr({"stroke-width":Math.min(2,ye.outsidetextfont.size/8),d:ue,fill:"none"})}else ne.select("path.textline").remove()})}(X,Z),ie&&Z.automargin){var se=d.bBox(Q.node()),pe=Z.domain,Te=te.w*(pe.x[1]-pe.x[0]),Se=te.h*(pe.y[1]-pe.y[0]),Oe=(.5*Te-Y.r)/te.w,Me=(.5*Se-Y.r)/te.h;f.autoMargin(L,"pie."+Z.uid+".automargin",{xl:pe.x[0]-Oe,xr:pe.x[1]+Oe,yb:pe.y[0]-Me,yt:pe.y[1]+Me,l:Math.max(Y.cx-Y.r-se.left,0),r:Math.max(se.right-(Y.cx+Y.r),0),b:Math.max(se.bottom-(Y.cy+Y.r),0),t:Math.max(Y.cy-Y.r-se.top,0),pad:5})}})});setTimeout(function(){ee.selectAll("tspan").each(function(){var U=l.select(this);U.attr("dy")&&U.attr("dy",U.attr("dy"))})},0)},formatSliceLabel:W,transformInsideText:C,determineInsideTextFont:M,positionTitleOutside:B,prerenderTitles:S,layoutAreas:N,attachFxHandlers:T,computeTransform:G}},68357:function(o,a,n){var l=n(39898),f=n(63463),s=n(72597).resizeText;o.exports=function(u){var d=u._fullLayout._pielayer.selectAll(".trace");s(u,d,"pie"),d.each(function(h){var p=h[0].trace,g=l.select(this);g.style({opacity:p.opacity}),g.selectAll("path.surface").each(function(y){l.select(this).call(f,y,p,u)})})}},63463:function(o,a,n){var l=n(7901),f=n(53581).castOption,s=n(22209);o.exports=function(u,d,h,p){var g=h.marker.line,y=f(g.color,d.pts)||l.defaultLine,v=f(g.width,d.pts)||0;u.call(s,d,h,p).style("stroke-width",v).call(l.stroke,y)}},75225:function(o,a,n){var l=n(71828);o.exports=function(f,s){for(var u=0;uM&&W[C].gap;)C--;for(D=W[C].s,S=W.length-1;S>C;S--)W[S].s=D;for(;MB[b]&&b=0;b--){var x=u[b];if(x.type==="scatter"&&x.xaxis===v.xaxis&&x.yaxis===v.yaxis){x.opacity=void 0;break}}}}}},17438:function(o,a,n){var l=n(71828),f=n(73972),s=n(82196),u=n(47581),d=n(34098),h=n(67513),p=n(73927),g=n(565),y=n(49508),v=n(11058),m=n(94039),b=n(82410),x=n(28908),_=n(71828).coercePattern;o.exports=function(w,k,T,M){function S(z,B){return l.coerce(w,k,s,z,B)}var C=h(w,k,M,S);if(C||(k.visible=!1),k.visible){p(w,k,M,S),S("xhoverformat"),S("yhoverformat");var P=g(w,k,M,S);M.scattermode==="group"&&k.orientation===void 0&&S("orientation","v");var D=!P&&C=Math.min(Te,Se)&&w<=Math.max(Te,Se)?0:1/0}var Oe=Math.max(3,pe.mrc||0),Me=1-1/Oe,ce=Math.abs(x.c2p(pe.x)-w);return ce=Math.min(Te,Se)&&k<=Math.max(Te,Se)?0:1/0}var Oe=Math.max(3,pe.mrc||0),Me=1-1/Oe,ce=Math.abs(_.c2p(pe.y)-k);return cele!=(ee=L[W][1])>=le&&(H=L[W-1][0],V=L[W][0],ee-te&&(q=H+(V-H)*(le-te)/(ee-te),Z=Math.min(Z,q),X=Math.max(X,q)));Z=Math.max(Z,0),X=Math.min(X,x._length);var se=d.defaultLine;return d.opacity(b.fillcolor)?se=b.fillcolor:d.opacity((b.line||{}).color)&&(se=b.line.color),l.extendFlat(p,{distance:p.maxHoverDistance,x0:Z,x1:X,y0:le,y1:le,color:se,hovertemplate:!1}),delete p.index,b.text&&!Array.isArray(b.text)?p.text=String(b.text):p.text=b.name,[p]}}}},67368:function(o,a,n){var l=n(34098);o.exports={hasLines:l.hasLines,hasMarkers:l.hasMarkers,hasText:l.hasText,isBubble:l.isBubble,attributes:n(82196),layoutAttributes:n(21479),supplyDefaults:n(17438),crossTraceDefaults:n(34936),supplyLayoutDefaults:n(79334),calc:n(47761).calc,crossTraceCalc:n(72626),arraysToCalcdata:n(75225),plot:n(32663),colorbar:n(4898),formatLabels:n(8225),style:n(16296).style,styleOnSelect:n(16296).styleOnSelect,hoverPoints:n(33720),selectPoints:n(98002),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:n(93612),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}},21479:function(o){o.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}},79334:function(o,a,n){var l=n(71828),f=n(21479);o.exports=function(s,u){var d,h=u.barmode==="group";u.scattermode==="group"&&(d=h?u.bargap:.2,l.coerce(s,u,f,"scattergap",d))}},11058:function(o,a,n){var l=n(71828).isArrayOrTypedArray,f=n(52075).hasColorscale,s=n(1586);o.exports=function(u,d,h,p,g,y){y||(y={});var v=(u.marker||{}).color;g("line.color",h),f(u,"line")?s(u,d,p,g,{prefix:"line.",cLetter:"c"}):g("line.color",!l(v)&&v||h),g("line.width"),y.noDash||g("line.dash"),y.backoff&&g("line.backoff")}},34621:function(o,a,n){var l=n(91424),f=n(50606),s=f.BADNUM,u=f.LOG_CLIP,d=u+.5,h=u-.5,p=n(71828),g=p.segmentsIntersect,y=p.constrain,v=n(47581);o.exports=function(m,b){var x,_,w,k,T,M,S,C,P,D,O,R,F,A,z,B,$,j,N=b.trace||{},E=b.xaxis,W=b.yaxis,G=E.type==="log",L=W.type==="log",q=E._length,H=W._length,V=b.backoff,te=N.marker,ee=b.connectGaps,U=b.baseTolerance,Q=b.shape,Y=Q==="linear",Z=N.fill&&N.fill!=="none",X=[],re=v.minTolerance,ie=m.length,le=new Array(ie),se=0;function pe(Je){var ut=m[Je];if(!ut)return!1;var pt=b.linearized?E.l2p(ut.x):E.c2p(ut.x),It=b.linearized?W.l2p(ut.y):W.c2p(ut.y);if(pt===s){if(G&&(pt=E.c2p(ut.x,!0)),pt===s)return!1;L&&It===s&&(pt*=Math.abs(E._m*H*(E._m>0?d:h)/(W._m*q*(W._m>0?d:h)))),pt*=1e3}if(It===s){if(L&&(It=W.c2p(ut.y,!0)),It===s)return!1;It*=1e3}return[pt,It]}function Te(Je,ut,pt,It){var Mt=pt-Je,zt=It-ut,wt=.5-Je,ve=.5-ut,_e=Mt*Mt+zt*zt,Ve=Mt*wt+zt*ve;if(Ve>0&&Ve<_e){var We=wt*zt-ve*Mt;if(We*We<_e)return!0}}function Se(Je,ut){var pt=Je[0]/q,It=Je[1]/H,Mt=Math.max(0,-pt,pt-1,-It,It-1);return Mt&&$!==void 0&&Te(pt,It,$,j)&&(Mt=0),Mt&&ut&&Te(pt,It,ut[0]/q,ut[1]/H)&&(Mt=0),(1+v.toleranceGrowth*Mt)*U}function Oe(Je,ut){var pt=Je[0]-ut[0],It=Je[1]-ut[1];return Math.sqrt(pt*pt+It*It)}var Me,ce,ye,J,ne,de,xe,ue=v.maxScreensAway,ge=-q*ue,be=q*(1+ue),we=-H*ue,ke=H*(1+ue),Ae=[[ge,we,be,we],[be,we,be,ke],[be,ke,ge,ke],[ge,ke,ge,we]];function Ee(Je){if(Je[0]be||Je[1]ke)return[y(Je[0],ge,be),y(Je[1],we,ke)]}function De(Je,ut){return Je[0]===ut[0]&&(Je[0]===ge||Je[0]===be)||Je[1]===ut[1]&&(Je[1]===we||Je[1]===ke)||void 0}function Re(Je,ut,pt){return function(It,Mt){var zt=Ee(It),wt=Ee(Mt),ve=[];if(zt&&wt&&De(zt,wt))return ve;zt&&ve.push(zt),wt&&ve.push(wt);var _e=2*p.constrain((It[Je]+Mt[Je])/2,ut,pt)-((zt||It)[Je]+(wt||Mt)[Je]);return _e&&((zt&&wt?_e>0==zt[Je]>wt[Je]?zt:wt:zt||wt)[Je]+=_e),ve}}function Ie(Je){var ut=Je[0],pt=Je[1],It=ut===le[se-1][0],Mt=pt===le[se-1][1];if(!It||!Mt)if(se>1){var zt=ut===le[se-2][0],wt=pt===le[se-2][1];It&&(ut===ge||ut===be)&&zt?wt?se--:le[se-1]=Je:Mt&&(pt===we||pt===ke)&&wt?zt?se--:le[se-1]=Je:le[se++]=Je}else le[se++]=Je}function Be(Je){le[se-1][0]!==Je[0]&&le[se-1][1]!==Je[1]&&Ie([ye,J]),Ie(Je),ne=null,ye=J=0}Q==="linear"||Q==="spline"?xe=function(Je,ut){for(var pt=[],It=0,Mt=0;Mt<4;Mt++){var zt=Ae[Mt],wt=g(Je[0],Je[1],ut[0],ut[1],zt[0],zt[1],zt[2],zt[3]);wt&&(!It||Math.abs(wt.x-pt[0][0])>1||Math.abs(wt.y-pt[0][1])>1)&&(wt=[wt.x,wt.y],It&&Oe(wt,Je)be?be:0,ce=Je[1]ke?ke:0,Me||ce){if(se)if(ne){var ut=xe(ne,Je);ut.length>1&&(Be(ut[0]),le[se++]=ut[1])}else de=xe(le[se-1],Je)[0],le[se++]=de;else le[se++]=[Me||Je[0],ce||Je[1]];var pt=le[se-1];Me&&ce&&(pt[0]!==Me||pt[1]!==ce)?(ne&&(ye!==Me&&J!==ce?Ie(ye&&J?(It=ne,zt=(Mt=Je)[0]-It[0],wt=(Mt[1]-It[1])/zt,(It[1]*Mt[0]-Mt[1]*It[0])/zt>0?[wt>0?ge:be,ke]:[wt>0?be:ge,we]):[ye||Me,J||ce]):ye&&J&&Ie([ye,J])),Ie([Me,ce])):ye-Me&&J-ce&&Ie([Me||ye,ce||J]),ne=Je,ye=Me,J=ce}else ne&&Be(xe(ne,Je)[0]),le[se++]=Je;var It,Mt,zt,wt}for(x=0;xSe(M,Ye))break;w=M,(F=P[0]*C[0]+P[1]*C[1])>O?(O=F,k=M,S=!1):F=m.length||!M)break;qe(M),_=M}}else qe(k)}ne&&Ie([ye||ne[0],J||ne[1]]),X.push(le.slice(0,se))}var at=Q.slice(Q.length-1);if(V&&at!=="h"&&at!=="v"){for(var lt=!1,ct=-1,bt=[],ze=0;ze=0?p=b:(p=b=m,m++),p0?Math.max(y,h):0}}},4898:function(o){o.exports={container:"marker",min:"cmin",max:"cmax"}},49508:function(o,a,n){var l=n(7901),f=n(52075).hasColorscale,s=n(1586),u=n(34098);o.exports=function(d,h,p,g,y,v){var m=u.isBubble(d),b=(d.line||{}).color;v=v||{},b&&(p=b),y("marker.symbol"),y("marker.opacity",m?.7:1),y("marker.size"),v.noAngle||(y("marker.angle"),v.noAngleRef||y("marker.angleref"),v.noStandOff||y("marker.standoff")),y("marker.color",p),f(d,"marker")&&s(d,h,g,y,{prefix:"marker.",cLetter:"c"}),v.noSelect||(y("selected.marker.color"),y("unselected.marker.color"),y("selected.marker.size"),y("unselected.marker.size")),v.noLine||(y("marker.line.color",b&&!Array.isArray(b)&&h.marker.color!==b?b:m?l.background:l.defaultLine),f(d,"marker.line")&&s(d,h,g,y,{prefix:"marker.line.",cLetter:"c"}),y("marker.line.width",m?1:0)),m&&(y("marker.sizeref"),y("marker.sizemin"),y("marker.sizemode")),v.gradient&&y("marker.gradient.type")!=="none"&&y("marker.gradient.color")}},73927:function(o,a,n){var l=n(71828).dateTick0,f=n(50606).ONEWEEK;function s(u,d){return l(d,u%f==0?1:0)}o.exports=function(u,d,h,p,g){if(g||(g={x:!0,y:!0}),g.x){var y=p("xperiod");y&&(p("xperiod0",s(y,d.xcalendar)),p("xperiodalignment"))}if(g.y){var v=p("yperiod");v&&(p("yperiod0",s(v,d.ycalendar)),p("yperiodalignment"))}}},32663:function(o,a,n){var l=n(39898),f=n(73972),s=n(71828),u=s.ensureSingle,d=s.identity,h=n(91424),p=n(34098),g=n(34621),y=n(68687),v=n(61082).tester;function m(b,x,_,w,k,T,M){var S,C=b._context.staticPlot;(function(xe,ue,ge,be,we){var ke=ge.xaxis,Ae=ge.yaxis,Ee=l.extent(s.simpleMap(ke.range,ke.r2c)),De=l.extent(s.simpleMap(Ae.range,Ae.r2c)),Re=be[0].trace;if(p.hasMarkers(Re)){var Ie=Re.marker.maxdisplayed;if(Ie!==0){var Be=be.filter(function(at){return at.x>=Ee[0]&&at.x<=Ee[1]&&at.y>=De[0]&&at.y<=De[1]}),Ue=Math.ceil(Be.length/Ie),qe=0;we.forEach(function(at,lt){var ct=at[0].trace;p.hasMarkers(ct)&&ct.marker.maxdisplayed>0&<0;function D(xe){return P?xe.transition():xe}var O=_.xaxis,R=_.yaxis,F=w[0].trace,A=F.line,z=l.select(T),B=u(z,"g","errorbars"),$=u(z,"g","lines"),j=u(z,"g","points"),N=u(z,"g","text");if(f.getComponentMethod("errorbars","plot")(b,B,_,M),F.visible===!0){var E,W;D(z).style("opacity",F.opacity);var G=F.fill.charAt(F.fill.length-1);G!=="x"&&G!=="y"&&(G=""),w[0][_.isRangePlot?"nodeRangePlot3":"node3"]=z;var L,q,H="",V=[],te=F._prevtrace;te&&(H=te._prevRevpath||"",W=te._nextFill,V=te._polygons);var ee,U,Q,Y,Z,X,re,ie="",le="",se=[],pe=s.noop;if(E=F._ownFill,p.hasLines(F)||F.fill!=="none"){for(W&&W.datum(w),["hv","vh","hvh","vhv"].indexOf(A.shape)!==-1?(ee=h.steps(A.shape),U=h.steps(A.shape.split("").reverse().join(""))):ee=U=A.shape==="spline"?function(xe){var ue=xe[xe.length-1];return xe.length>1&&xe[0][0]===ue[0]&&xe[0][1]===ue[1]?h.smoothclosed(xe.slice(1),A.smoothing):h.smoothopen(xe,A.smoothing)}:function(xe){return"M"+xe.join("L")},Q=function(xe){return U(xe.reverse())},se=g(w,{xaxis:O,yaxis:R,trace:F,connectGaps:F.connectgaps,baseTolerance:Math.max(A.width||1,3)/4,shape:A.shape,backoff:A.backoff,simplify:A.simplify,fill:F.fill}),re=F._polygons=new Array(se.length),S=0;S0,D=y(b,x,_);(M=w.selectAll("g.trace").data(D,function(O){return O[0].trace.uid})).enter().append("g").attr("class",function(O){return"trace scatter trace"+O[0].trace.uid}).style("stroke-miterlimit",2),M.order(),function(O,R,F){R.each(function(A){var z=u(l.select(this),"g","fills");h.setClipUrl(z,F.layerClipId,O);var B=A[0].trace,$=[];B._ownfill&&$.push("_ownFill"),B._nexttrace&&$.push("_nextFill");var j=z.selectAll("g").data($,d);j.enter().append("g"),j.exit().each(function(N){B[N]=null}).remove(),j.order().each(function(N){B[N]=u(l.select(this),"path","js-fill")})})}(b,M,x),P?(T&&(S=T()),l.transition().duration(k.duration).ease(k.easing).each("end",function(){S&&S()}).each("interrupt",function(){S&&S()}).each(function(){w.selectAll("g.trace").each(function(O,R){m(b,R,x,O,D,this,k)})})):M.each(function(O,R){m(b,R,x,O,D,this,k)}),C&&M.exit().remove(),w.selectAll("path:not([d])").remove()}},98002:function(o,a,n){var l=n(34098);o.exports=function(f,s){var u,d,h,p,g=f.cd,y=f.xaxis,v=f.yaxis,m=[],b=g[0].trace;if(!l.hasMarkers(b)&&!l.hasText(b))return[];if(s===!1)for(u=0;u"),p.hovertemplate=x.hovertemplate,h}function C(P,D){M.push(P._hovertitle+": "+D)}}},52979:function(o,a,n){o.exports={attributes:n(50413),supplyDefaults:n(46008),colorbar:n(4898),formatLabels:n(93645),calc:n(54337),plot:n(7507),style:n(16296).style,styleOnSelect:n(16296).styleOnSelect,hoverPoints:n(47250),selectPoints:n(98002),eventData:n(4524),moduleType:"trace",name:"scatterternary",basePlotModule:n(61639),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}},7507:function(o,a,n){var l=n(32663);o.exports=function(f,s,u){var d=s.plotContainer;d.select(".scatterlayer").selectAll("*").remove();for(var h=s.xaxis,p=s.yaxis,g={xaxis:h,yaxis:p,plot:d,layerClipId:s._hasClipOnAxisFalse?s.clipIdRelative:null},y=s.layers.frontplot.select("g.scatterlayer"),v=0;v0){var P,D,O,R,F,A=h.xa,z=h.ya;w.orientation==="h"?(F=p,P="y",O=z,D="x",R=A):(F=g,P="x",O=A,D="y",R=z);var B=_[h.index];if(F>=B.span[0]&&F<=B.span[1]){var $=f.extendFlat({},h),j=R.c2p(F,!0),N=d.getKdeValue(B,w,F),E=d.getPositionOnKdePath(B,w,j),W=O._offset,G=O._length;$[P+"0"]=E[0],$[P+"1"]=E[1],$[D+"0"]=$[D+"1"]=j,$[D+"Label"]=D+": "+s.hoverLabelText(R,F,w[D+"hoverformat"])+", "+_[0].t.labels.kde+" "+N.toFixed(3);for(var L=0,q=0;qj&&(j=G,N=W)}}return j?A(N):d};case"rms":return function(z,B){for(var $=0,j=0,N=0;N":return function(V){return H(V)>L};case">=":return function(V){return H(V)>=L};case"[]":return function(V){var te=H(V);return te>=L[0]&&te<=L[1]};case"()":return function(V){var te=H(V);return te>L[0]&&te=L[0]&&teL[0]&&te<=L[1]};case"][":return function(V){var te=H(V);return te<=L[0]||te>=L[1]};case")(":return function(V){var te=H(V);return teL[1]};case"](":return function(V){var te=H(V);return te<=L[0]||te>L[1]};case")[":return function(V){var te=H(V);return te=L[1]};case"{}":return function(V){return L.indexOf(H(V))!==-1};case"}{":return function(V){return L.indexOf(H(V))===-1}}}(m,s.getDataToCoordFunc(y,v,x,b),w),D={},O={},R=0;T?(S=function(B){D[B.astr]=l.extendDeep([],B.get()),B.set(new Array(_))},C=function(B,$){var j=D[B.astr][$];B.get()[$]=j}):(S=function(B){D[B.astr]=l.extendDeep([],B.get()),B.set([])},C=function(B,$){var j=D[B.astr][$];B.get().push(j)}),z(S);for(var F=u(v.transforms,m),A=0;A<_;A++)P(b[A])?(z(C,A),O[R++]=F(A)):T&&R++;m._indexToPoints=O,v._length=R}}function z(B,$){for(var j=0;j1?"%{group} (%{trace})":"%{group}");var b=h.styles,x=v.styles=[];if(b)for(y=0;yy)throw new RangeError('The value "'+J+'" is invalid for option "size"');var ne=new Uint8Array(J);return Object.setPrototypeOf(ne,m.prototype),ne}function m(J,ne,de){if(typeof J=="number"){if(typeof ne=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _(J)}return b(J,ne,de)}function b(J,ne,de){if(typeof J=="string")return function(ge,be){if(typeof be=="string"&&be!==""||(be="utf8"),!m.isEncoding(be))throw new TypeError("Unknown encoding: "+be);var we=0|M(ge,be),ke=v(we),Ae=ke.write(ge,be);return Ae!==we&&(ke=ke.slice(0,Ae)),ke}(J,ne);if(ArrayBuffer.isView(J))return function(ge){if(Se(ge,Uint8Array)){var be=new Uint8Array(ge);return k(be.buffer,be.byteOffset,be.byteLength)}return w(ge)}(J);if(J==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+d(J));if(Se(J,ArrayBuffer)||J&&Se(J.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Se(J,SharedArrayBuffer)||J&&Se(J.buffer,SharedArrayBuffer)))return k(J,ne,de);if(typeof J=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var xe=J.valueOf&&J.valueOf();if(xe!=null&&xe!==J)return m.from(xe,ne,de);var ue=function(ge){if(m.isBuffer(ge)){var be=0|T(ge.length),we=v(be);return we.length===0||ge.copy(we,0,0,be),we}return ge.length!==void 0?typeof ge.length!="number"||Oe(ge.length)?v(0):w(ge):ge.type==="Buffer"&&Array.isArray(ge.data)?w(ge.data):void 0}(J);if(ue)return ue;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof J[Symbol.toPrimitive]=="function")return m.from(J[Symbol.toPrimitive]("string"),ne,de);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+d(J))}function x(J){if(typeof J!="number")throw new TypeError('"size" argument must be of type number');if(J<0)throw new RangeError('The value "'+J+'" is invalid for option "size"')}function _(J){return x(J),v(J<0?0:0|T(J))}function w(J){for(var ne=J.length<0?0:0|T(J.length),de=v(ne),xe=0;xe=y)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+y.toString(16)+" bytes");return 0|J}function M(J,ne){if(m.isBuffer(J))return J.length;if(ArrayBuffer.isView(J)||Se(J,ArrayBuffer))return J.byteLength;if(typeof J!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+d(J));var de=J.length,xe=arguments.length>2&&arguments[2]===!0;if(!xe&&de===0)return 0;for(var ue=!1;;)switch(ne){case"ascii":case"latin1":case"binary":return de;case"utf8":case"utf-8":return se(J).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*de;case"hex":return de>>>1;case"base64":return pe(J).length;default:if(ue)return xe?-1:se(J).length;ne=(""+ne).toLowerCase(),ue=!0}}function S(J,ne,de){var xe=!1;if((ne===void 0||ne<0)&&(ne=0),ne>this.length||((de===void 0||de>this.length)&&(de=this.length),de<=0)||(de>>>=0)<=(ne>>>=0))return"";for(J||(J="utf8");;)switch(J){case"hex":return W(this,ne,de);case"utf8":case"utf-8":return $(this,ne,de);case"ascii":return N(this,ne,de);case"latin1":case"binary":return E(this,ne,de);case"base64":return B(this,ne,de);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,ne,de);default:if(xe)throw new TypeError("Unknown encoding: "+J);J=(J+"").toLowerCase(),xe=!0}}function C(J,ne,de){var xe=J[ne];J[ne]=J[de],J[de]=xe}function P(J,ne,de,xe,ue){if(J.length===0)return-1;if(typeof de=="string"?(xe=de,de=0):de>2147483647?de=2147483647:de<-2147483648&&(de=-2147483648),Oe(de=+de)&&(de=ue?0:J.length-1),de<0&&(de=J.length+de),de>=J.length){if(ue)return-1;de=J.length-1}else if(de<0){if(!ue)return-1;de=0}if(typeof ne=="string"&&(ne=m.from(ne,xe)),m.isBuffer(ne))return ne.length===0?-1:D(J,ne,de,xe,ue);if(typeof ne=="number")return ne&=255,typeof Uint8Array.prototype.indexOf=="function"?ue?Uint8Array.prototype.indexOf.call(J,ne,de):Uint8Array.prototype.lastIndexOf.call(J,ne,de):D(J,[ne],de,xe,ue);throw new TypeError("val must be string, number or Buffer")}function D(J,ne,de,xe,ue){var ge,be=1,we=J.length,ke=ne.length;if(xe!==void 0&&((xe=String(xe).toLowerCase())==="ucs2"||xe==="ucs-2"||xe==="utf16le"||xe==="utf-16le")){if(J.length<2||ne.length<2)return-1;be=2,we/=2,ke/=2,de/=2}function Ae(Ie,Be){return be===1?Ie[Be]:Ie.readUInt16BE(Be*be)}if(ue){var Ee=-1;for(ge=de;gewe&&(de=we-ke),ge=de;ge>=0;ge--){for(var De=!0,Re=0;Reue&&(xe=ue):xe=ue;var ge,be=ne.length;for(xe>be/2&&(xe=be/2),ge=0;ge>8,ke=be%256,Ae.push(ke),Ae.push(we);return Ae}(ne,J.length-de),J,de,xe)}function B(J,ne,de){return ne===0&&de===J.length?h.fromByteArray(J):h.fromByteArray(J.slice(ne,de))}function $(J,ne,de){de=Math.min(J.length,de);for(var xe=[],ue=ne;ue239?4:ge>223?3:ge>191?2:1;if(ue+we<=de){var ke=void 0,Ae=void 0,Ee=void 0,De=void 0;switch(we){case 1:ge<128&&(be=ge);break;case 2:(192&(ke=J[ue+1]))==128&&(De=(31&ge)<<6|63&ke)>127&&(be=De);break;case 3:ke=J[ue+1],Ae=J[ue+2],(192&ke)==128&&(192&Ae)==128&&(De=(15&ge)<<12|(63&ke)<<6|63&Ae)>2047&&(De<55296||De>57343)&&(be=De);break;case 4:ke=J[ue+1],Ae=J[ue+2],Ee=J[ue+3],(192&ke)==128&&(192&Ae)==128&&(192&Ee)==128&&(De=(15&ge)<<18|(63&ke)<<12|(63&Ae)<<6|63&Ee)>65535&&De<1114112&&(be=De)}}be===null?(be=65533,we=1):be>65535&&(be-=65536,xe.push(be>>>10&1023|55296),be=56320|1023&be),xe.push(be),ue+=we}return function(Re){var Ie=Re.length;if(Ie<=j)return String.fromCharCode.apply(String,Re);for(var Be="",Ue=0;Ue"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(m.prototype,"parent",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.buffer}}),Object.defineProperty(m.prototype,"offset",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.byteOffset}}),m.poolSize=8192,m.from=function(J,ne,de){return b(J,ne,de)},Object.setPrototypeOf(m.prototype,Uint8Array.prototype),Object.setPrototypeOf(m,Uint8Array),m.alloc=function(J,ne,de){return function(xe,ue,ge){return x(xe),xe<=0?v(xe):ue!==void 0?typeof ge=="string"?v(xe).fill(ue,ge):v(xe).fill(ue):v(xe)}(J,ne,de)},m.allocUnsafe=function(J){return _(J)},m.allocUnsafeSlow=function(J){return _(J)},m.isBuffer=function(J){return J!=null&&J._isBuffer===!0&&J!==m.prototype},m.compare=function(J,ne){if(Se(J,Uint8Array)&&(J=m.from(J,J.offset,J.byteLength)),Se(ne,Uint8Array)&&(ne=m.from(ne,ne.offset,ne.byteLength)),!m.isBuffer(J)||!m.isBuffer(ne))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(J===ne)return 0;for(var de=J.length,xe=ne.length,ue=0,ge=Math.min(de,xe);uexe.length?(m.isBuffer(ge)||(ge=m.from(ge)),ge.copy(xe,ue)):Uint8Array.prototype.set.call(xe,ge,ue);else{if(!m.isBuffer(ge))throw new TypeError('"list" argument must be an Array of Buffers');ge.copy(xe,ue)}ue+=ge.length}return xe},m.byteLength=M,m.prototype._isBuffer=!0,m.prototype.swap16=function(){var J=this.length;if(J%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ne=0;nene&&(J+=" ... "),""},g&&(m.prototype[g]=m.prototype.inspect),m.prototype.compare=function(J,ne,de,xe,ue){if(Se(J,Uint8Array)&&(J=m.from(J,J.offset,J.byteLength)),!m.isBuffer(J))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+d(J));if(ne===void 0&&(ne=0),de===void 0&&(de=J?J.length:0),xe===void 0&&(xe=0),ue===void 0&&(ue=this.length),ne<0||de>J.length||xe<0||ue>this.length)throw new RangeError("out of range index");if(xe>=ue&&ne>=de)return 0;if(xe>=ue)return-1;if(ne>=de)return 1;if(this===J)return 0;for(var ge=(ue>>>=0)-(xe>>>=0),be=(de>>>=0)-(ne>>>=0),we=Math.min(ge,be),ke=this.slice(xe,ue),Ae=J.slice(ne,de),Ee=0;Ee>>=0,isFinite(de)?(de>>>=0,xe===void 0&&(xe="utf8")):(xe=de,de=void 0)}var ue=this.length-ne;if((de===void 0||de>ue)&&(de=ue),J.length>0&&(de<0||ne<0)||ne>this.length)throw new RangeError("Attempt to write outside buffer bounds");xe||(xe="utf8");for(var ge=!1;;)switch(xe){case"hex":return O(this,J,ne,de);case"utf8":case"utf-8":return R(this,J,ne,de);case"ascii":case"latin1":case"binary":return F(this,J,ne,de);case"base64":return A(this,J,ne,de);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,J,ne,de);default:if(ge)throw new TypeError("Unknown encoding: "+xe);xe=(""+xe).toLowerCase(),ge=!0}},m.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var j=4096;function N(J,ne,de){var xe="";de=Math.min(J.length,de);for(var ue=ne;uexe)&&(de=xe);for(var ue="",ge=ne;gede)throw new RangeError("Trying to access beyond buffer length")}function q(J,ne,de,xe,ue,ge){if(!m.isBuffer(J))throw new TypeError('"buffer" argument must be a Buffer instance');if(ne>ue||neJ.length)throw new RangeError("Index out of range")}function H(J,ne,de,xe,ue){X(ne,xe,ue,J,de,7);var ge=Number(ne&BigInt(4294967295));J[de++]=ge,ge>>=8,J[de++]=ge,ge>>=8,J[de++]=ge,ge>>=8,J[de++]=ge;var be=Number(ne>>BigInt(32)&BigInt(4294967295));return J[de++]=be,be>>=8,J[de++]=be,be>>=8,J[de++]=be,be>>=8,J[de++]=be,de}function V(J,ne,de,xe,ue){X(ne,xe,ue,J,de,7);var ge=Number(ne&BigInt(4294967295));J[de+7]=ge,ge>>=8,J[de+6]=ge,ge>>=8,J[de+5]=ge,ge>>=8,J[de+4]=ge;var be=Number(ne>>BigInt(32)&BigInt(4294967295));return J[de+3]=be,be>>=8,J[de+2]=be,be>>=8,J[de+1]=be,be>>=8,J[de]=be,de+8}function te(J,ne,de,xe,ue,ge){if(de+xe>J.length)throw new RangeError("Index out of range");if(de<0)throw new RangeError("Index out of range")}function ee(J,ne,de,xe,ue){return ne=+ne,de>>>=0,ue||te(J,0,de,4),p.write(J,ne,de,xe,23,4),de+4}function U(J,ne,de,xe,ue){return ne=+ne,de>>>=0,ue||te(J,0,de,8),p.write(J,ne,de,xe,52,8),de+8}m.prototype.slice=function(J,ne){var de=this.length;(J=~~J)<0?(J+=de)<0&&(J=0):J>de&&(J=de),(ne=ne===void 0?de:~~ne)<0?(ne+=de)<0&&(ne=0):ne>de&&(ne=de),ne>>=0,ne>>>=0,de||L(J,ne,this.length);for(var xe=this[J],ue=1,ge=0;++ge>>=0,ne>>>=0,de||L(J,ne,this.length);for(var xe=this[J+--ne],ue=1;ne>0&&(ue*=256);)xe+=this[J+--ne]*ue;return xe},m.prototype.readUint8=m.prototype.readUInt8=function(J,ne){return J>>>=0,ne||L(J,1,this.length),this[J]},m.prototype.readUint16LE=m.prototype.readUInt16LE=function(J,ne){return J>>>=0,ne||L(J,2,this.length),this[J]|this[J+1]<<8},m.prototype.readUint16BE=m.prototype.readUInt16BE=function(J,ne){return J>>>=0,ne||L(J,2,this.length),this[J]<<8|this[J+1]},m.prototype.readUint32LE=m.prototype.readUInt32LE=function(J,ne){return J>>>=0,ne||L(J,4,this.length),(this[J]|this[J+1]<<8|this[J+2]<<16)+16777216*this[J+3]},m.prototype.readUint32BE=m.prototype.readUInt32BE=function(J,ne){return J>>>=0,ne||L(J,4,this.length),16777216*this[J]+(this[J+1]<<16|this[J+2]<<8|this[J+3])},m.prototype.readBigUInt64LE=ce(function(J){re(J>>>=0,"offset");var ne=this[J],de=this[J+7];ne!==void 0&&de!==void 0||ie(J,this.length-8);var xe=ne+this[++J]*Math.pow(2,8)+this[++J]*Math.pow(2,16)+this[++J]*Math.pow(2,24),ue=this[++J]+this[++J]*Math.pow(2,8)+this[++J]*Math.pow(2,16)+de*Math.pow(2,24);return BigInt(xe)+(BigInt(ue)<>>=0,"offset");var ne=this[J],de=this[J+7];ne!==void 0&&de!==void 0||ie(J,this.length-8);var xe=ne*Math.pow(2,24)+this[++J]*Math.pow(2,16)+this[++J]*Math.pow(2,8)+this[++J],ue=this[++J]*Math.pow(2,24)+this[++J]*Math.pow(2,16)+this[++J]*Math.pow(2,8)+de;return(BigInt(xe)<>>=0,ne>>>=0,de||L(J,ne,this.length);for(var xe=this[J],ue=1,ge=0;++ge=(ue*=128)&&(xe-=Math.pow(2,8*ne)),xe},m.prototype.readIntBE=function(J,ne,de){J>>>=0,ne>>>=0,de||L(J,ne,this.length);for(var xe=ne,ue=1,ge=this[J+--xe];xe>0&&(ue*=256);)ge+=this[J+--xe]*ue;return ge>=(ue*=128)&&(ge-=Math.pow(2,8*ne)),ge},m.prototype.readInt8=function(J,ne){return J>>>=0,ne||L(J,1,this.length),128&this[J]?-1*(255-this[J]+1):this[J]},m.prototype.readInt16LE=function(J,ne){J>>>=0,ne||L(J,2,this.length);var de=this[J]|this[J+1]<<8;return 32768&de?4294901760|de:de},m.prototype.readInt16BE=function(J,ne){J>>>=0,ne||L(J,2,this.length);var de=this[J+1]|this[J]<<8;return 32768&de?4294901760|de:de},m.prototype.readInt32LE=function(J,ne){return J>>>=0,ne||L(J,4,this.length),this[J]|this[J+1]<<8|this[J+2]<<16|this[J+3]<<24},m.prototype.readInt32BE=function(J,ne){return J>>>=0,ne||L(J,4,this.length),this[J]<<24|this[J+1]<<16|this[J+2]<<8|this[J+3]},m.prototype.readBigInt64LE=ce(function(J){re(J>>>=0,"offset");var ne=this[J],de=this[J+7];ne!==void 0&&de!==void 0||ie(J,this.length-8);var xe=this[J+4]+this[J+5]*Math.pow(2,8)+this[J+6]*Math.pow(2,16)+(de<<24);return(BigInt(xe)<>>=0,"offset");var ne=this[J],de=this[J+7];ne!==void 0&&de!==void 0||ie(J,this.length-8);var xe=(ne<<24)+this[++J]*Math.pow(2,16)+this[++J]*Math.pow(2,8)+this[++J];return(BigInt(xe)<>>=0,ne||L(J,4,this.length),p.read(this,J,!0,23,4)},m.prototype.readFloatBE=function(J,ne){return J>>>=0,ne||L(J,4,this.length),p.read(this,J,!1,23,4)},m.prototype.readDoubleLE=function(J,ne){return J>>>=0,ne||L(J,8,this.length),p.read(this,J,!0,52,8)},m.prototype.readDoubleBE=function(J,ne){return J>>>=0,ne||L(J,8,this.length),p.read(this,J,!1,52,8)},m.prototype.writeUintLE=m.prototype.writeUIntLE=function(J,ne,de,xe){J=+J,ne>>>=0,de>>>=0,xe||q(this,J,ne,de,Math.pow(2,8*de)-1,0);var ue=1,ge=0;for(this[ne]=255&J;++ge>>=0,de>>>=0,xe||q(this,J,ne,de,Math.pow(2,8*de)-1,0);var ue=de-1,ge=1;for(this[ne+ue]=255&J;--ue>=0&&(ge*=256);)this[ne+ue]=J/ge&255;return ne+de},m.prototype.writeUint8=m.prototype.writeUInt8=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,1,255,0),this[ne]=255&J,ne+1},m.prototype.writeUint16LE=m.prototype.writeUInt16LE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,2,65535,0),this[ne]=255&J,this[ne+1]=J>>>8,ne+2},m.prototype.writeUint16BE=m.prototype.writeUInt16BE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,2,65535,0),this[ne]=J>>>8,this[ne+1]=255&J,ne+2},m.prototype.writeUint32LE=m.prototype.writeUInt32LE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,4,4294967295,0),this[ne+3]=J>>>24,this[ne+2]=J>>>16,this[ne+1]=J>>>8,this[ne]=255&J,ne+4},m.prototype.writeUint32BE=m.prototype.writeUInt32BE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,4,4294967295,0),this[ne]=J>>>24,this[ne+1]=J>>>16,this[ne+2]=J>>>8,this[ne+3]=255&J,ne+4},m.prototype.writeBigUInt64LE=ce(function(J){return H(this,J,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),m.prototype.writeBigUInt64BE=ce(function(J){return V(this,J,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),m.prototype.writeIntLE=function(J,ne,de,xe){if(J=+J,ne>>>=0,!xe){var ue=Math.pow(2,8*de-1);q(this,J,ne,de,ue-1,-ue)}var ge=0,be=1,we=0;for(this[ne]=255&J;++ge>0)-we&255;return ne+de},m.prototype.writeIntBE=function(J,ne,de,xe){if(J=+J,ne>>>=0,!xe){var ue=Math.pow(2,8*de-1);q(this,J,ne,de,ue-1,-ue)}var ge=de-1,be=1,we=0;for(this[ne+ge]=255&J;--ge>=0&&(be*=256);)J<0&&we===0&&this[ne+ge+1]!==0&&(we=1),this[ne+ge]=(J/be>>0)-we&255;return ne+de},m.prototype.writeInt8=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,1,127,-128),J<0&&(J=255+J+1),this[ne]=255&J,ne+1},m.prototype.writeInt16LE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,2,32767,-32768),this[ne]=255&J,this[ne+1]=J>>>8,ne+2},m.prototype.writeInt16BE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,2,32767,-32768),this[ne]=J>>>8,this[ne+1]=255&J,ne+2},m.prototype.writeInt32LE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,4,2147483647,-2147483648),this[ne]=255&J,this[ne+1]=J>>>8,this[ne+2]=J>>>16,this[ne+3]=J>>>24,ne+4},m.prototype.writeInt32BE=function(J,ne,de){return J=+J,ne>>>=0,de||q(this,J,ne,4,2147483647,-2147483648),J<0&&(J=4294967295+J+1),this[ne]=J>>>24,this[ne+1]=J>>>16,this[ne+2]=J>>>8,this[ne+3]=255&J,ne+4},m.prototype.writeBigInt64LE=ce(function(J){return H(this,J,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),m.prototype.writeBigInt64BE=ce(function(J){return V(this,J,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),m.prototype.writeFloatLE=function(J,ne,de){return ee(this,J,ne,!0,de)},m.prototype.writeFloatBE=function(J,ne,de){return ee(this,J,ne,!1,de)},m.prototype.writeDoubleLE=function(J,ne,de){return U(this,J,ne,!0,de)},m.prototype.writeDoubleBE=function(J,ne,de){return U(this,J,ne,!1,de)},m.prototype.copy=function(J,ne,de,xe){if(!m.isBuffer(J))throw new TypeError("argument should be a Buffer");if(de||(de=0),xe||xe===0||(xe=this.length),ne>=J.length&&(ne=J.length),ne||(ne=0),xe>0&&xe=this.length)throw new RangeError("Index out of range");if(xe<0)throw new RangeError("sourceEnd out of bounds");xe>this.length&&(xe=this.length),J.length-ne>>=0,de=de===void 0?this.length:de>>>0,J||(J=0),typeof J=="number")for(ge=ne;ge"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var Ee,De=u(be);if(we){var Re=u(this).constructor;Ee=Reflect.construct(De,arguments,Re)}else Ee=De.apply(this,arguments);return function(Ie,Be){if(Be&&(d(Be)==="object"||typeof Be=="function"))return Be;if(Be!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return s(Ie)}(this,Ee)});function Ae(){var Ee;return function(De,Re){if(!(De instanceof Re))throw new TypeError("Cannot call a class as a function")}(this,Ae),Ee=ke.call(this),Object.defineProperty(s(Ee),"message",{value:ne.apply(s(Ee),arguments),writable:!0,configurable:!0}),Ee.name="".concat(Ee.name," [").concat(J,"]"),Ee.stack,delete Ee.name,Ee}return ue=Ae,(ge=[{key:"code",get:function(){return J},set:function(Ee){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Ee,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(J,"]: ").concat(this.message)}}])&&l(ue.prototype,ge),Object.defineProperty(ue,"prototype",{writable:!1}),Ae}(de)}function Z(J){for(var ne="",de=J.length,xe=J[0]==="-"?1:0;de>=xe+4;de-=3)ne="_".concat(J.slice(de-3,de)).concat(ne);return"".concat(J.slice(0,de)).concat(ne)}function X(J,ne,de,xe,ue,ge){if(J>de||J= 0".concat(we," and < 2").concat(we," ** ").concat(8*(ge+1)).concat(we):">= -(2".concat(we," ** ").concat(8*(ge+1)-1).concat(we,") and < 2 ** ")+"".concat(8*(ge+1)-1).concat(we),new Q.ERR_OUT_OF_RANGE("value",be,J)}(function(ke,Ae,Ee){re(Ae,"offset"),ke[Ae]!==void 0&&ke[Ae+Ee]!==void 0||ie(Ae,ke.length-(Ee+1))})(xe,ue,ge)}function re(J,ne){if(typeof J!="number")throw new Q.ERR_INVALID_ARG_TYPE(ne,"number",J)}function ie(J,ne,de){throw Math.floor(J)!==J?(re(J,de),new Q.ERR_OUT_OF_RANGE("offset","an integer",J)):ne<0?new Q.ERR_BUFFER_OUT_OF_BOUNDS:new Q.ERR_OUT_OF_RANGE("offset",">= ".concat(0," and <= ").concat(ne),J)}Y("ERR_BUFFER_OUT_OF_BOUNDS",function(J){return J?"".concat(J," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError),Y("ERR_INVALID_ARG_TYPE",function(J,ne){return'The "'.concat(J,'" argument must be of type number. Received type ').concat(d(ne))},TypeError),Y("ERR_OUT_OF_RANGE",function(J,ne,de){var xe='The value of "'.concat(J,'" is out of range.'),ue=de;return Number.isInteger(de)&&Math.abs(de)>Math.pow(2,32)?ue=Z(String(de)):typeof de=="bigint"&&(ue=String(de),(de>Math.pow(BigInt(2),BigInt(32))||de<-Math.pow(BigInt(2),BigInt(32)))&&(ue=Z(ue)),ue+="n"),xe+" It must be ".concat(ne,". Received ").concat(ue)},RangeError);var le=/[^+/0-9A-Za-z-_]/g;function se(J,ne){var de;ne=ne||1/0;for(var xe=J.length,ue=null,ge=[],be=0;be55295&&de<57344){if(!ue){if(de>56319){(ne-=3)>-1&&ge.push(239,191,189);continue}if(be+1===xe){(ne-=3)>-1&&ge.push(239,191,189);continue}ue=de;continue}if(de<56320){(ne-=3)>-1&&ge.push(239,191,189),ue=de;continue}de=65536+(ue-55296<<10|de-56320)}else ue&&(ne-=3)>-1&&ge.push(239,191,189);if(ue=null,de<128){if((ne-=1)<0)break;ge.push(de)}else if(de<2048){if((ne-=2)<0)break;ge.push(de>>6|192,63&de|128)}else if(de<65536){if((ne-=3)<0)break;ge.push(de>>12|224,de>>6&63|128,63&de|128)}else{if(!(de<1114112))throw new Error("Invalid code point");if((ne-=4)<0)break;ge.push(de>>18|240,de>>12&63|128,de>>6&63|128,63&de|128)}}return ge}function pe(J){return h.toByteArray(function(ne){if((ne=(ne=ne.split("=")[0]).trim().replace(le,"")).length<2)return"";for(;ne.length%4!=0;)ne+="=";return ne}(J))}function Te(J,ne,de,xe){var ue;for(ue=0;ue=ne.length||ue>=J.length);++ue)ne[ue+de]=J[ue];return ue}function Se(J,ne){return J instanceof ne||J!=null&&J.constructor!=null&&J.constructor.name!=null&&J.constructor.name===ne.name}function Oe(J){return J!=J}var Me=function(){for(var J="0123456789abcdef",ne=new Array(256),de=0;de<16;++de)for(var xe=16*de,ue=0;ue<16;++ue)ne[xe+ue]=J[de]+J[ue];return ne}();function ce(J){return typeof BigInt>"u"?ye:J}function ye(){throw new Error("BigInt not supported")}},35791:function(o){o.exports=f,o.exports.isMobile=f,o.exports.default=f;var a=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,n=/CrOS/,l=/android|ipad|playbook|silk/i;function f(s){s||(s={});var u=s.ua;if(u||typeof navigator>"u"||(u=navigator.userAgent),u&&u.headers&&typeof u.headers["user-agent"]=="string"&&(u=u.headers["user-agent"]),typeof u!="string")return!1;var d=a.test(u)&&!n.test(u)||!!s.tablet&&l.test(u);return!d&&s.tablet&&s.featureDetect&&navigator&&navigator.maxTouchPoints>1&&u.indexOf("Macintosh")!==-1&&u.indexOf("Safari")!==-1&&(d=!0),d}},39898:function(o,a,n){var l,f;(function(){var s={version:"3.8.0"},u=[].slice,d=function(I){return u.call(I)},h=self.document;function p(I){return I&&(I.ownerDocument||I.document||I).documentElement}function g(I){return I&&(I.ownerDocument&&I.ownerDocument.defaultView||I.document&&I||I.defaultView)}if(h)try{d(h.documentElement.childNodes)[0].nodeType}catch{d=function(K){for(var ae=K.length,fe=new Array(ae);ae--;)fe[ae]=K[ae];return fe}}if(Date.now||(Date.now=function(){return+new Date}),h)try{h.createElement("DIV").style.setProperty("opacity",0,"")}catch{var y=this.Element.prototype,v=y.setAttribute,m=y.setAttributeNS,b=this.CSSStyleDeclaration.prototype,x=b.setProperty;y.setAttribute=function(K,ae){v.call(this,K,ae+"")},y.setAttributeNS=function(K,ae,fe){m.call(this,K,ae,fe+"")},b.setProperty=function(K,ae,fe){x.call(this,K,ae+"",fe)}}function _(I,K){return IK?1:I>=K?0:NaN}function w(I){return I===null?NaN:+I}function k(I){return!isNaN(I)}function T(I){return{left:function(K,ae,fe,he){for(arguments.length<3&&(fe=0),arguments.length<4&&(he=K.length);fe>>1;I(K[me],ae)<0?fe=me+1:he=me}return fe},right:function(K,ae,fe,he){for(arguments.length<3&&(fe=0),arguments.length<4&&(he=K.length);fe>>1;I(K[me],ae)>0?he=me:fe=me+1}return fe}}}s.ascending=_,s.descending=function(I,K){return KI?1:K>=I?0:NaN},s.min=function(I,K){var ae,fe,he=-1,me=I.length;if(arguments.length===1){for(;++he=fe){ae=fe;break}for(;++hefe&&(ae=fe)}else{for(;++he=fe){ae=fe;break}for(;++hefe&&(ae=fe)}return ae},s.max=function(I,K){var ae,fe,he=-1,me=I.length;if(arguments.length===1){for(;++he=fe){ae=fe;break}for(;++heae&&(ae=fe)}else{for(;++he=fe){ae=fe;break}for(;++heae&&(ae=fe)}return ae},s.extent=function(I,K){var ae,fe,he,me=-1,Ce=I.length;if(arguments.length===1){for(;++me=fe){ae=he=fe;break}for(;++mefe&&(ae=fe),he=fe){ae=he=fe;break}for(;++mefe&&(ae=fe),he1)return Ce/(Le-1)},s.deviation=function(){var I=s.variance.apply(this,arguments);return I&&Math.sqrt(I)};var M=T(_);function S(I){return I.length}s.bisectLeft=M.left,s.bisect=s.bisectRight=M.right,s.bisector=function(I){return T(I.length===1?function(K,ae){return _(I(K),ae)}:I)},s.shuffle=function(I,K,ae){(me=arguments.length)<3&&(ae=I.length,me<2&&(K=0));for(var fe,he,me=ae-K;me;)he=Math.random()*me--|0,fe=I[me+K],I[me+K]=I[he+K],I[he+K]=fe;return I},s.permute=function(I,K){for(var ae=K.length,fe=new Array(ae);ae--;)fe[ae]=I[K[ae]];return fe},s.pairs=function(I){for(var K=0,ae=I.length-1,fe=I[0],he=new Array(ae<0?0:ae);K=0;)for(K=(fe=I[he]).length;--K>=0;)ae[--Ce]=fe[K];return ae};var C=Math.abs;function P(I,K){for(var ae in K)Object.defineProperty(I.prototype,ae,{value:K[ae],enumerable:!1})}function D(){this._=Object.create(null)}s.range=function(I,K,ae){if(arguments.length<3&&(ae=1,arguments.length<2&&(K=I,I=0)),(K-I)/ae==1/0)throw new Error("infinite range");var fe,he=[],me=function(Pe){for(var Le=1;Pe*Le%1;)Le*=10;return Le}(C(ae)),Ce=-1;if(I*=me,K*=me,(ae*=me)<0)for(;(fe=I+ae*++Ce)>K;)he.push(fe/me);else for(;(fe=I+ae*++Ce)=fe.length)return K?K.call(ae,Le):I?Le.sort(I):Le;for(var He,Xe,rt,vt,Ct=-1,dt=Le.length,xt=fe[Fe++],ot=new D;++Ct=fe.length)return Pe;var Fe=[],He=he[Le++];return Pe.forEach(function(Xe,rt){Fe.push({key:Xe,values:Ce(rt,Le)})}),He?Fe.sort(function(Xe,rt){return He(Xe.key,rt.key)}):Fe}return ae.map=function(Pe,Le){return me(Le,Pe,0)},ae.entries=function(Pe){return Ce(me(s.map,Pe,0),0)},ae.key=function(Pe){return fe.push(Pe),ae},ae.sortKeys=function(Pe){return he[fe.length-1]=Pe,ae},ae.sortValues=function(Pe){return I=Pe,ae},ae.rollup=function(Pe){return K=Pe,ae},ae},s.set=function(I){var K=new E;if(I)for(var ae=0,fe=I.length;ae=0&&(fe=I.slice(ae+1),I=I.slice(0,ae)),I)return arguments.length<2?this[I].on(fe):this[I].on(fe,K);if(arguments.length===2){if(K==null)for(I in this)this.hasOwnProperty(I)&&this[I].on(fe,null);return this}},s.event=null,s.requote=function(I){return I.replace(Y,"\\$&")};var Y=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Z={}.__proto__?function(I,K){I.__proto__=K}:function(I,K){for(var ae in K)I[ae]=K[ae]};function X(I){return Z(I,se),I}var re=function(I,K){return K.querySelector(I)},ie=function(I,K){return K.querySelectorAll(I)},le=function(I,K){var ae=I.matches||I[L(I,"matchesSelector")];return le=function(fe,he){return ae.call(fe,he)},le(I,K)};typeof Sizzle=="function"&&(re=function(I,K){return Sizzle(I,K)[0]||null},ie=Sizzle,le=Sizzle.matchesSelector),s.selection=function(){return s.select(h.documentElement)};var se=s.selection.prototype=[];function pe(I){return typeof I=="function"?I:function(){return re(I,this)}}function Te(I){return typeof I=="function"?I:function(){return ie(I,this)}}se.select=function(I){var K,ae,fe,he,me=[];I=pe(I);for(var Ce=-1,Pe=this.length;++Ce=0&&(ae=I.slice(0,K))!=="xmlns"&&(I=I.slice(K+1)),Oe.hasOwnProperty(ae)?{space:Oe[ae],local:I}:I}},se.attr=function(I,K){if(arguments.length<2){if(typeof I=="string"){var ae=this.node();return(I=s.ns.qualify(I)).local?ae.getAttributeNS(I.space,I.local):ae.getAttribute(I)}for(K in I)this.each(Me(K,I[K]));return this}return this.each(Me(I,K))},se.classed=function(I,K){if(arguments.length<2){if(typeof I=="string"){var ae=this.node(),fe=(I=J(I)).length,he=-1;if(K=ae.classList){for(;++he=0;)(ae=fe[he])&&(me&&me!==ae.nextSibling&&me.parentNode.insertBefore(ae,me),me=ae);return this},se.sort=function(I){I=Ae.apply(this,arguments);for(var K=-1,ae=this.length;++K0&&(I=I.slice(0,he));var Ce=Be.get(I);function Pe(){var Le=this[fe];Le&&(this.removeEventListener(I,Le,Le.$),delete this[fe])}return Ce&&(I=Ce,me=qe),he?K?function(){var Le=me(K,d(arguments));Pe.call(this),this.addEventListener(I,this[fe]=Le,Le.$=ae),Le._=K}:Pe:K?H:function(){var Le,Fe=new RegExp("^__on([^.]+)"+s.requote(I)+"$");for(var He in this)if(Le=He.match(Fe)){var Xe=this[He];this.removeEventListener(Le[1],Xe,Xe.$),delete this[He]}}}s.selection.enter=De,s.selection.enter.prototype=Re,Re.append=se.append,Re.empty=se.empty,Re.node=se.node,Re.call=se.call,Re.size=se.size,Re.select=function(I){for(var K,ae,fe,he,me,Ce=[],Pe=-1,Le=this.length;++Pe=fe&&(fe=Ce+1);!(Le=Fe[fe])&&++fe1?ut:I<-1?-ut:Math.asin(I)}function zt(I){return((I=Math.exp(I))+1/I)/2}var wt=Math.SQRT2;s.interpolateZoom=function(I,K){var ae,fe,he=I[0],me=I[1],Ce=I[2],Pe=K[0],Le=K[1],Fe=K[2],He=Pe-he,Xe=Le-me,rt=He*He+Xe*Xe;if(rt0&&(en=en.transition().duration(rt)),en.call(_t.event)}function Jt(){Ce&&Ce.domain(me.range().map(function(en){return(en-Fe.x)/Fe.k}).map(me.invert)),Le&&Le.domain(Pe.range().map(function(en){return(en-Fe.y)/Fe.k}).map(Pe.invert))}function gn(en){vt++||en({type:"zoomstart"})}function vn(en){Jt(),en({type:"zoom",scale:Fe.k,translate:[Fe.x,Fe.y]})}function kn(en){--vt||(en({type:"zoomend"}),K=null)}function yn(){var en=this,fn=Pt.of(en,arguments),En=0,In=s.select(g(en)).on(dt,function(){En=1,Ht(s.mouse(en),Wn),vn(fn)}).on(xt,function(){In.on(dt,null).on(xt,null),cr(En),kn(fn)}),Wn=ft(s.mouse(en)),cr=lt(en);Rc.call(en),gn(fn)}function Nn(){var en,fn=this,En=Pt.of(fn,arguments),In={},Wn=0,cr=".zoom-"+s.event.changedTouches[0].identifier,Ir="touchmove"+cr,Sr="touchend"+cr,Vr=[],Fr=s.select(fn),Yr=lt(fn);function da(){var Xr=s.touches(fn);return en=Fe.k,Xr.forEach(function(Nr){Nr.identifier in In&&(In[Nr.identifier]=ft(Nr))}),Xr}function Ka(){var Xr=s.event.target;s.select(Xr).on(Ir,ii).on(Sr,oi),Vr.push(Xr);for(var Nr=s.event.changedTouches,va=0,ya=Nr.length;va1){xi=Ta[0];var Bi=Ta[1],Fc=xi[0]-Bi[0],B2=xi[1]-Bi[1];Wn=Fc*Fc+B2*B2}}function ii(){var Xr,Nr,va,ya,Ta=s.touches(fn);Rc.call(fn);for(var Ba=0,xi=Ta.length;Ba360?Pe-=360:Pe<0&&(Pe+=360),Pe<60?fe+(he-fe)*Pe/60:Pe<180?he:Pe<240?fe+(he-fe)*(240-Pe)/60:fe}(Ce))}return I=isNaN(I)?0:(I%=360)<0?I+360:I,K=isNaN(K)||K<0?0:K>1?1:K,fe=2*(ae=ae<0?0:ae>1?1:ae)-(he=ae<=.5?ae*(1+K):ae+K-ae*K),new Et(me(I+120),me(I),me(I-120))}function nt(I,K,ae){return this instanceof nt?(this.h=+I,this.c=+K,void(this.l=+ae)):arguments.length<2?I instanceof nt?new nt(I.h,I.c,I.l):function(fe,he,me){return fe>0?new nt(Math.atan2(me,he)*It,Math.sqrt(he*he+me*me),fe):new nt(NaN,NaN,fe)}(I instanceof tt?I.l:(I=$t((I=s.rgb(I)).r,I.g,I.b)).l,I.a,I.b):new nt(I,K,ae)}Ge.brighter=function(I){return I=Math.pow(.7,arguments.length?I:1),new Ze(this.h,this.s,this.l/I)},Ge.darker=function(I){return I=Math.pow(.7,arguments.length?I:1),new Ze(this.h,this.s,I*this.l)},Ge.rgb=function(){return Ke(this.h,this.s,this.l)},s.hcl=nt;var st=nt.prototype=new We;function mt(I,K,ae){return isNaN(I)&&(I=0),isNaN(K)&&(K=0),new tt(ae,Math.cos(I*=pt)*K,Math.sin(I)*K)}function tt(I,K,ae){return this instanceof tt?(this.l=+I,this.a=+K,void(this.b=+ae)):arguments.length<2?I instanceof tt?new tt(I.l,I.a,I.b):I instanceof nt?mt(I.h,I.c,I.l):$t((I=Et(I)).r,I.g,I.b):new tt(I,K,ae)}st.brighter=function(I){return new nt(this.h,this.c,Math.min(100,this.l+Ft*(arguments.length?I:1)))},st.darker=function(I){return new nt(this.h,this.c,Math.max(0,this.l-Ft*(arguments.length?I:1)))},st.rgb=function(){return mt(this.h,this.c,this.l).rgb()},s.lab=tt;var Ft=18,Vt=.95047,St=1,Nt=1.08883,Dt=tt.prototype=new We;function gt(I,K,ae){var fe=(I+16)/116,he=fe+K/500,me=fe-ae/200;return new Et(qt(3.2404542*(he=ht(he)*Vt)-1.5371385*(fe=ht(fe)*St)-.4985314*(me=ht(me)*Nt)),qt(-.969266*he+1.8760108*fe+.041556*me),qt(.0556434*he-.2040259*fe+1.0572252*me))}function ht(I){return I>.206893034?I*I*I:(I-.13793103448275862)/7.787037}function yt(I){return I>.008856?Math.pow(I,.3333333333333333):7.787037*I+.13793103448275862}function qt(I){return Math.round(255*(I<=.00304?12.92*I:1.055*Math.pow(I,.4166666666666667)-.055))}function Et(I,K,ae){return this instanceof Et?(this.r=~~I,this.g=~~K,void(this.b=~~ae)):arguments.length<2?I instanceof Et?new Et(I.r,I.g,I.b):Lt(""+I,Et,Ke):new Et(I,K,ae)}function jt(I){return new Et(I>>16,I>>8&255,255&I)}function Tt(I){return jt(I)+""}Dt.brighter=function(I){return new tt(Math.min(100,this.l+Ft*(arguments.length?I:1)),this.a,this.b)},Dt.darker=function(I){return new tt(Math.max(0,this.l-Ft*(arguments.length?I:1)),this.a,this.b)},Dt.rgb=function(){return gt(this.l,this.a,this.b)},s.rgb=Et;var Ot=Et.prototype=new We;function At(I){return I<16?"0"+Math.max(0,I).toString(16):Math.min(255,I).toString(16)}function Lt(I,K,ae){var fe,he,me,Ce=0,Pe=0,Le=0;if(fe=/([a-z]+)\((.*)\)/.exec(I=I.toLowerCase()))switch(he=fe[2].split(","),fe[1]){case"hsl":return ae(parseFloat(he[0]),parseFloat(he[1])/100,parseFloat(he[2])/100);case"rgb":return K(Xt(he[0]),Xt(he[1]),Xt(he[2]))}return(me=Bt.get(I))?K(me.r,me.g,me.b):(I==null||I.charAt(0)!=="#"||isNaN(me=parseInt(I.slice(1),16))||(I.length===4?(Ce=(3840&me)>>4,Ce|=Ce>>4,Pe=240&me,Pe|=Pe>>4,Le=15&me,Le|=Le<<4):I.length===7&&(Ce=(16711680&me)>>16,Pe=(65280&me)>>8,Le=255&me)),K(Ce,Pe,Le))}function Rt(I,K,ae){var fe,he,me=Math.min(I/=255,K/=255,ae/=255),Ce=Math.max(I,K,ae),Pe=Ce-me,Le=(Ce+me)/2;return Pe?(he=Le<.5?Pe/(Ce+me):Pe/(2-Ce-me),fe=I==Ce?(K-ae)/Pe+(K0&&Le<1?0:fe),new Ze(fe,he,Le)}function $t(I,K,ae){var fe=yt((.4124564*(I=Yt(I))+.3575761*(K=Yt(K))+.1804375*(ae=Yt(ae)))/Vt),he=yt((.2126729*I+.7151522*K+.072175*ae)/St);return tt(116*he-16,500*(fe-he),200*(he-yt((.0193339*I+.119192*K+.9503041*ae)/Nt)))}function Yt(I){return(I/=255)<=.04045?I/12.92:Math.pow((I+.055)/1.055,2.4)}function Xt(I){var K=parseFloat(I);return I.charAt(I.length-1)==="%"?Math.round(2.55*K):K}Ot.brighter=function(I){I=Math.pow(.7,arguments.length?I:1);var K=this.r,ae=this.g,fe=this.b,he=30;return K||ae||fe?(K&&K=200&&Xe<300||Xe===304){try{He=ae.call(he,Pe)}catch(rt){return void me.error.call(he,rt)}me.load.call(he,He)}else me.error.call(he,Pe)}return self.XDomainRequest&&!("withCredentials"in Pe)&&/^(http(s)?:)?\/\//.test(I)&&(Pe=new XDomainRequest),"onload"in Pe?Pe.onload=Pe.onerror=Fe:Pe.onreadystatechange=function(){Pe.readyState>3&&Fe()},Pe.onprogress=function(He){var Xe=s.event;s.event=He;try{me.progress.call(he,Pe)}finally{s.event=Xe}},he.header=function(He,Xe){return He=(He+"").toLowerCase(),arguments.length<2?Ce[He]:(Xe==null?delete Ce[He]:Ce[He]=Xe+"",he)},he.mimeType=function(He){return arguments.length?(K=He==null?null:He+"",he):K},he.responseType=function(He){return arguments.length?(Le=He,he):Le},he.response=function(He){return ae=He,he},["get","post"].forEach(function(He){he[He]=function(){return he.send.apply(he,[He].concat(d(arguments)))}}),he.send=function(He,Xe,rt){if(arguments.length===2&&typeof Xe=="function"&&(rt=Xe,Xe=null),Pe.open(He,I,!0),K==null||"accept"in Ce||(Ce.accept=K+",*/*"),Pe.setRequestHeader)for(var vt in Ce)Pe.setRequestHeader(vt,Ce[vt]);return K!=null&&Pe.overrideMimeType&&Pe.overrideMimeType(K),Le!=null&&(Pe.responseType=Le),rt!=null&&he.on("error",rt).on("load",function(Ct){rt(null,Ct)}),me.beforesend.call(he,Pe),Pe.send(Xe??null),he},he.abort=function(){return Pe.abort(),he},s.rebind(he,me,"on"),fe==null?he:he.get(function(He){return He.length===1?function(Xe,rt){He(Xe==null?rt:null)}:He}(fe))}Bt.forEach(function(I,K){Bt.set(I,jt(K))}),s.functor=Wt,s.xhr=tn(W),s.dsv=function(I,K){var ae=new RegExp('["'+I+` ]`),fe=I.charCodeAt(0);function he(Fe,He,Xe){arguments.length<3&&(Xe=He,He=null);var rt=cn(Fe,K,He==null?me:Ce(He),Xe);return rt.row=function(vt){return arguments.length?rt.response((He=vt)==null?me:Ce(vt)):He},rt}function me(Fe){return he.parse(Fe.responseText)}function Ce(Fe){return function(He){return he.parse(He.responseText,Fe)}}function Pe(Fe){return Fe.map(Le).join(I)}function Le(Fe){return ae.test(Fe)?'"'+Fe.replace(/\"/g,'""')+'"':Fe}return he.parse=function(Fe,He){var Xe;return he.parseRows(Fe,function(rt,vt){if(Xe)return Xe(rt,vt-1);var Ct=function(dt){for(var xt={},ot=rt.length,Pt=0;Pt=xt)return Ct;if(rt)return rt=!1,vt;var Ut=ot;if(Fe.charCodeAt(Ut)===34){for(var Ht=Ut;Ht++24?(isFinite(K)&&(clearTimeout(Zt),Zt=setTimeout(Kt,K)),sn=0):(sn=1,pn(Kt))}function On(){for(var I=Date.now(),K=ln;K;)I>=K.t&&K.c(I-K.t)&&(K.c=null),K=K.n;return I}function Tn(){for(var I,K=ln,ae=1/0;K;)K.c?(K.t1&&(K=I[me[Ce-2]],ae=I[me[Ce-1]],fe=I[Pe],(ae[0]-K[0])*(fe[1]-K[1])-(ae[1]-K[1])*(fe[0]-K[0])<=0);)--Ce;me[Ce++]=Pe}return me.slice(0,Ce)}function tr(I,K){return I[0]-K[0]||I[1]-K[1]}s.timer=function(){nn.apply(this,arguments)},s.timer.flush=function(){On(),Tn()},s.round=function(I,K){return K?Math.round(I*(K=Math.pow(10,K)))/K:Math.round(I)},s.geom={},s.geom.hull=function(I){var K=Dn,ae=wn;if(arguments.length)return fe(I);function fe(he){if(he.length<3)return[];var me,Ce=Wt(K),Pe=Wt(ae),Le=he.length,Fe=[],He=[];for(me=0;me=0;--me)dt.push(he[Fe[Xe[me]][2]]);for(me=+vt;meNe)Pe=Pe.L;else{if(!((he=me-xr(Pe,Ce))>Ne)){fe>-Ne?(K=Pe.P,ae=Pe):he>-Ne?(K=Pe,ae=Pe.N):K=ae=Pe;break}if(!Pe.R){K=Pe;break}Pe=Pe.R}var Le=Ln(I);if(kr.insert(K,Le),K||ae){if(K===ae)return kn(K),ae=Ln(K.site),kr.insert(Le,ae),Le.edge=ae.edge=Br(K.site,Le.site),sa(K),void sa(ae);if(ae){kn(K),kn(ae);var Fe=K.site,He=Fe.x,Xe=Fe.y,rt=I.x-He,vt=I.y-Xe,Ct=ae.site,dt=Ct.x-He,xt=Ct.y-Xe,ot=2*(rt*xt-vt*dt),Pt=rt*rt+vt*vt,_t=dt*dt+xt*xt,ft={x:(xt*Pt-vt*_t)/ot+He,y:(rt*_t-dt*Pt)/ot+Xe};Fi(ae.edge,Fe,Ct,ft),Le.edge=Br(Fe,I,null,ft),ae.edge=Br(I,Ct,null,ft),sa(K),sa(ae)}else Le.edge=Br(K.site,Le.site)}}function Lr(I,K){var ae=I.site,fe=ae.x,he=ae.y,me=he-K;if(!me)return fe;var Ce=I.P;if(!Ce)return-1/0;var Pe=(ae=Ce.site).x,Le=ae.y,Fe=Le-K;if(!Fe)return Pe;var He=Pe-fe,Xe=1/me-1/Fe,rt=He/Fe;return Xe?(-rt+Math.sqrt(rt*rt-2*Xe*(He*He/(-2*Fe)-Le+Fe/2+he-me/2)))/Xe+fe:(fe+Pe)/2}function xr(I,K){var ae=I.N;if(ae)return Lr(ae,K);var fe=I.site;return fe.y===K?fe.x:1/0}function Mr(I){this.site=I,this.edges=[]}function Na(I,K){return K.angle-I.angle}function wa(){ni(this),this.x=this.y=this.arc=this.site=this.cy=null}function sa(I){var K=I.P,ae=I.N;if(K&&ae){var fe=K.site,he=I.site,me=ae.site;if(fe!==me){var Ce=he.x,Pe=he.y,Le=fe.x-Ce,Fe=fe.y-Pe,He=me.x-Ce,Xe=2*(Le*(xt=me.y-Pe)-Fe*He);if(!(Xe>=-Qe)){var rt=Le*Le+Fe*Fe,vt=He*He+xt*xt,Ct=(xt*rt-Fe*vt)/Xe,dt=(Le*vt-He*rt)/Xe,xt=dt+Pe,ot=$n.pop()||new wa;ot.arc=I,ot.site=he,ot.x=Ct+Ce,ot.y=xt+Math.sqrt(Ct*Ct+dt*dt),ot.cy=xt,I.circle=ot;for(var Pt=null,_t=An._;_t;)if(ot.y<_t.y||ot.y===_t.y&&ot.x<=_t.x){if(!_t.L){Pt=_t.P;break}_t=_t.L}else{if(!_t.R){Pt=_t;break}_t=_t.R}An.insert(Pt,ot),Pt||(la=ot)}}}}function kn(I){var K=I.circle;K&&(K.P||(la=K.N),An.remove(K),$n.push(K),ni(K),I.circle=null)}function Dr(I,K){var ae=I.b;if(ae)return!0;var fe,he,me=I.a,Ce=K[0][0],Pe=K[1][0],Le=K[0][1],Fe=K[1][1],He=I.l,Xe=I.r,rt=He.x,vt=He.y,Ct=Xe.x,dt=Xe.y,xt=(rt+Ct)/2,ot=(vt+dt)/2;if(dt===vt){if(xt=Pe)return;if(rt>Ct){if(me){if(me.y>=Fe)return}else me={x:xt,y:Le};ae={x:xt,y:Fe}}else{if(me){if(me.y1)if(rt>Ct){if(me){if(me.y>=Fe)return}else me={x:(Le-he)/fe,y:Le};ae={x:(Fe-he)/fe,y:Fe}}else{if(me){if(me.y=Pe)return}else me={x:Ce,y:fe*Ce+he};ae={x:Pe,y:fe*Pe+he}}else{if(me){if(me.x0)){if(ot/=Jt,Jt<0){if(ot0){if(ot>Qt)return;ot>Ht&&(Ht=ot)}if(ot=Xe-ft,Jt||!(ot<0)){if(ot/=Jt,Jt<0){if(ot>Qt)return;ot>Ht&&(Ht=ot)}else if(Jt>0){if(ot0)){if(ot/=gn,gn<0){if(ot0){if(ot>Qt)return;ot>Ht&&(Ht=ot)}if(ot=rt-Ut,gn||!(ot<0)){if(ot/=gn,gn<0){if(ot>Qt)return;ot>Ht&&(Ht=ot)}else if(gn>0){if(ot0&&(xt.a={x:ft+Ht*Jt,y:Ut+Ht*gn}),Qt<1&&(xt.b={x:ft+Qt*Jt,y:Ut+Qt*gn}),xt}}}}}),dt=vt.length;dt--;)(!Dr(Le=vt[dt],Pe)||!Ct(Le)||C(Le.a.x-Le.b.x)Ne||C(Xe-Fe)>Ne)&&(Ct.splice(vt,0,new Ni((Jt=rt.site,gn=ot,yn=C(He-Pt)Ne?{x:Pt,y:C(Le-Pt)Ne?{x:C(Fe-Ut)Ne?{x:_t,y:C(Le-_t)Ne?{x:C(Fe-ft)=He&&ot.x<=rt&&ot.y>=Xe&&ot.y<=vt?[[He,vt],[rt,vt],[rt,Xe],[He,Xe]]:[]).point=Le[dt]}),Fe}function Pe(Le){return Le.map(function(Fe,He){return{x:Math.round(fe(Fe,He)/Ne)*Ne,y:Math.round(he(Fe,He)/Ne)*Ne,i:He}})}return Ce.links=function(Le){return nl(Pe(Le)).edges.filter(function(Fe){return Fe.l&&Fe.r}).map(function(Fe){return{source:Le[Fe.l.i],target:Le[Fe.r.i]}})},Ce.triangles=function(Le){var Fe=[];return nl(Pe(Le)).cells.forEach(function(He,Xe){for(var rt,vt,Ct,dt,xt=He.site,ot=He.edges.sort(Na),Pt=-1,_t=ot.length,ft=ot[_t-1].edge,Ut=ft.l===xt?ft.r:ft.l;++Pt<_t;)rt=Ut,Ut=(ft=ot[Pt].edge).l===xt?ft.r:ft.l,Xeme&&(he=K.slice(me,he),Pe[Ce]?Pe[Ce]+=he:Pe[++Ce]=he),(ae=ae[0])===(fe=fe[0])?Pe[Ce]?Pe[Ce]+=fe:Pe[++Ce]=fe:(Pe[++Ce]=null,Le.push({i:Ce,x:yi(ae,fe)})),me=qp.lastIndex;return meot&&(ot=He.x),He.y>Pt&&(Pt=He.y),Xe.push(He.x),rt.push(He.y);else for(vt=0;vtot&&(ot=Ut),Ht>Pt&&(Pt=Ht),Xe.push(Ut),rt.push(Ht)}var Qt=ot-dt,Jt=Pt-xt;function gn(bn,Nn,Yn,dr,en,fn,Rn,In){if(!isNaN(Yn)&&!isNaN(dr))if(bn.leaf){var Wn=bn.x,cr=bn.y;if(Wn!=null)if(C(Wn-Yn)+C(cr-dr)<.01)yn(bn,Nn,Yn,dr,en,fn,Rn,In);else{var Ir=bn.point;bn.x=bn.y=bn.point=null,yn(bn,Ir,Wn,cr,en,fn,Rn,In),yn(bn,Nn,Yn,dr,en,fn,Rn,In)}else bn.x=Yn,bn.y=dr,bn.point=Nn}else yn(bn,Nn,Yn,dr,en,fn,Rn,In)}function yn(bn,Nn,Yn,dr,en,fn,Rn,In){var Wn=.5*(en+Rn),cr=.5*(fn+In),Ir=Yn>=Wn,Sr=dr>=cr,Vr=Sr<<1|Ir;bn.leaf=!1,Ir?en=Wn:Rn=Wn,Sr?fn=cr:In=cr,gn(bn=bn.nodes[Vr]||(bn.nodes[Vr]={leaf:!0,nodes:[],point:null,x:null,y:null}),Nn,Yn,dr,en,fn,Rn,In)}Qt>Jt?Pt=xt+Qt:ot=dt+Jt;var Mn={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(bn){gn(Mn,bn,+_t(bn,++vt),+ft(bn,vt),dt,xt,ot,Pt)}};if(Mn.visit=function(bn){fs(bn,Mn,dt,xt,ot,Pt)},Mn.find=function(bn){return function(Nn,Yn,dr,en,fn,Rn,In){var Wn,cr=1/0;return function Ir(Sr,Vr,Fr,Yr,ha){if(!(Vr>Rn||Fr>In||Yr=_a)<<1|Yn>=va,bi=$a+4;$a=0&&!(ae=s.interpolators[fe](I,K)););return ae}function wc(I,K){var ae,fe=[],he=[],me=I.length,Ce=K.length,Pe=Math.min(I.length,K.length);for(ae=0;ae=1)return 1;var K=I*I,ae=K*I;return 4*(I<.5?ae:3*(I-K)+ae-.75)}function ZP(I){return 1-Math.cos(I*ut)}function KP(I){return Math.pow(2,10*(I-1))}function JP(I){return 1-Math.sqrt(1-I*I)}function QP(I){return I<.36363636363636365?7.5625*I*I:I<.7272727272727273?7.5625*(I-=.5454545454545454)*I+.75:I<.9090909090909091?7.5625*(I-=.8181818181818182)*I+.9375:7.5625*(I-=.9545454545454546)*I+.984375}function Hx(I,K){return K-=I,function(ae){return Math.round(I+K*ae)}}function Vx(I){var K,ae,fe,he=[I.a,I.b],me=[I.c,I.d],Ce=Gx(he),Pe=Yx(he,me),Le=Gx(((K=me)[0]+=(fe=-Pe)*(ae=he)[0],K[1]+=fe*ae[1],K))||0;he[0]*me[1]=0?I.slice(0,ae):I,he=ae>=0?I.slice(ae+1):"in";return fe=HP.get(fe)||qx,he=VP.get(he)||W,K=he(fe.apply(null,c.call(arguments,1))),function(me){return me<=0?0:me>=1?1:K(me)}},s.interpolateHcl=function(I,K){I=s.hcl(I),K=s.hcl(K);var ae=I.h,fe=I.c,he=I.l,me=K.h-ae,Ce=K.c-fe,Pe=K.l-he;return isNaN(Ce)&&(Ce=0,fe=isNaN(fe)?K.c:fe),isNaN(me)?(me=0,ae=isNaN(ae)?K.h:ae):me>180?me-=360:me<-180&&(me+=360),function(Le){return mt(ae+me*Le,fe+Ce*Le,he+Pe*Le)+""}},s.interpolateHsl=function(I,K){I=s.hsl(I),K=s.hsl(K);var ae=I.h,fe=I.s,he=I.l,me=K.h-ae,Ce=K.s-fe,Pe=K.l-he;return isNaN(Ce)&&(Ce=0,fe=isNaN(fe)?K.s:fe),isNaN(me)?(me=0,ae=isNaN(ae)?K.h:ae):me>180?me-=360:me<-180&&(me+=360),function(Le){return Ke(ae+me*Le,fe+Ce*Le,he+Pe*Le)+""}},s.interpolateLab=function(I,K){I=s.lab(I),K=s.lab(K);var ae=I.l,fe=I.a,he=I.b,me=K.l-ae,Ce=K.a-fe,Pe=K.b-he;return function(Le){return gt(ae+me*Le,fe+Ce*Le,he+Pe*Le)+""}},s.interpolateRound=Hx,s.transform=function(I){var K=h.createElementNS(s.ns.prefix.svg,"g");return(s.transform=function(ae){if(ae!=null){K.setAttribute("transform",ae);var fe=K.transform.baseVal.consolidate()}return new Vx(fe?fe.matrix:eD)})(I)},Vx.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var eD={a:1,b:0,c:0,d:1,e:0,f:0};function rl(I){return I.length?I.pop()+",":""}function Xx(I,K){var ae=[],fe=[];return I=s.transform(I),K=s.transform(K),function(he,me,Ce,Pe){if(he[0]!==me[0]||he[1]!==me[1]){var Le=Ce.push("translate(",null,",",null,")");Pe.push({i:Le-4,x:yi(he[0],me[0])},{i:Le-2,x:yi(he[1],me[1])})}else(me[0]||me[1])&&Ce.push("translate("+me+")")}(I.translate,K.translate,ae,fe),function(he,me,Ce,Pe){he!==me?(he-me>180?me+=360:me-he>180&&(he+=360),Pe.push({i:Ce.push(rl(Ce)+"rotate(",null,")")-2,x:yi(he,me)})):me&&Ce.push(rl(Ce)+"rotate("+me+")")}(I.rotate,K.rotate,ae,fe),function(he,me,Ce,Pe){he!==me?Pe.push({i:Ce.push(rl(Ce)+"skewX(",null,")")-2,x:yi(he,me)}):me&&Ce.push(rl(Ce)+"skewX("+me+")")}(I.skew,K.skew,ae,fe),function(he,me,Ce,Pe){if(he[0]!==me[0]||he[1]!==me[1]){var Le=Ce.push(rl(Ce)+"scale(",null,",",null,")");Pe.push({i:Le-4,x:yi(he[0],me[0])},{i:Le-2,x:yi(he[1],me[1])})}else me[0]===1&&me[1]===1||Ce.push(rl(Ce)+"scale("+me+")")}(I.scale,K.scale,ae,fe),I=K=null,function(he){for(var me,Ce=-1,Pe=fe.length;++Ce0?ae=ft:(I.c=null,I.t=NaN,I=null,Pe.end({type:"end",alpha:ae=0})):ft>0&&(Pe.start({type:"start",alpha:ae=ft}),I=nn(Ce.tick)),Ce):ae},Ce.start=function(){var ft,Ut,Ht,Qt=xt.length,Jt=ot.length,gn=Le[0],yn=Le[1];for(ft=0;ft=0;)ae.push(he[fe])}function ri(I,K){for(var ae=[I],fe=[];(I=ae.pop())!=null;)if(fe.push(I),(me=I.children)&&(he=me.length))for(var he,me,Ce=-1;++Ce=0;)Ce.push(He=Fe[Le]),He.parent=me,He.depth=me.depth+1;ae&&(me.value=0),me.children=Fe}else ae&&(me.value=+ae.call(fe,me,me.depth)||0),delete me.children;return ri(he,function(Xe){var rt,vt;I&&(rt=Xe.children)&&rt.sort(I),ae&&(vt=Xe.parent)&&(vt.value+=Xe.value)}),Pe}return fe.sort=function(he){return arguments.length?(I=he,fe):I},fe.children=function(he){return arguments.length?(K=he,fe):K},fe.value=function(he){return arguments.length?(ae=he,fe):ae},fe.revalue=function(he){return ae&&(hs(he,function(me){me.children&&(me.value=0)}),ri(he,function(me){var Ce;me.children||(me.value=+ae.call(fe,me,me.depth)||0),(Ce=me.parent)&&(Ce.value+=me.value)})),he},fe},s.layout.partition=function(){var I=s.layout.hierarchy(),K=[1,1];function ae(me,Ce,Pe,Le){var Fe=me.children;if(me.x=Ce,me.y=me.depth*Le,me.dx=Pe,me.dy=Le,Fe&&(He=Fe.length)){var He,Xe,rt,vt=-1;for(Pe=me.value?Pe/me.value:0;++vtPe&&(Pe=fe),Ce.push(fe)}for(ae=0;aehe&&(fe=ae,he=K);return fe}function wD(I){return I.reduce(_D,0)}function _D(I,K){return I+K[1]}function TD(I,K){return Qx(I,Math.ceil(Math.log(K.length)/Math.LN2+1))}function Qx(I,K){for(var ae=-1,fe=+I[0],he=(I[1]-fe)/K,me=[];++ae<=K;)me[ae]=he*ae+fe;return me}function kD(I){return[s.min(I),s.max(I)]}function MD(I,K){return I.value-K.value}function Hp(I,K){var ae=I._pack_next;I._pack_next=K,K._pack_prev=I,K._pack_next=ae,ae._pack_prev=K}function e2(I,K){I._pack_next=K,K._pack_prev=I}function t2(I,K){var ae=K.x-I.x,fe=K.y-I.y,he=I.r+K.r;return .999*he*he>ae*ae+fe*fe}function n2(I){if((K=I.children)&&(Le=K.length)){var K,ae,fe,he,me,Ce,Pe,Le,Fe=1/0,He=-1/0,Xe=1/0,rt=-1/0;if(K.forEach(SD),(ae=K[0]).x=-ae.r,ae.y=0,_t(ae),Le>1&&((fe=K[1]).x=fe.r,fe.y=0,_t(fe),Le>2))for(a2(ae,fe,he=K[2]),_t(he),Hp(ae,he),ae._pack_prev=he,Hp(he,fe),fe=ae._pack_next,me=3;me0)for(Ce=-1;++Ce=Xe[0]&&Le<=Xe[1]&&((Pe=Fe[s.bisect(rt,Le,1,Ct)-1]).y+=dt,Pe.push(me[Ce]));return Fe}return he.value=function(me){return arguments.length?(K=me,he):K},he.range=function(me){return arguments.length?(ae=Wt(me),he):ae},he.bins=function(me){return arguments.length?(fe=typeof me=="number"?function(Ce){return Qx(Ce,me)}:Wt(me),he):fe},he.frequency=function(me){return arguments.length?(I=!!me,he):I},he},s.layout.pack=function(){var I,K=s.layout.hierarchy().sort(MD),ae=0,fe=[1,1];function he(me,Ce){var Pe=K.call(this,me,Ce),Le=Pe[0],Fe=fe[0],He=fe[1],Xe=I==null?Math.sqrt:typeof I=="function"?I:function(){return I};if(Le.x=Le.y=0,ri(Le,function(vt){vt.r=+Xe(vt.value)}),ri(Le,n2),ae){var rt=ae*(I?1:Math.max(2*Le.r/Fe,2*Le.r/He))/2;ri(Le,function(vt){vt.r+=rt}),ri(Le,n2),ri(Le,function(vt){vt.r-=rt})}return r2(Le,Fe/2,He/2,I?1:1/Math.max(2*Le.r/Fe,2*Le.r/He)),Pe}return he.size=function(me){return arguments.length?(fe=me,he):fe},he.radius=function(me){return arguments.length?(I=me==null||typeof me=="function"?me:+me,he):I},he.padding=function(me){return arguments.length?(ae=+me,he):ae},ds(he,K)},s.layout.tree=function(){var I=s.layout.hierarchy().sort(null).value(null),K=i2,ae=[1,1],fe=null;function he(Le,Fe){var He=I.call(this,Le,Fe),Xe=He[0],rt=function(_t){for(var ft,Ut={A:null,children:[_t]},Ht=[Ut];(ft=Ht.pop())!=null;)for(var Qt,Jt=ft.children,gn=0,yn=Jt.length;gnCt.x&&(Ct=_t),_t.depth>dt.depth&&(dt=_t)});var xt=K(vt,Ct)/2-vt.x,ot=ae[0]/(Ct.x+K(Ct,vt)/2+xt),Pt=ae[1]/(dt.depth||1);hs(Xe,function(_t){_t.x=(_t.x+xt)*ot,_t.y=_t.depth*Pt})}return He}function me(Le){var Fe=Le.children,He=Le.parent.children,Xe=Le.i?He[Le.i-1]:null;if(Fe.length){(function(vt){for(var Ct,dt=0,xt=0,ot=vt.children,Pt=ot.length;--Pt>=0;)(Ct=ot[Pt]).z+=dt,Ct.m+=dt,dt+=Ct.s+(xt+=Ct.c)})(Le);var rt=(Fe[0].z+Fe[Fe.length-1].z)/2;Xe?(Le.z=Xe.z+K(Le._,Xe._),Le.m=Le.z-rt):Le.z=rt}else Xe&&(Le.z=Xe.z+K(Le._,Xe._));Le.parent.A=function(vt,Ct,dt){if(Ct){for(var xt,ot=vt,Pt=vt,_t=Ct,ft=ot.parent.children[0],Ut=ot.m,Ht=Pt.m,Qt=_t.m,Jt=ft.m;_t=Yp(_t),ot=Vp(ot),_t&&ot;)ft=Vp(ft),(Pt=Yp(Pt)).a=vt,(xt=_t.z+Qt-ot.z-Ut+K(_t._,ot._))>0&&(OD(AD(_t,vt,dt),vt,xt),Ut+=xt,Ht+=xt),Qt+=_t.m,Ut+=ot.m,Jt+=ft.m,Ht+=Pt.m;_t&&!Yp(Pt)&&(Pt.t=_t,Pt.m+=Qt-Ht),ot&&!Vp(ft)&&(ft.t=ot,ft.m+=Ut-Jt,dt=vt)}return dt}(Le,Xe,Le.parent.A||He[0])}function Ce(Le){Le._.x=Le.z+Le.parent.m,Le.m+=Le.parent.m}function Pe(Le){Le.x*=ae[0],Le.y=Le.depth*ae[1]}return he.separation=function(Le){return arguments.length?(K=Le,he):K},he.size=function(Le){return arguments.length?(fe=(ae=Le)==null?Pe:null,he):fe?null:ae},he.nodeSize=function(Le){return arguments.length?(fe=(ae=Le)==null?null:Pe,he):fe?ae:null},ds(he,I)},s.layout.cluster=function(){var I=s.layout.hierarchy().sort(null).value(null),K=i2,ae=[1,1],fe=!1;function he(me,Ce){var Pe,Le=I.call(this,me,Ce),Fe=Le[0],He=0;ri(Fe,function(dt){var xt=dt.children;xt&&xt.length?(dt.x=function(ot){return ot.reduce(function(Pt,_t){return Pt+_t.x},0)/ot.length}(xt),dt.y=function(ot){return 1+s.max(ot,function(Pt){return Pt.y})}(xt)):(dt.x=Pe?He+=K(dt,Pe):0,dt.y=0,Pe=dt)});var Xe=o2(Fe),rt=l2(Fe),vt=Xe.x-K(Xe,rt)/2,Ct=rt.x+K(rt,Xe)/2;return ri(Fe,fe?function(dt){dt.x=(dt.x-Fe.x)*ae[0],dt.y=(Fe.y-dt.y)*ae[1]}:function(dt){dt.x=(dt.x-vt)/(Ct-vt)*ae[0],dt.y=(1-(Fe.y?dt.y/Fe.y:1))*ae[1]}),Le}return he.separation=function(me){return arguments.length?(K=me,he):K},he.size=function(me){return arguments.length?(fe=(ae=me)==null,he):fe?null:ae},he.nodeSize=function(me){return arguments.length?(fe=(ae=me)!=null,he):fe?ae:null},ds(he,I)},s.layout.treemap=function(){var I,K=s.layout.hierarchy(),ae=Math.round,fe=[1,1],he=null,me=Gp,Ce=!1,Pe="squarify",Le=.5*(1+Math.sqrt(5));function Fe(dt,xt){for(var ot,Pt,_t=-1,ft=dt.length;++_t0;)Ut.push(ot=Ht[_t-1]),Ut.area+=ot.area,Pe!=="squarify"||(Pt=rt(Ut,Jt))<=Qt?(Ht.pop(),Qt=Pt):(Ut.area-=Ut.pop().area,vt(Ut,Jt,ft,!1),Jt=Math.min(ft.dx,ft.dy),Ut.length=Ut.area=0,Qt=1/0);Ut.length&&(vt(Ut,Jt,ft,!0),Ut.length=Ut.area=0),xt.forEach(He)}}function Xe(dt){var xt=dt.children;if(xt&&xt.length){var ot,Pt=me(dt),_t=xt.slice(),ft=[];for(Fe(_t,Pt.dx*Pt.dy/dt.value),ft.area=0;ot=_t.pop();)ft.push(ot),ft.area+=ot.area,ot.z!=null&&(vt(ft,ot.z?Pt.dx:Pt.dy,Pt,!_t.length),ft.length=ft.area=0);xt.forEach(Xe)}}function rt(dt,xt){for(var ot,Pt=dt.area,_t=0,ft=1/0,Ut=-1,Ht=dt.length;++Ut_t&&(_t=ot));return xt*=xt,(Pt*=Pt)?Math.max(xt*_t*Le/Pt,Pt/(xt*ft*Le)):1/0}function vt(dt,xt,ot,Pt){var _t,ft=-1,Ut=dt.length,Ht=ot.x,Qt=ot.y,Jt=xt?ae(dt.area/xt):0;if(xt==ot.dx){for((Pt||Jt>ot.dy)&&(Jt=ot.dy);++ftot.dx)&&(Jt=ot.dx);++ft1);return I+K*fe*Math.sqrt(-2*Math.log(me)/me)}},logNormal:function(){var I=s.random.normal.apply(s,arguments);return function(){return Math.exp(I())}},bates:function(I){var K=s.random.irwinHall(I);return function(){return K()/I}},irwinHall:function(I){return function(){for(var K=0,ae=0;ae2?ED:PD,Fe=fe?nD:tD;return he=Le(I,K,Fe,ae),me=Le(K,I,Fe,lo),Pe}function Pe(Le){return he(Le)}return Pe.invert=function(Le){return me(Le)},Pe.domain=function(Le){return arguments.length?(I=Le.map(Number),Ce()):I},Pe.range=function(Le){return arguments.length?(K=Le,Ce()):K},Pe.rangeRound=function(Le){return Pe.range(Le).interpolate(Hx)},Pe.clamp=function(Le){return arguments.length?(fe=Le,Ce()):fe},Pe.interpolate=function(Le){return arguments.length?(ae=Le,Ce()):ae},Pe.ticks=function(Le){return Kp(I,Le)},Pe.tickFormat=function(Le,Fe){return d3_scale_linearTickFormat(I,Le,Fe)},Pe.nice=function(Le){return d2(I,Le),Ce()},Pe.copy=function(){return c2(I,K,ae,fe)},Ce()}function f2(I,K){return s.rebind(I,K,"range","rangeRound","interpolate","clamp")}function d2(I,K){return Xp(I,u2(Zp(I,K)[2])),Xp(I,u2(Zp(I,K)[2])),I}function Zp(I,K){K==null&&(K=10);var ae=_c(I),fe=ae[1]-ae[0],he=Math.pow(10,Math.floor(Math.log(fe/K)/Math.LN10)),me=K/fe*he;return me<=.15?he*=10:me<=.35?he*=5:me<=.75&&(he*=2),ae[0]=Math.ceil(ae[0]/he)*he,ae[1]=Math.floor(ae[1]/he)*he+.5*he,ae[2]=he,ae}function Kp(I,K){return s.range.apply(s,Zp(I,K))}function h2(I,K,ae,fe){function he(Pe){return(ae?Math.log(Pe<0?0:Pe):-Math.log(Pe>0?0:-Pe))/Math.log(K)}function me(Pe){return ae?Math.pow(K,Pe):-Math.pow(K,-Pe)}function Ce(Pe){return I(he(Pe))}return Ce.invert=function(Pe){return me(I.invert(Pe))},Ce.domain=function(Pe){return arguments.length?(ae=Pe[0]>=0,I.domain((fe=Pe.map(Number)).map(he)),Ce):fe},Ce.base=function(Pe){return arguments.length?(K=+Pe,I.domain(fe.map(he)),Ce):K},Ce.nice=function(){var Pe=Xp(fe.map(he),ae?Math:RD);return I.domain(Pe),fe=Pe.map(me),Ce},Ce.ticks=function(){var Pe=_c(fe),Le=[],Fe=Pe[0],He=Pe[1],Xe=Math.floor(he(Fe)),rt=Math.ceil(he(He)),vt=K%1?2:K;if(isFinite(rt-Xe)){if(ae){for(;Xe0;Ct--)Le.push(me(Xe)*Ct);for(Xe=0;Le[Xe]He;rt--);Le=Le.slice(Xe,rt)}return Le},Ce.copy=function(){return h2(I.copy(),K,ae,fe)},f2(Ce,I)}s.scale.linear=function(){return c2([0,1],[0,1],lo,!1)},s.scale.log=function(){return h2(s.scale.linear().domain([0,1]),10,!0,[1,10])};var RD={floor:function(I){return-Math.ceil(-I)},ceil:function(I){return-Math.floor(-I)}};function p2(I,K,ae){var fe=kc(K),he=kc(1/K);function me(Ce){return I(fe(Ce))}return me.invert=function(Ce){return he(I.invert(Ce))},me.domain=function(Ce){return arguments.length?(I.domain((ae=Ce.map(Number)).map(fe)),me):ae},me.ticks=function(Ce){return Kp(ae,Ce)},me.tickFormat=function(Ce,Pe){return d3_scale_linearTickFormat(ae,Ce,Pe)},me.nice=function(Ce){return me.domain(d2(ae,Ce))},me.exponent=function(Ce){return arguments.length?(fe=kc(K=Ce),he=kc(1/K),I.domain(ae.map(fe)),me):K},me.copy=function(){return p2(I.copy(),K,ae)},f2(me,I)}function kc(I){return function(K){return K<0?-Math.pow(-K,I):Math.pow(K,I)}}function g2(I,K){var ae,fe,he;function me(Pe){return fe[((ae.get(Pe)||(K.t==="range"?ae.set(Pe,I.push(Pe)):NaN))-1)%fe.length]}function Ce(Pe,Le){return s.range(I.length).map(function(Fe){return Pe+Le*Fe})}return me.domain=function(Pe){if(!arguments.length)return I;I=[],ae=new D;for(var Le,Fe=-1,He=Pe.length;++Fe0?ae[me-1]:I[0],mert?0:1;if(He=Je)return Le(He,Ct)+(Fe?Le(Fe,1-Ct):"")+"Z";var dt,xt,ot,Pt,_t,ft,Ut,Ht,Qt,Jt,gn,yn,Mn=0,bn=0,Nn=[];if((Pt=(+Ce.apply(this,arguments)||0)/2)&&(ot=fe===Mc?Math.sqrt(Fe*Fe+He*He):+fe.apply(this,arguments),Ct||(bn*=-1),He&&(bn=Mt(ot/He*Math.sin(Pt))),Fe&&(Mn=Mt(ot/Fe*Math.sin(Pt)))),He){_t=He*Math.cos(Xe+bn),ft=He*Math.sin(Xe+bn),Ut=He*Math.cos(rt-bn),Ht=He*Math.sin(rt-bn);var Yn=Math.abs(rt-Xe-2*bn)<=it?0:1;if(bn&&Sc(_t,ft,Ut,Ht)===Ct^Yn){var dr=(Xe+rt)/2;_t=He*Math.cos(dr),ft=He*Math.sin(dr),Ut=Ht=null}}else _t=ft=0;if(Fe){Qt=Fe*Math.cos(rt-Mn),Jt=Fe*Math.sin(rt-Mn),gn=Fe*Math.cos(Xe+Mn),yn=Fe*Math.sin(Xe+Mn);var en=Math.abs(Xe-rt+2*Mn)<=it?0:1;if(Mn&&Sc(Qt,Jt,gn,yn)===1-Ct^en){var fn=(Xe+rt)/2;Qt=Fe*Math.cos(fn),Jt=Fe*Math.sin(fn),gn=yn=null}}else Qt=Jt=0;if(vt>Ne&&(dt=Math.min(Math.abs(He-Fe)/2,+ae.apply(this,arguments)))>.001){xt=Fe0?0:1}function Cc(I,K,ae,fe,he){var me=I[0]-K[0],Ce=I[1]-K[1],Pe=(he?fe:-fe)/Math.sqrt(me*me+Ce*Ce),Le=Pe*Ce,Fe=-Pe*me,He=I[0]+Le,Xe=I[1]+Fe,rt=K[0]+Le,vt=K[1]+Fe,Ct=(He+rt)/2,dt=(Xe+vt)/2,xt=rt-He,ot=vt-Xe,Pt=xt*xt+ot*ot,_t=ae-fe,ft=He*vt-rt*Xe,Ut=(ot<0?-1:1)*Math.sqrt(Math.max(0,_t*_t*Pt-ft*ft)),Ht=(ft*ot-xt*Ut)/Pt,Qt=(-ft*xt-ot*Ut)/Pt,Jt=(ft*ot+xt*Ut)/Pt,gn=(-ft*xt+ot*Ut)/Pt,yn=Ht-Ct,Mn=Qt-dt,bn=Jt-Ct,Nn=gn-dt;return yn*yn+Mn*Mn>bn*bn+Nn*Nn&&(Ht=Jt,Qt=gn),[[Ht-Le,Qt-Fe],[Ht*ae/_t,Qt*ae/_t]]}function _2(){return!0}function T2(I){var K=Dn,ae=wn,fe=_2,he=Xa,me=he.key,Ce=.7;function Pe(Le){var Fe,He=[],Xe=[],rt=-1,vt=Le.length,Ct=Wt(K),dt=Wt(ae);function xt(){He.push("M",he(I(Xe),Ce))}for(;++rt1&&he.push("H",fe[0]),he.join("")},"step-before":Qp,"step-after":eg,basis:M2,"basis-open":function(I){if(I.length<4)return Xa(I);for(var K,ae=[],fe=-1,he=I.length,me=[0],Ce=[0];++fe<3;)K=I[fe],me.push(K[0]),Ce.push(K[1]);for(ae.push(ja(ji,me)+","+ja(ji,Ce)),--fe;++fe9&&(me=3*ae/Math.sqrt(me),Pe[Le]=me*fe,Pe[Le+1]=me*he);for(Le=-1;++Le<=Fe;)me=(K[Math.min(Fe,Le+1)][0]-K[Math.max(0,Le-1)][0])/(6*(1+Pe[Le]*Pe[Le])),Ce.push([me||0,Pe[Le]*me||0]);return Ce}(I))}});function Xa(I){return I.length>1?I.join("L"):I+"Z"}function k2(I){return I.join("L")+"Z"}function Qp(I){for(var K=0,ae=I.length,fe=I[0],he=[fe[0],",",fe[1]];++K1){Pe=K[1],me=I[Le],Le++,fe+="C"+(he[0]+Ce[0])+","+(he[1]+Ce[1])+","+(me[0]-Pe[0])+","+(me[1]-Pe[1])+","+me[0]+","+me[1];for(var Fe=2;Feit)+",1 "+He}function Le(Fe,He,Xe,rt){return"Q 0,0 "+rt}return me.radius=function(Fe){return arguments.length?(ae=Wt(Fe),me):ae},me.source=function(Fe){return arguments.length?(I=Wt(Fe),me):I},me.target=function(Fe){return arguments.length?(K=Wt(Fe),me):K},me.startAngle=function(Fe){return arguments.length?(fe=Wt(Fe),me):fe},me.endAngle=function(Fe){return arguments.length?(he=Wt(Fe),me):he},me},s.svg.diagonal=function(){var I=P2,K=D2,ae=E2;function fe(he,me){var Ce=I.call(this,he,me),Pe=K.call(this,he,me),Le=(Ce.y+Pe.y)/2,Fe=[Ce,{x:Ce.x,y:Le},{x:Pe.x,y:Le},Pe];return"M"+(Fe=Fe.map(ae))[0]+"C"+Fe[1]+" "+Fe[2]+" "+Fe[3]}return fe.source=function(he){return arguments.length?(I=Wt(he),fe):I},fe.target=function(he){return arguments.length?(K=Wt(he),fe):K},fe.projection=function(he){return arguments.length?(ae=he,fe):ae},fe},s.svg.diagonal.radial=function(){var I=s.svg.diagonal(),K=E2,ae=I.projection;return I.projection=function(fe){return arguments.length?ae(function(he){return function(){var me=he.apply(this,arguments),Ce=me[0],Pe=me[1]-ut;return[Ce*Math.cos(Pe),Ce*Math.sin(Pe)]}}(K=fe)):K},I},s.svg.symbol=function(){var I=UD,K=WD;function ae(fe,he){return(L2.get(I.call(this,fe,he))||R2)(K.call(this,fe,he))}return ae.type=function(fe){return arguments.length?(I=Wt(fe),ae):I},ae.size=function(fe){return arguments.length?(K=Wt(fe),ae):K},ae};var L2=s.map({circle:R2,cross:function(I){var K=Math.sqrt(I/5)/2;return"M"+-3*K+","+-K+"H"+-K+"V"+-3*K+"H"+K+"V"+-K+"H"+3*K+"V"+K+"H"+K+"V"+3*K+"H"+-K+"V"+K+"H"+-3*K+"Z"},diamond:function(I){var K=Math.sqrt(I/(2*I2)),ae=K*I2;return"M0,"+-K+"L"+ae+",0 0,"+K+" "+-ae+",0Z"},square:function(I){var K=Math.sqrt(I)/2;return"M"+-K+","+-K+"L"+K+","+-K+" "+K+","+K+" "+-K+","+K+"Z"},"triangle-down":function(I){var K=Math.sqrt(I/Ac),ae=K*Ac/2;return"M0,"+ae+"L"+K+","+-ae+" "+-K+","+-ae+"Z"},"triangle-up":function(I){var K=Math.sqrt(I/Ac),ae=K*Ac/2;return"M0,"+-ae+"L"+K+","+ae+" "+-K+","+ae+"Z"}});s.svg.symbolTypes=L2.keys();var Ac=Math.sqrt(3),I2=Math.tan(30*pt);se.transition=function(I){for(var K,ae,fe=so||++N2,he=ig(I),me=[],Ce=Dc||{time:Date.now(),ease:XP,delay:0,duration:250},Pe=-1,Le=this.length;++Pe0;)Fe[--ot].call(I,xt);if(dt>=1)return Xe.event&&Xe.event.end.call(I,I.__data__,K),--He.count?delete He[fe]:delete I[ae],1}Xe||(me=he.time,Ce=nn(function(Ct){var dt=Xe.delay;if(Ce.t=dt+me,dt<=Ct)return rt(Ct-dt);Ce.c=rt},0,me),Xe=He[fe]={tween:new D,time:me,timer:Ce,delay:he.delay,duration:he.duration,ease:he.ease,index:K},he=null,++He.count)}zr.call=se.call,zr.empty=se.empty,zr.node=se.node,zr.size=se.size,s.transition=function(I,K){return I&&I.transition?so?I.transition(K):I:s.selection().transition(I)},s.transition.prototype=zr,zr.select=function(I){var K,ae,fe,he=this.id,me=this.namespace,Ce=[];I=pe(I);for(var Pe=-1,Le=this.length;++Perect,.s>rect").attr("width",me[1]-me[0])}function vt(dt){dt.select(".extent").attr("y",Ce[0]),dt.selectAll(".extent,.e>rect,.w>rect").attr("height",Ce[1]-Ce[0])}function Ct(){var dt,xt,ot=this,Pt=s.select(s.event.target),_t=ae.of(ot,arguments),ft=s.select(ot),Ut=Pt.datum(),Ht=!/^(n|s)$/.test(Ut)&&fe,Qt=!/^(e|w)$/.test(Ut)&&he,Jt=Pt.classed("extent"),gn=lt(ot),yn=s.mouse(ot),Mn=s.select(m(ot)).on("keydown.brush",function(){s.event.keyCode==32&&(Jt||(dt=null,yn[0]-=me[1],yn[1]-=Ce[1],Jt=2),ee())}).on("keyup.brush",function(){s.event.keyCode==32&&Jt==2&&(yn[0]+=me[1],yn[1]+=Ce[1],Jt=0,ee())});if(s.event.changedTouches?Mn.on("touchmove.brush",Yn).on("touchend.brush",en):Mn.on("mousemove.brush",Yn).on("mouseup.brush",en),ft.interrupt().selectAll("*").interrupt(),Jt)yn[0]=me[0]-yn[0],yn[1]=Ce[0]-yn[1];else if(Ut){var bn=+/w$/.test(Ut),Nn=+/^n/.test(Ut);xt=[me[1-bn]-yn[0],Ce[1-Nn]-yn[1]],yn[0]=me[bn],yn[1]=Ce[Nn]}else s.event.altKey&&(dt=yn.slice());function Yn(){var fn=s.mouse(ot),Rn=!1;xt&&(fn[0]+=xt[0],fn[1]+=xt[1]),Jt||(s.event.altKey?(dt||(dt=[(me[0]+me[1])/2,(Ce[0]+Ce[1])/2]),yn[0]=me[+(fn[0]1?L-1:0),H=1;H1?L-1:0),H=1;H1?L-1:0),H=1;H1?L-1:0),H=1;H24?(isFinite(K)&&(clearTimeout(Zt),Zt=setTimeout(Kt,K)),sn=0):(sn=1,pn(Kt))}function Cn(){for(var I=Date.now(),K=ln;K;)I>=K.t&&K.c(I-K.t)&&(K.c=null),K=K.n;return I}function _n(){for(var I,K=ln,ae=1/0;K;)K.c?(K.t1&&(K=I[me[Ce-2]],ae=I[me[Ce-1]],fe=I[Pe],(ae[0]-K[0])*(fe[1]-K[1])-(ae[1]-K[1])*(fe[0]-K[0])<=0);)--Ce;me[Ce++]=Pe}return me.slice(0,Ce)}function tr(I,K){return I[0]-K[0]||I[1]-K[1]}s.timer=function(){nn.apply(this,arguments)},s.timer.flush=function(){Cn(),_n()},s.round=function(I,K){return K?Math.round(I*(K=Math.pow(10,K)))/K:Math.round(I)},s.geom={},s.geom.hull=function(I){var K=Pn,ae=xn;if(arguments.length)return fe(I);function fe(he){if(he.length<3)return[];var me,Ce=Wt(K),Pe=Wt(ae),Le=he.length,Fe=[],He=[];for(me=0;me=0;--me)dt.push(he[Fe[Xe[me]][2]]);for(me=+vt;meNe)Pe=Pe.L;else{if(!((he=me-br(Pe,Ce))>Ne)){fe>-Ne?(K=Pe.P,ae=Pe):he>-Ne?(K=Pe,ae=Pe.N):K=ae=Pe;break}if(!Pe.R){K=Pe;break}Pe=Pe.R}var Le=Ln(I);if(kr.insert(K,Le),K||ae){if(K===ae)return Tn(K),ae=Ln(K.site),kr.insert(Le,ae),Le.edge=ae.edge=Br(K.site,Le.site),la(K),void la(ae);if(ae){Tn(K),Tn(ae);var Fe=K.site,He=Fe.x,Xe=Fe.y,rt=I.x-He,vt=I.y-Xe,Ct=ae.site,dt=Ct.x-He,xt=Ct.y-Xe,ot=2*(rt*xt-vt*dt),Pt=rt*rt+vt*vt,_t=dt*dt+xt*xt,ft={x:(xt*Pt-vt*_t)/ot+He,y:(rt*_t-dt*Pt)/ot+Xe};Ni(ae.edge,Fe,Ct,ft),Le.edge=Br(Fe,I,null,ft),ae.edge=Br(I,Ct,null,ft),la(K),la(ae)}else Le.edge=Br(K.site,Le.site)}}function Lr(I,K){var ae=I.site,fe=ae.x,he=ae.y,me=he-K;if(!me)return fe;var Ce=I.P;if(!Ce)return-1/0;var Pe=(ae=Ce.site).x,Le=ae.y,Fe=Le-K;if(!Fe)return Pe;var He=Pe-fe,Xe=1/me-1/Fe,rt=He/Fe;return Xe?(-rt+Math.sqrt(rt*rt-2*Xe*(He*He/(-2*Fe)-Le+Fe/2+he-me/2)))/Xe+fe:(fe+Pe)/2}function br(I,K){var ae=I.N;if(ae)return Lr(ae,K);var fe=I.site;return fe.y===K?fe.x:1/0}function Mr(I){this.site=I,this.edges=[]}function ja(I,K){return K.angle-I.angle}function _a(){ri(this),this.x=this.y=this.arc=this.site=this.cy=null}function la(I){var K=I.P,ae=I.N;if(K&&ae){var fe=K.site,he=I.site,me=ae.site;if(fe!==me){var Ce=he.x,Pe=he.y,Le=fe.x-Ce,Fe=fe.y-Pe,He=me.x-Ce,Xe=2*(Le*(xt=me.y-Pe)-Fe*He);if(!(Xe>=-Qe)){var rt=Le*Le+Fe*Fe,vt=He*He+xt*xt,Ct=(xt*rt-Fe*vt)/Xe,dt=(Le*vt-He*rt)/Xe,xt=dt+Pe,ot=$n.pop()||new _a;ot.arc=I,ot.site=he,ot.x=Ct+Ce,ot.y=xt+Math.sqrt(Ct*Ct+dt*dt),ot.cy=xt,I.circle=ot;for(var Pt=null,_t=On._;_t;)if(ot.y<_t.y||ot.y===_t.y&&ot.x<=_t.x){if(!_t.L){Pt=_t.P;break}_t=_t.L}else{if(!_t.R){Pt=_t;break}_t=_t.R}On.insert(Pt,ot),Pt||(oa=ot)}}}}function Tn(I){var K=I.circle;K&&(K.P||(oa=K.N),On.remove(K),$n.push(K),ri(K),I.circle=null)}function Dr(I,K){var ae=I.b;if(ae)return!0;var fe,he,me=I.a,Ce=K[0][0],Pe=K[1][0],Le=K[0][1],Fe=K[1][1],He=I.l,Xe=I.r,rt=He.x,vt=He.y,Ct=Xe.x,dt=Xe.y,xt=(rt+Ct)/2,ot=(vt+dt)/2;if(dt===vt){if(xt=Pe)return;if(rt>Ct){if(me){if(me.y>=Fe)return}else me={x:xt,y:Le};ae={x:xt,y:Fe}}else{if(me){if(me.y1)if(rt>Ct){if(me){if(me.y>=Fe)return}else me={x:(Le-he)/fe,y:Le};ae={x:(Fe-he)/fe,y:Fe}}else{if(me){if(me.y=Pe)return}else me={x:Ce,y:fe*Ce+he};ae={x:Pe,y:fe*Pe+he}}else{if(me){if(me.x0)){if(ot/=Jt,Jt<0){if(ot0){if(ot>Qt)return;ot>Ht&&(Ht=ot)}if(ot=Xe-ft,Jt||!(ot<0)){if(ot/=Jt,Jt<0){if(ot>Qt)return;ot>Ht&&(Ht=ot)}else if(Jt>0){if(ot0)){if(ot/=gn,gn<0){if(ot0){if(ot>Qt)return;ot>Ht&&(Ht=ot)}if(ot=rt-Ut,gn||!(ot<0)){if(ot/=gn,gn<0){if(ot>Qt)return;ot>Ht&&(Ht=ot)}else if(gn>0){if(ot0&&(xt.a={x:ft+Ht*Jt,y:Ut+Ht*gn}),Qt<1&&(xt.b={x:ft+Qt*Jt,y:Ut+Qt*gn}),xt}}}}}),dt=vt.length;dt--;)(!Dr(Le=vt[dt],Pe)||!Ct(Le)||C(Le.a.x-Le.b.x)Ne||C(Xe-Fe)>Ne)&&(Ct.splice(vt,0,new ji((Jt=rt.site,gn=ot,vn=C(He-Pt)Ne?{x:Pt,y:C(Le-Pt)Ne?{x:C(Fe-Ut)Ne?{x:_t,y:C(Le-_t)Ne?{x:C(Fe-ft)=He&&ot.x<=rt&&ot.y>=Xe&&ot.y<=vt?[[He,vt],[rt,vt],[rt,Xe],[He,Xe]]:[]).point=Le[dt]}),Fe}function Pe(Le){return Le.map(function(Fe,He){return{x:Math.round(fe(Fe,He)/Ne)*Ne,y:Math.round(he(Fe,He)/Ne)*Ne,i:He}})}return Ce.links=function(Le){return rl(Pe(Le)).edges.filter(function(Fe){return Fe.l&&Fe.r}).map(function(Fe){return{source:Le[Fe.l.i],target:Le[Fe.r.i]}})},Ce.triangles=function(Le){var Fe=[];return rl(Pe(Le)).cells.forEach(function(He,Xe){for(var rt,vt,Ct,dt,xt=He.site,ot=He.edges.sort(ja),Pt=-1,_t=ot.length,ft=ot[_t-1].edge,Ut=ft.l===xt?ft.r:ft.l;++Pt<_t;)rt=Ut,Ut=(ft=ot[Pt].edge).l===xt?ft.r:ft.l,Xeme&&(he=K.slice(me,he),Pe[Ce]?Pe[Ce]+=he:Pe[++Ce]=he),(ae=ae[0])===(fe=fe[0])?Pe[Ce]?Pe[Ce]+=fe:Pe[++Ce]=fe:(Pe[++Ce]=null,Le.push({i:Ce,x:bi(ae,fe)})),me=Wp.lastIndex;return meot&&(ot=He.x),He.y>Pt&&(Pt=He.y),Xe.push(He.x),rt.push(He.y);else for(vt=0;vtot&&(ot=Ut),Ht>Pt&&(Pt=Ht),Xe.push(Ut),rt.push(Ht)}var Qt=ot-dt,Jt=Pt-xt;function gn(yn,Nn,Yn,dr,en,fn,En,In){if(!isNaN(Yn)&&!isNaN(dr))if(yn.leaf){var Wn=yn.x,cr=yn.y;if(Wn!=null)if(C(Wn-Yn)+C(cr-dr)<.01)vn(yn,Nn,Yn,dr,en,fn,En,In);else{var Ir=yn.point;yn.x=yn.y=yn.point=null,vn(yn,Ir,Wn,cr,en,fn,En,In),vn(yn,Nn,Yn,dr,en,fn,En,In)}else yn.x=Yn,yn.y=dr,yn.point=Nn}else vn(yn,Nn,Yn,dr,en,fn,En,In)}function vn(yn,Nn,Yn,dr,en,fn,En,In){var Wn=.5*(en+En),cr=.5*(fn+In),Ir=Yn>=Wn,Sr=dr>=cr,Vr=Sr<<1|Ir;yn.leaf=!1,Ir?en=Wn:En=Wn,Sr?fn=cr:In=cr,gn(yn=yn.nodes[Vr]||(yn.nodes[Vr]={leaf:!0,nodes:[],point:null,x:null,y:null}),Nn,Yn,dr,en,fn,En,In)}Qt>Jt?Pt=xt+Qt:ot=dt+Jt;var kn={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(yn){gn(kn,yn,+_t(yn,++vt),+ft(yn,vt),dt,xt,ot,Pt)}};if(kn.visit=function(yn){hs(yn,kn,dt,xt,ot,Pt)},kn.find=function(yn){return function(Nn,Yn,dr,en,fn,En,In){var Wn,cr=1/0;return function Ir(Sr,Vr,Fr,Yr,da){if(!(Vr>En||Fr>In||Yr=Ta)<<1|Yn>=ya,xi=Ba+4;Ba=0&&!(ae=s.interpolators[fe](I,K)););return ae}function kc(I,K){var ae,fe=[],he=[],me=I.length,Ce=K.length,Pe=Math.min(I.length,K.length);for(ae=0;ae=1)return 1;var K=I*I,ae=K*I;return 4*(I<.5?ae:3*(I-K)+ae-.75)}function KP(I){return 1-Math.cos(I*ut)}function JP(I){return Math.pow(2,10*(I-1))}function QP(I){return 1-Math.sqrt(1-I*I)}function eD(I){return I<.36363636363636365?7.5625*I*I:I<.7272727272727273?7.5625*(I-=.5454545454545454)*I+.75:I<.9090909090909091?7.5625*(I-=.8181818181818182)*I+.9375:7.5625*(I-=.9545454545454546)*I+.984375}function Vx(I,K){return K-=I,function(ae){return Math.round(I+K*ae)}}function Yx(I){var K,ae,fe,he=[I.a,I.b],me=[I.c,I.d],Ce=Xx(he),Pe=Gx(he,me),Le=Xx(((K=me)[0]+=(fe=-Pe)*(ae=he)[0],K[1]+=fe*ae[1],K))||0;he[0]*me[1]=0?I.slice(0,ae):I,he=ae>=0?I.slice(ae+1):"in";return fe=VP.get(fe)||Wx,he=YP.get(he)||W,K=he(fe.apply(null,u.call(arguments,1))),function(me){return me<=0?0:me>=1?1:K(me)}},s.interpolateHcl=function(I,K){I=s.hcl(I),K=s.hcl(K);var ae=I.h,fe=I.c,he=I.l,me=K.h-ae,Ce=K.c-fe,Pe=K.l-he;return isNaN(Ce)&&(Ce=0,fe=isNaN(fe)?K.c:fe),isNaN(me)?(me=0,ae=isNaN(ae)?K.h:ae):me>180?me-=360:me<-180&&(me+=360),function(Le){return mt(ae+me*Le,fe+Ce*Le,he+Pe*Le)+""}},s.interpolateHsl=function(I,K){I=s.hsl(I),K=s.hsl(K);var ae=I.h,fe=I.s,he=I.l,me=K.h-ae,Ce=K.s-fe,Pe=K.l-he;return isNaN(Ce)&&(Ce=0,fe=isNaN(fe)?K.s:fe),isNaN(me)?(me=0,ae=isNaN(ae)?K.h:ae):me>180?me-=360:me<-180&&(me+=360),function(Le){return Ke(ae+me*Le,fe+Ce*Le,he+Pe*Le)+""}},s.interpolateLab=function(I,K){I=s.lab(I),K=s.lab(K);var ae=I.l,fe=I.a,he=I.b,me=K.l-ae,Ce=K.a-fe,Pe=K.b-he;return function(Le){return gt(ae+me*Le,fe+Ce*Le,he+Pe*Le)+""}},s.interpolateRound=Vx,s.transform=function(I){var K=h.createElementNS(s.ns.prefix.svg,"g");return(s.transform=function(ae){if(ae!=null){K.setAttribute("transform",ae);var fe=K.transform.baseVal.consolidate()}return new Yx(fe?fe.matrix:tD)})(I)},Yx.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var tD={a:1,b:0,c:0,d:1,e:0,f:0};function al(I){return I.length?I.pop()+",":""}function Zx(I,K){var ae=[],fe=[];return I=s.transform(I),K=s.transform(K),function(he,me,Ce,Pe){if(he[0]!==me[0]||he[1]!==me[1]){var Le=Ce.push("translate(",null,",",null,")");Pe.push({i:Le-4,x:bi(he[0],me[0])},{i:Le-2,x:bi(he[1],me[1])})}else(me[0]||me[1])&&Ce.push("translate("+me+")")}(I.translate,K.translate,ae,fe),function(he,me,Ce,Pe){he!==me?(he-me>180?me+=360:me-he>180&&(he+=360),Pe.push({i:Ce.push(al(Ce)+"rotate(",null,")")-2,x:bi(he,me)})):me&&Ce.push(al(Ce)+"rotate("+me+")")}(I.rotate,K.rotate,ae,fe),function(he,me,Ce,Pe){he!==me?Pe.push({i:Ce.push(al(Ce)+"skewX(",null,")")-2,x:bi(he,me)}):me&&Ce.push(al(Ce)+"skewX("+me+")")}(I.skew,K.skew,ae,fe),function(he,me,Ce,Pe){if(he[0]!==me[0]||he[1]!==me[1]){var Le=Ce.push(al(Ce)+"scale(",null,",",null,")");Pe.push({i:Le-4,x:bi(he[0],me[0])},{i:Le-2,x:bi(he[1],me[1])})}else me[0]===1&&me[1]===1||Ce.push(al(Ce)+"scale("+me+")")}(I.scale,K.scale,ae,fe),I=K=null,function(he){for(var me,Ce=-1,Pe=fe.length;++Ce0?ae=ft:(I.c=null,I.t=NaN,I=null,Pe.end({type:"end",alpha:ae=0})):ft>0&&(Pe.start({type:"start",alpha:ae=ft}),I=nn(Ce.tick)),Ce):ae},Ce.start=function(){var ft,Ut,Ht,Qt=xt.length,Jt=ot.length,gn=Le[0],vn=Le[1];for(ft=0;ft=0;)ae.push(he[fe])}function ai(I,K){for(var ae=[I],fe=[];(I=ae.pop())!=null;)if(fe.push(I),(me=I.children)&&(he=me.length))for(var he,me,Ce=-1;++Ce=0;)Ce.push(He=Fe[Le]),He.parent=me,He.depth=me.depth+1;ae&&(me.value=0),me.children=Fe}else ae&&(me.value=+ae.call(fe,me,me.depth)||0),delete me.children;return ai(he,function(Xe){var rt,vt;I&&(rt=Xe.children)&&rt.sort(I),ae&&(vt=Xe.parent)&&(vt.value+=Xe.value)}),Pe}return fe.sort=function(he){return arguments.length?(I=he,fe):I},fe.children=function(he){return arguments.length?(K=he,fe):K},fe.value=function(he){return arguments.length?(ae=he,fe):ae},fe.revalue=function(he){return ae&&(gs(he,function(me){me.children&&(me.value=0)}),ai(he,function(me){var Ce;me.children||(me.value=+ae.call(fe,me,me.depth)||0),(Ce=me.parent)&&(Ce.value+=me.value)})),he},fe},s.layout.partition=function(){var I=s.layout.hierarchy(),K=[1,1];function ae(me,Ce,Pe,Le){var Fe=me.children;if(me.x=Ce,me.y=me.depth*Le,me.dx=Pe,me.dy=Le,Fe&&(He=Fe.length)){var He,Xe,rt,vt=-1;for(Pe=me.value?Pe/me.value:0;++vtPe&&(Pe=fe),Ce.push(fe)}for(ae=0;aehe&&(fe=ae,he=K);return fe}function _D(I){return I.reduce(TD,0)}function TD(I,K){return I+K[1]}function kD(I,K){return e2(I,Math.ceil(Math.log(K.length)/Math.LN2+1))}function e2(I,K){for(var ae=-1,fe=+I[0],he=(I[1]-fe)/K,me=[];++ae<=K;)me[ae]=he*ae+fe;return me}function MD(I){return[s.min(I),s.max(I)]}function SD(I,K){return I.value-K.value}function Vp(I,K){var ae=I._pack_next;I._pack_next=K,K._pack_prev=I,K._pack_next=ae,ae._pack_prev=K}function t2(I,K){I._pack_next=K,K._pack_prev=I}function n2(I,K){var ae=K.x-I.x,fe=K.y-I.y,he=I.r+K.r;return .999*he*he>ae*ae+fe*fe}function r2(I){if((K=I.children)&&(Le=K.length)){var K,ae,fe,he,me,Ce,Pe,Le,Fe=1/0,He=-1/0,Xe=1/0,rt=-1/0;if(K.forEach(CD),(ae=K[0]).x=-ae.r,ae.y=0,_t(ae),Le>1&&((fe=K[1]).x=fe.r,fe.y=0,_t(fe),Le>2))for(i2(ae,fe,he=K[2]),_t(he),Vp(ae,he),ae._pack_prev=he,Vp(he,fe),fe=ae._pack_next,me=3;me0)for(Ce=-1;++Ce=Xe[0]&&Le<=Xe[1]&&((Pe=Fe[s.bisect(rt,Le,1,Ct)-1]).y+=dt,Pe.push(me[Ce]));return Fe}return he.value=function(me){return arguments.length?(K=me,he):K},he.range=function(me){return arguments.length?(ae=Wt(me),he):ae},he.bins=function(me){return arguments.length?(fe=typeof me=="number"?function(Ce){return e2(Ce,me)}:Wt(me),he):fe},he.frequency=function(me){return arguments.length?(I=!!me,he):I},he},s.layout.pack=function(){var I,K=s.layout.hierarchy().sort(SD),ae=0,fe=[1,1];function he(me,Ce){var Pe=K.call(this,me,Ce),Le=Pe[0],Fe=fe[0],He=fe[1],Xe=I==null?Math.sqrt:typeof I=="function"?I:function(){return I};if(Le.x=Le.y=0,ai(Le,function(vt){vt.r=+Xe(vt.value)}),ai(Le,r2),ae){var rt=ae*(I?1:Math.max(2*Le.r/Fe,2*Le.r/He))/2;ai(Le,function(vt){vt.r+=rt}),ai(Le,r2),ai(Le,function(vt){vt.r-=rt})}return a2(Le,Fe/2,He/2,I?1:1/Math.max(2*Le.r/Fe,2*Le.r/He)),Pe}return he.size=function(me){return arguments.length?(fe=me,he):fe},he.radius=function(me){return arguments.length?(I=me==null||typeof me=="function"?me:+me,he):I},he.padding=function(me){return arguments.length?(ae=+me,he):ae},ps(he,K)},s.layout.tree=function(){var I=s.layout.hierarchy().sort(null).value(null),K=o2,ae=[1,1],fe=null;function he(Le,Fe){var He=I.call(this,Le,Fe),Xe=He[0],rt=function(_t){for(var ft,Ut={A:null,children:[_t]},Ht=[Ut];(ft=Ht.pop())!=null;)for(var Qt,Jt=ft.children,gn=0,vn=Jt.length;gnCt.x&&(Ct=_t),_t.depth>dt.depth&&(dt=_t)});var xt=K(vt,Ct)/2-vt.x,ot=ae[0]/(Ct.x+K(Ct,vt)/2+xt),Pt=ae[1]/(dt.depth||1);gs(Xe,function(_t){_t.x=(_t.x+xt)*ot,_t.y=_t.depth*Pt})}return He}function me(Le){var Fe=Le.children,He=Le.parent.children,Xe=Le.i?He[Le.i-1]:null;if(Fe.length){(function(vt){for(var Ct,dt=0,xt=0,ot=vt.children,Pt=ot.length;--Pt>=0;)(Ct=ot[Pt]).z+=dt,Ct.m+=dt,dt+=Ct.s+(xt+=Ct.c)})(Le);var rt=(Fe[0].z+Fe[Fe.length-1].z)/2;Xe?(Le.z=Xe.z+K(Le._,Xe._),Le.m=Le.z-rt):Le.z=rt}else Xe&&(Le.z=Xe.z+K(Le._,Xe._));Le.parent.A=function(vt,Ct,dt){if(Ct){for(var xt,ot=vt,Pt=vt,_t=Ct,ft=ot.parent.children[0],Ut=ot.m,Ht=Pt.m,Qt=_t.m,Jt=ft.m;_t=Gp(_t),ot=Yp(ot),_t&&ot;)ft=Yp(ft),(Pt=Gp(Pt)).a=vt,(xt=_t.z+Qt-ot.z-Ut+K(_t._,ot._))>0&&(AD(PD(_t,vt,dt),vt,xt),Ut+=xt,Ht+=xt),Qt+=_t.m,Ut+=ot.m,Jt+=ft.m,Ht+=Pt.m;_t&&!Gp(Pt)&&(Pt.t=_t,Pt.m+=Qt-Ht),ot&&!Yp(ft)&&(ft.t=ot,ft.m+=Ut-Jt,dt=vt)}return dt}(Le,Xe,Le.parent.A||He[0])}function Ce(Le){Le._.x=Le.z+Le.parent.m,Le.m+=Le.parent.m}function Pe(Le){Le.x*=ae[0],Le.y=Le.depth*ae[1]}return he.separation=function(Le){return arguments.length?(K=Le,he):K},he.size=function(Le){return arguments.length?(fe=(ae=Le)==null?Pe:null,he):fe?null:ae},he.nodeSize=function(Le){return arguments.length?(fe=(ae=Le)==null?null:Pe,he):fe?ae:null},ps(he,I)},s.layout.cluster=function(){var I=s.layout.hierarchy().sort(null).value(null),K=o2,ae=[1,1],fe=!1;function he(me,Ce){var Pe,Le=I.call(this,me,Ce),Fe=Le[0],He=0;ai(Fe,function(dt){var xt=dt.children;xt&&xt.length?(dt.x=function(ot){return ot.reduce(function(Pt,_t){return Pt+_t.x},0)/ot.length}(xt),dt.y=function(ot){return 1+s.max(ot,function(Pt){return Pt.y})}(xt)):(dt.x=Pe?He+=K(dt,Pe):0,dt.y=0,Pe=dt)});var Xe=l2(Fe),rt=s2(Fe),vt=Xe.x-K(Xe,rt)/2,Ct=rt.x+K(rt,Xe)/2;return ai(Fe,fe?function(dt){dt.x=(dt.x-Fe.x)*ae[0],dt.y=(Fe.y-dt.y)*ae[1]}:function(dt){dt.x=(dt.x-vt)/(Ct-vt)*ae[0],dt.y=(1-(Fe.y?dt.y/Fe.y:1))*ae[1]}),Le}return he.separation=function(me){return arguments.length?(K=me,he):K},he.size=function(me){return arguments.length?(fe=(ae=me)==null,he):fe?null:ae},he.nodeSize=function(me){return arguments.length?(fe=(ae=me)!=null,he):fe?ae:null},ps(he,I)},s.layout.treemap=function(){var I,K=s.layout.hierarchy(),ae=Math.round,fe=[1,1],he=null,me=Xp,Ce=!1,Pe="squarify",Le=.5*(1+Math.sqrt(5));function Fe(dt,xt){for(var ot,Pt,_t=-1,ft=dt.length;++_t0;)Ut.push(ot=Ht[_t-1]),Ut.area+=ot.area,Pe!=="squarify"||(Pt=rt(Ut,Jt))<=Qt?(Ht.pop(),Qt=Pt):(Ut.area-=Ut.pop().area,vt(Ut,Jt,ft,!1),Jt=Math.min(ft.dx,ft.dy),Ut.length=Ut.area=0,Qt=1/0);Ut.length&&(vt(Ut,Jt,ft,!0),Ut.length=Ut.area=0),xt.forEach(He)}}function Xe(dt){var xt=dt.children;if(xt&&xt.length){var ot,Pt=me(dt),_t=xt.slice(),ft=[];for(Fe(_t,Pt.dx*Pt.dy/dt.value),ft.area=0;ot=_t.pop();)ft.push(ot),ft.area+=ot.area,ot.z!=null&&(vt(ft,ot.z?Pt.dx:Pt.dy,Pt,!_t.length),ft.length=ft.area=0);xt.forEach(Xe)}}function rt(dt,xt){for(var ot,Pt=dt.area,_t=0,ft=1/0,Ut=-1,Ht=dt.length;++Ut_t&&(_t=ot));return xt*=xt,(Pt*=Pt)?Math.max(xt*_t*Le/Pt,Pt/(xt*ft*Le)):1/0}function vt(dt,xt,ot,Pt){var _t,ft=-1,Ut=dt.length,Ht=ot.x,Qt=ot.y,Jt=xt?ae(dt.area/xt):0;if(xt==ot.dx){for((Pt||Jt>ot.dy)&&(Jt=ot.dy);++ftot.dx)&&(Jt=ot.dx);++ft1);return I+K*fe*Math.sqrt(-2*Math.log(me)/me)}},logNormal:function(){var I=s.random.normal.apply(s,arguments);return function(){return Math.exp(I())}},bates:function(I){var K=s.random.irwinHall(I);return function(){return K()/I}},irwinHall:function(I){return function(){for(var K=0,ae=0;ae2?RD:DD,Fe=fe?rD:nD;return he=Le(I,K,Fe,ae),me=Le(K,I,Fe,so),Pe}function Pe(Le){return he(Le)}return Pe.invert=function(Le){return me(Le)},Pe.domain=function(Le){return arguments.length?(I=Le.map(Number),Ce()):I},Pe.range=function(Le){return arguments.length?(K=Le,Ce()):K},Pe.rangeRound=function(Le){return Pe.range(Le).interpolate(Vx)},Pe.clamp=function(Le){return arguments.length?(fe=Le,Ce()):fe},Pe.interpolate=function(Le){return arguments.length?(ae=Le,Ce()):ae},Pe.ticks=function(Le){return Jp(I,Le)},Pe.tickFormat=function(Le,Fe){return d3_scale_linearTickFormat(I,Le,Fe)},Pe.nice=function(Le){return h2(I,Le),Ce()},Pe.copy=function(){return f2(I,K,ae,fe)},Ce()}function d2(I,K){return s.rebind(I,K,"range","rangeRound","interpolate","clamp")}function h2(I,K){return Zp(I,c2(Kp(I,K)[2])),Zp(I,c2(Kp(I,K)[2])),I}function Kp(I,K){K==null&&(K=10);var ae=Mc(I),fe=ae[1]-ae[0],he=Math.pow(10,Math.floor(Math.log(fe/K)/Math.LN10)),me=K/fe*he;return me<=.15?he*=10:me<=.35?he*=5:me<=.75&&(he*=2),ae[0]=Math.ceil(ae[0]/he)*he,ae[1]=Math.floor(ae[1]/he)*he+.5*he,ae[2]=he,ae}function Jp(I,K){return s.range.apply(s,Kp(I,K))}function p2(I,K,ae,fe){function he(Pe){return(ae?Math.log(Pe<0?0:Pe):-Math.log(Pe>0?0:-Pe))/Math.log(K)}function me(Pe){return ae?Math.pow(K,Pe):-Math.pow(K,-Pe)}function Ce(Pe){return I(he(Pe))}return Ce.invert=function(Pe){return me(I.invert(Pe))},Ce.domain=function(Pe){return arguments.length?(ae=Pe[0]>=0,I.domain((fe=Pe.map(Number)).map(he)),Ce):fe},Ce.base=function(Pe){return arguments.length?(K=+Pe,I.domain(fe.map(he)),Ce):K},Ce.nice=function(){var Pe=Zp(fe.map(he),ae?Math:LD);return I.domain(Pe),fe=Pe.map(me),Ce},Ce.ticks=function(){var Pe=Mc(fe),Le=[],Fe=Pe[0],He=Pe[1],Xe=Math.floor(he(Fe)),rt=Math.ceil(he(He)),vt=K%1?2:K;if(isFinite(rt-Xe)){if(ae){for(;Xe0;Ct--)Le.push(me(Xe)*Ct);for(Xe=0;Le[Xe]He;rt--);Le=Le.slice(Xe,rt)}return Le},Ce.copy=function(){return p2(I.copy(),K,ae,fe)},d2(Ce,I)}s.scale.linear=function(){return f2([0,1],[0,1],so,!1)},s.scale.log=function(){return p2(s.scale.linear().domain([0,1]),10,!0,[1,10])};var LD={floor:function(I){return-Math.ceil(-I)},ceil:function(I){return-Math.floor(-I)}};function g2(I,K,ae){var fe=Cc(K),he=Cc(1/K);function me(Ce){return I(fe(Ce))}return me.invert=function(Ce){return he(I.invert(Ce))},me.domain=function(Ce){return arguments.length?(I.domain((ae=Ce.map(Number)).map(fe)),me):ae},me.ticks=function(Ce){return Jp(ae,Ce)},me.tickFormat=function(Ce,Pe){return d3_scale_linearTickFormat(ae,Ce,Pe)},me.nice=function(Ce){return me.domain(h2(ae,Ce))},me.exponent=function(Ce){return arguments.length?(fe=Cc(K=Ce),he=Cc(1/K),I.domain(ae.map(fe)),me):K},me.copy=function(){return g2(I.copy(),K,ae)},d2(me,I)}function Cc(I){return function(K){return K<0?-Math.pow(-K,I):Math.pow(K,I)}}function m2(I,K){var ae,fe,he;function me(Pe){return fe[((ae.get(Pe)||(K.t==="range"?ae.set(Pe,I.push(Pe)):NaN))-1)%fe.length]}function Ce(Pe,Le){return s.range(I.length).map(function(Fe){return Pe+Le*Fe})}return me.domain=function(Pe){if(!arguments.length)return I;I=[],ae=new D;for(var Le,Fe=-1,He=Pe.length;++Fe0?ae[me-1]:I[0],mert?0:1;if(He=Je)return Le(He,Ct)+(Fe?Le(Fe,1-Ct):"")+"Z";var dt,xt,ot,Pt,_t,ft,Ut,Ht,Qt,Jt,gn,vn,kn=0,yn=0,Nn=[];if((Pt=(+Ce.apply(this,arguments)||0)/2)&&(ot=fe===Oc?Math.sqrt(Fe*Fe+He*He):+fe.apply(this,arguments),Ct||(yn*=-1),He&&(yn=Mt(ot/He*Math.sin(Pt))),Fe&&(kn=Mt(ot/Fe*Math.sin(Pt)))),He){_t=He*Math.cos(Xe+yn),ft=He*Math.sin(Xe+yn),Ut=He*Math.cos(rt-yn),Ht=He*Math.sin(rt-yn);var Yn=Math.abs(rt-Xe-2*yn)<=it?0:1;if(yn&&Ac(_t,ft,Ut,Ht)===Ct^Yn){var dr=(Xe+rt)/2;_t=He*Math.cos(dr),ft=He*Math.sin(dr),Ut=Ht=null}}else _t=ft=0;if(Fe){Qt=Fe*Math.cos(rt-kn),Jt=Fe*Math.sin(rt-kn),gn=Fe*Math.cos(Xe+kn),vn=Fe*Math.sin(Xe+kn);var en=Math.abs(Xe-rt+2*kn)<=it?0:1;if(kn&&Ac(Qt,Jt,gn,vn)===1-Ct^en){var fn=(Xe+rt)/2;Qt=Fe*Math.cos(fn),Jt=Fe*Math.sin(fn),gn=vn=null}}else Qt=Jt=0;if(vt>Ne&&(dt=Math.min(Math.abs(He-Fe)/2,+ae.apply(this,arguments)))>.001){xt=Fe0?0:1}function Pc(I,K,ae,fe,he){var me=I[0]-K[0],Ce=I[1]-K[1],Pe=(he?fe:-fe)/Math.sqrt(me*me+Ce*Ce),Le=Pe*Ce,Fe=-Pe*me,He=I[0]+Le,Xe=I[1]+Fe,rt=K[0]+Le,vt=K[1]+Fe,Ct=(He+rt)/2,dt=(Xe+vt)/2,xt=rt-He,ot=vt-Xe,Pt=xt*xt+ot*ot,_t=ae-fe,ft=He*vt-rt*Xe,Ut=(ot<0?-1:1)*Math.sqrt(Math.max(0,_t*_t*Pt-ft*ft)),Ht=(ft*ot-xt*Ut)/Pt,Qt=(-ft*xt-ot*Ut)/Pt,Jt=(ft*ot+xt*Ut)/Pt,gn=(-ft*xt+ot*Ut)/Pt,vn=Ht-Ct,kn=Qt-dt,yn=Jt-Ct,Nn=gn-dt;return vn*vn+kn*kn>yn*yn+Nn*Nn&&(Ht=Jt,Qt=gn),[[Ht-Le,Qt-Fe],[Ht*ae/_t,Qt*ae/_t]]}function T2(){return!0}function k2(I){var K=Pn,ae=xn,fe=T2,he=Za,me=he.key,Ce=.7;function Pe(Le){var Fe,He=[],Xe=[],rt=-1,vt=Le.length,Ct=Wt(K),dt=Wt(ae);function xt(){He.push("M",he(I(Xe),Ce))}for(;++rt1&&he.push("H",fe[0]),he.join("")},"step-before":eg,"step-after":tg,basis:S2,"basis-open":function(I){if(I.length<4)return Za(I);for(var K,ae=[],fe=-1,he=I.length,me=[0],Ce=[0];++fe<3;)K=I[fe],me.push(K[0]),Ce.push(K[1]);for(ae.push($a($i,me)+","+$a($i,Ce)),--fe;++fe9&&(me=3*ae/Math.sqrt(me),Pe[Le]=me*fe,Pe[Le+1]=me*he);for(Le=-1;++Le<=Fe;)me=(K[Math.min(Fe,Le+1)][0]-K[Math.max(0,Le-1)][0])/(6*(1+Pe[Le]*Pe[Le])),Ce.push([me||0,Pe[Le]*me||0]);return Ce}(I))}});function Za(I){return I.length>1?I.join("L"):I+"Z"}function M2(I){return I.join("L")+"Z"}function eg(I){for(var K=0,ae=I.length,fe=I[0],he=[fe[0],",",fe[1]];++K1){Pe=K[1],me=I[Le],Le++,fe+="C"+(he[0]+Ce[0])+","+(he[1]+Ce[1])+","+(me[0]-Pe[0])+","+(me[1]-Pe[1])+","+me[0]+","+me[1];for(var Fe=2;Feit)+",1 "+He}function Le(Fe,He,Xe,rt){return"Q 0,0 "+rt}return me.radius=function(Fe){return arguments.length?(ae=Wt(Fe),me):ae},me.source=function(Fe){return arguments.length?(I=Wt(Fe),me):I},me.target=function(Fe){return arguments.length?(K=Wt(Fe),me):K},me.startAngle=function(Fe){return arguments.length?(fe=Wt(Fe),me):fe},me.endAngle=function(Fe){return arguments.length?(he=Wt(Fe),me):he},me},s.svg.diagonal=function(){var I=D2,K=E2,ae=R2;function fe(he,me){var Ce=I.call(this,he,me),Pe=K.call(this,he,me),Le=(Ce.y+Pe.y)/2,Fe=[Ce,{x:Ce.x,y:Le},{x:Pe.x,y:Le},Pe];return"M"+(Fe=Fe.map(ae))[0]+"C"+Fe[1]+" "+Fe[2]+" "+Fe[3]}return fe.source=function(he){return arguments.length?(I=Wt(he),fe):I},fe.target=function(he){return arguments.length?(K=Wt(he),fe):K},fe.projection=function(he){return arguments.length?(ae=he,fe):ae},fe},s.svg.diagonal.radial=function(){var I=s.svg.diagonal(),K=R2,ae=I.projection;return I.projection=function(fe){return arguments.length?ae(function(he){return function(){var me=he.apply(this,arguments),Ce=me[0],Pe=me[1]-ut;return[Ce*Math.cos(Pe),Ce*Math.sin(Pe)]}}(K=fe)):K},I},s.svg.symbol=function(){var I=HD,K=UD;function ae(fe,he){return(I2.get(I.call(this,fe,he))||L2)(K.call(this,fe,he))}return ae.type=function(fe){return arguments.length?(I=Wt(fe),ae):I},ae.size=function(fe){return arguments.length?(K=Wt(fe),ae):K},ae};var I2=s.map({circle:L2,cross:function(I){var K=Math.sqrt(I/5)/2;return"M"+-3*K+","+-K+"H"+-K+"V"+-3*K+"H"+K+"V"+-K+"H"+3*K+"V"+K+"H"+K+"V"+3*K+"H"+-K+"V"+K+"H"+-3*K+"Z"},diamond:function(I){var K=Math.sqrt(I/(2*F2)),ae=K*F2;return"M0,"+-K+"L"+ae+",0 0,"+K+" "+-ae+",0Z"},square:function(I){var K=Math.sqrt(I)/2;return"M"+-K+","+-K+"L"+K+","+-K+" "+K+","+K+" "+-K+","+K+"Z"},"triangle-down":function(I){var K=Math.sqrt(I/Ec),ae=K*Ec/2;return"M0,"+ae+"L"+K+","+-ae+" "+-K+","+-ae+"Z"},"triangle-up":function(I){var K=Math.sqrt(I/Ec),ae=K*Ec/2;return"M0,"+-ae+"L"+K+","+ae+" "+-K+","+ae+"Z"}});s.svg.symbolTypes=I2.keys();var Ec=Math.sqrt(3),F2=Math.tan(30*pt);se.transition=function(I){for(var K,ae,fe=uo||++j2,he=og(I),me=[],Ce=Lc||{time:Date.now(),ease:ZP,delay:0,duration:250},Pe=-1,Le=this.length;++Pe0;)Fe[--ot].call(I,xt);if(dt>=1)return Xe.event&&Xe.event.end.call(I,I.__data__,K),--He.count?delete He[fe]:delete I[ae],1}Xe||(me=he.time,Ce=nn(function(Ct){var dt=Xe.delay;if(Ce.t=dt+me,dt<=Ct)return rt(Ct-dt);Ce.c=rt},0,me),Xe=He[fe]={tween:new D,time:me,timer:Ce,delay:he.delay,duration:he.duration,ease:he.ease,index:K},he=null,++He.count)}zr.call=se.call,zr.empty=se.empty,zr.node=se.node,zr.size=se.size,s.transition=function(I,K){return I&&I.transition?uo?I.transition(K):I:s.selection().transition(I)},s.transition.prototype=zr,zr.select=function(I){var K,ae,fe,he=this.id,me=this.namespace,Ce=[];I=pe(I);for(var Pe=-1,Le=this.length;++Perect,.s>rect").attr("width",me[1]-me[0])}function vt(dt){dt.select(".extent").attr("y",Ce[0]),dt.selectAll(".extent,.e>rect,.w>rect").attr("height",Ce[1]-Ce[0])}function Ct(){var dt,xt,ot=this,Pt=s.select(s.event.target),_t=ae.of(ot,arguments),ft=s.select(ot),Ut=Pt.datum(),Ht=!/^(n|s)$/.test(Ut)&&fe,Qt=!/^(e|w)$/.test(Ut)&&he,Jt=Pt.classed("extent"),gn=lt(ot),vn=s.mouse(ot),kn=s.select(g(ot)).on("keydown.brush",function(){s.event.keyCode==32&&(Jt||(dt=null,vn[0]-=me[1],vn[1]-=Ce[1],Jt=2),ee())}).on("keyup.brush",function(){s.event.keyCode==32&&Jt==2&&(vn[0]+=me[1],vn[1]+=Ce[1],Jt=0,ee())});if(s.event.changedTouches?kn.on("touchmove.brush",Yn).on("touchend.brush",en):kn.on("mousemove.brush",Yn).on("mouseup.brush",en),ft.interrupt().selectAll("*").interrupt(),Jt)vn[0]=me[0]-vn[0],vn[1]=Ce[0]-vn[1];else if(Ut){var yn=+/w$/.test(Ut),Nn=+/^n/.test(Ut);xt=[me[1-yn]-vn[0],Ce[1-Nn]-vn[1]],vn[0]=me[yn],vn[1]=Ce[Nn]}else s.event.altKey&&(dt=vn.slice());function Yn(){var fn=s.mouse(ot),En=!1;xt&&(fn[0]+=xt[0],fn[1]+=xt[1]),Jt||(s.event.altKey?(dt||(dt=[(me[0]+me[1])/2,(Ce[0]+Ce[1])/2]),vn[0]=me[+(fn[0]1?L-1:0),H=1;H1?L-1:0),H=1;H1?L-1:0),H=1;H1?L-1:0),H=1;H"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}()?Reflect.construct:function(F,A,z){var B=[null];B.push.apply(B,A);var $=new(Function.bind.apply(F,B));return z&&m($,z.prototype),$},p.apply(null,arguments)}function m(D,O){return m=Object.setPrototypeOf||function(R,F){return R.__proto__=F,R},m(D,O)}function y(D){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(O){return O.__proto__||Object.getPrototypeOf(O)},y(D)}function v(D){return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(O){return typeof O}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},v(D)}var g=n(43827).inspect,b=n(79616).codes.ERR_INVALID_ARG_TYPE;function x(D,O,R){return(R===void 0||R>D.length)&&(R=D.length),D.substring(R-O.length,R)===O}var _="",w="",k="",T="",M={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function S(D){var O=Object.keys(D),R=Object.create(Object.getPrototypeOf(D));return O.forEach(function(F){R[F]=D[F]}),Object.defineProperty(R,"message",{value:D.message}),R}function C(D){return g(D,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var P=function(D){function O(A){var z;if(function(te,ee){if(!(te instanceof ee))throw new TypeError("Cannot call a class as a function")}(this,O),v(A)!=="object"||A===null)throw new b("options","Object",A);var B=A.message,$=A.operator,j=A.stackStartFn,N=A.actual,E=A.expected,W=Error.stackTraceLimit;if(Error.stackTraceLimit=0,B!=null)z=c(this,y(O).call(this,String(B)));else if(l.stderr&&l.stderr.isTTY&&(l.stderr&&l.stderr.getColorDepth&&l.stderr.getColorDepth()!==1?(_="\x1B[34m",w="\x1B[32m",T="\x1B[39m",k="\x1B[31m"):(_="",w="",T="",k="")),v(N)==="object"&&N!==null&&v(E)==="object"&&E!==null&&"stack"in N&&N instanceof Error&&"stack"in E&&E instanceof Error&&(N=S(N),E=S(E)),$==="deepStrictEqual"||$==="strictEqual")z=c(this,y(O).call(this,function(te,ee,U){var Q="",Y="",Z=0,X="",re=!1,ie=C(te),le=ie.split(` +`))}throw q}},C.strict=k(E,C,{equal:C.strictEqual,deepEqual:C.deepStrictEqual,notEqual:C.notStrictEqual,notDeepEqual:C.notDeepStrictEqual}),C.strict.strict=C.strict},73894:function(o,a,n){var l=n(90386);function f(D,O,R){return O in D?Object.defineProperty(D,O,{value:R,enumerable:!0,configurable:!0,writable:!0}):D[O]=R,D}function s(D,O){for(var R=0;R"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}()?Reflect.construct:function(F,A,z){var B=[null];B.push.apply(B,A);var $=new(Function.bind.apply(F,B));return z&&g($,z.prototype),$},p.apply(null,arguments)}function g(D,O){return g=Object.setPrototypeOf||function(R,F){return R.__proto__=F,R},g(D,O)}function y(D){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(O){return O.__proto__||Object.getPrototypeOf(O)},y(D)}function v(D){return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(O){return typeof O}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},v(D)}var m=n(43827).inspect,b=n(79616).codes.ERR_INVALID_ARG_TYPE;function x(D,O,R){return(R===void 0||R>D.length)&&(R=D.length),D.substring(R-O.length,R)===O}var _="",w="",k="",T="",M={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function S(D){var O=Object.keys(D),R=Object.create(Object.getPrototypeOf(D));return O.forEach(function(F){R[F]=D[F]}),Object.defineProperty(R,"message",{value:D.message}),R}function C(D){return m(D,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var P=function(D){function O(A){var z;if(function(te,ee){if(!(te instanceof ee))throw new TypeError("Cannot call a class as a function")}(this,O),v(A)!=="object"||A===null)throw new b("options","Object",A);var B=A.message,$=A.operator,j=A.stackStartFn,N=A.actual,E=A.expected,W=Error.stackTraceLimit;if(Error.stackTraceLimit=0,B!=null)z=u(this,y(O).call(this,String(B)));else if(l.stderr&&l.stderr.isTTY&&(l.stderr&&l.stderr.getColorDepth&&l.stderr.getColorDepth()!==1?(_="\x1B[34m",w="\x1B[32m",T="\x1B[39m",k="\x1B[31m"):(_="",w="",T="",k="")),v(N)==="object"&&N!==null&&v(E)==="object"&&E!==null&&"stack"in N&&N instanceof Error&&"stack"in E&&E instanceof Error&&(N=S(N),E=S(E)),$==="deepStrictEqual"||$==="strictEqual")z=u(this,y(O).call(this,function(te,ee,U){var Q="",Y="",Z=0,X="",re=!1,ie=C(te),le=ie.split(` `),se=C(ee).split(` `),pe=0,Te="";if(U==="strictEqual"&&v(te)==="object"&&v(ee)==="object"&&te!==null&&ee!==null&&(U="strictEqualObject"),le.length===1&&se.length===1&&le[0]!==se[0]){var Se=le[0].length+se[0].length;if(Se<=10){if(!(v(te)==="object"&&te!==null||v(ee)==="object"&&ee!==null||te===0&&ee===0))return"".concat(M[U],` @@ -45,7 +45,7 @@ var JD=Object.defineProperty;var QD=(e,t,r)=>t in e?JD(e,t,{enumerable:!0,config `).concat(_,"...").concat(T).concat(Q,` `)+"".concat(_,"...").concat(T)}return"".concat(ne).concat(re?de:"",` `).concat(Y).concat(Q).concat(X).concat(Te)}(N,E,$)));else if($==="notDeepStrictEqual"||$==="notStrictEqual"){var G=M[$],L=C(N).split(` -`);if($==="notStrictEqual"&&v(N)==="object"&&N!==null&&(G=M.notStrictEqualObject),L.length>30)for(L[26]="".concat(_,"...").concat(T);L.length>27;)L.pop();z=L.length===1?c(this,y(O).call(this,"".concat(G," ").concat(L[0]))):c(this,y(O).call(this,"".concat(G,` +`);if($==="notStrictEqual"&&v(N)==="object"&&N!==null&&(G=M.notStrictEqualObject),L.length>30)for(L[26]="".concat(_,"...").concat(T);L.length>27;)L.pop();z=L.length===1?u(this,y(O).call(this,"".concat(G," ").concat(L[0]))):u(this,y(O).call(this,"".concat(G,` `).concat(L.join(` `),` @@ -57,18 +57,18 @@ var JD=Object.defineProperty;var QD=(e,t,r)=>t in e?JD(e,t,{enumerable:!0,config should equal -`):H=" ".concat($," ").concat(H)),z=c(this,y(O).call(this,"".concat(q).concat(H)))}return Error.stackTraceLimit=W,z.generatedMessage=!B,Object.defineProperty(d(z),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),z.code="ERR_ASSERTION",z.actual=N,z.expected=E,z.operator=$,Error.captureStackTrace&&Error.captureStackTrace(d(z),j),z.stack,z.name="AssertionError",c(z)}var R,F;return function(A,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(z&&z.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),z&&m(A,z)}(O,D),R=O,F=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:g.custom,value:function(A,z){return g(this,function(B){for(var $=1;$2?"one of ".concat(v," ").concat(y.slice(0,g-1).join(", "),", or ")+y[g-1]:g===2?"one of ".concat(v," ").concat(y[0]," or ").concat(y[1]):"of ".concat(v," ").concat(y[0])}return"of ".concat(v," ").concat(String(y))}p("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),p("ERR_INVALID_ARG_TYPE",function(y,v,g){var b,x,_,w,k;if(c===void 0&&(c=n(32791)),c(typeof y=="string","'name' must be a string"),typeof v=="string"&&(x="not ",v.substr(0,4)===x)?(b="must not be",v=v.replace(/^not /,"")):b="must be",function(M,S,C){return(C===void 0||C>M.length)&&(C=M.length),M.substring(C-9,C)===S}(y," argument"))_="The ".concat(y," ").concat(b," ").concat(m(v,"type"));else{var T=(typeof k!="number"&&(k=0),k+1>(w=y).length||w.indexOf(".",k)===-1?"argument":"property");_='The "'.concat(y,'" ').concat(T," ").concat(b," ").concat(m(v,"type"))}return _+". Received type ".concat(l(g))},TypeError),p("ERR_INVALID_ARG_VALUE",function(y,v){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";d===void 0&&(d=n(43827));var b=d.inspect(v);return b.length>128&&(b="".concat(b.slice(0,128),"...")),"The argument '".concat(y,"' ").concat(g,". Received ").concat(b)},TypeError),p("ERR_INVALID_RETURN_VALUE",function(y,v,g){var b;return b=g&&g.constructor&&g.constructor.name?"instance of ".concat(g.constructor.name):"type ".concat(l(g)),"Expected ".concat(y,' to be returned from the "').concat(v,'"')+" function but got ".concat(b,".")},TypeError),p("ERR_MISSING_ARGS",function(){for(var y=arguments.length,v=new Array(y),g=0;g0,"At least one arg needs to be specified");var b="The ",x=v.length;switch(v=v.map(function(_){return'"'.concat(_,'"')}),x){case 1:b+="".concat(v[0]," argument");break;case 2:b+="".concat(v[0]," and ").concat(v[1]," arguments");break;default:b+=v.slice(0,x-1).join(", "),b+=", and ".concat(v[x-1]," arguments")}return"".concat(b," must be specified")},TypeError),o.exports.codes=h},74061:function(o,a,n){function l(Z,X){return function(re){if(Array.isArray(re))return re}(Z)||function(re,ie){var le=[],se=!0,pe=!1,Te=void 0;try{for(var Se,Oe=re[Symbol.iterator]();!(se=(Se=Oe.next()).done)&&(le.push(Se.value),!ie||le.length!==ie);se=!0);}catch(Me){pe=!0,Te=Me}finally{try{se||Oe.return==null||Oe.return()}finally{if(pe)throw Te}}return le}(Z,X)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function f(Z){return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(X){return typeof X}:function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},f(Z)}var s=/a/g.flags!==void 0,c=function(Z){var X=[];return Z.forEach(function(re){return X.push(re)}),X},d=function(Z){var X=[];return Z.forEach(function(re,ie){return X.push([ie,re])}),X},h=Object.is?Object.is:n(64003),p=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},m=Number.isNaN?Number.isNaN:n(15567);function y(Z){return Z.call.bind(Z)}var v=y(Object.prototype.hasOwnProperty),g=y(Object.prototype.propertyIsEnumerable),b=y(Object.prototype.toString),x=n(43827).types,_=x.isAnyArrayBuffer,w=x.isArrayBufferView,k=x.isDate,T=x.isMap,M=x.isRegExp,S=x.isSet,C=x.isNativeError,P=x.isBoxedPrimitive,D=x.isNumberObject,O=x.isStringObject,R=x.isBooleanObject,F=x.isBigIntObject,A=x.isSymbolObject,z=x.isFloat32Array,B=x.isFloat64Array;function $(Z){if(Z.length===0||Z.length>10)return!0;for(var X=0;X57)return!0}return Z.length===10&&Z>=Math.pow(2,32)}function j(Z){return Object.keys(Z).filter($).concat(p(Z).filter(Object.prototype.propertyIsEnumerable.bind(Z)))}function N(Z,X){if(Z===X)return 0;for(var re=Z.length,ie=X.length,le=0,se=Math.min(re,ie);le0?g-4:g;for(y=0;y>16&255,x[_++]=m>>8&255,x[_++]=255&m;return b===2&&(m=l[p.charCodeAt(y)]<<2|l[p.charCodeAt(y+1)]>>4,x[_++]=255&m),b===1&&(m=l[p.charCodeAt(y)]<<10|l[p.charCodeAt(y+1)]<<4|l[p.charCodeAt(y+2)]>>2,x[_++]=m>>8&255,x[_++]=255&m),x},a.fromByteArray=function(p){for(var m,y=p.length,v=y%3,g=[],b=16383,x=0,_=y-v;x<_;x+=b)g.push(h(p,x,x+b>_?_:x+b));return v===1?(m=p[y-1],g.push(n[m>>2]+n[m<<4&63]+"==")):v===2&&(m=(p[y-2]<<8)+p[y-1],g.push(n[m>>10]+n[m>>4&63]+n[m<<2&63]+"=")),g.join("")};for(var n=[],l=[],f=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0;c<64;++c)n[c]=s[c],l[s.charCodeAt(c)]=c;function d(p){var m=p.length;if(m%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=p.indexOf("=");return y===-1&&(y=m),[y,y===m?0:4-y%4]}function h(p,m,y){for(var v,g,b=[],x=m;x>18&63]+n[g>>12&63]+n[g>>6&63]+n[63&g]);return b.join("")}l[45]=62,l[95]=63},6614:function(o,a,n){var l=n(68318),f=n(68222),s=f(l("String.prototype.indexOf"));o.exports=function(c,d){var h=l(c,!!d);return typeof h=="function"&&s(c,".prototype.")>-1?f(h):h}},68222:function(o,a,n){var l=n(77575),f=n(68318),s=f("%Function.prototype.apply%"),c=f("%Function.prototype.call%"),d=f("%Reflect.apply%",!0)||l.call(c,s),h=f("%Object.getOwnPropertyDescriptor%",!0),p=f("%Object.defineProperty%",!0),m=f("%Math.max%");if(p)try{p({},"a",{value:1})}catch{p=null}o.exports=function(v){var g=d(l,c,arguments);return h&&p&&h(g,"length").configurable&&p(g,"length",{value:1+m(0,v.length-(arguments.length-1))}),g};var y=function(){return d(l,s,arguments)};p?p(o.exports,"apply",{value:y}):o.exports.apply=y},60721:function(o,a,n){function l(_,w){if((k=(_=w?_.toExponential(w-1):_.toExponential()).indexOf("e"))<0)return null;var k,T=_.slice(0,k);return[T.length>1?T[0]+T.slice(2):T,+_.slice(k+1)]}n.d(a,{WU:function(){return v},FF:function(){return x}});var f,s=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function c(_){if(!(w=s.exec(_)))throw new Error("invalid format: "+_);var w;return new d({fill:w[1],align:w[2],sign:w[3],symbol:w[4],zero:w[5],width:w[6],comma:w[7],precision:w[8]&&w[8].slice(1),trim:w[9],type:w[10]})}function d(_){this.fill=_.fill===void 0?" ":_.fill+"",this.align=_.align===void 0?">":_.align+"",this.sign=_.sign===void 0?"-":_.sign+"",this.symbol=_.symbol===void 0?"":_.symbol+"",this.zero=!!_.zero,this.width=_.width===void 0?void 0:+_.width,this.comma=!!_.comma,this.precision=_.precision===void 0?void 0:+_.precision,this.trim=!!_.trim,this.type=_.type===void 0?"":_.type+""}function h(_,w){var k=l(_,w);if(!k)return _+"";var T=k[0],M=k[1];return M<0?"0."+new Array(-M).join("0")+T:T.length>M+1?T.slice(0,M+1)+"."+T.slice(M+1):T+new Array(M-T.length+2).join("0")}c.prototype=d.prototype,d.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,0|this.width))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var p={"%":function(_,w){return(100*_).toFixed(w)},b:function(_){return Math.round(_).toString(2)},c:function(_){return _+""},d:function(_){return Math.abs(_=Math.round(_))>=1e21?_.toLocaleString("en").replace(/,/g,""):_.toString(10)},e:function(_,w){return _.toExponential(w)},f:function(_,w){return _.toFixed(w)},g:function(_,w){return _.toPrecision(w)},o:function(_){return Math.round(_).toString(8)},p:function(_,w){return h(100*_,w)},r:h,s:function(_,w){var k=l(_,w);if(!k)return _+"";var T=k[0],M=k[1],S=M-(f=3*Math.max(-8,Math.min(8,Math.floor(M/3))))+1,C=T.length;return S===C?T:S>C?T+new Array(S-C+1).join("0"):S>0?T.slice(0,S)+"."+T.slice(S):"0."+new Array(1-S).join("0")+l(_,Math.max(0,w+S-1))[0]},X:function(_){return Math.round(_).toString(16).toUpperCase()},x:function(_){return Math.round(_).toString(16)}};function m(_){return _}var y,v,g=Array.prototype.map,b=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function x(_){var w,k,T=_.grouping===void 0||_.thousands===void 0?m:(w=g.call(_.grouping,Number),k=_.thousands+"",function(A,z){for(var B=A.length,$=[],j=0,N=w[0],E=0;B>0&&N>0&&(E+N+1>z&&(N=Math.max(1,z-E)),$.push(A.substring(B-=N,B+N)),!((E+=N+1)>z));)N=w[j=(j+1)%w.length];return $.reverse().join(k)}),M=_.currency===void 0?"":_.currency[0]+"",S=_.currency===void 0?"":_.currency[1]+"",C=_.decimal===void 0?".":_.decimal+"",P=_.numerals===void 0?m:function(A){return function(z){return z.replace(/[0-9]/g,function(B){return A[+B]})}}(g.call(_.numerals,String)),D=_.percent===void 0?"%":_.percent+"",O=_.minus===void 0?"-":_.minus+"",R=_.nan===void 0?"NaN":_.nan+"";function F(A){var z=(A=c(A)).fill,B=A.align,$=A.sign,j=A.symbol,N=A.zero,E=A.width,W=A.comma,G=A.precision,L=A.trim,q=A.type;q==="n"?(W=!0,q="g"):p[q]||(G===void 0&&(G=12),L=!0,q="g"),(N||z==="0"&&B==="=")&&(N=!0,z="0",B="=");var H=j==="$"?M:j==="#"&&/[boxX]/.test(q)?"0"+q.toLowerCase():"",V=j==="$"?S:/[%p]/.test(q)?D:"",te=p[q],ee=/[defgprs%]/.test(q);function U(Q){var Y,Z,X,re=H,ie=V;if(q==="c")ie=te(Q)+ie,Q="";else{var le=(Q=+Q)<0||1/Q<0;if(Q=isNaN(Q)?R:te(Math.abs(Q),G),L&&(Q=function(Te){e:for(var Se,Oe=Te.length,Me=1,ce=-1;Me0&&(ce=0)}return ce>0?Te.slice(0,ce)+Te.slice(Se+1):Te}(Q)),le&&+Q==0&&$!=="+"&&(le=!1),re=(le?$==="("?$:O:$==="-"||$==="("?"":$)+re,ie=(q==="s"?b[8+f/3]:"")+ie+(le&&$==="("?")":""),ee){for(Y=-1,Z=Q.length;++Y(X=Q.charCodeAt(Y))||X>57){ie=(X===46?C+Q.slice(Y+1):Q.slice(Y))+ie,Q=Q.slice(0,Y);break}}}W&&!N&&(Q=T(Q,1/0));var se=re.length+Q.length+ie.length,pe=se>1)+re+Q+ie+pe.slice(se);break;default:Q=pe+re+Q+ie}return P(Q)}return G=G===void 0?6:/[gprs]/.test(q)?Math.max(1,Math.min(21,G)):Math.max(0,Math.min(20,G)),U.toString=function(){return A+""},U}return{format:F,formatPrefix:function(A,z){var B,$=F(((A=c(A)).type="f",A)),j=3*Math.max(-8,Math.min(8,Math.floor((B=z,((B=l(Math.abs(B)))?B[1]:NaN)/3)))),N=Math.pow(10,-j),E=b[8+j/3];return function(W){return $(N*W)+E}}}}y=x({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),v=y.format,y.formatPrefix},84096:function(o,a,n){n.d(a,{i$:function(){return b},Dq:function(){return v},g0:function(){return x}});var l=n(58176),f=n(48480),s=n(59879),c=n(82301),d=n(34823),h=n(79791);function p(ze){if(0<=ze.y&&ze.y<100){var Ne=new Date(-1,ze.m,ze.d,ze.H,ze.M,ze.S,ze.L);return Ne.setFullYear(ze.y),Ne}return new Date(ze.y,ze.m,ze.d,ze.H,ze.M,ze.S,ze.L)}function m(ze){if(0<=ze.y&&ze.y<100){var Ne=new Date(Date.UTC(-1,ze.m,ze.d,ze.H,ze.M,ze.S,ze.L));return Ne.setUTCFullYear(ze.y),Ne}return new Date(Date.UTC(ze.y,ze.m,ze.d,ze.H,ze.M,ze.S,ze.L))}function y(ze,Ne,Qe){return{y:ze,m:Ne,d:Qe,H:0,M:0,S:0,L:0}}function v(ze){var Ne=ze.dateTime,Qe=ze.date,it=ze.time,kt=ze.periods,Je=ze.days,ut=ze.shortDays,pt=ze.months,It=ze.shortMonths,Mt=C(kt),zt=P(kt),wt=C(Je),ve=P(Je),_e=C(ut),Ve=P(ut),We=C(pt),Ze=P(pt),Ge=C(It),Ke=P(It),nt={a:function(St){return ut[St.getDay()]},A:function(St){return Je[St.getDay()]},b:function(St){return It[St.getMonth()]},B:function(St){return pt[St.getMonth()]},c:null,d:Q,e:Q,f:ie,H:Y,I:Z,j:X,L:re,m:le,M:se,p:function(St){return kt[+(St.getHours()>=12)]},q:function(St){return 1+~~(St.getMonth()/3)},Q:ct,s:bt,S:pe,u:Te,U:Se,V:Oe,w:Me,W:ce,x:null,X:null,y:ye,Y:J,Z:ne,"%":lt},st={a:function(St){return ut[St.getUTCDay()]},A:function(St){return Je[St.getUTCDay()]},b:function(St){return It[St.getUTCMonth()]},B:function(St){return pt[St.getUTCMonth()]},c:null,d:de,e:de,f:we,H:xe,I:ue,j:ge,L:be,m:ke,M:Ae,p:function(St){return kt[+(St.getUTCHours()>=12)]},q:function(St){return 1+~~(St.getUTCMonth()/3)},Q:ct,s:bt,S:Ee,u:De,U:Re,V:Ie,w:Be,W:Ue,x:null,X:null,y:qe,Y:Ye,Z:at,"%":lt},mt={a:function(St,Nt,Dt){var gt=_e.exec(Nt.slice(Dt));return gt?(St.w=Ve[gt[0].toLowerCase()],Dt+gt[0].length):-1},A:function(St,Nt,Dt){var gt=wt.exec(Nt.slice(Dt));return gt?(St.w=ve[gt[0].toLowerCase()],Dt+gt[0].length):-1},b:function(St,Nt,Dt){var gt=Ge.exec(Nt.slice(Dt));return gt?(St.m=Ke[gt[0].toLowerCase()],Dt+gt[0].length):-1},B:function(St,Nt,Dt){var gt=We.exec(Nt.slice(Dt));return gt?(St.m=Ze[gt[0].toLowerCase()],Dt+gt[0].length):-1},c:function(St,Nt,Dt){return Vt(St,Ne,Nt,Dt)},d:E,e:E,f:V,H:G,I:G,j:W,L:H,m:N,M:L,p:function(St,Nt,Dt){var gt=Mt.exec(Nt.slice(Dt));return gt?(St.p=zt[gt[0].toLowerCase()],Dt+gt[0].length):-1},q:j,Q:ee,s:U,S:q,u:O,U:R,V:F,w:D,W:A,x:function(St,Nt,Dt){return Vt(St,Qe,Nt,Dt)},X:function(St,Nt,Dt){return Vt(St,it,Nt,Dt)},y:B,Y:z,Z:$,"%":te};function tt(St,Nt){return function(Dt){var gt,ht,yt,qt=[],Et=-1,jt=0,Tt=St.length;for(Dt instanceof Date||(Dt=new Date(+Dt));++Et53)return null;"w"in yt||(yt.w=1),"Z"in yt?(ht=(gt=m(y(yt.y,0,1))).getUTCDay(),gt=ht>4||ht===0?l.l6.ceil(gt):(0,l.l6)(gt),gt=f.Z.offset(gt,7*(yt.V-1)),yt.y=gt.getUTCFullYear(),yt.m=gt.getUTCMonth(),yt.d=gt.getUTCDate()+(yt.w+6)%7):(ht=(gt=p(y(yt.y,0,1))).getDay(),gt=ht>4||ht===0?s.wA.ceil(gt):(0,s.wA)(gt),gt=c.Z.offset(gt,7*(yt.V-1)),yt.y=gt.getFullYear(),yt.m=gt.getMonth(),yt.d=gt.getDate()+(yt.w+6)%7)}else("W"in yt||"U"in yt)&&("w"in yt||(yt.w="u"in yt?yt.u%7:"W"in yt?1:0),ht="Z"in yt?m(y(yt.y,0,1)).getUTCDay():p(y(yt.y,0,1)).getDay(),yt.m=0,yt.d="W"in yt?(yt.w+6)%7+7*yt.W-(ht+5)%7:yt.w+7*yt.U-(ht+6)%7);return"Z"in yt?(yt.H+=yt.Z/100|0,yt.M+=yt.Z%100,m(yt)):p(yt)}}function Vt(St,Nt,Dt,gt){for(var ht,yt,qt=0,Et=Nt.length,jt=Dt.length;qt=jt)return-1;if((ht=Nt.charCodeAt(qt++))===37){if(ht=Nt.charAt(qt++),!(yt=mt[ht in _?Nt.charAt(qt++):ht])||(gt=yt(St,Dt,gt))<0)return-1}else if(ht!=Dt.charCodeAt(gt++))return-1}return gt}return nt.x=tt(Qe,nt),nt.X=tt(it,nt),nt.c=tt(Ne,nt),st.x=tt(Qe,st),st.X=tt(it,st),st.c=tt(Ne,st),{format:function(St){var Nt=tt(St+="",nt);return Nt.toString=function(){return St},Nt},parse:function(St){var Nt=Ft(St+="",!1);return Nt.toString=function(){return St},Nt},utcFormat:function(St){var Nt=tt(St+="",st);return Nt.toString=function(){return St},Nt},utcParse:function(St){var Nt=Ft(St+="",!0);return Nt.toString=function(){return St},Nt}}}var g,b,x,_={"-":"",_:" ",0:"0"},w=/^\s*\d+/,k=/^%/,T=/[\\^$*+?|[\]().{}]/g;function M(ze,Ne,Qe){var it=ze<0?"-":"",kt=(it?-ze:ze)+"",Je=kt.length;return it+(Je68?1900:2e3),Qe+it[0].length):-1}function $(ze,Ne,Qe){var it=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Ne.slice(Qe,Qe+6));return it?(ze.Z=it[1]?0:-(it[2]+(it[3]||"00")),Qe+it[0].length):-1}function j(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+1));return it?(ze.q=3*it[0]-3,Qe+it[0].length):-1}function N(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+2));return it?(ze.m=it[0]-1,Qe+it[0].length):-1}function E(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+2));return it?(ze.d=+it[0],Qe+it[0].length):-1}function W(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+3));return it?(ze.m=0,ze.d=+it[0],Qe+it[0].length):-1}function G(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+2));return it?(ze.H=+it[0],Qe+it[0].length):-1}function L(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+2));return it?(ze.M=+it[0],Qe+it[0].length):-1}function q(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+2));return it?(ze.S=+it[0],Qe+it[0].length):-1}function H(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+3));return it?(ze.L=+it[0],Qe+it[0].length):-1}function V(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+6));return it?(ze.L=Math.floor(it[0]/1e3),Qe+it[0].length):-1}function te(ze,Ne,Qe){var it=k.exec(Ne.slice(Qe,Qe+1));return it?Qe+it[0].length:-1}function ee(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe));return it?(ze.Q=+it[0],Qe+it[0].length):-1}function U(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe));return it?(ze.s=+it[0],Qe+it[0].length):-1}function Q(ze,Ne){return M(ze.getDate(),Ne,2)}function Y(ze,Ne){return M(ze.getHours(),Ne,2)}function Z(ze,Ne){return M(ze.getHours()%12||12,Ne,2)}function X(ze,Ne){return M(1+c.Z.count((0,d.Z)(ze),ze),Ne,3)}function re(ze,Ne){return M(ze.getMilliseconds(),Ne,3)}function ie(ze,Ne){return re(ze,Ne)+"000"}function le(ze,Ne){return M(ze.getMonth()+1,Ne,2)}function se(ze,Ne){return M(ze.getMinutes(),Ne,2)}function pe(ze,Ne){return M(ze.getSeconds(),Ne,2)}function Te(ze){var Ne=ze.getDay();return Ne===0?7:Ne}function Se(ze,Ne){return M(s.OM.count((0,d.Z)(ze)-1,ze),Ne,2)}function Oe(ze,Ne){var Qe=ze.getDay();return ze=Qe>=4||Qe===0?(0,s.bL)(ze):s.bL.ceil(ze),M(s.bL.count((0,d.Z)(ze),ze)+((0,d.Z)(ze).getDay()===4),Ne,2)}function Me(ze){return ze.getDay()}function ce(ze,Ne){return M(s.wA.count((0,d.Z)(ze)-1,ze),Ne,2)}function ye(ze,Ne){return M(ze.getFullYear()%100,Ne,2)}function J(ze,Ne){return M(ze.getFullYear()%1e4,Ne,4)}function ne(ze){var Ne=ze.getTimezoneOffset();return(Ne>0?"-":(Ne*=-1,"+"))+M(Ne/60|0,"0",2)+M(Ne%60,"0",2)}function de(ze,Ne){return M(ze.getUTCDate(),Ne,2)}function xe(ze,Ne){return M(ze.getUTCHours(),Ne,2)}function ue(ze,Ne){return M(ze.getUTCHours()%12||12,Ne,2)}function ge(ze,Ne){return M(1+f.Z.count((0,h.Z)(ze),ze),Ne,3)}function be(ze,Ne){return M(ze.getUTCMilliseconds(),Ne,3)}function we(ze,Ne){return be(ze,Ne)+"000"}function ke(ze,Ne){return M(ze.getUTCMonth()+1,Ne,2)}function Ae(ze,Ne){return M(ze.getUTCMinutes(),Ne,2)}function Ee(ze,Ne){return M(ze.getUTCSeconds(),Ne,2)}function De(ze){var Ne=ze.getUTCDay();return Ne===0?7:Ne}function Re(ze,Ne){return M(l.Ox.count((0,h.Z)(ze)-1,ze),Ne,2)}function Ie(ze,Ne){var Qe=ze.getUTCDay();return ze=Qe>=4||Qe===0?(0,l.hB)(ze):l.hB.ceil(ze),M(l.hB.count((0,h.Z)(ze),ze)+((0,h.Z)(ze).getUTCDay()===4),Ne,2)}function Be(ze){return ze.getUTCDay()}function Ue(ze,Ne){return M(l.l6.count((0,h.Z)(ze)-1,ze),Ne,2)}function qe(ze,Ne){return M(ze.getUTCFullYear()%100,Ne,2)}function Ye(ze,Ne){return M(ze.getUTCFullYear()%1e4,Ne,4)}function at(){return"+0000"}function lt(){return"%"}function ct(ze){return+ze}function bt(ze){return Math.floor(+ze/1e3)}g=v({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),b=g.format,g.parse,x=g.utcFormat,g.utcParse},82301:function(o,a,n){n.d(a,{a:function(){return c}});var l=n(30052),f=n(54263),s=(0,l.Z)(function(d){d.setHours(0,0,0,0)},function(d,h){d.setDate(d.getDate()+h)},function(d,h){return(h-d-(h.getTimezoneOffset()-d.getTimezoneOffset())*f.yB)/f.UD},function(d){return d.getDate()-1});a.Z=s;var c=s.range},54263:function(o,a,n){n.d(a,{UD:function(){return c},Y2:function(){return s},Ym:function(){return l},iM:function(){return d},yB:function(){return f}});var l=1e3,f=6e4,s=36e5,c=864e5,d=6048e5},81041:function(o,a,n){n.r(a),n.d(a,{timeDay:function(){return w.Z},timeDays:function(){return w.a},timeFriday:function(){return k.mC},timeFridays:function(){return k.b$},timeHour:function(){return x},timeHours:function(){return _},timeInterval:function(){return l.Z},timeMillisecond:function(){return s},timeMilliseconds:function(){return c},timeMinute:function(){return v},timeMinutes:function(){return g},timeMonday:function(){return k.wA},timeMondays:function(){return k.bJ},timeMonth:function(){return M},timeMonths:function(){return S},timeSaturday:function(){return k.EY},timeSaturdays:function(){return k.Ff},timeSecond:function(){return p},timeSeconds:function(){return m},timeSunday:function(){return k.OM},timeSundays:function(){return k.vm},timeThursday:function(){return k.bL},timeThursdays:function(){return k.$t},timeTuesday:function(){return k.sy},timeTuesdays:function(){return k.aU},timeWednesday:function(){return k.zg},timeWednesdays:function(){return k.Ld},timeWeek:function(){return k.OM},timeWeeks:function(){return k.vm},timeYear:function(){return C.Z},timeYears:function(){return C.g},utcDay:function(){return z.Z},utcDays:function(){return z.y},utcFriday:function(){return B.QQ},utcFridays:function(){return B.fz},utcHour:function(){return F},utcHours:function(){return A},utcMillisecond:function(){return s},utcMilliseconds:function(){return c},utcMinute:function(){return D},utcMinutes:function(){return O},utcMonday:function(){return B.l6},utcMondays:function(){return B.$3},utcMonth:function(){return j},utcMonths:function(){return N},utcSaturday:function(){return B.g4},utcSaturdays:function(){return B.Q_},utcSecond:function(){return p},utcSeconds:function(){return m},utcSunday:function(){return B.Ox},utcSundays:function(){return B.SU},utcThursday:function(){return B.hB},utcThursdays:function(){return B.xj},utcTuesday:function(){return B.J1},utcTuesdays:function(){return B.DK},utcWednesday:function(){return B.b3},utcWednesdays:function(){return B.uy},utcWeek:function(){return B.Ox},utcWeeks:function(){return B.SU},utcYear:function(){return E.Z},utcYears:function(){return E.D}});var l=n(30052),f=(0,l.Z)(function(){},function(W,G){W.setTime(+W+G)},function(W,G){return G-W});f.every=function(W){return W=Math.floor(W),isFinite(W)&&W>0?W>1?(0,l.Z)(function(G){G.setTime(Math.floor(G/W)*W)},function(G,L){G.setTime(+G+L*W)},function(G,L){return(L-G)/W}):f:null};var s=f,c=f.range,d=n(54263),h=(0,l.Z)(function(W){W.setTime(W-W.getMilliseconds())},function(W,G){W.setTime(+W+G*d.Ym)},function(W,G){return(G-W)/d.Ym},function(W){return W.getUTCSeconds()}),p=h,m=h.range,y=(0,l.Z)(function(W){W.setTime(W-W.getMilliseconds()-W.getSeconds()*d.Ym)},function(W,G){W.setTime(+W+G*d.yB)},function(W,G){return(G-W)/d.yB},function(W){return W.getMinutes()}),v=y,g=y.range,b=(0,l.Z)(function(W){W.setTime(W-W.getMilliseconds()-W.getSeconds()*d.Ym-W.getMinutes()*d.yB)},function(W,G){W.setTime(+W+G*d.Y2)},function(W,G){return(G-W)/d.Y2},function(W){return W.getHours()}),x=b,_=b.range,w=n(82301),k=n(59879),T=(0,l.Z)(function(W){W.setDate(1),W.setHours(0,0,0,0)},function(W,G){W.setMonth(W.getMonth()+G)},function(W,G){return G.getMonth()-W.getMonth()+12*(G.getFullYear()-W.getFullYear())},function(W){return W.getMonth()}),M=T,S=T.range,C=n(34823),P=(0,l.Z)(function(W){W.setUTCSeconds(0,0)},function(W,G){W.setTime(+W+G*d.yB)},function(W,G){return(G-W)/d.yB},function(W){return W.getUTCMinutes()}),D=P,O=P.range,R=(0,l.Z)(function(W){W.setUTCMinutes(0,0,0)},function(W,G){W.setTime(+W+G*d.Y2)},function(W,G){return(G-W)/d.Y2},function(W){return W.getUTCHours()}),F=R,A=R.range,z=n(48480),B=n(58176),$=(0,l.Z)(function(W){W.setUTCDate(1),W.setUTCHours(0,0,0,0)},function(W,G){W.setUTCMonth(W.getUTCMonth()+G)},function(W,G){return G.getUTCMonth()-W.getUTCMonth()+12*(G.getUTCFullYear()-W.getUTCFullYear())},function(W){return W.getUTCMonth()}),j=$,N=$.range,E=n(79791)},30052:function(o,a,n){n.d(a,{Z:function(){return s}});var l=new Date,f=new Date;function s(c,d,h,p){function m(y){return c(y=arguments.length===0?new Date:new Date(+y)),y}return m.floor=function(y){return c(y=new Date(+y)),y},m.ceil=function(y){return c(y=new Date(y-1)),d(y,1),c(y),y},m.round=function(y){var v=m(y),g=m.ceil(y);return y-v0))return x;do x.push(b=new Date(+y)),d(y,g),c(y);while(b=v)for(;c(v),!y(v);)v.setTime(v-1)},function(v,g){if(v>=v)if(g<0)for(;++g<=0;)for(;d(v,-1),!y(v););else for(;--g>=0;)for(;d(v,1),!y(v););})},h&&(m.count=function(y,v){return l.setTime(+y),f.setTime(+v),c(l),c(f),Math.floor(h(l,f))},m.every=function(y){return y=Math.floor(y),isFinite(y)&&y>0?y>1?m.filter(p?function(v){return p(v)%y==0}:function(v){return m.count(0,v)%y==0}):m:null}),m}},48480:function(o,a,n){n.d(a,{y:function(){return c}});var l=n(30052),f=n(54263),s=(0,l.Z)(function(d){d.setUTCHours(0,0,0,0)},function(d,h){d.setUTCDate(d.getUTCDate()+h)},function(d,h){return(h-d)/f.UD},function(d){return d.getUTCDate()-1});a.Z=s;var c=s.range},58176:function(o,a,n){n.d(a,{$3:function(){return b},DK:function(){return x},J1:function(){return h},Ox:function(){return c},QQ:function(){return y},Q_:function(){return T},SU:function(){return g},b3:function(){return p},fz:function(){return k},g4:function(){return v},hB:function(){return m},l6:function(){return d},uy:function(){return _},xj:function(){return w}});var l=n(30052),f=n(54263);function s(M){return(0,l.Z)(function(S){S.setUTCDate(S.getUTCDate()-(S.getUTCDay()+7-M)%7),S.setUTCHours(0,0,0,0)},function(S,C){S.setUTCDate(S.getUTCDate()+7*C)},function(S,C){return(C-S)/f.iM})}var c=s(0),d=s(1),h=s(2),p=s(3),m=s(4),y=s(5),v=s(6),g=c.range,b=d.range,x=h.range,_=p.range,w=m.range,k=y.range,T=v.range},79791:function(o,a,n){n.d(a,{D:function(){return s}});var l=n(30052),f=(0,l.Z)(function(c){c.setUTCMonth(0,1),c.setUTCHours(0,0,0,0)},function(c,d){c.setUTCFullYear(c.getUTCFullYear()+d)},function(c,d){return d.getUTCFullYear()-c.getUTCFullYear()},function(c){return c.getUTCFullYear()});f.every=function(c){return isFinite(c=Math.floor(c))&&c>0?(0,l.Z)(function(d){d.setUTCFullYear(Math.floor(d.getUTCFullYear()/c)*c),d.setUTCMonth(0,1),d.setUTCHours(0,0,0,0)},function(d,h){d.setUTCFullYear(d.getUTCFullYear()+h*c)}):null},a.Z=f;var s=f.range},59879:function(o,a,n){n.d(a,{$t:function(){return w},EY:function(){return v},Ff:function(){return T},Ld:function(){return _},OM:function(){return c},aU:function(){return x},b$:function(){return k},bJ:function(){return b},bL:function(){return m},mC:function(){return y},sy:function(){return h},vm:function(){return g},wA:function(){return d},zg:function(){return p}});var l=n(30052),f=n(54263);function s(M){return(0,l.Z)(function(S){S.setDate(S.getDate()-(S.getDay()+7-M)%7),S.setHours(0,0,0,0)},function(S,C){S.setDate(S.getDate()+7*C)},function(S,C){return(C-S-(C.getTimezoneOffset()-S.getTimezoneOffset())*f.yB)/f.iM})}var c=s(0),d=s(1),h=s(2),p=s(3),m=s(4),y=s(5),v=s(6),g=c.range,b=d.range,x=h.range,_=p.range,w=m.range,k=y.range,T=v.range},34823:function(o,a,n){n.d(a,{g:function(){return s}});var l=n(30052),f=(0,l.Z)(function(c){c.setMonth(0,1),c.setHours(0,0,0,0)},function(c,d){c.setFullYear(c.getFullYear()+d)},function(c,d){return d.getFullYear()-c.getFullYear()},function(c){return c.getFullYear()});f.every=function(c){return isFinite(c=Math.floor(c))&&c>0?(0,l.Z)(function(d){d.setFullYear(Math.floor(d.getFullYear()/c)*c),d.setMonth(0,1),d.setHours(0,0,0,0)},function(d,h){d.setFullYear(d.getFullYear()+h*c)}):null},a.Z=f;var s=f.range},17045:function(o,a,n){var l=n(8709),f=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",s=Object.prototype.toString,c=Array.prototype.concat,d=Object.defineProperty,h=n(55622)(),p=d&&h,m=function(v,g,b,x){if(g in v){if(x===!0){if(v[g]===b)return}else if(typeof(_=x)!="function"||s.call(_)!=="[object Function]"||!x())return}var _;p?d(v,g,{configurable:!0,enumerable:!1,value:b,writable:!0}):v[g]=b},y=function(v,g){var b=arguments.length>2?arguments[2]:{},x=l(g);f&&(x=c.call(x,Object.getOwnPropertySymbols(g)));for(var _=0;_0&&C.length>M&&!C.warned){C.warned=!0;var D=new Error("Possible EventEmitter memory leak detected. "+C.length+" "+String(w)+" listeners added. Use emitter.setMaxListeners() to increase limit");D.name="MaxListenersExceededWarning",D.emitter=_,D.type=w,D.count=C.length,P=D,console&&console.warn&&console.warn(P)}return _}function m(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function y(_,w,k){var T={fired:!1,wrapFn:void 0,target:_,type:w,listener:k},M=m.bind(T);return M.listener=k,T.wrapFn=M,M}function v(_,w,k){var T=_._events;if(T===void 0)return[];var M=T[w];return M===void 0?[]:typeof M=="function"?k?[M.listener||M]:[M]:k?function(S){for(var C=new Array(S.length),P=0;P0&&(S=w[0]),S instanceof Error)throw S;var C=new Error("Unhandled error."+(S?" ("+S.message+")":""));throw C.context=S,C}var P=M[_];if(P===void 0)return!1;if(typeof P=="function")l(P,this,w);else{var D=P.length,O=b(P,D);for(k=0;k=0;S--)if(k[S]===w||k[S].listener===w){C=k[S].listener,M=S;break}if(M<0)return this;M===0?k.shift():function(P,D){for(;D+1=0;T--)this.removeListener(_,w[T]);return this},s.prototype.listeners=function(_){return v(this,_,!0)},s.prototype.rawListeners=function(_){return v(this,_,!1)},s.listenerCount=function(_,w){return typeof _.listenerCount=="function"?_.listenerCount(w):g.call(_,w)},s.prototype.listenerCount=g,s.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]}},92770:function(o,a,n){var l=n(18546);o.exports=function(f){var s=typeof f;if(s==="string"){var c=f;if((f=+f)==0&&l(c))return!1}else if(s!=="number")return!1;return f-f<1}},31353:function(o,a,n){var l=n(85395),f=Object.prototype.toString,s=Object.prototype.hasOwnProperty;o.exports=function(c,d,h){if(!l(d))throw new TypeError("iterator must be a function");var p;arguments.length>=3&&(p=h),f.call(c)==="[object Array]"?function(m,y,v){for(var g=0,b=m.length;g"u"?l:v(Uint8Array),x={"%AggregateError%":typeof AggregateError>"u"?l:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?l:ArrayBuffer,"%ArrayIteratorPrototype%":y?v([][Symbol.iterator]()):l,"%AsyncFromSyncIteratorPrototype%":l,"%AsyncFunction%":g,"%AsyncGenerator%":g,"%AsyncGeneratorFunction%":g,"%AsyncIteratorPrototype%":g,"%Atomics%":typeof Atomics>"u"?l:Atomics,"%BigInt%":typeof BigInt>"u"?l:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?l:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?l:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?l:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?l:Float32Array,"%Float64Array%":typeof Float64Array>"u"?l:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?l:FinalizationRegistry,"%Function%":s,"%GeneratorFunction%":g,"%Int8Array%":typeof Int8Array>"u"?l:Int8Array,"%Int16Array%":typeof Int16Array>"u"?l:Int16Array,"%Int32Array%":typeof Int32Array>"u"?l:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y?v(v([][Symbol.iterator]())):l,"%JSON%":typeof JSON=="object"?JSON:l,"%Map%":typeof Map>"u"?l:Map,"%MapIteratorPrototype%":typeof Map<"u"&&y?v(new Map()[Symbol.iterator]()):l,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?l:Promise,"%Proxy%":typeof Proxy>"u"?l:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?l:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?l:Set,"%SetIteratorPrototype%":typeof Set<"u"&&y?v(new Set()[Symbol.iterator]()):l,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?l:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y?v(""[Symbol.iterator]()):l,"%Symbol%":y?Symbol:l,"%SyntaxError%":f,"%ThrowTypeError%":m,"%TypedArray%":b,"%TypeError%":c,"%Uint8Array%":typeof Uint8Array>"u"?l:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?l:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?l:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?l:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?l:WeakMap,"%WeakRef%":typeof WeakRef>"u"?l:WeakRef,"%WeakSet%":typeof WeakSet>"u"?l:WeakSet};try{null.error}catch(z){var _=v(v(z));x["%Error.prototype%"]=_}var w=function z(B){var $;if(B==="%AsyncFunction%")$=d("async function () {}");else if(B==="%GeneratorFunction%")$=d("function* () {}");else if(B==="%AsyncGeneratorFunction%")$=d("async function* () {}");else if(B==="%AsyncGenerator%"){var j=z("%AsyncGeneratorFunction%");j&&($=j.prototype)}else if(B==="%AsyncIteratorPrototype%"){var N=z("%AsyncGenerator%");N&&($=v(N.prototype))}return x[B]=$,$},k={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},T=n(77575),M=n(35065),S=T.call(Function.call,Array.prototype.concat),C=T.call(Function.apply,Array.prototype.splice),P=T.call(Function.call,String.prototype.replace),D=T.call(Function.call,String.prototype.slice),O=T.call(Function.call,RegExp.prototype.exec),R=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,F=/\\(\\)?/g,A=function(z,B){var $,j=z;if(M(k,j)&&(j="%"+($=k[j])[0]+"%"),M(x,j)){var N=x[j];if(N===g&&(N=w(j)),N===void 0&&!B)throw new c("intrinsic "+z+" exists, but is not available. Please file an issue!");return{alias:$,name:j,value:N}}throw new f("intrinsic "+z+" does not exist!")};o.exports=function(z,B){if(typeof z!="string"||z.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof B!="boolean")throw new c('"allowMissing" argument must be a boolean');if(O(/^%?[^%]*%?$/,z)===null)throw new f("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var $=function(Q){var Y=D(Q,0,1),Z=D(Q,-1);if(Y==="%"&&Z!=="%")throw new f("invalid intrinsic syntax, expected closing `%`");if(Z==="%"&&Y!=="%")throw new f("invalid intrinsic syntax, expected opening `%`");var X=[];return P(Q,R,function(re,ie,le,se){X[X.length]=le?P(se,F,"$1"):ie||re}),X}(z),j=$.length>0?$[0]:"",N=A("%"+j+"%",B),E=N.name,W=N.value,G=!1,L=N.alias;L&&(j=L[0],C($,S([0,1],L)));for(var q=1,H=!0;q<$.length;q+=1){var V=$[q],te=D(V,0,1),ee=D(V,-1);if((te==='"'||te==="'"||te==="`"||ee==='"'||ee==="'"||ee==="`")&&te!==ee)throw new f("property names with quotes must have matching quotes");if(V!=="constructor"&&H||(G=!0),M(x,E="%"+(j+="."+V)+"%"))W=x[E];else if(W!=null){if(!(V in W)){if(!B)throw new c("base intrinsic for "+z+" exists, but the property is not available.");return}if(h&&q+1>=$.length){var U=h(W,V);W=(H=!!U)&&"get"in U&&!("originalValue"in U.get)?U.get:W[V]}else H=M(W,V),W=W[V];H&&!G&&(x[E]=W)}}return W}},85400:function(o){o.exports=function(a,n){var l=n[0],f=n[1],s=n[2],c=n[3],d=n[4],h=n[5],p=n[6],m=n[7],y=n[8],v=n[9],g=n[10],b=n[11],x=n[12],_=n[13],w=n[14],k=n[15];return a[0]=h*(g*k-b*w)-v*(p*k-m*w)+_*(p*b-m*g),a[1]=-(f*(g*k-b*w)-v*(s*k-c*w)+_*(s*b-c*g)),a[2]=f*(p*k-m*w)-h*(s*k-c*w)+_*(s*m-c*p),a[3]=-(f*(p*b-m*g)-h*(s*b-c*g)+v*(s*m-c*p)),a[4]=-(d*(g*k-b*w)-y*(p*k-m*w)+x*(p*b-m*g)),a[5]=l*(g*k-b*w)-y*(s*k-c*w)+x*(s*b-c*g),a[6]=-(l*(p*k-m*w)-d*(s*k-c*w)+x*(s*m-c*p)),a[7]=l*(p*b-m*g)-d*(s*b-c*g)+y*(s*m-c*p),a[8]=d*(v*k-b*_)-y*(h*k-m*_)+x*(h*b-m*v),a[9]=-(l*(v*k-b*_)-y*(f*k-c*_)+x*(f*b-c*v)),a[10]=l*(h*k-m*_)-d*(f*k-c*_)+x*(f*m-c*h),a[11]=-(l*(h*b-m*v)-d*(f*b-c*v)+y*(f*m-c*h)),a[12]=-(d*(v*w-g*_)-y*(h*w-p*_)+x*(h*g-p*v)),a[13]=l*(v*w-g*_)-y*(f*w-s*_)+x*(f*g-s*v),a[14]=-(l*(h*w-p*_)-d*(f*w-s*_)+x*(f*p-s*h)),a[15]=l*(h*g-p*v)-d*(f*g-s*v)+y*(f*p-s*h),a}},42331:function(o){o.exports=function(a){var n=new Float32Array(16);return n[0]=a[0],n[1]=a[1],n[2]=a[2],n[3]=a[3],n[4]=a[4],n[5]=a[5],n[6]=a[6],n[7]=a[7],n[8]=a[8],n[9]=a[9],n[10]=a[10],n[11]=a[11],n[12]=a[12],n[13]=a[13],n[14]=a[14],n[15]=a[15],n}},31042:function(o){o.exports=function(a,n){return a[0]=n[0],a[1]=n[1],a[2]=n[2],a[3]=n[3],a[4]=n[4],a[5]=n[5],a[6]=n[6],a[7]=n[7],a[8]=n[8],a[9]=n[9],a[10]=n[10],a[11]=n[11],a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15],a}},11902:function(o){o.exports=function(){var a=new Float32Array(16);return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},89887:function(o){o.exports=function(a){var n=a[0],l=a[1],f=a[2],s=a[3],c=a[4],d=a[5],h=a[6],p=a[7],m=a[8],y=a[9],v=a[10],g=a[11],b=a[12],x=a[13],_=a[14],w=a[15];return(n*d-l*c)*(v*w-g*_)-(n*h-f*c)*(y*w-g*x)+(n*p-s*c)*(y*_-v*x)+(l*h-f*d)*(m*w-g*b)-(l*p-s*d)*(m*_-v*b)+(f*p-s*h)*(m*x-y*b)}},27812:function(o){o.exports=function(a,n){var l=n[0],f=n[1],s=n[2],c=n[3],d=l+l,h=f+f,p=s+s,m=l*d,y=f*d,v=f*h,g=s*d,b=s*h,x=s*p,_=c*d,w=c*h,k=c*p;return a[0]=1-v-x,a[1]=y+k,a[2]=g-w,a[3]=0,a[4]=y-k,a[5]=1-m-x,a[6]=b+_,a[7]=0,a[8]=g+w,a[9]=b-_,a[10]=1-m-v,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},34045:function(o){o.exports=function(a,n,l){var f,s,c,d=l[0],h=l[1],p=l[2],m=Math.sqrt(d*d+h*h+p*p);return Math.abs(m)<1e-6?null:(d*=m=1/m,h*=m,p*=m,f=Math.sin(n),c=1-(s=Math.cos(n)),a[0]=d*d*c+s,a[1]=h*d*c+p*f,a[2]=p*d*c-h*f,a[3]=0,a[4]=d*h*c-p*f,a[5]=h*h*c+s,a[6]=p*h*c+d*f,a[7]=0,a[8]=d*p*c+h*f,a[9]=h*p*c-d*f,a[10]=p*p*c+s,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a)}},45973:function(o){o.exports=function(a,n,l){var f=n[0],s=n[1],c=n[2],d=n[3],h=f+f,p=s+s,m=c+c,y=f*h,v=f*p,g=f*m,b=s*p,x=s*m,_=c*m,w=d*h,k=d*p,T=d*m;return a[0]=1-(b+_),a[1]=v+T,a[2]=g-k,a[3]=0,a[4]=v-T,a[5]=1-(y+_),a[6]=x+w,a[7]=0,a[8]=g+k,a[9]=x-w,a[10]=1-(y+b),a[11]=0,a[12]=l[0],a[13]=l[1],a[14]=l[2],a[15]=1,a}},81472:function(o){o.exports=function(a,n){return a[0]=n[0],a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=n[1],a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=n[2],a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},14669:function(o){o.exports=function(a,n){return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=n[0],a[13]=n[1],a[14]=n[2],a[15]=1,a}},75262:function(o){o.exports=function(a,n){var l=Math.sin(n),f=Math.cos(n);return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=f,a[6]=l,a[7]=0,a[8]=0,a[9]=-l,a[10]=f,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},331:function(o){o.exports=function(a,n){var l=Math.sin(n),f=Math.cos(n);return a[0]=f,a[1]=0,a[2]=-l,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=l,a[9]=0,a[10]=f,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},11049:function(o){o.exports=function(a,n){var l=Math.sin(n),f=Math.cos(n);return a[0]=f,a[1]=l,a[2]=0,a[3]=0,a[4]=-l,a[5]=f,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},75195:function(o){o.exports=function(a,n,l,f,s,c,d){var h=1/(l-n),p=1/(s-f),m=1/(c-d);return a[0]=2*c*h,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=2*c*p,a[6]=0,a[7]=0,a[8]=(l+n)*h,a[9]=(s+f)*p,a[10]=(d+c)*m,a[11]=-1,a[12]=0,a[13]=0,a[14]=d*c*2*m,a[15]=0,a}},71551:function(o){o.exports=function(a){return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},79576:function(o,a,n){o.exports={create:n(11902),clone:n(42331),copy:n(31042),identity:n(71551),transpose:n(88654),invert:n(95874),adjoint:n(85400),determinant:n(89887),multiply:n(91362),translate:n(31283),scale:n(10789),rotate:n(65074),rotateX:n(35545),rotateY:n(94918),rotateZ:n(15692),fromRotation:n(34045),fromRotationTranslation:n(45973),fromScaling:n(81472),fromTranslation:n(14669),fromXRotation:n(75262),fromYRotation:n(331),fromZRotation:n(11049),fromQuat:n(27812),frustum:n(75195),perspective:n(7864),perspectiveFromFieldOfView:n(35279),ortho:n(60378),lookAt:n(65551),str:n(6726)}},95874:function(o){o.exports=function(a,n){var l=n[0],f=n[1],s=n[2],c=n[3],d=n[4],h=n[5],p=n[6],m=n[7],y=n[8],v=n[9],g=n[10],b=n[11],x=n[12],_=n[13],w=n[14],k=n[15],T=l*h-f*d,M=l*p-s*d,S=l*m-c*d,C=f*p-s*h,P=f*m-c*h,D=s*m-c*p,O=y*_-v*x,R=y*w-g*x,F=y*k-b*x,A=v*w-g*_,z=v*k-b*_,B=g*k-b*w,$=T*B-M*z+S*A+C*F-P*R+D*O;return $?($=1/$,a[0]=(h*B-p*z+m*A)*$,a[1]=(s*z-f*B-c*A)*$,a[2]=(_*D-w*P+k*C)*$,a[3]=(g*P-v*D-b*C)*$,a[4]=(p*F-d*B-m*R)*$,a[5]=(l*B-s*F+c*R)*$,a[6]=(w*S-x*D-k*M)*$,a[7]=(y*D-g*S+b*M)*$,a[8]=(d*z-h*F+m*O)*$,a[9]=(f*F-l*z-c*O)*$,a[10]=(x*P-_*S+k*T)*$,a[11]=(v*S-y*P-b*T)*$,a[12]=(h*R-d*A-p*O)*$,a[13]=(l*A-f*R+s*O)*$,a[14]=(_*M-x*C-w*T)*$,a[15]=(y*C-v*M+g*T)*$,a):null}},65551:function(o,a,n){var l=n(71551);o.exports=function(f,s,c,d){var h,p,m,y,v,g,b,x,_,w,k=s[0],T=s[1],M=s[2],S=d[0],C=d[1],P=d[2],D=c[0],O=c[1],R=c[2];return Math.abs(k-D)<1e-6&&Math.abs(T-O)<1e-6&&Math.abs(M-R)<1e-6?l(f):(b=k-D,x=T-O,_=M-R,h=C*(_*=w=1/Math.sqrt(b*b+x*x+_*_))-P*(x*=w),p=P*(b*=w)-S*_,m=S*x-C*b,(w=Math.sqrt(h*h+p*p+m*m))?(h*=w=1/w,p*=w,m*=w):(h=0,p=0,m=0),y=x*m-_*p,v=_*h-b*m,g=b*p-x*h,(w=Math.sqrt(y*y+v*v+g*g))?(y*=w=1/w,v*=w,g*=w):(y=0,v=0,g=0),f[0]=h,f[1]=y,f[2]=b,f[3]=0,f[4]=p,f[5]=v,f[6]=x,f[7]=0,f[8]=m,f[9]=g,f[10]=_,f[11]=0,f[12]=-(h*k+p*T+m*M),f[13]=-(y*k+v*T+g*M),f[14]=-(b*k+x*T+_*M),f[15]=1,f)}},91362:function(o){o.exports=function(a,n,l){var f=n[0],s=n[1],c=n[2],d=n[3],h=n[4],p=n[5],m=n[6],y=n[7],v=n[8],g=n[9],b=n[10],x=n[11],_=n[12],w=n[13],k=n[14],T=n[15],M=l[0],S=l[1],C=l[2],P=l[3];return a[0]=M*f+S*h+C*v+P*_,a[1]=M*s+S*p+C*g+P*w,a[2]=M*c+S*m+C*b+P*k,a[3]=M*d+S*y+C*x+P*T,M=l[4],S=l[5],C=l[6],P=l[7],a[4]=M*f+S*h+C*v+P*_,a[5]=M*s+S*p+C*g+P*w,a[6]=M*c+S*m+C*b+P*k,a[7]=M*d+S*y+C*x+P*T,M=l[8],S=l[9],C=l[10],P=l[11],a[8]=M*f+S*h+C*v+P*_,a[9]=M*s+S*p+C*g+P*w,a[10]=M*c+S*m+C*b+P*k,a[11]=M*d+S*y+C*x+P*T,M=l[12],S=l[13],C=l[14],P=l[15],a[12]=M*f+S*h+C*v+P*_,a[13]=M*s+S*p+C*g+P*w,a[14]=M*c+S*m+C*b+P*k,a[15]=M*d+S*y+C*x+P*T,a}},60378:function(o){o.exports=function(a,n,l,f,s,c,d){var h=1/(n-l),p=1/(f-s),m=1/(c-d);return a[0]=-2*h,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=-2*p,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=2*m,a[11]=0,a[12]=(n+l)*h,a[13]=(s+f)*p,a[14]=(d+c)*m,a[15]=1,a}},7864:function(o){o.exports=function(a,n,l,f,s){var c=1/Math.tan(n/2),d=1/(f-s);return a[0]=c/l,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=c,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=(s+f)*d,a[11]=-1,a[12]=0,a[13]=0,a[14]=2*s*f*d,a[15]=0,a}},35279:function(o){o.exports=function(a,n,l,f){var s=Math.tan(n.upDegrees*Math.PI/180),c=Math.tan(n.downDegrees*Math.PI/180),d=Math.tan(n.leftDegrees*Math.PI/180),h=Math.tan(n.rightDegrees*Math.PI/180),p=2/(d+h),m=2/(s+c);return a[0]=p,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=m,a[6]=0,a[7]=0,a[8]=-(d-h)*p*.5,a[9]=(s-c)*m*.5,a[10]=f/(l-f),a[11]=-1,a[12]=0,a[13]=0,a[14]=f*l/(l-f),a[15]=0,a}},65074:function(o){o.exports=function(a,n,l,f){var s,c,d,h,p,m,y,v,g,b,x,_,w,k,T,M,S,C,P,D,O,R,F,A,z=f[0],B=f[1],$=f[2],j=Math.sqrt(z*z+B*B+$*$);return Math.abs(j)<1e-6?null:(z*=j=1/j,B*=j,$*=j,s=Math.sin(l),d=1-(c=Math.cos(l)),h=n[0],p=n[1],m=n[2],y=n[3],v=n[4],g=n[5],b=n[6],x=n[7],_=n[8],w=n[9],k=n[10],T=n[11],M=z*z*d+c,S=B*z*d+$*s,C=$*z*d-B*s,P=z*B*d-$*s,D=B*B*d+c,O=$*B*d+z*s,R=z*$*d+B*s,F=B*$*d-z*s,A=$*$*d+c,a[0]=h*M+v*S+_*C,a[1]=p*M+g*S+w*C,a[2]=m*M+b*S+k*C,a[3]=y*M+x*S+T*C,a[4]=h*P+v*D+_*O,a[5]=p*P+g*D+w*O,a[6]=m*P+b*D+k*O,a[7]=y*P+x*D+T*O,a[8]=h*R+v*F+_*A,a[9]=p*R+g*F+w*A,a[10]=m*R+b*F+k*A,a[11]=y*R+x*F+T*A,n!==a&&(a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15]),a)}},35545:function(o){o.exports=function(a,n,l){var f=Math.sin(l),s=Math.cos(l),c=n[4],d=n[5],h=n[6],p=n[7],m=n[8],y=n[9],v=n[10],g=n[11];return n!==a&&(a[0]=n[0],a[1]=n[1],a[2]=n[2],a[3]=n[3],a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15]),a[4]=c*s+m*f,a[5]=d*s+y*f,a[6]=h*s+v*f,a[7]=p*s+g*f,a[8]=m*s-c*f,a[9]=y*s-d*f,a[10]=v*s-h*f,a[11]=g*s-p*f,a}},94918:function(o){o.exports=function(a,n,l){var f=Math.sin(l),s=Math.cos(l),c=n[0],d=n[1],h=n[2],p=n[3],m=n[8],y=n[9],v=n[10],g=n[11];return n!==a&&(a[4]=n[4],a[5]=n[5],a[6]=n[6],a[7]=n[7],a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15]),a[0]=c*s-m*f,a[1]=d*s-y*f,a[2]=h*s-v*f,a[3]=p*s-g*f,a[8]=c*f+m*s,a[9]=d*f+y*s,a[10]=h*f+v*s,a[11]=p*f+g*s,a}},15692:function(o){o.exports=function(a,n,l){var f=Math.sin(l),s=Math.cos(l),c=n[0],d=n[1],h=n[2],p=n[3],m=n[4],y=n[5],v=n[6],g=n[7];return n!==a&&(a[8]=n[8],a[9]=n[9],a[10]=n[10],a[11]=n[11],a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15]),a[0]=c*s+m*f,a[1]=d*s+y*f,a[2]=h*s+v*f,a[3]=p*s+g*f,a[4]=m*s-c*f,a[5]=y*s-d*f,a[6]=v*s-h*f,a[7]=g*s-p*f,a}},10789:function(o){o.exports=function(a,n,l){var f=l[0],s=l[1],c=l[2];return a[0]=n[0]*f,a[1]=n[1]*f,a[2]=n[2]*f,a[3]=n[3]*f,a[4]=n[4]*s,a[5]=n[5]*s,a[6]=n[6]*s,a[7]=n[7]*s,a[8]=n[8]*c,a[9]=n[9]*c,a[10]=n[10]*c,a[11]=n[11]*c,a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15],a}},6726:function(o){o.exports=function(a){return"mat4("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+", "+a[6]+", "+a[7]+", "+a[8]+", "+a[9]+", "+a[10]+", "+a[11]+", "+a[12]+", "+a[13]+", "+a[14]+", "+a[15]+")"}},31283:function(o){o.exports=function(a,n,l){var f,s,c,d,h,p,m,y,v,g,b,x,_=l[0],w=l[1],k=l[2];return n===a?(a[12]=n[0]*_+n[4]*w+n[8]*k+n[12],a[13]=n[1]*_+n[5]*w+n[9]*k+n[13],a[14]=n[2]*_+n[6]*w+n[10]*k+n[14],a[15]=n[3]*_+n[7]*w+n[11]*k+n[15]):(f=n[0],s=n[1],c=n[2],d=n[3],h=n[4],p=n[5],m=n[6],y=n[7],v=n[8],g=n[9],b=n[10],x=n[11],a[0]=f,a[1]=s,a[2]=c,a[3]=d,a[4]=h,a[5]=p,a[6]=m,a[7]=y,a[8]=v,a[9]=g,a[10]=b,a[11]=x,a[12]=f*_+h*w+v*k+n[12],a[13]=s*_+p*w+g*k+n[13],a[14]=c*_+m*w+b*k+n[14],a[15]=d*_+y*w+x*k+n[15]),a}},88654:function(o){o.exports=function(a,n){if(a===n){var l=n[1],f=n[2],s=n[3],c=n[6],d=n[7],h=n[11];a[1]=n[4],a[2]=n[8],a[3]=n[12],a[4]=l,a[6]=n[9],a[7]=n[13],a[8]=f,a[9]=c,a[11]=n[14],a[12]=s,a[13]=d,a[14]=h}else a[0]=n[0],a[1]=n[4],a[2]=n[8],a[3]=n[12],a[4]=n[1],a[5]=n[5],a[6]=n[9],a[7]=n[13],a[8]=n[2],a[9]=n[6],a[10]=n[10],a[11]=n[14],a[12]=n[3],a[13]=n[7],a[14]=n[11],a[15]=n[15];return a}},40383:function(o,a,n){var l=n(68318)("%Object.getOwnPropertyDescriptor%",!0);if(l)try{l([],"length")}catch{l=null}o.exports=l},57035:function(o,a,n){var l,f=n(54404);l=typeof n.g.matchMedia=="function"?!n.g.matchMedia("(hover: none)").matches:f,o.exports=l},38520:function(o,a,n){var l=n(54404);o.exports=l&&function(){var f=!1;try{var s=Object.defineProperty({},"passive",{get:function(){f=!0}});window.addEventListener("test",null,s),window.removeEventListener("test",null,s)}catch{f=!1}return f}()},55622:function(o,a,n){var l=n(68318)("%Object.defineProperty%",!0),f=function(){if(l)try{return l({},"a",{value:1}),!0}catch{return!1}return!1};f.hasArrayLengthDefineBug=function(){if(!f())return null;try{return l([],"length",{value:1}).length!==1}catch{return!0}},o.exports=f},57877:function(o,a,n){var l=typeof Symbol<"u"&&Symbol,f=n(35638);o.exports=function(){return typeof l=="function"&&typeof Symbol=="function"&&typeof l("foo")=="symbol"&&typeof Symbol("bar")=="symbol"&&f()}},35638:function(o){o.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var a={},n=Symbol("test"),l=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(l)!=="[object Symbol]")return!1;for(n in a[n]=42,a)return!1;if(typeof Object.keys=="function"&&Object.keys(a).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(a).length!==0)return!1;var f=Object.getOwnPropertySymbols(a);if(f.length!==1||f[0]!==n||!Object.prototype.propertyIsEnumerable.call(a,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(a,n);if(s.value!==42||s.enumerable!==!0)return!1}return!0}},84543:function(o,a,n){var l=n(35638);o.exports=function(){return l()&&!!Symbol.toStringTag}},35065:function(o,a,n){var l=n(77575);o.exports=l.call(Function.call,Object.prototype.hasOwnProperty)},95280:function(o,a){a.read=function(n,l,f,s,c){var d,h,p=8*c-s-1,m=(1<>1,v=-7,g=f?c-1:0,b=f?-1:1,x=n[l+g];for(g+=b,d=x&(1<<-v)-1,x>>=-v,v+=p;v>0;d=256*d+n[l+g],g+=b,v-=8);for(h=d&(1<<-v)-1,d>>=-v,v+=s;v>0;h=256*h+n[l+g],g+=b,v-=8);if(d===0)d=1-y;else{if(d===m)return h?NaN:1/0*(x?-1:1);h+=Math.pow(2,s),d-=y}return(x?-1:1)*h*Math.pow(2,d-s)},a.write=function(n,l,f,s,c,d){var h,p,m,y=8*d-c-1,v=(1<>1,b=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=s?0:d-1,_=s?1:-1,w=l<0||l===0&&1/l<0?1:0;for(l=Math.abs(l),isNaN(l)||l===1/0?(p=isNaN(l)?1:0,h=v):(h=Math.floor(Math.log(l)/Math.LN2),l*(m=Math.pow(2,-h))<1&&(h--,m*=2),(l+=h+g>=1?b/m:b*Math.pow(2,1-g))*m>=2&&(h++,m/=2),h+g>=v?(p=0,h=v):h+g>=1?(p=(l*m-1)*Math.pow(2,c),h+=g):(p=l*Math.pow(2,g-1)*Math.pow(2,c),h=0));c>=8;n[f+x]=255&p,x+=_,p/=256,c-=8);for(h=h<0;n[f+x]=255&h,x+=_,h/=256,y-=8);n[f+x-_]|=128*w}},42018:function(o){typeof Object.create=="function"?o.exports=function(a,n){n&&(a.super_=n,a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}))}:o.exports=function(a,n){if(n){a.super_=n;var l=function(){};l.prototype=n.prototype,a.prototype=new l,a.prototype.constructor=a}}},47216:function(o,a,n){var l=n(84543)(),f=n(6614)("Object.prototype.toString"),s=function(h){return!(l&&h&&typeof h=="object"&&Symbol.toStringTag in h)&&f(h)==="[object Arguments]"},c=function(h){return!!s(h)||h!==null&&typeof h=="object"&&typeof h.length=="number"&&h.length>=0&&f(h)!=="[object Array]"&&f(h.callee)==="[object Function]"},d=function(){return s(arguments)}();s.isLegacyArguments=c,o.exports=d?s:c},54404:function(o){o.exports=!0},85395:function(o){var a,n,l=Function.prototype.toString,f=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply;if(typeof f=="function"&&typeof Object.defineProperty=="function")try{a=Object.defineProperty({},"length",{get:function(){throw n}}),n={},f(function(){throw 42},null,a)}catch(g){g!==n&&(f=null)}else f=null;var s=/^\s*class\b/,c=function(g){try{var b=l.call(g);return s.test(b)}catch{return!1}},d=function(g){try{return!c(g)&&(l.call(g),!0)}catch{return!1}},h=Object.prototype.toString,p=typeof Symbol=="function"&&!!Symbol.toStringTag,m=!(0 in[,]),y=function(){return!1};if(typeof document=="object"){var v=document.all;h.call(v)===h.call(document.all)&&(y=function(g){if((m||!g)&&(g===void 0||typeof g=="object"))try{var b=h.call(g);return(b==="[object HTMLAllCollection]"||b==="[object HTML document.all class]"||b==="[object HTMLCollection]"||b==="[object Object]")&&g("")==null}catch{}return!1})}o.exports=f?function(g){if(y(g))return!0;if(!g||typeof g!="function"&&typeof g!="object")return!1;try{f(g,null,a)}catch(b){if(b!==n)return!1}return!c(g)&&d(g)}:function(g){if(y(g))return!0;if(!g||typeof g!="function"&&typeof g!="object")return!1;if(p)return d(g);if(c(g))return!1;var b=h.call(g);return!(b!=="[object Function]"&&b!=="[object GeneratorFunction]"&&!/^\[object HTML/.test(b))&&d(g)}},65481:function(o,a,n){var l,f=Object.prototype.toString,s=Function.prototype.toString,c=/^\s*(?:function)?\*/,d=n(84543)(),h=Object.getPrototypeOf;o.exports=function(p){if(typeof p!="function")return!1;if(c.test(s.call(p)))return!0;if(!d)return f.call(p)==="[object GeneratorFunction]";if(!h)return!1;if(l===void 0){var m=function(){if(!d)return!1;try{return Function("return function*() {}")()}catch{}}();l=!!m&&h(m)}return h(p)===l}},64274:function(o){o.exports=function(a){return a!=a}},15567:function(o,a,n){var l=n(68222),f=n(17045),s=n(64274),c=n(14922),d=n(22442),h=l(c(),Number);f(h,{getPolyfill:c,implementation:s,shim:d}),o.exports=h},14922:function(o,a,n){var l=n(64274);o.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:l}},22442:function(o,a,n){var l=n(17045),f=n(14922);o.exports=function(){var s=f();return l(Number,{isNaN:s},{isNaN:function(){return Number.isNaN!==s}}),s}},18546:function(o){o.exports=function(a){for(var n,l=a.length,f=0;f13)&&n!==32&&n!==133&&n!==160&&n!==5760&&n!==6158&&(n<8192||n>8205)&&n!==8232&&n!==8233&&n!==8239&&n!==8287&&n!==8288&&n!==12288&&n!==65279)return!1;return!0}},9187:function(o,a,n){var l=n(31353),f=n(72077),s=n(6614),c=s("Object.prototype.toString"),d=n(84543)(),h=n(40383),p=typeof globalThis>"u"?n.g:globalThis,m=f(),y=s("Array.prototype.indexOf",!0)||function(x,_){for(var w=0;w-1}return!!h&&function(w){var k=!1;return l(g,function(T,M){if(!k)try{k=T.call(w)===M}catch{}}),k}(x)}},48956:function(o){var a={left:0,top:0};o.exports=function(n,l,f){l=l||n.currentTarget||n.srcElement,Array.isArray(f)||(f=[0,0]);var s,c=n.clientX||0,d=n.clientY||0,h=(s=l)===window||s===document||s===document.body?a:s.getBoundingClientRect();return f[0]=c-h.left,f[1]=d-h.top,f}},7417:function(o,a,n){var l,f,s,c;f="Promise",c=function(){var d,h,p,m=Object.prototype.toString,y=typeof setImmediate<"u"?function(P){return setImmediate(P)}:setTimeout;try{Object.defineProperty({},"x",{}),d=function(P,D,O,R){return Object.defineProperty(P,D,{value:O,writable:!0,configurable:R!==!1})}}catch{d=function(D,O,R){return D[O]=R,D}}function v(P,D){p.add(P,D),h||(h=y(p.drain))}function g(P){var D,O=typeof P;return P==null||O!="object"&&O!="function"||(D=P.then),typeof D=="function"&&D}function b(){for(var P=0;P0&&v(b,O))}catch(R){w.call(new T(O),R)}}}function w(P){var D=this;D.triggered||(D.triggered=!0,D.def&&(D=D.def),D.msg=P,D.state=2,D.chain.length>0&&v(b,D))}function k(P,D,O,R){for(var F=0;F"u")return!1;for(var b in window)try{if(!v["$"+b]&&f.call(window,b)&&window[b]!==null&&typeof window[b]=="object")try{y(window[b])}catch{return!0}}catch{return!0}return!1}();l=function(b){var x=b!==null&&typeof b=="object",_=s.call(b)==="[object Function]",w=c(b),k=x&&s.call(b)==="[object String]",T=[];if(!x&&!_&&!w)throw new TypeError("Object.keys called on a non-object");var M=p&&_;if(k&&b.length>0&&!f.call(b,0))for(var S=0;S0)for(var C=0;C"u"||!g)return y(R);try{return y(R)}catch{return!1}}(b),O=0;O=0&&a.call(n.callee)==="[object Function]"),f}},95616:function(o){o.exports=function(f){var s=[];return f.replace(n,function(c,d,h){var p=d.toLowerCase();for(h=function(m){var y=m.match(l);return y?y.map(Number):[]}(h),p=="m"&&h.length>2&&(s.push([d].concat(h.splice(0,2))),p="l",d=d=="m"?"l":"L");;){if(h.length==a[p])return h.unshift(d),s.push(h);if(h.lengthc!=b>c&&s<(g-y)*(c-v)/(b-v)+y&&(d=!d)}return d}},52142:function(o,a,n){var l,f=n(69444),s=n(29023),c=n(87263),d=n(11328),h=n(55968),p=n(10670),m=!1,y=s();function v(g,b,x){var _=l.segments(g),w=l.segments(b),k=x(l.combine(_,w));return l.polygon(k)}l={buildLog:function(g){return g===!0?m=f():g===!1&&(m=!1),m!==!1&&m.list},epsilon:function(g){return y.epsilon(g)},segments:function(g){var b=c(!0,y,m);return g.regions.forEach(b.addRegion),{segments:b.calculate(g.inverted),inverted:g.inverted}},combine:function(g,b){return{combined:c(!1,y,m).calculate(g.segments,g.inverted,b.segments,b.inverted),inverted1:g.inverted,inverted2:b.inverted}},selectUnion:function(g){return{segments:h.union(g.combined,m),inverted:g.inverted1||g.inverted2}},selectIntersect:function(g){return{segments:h.intersect(g.combined,m),inverted:g.inverted1&&g.inverted2}},selectDifference:function(g){return{segments:h.difference(g.combined,m),inverted:g.inverted1&&!g.inverted2}},selectDifferenceRev:function(g){return{segments:h.differenceRev(g.combined,m),inverted:!g.inverted1&&g.inverted2}},selectXor:function(g){return{segments:h.xor(g.combined,m),inverted:g.inverted1!==g.inverted2}},polygon:function(g){return{regions:d(g.segments,y,m),inverted:g.inverted}},polygonFromGeoJSON:function(g){return p.toPolygon(l,g)},polygonToGeoJSON:function(g){return p.fromPolygon(l,y,g)},union:function(g,b){return v(g,b,l.selectUnion)},intersect:function(g,b){return v(g,b,l.selectIntersect)},difference:function(g,b){return v(g,b,l.selectDifference)},differenceRev:function(g,b){return v(g,b,l.selectDifferenceRev)},xor:function(g,b){return v(g,b,l.selectXor)}},typeof window=="object"&&(window.PolyBool=l),o.exports=l},69444:function(o){o.exports=function(){var a,n=0,l=!1;function f(s,c){return a.list.push({type:s,data:c?JSON.parse(JSON.stringify(c)):void 0}),a}return a={list:[],segmentId:function(){return n++},checkIntersection:function(s,c){return f("check",{seg1:s,seg2:c})},segmentChop:function(s,c){return f("div_seg",{seg:s,pt:c}),f("chop",{seg:s,pt:c})},statusRemove:function(s){return f("pop_seg",{seg:s})},segmentUpdate:function(s){return f("seg_update",{seg:s})},segmentNew:function(s,c){return f("new_seg",{seg:s,primary:c})},segmentRemove:function(s){return f("rem_seg",{seg:s})},tempStatus:function(s,c,d){return f("temp_status",{seg:s,above:c,below:d})},rewind:function(s){return f("rewind",{seg:s})},status:function(s,c,d){return f("status",{seg:s,above:c,below:d})},vert:function(s){return s===l?a:(l=s,f("vert",{x:s}))},log:function(s){return typeof s!="string"&&(s=JSON.stringify(s,!1," ")),f("log",{txt:s})},reset:function(){return f("reset")},selected:function(s){return f("selected",{segs:s})},chainStart:function(s){return f("chain_start",{seg:s})},chainRemoveHead:function(s,c){return f("chain_rem_head",{index:s,pt:c})},chainRemoveTail:function(s,c){return f("chain_rem_tail",{index:s,pt:c})},chainNew:function(s,c){return f("chain_new",{pt1:s,pt2:c})},chainMatch:function(s){return f("chain_match",{index:s})},chainClose:function(s){return f("chain_close",{index:s})},chainAddHead:function(s,c){return f("chain_add_head",{index:s,pt:c})},chainAddTail:function(s,c){return f("chain_add_tail",{index:s,pt:c})},chainConnect:function(s,c){return f("chain_con",{index1:s,index2:c})},chainReverse:function(s){return f("chain_rev",{index:s})},chainJoin:function(s,c){return f("chain_join",{index1:s,index2:c})},done:function(){return f("done")}}}},29023:function(o){o.exports=function(a){typeof a!="number"&&(a=1e-10);var n={epsilon:function(l){return typeof l=="number"&&(a=l),a},pointAboveOrOnLine:function(l,f,s){var c=f[0],d=f[1],h=s[0],p=s[1],m=l[0];return(h-c)*(l[1]-d)-(p-d)*(m-c)>=-a},pointBetween:function(l,f,s){var c=l[1]-f[1],d=s[0]-f[0],h=l[0]-f[0],p=s[1]-f[1],m=h*d+c*p;return!(m-a)},pointsSameX:function(l,f){return Math.abs(l[0]-f[0])a!=h-c>a&&(d-y)*(c-v)/(h-v)+y-s>a&&(p=!p),d=y,h=v}return p}};return n}},10670:function(o){var a={toPolygon:function(n,l){function f(d){if(d.length<=0)return n.segments({inverted:!1,regions:[]});function h(y){var v=y.slice(0,y.length-1);return n.segments({inverted:!1,regions:[v]})}for(var p=h(d[0]),m=1;m0})}function w(A,z){var B=A.seg,$=z.seg,j=B.start,N=B.end,E=$.start,W=$.end;c&&c.checkIntersection(B,$);var G=s.linesIntersect(j,N,E,W);if(G===!1){if(!s.pointsCollinear(j,N,E)||s.pointsSame(j,W)||s.pointsSame(N,E))return!1;var L=s.pointsSame(j,E),q=s.pointsSame(N,W);if(L&&q)return z;var H=!L&&s.pointBetween(j,E,W),V=!q&&s.pointBetween(N,E,W);if(L)return V?y(z,N):y(A,W),z;H&&(q||(V?y(z,N):y(A,W)),y(z,j))}else G.alongA===0&&(G.alongB===-1?y(A,E):G.alongB===0?y(A,G.pt):G.alongB===1&&y(A,W)),G.alongB===0&&(G.alongA===-1?y(z,j):G.alongA===0?y(z,G.pt):G.alongA===1&&y(z,N));return!1}for(var k=[];!h.isEmpty();){var T=h.getHead();if(c&&c.vert(T.pt[0]),T.isStart){let A=function(){if(S){var z=w(T,S);if(z)return z}return!!C&&w(T,C)};c&&c.segmentNew(T.seg,T.primary);var M=_(T),S=M.before?M.before.ev:null,C=M.after?M.after.ev:null;c&&c.tempStatus(T.seg,!!S&&S.seg,!!C&&C.seg);var P,D,O=A();if(O&&(f?(D=T.seg.myFill.below===null||T.seg.myFill.above!==T.seg.myFill.below)&&(O.seg.myFill.above=!O.seg.myFill.above):O.seg.otherFill=T.seg.myFill,c&&c.segmentUpdate(O.seg),T.other.remove(),T.remove()),h.getHead()!==T){c&&c.rewind(T.seg);continue}f?(D=T.seg.myFill.below===null||T.seg.myFill.above!==T.seg.myFill.below,T.seg.myFill.below=C?C.seg.myFill.above:g,T.seg.myFill.above=D?!T.seg.myFill.below:T.seg.myFill.below):T.seg.otherFill===null&&(P=C?T.primary===C.primary?C.seg.otherFill.above:C.seg.myFill.above:T.primary?b:g,T.seg.otherFill={above:P,below:P}),c&&c.status(T.seg,!!S&&S.seg,!!C&&C.seg),T.other.status=M.insert(l.node({ev:T}))}else{var R=T.status;if(R===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(x.exists(R.prev)&&x.exists(R.next)&&w(R.prev.ev,R.next.ev),c&&c.statusRemove(R.ev.seg),R.remove(),!T.primary){var F=T.seg.myFill;T.seg.myFill=T.seg.otherFill,T.seg.otherFill=F}k.push(T.seg)}h.getHead().remove()}return c&&c.done(),k}return f?{addRegion:function(g){for(var b,x,_,w=g[g.length-1],k=0;k0&&!this.aborted;){var c=this.ifds_to_read.shift();c.offset&&this.scan_ifd(c.id,c.offset,f)}},l.prototype.read_uint16=function(f){var s=this.input;if(f+2>s.length)throw a("unexpected EOF","EBADDATA");return this.big_endian?256*s[f]+s[f+1]:s[f]+256*s[f+1]},l.prototype.read_uint32=function(f){var s=this.input;if(f+4>s.length)throw a("unexpected EOF","EBADDATA");return this.big_endian?16777216*s[f]+65536*s[f+1]+256*s[f+2]+s[f+3]:s[f]+256*s[f+1]+65536*s[f+2]+16777216*s[f+3]},l.prototype.is_subifd_link=function(f,s){return f===0&&s===34665||f===0&&s===34853||f===34665&&s===40965},l.prototype.exif_format_length=function(f){switch(f){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}},l.prototype.exif_format_read=function(f,s){var c;switch(f){case 1:case 2:return this.input[s];case 6:return(c=this.input[s])|33554430*(128&c);case 3:return this.read_uint16(s);case 8:return(c=this.read_uint16(s))|131070*(32768&c);case 4:return this.read_uint32(s);case 9:return 0|this.read_uint32(s);default:return null}},l.prototype.scan_ifd=function(f,s,c){var d=this.read_uint16(s);s+=2;for(var h=0;hthis.input.length)throw a("unexpected EOF","EBADDATA");for(var _=[],w=b,k=0;k0&&(this.ifds_to_read.push({id:p,offset:_[0]}),x=!0),c({is_big_endian:this.big_endian,ifd:f,tag:p,format:m,count:y,entry_offset:s+this.start,data_length:g,data_offset:b+this.start,value:_,is_subifd_link:x})===!1)return void(this.aborted=!0);s+=12}f===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(s)})},o.exports.ExifParser=l,o.exports.get_orientation=function(f){var s=0;try{return new l(f,0,f.length).each(function(c){if(c.ifd===0&&c.tag===274&&Array.isArray(c.value))return s=c.value[0],!1}),s}catch{return-1}}},76767:function(o,a,n){var l=n(14847).n8,f=n(14847).Ag;function s(y,v){if(y.length<4+v)return null;var g=f(y,v);return y.length>4&15,b=15&y[4],x=y[5]>>4&15,_=l(y,6),w=8,k=0;k<_;k++){var T=l(y,w),M=l(y,w+=2),S=d(y,w+=2,x),C=l(y,w+=x);if(w+=2,M===0&&C===1){var P=d(y,w,g),D=d(y,w+g,b);v.item_loc[T]={length:D,offset:P+S}}w+=C*(g+b)}}function p(y,v){for(var g=l(y,4),b=6,x=0;xM.width||T.width===M.width&&T.height>M.height?T:M}),x=g.reduce(function(T,M){return T.height>M.height||T.height===M.height&&T.width>M.width?T:M}),b.width>x.height||b.width===x.height&&b.height>x.width?b:x),w=1;v.transforms.forEach(function(T){var M={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},S={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(T.type==="imir"&&(w=T.value===0?S[w]:M[w=M[w=S[w]]]),T.type==="irot")for(var C=0;C1&&(_.variants=x.variants),x.orientation&&(_.orientation=x.orientation),x.exif_location&&x.exif_location.offset+x.exif_location.length<=p.length){var w=s(p,x.exif_location.offset),k=p.slice(x.exif_location.offset+w+4,x.exif_location.offset+x.exif_location.length),T=d.get_orientation(k);T>0&&(_.orientation=T)}return _}}}}}}},2504:function(o,a,n){var l=n(14847).eG,f=n(14847).OF,s=n(14847).mP,c=l("BM");o.exports=function(d){if(!(d.length<26)&&f(d,0,c))return{width:s(d,18),height:s(d,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}},47342:function(o,a,n){var l=n(14847).eG,f=n(14847).OF,s=n(14847).mP,c=l("GIF87a"),d=l("GIF89a");o.exports=function(h){if(!(h.length<10)&&(f(h,0,c)||f(h,0,d)))return{width:s(h,6),height:s(h,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}},31355:function(o,a,n){var l=n(14847).mP;o.exports=function(f){var s=l(f,0),c=l(f,2),d=l(f,4);if(s===0&&c===1&&d){for(var h=[],p={width:0,height:0},m=0;mp.width||v>p.height)&&(p=g)}return{width:p.width,height:p.height,variants:h,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}},54261:function(o,a,n){var l=n(14847).n8,f=n(14847).eG,s=n(14847).OF,c=n(71371),d=f("Exif\0\0");o.exports=function(h){if(!(h.length<2)&&h[0]===255&&h[1]===216&&h[2]===255)for(var p=2;;){for(;;){if(h.length-p<2)return;if(h[p++]===255)break}for(var m,y,v=h[p++];v===255;)v=h[p++];if(208<=v&&v<=217||v===1)m=0;else{if(!(192<=v&&v<=254)||h.length-p<2)return;m=l(h,p)-2,p+=2}if(v===217||v===218)return;if(v===225&&m>=10&&s(h,p,d)&&(y=c.get_orientation(h.slice(p+6,p+m))),m>=5&&192<=v&&v<=207&&v!==196&&v!==200&&v!==204){if(h.length-p0&&(g.orientation=y),g}p+=m}}},6303:function(o,a,n){var l=n(14847).eG,f=n(14847).OF,s=n(14847).Ag,c=l(`‰PNG\r +`):H=" ".concat($," ").concat(H)),z=u(this,y(O).call(this,"".concat(q).concat(H)))}return Error.stackTraceLimit=W,z.generatedMessage=!B,Object.defineProperty(d(z),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),z.code="ERR_ASSERTION",z.actual=N,z.expected=E,z.operator=$,Error.captureStackTrace&&Error.captureStackTrace(d(z),j),z.stack,z.name="AssertionError",u(z)}var R,F;return function(A,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(z&&z.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),z&&g(A,z)}(O,D),R=O,F=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:m.custom,value:function(A,z){return m(this,function(B){for(var $=1;$2?"one of ".concat(v," ").concat(y.slice(0,m-1).join(", "),", or ")+y[m-1]:m===2?"one of ".concat(v," ").concat(y[0]," or ").concat(y[1]):"of ".concat(v," ").concat(y[0])}return"of ".concat(v," ").concat(String(y))}p("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),p("ERR_INVALID_ARG_TYPE",function(y,v,m){var b,x,_,w,k;if(u===void 0&&(u=n(32791)),u(typeof y=="string","'name' must be a string"),typeof v=="string"&&(x="not ",v.substr(0,4)===x)?(b="must not be",v=v.replace(/^not /,"")):b="must be",function(M,S,C){return(C===void 0||C>M.length)&&(C=M.length),M.substring(C-9,C)===S}(y," argument"))_="The ".concat(y," ").concat(b," ").concat(g(v,"type"));else{var T=(typeof k!="number"&&(k=0),k+1>(w=y).length||w.indexOf(".",k)===-1?"argument":"property");_='The "'.concat(y,'" ').concat(T," ").concat(b," ").concat(g(v,"type"))}return _+". Received type ".concat(l(m))},TypeError),p("ERR_INVALID_ARG_VALUE",function(y,v){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";d===void 0&&(d=n(43827));var b=d.inspect(v);return b.length>128&&(b="".concat(b.slice(0,128),"...")),"The argument '".concat(y,"' ").concat(m,". Received ").concat(b)},TypeError),p("ERR_INVALID_RETURN_VALUE",function(y,v,m){var b;return b=m&&m.constructor&&m.constructor.name?"instance of ".concat(m.constructor.name):"type ".concat(l(m)),"Expected ".concat(y,' to be returned from the "').concat(v,'"')+" function but got ".concat(b,".")},TypeError),p("ERR_MISSING_ARGS",function(){for(var y=arguments.length,v=new Array(y),m=0;m0,"At least one arg needs to be specified");var b="The ",x=v.length;switch(v=v.map(function(_){return'"'.concat(_,'"')}),x){case 1:b+="".concat(v[0]," argument");break;case 2:b+="".concat(v[0]," and ").concat(v[1]," arguments");break;default:b+=v.slice(0,x-1).join(", "),b+=", and ".concat(v[x-1]," arguments")}return"".concat(b," must be specified")},TypeError),o.exports.codes=h},74061:function(o,a,n){function l(Z,X){return function(re){if(Array.isArray(re))return re}(Z)||function(re,ie){var le=[],se=!0,pe=!1,Te=void 0;try{for(var Se,Oe=re[Symbol.iterator]();!(se=(Se=Oe.next()).done)&&(le.push(Se.value),!ie||le.length!==ie);se=!0);}catch(Me){pe=!0,Te=Me}finally{try{se||Oe.return==null||Oe.return()}finally{if(pe)throw Te}}return le}(Z,X)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function f(Z){return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(X){return typeof X}:function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},f(Z)}var s=/a/g.flags!==void 0,u=function(Z){var X=[];return Z.forEach(function(re){return X.push(re)}),X},d=function(Z){var X=[];return Z.forEach(function(re,ie){return X.push([ie,re])}),X},h=Object.is?Object.is:n(64003),p=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},g=Number.isNaN?Number.isNaN:n(15567);function y(Z){return Z.call.bind(Z)}var v=y(Object.prototype.hasOwnProperty),m=y(Object.prototype.propertyIsEnumerable),b=y(Object.prototype.toString),x=n(43827).types,_=x.isAnyArrayBuffer,w=x.isArrayBufferView,k=x.isDate,T=x.isMap,M=x.isRegExp,S=x.isSet,C=x.isNativeError,P=x.isBoxedPrimitive,D=x.isNumberObject,O=x.isStringObject,R=x.isBooleanObject,F=x.isBigIntObject,A=x.isSymbolObject,z=x.isFloat32Array,B=x.isFloat64Array;function $(Z){if(Z.length===0||Z.length>10)return!0;for(var X=0;X57)return!0}return Z.length===10&&Z>=Math.pow(2,32)}function j(Z){return Object.keys(Z).filter($).concat(p(Z).filter(Object.prototype.propertyIsEnumerable.bind(Z)))}function N(Z,X){if(Z===X)return 0;for(var re=Z.length,ie=X.length,le=0,se=Math.min(re,ie);le0?m-4:m;for(y=0;y>16&255,x[_++]=g>>8&255,x[_++]=255&g;return b===2&&(g=l[p.charCodeAt(y)]<<2|l[p.charCodeAt(y+1)]>>4,x[_++]=255&g),b===1&&(g=l[p.charCodeAt(y)]<<10|l[p.charCodeAt(y+1)]<<4|l[p.charCodeAt(y+2)]>>2,x[_++]=g>>8&255,x[_++]=255&g),x},a.fromByteArray=function(p){for(var g,y=p.length,v=y%3,m=[],b=16383,x=0,_=y-v;x<_;x+=b)m.push(h(p,x,x+b>_?_:x+b));return v===1?(g=p[y-1],m.push(n[g>>2]+n[g<<4&63]+"==")):v===2&&(g=(p[y-2]<<8)+p[y-1],m.push(n[g>>10]+n[g>>4&63]+n[g<<2&63]+"=")),m.join("")};for(var n=[],l=[],f=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0;u<64;++u)n[u]=s[u],l[s.charCodeAt(u)]=u;function d(p){var g=p.length;if(g%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=p.indexOf("=");return y===-1&&(y=g),[y,y===g?0:4-y%4]}function h(p,g,y){for(var v,m,b=[],x=g;x>18&63]+n[m>>12&63]+n[m>>6&63]+n[63&m]);return b.join("")}l[45]=62,l[95]=63},6614:function(o,a,n){var l=n(68318),f=n(68222),s=f(l("String.prototype.indexOf"));o.exports=function(u,d){var h=l(u,!!d);return typeof h=="function"&&s(u,".prototype.")>-1?f(h):h}},68222:function(o,a,n){var l=n(77575),f=n(68318),s=f("%Function.prototype.apply%"),u=f("%Function.prototype.call%"),d=f("%Reflect.apply%",!0)||l.call(u,s),h=f("%Object.getOwnPropertyDescriptor%",!0),p=f("%Object.defineProperty%",!0),g=f("%Math.max%");if(p)try{p({},"a",{value:1})}catch{p=null}o.exports=function(v){var m=d(l,u,arguments);return h&&p&&h(m,"length").configurable&&p(m,"length",{value:1+g(0,v.length-(arguments.length-1))}),m};var y=function(){return d(l,s,arguments)};p?p(o.exports,"apply",{value:y}):o.exports.apply=y},60721:function(o,a,n){function l(_,w){if((k=(_=w?_.toExponential(w-1):_.toExponential()).indexOf("e"))<0)return null;var k,T=_.slice(0,k);return[T.length>1?T[0]+T.slice(2):T,+_.slice(k+1)]}n.d(a,{WU:function(){return v},FF:function(){return x}});var f,s=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function u(_){if(!(w=s.exec(_)))throw new Error("invalid format: "+_);var w;return new d({fill:w[1],align:w[2],sign:w[3],symbol:w[4],zero:w[5],width:w[6],comma:w[7],precision:w[8]&&w[8].slice(1),trim:w[9],type:w[10]})}function d(_){this.fill=_.fill===void 0?" ":_.fill+"",this.align=_.align===void 0?">":_.align+"",this.sign=_.sign===void 0?"-":_.sign+"",this.symbol=_.symbol===void 0?"":_.symbol+"",this.zero=!!_.zero,this.width=_.width===void 0?void 0:+_.width,this.comma=!!_.comma,this.precision=_.precision===void 0?void 0:+_.precision,this.trim=!!_.trim,this.type=_.type===void 0?"":_.type+""}function h(_,w){var k=l(_,w);if(!k)return _+"";var T=k[0],M=k[1];return M<0?"0."+new Array(-M).join("0")+T:T.length>M+1?T.slice(0,M+1)+"."+T.slice(M+1):T+new Array(M-T.length+2).join("0")}u.prototype=d.prototype,d.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,0|this.width))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var p={"%":function(_,w){return(100*_).toFixed(w)},b:function(_){return Math.round(_).toString(2)},c:function(_){return _+""},d:function(_){return Math.abs(_=Math.round(_))>=1e21?_.toLocaleString("en").replace(/,/g,""):_.toString(10)},e:function(_,w){return _.toExponential(w)},f:function(_,w){return _.toFixed(w)},g:function(_,w){return _.toPrecision(w)},o:function(_){return Math.round(_).toString(8)},p:function(_,w){return h(100*_,w)},r:h,s:function(_,w){var k=l(_,w);if(!k)return _+"";var T=k[0],M=k[1],S=M-(f=3*Math.max(-8,Math.min(8,Math.floor(M/3))))+1,C=T.length;return S===C?T:S>C?T+new Array(S-C+1).join("0"):S>0?T.slice(0,S)+"."+T.slice(S):"0."+new Array(1-S).join("0")+l(_,Math.max(0,w+S-1))[0]},X:function(_){return Math.round(_).toString(16).toUpperCase()},x:function(_){return Math.round(_).toString(16)}};function g(_){return _}var y,v,m=Array.prototype.map,b=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function x(_){var w,k,T=_.grouping===void 0||_.thousands===void 0?g:(w=m.call(_.grouping,Number),k=_.thousands+"",function(A,z){for(var B=A.length,$=[],j=0,N=w[0],E=0;B>0&&N>0&&(E+N+1>z&&(N=Math.max(1,z-E)),$.push(A.substring(B-=N,B+N)),!((E+=N+1)>z));)N=w[j=(j+1)%w.length];return $.reverse().join(k)}),M=_.currency===void 0?"":_.currency[0]+"",S=_.currency===void 0?"":_.currency[1]+"",C=_.decimal===void 0?".":_.decimal+"",P=_.numerals===void 0?g:function(A){return function(z){return z.replace(/[0-9]/g,function(B){return A[+B]})}}(m.call(_.numerals,String)),D=_.percent===void 0?"%":_.percent+"",O=_.minus===void 0?"-":_.minus+"",R=_.nan===void 0?"NaN":_.nan+"";function F(A){var z=(A=u(A)).fill,B=A.align,$=A.sign,j=A.symbol,N=A.zero,E=A.width,W=A.comma,G=A.precision,L=A.trim,q=A.type;q==="n"?(W=!0,q="g"):p[q]||(G===void 0&&(G=12),L=!0,q="g"),(N||z==="0"&&B==="=")&&(N=!0,z="0",B="=");var H=j==="$"?M:j==="#"&&/[boxX]/.test(q)?"0"+q.toLowerCase():"",V=j==="$"?S:/[%p]/.test(q)?D:"",te=p[q],ee=/[defgprs%]/.test(q);function U(Q){var Y,Z,X,re=H,ie=V;if(q==="c")ie=te(Q)+ie,Q="";else{var le=(Q=+Q)<0||1/Q<0;if(Q=isNaN(Q)?R:te(Math.abs(Q),G),L&&(Q=function(Te){e:for(var Se,Oe=Te.length,Me=1,ce=-1;Me0&&(ce=0)}return ce>0?Te.slice(0,ce)+Te.slice(Se+1):Te}(Q)),le&&+Q==0&&$!=="+"&&(le=!1),re=(le?$==="("?$:O:$==="-"||$==="("?"":$)+re,ie=(q==="s"?b[8+f/3]:"")+ie+(le&&$==="("?")":""),ee){for(Y=-1,Z=Q.length;++Y(X=Q.charCodeAt(Y))||X>57){ie=(X===46?C+Q.slice(Y+1):Q.slice(Y))+ie,Q=Q.slice(0,Y);break}}}W&&!N&&(Q=T(Q,1/0));var se=re.length+Q.length+ie.length,pe=se>1)+re+Q+ie+pe.slice(se);break;default:Q=pe+re+Q+ie}return P(Q)}return G=G===void 0?6:/[gprs]/.test(q)?Math.max(1,Math.min(21,G)):Math.max(0,Math.min(20,G)),U.toString=function(){return A+""},U}return{format:F,formatPrefix:function(A,z){var B,$=F(((A=u(A)).type="f",A)),j=3*Math.max(-8,Math.min(8,Math.floor((B=z,((B=l(Math.abs(B)))?B[1]:NaN)/3)))),N=Math.pow(10,-j),E=b[8+j/3];return function(W){return $(N*W)+E}}}}y=x({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),v=y.format,y.formatPrefix},84096:function(o,a,n){n.d(a,{i$:function(){return b},Dq:function(){return v},g0:function(){return x}});var l=n(58176),f=n(48480),s=n(59879),u=n(82301),d=n(34823),h=n(79791);function p(ze){if(0<=ze.y&&ze.y<100){var Ne=new Date(-1,ze.m,ze.d,ze.H,ze.M,ze.S,ze.L);return Ne.setFullYear(ze.y),Ne}return new Date(ze.y,ze.m,ze.d,ze.H,ze.M,ze.S,ze.L)}function g(ze){if(0<=ze.y&&ze.y<100){var Ne=new Date(Date.UTC(-1,ze.m,ze.d,ze.H,ze.M,ze.S,ze.L));return Ne.setUTCFullYear(ze.y),Ne}return new Date(Date.UTC(ze.y,ze.m,ze.d,ze.H,ze.M,ze.S,ze.L))}function y(ze,Ne,Qe){return{y:ze,m:Ne,d:Qe,H:0,M:0,S:0,L:0}}function v(ze){var Ne=ze.dateTime,Qe=ze.date,it=ze.time,kt=ze.periods,Je=ze.days,ut=ze.shortDays,pt=ze.months,It=ze.shortMonths,Mt=C(kt),zt=P(kt),wt=C(Je),ve=P(Je),_e=C(ut),Ve=P(ut),We=C(pt),Ze=P(pt),Ge=C(It),Ke=P(It),nt={a:function(St){return ut[St.getDay()]},A:function(St){return Je[St.getDay()]},b:function(St){return It[St.getMonth()]},B:function(St){return pt[St.getMonth()]},c:null,d:Q,e:Q,f:ie,H:Y,I:Z,j:X,L:re,m:le,M:se,p:function(St){return kt[+(St.getHours()>=12)]},q:function(St){return 1+~~(St.getMonth()/3)},Q:ct,s:bt,S:pe,u:Te,U:Se,V:Oe,w:Me,W:ce,x:null,X:null,y:ye,Y:J,Z:ne,"%":lt},st={a:function(St){return ut[St.getUTCDay()]},A:function(St){return Je[St.getUTCDay()]},b:function(St){return It[St.getUTCMonth()]},B:function(St){return pt[St.getUTCMonth()]},c:null,d:de,e:de,f:we,H:xe,I:ue,j:ge,L:be,m:ke,M:Ae,p:function(St){return kt[+(St.getUTCHours()>=12)]},q:function(St){return 1+~~(St.getUTCMonth()/3)},Q:ct,s:bt,S:Ee,u:De,U:Re,V:Ie,w:Be,W:Ue,x:null,X:null,y:qe,Y:Ye,Z:at,"%":lt},mt={a:function(St,Nt,Dt){var gt=_e.exec(Nt.slice(Dt));return gt?(St.w=Ve[gt[0].toLowerCase()],Dt+gt[0].length):-1},A:function(St,Nt,Dt){var gt=wt.exec(Nt.slice(Dt));return gt?(St.w=ve[gt[0].toLowerCase()],Dt+gt[0].length):-1},b:function(St,Nt,Dt){var gt=Ge.exec(Nt.slice(Dt));return gt?(St.m=Ke[gt[0].toLowerCase()],Dt+gt[0].length):-1},B:function(St,Nt,Dt){var gt=We.exec(Nt.slice(Dt));return gt?(St.m=Ze[gt[0].toLowerCase()],Dt+gt[0].length):-1},c:function(St,Nt,Dt){return Vt(St,Ne,Nt,Dt)},d:E,e:E,f:V,H:G,I:G,j:W,L:H,m:N,M:L,p:function(St,Nt,Dt){var gt=Mt.exec(Nt.slice(Dt));return gt?(St.p=zt[gt[0].toLowerCase()],Dt+gt[0].length):-1},q:j,Q:ee,s:U,S:q,u:O,U:R,V:F,w:D,W:A,x:function(St,Nt,Dt){return Vt(St,Qe,Nt,Dt)},X:function(St,Nt,Dt){return Vt(St,it,Nt,Dt)},y:B,Y:z,Z:$,"%":te};function tt(St,Nt){return function(Dt){var gt,ht,yt,qt=[],Et=-1,jt=0,Tt=St.length;for(Dt instanceof Date||(Dt=new Date(+Dt));++Et53)return null;"w"in yt||(yt.w=1),"Z"in yt?(ht=(gt=g(y(yt.y,0,1))).getUTCDay(),gt=ht>4||ht===0?l.l6.ceil(gt):(0,l.l6)(gt),gt=f.Z.offset(gt,7*(yt.V-1)),yt.y=gt.getUTCFullYear(),yt.m=gt.getUTCMonth(),yt.d=gt.getUTCDate()+(yt.w+6)%7):(ht=(gt=p(y(yt.y,0,1))).getDay(),gt=ht>4||ht===0?s.wA.ceil(gt):(0,s.wA)(gt),gt=u.Z.offset(gt,7*(yt.V-1)),yt.y=gt.getFullYear(),yt.m=gt.getMonth(),yt.d=gt.getDate()+(yt.w+6)%7)}else("W"in yt||"U"in yt)&&("w"in yt||(yt.w="u"in yt?yt.u%7:"W"in yt?1:0),ht="Z"in yt?g(y(yt.y,0,1)).getUTCDay():p(y(yt.y,0,1)).getDay(),yt.m=0,yt.d="W"in yt?(yt.w+6)%7+7*yt.W-(ht+5)%7:yt.w+7*yt.U-(ht+6)%7);return"Z"in yt?(yt.H+=yt.Z/100|0,yt.M+=yt.Z%100,g(yt)):p(yt)}}function Vt(St,Nt,Dt,gt){for(var ht,yt,qt=0,Et=Nt.length,jt=Dt.length;qt=jt)return-1;if((ht=Nt.charCodeAt(qt++))===37){if(ht=Nt.charAt(qt++),!(yt=mt[ht in _?Nt.charAt(qt++):ht])||(gt=yt(St,Dt,gt))<0)return-1}else if(ht!=Dt.charCodeAt(gt++))return-1}return gt}return nt.x=tt(Qe,nt),nt.X=tt(it,nt),nt.c=tt(Ne,nt),st.x=tt(Qe,st),st.X=tt(it,st),st.c=tt(Ne,st),{format:function(St){var Nt=tt(St+="",nt);return Nt.toString=function(){return St},Nt},parse:function(St){var Nt=Ft(St+="",!1);return Nt.toString=function(){return St},Nt},utcFormat:function(St){var Nt=tt(St+="",st);return Nt.toString=function(){return St},Nt},utcParse:function(St){var Nt=Ft(St+="",!0);return Nt.toString=function(){return St},Nt}}}var m,b,x,_={"-":"",_:" ",0:"0"},w=/^\s*\d+/,k=/^%/,T=/[\\^$*+?|[\]().{}]/g;function M(ze,Ne,Qe){var it=ze<0?"-":"",kt=(it?-ze:ze)+"",Je=kt.length;return it+(Je68?1900:2e3),Qe+it[0].length):-1}function $(ze,Ne,Qe){var it=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Ne.slice(Qe,Qe+6));return it?(ze.Z=it[1]?0:-(it[2]+(it[3]||"00")),Qe+it[0].length):-1}function j(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+1));return it?(ze.q=3*it[0]-3,Qe+it[0].length):-1}function N(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+2));return it?(ze.m=it[0]-1,Qe+it[0].length):-1}function E(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+2));return it?(ze.d=+it[0],Qe+it[0].length):-1}function W(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+3));return it?(ze.m=0,ze.d=+it[0],Qe+it[0].length):-1}function G(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+2));return it?(ze.H=+it[0],Qe+it[0].length):-1}function L(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+2));return it?(ze.M=+it[0],Qe+it[0].length):-1}function q(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+2));return it?(ze.S=+it[0],Qe+it[0].length):-1}function H(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+3));return it?(ze.L=+it[0],Qe+it[0].length):-1}function V(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe,Qe+6));return it?(ze.L=Math.floor(it[0]/1e3),Qe+it[0].length):-1}function te(ze,Ne,Qe){var it=k.exec(Ne.slice(Qe,Qe+1));return it?Qe+it[0].length:-1}function ee(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe));return it?(ze.Q=+it[0],Qe+it[0].length):-1}function U(ze,Ne,Qe){var it=w.exec(Ne.slice(Qe));return it?(ze.s=+it[0],Qe+it[0].length):-1}function Q(ze,Ne){return M(ze.getDate(),Ne,2)}function Y(ze,Ne){return M(ze.getHours(),Ne,2)}function Z(ze,Ne){return M(ze.getHours()%12||12,Ne,2)}function X(ze,Ne){return M(1+u.Z.count((0,d.Z)(ze),ze),Ne,3)}function re(ze,Ne){return M(ze.getMilliseconds(),Ne,3)}function ie(ze,Ne){return re(ze,Ne)+"000"}function le(ze,Ne){return M(ze.getMonth()+1,Ne,2)}function se(ze,Ne){return M(ze.getMinutes(),Ne,2)}function pe(ze,Ne){return M(ze.getSeconds(),Ne,2)}function Te(ze){var Ne=ze.getDay();return Ne===0?7:Ne}function Se(ze,Ne){return M(s.OM.count((0,d.Z)(ze)-1,ze),Ne,2)}function Oe(ze,Ne){var Qe=ze.getDay();return ze=Qe>=4||Qe===0?(0,s.bL)(ze):s.bL.ceil(ze),M(s.bL.count((0,d.Z)(ze),ze)+((0,d.Z)(ze).getDay()===4),Ne,2)}function Me(ze){return ze.getDay()}function ce(ze,Ne){return M(s.wA.count((0,d.Z)(ze)-1,ze),Ne,2)}function ye(ze,Ne){return M(ze.getFullYear()%100,Ne,2)}function J(ze,Ne){return M(ze.getFullYear()%1e4,Ne,4)}function ne(ze){var Ne=ze.getTimezoneOffset();return(Ne>0?"-":(Ne*=-1,"+"))+M(Ne/60|0,"0",2)+M(Ne%60,"0",2)}function de(ze,Ne){return M(ze.getUTCDate(),Ne,2)}function xe(ze,Ne){return M(ze.getUTCHours(),Ne,2)}function ue(ze,Ne){return M(ze.getUTCHours()%12||12,Ne,2)}function ge(ze,Ne){return M(1+f.Z.count((0,h.Z)(ze),ze),Ne,3)}function be(ze,Ne){return M(ze.getUTCMilliseconds(),Ne,3)}function we(ze,Ne){return be(ze,Ne)+"000"}function ke(ze,Ne){return M(ze.getUTCMonth()+1,Ne,2)}function Ae(ze,Ne){return M(ze.getUTCMinutes(),Ne,2)}function Ee(ze,Ne){return M(ze.getUTCSeconds(),Ne,2)}function De(ze){var Ne=ze.getUTCDay();return Ne===0?7:Ne}function Re(ze,Ne){return M(l.Ox.count((0,h.Z)(ze)-1,ze),Ne,2)}function Ie(ze,Ne){var Qe=ze.getUTCDay();return ze=Qe>=4||Qe===0?(0,l.hB)(ze):l.hB.ceil(ze),M(l.hB.count((0,h.Z)(ze),ze)+((0,h.Z)(ze).getUTCDay()===4),Ne,2)}function Be(ze){return ze.getUTCDay()}function Ue(ze,Ne){return M(l.l6.count((0,h.Z)(ze)-1,ze),Ne,2)}function qe(ze,Ne){return M(ze.getUTCFullYear()%100,Ne,2)}function Ye(ze,Ne){return M(ze.getUTCFullYear()%1e4,Ne,4)}function at(){return"+0000"}function lt(){return"%"}function ct(ze){return+ze}function bt(ze){return Math.floor(+ze/1e3)}m=v({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),b=m.format,m.parse,x=m.utcFormat,m.utcParse},82301:function(o,a,n){n.d(a,{a:function(){return u}});var l=n(30052),f=n(54263),s=(0,l.Z)(function(d){d.setHours(0,0,0,0)},function(d,h){d.setDate(d.getDate()+h)},function(d,h){return(h-d-(h.getTimezoneOffset()-d.getTimezoneOffset())*f.yB)/f.UD},function(d){return d.getDate()-1});a.Z=s;var u=s.range},54263:function(o,a,n){n.d(a,{UD:function(){return u},Y2:function(){return s},Ym:function(){return l},iM:function(){return d},yB:function(){return f}});var l=1e3,f=6e4,s=36e5,u=864e5,d=6048e5},81041:function(o,a,n){n.r(a),n.d(a,{timeDay:function(){return w.Z},timeDays:function(){return w.a},timeFriday:function(){return k.mC},timeFridays:function(){return k.b$},timeHour:function(){return x},timeHours:function(){return _},timeInterval:function(){return l.Z},timeMillisecond:function(){return s},timeMilliseconds:function(){return u},timeMinute:function(){return v},timeMinutes:function(){return m},timeMonday:function(){return k.wA},timeMondays:function(){return k.bJ},timeMonth:function(){return M},timeMonths:function(){return S},timeSaturday:function(){return k.EY},timeSaturdays:function(){return k.Ff},timeSecond:function(){return p},timeSeconds:function(){return g},timeSunday:function(){return k.OM},timeSundays:function(){return k.vm},timeThursday:function(){return k.bL},timeThursdays:function(){return k.$t},timeTuesday:function(){return k.sy},timeTuesdays:function(){return k.aU},timeWednesday:function(){return k.zg},timeWednesdays:function(){return k.Ld},timeWeek:function(){return k.OM},timeWeeks:function(){return k.vm},timeYear:function(){return C.Z},timeYears:function(){return C.g},utcDay:function(){return z.Z},utcDays:function(){return z.y},utcFriday:function(){return B.QQ},utcFridays:function(){return B.fz},utcHour:function(){return F},utcHours:function(){return A},utcMillisecond:function(){return s},utcMilliseconds:function(){return u},utcMinute:function(){return D},utcMinutes:function(){return O},utcMonday:function(){return B.l6},utcMondays:function(){return B.$3},utcMonth:function(){return j},utcMonths:function(){return N},utcSaturday:function(){return B.g4},utcSaturdays:function(){return B.Q_},utcSecond:function(){return p},utcSeconds:function(){return g},utcSunday:function(){return B.Ox},utcSundays:function(){return B.SU},utcThursday:function(){return B.hB},utcThursdays:function(){return B.xj},utcTuesday:function(){return B.J1},utcTuesdays:function(){return B.DK},utcWednesday:function(){return B.b3},utcWednesdays:function(){return B.uy},utcWeek:function(){return B.Ox},utcWeeks:function(){return B.SU},utcYear:function(){return E.Z},utcYears:function(){return E.D}});var l=n(30052),f=(0,l.Z)(function(){},function(W,G){W.setTime(+W+G)},function(W,G){return G-W});f.every=function(W){return W=Math.floor(W),isFinite(W)&&W>0?W>1?(0,l.Z)(function(G){G.setTime(Math.floor(G/W)*W)},function(G,L){G.setTime(+G+L*W)},function(G,L){return(L-G)/W}):f:null};var s=f,u=f.range,d=n(54263),h=(0,l.Z)(function(W){W.setTime(W-W.getMilliseconds())},function(W,G){W.setTime(+W+G*d.Ym)},function(W,G){return(G-W)/d.Ym},function(W){return W.getUTCSeconds()}),p=h,g=h.range,y=(0,l.Z)(function(W){W.setTime(W-W.getMilliseconds()-W.getSeconds()*d.Ym)},function(W,G){W.setTime(+W+G*d.yB)},function(W,G){return(G-W)/d.yB},function(W){return W.getMinutes()}),v=y,m=y.range,b=(0,l.Z)(function(W){W.setTime(W-W.getMilliseconds()-W.getSeconds()*d.Ym-W.getMinutes()*d.yB)},function(W,G){W.setTime(+W+G*d.Y2)},function(W,G){return(G-W)/d.Y2},function(W){return W.getHours()}),x=b,_=b.range,w=n(82301),k=n(59879),T=(0,l.Z)(function(W){W.setDate(1),W.setHours(0,0,0,0)},function(W,G){W.setMonth(W.getMonth()+G)},function(W,G){return G.getMonth()-W.getMonth()+12*(G.getFullYear()-W.getFullYear())},function(W){return W.getMonth()}),M=T,S=T.range,C=n(34823),P=(0,l.Z)(function(W){W.setUTCSeconds(0,0)},function(W,G){W.setTime(+W+G*d.yB)},function(W,G){return(G-W)/d.yB},function(W){return W.getUTCMinutes()}),D=P,O=P.range,R=(0,l.Z)(function(W){W.setUTCMinutes(0,0,0)},function(W,G){W.setTime(+W+G*d.Y2)},function(W,G){return(G-W)/d.Y2},function(W){return W.getUTCHours()}),F=R,A=R.range,z=n(48480),B=n(58176),$=(0,l.Z)(function(W){W.setUTCDate(1),W.setUTCHours(0,0,0,0)},function(W,G){W.setUTCMonth(W.getUTCMonth()+G)},function(W,G){return G.getUTCMonth()-W.getUTCMonth()+12*(G.getUTCFullYear()-W.getUTCFullYear())},function(W){return W.getUTCMonth()}),j=$,N=$.range,E=n(79791)},30052:function(o,a,n){n.d(a,{Z:function(){return s}});var l=new Date,f=new Date;function s(u,d,h,p){function g(y){return u(y=arguments.length===0?new Date:new Date(+y)),y}return g.floor=function(y){return u(y=new Date(+y)),y},g.ceil=function(y){return u(y=new Date(y-1)),d(y,1),u(y),y},g.round=function(y){var v=g(y),m=g.ceil(y);return y-v0))return x;do x.push(b=new Date(+y)),d(y,m),u(y);while(b=v)for(;u(v),!y(v);)v.setTime(v-1)},function(v,m){if(v>=v)if(m<0)for(;++m<=0;)for(;d(v,-1),!y(v););else for(;--m>=0;)for(;d(v,1),!y(v););})},h&&(g.count=function(y,v){return l.setTime(+y),f.setTime(+v),u(l),u(f),Math.floor(h(l,f))},g.every=function(y){return y=Math.floor(y),isFinite(y)&&y>0?y>1?g.filter(p?function(v){return p(v)%y==0}:function(v){return g.count(0,v)%y==0}):g:null}),g}},48480:function(o,a,n){n.d(a,{y:function(){return u}});var l=n(30052),f=n(54263),s=(0,l.Z)(function(d){d.setUTCHours(0,0,0,0)},function(d,h){d.setUTCDate(d.getUTCDate()+h)},function(d,h){return(h-d)/f.UD},function(d){return d.getUTCDate()-1});a.Z=s;var u=s.range},58176:function(o,a,n){n.d(a,{$3:function(){return b},DK:function(){return x},J1:function(){return h},Ox:function(){return u},QQ:function(){return y},Q_:function(){return T},SU:function(){return m},b3:function(){return p},fz:function(){return k},g4:function(){return v},hB:function(){return g},l6:function(){return d},uy:function(){return _},xj:function(){return w}});var l=n(30052),f=n(54263);function s(M){return(0,l.Z)(function(S){S.setUTCDate(S.getUTCDate()-(S.getUTCDay()+7-M)%7),S.setUTCHours(0,0,0,0)},function(S,C){S.setUTCDate(S.getUTCDate()+7*C)},function(S,C){return(C-S)/f.iM})}var u=s(0),d=s(1),h=s(2),p=s(3),g=s(4),y=s(5),v=s(6),m=u.range,b=d.range,x=h.range,_=p.range,w=g.range,k=y.range,T=v.range},79791:function(o,a,n){n.d(a,{D:function(){return s}});var l=n(30052),f=(0,l.Z)(function(u){u.setUTCMonth(0,1),u.setUTCHours(0,0,0,0)},function(u,d){u.setUTCFullYear(u.getUTCFullYear()+d)},function(u,d){return d.getUTCFullYear()-u.getUTCFullYear()},function(u){return u.getUTCFullYear()});f.every=function(u){return isFinite(u=Math.floor(u))&&u>0?(0,l.Z)(function(d){d.setUTCFullYear(Math.floor(d.getUTCFullYear()/u)*u),d.setUTCMonth(0,1),d.setUTCHours(0,0,0,0)},function(d,h){d.setUTCFullYear(d.getUTCFullYear()+h*u)}):null},a.Z=f;var s=f.range},59879:function(o,a,n){n.d(a,{$t:function(){return w},EY:function(){return v},Ff:function(){return T},Ld:function(){return _},OM:function(){return u},aU:function(){return x},b$:function(){return k},bJ:function(){return b},bL:function(){return g},mC:function(){return y},sy:function(){return h},vm:function(){return m},wA:function(){return d},zg:function(){return p}});var l=n(30052),f=n(54263);function s(M){return(0,l.Z)(function(S){S.setDate(S.getDate()-(S.getDay()+7-M)%7),S.setHours(0,0,0,0)},function(S,C){S.setDate(S.getDate()+7*C)},function(S,C){return(C-S-(C.getTimezoneOffset()-S.getTimezoneOffset())*f.yB)/f.iM})}var u=s(0),d=s(1),h=s(2),p=s(3),g=s(4),y=s(5),v=s(6),m=u.range,b=d.range,x=h.range,_=p.range,w=g.range,k=y.range,T=v.range},34823:function(o,a,n){n.d(a,{g:function(){return s}});var l=n(30052),f=(0,l.Z)(function(u){u.setMonth(0,1),u.setHours(0,0,0,0)},function(u,d){u.setFullYear(u.getFullYear()+d)},function(u,d){return d.getFullYear()-u.getFullYear()},function(u){return u.getFullYear()});f.every=function(u){return isFinite(u=Math.floor(u))&&u>0?(0,l.Z)(function(d){d.setFullYear(Math.floor(d.getFullYear()/u)*u),d.setMonth(0,1),d.setHours(0,0,0,0)},function(d,h){d.setFullYear(d.getFullYear()+h*u)}):null},a.Z=f;var s=f.range},17045:function(o,a,n){var l=n(8709),f=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",s=Object.prototype.toString,u=Array.prototype.concat,d=Object.defineProperty,h=n(55622)(),p=d&&h,g=function(v,m,b,x){if(m in v){if(x===!0){if(v[m]===b)return}else if(typeof(_=x)!="function"||s.call(_)!=="[object Function]"||!x())return}var _;p?d(v,m,{configurable:!0,enumerable:!1,value:b,writable:!0}):v[m]=b},y=function(v,m){var b=arguments.length>2?arguments[2]:{},x=l(m);f&&(x=u.call(x,Object.getOwnPropertySymbols(m)));for(var _=0;_0&&C.length>M&&!C.warned){C.warned=!0;var D=new Error("Possible EventEmitter memory leak detected. "+C.length+" "+String(w)+" listeners added. Use emitter.setMaxListeners() to increase limit");D.name="MaxListenersExceededWarning",D.emitter=_,D.type=w,D.count=C.length,P=D,console&&console.warn&&console.warn(P)}return _}function g(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function y(_,w,k){var T={fired:!1,wrapFn:void 0,target:_,type:w,listener:k},M=g.bind(T);return M.listener=k,T.wrapFn=M,M}function v(_,w,k){var T=_._events;if(T===void 0)return[];var M=T[w];return M===void 0?[]:typeof M=="function"?k?[M.listener||M]:[M]:k?function(S){for(var C=new Array(S.length),P=0;P0&&(S=w[0]),S instanceof Error)throw S;var C=new Error("Unhandled error."+(S?" ("+S.message+")":""));throw C.context=S,C}var P=M[_];if(P===void 0)return!1;if(typeof P=="function")l(P,this,w);else{var D=P.length,O=b(P,D);for(k=0;k=0;S--)if(k[S]===w||k[S].listener===w){C=k[S].listener,M=S;break}if(M<0)return this;M===0?k.shift():function(P,D){for(;D+1=0;T--)this.removeListener(_,w[T]);return this},s.prototype.listeners=function(_){return v(this,_,!0)},s.prototype.rawListeners=function(_){return v(this,_,!1)},s.listenerCount=function(_,w){return typeof _.listenerCount=="function"?_.listenerCount(w):m.call(_,w)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]}},92770:function(o,a,n){var l=n(18546);o.exports=function(f){var s=typeof f;if(s==="string"){var u=f;if((f=+f)==0&&l(u))return!1}else if(s!=="number")return!1;return f-f<1}},31353:function(o,a,n){var l=n(85395),f=Object.prototype.toString,s=Object.prototype.hasOwnProperty;o.exports=function(u,d,h){if(!l(d))throw new TypeError("iterator must be a function");var p;arguments.length>=3&&(p=h),f.call(u)==="[object Array]"?function(g,y,v){for(var m=0,b=g.length;m"u"?l:v(Uint8Array),x={"%AggregateError%":typeof AggregateError>"u"?l:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?l:ArrayBuffer,"%ArrayIteratorPrototype%":y?v([][Symbol.iterator]()):l,"%AsyncFromSyncIteratorPrototype%":l,"%AsyncFunction%":m,"%AsyncGenerator%":m,"%AsyncGeneratorFunction%":m,"%AsyncIteratorPrototype%":m,"%Atomics%":typeof Atomics>"u"?l:Atomics,"%BigInt%":typeof BigInt>"u"?l:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?l:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?l:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?l:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?l:Float32Array,"%Float64Array%":typeof Float64Array>"u"?l:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?l:FinalizationRegistry,"%Function%":s,"%GeneratorFunction%":m,"%Int8Array%":typeof Int8Array>"u"?l:Int8Array,"%Int16Array%":typeof Int16Array>"u"?l:Int16Array,"%Int32Array%":typeof Int32Array>"u"?l:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y?v(v([][Symbol.iterator]())):l,"%JSON%":typeof JSON=="object"?JSON:l,"%Map%":typeof Map>"u"?l:Map,"%MapIteratorPrototype%":typeof Map<"u"&&y?v(new Map()[Symbol.iterator]()):l,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?l:Promise,"%Proxy%":typeof Proxy>"u"?l:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?l:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?l:Set,"%SetIteratorPrototype%":typeof Set<"u"&&y?v(new Set()[Symbol.iterator]()):l,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?l:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y?v(""[Symbol.iterator]()):l,"%Symbol%":y?Symbol:l,"%SyntaxError%":f,"%ThrowTypeError%":g,"%TypedArray%":b,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?l:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?l:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?l:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?l:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?l:WeakMap,"%WeakRef%":typeof WeakRef>"u"?l:WeakRef,"%WeakSet%":typeof WeakSet>"u"?l:WeakSet};try{null.error}catch(z){var _=v(v(z));x["%Error.prototype%"]=_}var w=function z(B){var $;if(B==="%AsyncFunction%")$=d("async function () {}");else if(B==="%GeneratorFunction%")$=d("function* () {}");else if(B==="%AsyncGeneratorFunction%")$=d("async function* () {}");else if(B==="%AsyncGenerator%"){var j=z("%AsyncGeneratorFunction%");j&&($=j.prototype)}else if(B==="%AsyncIteratorPrototype%"){var N=z("%AsyncGenerator%");N&&($=v(N.prototype))}return x[B]=$,$},k={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},T=n(77575),M=n(35065),S=T.call(Function.call,Array.prototype.concat),C=T.call(Function.apply,Array.prototype.splice),P=T.call(Function.call,String.prototype.replace),D=T.call(Function.call,String.prototype.slice),O=T.call(Function.call,RegExp.prototype.exec),R=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,F=/\\(\\)?/g,A=function(z,B){var $,j=z;if(M(k,j)&&(j="%"+($=k[j])[0]+"%"),M(x,j)){var N=x[j];if(N===m&&(N=w(j)),N===void 0&&!B)throw new u("intrinsic "+z+" exists, but is not available. Please file an issue!");return{alias:$,name:j,value:N}}throw new f("intrinsic "+z+" does not exist!")};o.exports=function(z,B){if(typeof z!="string"||z.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof B!="boolean")throw new u('"allowMissing" argument must be a boolean');if(O(/^%?[^%]*%?$/,z)===null)throw new f("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var $=function(Q){var Y=D(Q,0,1),Z=D(Q,-1);if(Y==="%"&&Z!=="%")throw new f("invalid intrinsic syntax, expected closing `%`");if(Z==="%"&&Y!=="%")throw new f("invalid intrinsic syntax, expected opening `%`");var X=[];return P(Q,R,function(re,ie,le,se){X[X.length]=le?P(se,F,"$1"):ie||re}),X}(z),j=$.length>0?$[0]:"",N=A("%"+j+"%",B),E=N.name,W=N.value,G=!1,L=N.alias;L&&(j=L[0],C($,S([0,1],L)));for(var q=1,H=!0;q<$.length;q+=1){var V=$[q],te=D(V,0,1),ee=D(V,-1);if((te==='"'||te==="'"||te==="`"||ee==='"'||ee==="'"||ee==="`")&&te!==ee)throw new f("property names with quotes must have matching quotes");if(V!=="constructor"&&H||(G=!0),M(x,E="%"+(j+="."+V)+"%"))W=x[E];else if(W!=null){if(!(V in W)){if(!B)throw new u("base intrinsic for "+z+" exists, but the property is not available.");return}if(h&&q+1>=$.length){var U=h(W,V);W=(H=!!U)&&"get"in U&&!("originalValue"in U.get)?U.get:W[V]}else H=M(W,V),W=W[V];H&&!G&&(x[E]=W)}}return W}},85400:function(o){o.exports=function(a,n){var l=n[0],f=n[1],s=n[2],u=n[3],d=n[4],h=n[5],p=n[6],g=n[7],y=n[8],v=n[9],m=n[10],b=n[11],x=n[12],_=n[13],w=n[14],k=n[15];return a[0]=h*(m*k-b*w)-v*(p*k-g*w)+_*(p*b-g*m),a[1]=-(f*(m*k-b*w)-v*(s*k-u*w)+_*(s*b-u*m)),a[2]=f*(p*k-g*w)-h*(s*k-u*w)+_*(s*g-u*p),a[3]=-(f*(p*b-g*m)-h*(s*b-u*m)+v*(s*g-u*p)),a[4]=-(d*(m*k-b*w)-y*(p*k-g*w)+x*(p*b-g*m)),a[5]=l*(m*k-b*w)-y*(s*k-u*w)+x*(s*b-u*m),a[6]=-(l*(p*k-g*w)-d*(s*k-u*w)+x*(s*g-u*p)),a[7]=l*(p*b-g*m)-d*(s*b-u*m)+y*(s*g-u*p),a[8]=d*(v*k-b*_)-y*(h*k-g*_)+x*(h*b-g*v),a[9]=-(l*(v*k-b*_)-y*(f*k-u*_)+x*(f*b-u*v)),a[10]=l*(h*k-g*_)-d*(f*k-u*_)+x*(f*g-u*h),a[11]=-(l*(h*b-g*v)-d*(f*b-u*v)+y*(f*g-u*h)),a[12]=-(d*(v*w-m*_)-y*(h*w-p*_)+x*(h*m-p*v)),a[13]=l*(v*w-m*_)-y*(f*w-s*_)+x*(f*m-s*v),a[14]=-(l*(h*w-p*_)-d*(f*w-s*_)+x*(f*p-s*h)),a[15]=l*(h*m-p*v)-d*(f*m-s*v)+y*(f*p-s*h),a}},42331:function(o){o.exports=function(a){var n=new Float32Array(16);return n[0]=a[0],n[1]=a[1],n[2]=a[2],n[3]=a[3],n[4]=a[4],n[5]=a[5],n[6]=a[6],n[7]=a[7],n[8]=a[8],n[9]=a[9],n[10]=a[10],n[11]=a[11],n[12]=a[12],n[13]=a[13],n[14]=a[14],n[15]=a[15],n}},31042:function(o){o.exports=function(a,n){return a[0]=n[0],a[1]=n[1],a[2]=n[2],a[3]=n[3],a[4]=n[4],a[5]=n[5],a[6]=n[6],a[7]=n[7],a[8]=n[8],a[9]=n[9],a[10]=n[10],a[11]=n[11],a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15],a}},11902:function(o){o.exports=function(){var a=new Float32Array(16);return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},89887:function(o){o.exports=function(a){var n=a[0],l=a[1],f=a[2],s=a[3],u=a[4],d=a[5],h=a[6],p=a[7],g=a[8],y=a[9],v=a[10],m=a[11],b=a[12],x=a[13],_=a[14],w=a[15];return(n*d-l*u)*(v*w-m*_)-(n*h-f*u)*(y*w-m*x)+(n*p-s*u)*(y*_-v*x)+(l*h-f*d)*(g*w-m*b)-(l*p-s*d)*(g*_-v*b)+(f*p-s*h)*(g*x-y*b)}},27812:function(o){o.exports=function(a,n){var l=n[0],f=n[1],s=n[2],u=n[3],d=l+l,h=f+f,p=s+s,g=l*d,y=f*d,v=f*h,m=s*d,b=s*h,x=s*p,_=u*d,w=u*h,k=u*p;return a[0]=1-v-x,a[1]=y+k,a[2]=m-w,a[3]=0,a[4]=y-k,a[5]=1-g-x,a[6]=b+_,a[7]=0,a[8]=m+w,a[9]=b-_,a[10]=1-g-v,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},34045:function(o){o.exports=function(a,n,l){var f,s,u,d=l[0],h=l[1],p=l[2],g=Math.sqrt(d*d+h*h+p*p);return Math.abs(g)<1e-6?null:(d*=g=1/g,h*=g,p*=g,f=Math.sin(n),u=1-(s=Math.cos(n)),a[0]=d*d*u+s,a[1]=h*d*u+p*f,a[2]=p*d*u-h*f,a[3]=0,a[4]=d*h*u-p*f,a[5]=h*h*u+s,a[6]=p*h*u+d*f,a[7]=0,a[8]=d*p*u+h*f,a[9]=h*p*u-d*f,a[10]=p*p*u+s,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a)}},45973:function(o){o.exports=function(a,n,l){var f=n[0],s=n[1],u=n[2],d=n[3],h=f+f,p=s+s,g=u+u,y=f*h,v=f*p,m=f*g,b=s*p,x=s*g,_=u*g,w=d*h,k=d*p,T=d*g;return a[0]=1-(b+_),a[1]=v+T,a[2]=m-k,a[3]=0,a[4]=v-T,a[5]=1-(y+_),a[6]=x+w,a[7]=0,a[8]=m+k,a[9]=x-w,a[10]=1-(y+b),a[11]=0,a[12]=l[0],a[13]=l[1],a[14]=l[2],a[15]=1,a}},81472:function(o){o.exports=function(a,n){return a[0]=n[0],a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=n[1],a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=n[2],a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},14669:function(o){o.exports=function(a,n){return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=n[0],a[13]=n[1],a[14]=n[2],a[15]=1,a}},75262:function(o){o.exports=function(a,n){var l=Math.sin(n),f=Math.cos(n);return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=f,a[6]=l,a[7]=0,a[8]=0,a[9]=-l,a[10]=f,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},331:function(o){o.exports=function(a,n){var l=Math.sin(n),f=Math.cos(n);return a[0]=f,a[1]=0,a[2]=-l,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=l,a[9]=0,a[10]=f,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},11049:function(o){o.exports=function(a,n){var l=Math.sin(n),f=Math.cos(n);return a[0]=f,a[1]=l,a[2]=0,a[3]=0,a[4]=-l,a[5]=f,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},75195:function(o){o.exports=function(a,n,l,f,s,u,d){var h=1/(l-n),p=1/(s-f),g=1/(u-d);return a[0]=2*u*h,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=2*u*p,a[6]=0,a[7]=0,a[8]=(l+n)*h,a[9]=(s+f)*p,a[10]=(d+u)*g,a[11]=-1,a[12]=0,a[13]=0,a[14]=d*u*2*g,a[15]=0,a}},71551:function(o){o.exports=function(a){return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},79576:function(o,a,n){o.exports={create:n(11902),clone:n(42331),copy:n(31042),identity:n(71551),transpose:n(88654),invert:n(95874),adjoint:n(85400),determinant:n(89887),multiply:n(91362),translate:n(31283),scale:n(10789),rotate:n(65074),rotateX:n(35545),rotateY:n(94918),rotateZ:n(15692),fromRotation:n(34045),fromRotationTranslation:n(45973),fromScaling:n(81472),fromTranslation:n(14669),fromXRotation:n(75262),fromYRotation:n(331),fromZRotation:n(11049),fromQuat:n(27812),frustum:n(75195),perspective:n(7864),perspectiveFromFieldOfView:n(35279),ortho:n(60378),lookAt:n(65551),str:n(6726)}},95874:function(o){o.exports=function(a,n){var l=n[0],f=n[1],s=n[2],u=n[3],d=n[4],h=n[5],p=n[6],g=n[7],y=n[8],v=n[9],m=n[10],b=n[11],x=n[12],_=n[13],w=n[14],k=n[15],T=l*h-f*d,M=l*p-s*d,S=l*g-u*d,C=f*p-s*h,P=f*g-u*h,D=s*g-u*p,O=y*_-v*x,R=y*w-m*x,F=y*k-b*x,A=v*w-m*_,z=v*k-b*_,B=m*k-b*w,$=T*B-M*z+S*A+C*F-P*R+D*O;return $?($=1/$,a[0]=(h*B-p*z+g*A)*$,a[1]=(s*z-f*B-u*A)*$,a[2]=(_*D-w*P+k*C)*$,a[3]=(m*P-v*D-b*C)*$,a[4]=(p*F-d*B-g*R)*$,a[5]=(l*B-s*F+u*R)*$,a[6]=(w*S-x*D-k*M)*$,a[7]=(y*D-m*S+b*M)*$,a[8]=(d*z-h*F+g*O)*$,a[9]=(f*F-l*z-u*O)*$,a[10]=(x*P-_*S+k*T)*$,a[11]=(v*S-y*P-b*T)*$,a[12]=(h*R-d*A-p*O)*$,a[13]=(l*A-f*R+s*O)*$,a[14]=(_*M-x*C-w*T)*$,a[15]=(y*C-v*M+m*T)*$,a):null}},65551:function(o,a,n){var l=n(71551);o.exports=function(f,s,u,d){var h,p,g,y,v,m,b,x,_,w,k=s[0],T=s[1],M=s[2],S=d[0],C=d[1],P=d[2],D=u[0],O=u[1],R=u[2];return Math.abs(k-D)<1e-6&&Math.abs(T-O)<1e-6&&Math.abs(M-R)<1e-6?l(f):(b=k-D,x=T-O,_=M-R,h=C*(_*=w=1/Math.sqrt(b*b+x*x+_*_))-P*(x*=w),p=P*(b*=w)-S*_,g=S*x-C*b,(w=Math.sqrt(h*h+p*p+g*g))?(h*=w=1/w,p*=w,g*=w):(h=0,p=0,g=0),y=x*g-_*p,v=_*h-b*g,m=b*p-x*h,(w=Math.sqrt(y*y+v*v+m*m))?(y*=w=1/w,v*=w,m*=w):(y=0,v=0,m=0),f[0]=h,f[1]=y,f[2]=b,f[3]=0,f[4]=p,f[5]=v,f[6]=x,f[7]=0,f[8]=g,f[9]=m,f[10]=_,f[11]=0,f[12]=-(h*k+p*T+g*M),f[13]=-(y*k+v*T+m*M),f[14]=-(b*k+x*T+_*M),f[15]=1,f)}},91362:function(o){o.exports=function(a,n,l){var f=n[0],s=n[1],u=n[2],d=n[3],h=n[4],p=n[5],g=n[6],y=n[7],v=n[8],m=n[9],b=n[10],x=n[11],_=n[12],w=n[13],k=n[14],T=n[15],M=l[0],S=l[1],C=l[2],P=l[3];return a[0]=M*f+S*h+C*v+P*_,a[1]=M*s+S*p+C*m+P*w,a[2]=M*u+S*g+C*b+P*k,a[3]=M*d+S*y+C*x+P*T,M=l[4],S=l[5],C=l[6],P=l[7],a[4]=M*f+S*h+C*v+P*_,a[5]=M*s+S*p+C*m+P*w,a[6]=M*u+S*g+C*b+P*k,a[7]=M*d+S*y+C*x+P*T,M=l[8],S=l[9],C=l[10],P=l[11],a[8]=M*f+S*h+C*v+P*_,a[9]=M*s+S*p+C*m+P*w,a[10]=M*u+S*g+C*b+P*k,a[11]=M*d+S*y+C*x+P*T,M=l[12],S=l[13],C=l[14],P=l[15],a[12]=M*f+S*h+C*v+P*_,a[13]=M*s+S*p+C*m+P*w,a[14]=M*u+S*g+C*b+P*k,a[15]=M*d+S*y+C*x+P*T,a}},60378:function(o){o.exports=function(a,n,l,f,s,u,d){var h=1/(n-l),p=1/(f-s),g=1/(u-d);return a[0]=-2*h,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=-2*p,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=2*g,a[11]=0,a[12]=(n+l)*h,a[13]=(s+f)*p,a[14]=(d+u)*g,a[15]=1,a}},7864:function(o){o.exports=function(a,n,l,f,s){var u=1/Math.tan(n/2),d=1/(f-s);return a[0]=u/l,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=u,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=(s+f)*d,a[11]=-1,a[12]=0,a[13]=0,a[14]=2*s*f*d,a[15]=0,a}},35279:function(o){o.exports=function(a,n,l,f){var s=Math.tan(n.upDegrees*Math.PI/180),u=Math.tan(n.downDegrees*Math.PI/180),d=Math.tan(n.leftDegrees*Math.PI/180),h=Math.tan(n.rightDegrees*Math.PI/180),p=2/(d+h),g=2/(s+u);return a[0]=p,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=g,a[6]=0,a[7]=0,a[8]=-(d-h)*p*.5,a[9]=(s-u)*g*.5,a[10]=f/(l-f),a[11]=-1,a[12]=0,a[13]=0,a[14]=f*l/(l-f),a[15]=0,a}},65074:function(o){o.exports=function(a,n,l,f){var s,u,d,h,p,g,y,v,m,b,x,_,w,k,T,M,S,C,P,D,O,R,F,A,z=f[0],B=f[1],$=f[2],j=Math.sqrt(z*z+B*B+$*$);return Math.abs(j)<1e-6?null:(z*=j=1/j,B*=j,$*=j,s=Math.sin(l),d=1-(u=Math.cos(l)),h=n[0],p=n[1],g=n[2],y=n[3],v=n[4],m=n[5],b=n[6],x=n[7],_=n[8],w=n[9],k=n[10],T=n[11],M=z*z*d+u,S=B*z*d+$*s,C=$*z*d-B*s,P=z*B*d-$*s,D=B*B*d+u,O=$*B*d+z*s,R=z*$*d+B*s,F=B*$*d-z*s,A=$*$*d+u,a[0]=h*M+v*S+_*C,a[1]=p*M+m*S+w*C,a[2]=g*M+b*S+k*C,a[3]=y*M+x*S+T*C,a[4]=h*P+v*D+_*O,a[5]=p*P+m*D+w*O,a[6]=g*P+b*D+k*O,a[7]=y*P+x*D+T*O,a[8]=h*R+v*F+_*A,a[9]=p*R+m*F+w*A,a[10]=g*R+b*F+k*A,a[11]=y*R+x*F+T*A,n!==a&&(a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15]),a)}},35545:function(o){o.exports=function(a,n,l){var f=Math.sin(l),s=Math.cos(l),u=n[4],d=n[5],h=n[6],p=n[7],g=n[8],y=n[9],v=n[10],m=n[11];return n!==a&&(a[0]=n[0],a[1]=n[1],a[2]=n[2],a[3]=n[3],a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15]),a[4]=u*s+g*f,a[5]=d*s+y*f,a[6]=h*s+v*f,a[7]=p*s+m*f,a[8]=g*s-u*f,a[9]=y*s-d*f,a[10]=v*s-h*f,a[11]=m*s-p*f,a}},94918:function(o){o.exports=function(a,n,l){var f=Math.sin(l),s=Math.cos(l),u=n[0],d=n[1],h=n[2],p=n[3],g=n[8],y=n[9],v=n[10],m=n[11];return n!==a&&(a[4]=n[4],a[5]=n[5],a[6]=n[6],a[7]=n[7],a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15]),a[0]=u*s-g*f,a[1]=d*s-y*f,a[2]=h*s-v*f,a[3]=p*s-m*f,a[8]=u*f+g*s,a[9]=d*f+y*s,a[10]=h*f+v*s,a[11]=p*f+m*s,a}},15692:function(o){o.exports=function(a,n,l){var f=Math.sin(l),s=Math.cos(l),u=n[0],d=n[1],h=n[2],p=n[3],g=n[4],y=n[5],v=n[6],m=n[7];return n!==a&&(a[8]=n[8],a[9]=n[9],a[10]=n[10],a[11]=n[11],a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15]),a[0]=u*s+g*f,a[1]=d*s+y*f,a[2]=h*s+v*f,a[3]=p*s+m*f,a[4]=g*s-u*f,a[5]=y*s-d*f,a[6]=v*s-h*f,a[7]=m*s-p*f,a}},10789:function(o){o.exports=function(a,n,l){var f=l[0],s=l[1],u=l[2];return a[0]=n[0]*f,a[1]=n[1]*f,a[2]=n[2]*f,a[3]=n[3]*f,a[4]=n[4]*s,a[5]=n[5]*s,a[6]=n[6]*s,a[7]=n[7]*s,a[8]=n[8]*u,a[9]=n[9]*u,a[10]=n[10]*u,a[11]=n[11]*u,a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15],a}},6726:function(o){o.exports=function(a){return"mat4("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+", "+a[6]+", "+a[7]+", "+a[8]+", "+a[9]+", "+a[10]+", "+a[11]+", "+a[12]+", "+a[13]+", "+a[14]+", "+a[15]+")"}},31283:function(o){o.exports=function(a,n,l){var f,s,u,d,h,p,g,y,v,m,b,x,_=l[0],w=l[1],k=l[2];return n===a?(a[12]=n[0]*_+n[4]*w+n[8]*k+n[12],a[13]=n[1]*_+n[5]*w+n[9]*k+n[13],a[14]=n[2]*_+n[6]*w+n[10]*k+n[14],a[15]=n[3]*_+n[7]*w+n[11]*k+n[15]):(f=n[0],s=n[1],u=n[2],d=n[3],h=n[4],p=n[5],g=n[6],y=n[7],v=n[8],m=n[9],b=n[10],x=n[11],a[0]=f,a[1]=s,a[2]=u,a[3]=d,a[4]=h,a[5]=p,a[6]=g,a[7]=y,a[8]=v,a[9]=m,a[10]=b,a[11]=x,a[12]=f*_+h*w+v*k+n[12],a[13]=s*_+p*w+m*k+n[13],a[14]=u*_+g*w+b*k+n[14],a[15]=d*_+y*w+x*k+n[15]),a}},88654:function(o){o.exports=function(a,n){if(a===n){var l=n[1],f=n[2],s=n[3],u=n[6],d=n[7],h=n[11];a[1]=n[4],a[2]=n[8],a[3]=n[12],a[4]=l,a[6]=n[9],a[7]=n[13],a[8]=f,a[9]=u,a[11]=n[14],a[12]=s,a[13]=d,a[14]=h}else a[0]=n[0],a[1]=n[4],a[2]=n[8],a[3]=n[12],a[4]=n[1],a[5]=n[5],a[6]=n[9],a[7]=n[13],a[8]=n[2],a[9]=n[6],a[10]=n[10],a[11]=n[14],a[12]=n[3],a[13]=n[7],a[14]=n[11],a[15]=n[15];return a}},40383:function(o,a,n){var l=n(68318)("%Object.getOwnPropertyDescriptor%",!0);if(l)try{l([],"length")}catch{l=null}o.exports=l},57035:function(o,a,n){var l,f=n(54404);l=typeof n.g.matchMedia=="function"?!n.g.matchMedia("(hover: none)").matches:f,o.exports=l},38520:function(o,a,n){var l=n(54404);o.exports=l&&function(){var f=!1;try{var s=Object.defineProperty({},"passive",{get:function(){f=!0}});window.addEventListener("test",null,s),window.removeEventListener("test",null,s)}catch{f=!1}return f}()},55622:function(o,a,n){var l=n(68318)("%Object.defineProperty%",!0),f=function(){if(l)try{return l({},"a",{value:1}),!0}catch{return!1}return!1};f.hasArrayLengthDefineBug=function(){if(!f())return null;try{return l([],"length",{value:1}).length!==1}catch{return!0}},o.exports=f},57877:function(o,a,n){var l=typeof Symbol<"u"&&Symbol,f=n(35638);o.exports=function(){return typeof l=="function"&&typeof Symbol=="function"&&typeof l("foo")=="symbol"&&typeof Symbol("bar")=="symbol"&&f()}},35638:function(o){o.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var a={},n=Symbol("test"),l=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(l)!=="[object Symbol]")return!1;for(n in a[n]=42,a)return!1;if(typeof Object.keys=="function"&&Object.keys(a).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(a).length!==0)return!1;var f=Object.getOwnPropertySymbols(a);if(f.length!==1||f[0]!==n||!Object.prototype.propertyIsEnumerable.call(a,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(a,n);if(s.value!==42||s.enumerable!==!0)return!1}return!0}},84543:function(o,a,n){var l=n(35638);o.exports=function(){return l()&&!!Symbol.toStringTag}},35065:function(o,a,n){var l=n(77575);o.exports=l.call(Function.call,Object.prototype.hasOwnProperty)},95280:function(o,a){a.read=function(n,l,f,s,u){var d,h,p=8*u-s-1,g=(1<>1,v=-7,m=f?u-1:0,b=f?-1:1,x=n[l+m];for(m+=b,d=x&(1<<-v)-1,x>>=-v,v+=p;v>0;d=256*d+n[l+m],m+=b,v-=8);for(h=d&(1<<-v)-1,d>>=-v,v+=s;v>0;h=256*h+n[l+m],m+=b,v-=8);if(d===0)d=1-y;else{if(d===g)return h?NaN:1/0*(x?-1:1);h+=Math.pow(2,s),d-=y}return(x?-1:1)*h*Math.pow(2,d-s)},a.write=function(n,l,f,s,u,d){var h,p,g,y=8*d-u-1,v=(1<>1,b=u===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=s?0:d-1,_=s?1:-1,w=l<0||l===0&&1/l<0?1:0;for(l=Math.abs(l),isNaN(l)||l===1/0?(p=isNaN(l)?1:0,h=v):(h=Math.floor(Math.log(l)/Math.LN2),l*(g=Math.pow(2,-h))<1&&(h--,g*=2),(l+=h+m>=1?b/g:b*Math.pow(2,1-m))*g>=2&&(h++,g/=2),h+m>=v?(p=0,h=v):h+m>=1?(p=(l*g-1)*Math.pow(2,u),h+=m):(p=l*Math.pow(2,m-1)*Math.pow(2,u),h=0));u>=8;n[f+x]=255&p,x+=_,p/=256,u-=8);for(h=h<0;n[f+x]=255&h,x+=_,h/=256,y-=8);n[f+x-_]|=128*w}},42018:function(o){typeof Object.create=="function"?o.exports=function(a,n){n&&(a.super_=n,a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}))}:o.exports=function(a,n){if(n){a.super_=n;var l=function(){};l.prototype=n.prototype,a.prototype=new l,a.prototype.constructor=a}}},47216:function(o,a,n){var l=n(84543)(),f=n(6614)("Object.prototype.toString"),s=function(h){return!(l&&h&&typeof h=="object"&&Symbol.toStringTag in h)&&f(h)==="[object Arguments]"},u=function(h){return!!s(h)||h!==null&&typeof h=="object"&&typeof h.length=="number"&&h.length>=0&&f(h)!=="[object Array]"&&f(h.callee)==="[object Function]"},d=function(){return s(arguments)}();s.isLegacyArguments=u,o.exports=d?s:u},54404:function(o){o.exports=!0},85395:function(o){var a,n,l=Function.prototype.toString,f=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply;if(typeof f=="function"&&typeof Object.defineProperty=="function")try{a=Object.defineProperty({},"length",{get:function(){throw n}}),n={},f(function(){throw 42},null,a)}catch(m){m!==n&&(f=null)}else f=null;var s=/^\s*class\b/,u=function(m){try{var b=l.call(m);return s.test(b)}catch{return!1}},d=function(m){try{return!u(m)&&(l.call(m),!0)}catch{return!1}},h=Object.prototype.toString,p=typeof Symbol=="function"&&!!Symbol.toStringTag,g=!(0 in[,]),y=function(){return!1};if(typeof document=="object"){var v=document.all;h.call(v)===h.call(document.all)&&(y=function(m){if((g||!m)&&(m===void 0||typeof m=="object"))try{var b=h.call(m);return(b==="[object HTMLAllCollection]"||b==="[object HTML document.all class]"||b==="[object HTMLCollection]"||b==="[object Object]")&&m("")==null}catch{}return!1})}o.exports=f?function(m){if(y(m))return!0;if(!m||typeof m!="function"&&typeof m!="object")return!1;try{f(m,null,a)}catch(b){if(b!==n)return!1}return!u(m)&&d(m)}:function(m){if(y(m))return!0;if(!m||typeof m!="function"&&typeof m!="object")return!1;if(p)return d(m);if(u(m))return!1;var b=h.call(m);return!(b!=="[object Function]"&&b!=="[object GeneratorFunction]"&&!/^\[object HTML/.test(b))&&d(m)}},65481:function(o,a,n){var l,f=Object.prototype.toString,s=Function.prototype.toString,u=/^\s*(?:function)?\*/,d=n(84543)(),h=Object.getPrototypeOf;o.exports=function(p){if(typeof p!="function")return!1;if(u.test(s.call(p)))return!0;if(!d)return f.call(p)==="[object GeneratorFunction]";if(!h)return!1;if(l===void 0){var g=function(){if(!d)return!1;try{return Function("return function*() {}")()}catch{}}();l=!!g&&h(g)}return h(p)===l}},64274:function(o){o.exports=function(a){return a!=a}},15567:function(o,a,n){var l=n(68222),f=n(17045),s=n(64274),u=n(14922),d=n(22442),h=l(u(),Number);f(h,{getPolyfill:u,implementation:s,shim:d}),o.exports=h},14922:function(o,a,n){var l=n(64274);o.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:l}},22442:function(o,a,n){var l=n(17045),f=n(14922);o.exports=function(){var s=f();return l(Number,{isNaN:s},{isNaN:function(){return Number.isNaN!==s}}),s}},18546:function(o){o.exports=function(a){for(var n,l=a.length,f=0;f13)&&n!==32&&n!==133&&n!==160&&n!==5760&&n!==6158&&(n<8192||n>8205)&&n!==8232&&n!==8233&&n!==8239&&n!==8287&&n!==8288&&n!==12288&&n!==65279)return!1;return!0}},9187:function(o,a,n){var l=n(31353),f=n(72077),s=n(6614),u=s("Object.prototype.toString"),d=n(84543)(),h=n(40383),p=typeof globalThis>"u"?n.g:globalThis,g=f(),y=s("Array.prototype.indexOf",!0)||function(x,_){for(var w=0;w-1}return!!h&&function(w){var k=!1;return l(m,function(T,M){if(!k)try{k=T.call(w)===M}catch{}}),k}(x)}},48956:function(o){var a={left:0,top:0};o.exports=function(n,l,f){l=l||n.currentTarget||n.srcElement,Array.isArray(f)||(f=[0,0]);var s,u=n.clientX||0,d=n.clientY||0,h=(s=l)===window||s===document||s===document.body?a:s.getBoundingClientRect();return f[0]=u-h.left,f[1]=d-h.top,f}},7417:function(o,a,n){var l,f,s,u;f="Promise",u=function(){var d,h,p,g=Object.prototype.toString,y=typeof setImmediate<"u"?function(P){return setImmediate(P)}:setTimeout;try{Object.defineProperty({},"x",{}),d=function(P,D,O,R){return Object.defineProperty(P,D,{value:O,writable:!0,configurable:R!==!1})}}catch{d=function(D,O,R){return D[O]=R,D}}function v(P,D){p.add(P,D),h||(h=y(p.drain))}function m(P){var D,O=typeof P;return P==null||O!="object"&&O!="function"||(D=P.then),typeof D=="function"&&D}function b(){for(var P=0;P0&&v(b,O))}catch(R){w.call(new T(O),R)}}}function w(P){var D=this;D.triggered||(D.triggered=!0,D.def&&(D=D.def),D.msg=P,D.state=2,D.chain.length>0&&v(b,D))}function k(P,D,O,R){for(var F=0;F"u")return!1;for(var b in window)try{if(!v["$"+b]&&f.call(window,b)&&window[b]!==null&&typeof window[b]=="object")try{y(window[b])}catch{return!0}}catch{return!0}return!1}();l=function(b){var x=b!==null&&typeof b=="object",_=s.call(b)==="[object Function]",w=u(b),k=x&&s.call(b)==="[object String]",T=[];if(!x&&!_&&!w)throw new TypeError("Object.keys called on a non-object");var M=p&&_;if(k&&b.length>0&&!f.call(b,0))for(var S=0;S0)for(var C=0;C"u"||!m)return y(R);try{return y(R)}catch{return!1}}(b),O=0;O=0&&a.call(n.callee)==="[object Function]"),f}},95616:function(o){o.exports=function(f){var s=[];return f.replace(n,function(u,d,h){var p=d.toLowerCase();for(h=function(g){var y=g.match(l);return y?y.map(Number):[]}(h),p=="m"&&h.length>2&&(s.push([d].concat(h.splice(0,2))),p="l",d=d=="m"?"l":"L");;){if(h.length==a[p])return h.unshift(d),s.push(h);if(h.lengthu!=b>u&&s<(m-y)*(u-v)/(b-v)+y&&(d=!d)}return d}},52142:function(o,a,n){var l,f=n(69444),s=n(29023),u=n(87263),d=n(11328),h=n(55968),p=n(10670),g=!1,y=s();function v(m,b,x){var _=l.segments(m),w=l.segments(b),k=x(l.combine(_,w));return l.polygon(k)}l={buildLog:function(m){return m===!0?g=f():m===!1&&(g=!1),g!==!1&&g.list},epsilon:function(m){return y.epsilon(m)},segments:function(m){var b=u(!0,y,g);return m.regions.forEach(b.addRegion),{segments:b.calculate(m.inverted),inverted:m.inverted}},combine:function(m,b){return{combined:u(!1,y,g).calculate(m.segments,m.inverted,b.segments,b.inverted),inverted1:m.inverted,inverted2:b.inverted}},selectUnion:function(m){return{segments:h.union(m.combined,g),inverted:m.inverted1||m.inverted2}},selectIntersect:function(m){return{segments:h.intersect(m.combined,g),inverted:m.inverted1&&m.inverted2}},selectDifference:function(m){return{segments:h.difference(m.combined,g),inverted:m.inverted1&&!m.inverted2}},selectDifferenceRev:function(m){return{segments:h.differenceRev(m.combined,g),inverted:!m.inverted1&&m.inverted2}},selectXor:function(m){return{segments:h.xor(m.combined,g),inverted:m.inverted1!==m.inverted2}},polygon:function(m){return{regions:d(m.segments,y,g),inverted:m.inverted}},polygonFromGeoJSON:function(m){return p.toPolygon(l,m)},polygonToGeoJSON:function(m){return p.fromPolygon(l,y,m)},union:function(m,b){return v(m,b,l.selectUnion)},intersect:function(m,b){return v(m,b,l.selectIntersect)},difference:function(m,b){return v(m,b,l.selectDifference)},differenceRev:function(m,b){return v(m,b,l.selectDifferenceRev)},xor:function(m,b){return v(m,b,l.selectXor)}},typeof window=="object"&&(window.PolyBool=l),o.exports=l},69444:function(o){o.exports=function(){var a,n=0,l=!1;function f(s,u){return a.list.push({type:s,data:u?JSON.parse(JSON.stringify(u)):void 0}),a}return a={list:[],segmentId:function(){return n++},checkIntersection:function(s,u){return f("check",{seg1:s,seg2:u})},segmentChop:function(s,u){return f("div_seg",{seg:s,pt:u}),f("chop",{seg:s,pt:u})},statusRemove:function(s){return f("pop_seg",{seg:s})},segmentUpdate:function(s){return f("seg_update",{seg:s})},segmentNew:function(s,u){return f("new_seg",{seg:s,primary:u})},segmentRemove:function(s){return f("rem_seg",{seg:s})},tempStatus:function(s,u,d){return f("temp_status",{seg:s,above:u,below:d})},rewind:function(s){return f("rewind",{seg:s})},status:function(s,u,d){return f("status",{seg:s,above:u,below:d})},vert:function(s){return s===l?a:(l=s,f("vert",{x:s}))},log:function(s){return typeof s!="string"&&(s=JSON.stringify(s,!1," ")),f("log",{txt:s})},reset:function(){return f("reset")},selected:function(s){return f("selected",{segs:s})},chainStart:function(s){return f("chain_start",{seg:s})},chainRemoveHead:function(s,u){return f("chain_rem_head",{index:s,pt:u})},chainRemoveTail:function(s,u){return f("chain_rem_tail",{index:s,pt:u})},chainNew:function(s,u){return f("chain_new",{pt1:s,pt2:u})},chainMatch:function(s){return f("chain_match",{index:s})},chainClose:function(s){return f("chain_close",{index:s})},chainAddHead:function(s,u){return f("chain_add_head",{index:s,pt:u})},chainAddTail:function(s,u){return f("chain_add_tail",{index:s,pt:u})},chainConnect:function(s,u){return f("chain_con",{index1:s,index2:u})},chainReverse:function(s){return f("chain_rev",{index:s})},chainJoin:function(s,u){return f("chain_join",{index1:s,index2:u})},done:function(){return f("done")}}}},29023:function(o){o.exports=function(a){typeof a!="number"&&(a=1e-10);var n={epsilon:function(l){return typeof l=="number"&&(a=l),a},pointAboveOrOnLine:function(l,f,s){var u=f[0],d=f[1],h=s[0],p=s[1],g=l[0];return(h-u)*(l[1]-d)-(p-d)*(g-u)>=-a},pointBetween:function(l,f,s){var u=l[1]-f[1],d=s[0]-f[0],h=l[0]-f[0],p=s[1]-f[1],g=h*d+u*p;return!(g-a)},pointsSameX:function(l,f){return Math.abs(l[0]-f[0])a!=h-u>a&&(d-y)*(u-v)/(h-v)+y-s>a&&(p=!p),d=y,h=v}return p}};return n}},10670:function(o){var a={toPolygon:function(n,l){function f(d){if(d.length<=0)return n.segments({inverted:!1,regions:[]});function h(y){var v=y.slice(0,y.length-1);return n.segments({inverted:!1,regions:[v]})}for(var p=h(d[0]),g=1;g0})}function w(A,z){var B=A.seg,$=z.seg,j=B.start,N=B.end,E=$.start,W=$.end;u&&u.checkIntersection(B,$);var G=s.linesIntersect(j,N,E,W);if(G===!1){if(!s.pointsCollinear(j,N,E)||s.pointsSame(j,W)||s.pointsSame(N,E))return!1;var L=s.pointsSame(j,E),q=s.pointsSame(N,W);if(L&&q)return z;var H=!L&&s.pointBetween(j,E,W),V=!q&&s.pointBetween(N,E,W);if(L)return V?y(z,N):y(A,W),z;H&&(q||(V?y(z,N):y(A,W)),y(z,j))}else G.alongA===0&&(G.alongB===-1?y(A,E):G.alongB===0?y(A,G.pt):G.alongB===1&&y(A,W)),G.alongB===0&&(G.alongA===-1?y(z,j):G.alongA===0?y(z,G.pt):G.alongA===1&&y(z,N));return!1}for(var k=[];!h.isEmpty();){var T=h.getHead();if(u&&u.vert(T.pt[0]),T.isStart){let A=function(){if(S){var z=w(T,S);if(z)return z}return!!C&&w(T,C)};u&&u.segmentNew(T.seg,T.primary);var M=_(T),S=M.before?M.before.ev:null,C=M.after?M.after.ev:null;u&&u.tempStatus(T.seg,!!S&&S.seg,!!C&&C.seg);var P,D,O=A();if(O&&(f?(D=T.seg.myFill.below===null||T.seg.myFill.above!==T.seg.myFill.below)&&(O.seg.myFill.above=!O.seg.myFill.above):O.seg.otherFill=T.seg.myFill,u&&u.segmentUpdate(O.seg),T.other.remove(),T.remove()),h.getHead()!==T){u&&u.rewind(T.seg);continue}f?(D=T.seg.myFill.below===null||T.seg.myFill.above!==T.seg.myFill.below,T.seg.myFill.below=C?C.seg.myFill.above:m,T.seg.myFill.above=D?!T.seg.myFill.below:T.seg.myFill.below):T.seg.otherFill===null&&(P=C?T.primary===C.primary?C.seg.otherFill.above:C.seg.myFill.above:T.primary?b:m,T.seg.otherFill={above:P,below:P}),u&&u.status(T.seg,!!S&&S.seg,!!C&&C.seg),T.other.status=M.insert(l.node({ev:T}))}else{var R=T.status;if(R===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(x.exists(R.prev)&&x.exists(R.next)&&w(R.prev.ev,R.next.ev),u&&u.statusRemove(R.ev.seg),R.remove(),!T.primary){var F=T.seg.myFill;T.seg.myFill=T.seg.otherFill,T.seg.otherFill=F}k.push(T.seg)}h.getHead().remove()}return u&&u.done(),k}return f?{addRegion:function(m){for(var b,x,_,w=m[m.length-1],k=0;k0&&!this.aborted;){var u=this.ifds_to_read.shift();u.offset&&this.scan_ifd(u.id,u.offset,f)}},l.prototype.read_uint16=function(f){var s=this.input;if(f+2>s.length)throw a("unexpected EOF","EBADDATA");return this.big_endian?256*s[f]+s[f+1]:s[f]+256*s[f+1]},l.prototype.read_uint32=function(f){var s=this.input;if(f+4>s.length)throw a("unexpected EOF","EBADDATA");return this.big_endian?16777216*s[f]+65536*s[f+1]+256*s[f+2]+s[f+3]:s[f]+256*s[f+1]+65536*s[f+2]+16777216*s[f+3]},l.prototype.is_subifd_link=function(f,s){return f===0&&s===34665||f===0&&s===34853||f===34665&&s===40965},l.prototype.exif_format_length=function(f){switch(f){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}},l.prototype.exif_format_read=function(f,s){var u;switch(f){case 1:case 2:return this.input[s];case 6:return(u=this.input[s])|33554430*(128&u);case 3:return this.read_uint16(s);case 8:return(u=this.read_uint16(s))|131070*(32768&u);case 4:return this.read_uint32(s);case 9:return 0|this.read_uint32(s);default:return null}},l.prototype.scan_ifd=function(f,s,u){var d=this.read_uint16(s);s+=2;for(var h=0;hthis.input.length)throw a("unexpected EOF","EBADDATA");for(var _=[],w=b,k=0;k0&&(this.ifds_to_read.push({id:p,offset:_[0]}),x=!0),u({is_big_endian:this.big_endian,ifd:f,tag:p,format:g,count:y,entry_offset:s+this.start,data_length:m,data_offset:b+this.start,value:_,is_subifd_link:x})===!1)return void(this.aborted=!0);s+=12}f===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(s)})},o.exports.ExifParser=l,o.exports.get_orientation=function(f){var s=0;try{return new l(f,0,f.length).each(function(u){if(u.ifd===0&&u.tag===274&&Array.isArray(u.value))return s=u.value[0],!1}),s}catch{return-1}}},76767:function(o,a,n){var l=n(14847).n8,f=n(14847).Ag;function s(y,v){if(y.length<4+v)return null;var m=f(y,v);return y.length>4&15,b=15&y[4],x=y[5]>>4&15,_=l(y,6),w=8,k=0;k<_;k++){var T=l(y,w),M=l(y,w+=2),S=d(y,w+=2,x),C=l(y,w+=x);if(w+=2,M===0&&C===1){var P=d(y,w,m),D=d(y,w+m,b);v.item_loc[T]={length:D,offset:P+S}}w+=C*(m+b)}}function p(y,v){for(var m=l(y,4),b=6,x=0;xM.width||T.width===M.width&&T.height>M.height?T:M}),x=m.reduce(function(T,M){return T.height>M.height||T.height===M.height&&T.width>M.width?T:M}),b.width>x.height||b.width===x.height&&b.height>x.width?b:x),w=1;v.transforms.forEach(function(T){var M={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},S={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(T.type==="imir"&&(w=T.value===0?S[w]:M[w=M[w=S[w]]]),T.type==="irot")for(var C=0;C1&&(_.variants=x.variants),x.orientation&&(_.orientation=x.orientation),x.exif_location&&x.exif_location.offset+x.exif_location.length<=p.length){var w=s(p,x.exif_location.offset),k=p.slice(x.exif_location.offset+w+4,x.exif_location.offset+x.exif_location.length),T=d.get_orientation(k);T>0&&(_.orientation=T)}return _}}}}}}},2504:function(o,a,n){var l=n(14847).eG,f=n(14847).OF,s=n(14847).mP,u=l("BM");o.exports=function(d){if(!(d.length<26)&&f(d,0,u))return{width:s(d,18),height:s(d,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}},47342:function(o,a,n){var l=n(14847).eG,f=n(14847).OF,s=n(14847).mP,u=l("GIF87a"),d=l("GIF89a");o.exports=function(h){if(!(h.length<10)&&(f(h,0,u)||f(h,0,d)))return{width:s(h,6),height:s(h,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}},31355:function(o,a,n){var l=n(14847).mP;o.exports=function(f){var s=l(f,0),u=l(f,2),d=l(f,4);if(s===0&&u===1&&d){for(var h=[],p={width:0,height:0},g=0;gp.width||v>p.height)&&(p=m)}return{width:p.width,height:p.height,variants:h,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}},54261:function(o,a,n){var l=n(14847).n8,f=n(14847).eG,s=n(14847).OF,u=n(71371),d=f("Exif\0\0");o.exports=function(h){if(!(h.length<2)&&h[0]===255&&h[1]===216&&h[2]===255)for(var p=2;;){for(;;){if(h.length-p<2)return;if(h[p++]===255)break}for(var g,y,v=h[p++];v===255;)v=h[p++];if(208<=v&&v<=217||v===1)g=0;else{if(!(192<=v&&v<=254)||h.length-p<2)return;g=l(h,p)-2,p+=2}if(v===217||v===218)return;if(v===225&&g>=10&&s(h,p,d)&&(y=u.get_orientation(h.slice(p+6,p+g))),g>=5&&192<=v&&v<=207&&v!==196&&v!==200&&v!==204){if(h.length-p0&&(m.orientation=y),m}p+=g}}},6303:function(o,a,n){var l=n(14847).eG,f=n(14847).OF,s=n(14847).Ag,u=l(`‰PNG\r  -`),d=l("IHDR");o.exports=function(h){if(!(h.length<24)&&f(h,0,c)&&f(h,12,d))return{width:s(h,16),height:s(h,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}},38689:function(o,a,n){var l=n(14847).eG,f=n(14847).OF,s=n(14847).Ag,c=l("8BPS\0");o.exports=function(d){if(!(d.length<22)&&f(d,0,c))return{width:s(d,18),height:s(d,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}},6881:function(o){function a(p){return typeof p=="number"&&isFinite(p)&&p>0}var n=/<[-_.:a-zA-Z0-9][^>]*>/,l=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,f=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,s=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,c=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,d=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function h(p){return d.test(p)?p.match(d)[0]:"px"}o.exports=function(p){if(function(S){var C,P=0,D=S.length;for(S[0]===239&&S[1]===187&&S[2]===191&&(P=3);P>14&16383),type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function v(g,b){return{width:1+(g[b+6]<<16|g[b+5]<<8|g[b+4]),height:1+(g[b+9]<g.length)){for(;b+8=10?x=x||m(g,b+8):k==="VP8L"&&T>=9?x=x||y(g,b+8):k==="VP8X"&&T>=10?x=x||v(g,b+8):k==="EXIF"&&(_=d.get_orientation(g.slice(b+8,b+8+T)),b=1/0),b+=8+T}else b++;if(x)return _>0&&(x.orientation=_),x}}}},91497:function(o,a,n){o.exports={avif:n(24461),bmp:n(2504),gif:n(47342),ico:n(31355),jpeg:n(54261),png:n(6303),psd:n(38689),svg:n(6881),tiff:n(66278),webp:n(90784)}},33575:function(o,a,n){var l=n(91497);o.exports=function(f){return function(s){for(var c=Object.keys(l),d=0;d1)for(var w=1;w2?"one of ".concat(s," ").concat(f.slice(0,c-1).join(", "),", or ")+f[c-1]:c===2?"one of ".concat(s," ").concat(f[0]," or ").concat(f[1]):"of ".concat(s," ").concat(f[0])}return"of ".concat(s," ").concat(String(f))}n("ERR_INVALID_OPT_VALUE",function(f,s){return'The value "'+s+'" is invalid for option "'+f+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(f,s,c){var d,h,p,m,y;if(typeof s=="string"&&(h="not ",s.substr(0,4)===h)?(d="must not be",s=s.replace(/^not /,"")):d="must be",function(g,b,x){return(x===void 0||x>g.length)&&(x=g.length),g.substring(x-9,x)===b}(f," argument"))p="The ".concat(f," ").concat(d," ").concat(l(s,"type"));else{var v=(typeof y!="number"&&(y=0),y+1>(m=f).length||m.indexOf(".",y)===-1?"argument":"property");p='The "'.concat(f,'" ').concat(v," ").concat(d," ").concat(l(s,"type"))}return p+". Received type ".concat(typeof c)},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(f){return"The "+f+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(f){return"Cannot call "+f+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(f){return"Unknown encoding: "+f},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),o.exports.q=a},37865:function(o,a,n){var l=n(90386),f=Object.keys||function(g){var b=[];for(var x in g)b.push(x);return b};o.exports=m;var s=n(40410),c=n(37493);n(42018)(m,s);for(var d=f(c.prototype),h=0;h0)if(typeof U=="string"||re.objectMode||Object.getPrototypeOf(U)===h.prototype||(U=function(ie){return h.from(ie)}(U)),Y)re.endEmitted?C(ee,new S):F(ee,re,U,!0);else if(re.ended)C(ee,new T);else{if(re.destroyed)return!1;re.reading=!1,re.decoder&&!Q?(U=re.decoder.write(U),re.objectMode||U.length!==0?F(ee,re,U,!1):j(ee,re)):F(ee,re,U,!1)}else Y||(re.reading=!1,j(ee,re));return!re.ended&&(re.lengthU.highWaterMark&&(U.highWaterMark=function(Q){return Q>=A?Q=A:(Q--,Q|=Q>>>1,Q|=Q>>>2,Q|=Q>>>4,Q|=Q>>>8,Q|=Q>>>16,Q++),Q}(ee)),ee<=U.length?ee:U.ended?U.length:(U.needReadable=!0,0))}function B(ee){var U=ee._readableState;s("emitReadable",U.needReadable,U.emittedReadable),U.needReadable=!1,U.emittedReadable||(s("emitReadable",U.flowing),U.emittedReadable=!0,f.nextTick($,ee))}function $(ee){var U=ee._readableState;s("emitReadable_",U.destroyed,U.length,U.ended),U.destroyed||!U.length&&!U.ended||(ee.emit("readable"),U.emittedReadable=!1),U.needReadable=!U.flowing&&!U.ended&&U.length<=U.highWaterMark,L(ee)}function j(ee,U){U.readingMore||(U.readingMore=!0,f.nextTick(N,ee,U))}function N(ee,U){for(;!U.reading&&!U.ended&&(U.length0,U.resumeScheduled&&!U.paused?U.flowing=!0:ee.listenerCount("data")>0&&ee.resume()}function W(ee){s("readable nexttick read 0"),ee.read(0)}function G(ee,U){s("resume",U.reading),U.reading||ee.read(0),U.resumeScheduled=!1,ee.emit("resume"),L(ee),U.flowing&&!U.reading&&ee.read(0)}function L(ee){var U=ee._readableState;for(s("flow",U.flowing);U.flowing&&ee.read()!==null;);}function q(ee,U){return U.length===0?null:(U.objectMode?Q=U.buffer.shift():!ee||ee>=U.length?(Q=U.decoder?U.buffer.join(""):U.buffer.length===1?U.buffer.first():U.buffer.concat(U.length),U.buffer.clear()):Q=U.buffer.consume(ee,U.decoder),Q);var Q}function H(ee){var U=ee._readableState;s("endReadable",U.endEmitted),U.endEmitted||(U.ended=!0,f.nextTick(V,U,ee))}function V(ee,U){if(s("endReadableNT",ee.endEmitted,ee.length),!ee.endEmitted&&ee.length===0&&(ee.endEmitted=!0,U.readable=!1,U.emit("end"),ee.autoDestroy)){var Q=U._writableState;(!Q||Q.autoDestroy&&Q.finished)&&U.destroy()}}function te(ee,U){for(var Q=0,Y=ee.length;Q=U.highWaterMark:U.length>0)||U.ended))return s("read: emitReadable",U.length,U.ended),U.length===0&&U.ended?H(this):B(this),null;if((ee=z(ee,U))===0&&U.ended)return U.length===0&&H(this),null;var Y,Z=U.needReadable;return s("need readable",Z),(U.length===0||U.length-ee0?q(ee,U):null)===null?(U.needReadable=U.length<=U.highWaterMark,ee=0):(U.length-=ee,U.awaitDrain=0),U.length===0&&(U.ended||(U.needReadable=!0),Q!==ee&&U.ended&&H(this)),Y!==null&&this.emit("data",Y),Y},O.prototype._read=function(ee){C(this,new M("_read()"))},O.prototype.pipe=function(ee,U){var Q=this,Y=this._readableState;switch(Y.pipesCount){case 0:Y.pipes=ee;break;case 1:Y.pipes=[Y.pipes,ee];break;default:Y.pipes.push(ee)}Y.pipesCount+=1,s("pipe count=%d opts=%j",Y.pipesCount,U);var Z=U&&U.end===!1||ee===f.stdout||ee===f.stderr?Se:X;function X(){s("onend"),ee.end()}Y.endEmitted?f.nextTick(Z):Q.once("end",Z),ee.on("unpipe",function Oe(Me,ce){s("onunpipe"),Me===Q&&ce&&ce.hasUnpiped===!1&&(ce.hasUnpiped=!0,s("cleanup"),ee.removeListener("close",pe),ee.removeListener("finish",Te),ee.removeListener("drain",re),ee.removeListener("error",se),ee.removeListener("unpipe",Oe),Q.removeListener("end",X),Q.removeListener("end",Se),Q.removeListener("data",le),ie=!0,!Y.awaitDrain||ee._writableState&&!ee._writableState.needDrain||re())});var re=function(Oe){return function(){var Me=Oe._readableState;s("pipeOnDrain",Me.awaitDrain),Me.awaitDrain&&Me.awaitDrain--,Me.awaitDrain===0&&c(Oe,"data")&&(Me.flowing=!0,L(Oe))}}(Q);ee.on("drain",re);var ie=!1;function le(Oe){s("ondata");var Me=ee.write(Oe);s("dest.write",Me),Me===!1&&((Y.pipesCount===1&&Y.pipes===ee||Y.pipesCount>1&&te(Y.pipes,ee)!==-1)&&!ie&&(s("false write response, pause",Y.awaitDrain),Y.awaitDrain++),Q.pause())}function se(Oe){s("onerror",Oe),Se(),ee.removeListener("error",se),c(ee,"error")===0&&C(ee,Oe)}function pe(){ee.removeListener("finish",Te),Se()}function Te(){s("onfinish"),ee.removeListener("close",pe),Se()}function Se(){s("unpipe"),Q.unpipe(ee)}return Q.on("data",le),function(Oe,Me,ce){if(typeof Oe.prependListener=="function")return Oe.prependListener(Me,ce);Oe._events&&Oe._events[Me]?Array.isArray(Oe._events[Me])?Oe._events[Me].unshift(ce):Oe._events[Me]=[ce,Oe._events[Me]]:Oe.on(Me,ce)}(ee,"error",se),ee.once("close",pe),ee.once("finish",Te),ee.emit("pipe",Q),Y.flowing||(s("pipe resume"),Q.resume()),ee},O.prototype.unpipe=function(ee){var U=this._readableState,Q={hasUnpiped:!1};if(U.pipesCount===0)return this;if(U.pipesCount===1)return ee&&ee!==U.pipes||(ee||(ee=U.pipes),U.pipes=null,U.pipesCount=0,U.flowing=!1,ee&&ee.emit("unpipe",this,Q)),this;if(!ee){var Y=U.pipes,Z=U.pipesCount;U.pipes=null,U.pipesCount=0,U.flowing=!1;for(var X=0;X0,Y.flowing!==!1&&this.resume()):ee==="readable"&&(Y.endEmitted||Y.readableListening||(Y.readableListening=Y.needReadable=!0,Y.flowing=!1,Y.emittedReadable=!1,s("on readable",Y.length,Y.reading),Y.length?B(this):Y.reading||f.nextTick(W,this))),Q},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(ee,U){var Q=d.prototype.removeListener.call(this,ee,U);return ee==="readable"&&f.nextTick(E,this),Q},O.prototype.removeAllListeners=function(ee){var U=d.prototype.removeAllListeners.apply(this,arguments);return ee!=="readable"&&ee!==void 0||f.nextTick(E,this),U},O.prototype.resume=function(){var ee=this._readableState;return ee.flowing||(s("resume"),ee.flowing=!ee.readableListening,function(U,Q){Q.resumeScheduled||(Q.resumeScheduled=!0,f.nextTick(G,U,Q))}(this,ee)),ee.paused=!1,this},O.prototype.pause=function(){return s("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(s("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(ee){var U=this,Q=this._readableState,Y=!1;for(var Z in ee.on("end",function(){if(s("wrapped end"),Q.decoder&&!Q.ended){var re=Q.decoder.end();re&&re.length&&U.push(re)}U.push(null)}),ee.on("data",function(re){s("wrapped data"),Q.decoder&&(re=Q.decoder.write(re)),Q.objectMode&&re==null||(Q.objectMode||re&&re.length)&&(U.push(re)||(Y=!0,ee.pause()))}),ee)this[Z]===void 0&&typeof ee[Z]=="function"&&(this[Z]=function(re){return function(){return ee[re].apply(ee,arguments)}}(Z));for(var X=0;X-1))throw new S(j);return this._writableState.defaultEncoding=j,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(j,N,E){E(new x("_write()"))},O.prototype._writev=null,O.prototype.end=function(j,N,E){var W=this._writableState;return typeof j=="function"?(E=j,j=null,N=null):typeof N=="function"&&(E=N,N=null),j!=null&&this.write(j,N),W.corked&&(W.corked=1,this.uncork()),W.ending||function(G,L,q){L.ending=!0,$(G,L),q&&(L.finished?f.nextTick(q):G.once("finish",q)),L.ended=!0,G.writable=!1}(this,W,E),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(j){this._writableState&&(this._writableState.destroyed=j)}}),O.prototype.destroy=y.destroy,O.prototype._undestroy=y.undestroy,O.prototype._destroy=function(j,N){N(j)}},68221:function(o,a,n){var l,f=n(90386);function s(T,M,S){return M in T?Object.defineProperty(T,M,{value:S,enumerable:!0,configurable:!0,writable:!0}):T[M]=S,T}var c=n(12726),d=Symbol("lastResolve"),h=Symbol("lastReject"),p=Symbol("error"),m=Symbol("ended"),y=Symbol("lastPromise"),v=Symbol("handlePromise"),g=Symbol("stream");function b(T,M){return{value:T,done:M}}function x(T){var M=T[d];if(M!==null){var S=T[g].read();S!==null&&(T[y]=null,T[d]=null,T[h]=null,M(b(S,!1)))}}function _(T){f.nextTick(x,T)}var w=Object.getPrototypeOf(function(){}),k=Object.setPrototypeOf((s(l={get stream(){return this[g]},next:function(){var T=this,M=this[p];if(M!==null)return Promise.reject(M);if(this[m])return Promise.resolve(b(void 0,!0));if(this[g].destroyed)return new Promise(function(D,O){f.nextTick(function(){T[p]?O(T[p]):D(b(void 0,!0))})});var S,C=this[y];if(C)S=new Promise(function(D,O){return function(R,F){D.then(function(){O[m]?R(b(void 0,!0)):O[v](R,F)},F)}}(C,this));else{var P=this[g].read();if(P!==null)return Promise.resolve(b(P,!1));S=new Promise(this[v])}return this[y]=S,S}},Symbol.asyncIterator,function(){return this}),s(l,"return",function(){var T=this;return new Promise(function(M,S){T[g].destroy(null,function(C){C?S(C):M(b(void 0,!0))})})}),l),w);o.exports=function(T){var M,S=Object.create(k,(s(M={},g,{value:T,writable:!0}),s(M,d,{value:null,writable:!0}),s(M,h,{value:null,writable:!0}),s(M,p,{value:null,writable:!0}),s(M,m,{value:T._readableState.endEmitted,writable:!0}),s(M,v,{value:function(C,P){var D=S[g].read();D?(S[y]=null,S[d]=null,S[h]=null,C(b(D,!1))):(S[d]=C,S[h]=P)},writable:!0}),M));return S[y]=null,c(T,function(C){if(C&&C.code!=="ERR_STREAM_PREMATURE_CLOSE"){var P=S[h];return P!==null&&(S[y]=null,S[d]=null,S[h]=null,P(C)),void(S[p]=C)}var D=S[d];D!==null&&(S[y]=null,S[d]=null,S[h]=null,D(b(void 0,!0))),S[m]=!0}),T.on("readable",_.bind(null,S)),S}},31125:function(o,a,n){function l(p,m){var y=Object.keys(p);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(p);m&&(v=v.filter(function(g){return Object.getOwnPropertyDescriptor(p,g).enumerable})),y.push.apply(y,v)}return y}function f(p,m,y){return m in p?Object.defineProperty(p,m,{value:y,enumerable:!0,configurable:!0,writable:!0}):p[m]=y,p}function s(p,m){for(var y=0;y0?this.tail.next=g:this.head=g,this.tail=g,++this.length}},{key:"unshift",value:function(v){var g={data:v,next:this.head};this.length===0&&(this.tail=g),this.head=g,++this.length}},{key:"shift",value:function(){if(this.length!==0){var v=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,v}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(v){if(this.length===0)return"";for(var g=this.head,b=""+g.data;g=g.next;)b+=v+g.data;return b}},{key:"concat",value:function(v){if(this.length===0)return c.alloc(0);for(var g,b,x,_=c.allocUnsafe(v>>>0),w=this.head,k=0;w;)g=w.data,b=_,x=k,c.prototype.copy.call(g,b,x),k+=w.data.length,w=w.next;return _}},{key:"consume",value:function(v,g){var b;return v_.length?_.length:v;if(w===_.length?x+=_:x+=_.slice(0,v),(v-=w)==0){w===_.length?(++b,g.next?this.head=g.next:this.head=this.tail=null):(this.head=g,g.data=_.slice(w));break}++b}return this.length-=b,x}},{key:"_getBuffer",value:function(v){var g=c.allocUnsafe(v),b=this.head,x=1;for(b.data.copy(g),v-=b.data.length;b=b.next;){var _=b.data,w=v>_.length?_.length:v;if(_.copy(g,g.length-v,0,w),(v-=w)==0){w===_.length?(++x,b.next?this.head=b.next:this.head=this.tail=null):(this.head=b,b.data=_.slice(w));break}++x}return this.length-=x,g}},{key:h,value:function(v,g){return d(this,function(b){for(var x=1;x0,function(T){g||(g=T),T&&x.forEach(h),k||(x.forEach(h),b(g))})});return y.reduce(p)}},56306:function(o,a,n){var l=n(74322).q.ERR_INVALID_OPT_VALUE;o.exports={getHighWaterMark:function(f,s,c,d){var h=function(p,m,y){return p.highWaterMark!=null?p.highWaterMark:m?p[y]:null}(s,d,c);if(h!=null){if(!isFinite(h)||Math.floor(h)!==h||h<0)throw new l(d?c:"highWaterMark",h);return Math.floor(h)}return f.objectMode?16:16384}}},71405:function(o,a,n){o.exports=n(15398).EventEmitter},68019:function(o,a,n){var l=n(71665).Buffer,f=l.isEncoding||function(b){switch((b=""+b)&&b.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(b){var x;switch(this.encoding=function(_){var w=function(k){if(!k)return"utf8";for(var T;;)switch(k){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return k;default:if(T)return;k=(""+k).toLowerCase(),T=!0}}(_);if(typeof w!="string"&&(l.isEncoding===f||!f(_)))throw new Error("Unknown encoding: "+_);return w||_}(b),this.encoding){case"utf16le":this.text=h,this.end=p,x=4;break;case"utf8":this.fillLast=d,x=4;break;case"base64":this.text=m,this.end=y,x=3;break;default:return this.write=v,void(this.end=g)}this.lastNeed=0,this.lastTotal=0,this.lastChar=l.allocUnsafe(x)}function c(b){return b<=127?0:b>>5==6?2:b>>4==14?3:b>>3==30?4:b>>6==2?-1:-2}function d(b){var x=this.lastTotal-this.lastNeed,_=function(w,k,T){if((192&k[0])!=128)return w.lastNeed=0,"�";if(w.lastNeed>1&&k.length>1){if((192&k[1])!=128)return w.lastNeed=1,"�";if(w.lastNeed>2&&k.length>2&&(192&k[2])!=128)return w.lastNeed=2,"�"}}(this,b);return _!==void 0?_:this.lastNeed<=b.length?(b.copy(this.lastChar,x,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(b.copy(this.lastChar,x,0,b.length),void(this.lastNeed-=b.length))}function h(b,x){if((b.length-x)%2==0){var _=b.toString("utf16le",x);if(_){var w=_.charCodeAt(_.length-1);if(w>=55296&&w<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=b[b.length-2],this.lastChar[1]=b[b.length-1],_.slice(0,-1)}return _}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=b[b.length-1],b.toString("utf16le",x,b.length-1)}function p(b){var x=b&&b.length?this.write(b):"";if(this.lastNeed){var _=this.lastTotal-this.lastNeed;return x+this.lastChar.toString("utf16le",0,_)}return x}function m(b,x){var _=(b.length-x)%3;return _===0?b.toString("base64",x):(this.lastNeed=3-_,this.lastTotal=3,_===1?this.lastChar[0]=b[b.length-1]:(this.lastChar[0]=b[b.length-2],this.lastChar[1]=b[b.length-1]),b.toString("base64",x,b.length-_))}function y(b){var x=b&&b.length?this.write(b):"";return this.lastNeed?x+this.lastChar.toString("base64",0,3-this.lastNeed):x}function v(b){return b.toString(this.encoding)}function g(b){return b&&b.length?this.write(b):""}a.s=s,s.prototype.write=function(b){if(b.length===0)return"";var x,_;if(this.lastNeed){if((x=this.fillLast(b))===void 0)return"";_=this.lastNeed,this.lastNeed=0}else _=0;return _=0?(C>0&&(k.lastNeed=C-1),C):--S=0?(C>0&&(k.lastNeed=C-2),C):--S=0?(C>0&&(C===2?C=0:k.lastNeed=C-3),C):0}(this,b,x);if(!this.lastNeed)return b.toString("utf8",x);this.lastTotal=_;var w=b.length-(_-this.lastNeed);return b.copy(this.lastChar,0,w),b.toString("utf8",x,w)},s.prototype.fillLast=function(b){if(this.lastNeed<=b.length)return b.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);b.copy(this.lastChar,this.lastTotal-this.lastNeed,0,b.length),this.lastNeed-=b.length}},90715:function(o,a,n){var l=n(32791),f=n(41633)("stream-parser");o.exports=function(k){var T=k&&typeof k._transform=="function",M=k&&typeof k._write=="function";if(!T&&!M)throw new Error("must pass a Writable or Transform stream in");f("extending Parser into stream"),k._bytes=m,k._skipBytes=y,T&&(k._passthrough=v),T?k._transform=b:k._write=g};var s=-1,c=0,d=1,h=2;function p(k){f("initializing parser stream"),k._parserBytesLeft=0,k._parserBuffers=[],k._parserBuffered=0,k._parserState=s,k._parserCallback=null,typeof k.push=="function"&&(k._parserOutput=k.push.bind(k)),k._parserInit=!0}function m(k,T){l(!this._parserCallback,'there is already a "callback" set!'),l(isFinite(k)&&k>0,'can only buffer a finite number of bytes > 0, got "'+k+'"'),this._parserInit||p(this),f("buffering %o bytes",k),this._parserBytesLeft=k,this._parserCallback=T,this._parserState=c}function y(k,T){l(!this._parserCallback,'there is already a "callback" set!'),l(k>0,'can only skip > 0 bytes, got "'+k+'"'),this._parserInit||p(this),f("skipping %o bytes",k),this._parserBytesLeft=k,this._parserCallback=T,this._parserState=d}function v(k,T){l(!this._parserCallback,'There is already a "callback" set!'),l(k>0,'can only pass through > 0 bytes, got "'+k+'"'),this._parserInit||p(this),f("passing through %o bytes",k),this._parserBytesLeft=k,this._parserCallback=T,this._parserState=h}function g(k,T,M){this._parserInit||p(this),f("write(%o bytes)",k.length),typeof T=="function"&&(M=T),_(this,k,null,M)}function b(k,T,M){this._parserInit||p(this),f("transform(%o bytes)",k.length),typeof T!="function"&&(T=this._parserOutput),_(this,k,T,M)}function x(k,T,M,S){if(k._parserBytesLeft-=T.length,f("%o bytes left for stream piece",k._parserBytesLeft),k._parserState===c?(k._parserBuffers.push(T),k._parserBuffered+=T.length):k._parserState===h&&M(T),k._parserBytesLeft!==0)return S;var C=k._parserCallback;if(C&&k._parserState===c&&k._parserBuffers.length>1&&(T=Buffer.concat(k._parserBuffers,k._parserBuffered)),k._parserState!==c&&(T=null),k._parserCallback=null,k._parserBuffered=0,k._parserState=s,k._parserBuffers.splice(0),C){var P=[];T&&P.push(T),M&&P.push(M);var D=C.length>P.length;D&&P.push(w(S));var O=C.apply(k,P);if(!D||S===O)return S}}var _=w(function k(T,M,S,C){return T._parserBytesLeft<=0?C(new Error("got data but not currently parsing anything")):M.length<=T._parserBytesLeft?function(){return x(T,M,S,C)}:function(){var P=M.slice(0,T._parserBytesLeft);return x(T,P,S,function(D){return D?C(D):M.length>P.length?function(){return k(T,M.slice(P.length),S,C)}:void 0})}});function w(k){return function(){for(var T=k.apply(this,arguments);typeof T=="function";)T=T();return T}}},41633:function(o,a,n){var l=n(90386);function f(){var s;try{s=a.storage.debug}catch{}return!s&&l!==void 0&&"env"in l&&(s=l.env.DEBUG),s}(a=o.exports=n(74469)).log=function(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},a.formatArgs=function(s){var c=this.useColors;if(s[0]=(c?"%c":"")+this.namespace+(c?" %c":" ")+s[0]+(c?"%c ":" ")+"+"+a.humanize(this.diff),c){var d="color: "+this.color;s.splice(1,0,d,"color: inherit");var h=0,p=0;s[0].replace(/%[a-zA-Z%]/g,function(m){m!=="%%"&&(h++,m==="%c"&&(p=h))}),s.splice(p,0,d)}},a.save=function(s){try{s==null?a.storage.removeItem("debug"):a.storage.debug=s}catch{}},a.load=f,a.useColors=function(){return!(typeof window>"u"||!window.process||window.process.type!=="renderer")||typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},a.storage=typeof chrome<"u"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch{}}(),a.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],a.formatters.j=function(s){try{return JSON.stringify(s)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}},a.enable(f())},74469:function(o,a,n){var l;function f(s){function c(){if(c.enabled){var d=c,h=+new Date,p=h-(l||h);d.diff=p,d.prev=l,d.curr=h,l=h;for(var m=new Array(arguments.length),y=0;y0)return function(m){if(!((m=String(m)).length>100)){var y=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(m);if(y){var v=parseFloat(y[1]);switch((y[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*v;case"days":case"day":case"d":return v*f;case"hours":case"hour":case"hrs":case"hr":case"h":return v*l;case"minutes":case"minute":case"mins":case"min":case"m":return v*n;case"seconds":case"second":case"secs":case"sec":case"s":return v*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return v;default:return}}}}(c);if(p==="number"&&isNaN(c)===!1)return d.long?s(h=c,f,"day")||s(h,l,"hour")||s(h,n,"minute")||s(h,a,"second")||h+" ms":function(m){return m>=f?Math.round(m/f)+"d":m>=l?Math.round(m/l)+"h":m>=n?Math.round(m/n)+"m":m>=a?Math.round(m/a)+"s":m+"ms"}(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))}},84267:function(o,a,n){var l;(function(f){var s=/^\s+/,c=/\s+$/,d=0,h=f.round,p=f.min,m=f.max,y=f.random;function v(Y,Z){if(Z=Z||{},(Y=Y||"")instanceof v)return Y;if(!(this instanceof v))return new v(Y,Z);var X=function(re){var ie,le,se,pe={r:0,g:0,b:0},Te=1,Se=null,Oe=null,Me=null,ce=!1,ye=!1;return typeof re=="string"&&(re=function(J){J=J.replace(s,"").replace(c,"").toLowerCase();var ne,de=!1;if(B[J])J=B[J],de=!0;else if(J=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(ne=U.rgb.exec(J))?{r:ne[1],g:ne[2],b:ne[3]}:(ne=U.rgba.exec(J))?{r:ne[1],g:ne[2],b:ne[3],a:ne[4]}:(ne=U.hsl.exec(J))?{h:ne[1],s:ne[2],l:ne[3]}:(ne=U.hsla.exec(J))?{h:ne[1],s:ne[2],l:ne[3],a:ne[4]}:(ne=U.hsv.exec(J))?{h:ne[1],s:ne[2],v:ne[3]}:(ne=U.hsva.exec(J))?{h:ne[1],s:ne[2],v:ne[3],a:ne[4]}:(ne=U.hex8.exec(J))?{r:W(ne[1]),g:W(ne[2]),b:W(ne[3]),a:H(ne[4]),format:de?"name":"hex8"}:(ne=U.hex6.exec(J))?{r:W(ne[1]),g:W(ne[2]),b:W(ne[3]),format:de?"name":"hex"}:(ne=U.hex4.exec(J))?{r:W(ne[1]+""+ne[1]),g:W(ne[2]+""+ne[2]),b:W(ne[3]+""+ne[3]),a:H(ne[4]+""+ne[4]),format:de?"name":"hex8"}:!!(ne=U.hex3.exec(J))&&{r:W(ne[1]+""+ne[1]),g:W(ne[2]+""+ne[2]),b:W(ne[3]+""+ne[3]),format:de?"name":"hex"}}(re)),typeof re=="object"&&(Q(re.r)&&Q(re.g)&&Q(re.b)?(ie=re.r,le=re.g,se=re.b,pe={r:255*N(ie,255),g:255*N(le,255),b:255*N(se,255)},ce=!0,ye=String(re.r).substr(-1)==="%"?"prgb":"rgb"):Q(re.h)&&Q(re.s)&&Q(re.v)?(Se=L(re.s),Oe=L(re.v),pe=function(J,ne,de){J=6*N(J,360),ne=N(ne,100),de=N(de,100);var xe=f.floor(J),ue=J-xe,ge=de*(1-ne),be=de*(1-ue*ne),we=de*(1-(1-ue)*ne),ke=xe%6;return{r:255*[de,be,ge,ge,we,de][ke],g:255*[we,de,de,be,ge,ge][ke],b:255*[ge,ge,we,de,de,be][ke]}}(re.h,Se,Oe),ce=!0,ye="hsv"):Q(re.h)&&Q(re.s)&&Q(re.l)&&(Se=L(re.s),Me=L(re.l),pe=function(J,ne,de){var xe,ue,ge;function be(Ae,Ee,De){return De<0&&(De+=1),De>1&&(De-=1),De<1/6?Ae+6*(Ee-Ae)*De:De<.5?Ee:De<2/3?Ae+(Ee-Ae)*(2/3-De)*6:Ae}if(J=N(J,360),ne=N(ne,100),de=N(de,100),ne===0)xe=ue=ge=de;else{var we=de<.5?de*(1+ne):de+ne-de*ne,ke=2*de-we;xe=be(ke,we,J+1/3),ue=be(ke,we,J),ge=be(ke,we,J-1/3)}return{r:255*xe,g:255*ue,b:255*ge}}(re.h,Se,Me),ce=!0,ye="hsl"),re.hasOwnProperty("a")&&(Te=re.a)),Te=j(Te),{ok:ce,format:re.format||ye,r:p(255,m(pe.r,0)),g:p(255,m(pe.g,0)),b:p(255,m(pe.b,0)),a:Te}}(Y);this._originalInput=Y,this._r=X.r,this._g=X.g,this._b=X.b,this._a=X.a,this._roundA=h(100*this._a)/100,this._format=Z.format||X.format,this._gradientType=Z.gradientType,this._r<1&&(this._r=h(this._r)),this._g<1&&(this._g=h(this._g)),this._b<1&&(this._b=h(this._b)),this._ok=X.ok,this._tc_id=d++}function g(Y,Z,X){Y=N(Y,255),Z=N(Z,255),X=N(X,255);var re,ie,le=m(Y,Z,X),se=p(Y,Z,X),pe=(le+se)/2;if(le==se)re=ie=0;else{var Te=le-se;switch(ie=pe>.5?Te/(2-le-se):Te/(le+se),le){case Y:re=(Z-X)/Te+(Z>1)+720)%360;--Z;)re.h=(re.h+ie)%360,le.push(v(re));return le}function z(Y,Z){Z=Z||6;for(var X=v(Y).toHsv(),re=X.h,ie=X.s,le=X.v,se=[],pe=1/Z;Z--;)se.push(v({h:re,s:ie,v:le})),le=(le+pe)%1;return se}v.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Y=this.toRgb();return(299*Y.r+587*Y.g+114*Y.b)/1e3},getLuminance:function(){var Y,Z,X,re=this.toRgb();return Y=re.r/255,Z=re.g/255,X=re.b/255,.2126*(Y<=.03928?Y/12.92:f.pow((Y+.055)/1.055,2.4))+.7152*(Z<=.03928?Z/12.92:f.pow((Z+.055)/1.055,2.4))+.0722*(X<=.03928?X/12.92:f.pow((X+.055)/1.055,2.4))},setAlpha:function(Y){return this._a=j(Y),this._roundA=h(100*this._a)/100,this},toHsv:function(){var Y=b(this._r,this._g,this._b);return{h:360*Y.h,s:Y.s,v:Y.v,a:this._a}},toHsvString:function(){var Y=b(this._r,this._g,this._b),Z=h(360*Y.h),X=h(100*Y.s),re=h(100*Y.v);return this._a==1?"hsv("+Z+", "+X+"%, "+re+"%)":"hsva("+Z+", "+X+"%, "+re+"%, "+this._roundA+")"},toHsl:function(){var Y=g(this._r,this._g,this._b);return{h:360*Y.h,s:Y.s,l:Y.l,a:this._a}},toHslString:function(){var Y=g(this._r,this._g,this._b),Z=h(360*Y.h),X=h(100*Y.s),re=h(100*Y.l);return this._a==1?"hsl("+Z+", "+X+"%, "+re+"%)":"hsla("+Z+", "+X+"%, "+re+"%, "+this._roundA+")"},toHex:function(Y){return x(this._r,this._g,this._b,Y)},toHexString:function(Y){return"#"+this.toHex(Y)},toHex8:function(Y){return function(Z,X,re,ie,le){var se=[G(h(Z).toString(16)),G(h(X).toString(16)),G(h(re).toString(16)),G(q(ie))];return le&&se[0].charAt(0)==se[0].charAt(1)&&se[1].charAt(0)==se[1].charAt(1)&&se[2].charAt(0)==se[2].charAt(1)&&se[3].charAt(0)==se[3].charAt(1)?se[0].charAt(0)+se[1].charAt(0)+se[2].charAt(0)+se[3].charAt(0):se.join("")}(this._r,this._g,this._b,this._a,Y)},toHex8String:function(Y){return"#"+this.toHex8(Y)},toRgb:function(){return{r:h(this._r),g:h(this._g),b:h(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+h(this._r)+", "+h(this._g)+", "+h(this._b)+")":"rgba("+h(this._r)+", "+h(this._g)+", "+h(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:h(100*N(this._r,255))+"%",g:h(100*N(this._g,255))+"%",b:h(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+h(100*N(this._r,255))+"%, "+h(100*N(this._g,255))+"%, "+h(100*N(this._b,255))+"%)":"rgba("+h(100*N(this._r,255))+"%, "+h(100*N(this._g,255))+"%, "+h(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&($[x(this._r,this._g,this._b,!0)]||!1)},toFilter:function(Y){var Z="#"+_(this._r,this._g,this._b,this._a),X=Z,re=this._gradientType?"GradientType = 1, ":"";if(Y){var ie=v(Y);X="#"+_(ie._r,ie._g,ie._b,ie._a)}return"progid:DXImageTransform.Microsoft.gradient("+re+"startColorstr="+Z+",endColorstr="+X+")"},toString:function(Y){var Z=!!Y;Y=Y||this._format;var X=!1,re=this._a<1&&this._a>=0;return Z||!re||Y!=="hex"&&Y!=="hex6"&&Y!=="hex3"&&Y!=="hex4"&&Y!=="hex8"&&Y!=="name"?(Y==="rgb"&&(X=this.toRgbString()),Y==="prgb"&&(X=this.toPercentageRgbString()),Y!=="hex"&&Y!=="hex6"||(X=this.toHexString()),Y==="hex3"&&(X=this.toHexString(!0)),Y==="hex4"&&(X=this.toHex8String(!0)),Y==="hex8"&&(X=this.toHex8String()),Y==="name"&&(X=this.toName()),Y==="hsl"&&(X=this.toHslString()),Y==="hsv"&&(X=this.toHsvString()),X||this.toHexString()):Y==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return v(this.toString())},_applyModification:function(Y,Z){var X=Y.apply(null,[this].concat([].slice.call(Z)));return this._r=X._r,this._g=X._g,this._b=X._b,this.setAlpha(X._a),this},lighten:function(){return this._applyModification(M,arguments)},brighten:function(){return this._applyModification(S,arguments)},darken:function(){return this._applyModification(C,arguments)},desaturate:function(){return this._applyModification(w,arguments)},saturate:function(){return this._applyModification(k,arguments)},greyscale:function(){return this._applyModification(T,arguments)},spin:function(){return this._applyModification(P,arguments)},_applyCombination:function(Y,Z){return Y.apply(null,[this].concat([].slice.call(Z)))},analogous:function(){return this._applyCombination(A,arguments)},complement:function(){return this._applyCombination(D,arguments)},monochromatic:function(){return this._applyCombination(z,arguments)},splitcomplement:function(){return this._applyCombination(F,arguments)},triad:function(){return this._applyCombination(O,arguments)},tetrad:function(){return this._applyCombination(R,arguments)}},v.fromRatio=function(Y,Z){if(typeof Y=="object"){var X={};for(var re in Y)Y.hasOwnProperty(re)&&(X[re]=re==="a"?Y[re]:L(Y[re]));Y=X}return v(Y,Z)},v.equals=function(Y,Z){return!(!Y||!Z)&&v(Y).toRgbString()==v(Z).toRgbString()},v.random=function(){return v.fromRatio({r:y(),g:y(),b:y()})},v.mix=function(Y,Z,X){X=X===0?0:X||50;var re=v(Y).toRgb(),ie=v(Z).toRgb(),le=X/100;return v({r:(ie.r-re.r)*le+re.r,g:(ie.g-re.g)*le+re.g,b:(ie.b-re.b)*le+re.b,a:(ie.a-re.a)*le+re.a})},v.readability=function(Y,Z){var X=v(Y),re=v(Z);return(f.max(X.getLuminance(),re.getLuminance())+.05)/(f.min(X.getLuminance(),re.getLuminance())+.05)},v.isReadable=function(Y,Z,X){var re,ie,le,se,pe,Te=v.readability(Y,Z);switch(ie=!1,(le=X,(se=((le=le||{level:"AA",size:"small"}).level||"AA").toUpperCase())!=="AA"&&se!=="AAA"&&(se="AA"),(pe=(le.size||"small").toLowerCase())!=="small"&&pe!=="large"&&(pe="small"),re={level:se,size:pe}).level+re.size){case"AAsmall":case"AAAlarge":ie=Te>=4.5;break;case"AAlarge":ie=Te>=3;break;case"AAAsmall":ie=Te>=7}return ie},v.mostReadable=function(Y,Z,X){var re,ie,le,se,pe=null,Te=0;ie=(X=X||{}).includeFallbackColors,le=X.level,se=X.size;for(var Se=0;SeTe&&(Te=re,pe=v(Z[Se]));return v.isReadable(Y,pe,{level:le,size:se})||!ie?pe:(X.includeFallbackColors=!1,v.mostReadable(Y,["#fff","#000"],X))};var B=v.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},$=v.hexNames=function(Y){var Z={};for(var X in Y)Y.hasOwnProperty(X)&&(Z[Y[X]]=X);return Z}(B);function j(Y){return Y=parseFloat(Y),(isNaN(Y)||Y<0||Y>1)&&(Y=1),Y}function N(Y,Z){(function(re){return typeof re=="string"&&re.indexOf(".")!=-1&&parseFloat(re)===1})(Y)&&(Y="100%");var X=function(re){return typeof re=="string"&&re.indexOf("%")!=-1}(Y);return Y=p(Z,m(0,parseFloat(Y))),X&&(Y=parseInt(Y*Z,10)/100),f.abs(Y-Z)<1e-6?1:Y%Z/parseFloat(Z)}function E(Y){return p(1,m(0,Y))}function W(Y){return parseInt(Y,16)}function G(Y){return Y.length==1?"0"+Y:""+Y}function L(Y){return Y<=1&&(Y=100*Y+"%"),Y}function q(Y){return f.round(255*parseFloat(Y)).toString(16)}function H(Y){return W(Y)/255}var V,te,ee,U=(te="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",ee="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+te),rgba:new RegExp("rgba"+ee),hsl:new RegExp("hsl"+te),hsla:new RegExp("hsla"+ee),hsv:new RegExp("hsv"+te),hsva:new RegExp("hsva"+ee),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function Q(Y){return!!U.CSS_UNIT.exec(Y)}o.exports?o.exports=v:(l=(function(){return v}).call(a,n,a,o))===void 0||(o.exports=l)})(Math)},20588:function(o,a,n){function l(f){try{if(!n.g.localStorage)return!1}catch{return!1}var s=n.g.localStorage[f];return s!=null&&String(s).toLowerCase()==="true"}o.exports=function(f,s){if(l("noDeprecation"))return f;var c=!1;return function(){if(!c){if(l("throwDeprecation"))throw new Error(s);l("traceDeprecation")?console.trace(s):console.warn(s),c=!0}return f.apply(this,arguments)}}},45920:function(o){o.exports=function(a){return a&&typeof a=="object"&&typeof a.copy=="function"&&typeof a.fill=="function"&&typeof a.readUInt8=="function"}},4936:function(o,a,n){var l=n(47216),f=n(65481),s=n(21099),c=n(9187);function d(N){return N.call.bind(N)}var h=typeof BigInt<"u",p=typeof Symbol<"u",m=d(Object.prototype.toString),y=d(Number.prototype.valueOf),v=d(String.prototype.valueOf),g=d(Boolean.prototype.valueOf);if(h)var b=d(BigInt.prototype.valueOf);if(p)var x=d(Symbol.prototype.valueOf);function _(N,E){if(typeof N!="object")return!1;try{return E(N),!0}catch{return!1}}function w(N){return m(N)==="[object Map]"}function k(N){return m(N)==="[object Set]"}function T(N){return m(N)==="[object WeakMap]"}function M(N){return m(N)==="[object WeakSet]"}function S(N){return m(N)==="[object ArrayBuffer]"}function C(N){return typeof ArrayBuffer<"u"&&(S.working?S(N):N instanceof ArrayBuffer)}function P(N){return m(N)==="[object DataView]"}function D(N){return typeof DataView<"u"&&(P.working?P(N):N instanceof DataView)}a.isArgumentsObject=l,a.isGeneratorFunction=f,a.isTypedArray=c,a.isPromise=function(N){return typeof Promise<"u"&&N instanceof Promise||N!==null&&typeof N=="object"&&typeof N.then=="function"&&typeof N.catch=="function"},a.isArrayBufferView=function(N){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(N):c(N)||D(N)},a.isUint8Array=function(N){return s(N)==="Uint8Array"},a.isUint8ClampedArray=function(N){return s(N)==="Uint8ClampedArray"},a.isUint16Array=function(N){return s(N)==="Uint16Array"},a.isUint32Array=function(N){return s(N)==="Uint32Array"},a.isInt8Array=function(N){return s(N)==="Int8Array"},a.isInt16Array=function(N){return s(N)==="Int16Array"},a.isInt32Array=function(N){return s(N)==="Int32Array"},a.isFloat32Array=function(N){return s(N)==="Float32Array"},a.isFloat64Array=function(N){return s(N)==="Float64Array"},a.isBigInt64Array=function(N){return s(N)==="BigInt64Array"},a.isBigUint64Array=function(N){return s(N)==="BigUint64Array"},w.working=typeof Map<"u"&&w(new Map),a.isMap=function(N){return typeof Map<"u"&&(w.working?w(N):N instanceof Map)},k.working=typeof Set<"u"&&k(new Set),a.isSet=function(N){return typeof Set<"u"&&(k.working?k(N):N instanceof Set)},T.working=typeof WeakMap<"u"&&T(new WeakMap),a.isWeakMap=function(N){return typeof WeakMap<"u"&&(T.working?T(N):N instanceof WeakMap)},M.working=typeof WeakSet<"u"&&M(new WeakSet),a.isWeakSet=function(N){return M(N)},S.working=typeof ArrayBuffer<"u"&&S(new ArrayBuffer),a.isArrayBuffer=C,P.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&P(new DataView(new ArrayBuffer(1),0,1)),a.isDataView=D;var O=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function R(N){return m(N)==="[object SharedArrayBuffer]"}function F(N){return O!==void 0&&(R.working===void 0&&(R.working=R(new O)),R.working?R(N):N instanceof O)}function A(N){return _(N,y)}function z(N){return _(N,v)}function B(N){return _(N,g)}function $(N){return h&&_(N,b)}function j(N){return p&&_(N,x)}a.isSharedArrayBuffer=F,a.isAsyncFunction=function(N){return m(N)==="[object AsyncFunction]"},a.isMapIterator=function(N){return m(N)==="[object Map Iterator]"},a.isSetIterator=function(N){return m(N)==="[object Set Iterator]"},a.isGeneratorObject=function(N){return m(N)==="[object Generator]"},a.isWebAssemblyCompiledModule=function(N){return m(N)==="[object WebAssembly.Module]"},a.isNumberObject=A,a.isStringObject=z,a.isBooleanObject=B,a.isBigIntObject=$,a.isSymbolObject=j,a.isBoxedPrimitive=function(N){return A(N)||z(N)||B(N)||$(N)||j(N)},a.isAnyArrayBuffer=function(N){return typeof Uint8Array<"u"&&(C(N)||F(N))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(N){Object.defineProperty(a,N,{enumerable:!1,value:function(){throw new Error(N+" is not supported in userland")}})})},43827:function(o,a,n){var l=n(90386),f=Object.getOwnPropertyDescriptors||function(j){for(var N=Object.keys(j),E={},W=0;W=G)return H;switch(H){case"%s":return String(W[E++]);case"%d":return Number(W[E++]);case"%j":try{return JSON.stringify(W[E++])}catch{return"[Circular]"}default:return H}}),q=W[E];E=3&&(E.depth=arguments[2]),arguments.length>=4&&(E.colors=arguments[3]),_(N)?E.showHidden=N:N&&a._extend(E,N),M(E.showHidden)&&(E.showHidden=!1),M(E.depth)&&(E.depth=2),M(E.colors)&&(E.colors=!1),M(E.customInspect)&&(E.customInspect=!0),E.colors&&(E.stylize=m),v(E,j,E.depth)}function m(j,N){var E=p.styles[N];return E?"\x1B["+p.colors[E][0]+"m"+j+"\x1B["+p.colors[E][1]+"m":j}function y(j,N){return j}function v(j,N,E){if(j.customInspect&&N&&O(N.inspect)&&N.inspect!==a.inspect&&(!N.constructor||N.constructor.prototype!==N)){var W=N.inspect(E,j);return T(W)||(W=v(j,W,E)),W}var G=function(Q,Y){if(M(Y))return Q.stylize("undefined","undefined");if(T(Y)){var Z="'"+JSON.stringify(Y).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Q.stylize(Z,"string")}return k(Y)?Q.stylize(""+Y,"number"):_(Y)?Q.stylize(""+Y,"boolean"):w(Y)?Q.stylize("null","null"):void 0}(j,N);if(G)return G;var L=Object.keys(N),q=function(Q){var Y={};return Q.forEach(function(Z,X){Y[Z]=!0}),Y}(L);if(j.showHidden&&(L=Object.getOwnPropertyNames(N)),D(N)&&(L.indexOf("message")>=0||L.indexOf("description")>=0))return g(N);if(L.length===0){if(O(N)){var H=N.name?": "+N.name:"";return j.stylize("[Function"+H+"]","special")}if(S(N))return j.stylize(RegExp.prototype.toString.call(N),"regexp");if(P(N))return j.stylize(Date.prototype.toString.call(N),"date");if(D(N))return g(N)}var V,te="",ee=!1,U=["{","}"];return x(N)&&(ee=!0,U=["[","]"]),O(N)&&(te=" [Function"+(N.name?": "+N.name:"")+"]"),S(N)&&(te=" "+RegExp.prototype.toString.call(N)),P(N)&&(te=" "+Date.prototype.toUTCString.call(N)),D(N)&&(te=" "+g(N)),L.length!==0||ee&&N.length!=0?E<0?S(N)?j.stylize(RegExp.prototype.toString.call(N),"regexp"):j.stylize("[Object]","special"):(j.seen.push(N),V=ee?function(Q,Y,Z,X,re){for(var ie=[],le=0,se=Y.length;le0}var n=/<[-_.:a-zA-Z0-9][^>]*>/,l=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,f=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,s=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,u=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,d=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function h(p){return d.test(p)?p.match(d)[0]:"px"}o.exports=function(p){if(function(S){var C,P=0,D=S.length;for(S[0]===239&&S[1]===187&&S[2]===191&&(P=3);P>14&16383),type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function v(m,b){return{width:1+(m[b+6]<<16|m[b+5]<<8|m[b+4]),height:1+(m[b+9]<m.length)){for(;b+8=10?x=x||g(m,b+8):k==="VP8L"&&T>=9?x=x||y(m,b+8):k==="VP8X"&&T>=10?x=x||v(m,b+8):k==="EXIF"&&(_=d.get_orientation(m.slice(b+8,b+8+T)),b=1/0),b+=8+T}else b++;if(x)return _>0&&(x.orientation=_),x}}}},91497:function(o,a,n){o.exports={avif:n(24461),bmp:n(2504),gif:n(47342),ico:n(31355),jpeg:n(54261),png:n(6303),psd:n(38689),svg:n(6881),tiff:n(66278),webp:n(90784)}},33575:function(o,a,n){var l=n(91497);o.exports=function(f){return function(s){for(var u=Object.keys(l),d=0;d1)for(var w=1;w2?"one of ".concat(s," ").concat(f.slice(0,u-1).join(", "),", or ")+f[u-1]:u===2?"one of ".concat(s," ").concat(f[0]," or ").concat(f[1]):"of ".concat(s," ").concat(f[0])}return"of ".concat(s," ").concat(String(f))}n("ERR_INVALID_OPT_VALUE",function(f,s){return'The value "'+s+'" is invalid for option "'+f+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(f,s,u){var d,h,p,g,y;if(typeof s=="string"&&(h="not ",s.substr(0,4)===h)?(d="must not be",s=s.replace(/^not /,"")):d="must be",function(m,b,x){return(x===void 0||x>m.length)&&(x=m.length),m.substring(x-9,x)===b}(f," argument"))p="The ".concat(f," ").concat(d," ").concat(l(s,"type"));else{var v=(typeof y!="number"&&(y=0),y+1>(g=f).length||g.indexOf(".",y)===-1?"argument":"property");p='The "'.concat(f,'" ').concat(v," ").concat(d," ").concat(l(s,"type"))}return p+". Received type ".concat(typeof u)},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(f){return"The "+f+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(f){return"Cannot call "+f+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(f){return"Unknown encoding: "+f},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),o.exports.q=a},37865:function(o,a,n){var l=n(90386),f=Object.keys||function(m){var b=[];for(var x in m)b.push(x);return b};o.exports=g;var s=n(40410),u=n(37493);n(42018)(g,s);for(var d=f(u.prototype),h=0;h0)if(typeof U=="string"||re.objectMode||Object.getPrototypeOf(U)===h.prototype||(U=function(ie){return h.from(ie)}(U)),Y)re.endEmitted?C(ee,new S):F(ee,re,U,!0);else if(re.ended)C(ee,new T);else{if(re.destroyed)return!1;re.reading=!1,re.decoder&&!Q?(U=re.decoder.write(U),re.objectMode||U.length!==0?F(ee,re,U,!1):j(ee,re)):F(ee,re,U,!1)}else Y||(re.reading=!1,j(ee,re));return!re.ended&&(re.lengthU.highWaterMark&&(U.highWaterMark=function(Q){return Q>=A?Q=A:(Q--,Q|=Q>>>1,Q|=Q>>>2,Q|=Q>>>4,Q|=Q>>>8,Q|=Q>>>16,Q++),Q}(ee)),ee<=U.length?ee:U.ended?U.length:(U.needReadable=!0,0))}function B(ee){var U=ee._readableState;s("emitReadable",U.needReadable,U.emittedReadable),U.needReadable=!1,U.emittedReadable||(s("emitReadable",U.flowing),U.emittedReadable=!0,f.nextTick($,ee))}function $(ee){var U=ee._readableState;s("emitReadable_",U.destroyed,U.length,U.ended),U.destroyed||!U.length&&!U.ended||(ee.emit("readable"),U.emittedReadable=!1),U.needReadable=!U.flowing&&!U.ended&&U.length<=U.highWaterMark,L(ee)}function j(ee,U){U.readingMore||(U.readingMore=!0,f.nextTick(N,ee,U))}function N(ee,U){for(;!U.reading&&!U.ended&&(U.length0,U.resumeScheduled&&!U.paused?U.flowing=!0:ee.listenerCount("data")>0&&ee.resume()}function W(ee){s("readable nexttick read 0"),ee.read(0)}function G(ee,U){s("resume",U.reading),U.reading||ee.read(0),U.resumeScheduled=!1,ee.emit("resume"),L(ee),U.flowing&&!U.reading&&ee.read(0)}function L(ee){var U=ee._readableState;for(s("flow",U.flowing);U.flowing&&ee.read()!==null;);}function q(ee,U){return U.length===0?null:(U.objectMode?Q=U.buffer.shift():!ee||ee>=U.length?(Q=U.decoder?U.buffer.join(""):U.buffer.length===1?U.buffer.first():U.buffer.concat(U.length),U.buffer.clear()):Q=U.buffer.consume(ee,U.decoder),Q);var Q}function H(ee){var U=ee._readableState;s("endReadable",U.endEmitted),U.endEmitted||(U.ended=!0,f.nextTick(V,U,ee))}function V(ee,U){if(s("endReadableNT",ee.endEmitted,ee.length),!ee.endEmitted&&ee.length===0&&(ee.endEmitted=!0,U.readable=!1,U.emit("end"),ee.autoDestroy)){var Q=U._writableState;(!Q||Q.autoDestroy&&Q.finished)&&U.destroy()}}function te(ee,U){for(var Q=0,Y=ee.length;Q=U.highWaterMark:U.length>0)||U.ended))return s("read: emitReadable",U.length,U.ended),U.length===0&&U.ended?H(this):B(this),null;if((ee=z(ee,U))===0&&U.ended)return U.length===0&&H(this),null;var Y,Z=U.needReadable;return s("need readable",Z),(U.length===0||U.length-ee0?q(ee,U):null)===null?(U.needReadable=U.length<=U.highWaterMark,ee=0):(U.length-=ee,U.awaitDrain=0),U.length===0&&(U.ended||(U.needReadable=!0),Q!==ee&&U.ended&&H(this)),Y!==null&&this.emit("data",Y),Y},O.prototype._read=function(ee){C(this,new M("_read()"))},O.prototype.pipe=function(ee,U){var Q=this,Y=this._readableState;switch(Y.pipesCount){case 0:Y.pipes=ee;break;case 1:Y.pipes=[Y.pipes,ee];break;default:Y.pipes.push(ee)}Y.pipesCount+=1,s("pipe count=%d opts=%j",Y.pipesCount,U);var Z=U&&U.end===!1||ee===f.stdout||ee===f.stderr?Se:X;function X(){s("onend"),ee.end()}Y.endEmitted?f.nextTick(Z):Q.once("end",Z),ee.on("unpipe",function Oe(Me,ce){s("onunpipe"),Me===Q&&ce&&ce.hasUnpiped===!1&&(ce.hasUnpiped=!0,s("cleanup"),ee.removeListener("close",pe),ee.removeListener("finish",Te),ee.removeListener("drain",re),ee.removeListener("error",se),ee.removeListener("unpipe",Oe),Q.removeListener("end",X),Q.removeListener("end",Se),Q.removeListener("data",le),ie=!0,!Y.awaitDrain||ee._writableState&&!ee._writableState.needDrain||re())});var re=function(Oe){return function(){var Me=Oe._readableState;s("pipeOnDrain",Me.awaitDrain),Me.awaitDrain&&Me.awaitDrain--,Me.awaitDrain===0&&u(Oe,"data")&&(Me.flowing=!0,L(Oe))}}(Q);ee.on("drain",re);var ie=!1;function le(Oe){s("ondata");var Me=ee.write(Oe);s("dest.write",Me),Me===!1&&((Y.pipesCount===1&&Y.pipes===ee||Y.pipesCount>1&&te(Y.pipes,ee)!==-1)&&!ie&&(s("false write response, pause",Y.awaitDrain),Y.awaitDrain++),Q.pause())}function se(Oe){s("onerror",Oe),Se(),ee.removeListener("error",se),u(ee,"error")===0&&C(ee,Oe)}function pe(){ee.removeListener("finish",Te),Se()}function Te(){s("onfinish"),ee.removeListener("close",pe),Se()}function Se(){s("unpipe"),Q.unpipe(ee)}return Q.on("data",le),function(Oe,Me,ce){if(typeof Oe.prependListener=="function")return Oe.prependListener(Me,ce);Oe._events&&Oe._events[Me]?Array.isArray(Oe._events[Me])?Oe._events[Me].unshift(ce):Oe._events[Me]=[ce,Oe._events[Me]]:Oe.on(Me,ce)}(ee,"error",se),ee.once("close",pe),ee.once("finish",Te),ee.emit("pipe",Q),Y.flowing||(s("pipe resume"),Q.resume()),ee},O.prototype.unpipe=function(ee){var U=this._readableState,Q={hasUnpiped:!1};if(U.pipesCount===0)return this;if(U.pipesCount===1)return ee&&ee!==U.pipes||(ee||(ee=U.pipes),U.pipes=null,U.pipesCount=0,U.flowing=!1,ee&&ee.emit("unpipe",this,Q)),this;if(!ee){var Y=U.pipes,Z=U.pipesCount;U.pipes=null,U.pipesCount=0,U.flowing=!1;for(var X=0;X0,Y.flowing!==!1&&this.resume()):ee==="readable"&&(Y.endEmitted||Y.readableListening||(Y.readableListening=Y.needReadable=!0,Y.flowing=!1,Y.emittedReadable=!1,s("on readable",Y.length,Y.reading),Y.length?B(this):Y.reading||f.nextTick(W,this))),Q},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(ee,U){var Q=d.prototype.removeListener.call(this,ee,U);return ee==="readable"&&f.nextTick(E,this),Q},O.prototype.removeAllListeners=function(ee){var U=d.prototype.removeAllListeners.apply(this,arguments);return ee!=="readable"&&ee!==void 0||f.nextTick(E,this),U},O.prototype.resume=function(){var ee=this._readableState;return ee.flowing||(s("resume"),ee.flowing=!ee.readableListening,function(U,Q){Q.resumeScheduled||(Q.resumeScheduled=!0,f.nextTick(G,U,Q))}(this,ee)),ee.paused=!1,this},O.prototype.pause=function(){return s("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(s("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(ee){var U=this,Q=this._readableState,Y=!1;for(var Z in ee.on("end",function(){if(s("wrapped end"),Q.decoder&&!Q.ended){var re=Q.decoder.end();re&&re.length&&U.push(re)}U.push(null)}),ee.on("data",function(re){s("wrapped data"),Q.decoder&&(re=Q.decoder.write(re)),Q.objectMode&&re==null||(Q.objectMode||re&&re.length)&&(U.push(re)||(Y=!0,ee.pause()))}),ee)this[Z]===void 0&&typeof ee[Z]=="function"&&(this[Z]=function(re){return function(){return ee[re].apply(ee,arguments)}}(Z));for(var X=0;X-1))throw new S(j);return this._writableState.defaultEncoding=j,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(j,N,E){E(new x("_write()"))},O.prototype._writev=null,O.prototype.end=function(j,N,E){var W=this._writableState;return typeof j=="function"?(E=j,j=null,N=null):typeof N=="function"&&(E=N,N=null),j!=null&&this.write(j,N),W.corked&&(W.corked=1,this.uncork()),W.ending||function(G,L,q){L.ending=!0,$(G,L),q&&(L.finished?f.nextTick(q):G.once("finish",q)),L.ended=!0,G.writable=!1}(this,W,E),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(j){this._writableState&&(this._writableState.destroyed=j)}}),O.prototype.destroy=y.destroy,O.prototype._undestroy=y.undestroy,O.prototype._destroy=function(j,N){N(j)}},68221:function(o,a,n){var l,f=n(90386);function s(T,M,S){return M in T?Object.defineProperty(T,M,{value:S,enumerable:!0,configurable:!0,writable:!0}):T[M]=S,T}var u=n(12726),d=Symbol("lastResolve"),h=Symbol("lastReject"),p=Symbol("error"),g=Symbol("ended"),y=Symbol("lastPromise"),v=Symbol("handlePromise"),m=Symbol("stream");function b(T,M){return{value:T,done:M}}function x(T){var M=T[d];if(M!==null){var S=T[m].read();S!==null&&(T[y]=null,T[d]=null,T[h]=null,M(b(S,!1)))}}function _(T){f.nextTick(x,T)}var w=Object.getPrototypeOf(function(){}),k=Object.setPrototypeOf((s(l={get stream(){return this[m]},next:function(){var T=this,M=this[p];if(M!==null)return Promise.reject(M);if(this[g])return Promise.resolve(b(void 0,!0));if(this[m].destroyed)return new Promise(function(D,O){f.nextTick(function(){T[p]?O(T[p]):D(b(void 0,!0))})});var S,C=this[y];if(C)S=new Promise(function(D,O){return function(R,F){D.then(function(){O[g]?R(b(void 0,!0)):O[v](R,F)},F)}}(C,this));else{var P=this[m].read();if(P!==null)return Promise.resolve(b(P,!1));S=new Promise(this[v])}return this[y]=S,S}},Symbol.asyncIterator,function(){return this}),s(l,"return",function(){var T=this;return new Promise(function(M,S){T[m].destroy(null,function(C){C?S(C):M(b(void 0,!0))})})}),l),w);o.exports=function(T){var M,S=Object.create(k,(s(M={},m,{value:T,writable:!0}),s(M,d,{value:null,writable:!0}),s(M,h,{value:null,writable:!0}),s(M,p,{value:null,writable:!0}),s(M,g,{value:T._readableState.endEmitted,writable:!0}),s(M,v,{value:function(C,P){var D=S[m].read();D?(S[y]=null,S[d]=null,S[h]=null,C(b(D,!1))):(S[d]=C,S[h]=P)},writable:!0}),M));return S[y]=null,u(T,function(C){if(C&&C.code!=="ERR_STREAM_PREMATURE_CLOSE"){var P=S[h];return P!==null&&(S[y]=null,S[d]=null,S[h]=null,P(C)),void(S[p]=C)}var D=S[d];D!==null&&(S[y]=null,S[d]=null,S[h]=null,D(b(void 0,!0))),S[g]=!0}),T.on("readable",_.bind(null,S)),S}},31125:function(o,a,n){function l(p,g){var y=Object.keys(p);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(p);g&&(v=v.filter(function(m){return Object.getOwnPropertyDescriptor(p,m).enumerable})),y.push.apply(y,v)}return y}function f(p,g,y){return g in p?Object.defineProperty(p,g,{value:y,enumerable:!0,configurable:!0,writable:!0}):p[g]=y,p}function s(p,g){for(var y=0;y0?this.tail.next=m:this.head=m,this.tail=m,++this.length}},{key:"unshift",value:function(v){var m={data:v,next:this.head};this.length===0&&(this.tail=m),this.head=m,++this.length}},{key:"shift",value:function(){if(this.length!==0){var v=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,v}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(v){if(this.length===0)return"";for(var m=this.head,b=""+m.data;m=m.next;)b+=v+m.data;return b}},{key:"concat",value:function(v){if(this.length===0)return u.alloc(0);for(var m,b,x,_=u.allocUnsafe(v>>>0),w=this.head,k=0;w;)m=w.data,b=_,x=k,u.prototype.copy.call(m,b,x),k+=w.data.length,w=w.next;return _}},{key:"consume",value:function(v,m){var b;return v_.length?_.length:v;if(w===_.length?x+=_:x+=_.slice(0,v),(v-=w)==0){w===_.length?(++b,m.next?this.head=m.next:this.head=this.tail=null):(this.head=m,m.data=_.slice(w));break}++b}return this.length-=b,x}},{key:"_getBuffer",value:function(v){var m=u.allocUnsafe(v),b=this.head,x=1;for(b.data.copy(m),v-=b.data.length;b=b.next;){var _=b.data,w=v>_.length?_.length:v;if(_.copy(m,m.length-v,0,w),(v-=w)==0){w===_.length?(++x,b.next?this.head=b.next:this.head=this.tail=null):(this.head=b,b.data=_.slice(w));break}++x}return this.length-=x,m}},{key:h,value:function(v,m){return d(this,function(b){for(var x=1;x0,function(T){m||(m=T),T&&x.forEach(h),k||(x.forEach(h),b(m))})});return y.reduce(p)}},56306:function(o,a,n){var l=n(74322).q.ERR_INVALID_OPT_VALUE;o.exports={getHighWaterMark:function(f,s,u,d){var h=function(p,g,y){return p.highWaterMark!=null?p.highWaterMark:g?p[y]:null}(s,d,u);if(h!=null){if(!isFinite(h)||Math.floor(h)!==h||h<0)throw new l(d?u:"highWaterMark",h);return Math.floor(h)}return f.objectMode?16:16384}}},71405:function(o,a,n){o.exports=n(15398).EventEmitter},68019:function(o,a,n){var l=n(71665).Buffer,f=l.isEncoding||function(b){switch((b=""+b)&&b.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(b){var x;switch(this.encoding=function(_){var w=function(k){if(!k)return"utf8";for(var T;;)switch(k){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return k;default:if(T)return;k=(""+k).toLowerCase(),T=!0}}(_);if(typeof w!="string"&&(l.isEncoding===f||!f(_)))throw new Error("Unknown encoding: "+_);return w||_}(b),this.encoding){case"utf16le":this.text=h,this.end=p,x=4;break;case"utf8":this.fillLast=d,x=4;break;case"base64":this.text=g,this.end=y,x=3;break;default:return this.write=v,void(this.end=m)}this.lastNeed=0,this.lastTotal=0,this.lastChar=l.allocUnsafe(x)}function u(b){return b<=127?0:b>>5==6?2:b>>4==14?3:b>>3==30?4:b>>6==2?-1:-2}function d(b){var x=this.lastTotal-this.lastNeed,_=function(w,k,T){if((192&k[0])!=128)return w.lastNeed=0,"�";if(w.lastNeed>1&&k.length>1){if((192&k[1])!=128)return w.lastNeed=1,"�";if(w.lastNeed>2&&k.length>2&&(192&k[2])!=128)return w.lastNeed=2,"�"}}(this,b);return _!==void 0?_:this.lastNeed<=b.length?(b.copy(this.lastChar,x,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(b.copy(this.lastChar,x,0,b.length),void(this.lastNeed-=b.length))}function h(b,x){if((b.length-x)%2==0){var _=b.toString("utf16le",x);if(_){var w=_.charCodeAt(_.length-1);if(w>=55296&&w<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=b[b.length-2],this.lastChar[1]=b[b.length-1],_.slice(0,-1)}return _}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=b[b.length-1],b.toString("utf16le",x,b.length-1)}function p(b){var x=b&&b.length?this.write(b):"";if(this.lastNeed){var _=this.lastTotal-this.lastNeed;return x+this.lastChar.toString("utf16le",0,_)}return x}function g(b,x){var _=(b.length-x)%3;return _===0?b.toString("base64",x):(this.lastNeed=3-_,this.lastTotal=3,_===1?this.lastChar[0]=b[b.length-1]:(this.lastChar[0]=b[b.length-2],this.lastChar[1]=b[b.length-1]),b.toString("base64",x,b.length-_))}function y(b){var x=b&&b.length?this.write(b):"";return this.lastNeed?x+this.lastChar.toString("base64",0,3-this.lastNeed):x}function v(b){return b.toString(this.encoding)}function m(b){return b&&b.length?this.write(b):""}a.s=s,s.prototype.write=function(b){if(b.length===0)return"";var x,_;if(this.lastNeed){if((x=this.fillLast(b))===void 0)return"";_=this.lastNeed,this.lastNeed=0}else _=0;return _=0?(C>0&&(k.lastNeed=C-1),C):--S=0?(C>0&&(k.lastNeed=C-2),C):--S=0?(C>0&&(C===2?C=0:k.lastNeed=C-3),C):0}(this,b,x);if(!this.lastNeed)return b.toString("utf8",x);this.lastTotal=_;var w=b.length-(_-this.lastNeed);return b.copy(this.lastChar,0,w),b.toString("utf8",x,w)},s.prototype.fillLast=function(b){if(this.lastNeed<=b.length)return b.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);b.copy(this.lastChar,this.lastTotal-this.lastNeed,0,b.length),this.lastNeed-=b.length}},90715:function(o,a,n){var l=n(32791),f=n(41633)("stream-parser");o.exports=function(k){var T=k&&typeof k._transform=="function",M=k&&typeof k._write=="function";if(!T&&!M)throw new Error("must pass a Writable or Transform stream in");f("extending Parser into stream"),k._bytes=g,k._skipBytes=y,T&&(k._passthrough=v),T?k._transform=b:k._write=m};var s=-1,u=0,d=1,h=2;function p(k){f("initializing parser stream"),k._parserBytesLeft=0,k._parserBuffers=[],k._parserBuffered=0,k._parserState=s,k._parserCallback=null,typeof k.push=="function"&&(k._parserOutput=k.push.bind(k)),k._parserInit=!0}function g(k,T){l(!this._parserCallback,'there is already a "callback" set!'),l(isFinite(k)&&k>0,'can only buffer a finite number of bytes > 0, got "'+k+'"'),this._parserInit||p(this),f("buffering %o bytes",k),this._parserBytesLeft=k,this._parserCallback=T,this._parserState=u}function y(k,T){l(!this._parserCallback,'there is already a "callback" set!'),l(k>0,'can only skip > 0 bytes, got "'+k+'"'),this._parserInit||p(this),f("skipping %o bytes",k),this._parserBytesLeft=k,this._parserCallback=T,this._parserState=d}function v(k,T){l(!this._parserCallback,'There is already a "callback" set!'),l(k>0,'can only pass through > 0 bytes, got "'+k+'"'),this._parserInit||p(this),f("passing through %o bytes",k),this._parserBytesLeft=k,this._parserCallback=T,this._parserState=h}function m(k,T,M){this._parserInit||p(this),f("write(%o bytes)",k.length),typeof T=="function"&&(M=T),_(this,k,null,M)}function b(k,T,M){this._parserInit||p(this),f("transform(%o bytes)",k.length),typeof T!="function"&&(T=this._parserOutput),_(this,k,T,M)}function x(k,T,M,S){if(k._parserBytesLeft-=T.length,f("%o bytes left for stream piece",k._parserBytesLeft),k._parserState===u?(k._parserBuffers.push(T),k._parserBuffered+=T.length):k._parserState===h&&M(T),k._parserBytesLeft!==0)return S;var C=k._parserCallback;if(C&&k._parserState===u&&k._parserBuffers.length>1&&(T=Buffer.concat(k._parserBuffers,k._parserBuffered)),k._parserState!==u&&(T=null),k._parserCallback=null,k._parserBuffered=0,k._parserState=s,k._parserBuffers.splice(0),C){var P=[];T&&P.push(T),M&&P.push(M);var D=C.length>P.length;D&&P.push(w(S));var O=C.apply(k,P);if(!D||S===O)return S}}var _=w(function k(T,M,S,C){return T._parserBytesLeft<=0?C(new Error("got data but not currently parsing anything")):M.length<=T._parserBytesLeft?function(){return x(T,M,S,C)}:function(){var P=M.slice(0,T._parserBytesLeft);return x(T,P,S,function(D){return D?C(D):M.length>P.length?function(){return k(T,M.slice(P.length),S,C)}:void 0})}});function w(k){return function(){for(var T=k.apply(this,arguments);typeof T=="function";)T=T();return T}}},41633:function(o,a,n){var l=n(90386);function f(){var s;try{s=a.storage.debug}catch{}return!s&&l!==void 0&&"env"in l&&(s=l.env.DEBUG),s}(a=o.exports=n(74469)).log=function(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},a.formatArgs=function(s){var u=this.useColors;if(s[0]=(u?"%c":"")+this.namespace+(u?" %c":" ")+s[0]+(u?"%c ":" ")+"+"+a.humanize(this.diff),u){var d="color: "+this.color;s.splice(1,0,d,"color: inherit");var h=0,p=0;s[0].replace(/%[a-zA-Z%]/g,function(g){g!=="%%"&&(h++,g==="%c"&&(p=h))}),s.splice(p,0,d)}},a.save=function(s){try{s==null?a.storage.removeItem("debug"):a.storage.debug=s}catch{}},a.load=f,a.useColors=function(){return!(typeof window>"u"||!window.process||window.process.type!=="renderer")||typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},a.storage=typeof chrome<"u"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch{}}(),a.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],a.formatters.j=function(s){try{return JSON.stringify(s)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}},a.enable(f())},74469:function(o,a,n){var l;function f(s){function u(){if(u.enabled){var d=u,h=+new Date,p=h-(l||h);d.diff=p,d.prev=l,d.curr=h,l=h;for(var g=new Array(arguments.length),y=0;y0)return function(g){if(!((g=String(g)).length>100)){var y=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(g);if(y){var v=parseFloat(y[1]);switch((y[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*v;case"days":case"day":case"d":return v*f;case"hours":case"hour":case"hrs":case"hr":case"h":return v*l;case"minutes":case"minute":case"mins":case"min":case"m":return v*n;case"seconds":case"second":case"secs":case"sec":case"s":return v*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return v;default:return}}}}(u);if(p==="number"&&isNaN(u)===!1)return d.long?s(h=u,f,"day")||s(h,l,"hour")||s(h,n,"minute")||s(h,a,"second")||h+" ms":function(g){return g>=f?Math.round(g/f)+"d":g>=l?Math.round(g/l)+"h":g>=n?Math.round(g/n)+"m":g>=a?Math.round(g/a)+"s":g+"ms"}(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))}},84267:function(o,a,n){var l;(function(f){var s=/^\s+/,u=/\s+$/,d=0,h=f.round,p=f.min,g=f.max,y=f.random;function v(Y,Z){if(Z=Z||{},(Y=Y||"")instanceof v)return Y;if(!(this instanceof v))return new v(Y,Z);var X=function(re){var ie,le,se,pe={r:0,g:0,b:0},Te=1,Se=null,Oe=null,Me=null,ce=!1,ye=!1;return typeof re=="string"&&(re=function(J){J=J.replace(s,"").replace(u,"").toLowerCase();var ne,de=!1;if(B[J])J=B[J],de=!0;else if(J=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(ne=U.rgb.exec(J))?{r:ne[1],g:ne[2],b:ne[3]}:(ne=U.rgba.exec(J))?{r:ne[1],g:ne[2],b:ne[3],a:ne[4]}:(ne=U.hsl.exec(J))?{h:ne[1],s:ne[2],l:ne[3]}:(ne=U.hsla.exec(J))?{h:ne[1],s:ne[2],l:ne[3],a:ne[4]}:(ne=U.hsv.exec(J))?{h:ne[1],s:ne[2],v:ne[3]}:(ne=U.hsva.exec(J))?{h:ne[1],s:ne[2],v:ne[3],a:ne[4]}:(ne=U.hex8.exec(J))?{r:W(ne[1]),g:W(ne[2]),b:W(ne[3]),a:H(ne[4]),format:de?"name":"hex8"}:(ne=U.hex6.exec(J))?{r:W(ne[1]),g:W(ne[2]),b:W(ne[3]),format:de?"name":"hex"}:(ne=U.hex4.exec(J))?{r:W(ne[1]+""+ne[1]),g:W(ne[2]+""+ne[2]),b:W(ne[3]+""+ne[3]),a:H(ne[4]+""+ne[4]),format:de?"name":"hex8"}:!!(ne=U.hex3.exec(J))&&{r:W(ne[1]+""+ne[1]),g:W(ne[2]+""+ne[2]),b:W(ne[3]+""+ne[3]),format:de?"name":"hex"}}(re)),typeof re=="object"&&(Q(re.r)&&Q(re.g)&&Q(re.b)?(ie=re.r,le=re.g,se=re.b,pe={r:255*N(ie,255),g:255*N(le,255),b:255*N(se,255)},ce=!0,ye=String(re.r).substr(-1)==="%"?"prgb":"rgb"):Q(re.h)&&Q(re.s)&&Q(re.v)?(Se=L(re.s),Oe=L(re.v),pe=function(J,ne,de){J=6*N(J,360),ne=N(ne,100),de=N(de,100);var xe=f.floor(J),ue=J-xe,ge=de*(1-ne),be=de*(1-ue*ne),we=de*(1-(1-ue)*ne),ke=xe%6;return{r:255*[de,be,ge,ge,we,de][ke],g:255*[we,de,de,be,ge,ge][ke],b:255*[ge,ge,we,de,de,be][ke]}}(re.h,Se,Oe),ce=!0,ye="hsv"):Q(re.h)&&Q(re.s)&&Q(re.l)&&(Se=L(re.s),Me=L(re.l),pe=function(J,ne,de){var xe,ue,ge;function be(Ae,Ee,De){return De<0&&(De+=1),De>1&&(De-=1),De<1/6?Ae+6*(Ee-Ae)*De:De<.5?Ee:De<2/3?Ae+(Ee-Ae)*(2/3-De)*6:Ae}if(J=N(J,360),ne=N(ne,100),de=N(de,100),ne===0)xe=ue=ge=de;else{var we=de<.5?de*(1+ne):de+ne-de*ne,ke=2*de-we;xe=be(ke,we,J+1/3),ue=be(ke,we,J),ge=be(ke,we,J-1/3)}return{r:255*xe,g:255*ue,b:255*ge}}(re.h,Se,Me),ce=!0,ye="hsl"),re.hasOwnProperty("a")&&(Te=re.a)),Te=j(Te),{ok:ce,format:re.format||ye,r:p(255,g(pe.r,0)),g:p(255,g(pe.g,0)),b:p(255,g(pe.b,0)),a:Te}}(Y);this._originalInput=Y,this._r=X.r,this._g=X.g,this._b=X.b,this._a=X.a,this._roundA=h(100*this._a)/100,this._format=Z.format||X.format,this._gradientType=Z.gradientType,this._r<1&&(this._r=h(this._r)),this._g<1&&(this._g=h(this._g)),this._b<1&&(this._b=h(this._b)),this._ok=X.ok,this._tc_id=d++}function m(Y,Z,X){Y=N(Y,255),Z=N(Z,255),X=N(X,255);var re,ie,le=g(Y,Z,X),se=p(Y,Z,X),pe=(le+se)/2;if(le==se)re=ie=0;else{var Te=le-se;switch(ie=pe>.5?Te/(2-le-se):Te/(le+se),le){case Y:re=(Z-X)/Te+(Z>1)+720)%360;--Z;)re.h=(re.h+ie)%360,le.push(v(re));return le}function z(Y,Z){Z=Z||6;for(var X=v(Y).toHsv(),re=X.h,ie=X.s,le=X.v,se=[],pe=1/Z;Z--;)se.push(v({h:re,s:ie,v:le})),le=(le+pe)%1;return se}v.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Y=this.toRgb();return(299*Y.r+587*Y.g+114*Y.b)/1e3},getLuminance:function(){var Y,Z,X,re=this.toRgb();return Y=re.r/255,Z=re.g/255,X=re.b/255,.2126*(Y<=.03928?Y/12.92:f.pow((Y+.055)/1.055,2.4))+.7152*(Z<=.03928?Z/12.92:f.pow((Z+.055)/1.055,2.4))+.0722*(X<=.03928?X/12.92:f.pow((X+.055)/1.055,2.4))},setAlpha:function(Y){return this._a=j(Y),this._roundA=h(100*this._a)/100,this},toHsv:function(){var Y=b(this._r,this._g,this._b);return{h:360*Y.h,s:Y.s,v:Y.v,a:this._a}},toHsvString:function(){var Y=b(this._r,this._g,this._b),Z=h(360*Y.h),X=h(100*Y.s),re=h(100*Y.v);return this._a==1?"hsv("+Z+", "+X+"%, "+re+"%)":"hsva("+Z+", "+X+"%, "+re+"%, "+this._roundA+")"},toHsl:function(){var Y=m(this._r,this._g,this._b);return{h:360*Y.h,s:Y.s,l:Y.l,a:this._a}},toHslString:function(){var Y=m(this._r,this._g,this._b),Z=h(360*Y.h),X=h(100*Y.s),re=h(100*Y.l);return this._a==1?"hsl("+Z+", "+X+"%, "+re+"%)":"hsla("+Z+", "+X+"%, "+re+"%, "+this._roundA+")"},toHex:function(Y){return x(this._r,this._g,this._b,Y)},toHexString:function(Y){return"#"+this.toHex(Y)},toHex8:function(Y){return function(Z,X,re,ie,le){var se=[G(h(Z).toString(16)),G(h(X).toString(16)),G(h(re).toString(16)),G(q(ie))];return le&&se[0].charAt(0)==se[0].charAt(1)&&se[1].charAt(0)==se[1].charAt(1)&&se[2].charAt(0)==se[2].charAt(1)&&se[3].charAt(0)==se[3].charAt(1)?se[0].charAt(0)+se[1].charAt(0)+se[2].charAt(0)+se[3].charAt(0):se.join("")}(this._r,this._g,this._b,this._a,Y)},toHex8String:function(Y){return"#"+this.toHex8(Y)},toRgb:function(){return{r:h(this._r),g:h(this._g),b:h(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+h(this._r)+", "+h(this._g)+", "+h(this._b)+")":"rgba("+h(this._r)+", "+h(this._g)+", "+h(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:h(100*N(this._r,255))+"%",g:h(100*N(this._g,255))+"%",b:h(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+h(100*N(this._r,255))+"%, "+h(100*N(this._g,255))+"%, "+h(100*N(this._b,255))+"%)":"rgba("+h(100*N(this._r,255))+"%, "+h(100*N(this._g,255))+"%, "+h(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&($[x(this._r,this._g,this._b,!0)]||!1)},toFilter:function(Y){var Z="#"+_(this._r,this._g,this._b,this._a),X=Z,re=this._gradientType?"GradientType = 1, ":"";if(Y){var ie=v(Y);X="#"+_(ie._r,ie._g,ie._b,ie._a)}return"progid:DXImageTransform.Microsoft.gradient("+re+"startColorstr="+Z+",endColorstr="+X+")"},toString:function(Y){var Z=!!Y;Y=Y||this._format;var X=!1,re=this._a<1&&this._a>=0;return Z||!re||Y!=="hex"&&Y!=="hex6"&&Y!=="hex3"&&Y!=="hex4"&&Y!=="hex8"&&Y!=="name"?(Y==="rgb"&&(X=this.toRgbString()),Y==="prgb"&&(X=this.toPercentageRgbString()),Y!=="hex"&&Y!=="hex6"||(X=this.toHexString()),Y==="hex3"&&(X=this.toHexString(!0)),Y==="hex4"&&(X=this.toHex8String(!0)),Y==="hex8"&&(X=this.toHex8String()),Y==="name"&&(X=this.toName()),Y==="hsl"&&(X=this.toHslString()),Y==="hsv"&&(X=this.toHsvString()),X||this.toHexString()):Y==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return v(this.toString())},_applyModification:function(Y,Z){var X=Y.apply(null,[this].concat([].slice.call(Z)));return this._r=X._r,this._g=X._g,this._b=X._b,this.setAlpha(X._a),this},lighten:function(){return this._applyModification(M,arguments)},brighten:function(){return this._applyModification(S,arguments)},darken:function(){return this._applyModification(C,arguments)},desaturate:function(){return this._applyModification(w,arguments)},saturate:function(){return this._applyModification(k,arguments)},greyscale:function(){return this._applyModification(T,arguments)},spin:function(){return this._applyModification(P,arguments)},_applyCombination:function(Y,Z){return Y.apply(null,[this].concat([].slice.call(Z)))},analogous:function(){return this._applyCombination(A,arguments)},complement:function(){return this._applyCombination(D,arguments)},monochromatic:function(){return this._applyCombination(z,arguments)},splitcomplement:function(){return this._applyCombination(F,arguments)},triad:function(){return this._applyCombination(O,arguments)},tetrad:function(){return this._applyCombination(R,arguments)}},v.fromRatio=function(Y,Z){if(typeof Y=="object"){var X={};for(var re in Y)Y.hasOwnProperty(re)&&(X[re]=re==="a"?Y[re]:L(Y[re]));Y=X}return v(Y,Z)},v.equals=function(Y,Z){return!(!Y||!Z)&&v(Y).toRgbString()==v(Z).toRgbString()},v.random=function(){return v.fromRatio({r:y(),g:y(),b:y()})},v.mix=function(Y,Z,X){X=X===0?0:X||50;var re=v(Y).toRgb(),ie=v(Z).toRgb(),le=X/100;return v({r:(ie.r-re.r)*le+re.r,g:(ie.g-re.g)*le+re.g,b:(ie.b-re.b)*le+re.b,a:(ie.a-re.a)*le+re.a})},v.readability=function(Y,Z){var X=v(Y),re=v(Z);return(f.max(X.getLuminance(),re.getLuminance())+.05)/(f.min(X.getLuminance(),re.getLuminance())+.05)},v.isReadable=function(Y,Z,X){var re,ie,le,se,pe,Te=v.readability(Y,Z);switch(ie=!1,(le=X,(se=((le=le||{level:"AA",size:"small"}).level||"AA").toUpperCase())!=="AA"&&se!=="AAA"&&(se="AA"),(pe=(le.size||"small").toLowerCase())!=="small"&&pe!=="large"&&(pe="small"),re={level:se,size:pe}).level+re.size){case"AAsmall":case"AAAlarge":ie=Te>=4.5;break;case"AAlarge":ie=Te>=3;break;case"AAAsmall":ie=Te>=7}return ie},v.mostReadable=function(Y,Z,X){var re,ie,le,se,pe=null,Te=0;ie=(X=X||{}).includeFallbackColors,le=X.level,se=X.size;for(var Se=0;SeTe&&(Te=re,pe=v(Z[Se]));return v.isReadable(Y,pe,{level:le,size:se})||!ie?pe:(X.includeFallbackColors=!1,v.mostReadable(Y,["#fff","#000"],X))};var B=v.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},$=v.hexNames=function(Y){var Z={};for(var X in Y)Y.hasOwnProperty(X)&&(Z[Y[X]]=X);return Z}(B);function j(Y){return Y=parseFloat(Y),(isNaN(Y)||Y<0||Y>1)&&(Y=1),Y}function N(Y,Z){(function(re){return typeof re=="string"&&re.indexOf(".")!=-1&&parseFloat(re)===1})(Y)&&(Y="100%");var X=function(re){return typeof re=="string"&&re.indexOf("%")!=-1}(Y);return Y=p(Z,g(0,parseFloat(Y))),X&&(Y=parseInt(Y*Z,10)/100),f.abs(Y-Z)<1e-6?1:Y%Z/parseFloat(Z)}function E(Y){return p(1,g(0,Y))}function W(Y){return parseInt(Y,16)}function G(Y){return Y.length==1?"0"+Y:""+Y}function L(Y){return Y<=1&&(Y=100*Y+"%"),Y}function q(Y){return f.round(255*parseFloat(Y)).toString(16)}function H(Y){return W(Y)/255}var V,te,ee,U=(te="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",ee="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+te),rgba:new RegExp("rgba"+ee),hsl:new RegExp("hsl"+te),hsla:new RegExp("hsla"+ee),hsv:new RegExp("hsv"+te),hsva:new RegExp("hsva"+ee),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function Q(Y){return!!U.CSS_UNIT.exec(Y)}o.exports?o.exports=v:(l=(function(){return v}).call(a,n,a,o))===void 0||(o.exports=l)})(Math)},20588:function(o,a,n){function l(f){try{if(!n.g.localStorage)return!1}catch{return!1}var s=n.g.localStorage[f];return s!=null&&String(s).toLowerCase()==="true"}o.exports=function(f,s){if(l("noDeprecation"))return f;var u=!1;return function(){if(!u){if(l("throwDeprecation"))throw new Error(s);l("traceDeprecation")?console.trace(s):console.warn(s),u=!0}return f.apply(this,arguments)}}},45920:function(o){o.exports=function(a){return a&&typeof a=="object"&&typeof a.copy=="function"&&typeof a.fill=="function"&&typeof a.readUInt8=="function"}},4936:function(o,a,n){var l=n(47216),f=n(65481),s=n(21099),u=n(9187);function d(N){return N.call.bind(N)}var h=typeof BigInt<"u",p=typeof Symbol<"u",g=d(Object.prototype.toString),y=d(Number.prototype.valueOf),v=d(String.prototype.valueOf),m=d(Boolean.prototype.valueOf);if(h)var b=d(BigInt.prototype.valueOf);if(p)var x=d(Symbol.prototype.valueOf);function _(N,E){if(typeof N!="object")return!1;try{return E(N),!0}catch{return!1}}function w(N){return g(N)==="[object Map]"}function k(N){return g(N)==="[object Set]"}function T(N){return g(N)==="[object WeakMap]"}function M(N){return g(N)==="[object WeakSet]"}function S(N){return g(N)==="[object ArrayBuffer]"}function C(N){return typeof ArrayBuffer<"u"&&(S.working?S(N):N instanceof ArrayBuffer)}function P(N){return g(N)==="[object DataView]"}function D(N){return typeof DataView<"u"&&(P.working?P(N):N instanceof DataView)}a.isArgumentsObject=l,a.isGeneratorFunction=f,a.isTypedArray=u,a.isPromise=function(N){return typeof Promise<"u"&&N instanceof Promise||N!==null&&typeof N=="object"&&typeof N.then=="function"&&typeof N.catch=="function"},a.isArrayBufferView=function(N){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(N):u(N)||D(N)},a.isUint8Array=function(N){return s(N)==="Uint8Array"},a.isUint8ClampedArray=function(N){return s(N)==="Uint8ClampedArray"},a.isUint16Array=function(N){return s(N)==="Uint16Array"},a.isUint32Array=function(N){return s(N)==="Uint32Array"},a.isInt8Array=function(N){return s(N)==="Int8Array"},a.isInt16Array=function(N){return s(N)==="Int16Array"},a.isInt32Array=function(N){return s(N)==="Int32Array"},a.isFloat32Array=function(N){return s(N)==="Float32Array"},a.isFloat64Array=function(N){return s(N)==="Float64Array"},a.isBigInt64Array=function(N){return s(N)==="BigInt64Array"},a.isBigUint64Array=function(N){return s(N)==="BigUint64Array"},w.working=typeof Map<"u"&&w(new Map),a.isMap=function(N){return typeof Map<"u"&&(w.working?w(N):N instanceof Map)},k.working=typeof Set<"u"&&k(new Set),a.isSet=function(N){return typeof Set<"u"&&(k.working?k(N):N instanceof Set)},T.working=typeof WeakMap<"u"&&T(new WeakMap),a.isWeakMap=function(N){return typeof WeakMap<"u"&&(T.working?T(N):N instanceof WeakMap)},M.working=typeof WeakSet<"u"&&M(new WeakSet),a.isWeakSet=function(N){return M(N)},S.working=typeof ArrayBuffer<"u"&&S(new ArrayBuffer),a.isArrayBuffer=C,P.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&P(new DataView(new ArrayBuffer(1),0,1)),a.isDataView=D;var O=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function R(N){return g(N)==="[object SharedArrayBuffer]"}function F(N){return O!==void 0&&(R.working===void 0&&(R.working=R(new O)),R.working?R(N):N instanceof O)}function A(N){return _(N,y)}function z(N){return _(N,v)}function B(N){return _(N,m)}function $(N){return h&&_(N,b)}function j(N){return p&&_(N,x)}a.isSharedArrayBuffer=F,a.isAsyncFunction=function(N){return g(N)==="[object AsyncFunction]"},a.isMapIterator=function(N){return g(N)==="[object Map Iterator]"},a.isSetIterator=function(N){return g(N)==="[object Set Iterator]"},a.isGeneratorObject=function(N){return g(N)==="[object Generator]"},a.isWebAssemblyCompiledModule=function(N){return g(N)==="[object WebAssembly.Module]"},a.isNumberObject=A,a.isStringObject=z,a.isBooleanObject=B,a.isBigIntObject=$,a.isSymbolObject=j,a.isBoxedPrimitive=function(N){return A(N)||z(N)||B(N)||$(N)||j(N)},a.isAnyArrayBuffer=function(N){return typeof Uint8Array<"u"&&(C(N)||F(N))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(N){Object.defineProperty(a,N,{enumerable:!1,value:function(){throw new Error(N+" is not supported in userland")}})})},43827:function(o,a,n){var l=n(90386),f=Object.getOwnPropertyDescriptors||function(j){for(var N=Object.keys(j),E={},W=0;W=G)return H;switch(H){case"%s":return String(W[E++]);case"%d":return Number(W[E++]);case"%j":try{return JSON.stringify(W[E++])}catch{return"[Circular]"}default:return H}}),q=W[E];E=3&&(E.depth=arguments[2]),arguments.length>=4&&(E.colors=arguments[3]),_(N)?E.showHidden=N:N&&a._extend(E,N),M(E.showHidden)&&(E.showHidden=!1),M(E.depth)&&(E.depth=2),M(E.colors)&&(E.colors=!1),M(E.customInspect)&&(E.customInspect=!0),E.colors&&(E.stylize=g),v(E,j,E.depth)}function g(j,N){var E=p.styles[N];return E?"\x1B["+p.colors[E][0]+"m"+j+"\x1B["+p.colors[E][1]+"m":j}function y(j,N){return j}function v(j,N,E){if(j.customInspect&&N&&O(N.inspect)&&N.inspect!==a.inspect&&(!N.constructor||N.constructor.prototype!==N)){var W=N.inspect(E,j);return T(W)||(W=v(j,W,E)),W}var G=function(Q,Y){if(M(Y))return Q.stylize("undefined","undefined");if(T(Y)){var Z="'"+JSON.stringify(Y).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Q.stylize(Z,"string")}return k(Y)?Q.stylize(""+Y,"number"):_(Y)?Q.stylize(""+Y,"boolean"):w(Y)?Q.stylize("null","null"):void 0}(j,N);if(G)return G;var L=Object.keys(N),q=function(Q){var Y={};return Q.forEach(function(Z,X){Y[Z]=!0}),Y}(L);if(j.showHidden&&(L=Object.getOwnPropertyNames(N)),D(N)&&(L.indexOf("message")>=0||L.indexOf("description")>=0))return m(N);if(L.length===0){if(O(N)){var H=N.name?": "+N.name:"";return j.stylize("[Function"+H+"]","special")}if(S(N))return j.stylize(RegExp.prototype.toString.call(N),"regexp");if(P(N))return j.stylize(Date.prototype.toString.call(N),"date");if(D(N))return m(N)}var V,te="",ee=!1,U=["{","}"];return x(N)&&(ee=!0,U=["[","]"]),O(N)&&(te=" [Function"+(N.name?": "+N.name:"")+"]"),S(N)&&(te=" "+RegExp.prototype.toString.call(N)),P(N)&&(te=" "+Date.prototype.toUTCString.call(N)),D(N)&&(te=" "+m(N)),L.length!==0||ee&&N.length!=0?E<0?S(N)?j.stylize(RegExp.prototype.toString.call(N),"regexp"):j.stylize("[Object]","special"):(j.seen.push(N),V=ee?function(Q,Y,Z,X,re){for(var ie=[],le=0,se=Y.length;le60?Z[0]+(Y===""?"":Y+` `)+" "+Q.join(`, - `)+" "+Z[1]:Z[0]+Y+" "+Q.join(", ")+" "+Z[1]}(V,te,U)):U[0]+te+U[1]}function g(j){return"["+Error.prototype.toString.call(j)+"]"}function b(j,N,E,W,G,L){var q,H,V;if((V=Object.getOwnPropertyDescriptor(N,G)||{value:N[G]}).get?H=V.set?j.stylize("[Getter/Setter]","special"):j.stylize("[Getter]","special"):V.set&&(H=j.stylize("[Setter]","special")),z(W,G)||(q="["+G+"]"),H||(j.seen.indexOf(V.value)<0?(H=w(E)?v(j,V.value,null):v(j,V.value,E-1)).indexOf(` + `)+" "+Z[1]:Z[0]+Y+" "+Q.join(", ")+" "+Z[1]}(V,te,U)):U[0]+te+U[1]}function m(j){return"["+Error.prototype.toString.call(j)+"]"}function b(j,N,E,W,G,L){var q,H,V;if((V=Object.getOwnPropertyDescriptor(N,G)||{value:N[G]}).get?H=V.set?j.stylize("[Getter/Setter]","special"):j.stylize("[Getter]","special"):V.set&&(H=j.stylize("[Setter]","special")),z(W,G)||(q="["+G+"]"),H||(j.seen.indexOf(V.value)<0?(H=w(E)?v(j,V.value,null):v(j,V.value,E-1)).indexOf(` `)>-1&&(H=L?H.split(` `).map(function(te){return" "+te}).join(` `).slice(2):` `+H.split(` `).map(function(te){return" "+te}).join(` -`)):H=j.stylize("[Circular]","special")),M(q)){if(L&&G.match(/^\d+$/))return H;(q=JSON.stringify(""+G)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(q=q.slice(1,-1),q=j.stylize(q,"name")):(q=q.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),q=j.stylize(q,"string"))}return q+": "+H}function x(j){return Array.isArray(j)}function _(j){return typeof j=="boolean"}function w(j){return j===null}function k(j){return typeof j=="number"}function T(j){return typeof j=="string"}function M(j){return j===void 0}function S(j){return C(j)&&R(j)==="[object RegExp]"}function C(j){return typeof j=="object"&&j!==null}function P(j){return C(j)&&R(j)==="[object Date]"}function D(j){return C(j)&&(R(j)==="[object Error]"||j instanceof Error)}function O(j){return typeof j=="function"}function R(j){return Object.prototype.toString.call(j)}function F(j){return j<10?"0"+j.toString(10):j.toString(10)}a.debuglog=function(j){if(j=j.toUpperCase(),!c[j])if(d.test(j)){var N=l.pid;c[j]=function(){var E=a.format.apply(a,arguments);console.error("%s %d: %s",j,N,E)}}else c[j]=function(){};return c[j]},a.inspect=p,p.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},p.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},a.types=n(4936),a.isArray=x,a.isBoolean=_,a.isNull=w,a.isNullOrUndefined=function(j){return j==null},a.isNumber=k,a.isString=T,a.isSymbol=function(j){return typeof j=="symbol"},a.isUndefined=M,a.isRegExp=S,a.types.isRegExp=S,a.isObject=C,a.isDate=P,a.types.isDate=P,a.isError=D,a.types.isNativeError=D,a.isFunction=O,a.isPrimitive=function(j){return j===null||typeof j=="boolean"||typeof j=="number"||typeof j=="string"||typeof j=="symbol"||j===void 0},a.isBuffer=n(45920);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function z(j,N){return Object.prototype.hasOwnProperty.call(j,N)}a.log=function(){var j,N;console.log("%s - %s",(N=[F((j=new Date).getHours()),F(j.getMinutes()),F(j.getSeconds())].join(":"),[j.getDate(),A[j.getMonth()],N].join(" ")),a.format.apply(a,arguments))},a.inherits=n(42018),a._extend=function(j,N){if(!N||!C(N))return j;for(var E=Object.keys(N),W=E.length;W--;)j[E[W]]=N[E[W]];return j};var B=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function $(j,N){if(!j){var E=new Error("Promise was rejected with a falsy value");E.reason=j,j=E}return N(j)}a.promisify=function(j){if(typeof j!="function")throw new TypeError('The "original" argument must be of type Function');if(B&&j[B]){var N;if(typeof(N=j[B])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(N,B,{value:N,enumerable:!1,writable:!1,configurable:!0}),N}function N(){for(var E,W,G=new Promise(function(H,V){E=H,W=V}),L=[],q=0;q"u"?n.g:globalThis,m=f(),y=s("String.prototype.slice"),v={},g=Object.getPrototypeOf;h&&c&&g&&l(m,function(x){if(typeof p[x]=="function"){var _=new p[x];if(Symbol.toStringTag in _){var w=g(_),k=c(w,Symbol.toStringTag);if(!k){var T=g(w);k=c(T,Symbol.toStringTag)}v[x]=k.get}}});var b=n(9187);o.exports=function(x){return!!b(x)&&(h&&Symbol.toStringTag in x?function(_){var w=!1;return l(v,function(k,T){if(!w)try{var M=k.call(_);M===T&&(w=M)}catch{}}),w}(x):y(d(x),8,-1))}},3961:function(o,a,n){var l=n(63489),f=n(56131),s=l.instance();function c(g){this.local=this.regionalOptions[g||""]||this.regionalOptions[""]}c.prototype=new l.baseCalendar,f(c.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(g,b){if(typeof g=="string"){var x=g.match(h);return x?x[0]:""}var _=this._validateYear(g),w=g.month(),k=""+this.toChineseMonth(_,w);return b&&k.length<2&&(k="0"+k),this.isIntercalaryMonth(_,w)&&(k+="i"),k},monthNames:function(g){if(typeof g=="string"){var b=g.match(p);return b?b[0]:""}var x=this._validateYear(g),_=g.month(),w=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(x,_)-1];return this.isIntercalaryMonth(x,_)&&(w="闰"+w),w},monthNamesShort:function(g){if(typeof g=="string"){var b=g.match(m);return b?b[0]:""}var x=this._validateYear(g),_=g.month(),w=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(x,_)-1];return this.isIntercalaryMonth(x,_)&&(w="闰"+w),w},parseMonth:function(g,b){g=this._validateYear(g);var x,_=parseInt(b);if(isNaN(_))b[0]==="闰"&&(x=!0,b=b.substring(1)),b[b.length-1]==="月"&&(b=b.substring(0,b.length-1)),_=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(b);else{var w=b[b.length-1];x=w==="i"||w==="I"}return this.toMonthIndex(g,_,x)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(g,b){if(g.year&&(g=g.year()),typeof g!="number"||g<1888||g>2111)throw b.replace(/\{0\}/,this.local.name);return g},toMonthIndex:function(g,b,x){var _=this.intercalaryMonth(g);if(x&&b!==_||b<1||b>12)throw l.local.invalidMonth.replace(/\{0\}/,this.local.name);return _?!x&&b<=_?b-1:b:b-1},toChineseMonth:function(g,b){g.year&&(b=(g=g.year()).month());var x=this.intercalaryMonth(g);if(b<0||b>(x?12:11))throw l.local.invalidMonth.replace(/\{0\}/,this.local.name);return x?b>13},isIntercalaryMonth:function(g,b){g.year&&(b=(g=g.year()).month());var x=this.intercalaryMonth(g);return!!x&&x===b},leapYear:function(g){return this.intercalaryMonth(g)!==0},weekOfYear:function(g,b,x){var _,w=this._validateYear(g,l.local.invalidyear),k=v[w-v[0]],T=k>>9&4095,M=k>>5&15,S=31&k;(_=s.newDate(T,M,S)).add(4-(_.dayOfWeek()||7),"d");var C=this.toJD(g,b,x)-_.toJD();return 1+Math.floor(C/7)},monthsInYear:function(g){return this.leapYear(g)?13:12},daysInMonth:function(g,b){g.year&&(b=g.month(),g=g.year()),g=this._validateYear(g);var x=y[g-y[0]];if(b>(x>>13?12:11))throw l.local.invalidMonth.replace(/\{0\}/,this.local.name);return x&1<<12-b?30:29},weekDay:function(g,b,x){return(this.dayOfWeek(g,b,x)||7)<6},toJD:function(g,b,x){var _=this._validate(g,k,x,l.local.invalidDate);g=this._validateYear(_.year()),b=_.month(),x=_.day();var w=this.isIntercalaryMonth(g,b),k=this.toChineseMonth(g,b),T=function(M,S,C,P,D){var O,R,F;if(typeof M=="object")R=M,O=S||{};else{var A;if(!(typeof M=="number"&&M>=1888&&M<=2111))throw new Error("Lunar year outside range 1888-2111");if(!(typeof S=="number"&&S>=1&&S<=12))throw new Error("Lunar month outside range 1 - 12");if(!(typeof C=="number"&&C>=1&&C<=30))throw new Error("Lunar day outside range 1 - 30");typeof P=="object"?(A=!1,O=P):(A=!!P,O={}),R={year:M,month:S,day:C,isIntercalary:A}}F=R.day-1;var z,B=y[R.year-y[0]],$=B>>13;z=$&&(R.month>$||R.isIntercalary)?R.month:R.month-1;for(var j=0;j>9&4095,(N>>5&15)-1,(31&N)+F);return O.year=E.getFullYear(),O.month=1+E.getMonth(),O.day=E.getDate(),O}(g,k,x,w);return s.toJD(T.year,T.month,T.day)},fromJD:function(g){var b=s.fromJD(g),x=function(w,k,T,M){var S,C;if(typeof w=="object")S=w,C=k||{};else{if(!(typeof w=="number"&&w>=1888&&w<=2111))throw new Error("Solar year outside range 1888-2111");if(!(typeof k=="number"&&k>=1&&k<=12))throw new Error("Solar month outside range 1 - 12");if(!(typeof T=="number"&&T>=1&&T<=31))throw new Error("Solar day outside range 1 - 31");S={year:w,month:k,day:T},C={}}var P=v[S.year-v[0]],D=S.year<<9|S.month<<5|S.day;C.year=D>=P?S.year:S.year-1,P=v[C.year-v[0]];var O,R=new Date(P>>9&4095,(P>>5&15)-1,31&P),F=new Date(S.year,S.month-1,S.day);O=Math.round((F-R)/864e5);var A,z=y[C.year-y[0]];for(A=0;A<13;A++){var B=z&1<<12-A?30:29;if(O>13;return!$||A<$?(C.isIntercalary=!1,C.month=1+A):A===$?(C.isIntercalary=!0,C.month=A):(C.isIntercalary=!1,C.month=A),C.day=1+O,C}(b.year(),b.month(),b.day()),_=this.toMonthIndex(x.year,x.month,x.isIntercalary);return this.newDate(x.year,_,x.day)},fromString:function(g){var b=g.match(d),x=this._validateYear(+b[1]),_=+b[2],w=!!b[3],k=this.toMonthIndex(x,_,w),T=+b[4];return this.newDate(x,k,T)},add:function(g,b,x){var _=g.year(),w=g.month(),k=this.isIntercalaryMonth(_,w),T=this.toChineseMonth(_,w),M=Object.getPrototypeOf(c.prototype).add.call(this,g,b,x);if(x==="y"){var S=M.year(),C=M.month(),P=this.isIntercalaryMonth(S,T),D=k&&P?this.toMonthIndex(S,T,!0):this.toMonthIndex(S,T,!1);D!==C&&M.month(D)}return M}});var d=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,h=/^\d?\d[iI]?/m,p=/^闰?十?[一二三四五六七八九]?月/m,m=/^闰?十?[一二三四五六七八九]?/m;l.calendars.chinese=c;var y=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],v=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904]},38751:function(o,a,n){var l=n(63489),f=n(56131);function s(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(c){var d=this._validate(c,this.minMonth,this.minDay,l.local.invalidYear);return(c=d.year()+(d.year()<0?1:0))%4==3||c%4==-1},monthsInYear:function(c){return this._validate(c,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear),13},weekOfYear:function(c,d,h){var p=this.newDate(c,d,h);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(c,d){var h=this._validate(c,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===13&&this.leapYear(h.year())?1:0)},weekDay:function(c,d,h){return(this.dayOfWeek(c,d,h)||7)<6},toJD:function(c,d,h){var p=this._validate(c,d,h,l.local.invalidDate);return(c=p.year())<0&&c++,p.day()+30*(p.month()-1)+365*(c-1)+Math.floor(c/4)+this.jdEpoch-1},fromJD:function(c){var d=Math.floor(c)+.5-this.jdEpoch,h=Math.floor((d-Math.floor((d+366)/1461))/365)+1;h<=0&&h--,d=Math.floor(c)+.5-this.newDate(h,1,1).toJD();var p=Math.floor(d/30)+1,m=d-30*(p-1)+1;return this.newDate(h,p,m)}}),l.calendars.coptic=s},86825:function(o,a,n){var l=n(63489),f=n(56131);function s(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(d){return this._validate(d,this.minMonth,this.minDay,l.local.invalidYear),!1},monthsInYear:function(d){return this._validate(d,this.minMonth,this.minDay,l.local.invalidYear),13},daysInYear:function(d){return this._validate(d,this.minMonth,this.minDay,l.local.invalidYear),400},weekOfYear:function(d,h,p){var m=this.newDate(d,h,p);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/8)+1},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(d,h,p){return(this._validate(d,h,p,l.local.invalidDate).day()+1)%8},weekDay:function(d,h,p){var m=this.dayOfWeek(d,h,p);return m>=2&&m<=6},extraInfo:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);return{century:c[Math.floor((m.year()-1)/100)+1]||""}},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);return d=m.year()+(m.year()<0?1:0),h=m.month(),(p=m.day())+(h>1?16:0)+(h>2?32*(h-2):0)+400*(d-1)+this.jdEpoch-1},fromJD:function(d){d=Math.floor(d+.5)-Math.floor(this.jdEpoch)-1;var h=Math.floor(d/400)+1;d-=400*(h-1),d+=d>15?16:0;var p=Math.floor(d/32)+1,m=d-32*(p-1)+1;return this.newDate(h<=0?h-1:h,p,m)}});var c={20:"Fruitbat",21:"Anchovy"};l.calendars.discworld=s},37715:function(o,a,n){var l=n(63489),f=n(56131);function s(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(c){var d=this._validate(c,this.minMonth,this.minDay,l.local.invalidYear);return(c=d.year()+(d.year()<0?1:0))%4==3||c%4==-1},monthsInYear:function(c){return this._validate(c,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear),13},weekOfYear:function(c,d,h){var p=this.newDate(c,d,h);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(c,d){var h=this._validate(c,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===13&&this.leapYear(h.year())?1:0)},weekDay:function(c,d,h){return(this.dayOfWeek(c,d,h)||7)<6},toJD:function(c,d,h){var p=this._validate(c,d,h,l.local.invalidDate);return(c=p.year())<0&&c++,p.day()+30*(p.month()-1)+365*(c-1)+Math.floor(c/4)+this.jdEpoch-1},fromJD:function(c){var d=Math.floor(c)+.5-this.jdEpoch,h=Math.floor((d-Math.floor((d+366)/1461))/365)+1;h<=0&&h--,d=Math.floor(c)+.5-this.newDate(h,1,1).toJD();var p=Math.floor(d/30)+1,m=d-30*(p-1)+1;return this.newDate(h,p,m)}}),l.calendars.ethiopian=s},99384:function(o,a,n){var l=n(63489),f=n(56131);function s(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}function c(d,h){return d-h*Math.floor(d/h)}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return this._leapYear(h.year())},_leapYear:function(d){return c(7*(d=d<0?d+1:d)+1,19)<7},monthsInYear:function(d){return this._validate(d,this.minMonth,this.minDay,l.local.invalidYear),this._leapYear(d.year?d.year():d)?13:12},weekOfYear:function(d,h,p){var m=this.newDate(d,h,p);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(d){return d=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear).year(),this.toJD(d===-1?1:d+1,7,1)-this.toJD(d,7,1)},daysInMonth:function(d,h){return d.year&&(h=d.month(),d=d.year()),this._validate(d,h,this.minDay,l.local.invalidMonth),h===12&&this.leapYear(d)||h===8&&c(this.daysInYear(d),10)===5?30:h===9&&c(this.daysInYear(d),10)===3?29:this.daysPerMonth[h-1]},weekDay:function(d,h,p){return this.dayOfWeek(d,h,p)!==6},extraInfo:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);return{yearType:(this.leapYear(m)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(m)%10-3]}},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);d=m.year(),h=m.month(),p=m.day();var y=d<=0?d+1:d,v=this.jdEpoch+this._delay1(y)+this._delay2(y)+p+1;if(h<7){for(var g=7;g<=this.monthsInYear(d);g++)v+=this.daysInMonth(d,g);for(g=1;g=this.toJD(h===-1?1:h+1,7,1);)h++;for(var p=dthis.toJD(h,p,this.daysInMonth(h,p));)p++;var m=d-this.toJD(h,p,1)+1;return this.newDate(h,p,m)}}),l.calendars.hebrew=s},43805:function(o,a,n){var l=n(63489),f=n(56131);function s(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(c){return(11*this._validate(c,this.minMonth,this.minDay,l.local.invalidYear).year()+14)%30<11},weekOfYear:function(c,d,h){var p=this.newDate(c,d,h);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInYear:function(c){return this.leapYear(c)?355:354},daysInMonth:function(c,d){var h=this._validate(c,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===12&&this.leapYear(h.year())?1:0)},weekDay:function(c,d,h){return this.dayOfWeek(c,d,h)!==5},toJD:function(c,d,h){var p=this._validate(c,d,h,l.local.invalidDate);return c=p.year(),d=p.month(),c=c<=0?c+1:c,(h=p.day())+Math.ceil(29.5*(d-1))+354*(c-1)+Math.floor((3+11*c)/30)+this.jdEpoch-1},fromJD:function(c){c=Math.floor(c)+.5;var d=Math.floor((30*(c-this.jdEpoch)+10646)/10631);d=d<=0?d-1:d;var h=Math.min(12,Math.ceil((c-29-this.toJD(d,1,1))/29.5)+1),p=c-this.toJD(d,h,1)+1;return this.newDate(d,h,p)}}),l.calendars.islamic=s},88874:function(o,a,n){var l=n(63489),f=n(56131);function s(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(c){var d=this._validate(c,this.minMonth,this.minDay,l.local.invalidYear);return(c=d.year()<0?d.year()+1:d.year())%4==0},weekOfYear:function(c,d,h){var p=this.newDate(c,d,h);return p.add(4-(p.dayOfWeek()||7),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(c,d){var h=this._validate(c,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===2&&this.leapYear(h.year())?1:0)},weekDay:function(c,d,h){return(this.dayOfWeek(c,d,h)||7)<6},toJD:function(c,d,h){var p=this._validate(c,d,h,l.local.invalidDate);return c=p.year(),d=p.month(),h=p.day(),c<0&&c++,d<=2&&(c--,d+=12),Math.floor(365.25*(c+4716))+Math.floor(30.6001*(d+1))+h-1524.5},fromJD:function(c){var d=Math.floor(c+.5)+1524,h=Math.floor((d-122.1)/365.25),p=Math.floor(365.25*h),m=Math.floor((d-p)/30.6001),y=m-Math.floor(m<14?1:13),v=h-Math.floor(y>2?4716:4715),g=d-p-Math.floor(30.6001*m);return v<=0&&v--,this.newDate(v,y,g)}}),l.calendars.julian=s},83290:function(o,a,n){var l=n(63489),f=n(56131);function s(h){this.local=this.regionalOptions[h||""]||this.regionalOptions[""]}function c(h,p){return h-p*Math.floor(h/p)}function d(h,p){return c(h-1,p)+1}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(h){return this._validate(h,this.minMonth,this.minDay,l.local.invalidYear),!1},formatYear:function(h){h=this._validate(h,this.minMonth,this.minDay,l.local.invalidYear).year();var p=Math.floor(h/400);return h%=400,h+=h<0?400:0,p+"."+Math.floor(h/20)+"."+h%20},forYear:function(h){if((h=h.split(".")).length<3)throw"Invalid Mayan year";for(var p=0,m=0;m19||m>0&&y<0)throw"Invalid Mayan year";p=20*p+y}return p},monthsInYear:function(h){return this._validate(h,this.minMonth,this.minDay,l.local.invalidYear),18},weekOfYear:function(h,p,m){return this._validate(h,p,m,l.local.invalidDate),0},daysInYear:function(h){return this._validate(h,this.minMonth,this.minDay,l.local.invalidYear),360},daysInMonth:function(h,p){return this._validate(h,p,this.minDay,l.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(h,p,m){return this._validate(h,p,m,l.local.invalidDate).day()},weekDay:function(h,p,m){return this._validate(h,p,m,l.local.invalidDate),!0},extraInfo:function(h,p,m){var y=this._validate(h,p,m,l.local.invalidDate).toJD(),v=this._toHaab(y),g=this._toTzolkin(y);return{haabMonthName:this.local.haabMonths[v[0]-1],haabMonth:v[0],haabDay:v[1],tzolkinDayName:this.local.tzolkinMonths[g[0]-1],tzolkinDay:g[0],tzolkinTrecena:g[1]}},_toHaab:function(h){var p=c(8+(h-=this.jdEpoch)+340,365);return[Math.floor(p/20)+1,c(p,20)]},_toTzolkin:function(h){return[d(20+(h-=this.jdEpoch),20),d(h+4,13)]},toJD:function(h,p,m){var y=this._validate(h,p,m,l.local.invalidDate);return y.day()+20*y.month()+360*y.year()+this.jdEpoch},fromJD:function(h){h=Math.floor(h)+.5-this.jdEpoch;var p=Math.floor(h/360);h%=360,h+=h<0?360:0;var m=Math.floor(h/20),y=h%20;return this.newDate(p,m,y)}}),l.calendars.mayan=s},29108:function(o,a,n){var l=n(63489),f=n(56131);function s(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar;var c=l.instance("gregorian");f(s.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear);return c.leapYear(h.year()+(h.year()<1?1:0)+1469)},weekOfYear:function(d,h,p){var m=this.newDate(d,h,p);return m.add(1-(m.dayOfWeek()||7),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(d,h,p){return(this.dayOfWeek(d,h,p)||7)<6},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidMonth);(d=m.year())<0&&d++;for(var y=m.day(),v=1;v=this.toJD(h+1,1,1);)h++;for(var p=d-Math.floor(this.toJD(h,1,1)+.5)+1,m=1;p>this.daysInMonth(h,m);)p-=this.daysInMonth(h,m),m++;return this.newDate(h,m,p)}}),l.calendars.nanakshahi=s},55422:function(o,a,n){var l=n(63489),f=n(56131);function s(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(c){return this.daysInYear(c)!==this.daysPerYear},weekOfYear:function(c,d,h){var p=this.newDate(c,d,h);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInYear:function(c){if(c=this._validate(c,this.minMonth,this.minDay,l.local.invalidYear).year(),this.NEPALI_CALENDAR_DATA[c]===void 0)return this.daysPerYear;for(var d=0,h=this.minMonth;h<=12;h++)d+=this.NEPALI_CALENDAR_DATA[c][h];return d},daysInMonth:function(c,d){return c.year&&(d=c.month(),c=c.year()),this._validate(c,d,this.minDay,l.local.invalidMonth),this.NEPALI_CALENDAR_DATA[c]===void 0?this.daysPerMonth[d-1]:this.NEPALI_CALENDAR_DATA[c][d]},weekDay:function(c,d,h){return this.dayOfWeek(c,d,h)!==6},toJD:function(c,d,h){var p=this._validate(c,d,h,l.local.invalidDate);c=p.year(),d=p.month(),h=p.day();var m=l.instance(),y=0,v=d,g=c;this._createMissingCalendarData(c);var b=c-(v>9||v===9&&h>=this.NEPALI_CALENDAR_DATA[g][0]?56:57);for(d!==9&&(y=h,v--);v!==9;)v<=0&&(v=12,g--),y+=this.NEPALI_CALENDAR_DATA[g][v],v--;return d===9?(y+=h-this.NEPALI_CALENDAR_DATA[g][0])<0&&(y+=m.daysInYear(b)):y+=this.NEPALI_CALENDAR_DATA[g][9]-this.NEPALI_CALENDAR_DATA[g][0],m.newDate(b,1,1).add(y,"d").toJD()},fromJD:function(c){var d=l.instance().fromJD(c),h=d.year(),p=d.dayOfYear(),m=h+56;this._createMissingCalendarData(m);for(var y=9,v=this.NEPALI_CALENDAR_DATA[m][0],g=this.NEPALI_CALENDAR_DATA[m][y]-v+1;p>g;)++y>12&&(y=1,m++),g+=this.NEPALI_CALENDAR_DATA[m][y];var b=this.NEPALI_CALENDAR_DATA[m][y]-(g-p);return this.newDate(m,y,b)},_createMissingCalendarData:function(c){var d=this.daysPerMonth.slice(0);d.unshift(17);for(var h=c-1;h0?474:473))%2820+474+38)%2816<682},weekOfYear:function(d,h,p){var m=this.newDate(d,h,p);return m.add(-(m.dayOfWeek()+1)%7,"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(d,h,p){return this.dayOfWeek(d,h,p)!==5},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);d=m.year(),h=m.month(),p=m.day();var y=d-(d>=0?474:473),v=474+c(y,2820);return p+(h<=7?31*(h-1):30*(h-1)+6)+Math.floor((682*v-110)/2816)+365*(v-1)+1029983*Math.floor(y/2820)+this.jdEpoch-1},fromJD:function(d){var h=(d=Math.floor(d)+.5)-this.toJD(475,1,1),p=Math.floor(h/1029983),m=c(h,1029983),y=2820;if(m!==1029982){var v=Math.floor(m/366),g=c(m,366);y=Math.floor((2134*v+2816*g+2815)/1028522)+v+1}var b=y+2820*p+474;b=b<=0?b-1:b;var x=d-this.toJD(b,1,1)+1,_=x<=186?Math.ceil(x/31):Math.ceil((x-6)/30),w=d-this.toJD(b,_,1)+1;return this.newDate(b,_,w)}}),l.calendars.persian=s,l.calendars.jalali=s},31320:function(o,a,n){var l=n(63489),f=n(56131),s=l.instance();function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new l.baseCalendar,f(c.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(h.year()),s.leapYear(d)},weekOfYear:function(d,h,p){var m=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(m.year()),s.weekOfYear(d,m.month(),m.day())},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(d,h,p){return(this.dayOfWeek(d,h,p)||7)<6},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);return d=this._t2gYear(m.year()),s.toJD(d,m.month(),m.day())},fromJD:function(d){var h=s.fromJD(d),p=this._g2tYear(h.year());return this.newDate(p,h.month(),h.day())},_t2gYear:function(d){return d+this.yearsOffset+(d>=-this.yearsOffset&&d<=-1?1:0)},_g2tYear:function(d){return d-this.yearsOffset-(d>=1&&d<=this.yearsOffset?1:0)}}),l.calendars.taiwan=c},51367:function(o,a,n){var l=n(63489),f=n(56131),s=l.instance();function c(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}c.prototype=new l.baseCalendar,f(c.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(h.year()),s.leapYear(d)},weekOfYear:function(d,h,p){var m=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(m.year()),s.weekOfYear(d,m.month(),m.day())},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(d,h,p){return(this.dayOfWeek(d,h,p)||7)<6},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate);return d=this._t2gYear(m.year()),s.toJD(d,m.month(),m.day())},fromJD:function(d){var h=s.fromJD(d),p=this._g2tYear(h.year());return this.newDate(p,h.month(),h.day())},_t2gYear:function(d){return d-this.yearsOffset-(d>=1&&d<=this.yearsOffset?1:0)},_g2tYear:function(d){return d+this.yearsOffset+(d>=-this.yearsOffset&&d<=-1?1:0)}}),l.calendars.thai=c},21457:function(o,a,n){var l=n(63489),f=n(56131);function s(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return this.daysInYear(h.year())===355},weekOfYear:function(d,h,p){var m=this.newDate(d,h,p);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(d){for(var h=0,p=1;p<=12;p++)h+=this.daysInMonth(d,p);return h},daysInMonth:function(d,h){for(var p=this._validate(d,h,this.minDay,l.local.invalidMonth).toJD()-24e5+.5,m=0,y=0;yp)return c[m]-c[m-1];m++}return 30},weekDay:function(d,h,p){return this.dayOfWeek(d,h,p)!==5},toJD:function(d,h,p){var m=this._validate(d,h,p,l.local.invalidDate),y=12*(m.year()-1)+m.month()-15292;return m.day()+c[y-1]-1+24e5-.5},fromJD:function(d){for(var h=d-24e5+.5,p=0,m=0;mh);m++)p++;var y=p+15292,v=Math.floor((y-1)/12),g=v+1,b=y-12*v,x=h-c[p-1]+1;return this.newDate(g,b,x)},isValid:function(d,h,p){var m=l.baseCalendar.prototype.isValid.apply(this,arguments);return m&&(m=(d=d.year!=null?d.year:d)>=1276&&d<=1500),m},_validate:function(d,h,p,m){var y=l.baseCalendar.prototype._validate.apply(this,arguments);if(y.year<1276||y.year>1500)throw m.replace(/\{0\}/,this.local.name);return y}}),l.calendars.ummalqura=s;var c=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},63489:function(o,a,n){var l=n(56131);function f(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function s(m,y,v,g){if(this._calendar=m,this._year=y,this._month=v,this._day=g,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(p.local.invalidDate||p.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function c(m,y){return"000000".substring(0,y-(m=""+m).length)+m}function d(){this.shortYearCutoff="+10"}function h(m){this.local=this.regionalOptions[m]||this.regionalOptions[""]}l(f.prototype,{instance:function(m,y){m=(m||"gregorian").toLowerCase(),y=y||"";var v=this._localCals[m+"-"+y];if(!v&&this.calendars[m]&&(v=new this.calendars[m](y),this._localCals[m+"-"+y]=v),!v)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,m);return v},newDate:function(m,y,v,g,b){return(g=(m!=null&&m.year?m.calendar():typeof g=="string"?this.instance(g,b):g)||this.instance()).newDate(m,y,v)},substituteDigits:function(m){return function(y){return(y+"").replace(/[0-9]/g,function(v){return m[v]})}},substituteChineseDigits:function(m,y){return function(v){for(var g="",b=0;v>0;){var x=v%10;g=(x===0?"":m[x]+y[b])+g,b++,v=Math.floor(v/10)}return g.indexOf(m[1]+y[1])===0&&(g=g.substr(1)),g||m[0]}}}),l(s.prototype,{newDate:function(m,y,v){return this._calendar.newDate(m??this,y,v)},year:function(m){return arguments.length===0?this._year:this.set(m,"y")},month:function(m){return arguments.length===0?this._month:this.set(m,"m")},day:function(m){return arguments.length===0?this._day:this.set(m,"d")},date:function(m,y,v){if(!this._calendar.isValid(m,y,v))throw(p.local.invalidDate||p.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=m,this._month=y,this._day=v,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(m,y){return this._calendar.add(this,m,y)},set:function(m,y){return this._calendar.set(this,m,y)},compareTo:function(m){if(this._calendar.name!==m._calendar.name)throw(p.local.differentCalendars||p.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,m._calendar.local.name);var y=this._year!==m._year?this._year-m._year:this._month!==m._month?this.monthOfYear()-m.monthOfYear():this._day-m._day;return y===0?0:y<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(m){return this._calendar.fromJD(m)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(m){return this._calendar.fromJSDate(m)},toString:function(){return(this.year()<0?"-":"")+c(Math.abs(this.year()),4)+"-"+c(this.month(),2)+"-"+c(this.day(),2)}}),l(d.prototype,{_validateLevel:0,newDate:function(m,y,v){return m==null?this.today():(m.year&&(this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate),v=m.day(),y=m.month(),m=m.year()),new s(this,m,y,v))},today:function(){return this.fromJSDate(new Date)},epoch:function(m){return this._validate(m,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(m){var y=this._validate(m,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return(y.year()<0?"-":"")+c(Math.abs(y.year()),4)},monthsInYear:function(m){return this._validate(m,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear),12},monthOfYear:function(m,y){var v=this._validate(m,y,this.minDay,p.local.invalidMonth||p.regionalOptions[""].invalidMonth);return(v.month()+this.monthsInYear(v)-this.firstMonth)%this.monthsInYear(v)+this.minMonth},fromMonthOfYear:function(m,y){var v=(y+this.firstMonth-2*this.minMonth)%this.monthsInYear(m)+this.minMonth;return this._validate(m,v,this.minDay,p.local.invalidMonth||p.regionalOptions[""].invalidMonth),v},daysInYear:function(m){var y=this._validate(m,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return this.leapYear(y)?366:365},dayOfYear:function(m,y,v){var g=this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate);return g.toJD()-this.newDate(g.year(),this.fromMonthOfYear(g.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(m,y,v){var g=this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(g))+2)%this.daysInWeek()},extraInfo:function(m,y,v){return this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate),{}},add:function(m,y,v){return this._validate(m,this.minMonth,this.minDay,p.local.invalidDate||p.regionalOptions[""].invalidDate),this._correctAdd(m,this._add(m,y,v),y,v)},_add:function(m,y,v){if(this._validateLevel++,v==="d"||v==="w"){var g=m.toJD()+y*(v==="w"?this.daysInWeek():1),b=m.calendar().fromJD(g);return this._validateLevel--,[b.year(),b.month(),b.day()]}try{var x=m.year()+(v==="y"?y:0),_=m.monthOfYear()+(v==="m"?y:0);b=m.day(),v==="y"?(m.month()!==this.fromMonthOfYear(x,_)&&(_=this.newDate(x,m.month(),this.minDay).monthOfYear()),_=Math.min(_,this.monthsInYear(x)),b=Math.min(b,this.daysInMonth(x,this.fromMonthOfYear(x,_)))):v==="m"&&(function(k){for(;_T-1+k.minMonth;)x++,_-=T,T=k.monthsInYear(x)}(this),b=Math.min(b,this.daysInMonth(x,this.fromMonthOfYear(x,_))));var w=[x,this.fromMonthOfYear(x,_),b];return this._validateLevel--,w}catch(k){throw this._validateLevel--,k}},_correctAdd:function(m,y,v,g){if(!(this.hasYearZero||g!=="y"&&g!=="m"||y[0]!==0&&m.year()>0==y[0]>0)){var b={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[g],x=v<0?-1:1;y=this._add(m,v*b[0]+x*b[1],b[2])}return m.date(y[0],y[1],y[2])},set:function(m,y,v){this._validate(m,this.minMonth,this.minDay,p.local.invalidDate||p.regionalOptions[""].invalidDate);var g=v==="y"?y:m.year(),b=v==="m"?y:m.month(),x=v==="d"?y:m.day();return v!=="y"&&v!=="m"||(x=Math.min(x,this.daysInMonth(g,b))),m.date(g,b,x)},isValid:function(m,y,v){this._validateLevel++;var g=this.hasYearZero||m!==0;if(g){var b=this.newDate(m,y,this.minDay);g=y>=this.minMonth&&y-this.minMonth=this.minDay&&v-this.minDay13.5?13:1),T=b-(k>2.5?4716:4715);return T<=0&&T--,this.newDate(T,k,w)},toJSDate:function(m,y,v){var g=this._validate(m,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate),b=new Date(g.year(),g.month()-1,g.day());return b.setHours(0),b.setMinutes(0),b.setSeconds(0),b.setMilliseconds(0),b.setHours(b.getHours()>12?b.getHours()+2:0),b},fromJSDate:function(m){return this.newDate(m.getFullYear(),m.getMonth()+1,m.getDate())}});var p=o.exports=new f;p.cdate=s,p.baseCalendar=d,p.calendars.gregorian=h},94338:function(o,a,n){var l=n(56131),f=n(63489);l(f.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),f.local=f.regionalOptions[""],l(f.cdate.prototype,{formatDate:function(s,c){return typeof s!="string"&&(c=s,s=""),this._calendar.formatDate(s||"",this,c)}}),l(f.baseCalendar.prototype,{UNIX_EPOCH:f.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:f.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(s,c,d){if(typeof s!="string"&&(d=c,c=s,s=""),!c)return"";if(c.calendar()!==this)throw f.local.invalidFormat||f.regionalOptions[""].invalidFormat;s=s||this.local.dateFormat;for(var h,p,m,y=(d=d||{}).dayNamesShort||this.local.dayNamesShort,v=d.dayNames||this.local.dayNames,g=d.monthNumbers||this.local.monthNumbers,b=d.monthNamesShort||this.local.monthNamesShort,x=d.monthNames||this.local.monthNames,_=(d.calculateWeek||this.local.calculateWeek,function(R,F){for(var A=1;O+A1}),w=function(R,F,A,z){var B=""+F;if(_(R,z))for(;B.length1},P=function(N,E){var W=C(N,E),G=[2,3,W?4:2,W?4:2,10,11,20]["oyYJ@!".indexOf(N)+1],L=new RegExp("^-?\\d{1,"+G+"}"),q=c.substring(z).match(L);if(!q)throw(f.local.missingNumberAt||f.regionalOptions[""].missingNumberAt).replace(/\{0\}/,z);return z+=q[0].length,parseInt(q[0],10)},D=this,O=function(){if(typeof v=="function"){C("m");var N=v.call(D,c.substring(z));return z+=N.length,N}return P("m")},R=function(N,E,W,G){for(var L=C(N,G)?W:E,q=0;q-1){w=1,k=T;for(var j=this.daysInMonth(_,w);k>j;j=this.daysInMonth(_,w))w++,k-=j}return x>-1?this.fromJD(x):this.newDate(_,w,k)},determineDate:function(s,c,d,h,p){d&&typeof d!="object"&&(p=h,h=d,d=null),typeof h!="string"&&(p=h,h="");var m=this;return c=c?c.newDate():null,s==null?c:typeof s=="string"?function(y){try{return m.parseDate(h,y,p)}catch{}for(var v=((y=y.toLowerCase()).match(/^c/)&&d?d.newDate():null)||m.today(),g=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,b=g.exec(y);b;)v.add(parseInt(b[1],10),b[2]||"d"),b=g.exec(y);return v}(s):typeof s=="number"?isNaN(s)||s===1/0||s===-1/0?c:m.today().add(s,"d"):m.newDate(s)}})},69862:function(){},40964:function(){},72077:function(o,a,n){var l=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],f=typeof globalThis>"u"?n.g:globalThis;o.exports=function(){for(var s=[],c=0;c"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function y(_){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(k){return k.__proto__||Object.getPrototypeOf(k)},y(_)}var v=["AfterExport","AfterPlot","Animated","AnimatingFrame","AnimationInterrupted","AutoSize","BeforeExport","BeforeHover","ButtonClicked","Click","ClickAnnotation","Deselect","DoubleClick","Framework","Hover","LegendClick","LegendDoubleClick","Relayout","Relayouting","Restyle","Redraw","Selected","Selecting","SliderChange","SliderEnd","SliderStart","SunburstClick","Transitioning","TransitionInterrupted","Unhover","WebGlContextLost"],g=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick"],b=typeof window<"u";function x(_){var w=function(k){s(M,k);var T=d(M);function M(S){var C;return n(this,M),C=T.call(this,S),C.p=Promise.resolve(),C.resizeHandler=null,C.handlers={},C.syncWindowResize=C.syncWindowResize.bind(p(C)),C.syncEventHandlers=C.syncEventHandlers.bind(p(C)),C.attachUpdateEvents=C.attachUpdateEvents.bind(p(C)),C.getRef=C.getRef.bind(p(C)),C.handleUpdate=C.handleUpdate.bind(p(C)),C.figureCallback=C.figureCallback.bind(p(C)),C.updatePlotly=C.updatePlotly.bind(p(C)),C}return f(M,[{key:"updatePlotly",value:function(C,P,D){var O=this;this.p=this.p.then(function(){if(!O.unmounting){if(!O.el)throw new Error("Missing element reference");return _.react(O.el,{data:O.props.data,layout:O.props.layout,config:O.props.config,frames:O.props.frames})}}).then(function(){O.unmounting||(O.syncWindowResize(C),O.syncEventHandlers(),O.figureCallback(P),D&&O.attachUpdateEvents())}).catch(function(R){O.props.onError&&O.props.onError(R)})}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(C){this.unmounting=!1;var P=C.frames&&C.frames.length?C.frames.length:0,D=this.props.frames&&this.props.frames.length?this.props.frames.length:0,O=!(C.layout===this.props.layout&&C.data===this.props.data&&C.config===this.props.config&&D===P),R=C.revision!==void 0,F=C.revision!==this.props.revision;!O&&(!R||R&&!F)||this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&b&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),_.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var C=this;!this.el||!this.el.removeListener||g.forEach(function(P){C.el.on(P,C.handleUpdate)})}},{key:"removeUpdateEvents",value:function(){var C=this;!this.el||!this.el.removeListener||g.forEach(function(P){C.el.removeListener(P,C.handleUpdate)})}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(C){if(typeof C=="function"){var P=this.el,D=P.data,O=P.layout,R=this.el._transitionData?this.el._transitionData._frames:null,F={data:D,layout:O,frames:R};C(F,this.el)}}},{key:"syncWindowResize",value:function(C){var P=this;b&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return _.Plots.resize(P.el)},window.addEventListener("resize",this.resizeHandler),C&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(C){this.el=C,this.props.debug&&b&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var C=this;v.forEach(function(P){var D=C.props["on"+P],O=C.handlers[P],R=!!O;D&&!R?C.addEventHandler(P,D):!D&&R?C.removeEventHandler(P):D&&R&&D!==O&&(C.removeEventHandler(P),C.addEventHandler(P,D))})}},{key:"addEventHandler",value:function(C,P){this.handlers[C]=P,this.el.on(this.getPlotlyEventName(C),this.handlers[C])}},{key:"removeEventHandler",value:function(C){this.el.removeListener(this.getPlotlyEventName(C),this.handlers[C]),delete this.handlers[C]}},{key:"getPlotlyEventName",value:function(C){return"plotly_"+C.toLowerCase()}},{key:"render",value:function(){return r.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),M}(r.Component);return w.propTypes={data:i.default.arrayOf(i.default.object),config:i.default.object,layout:i.default.object,frames:i.default.arrayOf(i.default.object),revision:i.default.number,onInitialized:i.default.func,onPurge:i.default.func,onError:i.default.func,onUpdate:i.default.func,debug:i.default.bool,style:i.default.object,className:i.default.string,useResizeHandler:i.default.bool,divId:i.default.string},v.forEach(function(k){w.propTypes["on"+k]=i.default.func}),w.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},w}})(uS);const oE=ir(uS),cS=oE(iE),Ad=e=>{var o;const t=lS(),r=e.data.some(({type:a})=>a==="histogram"),u=(t==null?void 0:t.isXaxisAsCategorical)&&!r?{type:"category",categoryorder:"category ascending"}:{};return je.jsx("div",{children:je.jsx(cS,{data:e.data,layout:{...e.layout,title:void 0,xaxis:{...(o=e.layout)==null?void 0:o.xaxis,...u}},config:{responsive:!0},style:{width:"100%",minHeight:300+100*(1+e.widgetSize/2),maxHeight:400}})})};var fS={},sg={exports:{}},q2;function hr(){return q2||(q2=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var i=1;i{let t;const r=new Set,i=(l,f)=>{const s=typeof l=="function"?l(t):l;if(!Object.is(s,t)){const c=t;t=f??typeof s!="object"?s:Object.assign({},t,s),r.forEach(d=>d(t,c))}},u=()=>t,n={setState:i,getState:u,subscribe:l=>(r.add(l),()=>r.delete(l)),destroy:()=>{(cE?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}};return t=e(i,u,n),n},pS=e=>e?G2(e):G2;var gS={exports:{}},mS={},vS={exports:{}},yS={};/** +`)):H=j.stylize("[Circular]","special")),M(q)){if(L&&G.match(/^\d+$/))return H;(q=JSON.stringify(""+G)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(q=q.slice(1,-1),q=j.stylize(q,"name")):(q=q.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),q=j.stylize(q,"string"))}return q+": "+H}function x(j){return Array.isArray(j)}function _(j){return typeof j=="boolean"}function w(j){return j===null}function k(j){return typeof j=="number"}function T(j){return typeof j=="string"}function M(j){return j===void 0}function S(j){return C(j)&&R(j)==="[object RegExp]"}function C(j){return typeof j=="object"&&j!==null}function P(j){return C(j)&&R(j)==="[object Date]"}function D(j){return C(j)&&(R(j)==="[object Error]"||j instanceof Error)}function O(j){return typeof j=="function"}function R(j){return Object.prototype.toString.call(j)}function F(j){return j<10?"0"+j.toString(10):j.toString(10)}a.debuglog=function(j){if(j=j.toUpperCase(),!u[j])if(d.test(j)){var N=l.pid;u[j]=function(){var E=a.format.apply(a,arguments);console.error("%s %d: %s",j,N,E)}}else u[j]=function(){};return u[j]},a.inspect=p,p.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},p.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},a.types=n(4936),a.isArray=x,a.isBoolean=_,a.isNull=w,a.isNullOrUndefined=function(j){return j==null},a.isNumber=k,a.isString=T,a.isSymbol=function(j){return typeof j=="symbol"},a.isUndefined=M,a.isRegExp=S,a.types.isRegExp=S,a.isObject=C,a.isDate=P,a.types.isDate=P,a.isError=D,a.types.isNativeError=D,a.isFunction=O,a.isPrimitive=function(j){return j===null||typeof j=="boolean"||typeof j=="number"||typeof j=="string"||typeof j=="symbol"||j===void 0},a.isBuffer=n(45920);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function z(j,N){return Object.prototype.hasOwnProperty.call(j,N)}a.log=function(){var j,N;console.log("%s - %s",(N=[F((j=new Date).getHours()),F(j.getMinutes()),F(j.getSeconds())].join(":"),[j.getDate(),A[j.getMonth()],N].join(" ")),a.format.apply(a,arguments))},a.inherits=n(42018),a._extend=function(j,N){if(!N||!C(N))return j;for(var E=Object.keys(N),W=E.length;W--;)j[E[W]]=N[E[W]];return j};var B=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function $(j,N){if(!j){var E=new Error("Promise was rejected with a falsy value");E.reason=j,j=E}return N(j)}a.promisify=function(j){if(typeof j!="function")throw new TypeError('The "original" argument must be of type Function');if(B&&j[B]){var N;if(typeof(N=j[B])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(N,B,{value:N,enumerable:!1,writable:!1,configurable:!0}),N}function N(){for(var E,W,G=new Promise(function(H,V){E=H,W=V}),L=[],q=0;q"u"?n.g:globalThis,g=f(),y=s("String.prototype.slice"),v={},m=Object.getPrototypeOf;h&&u&&m&&l(g,function(x){if(typeof p[x]=="function"){var _=new p[x];if(Symbol.toStringTag in _){var w=m(_),k=u(w,Symbol.toStringTag);if(!k){var T=m(w);k=u(T,Symbol.toStringTag)}v[x]=k.get}}});var b=n(9187);o.exports=function(x){return!!b(x)&&(h&&Symbol.toStringTag in x?function(_){var w=!1;return l(v,function(k,T){if(!w)try{var M=k.call(_);M===T&&(w=M)}catch{}}),w}(x):y(d(x),8,-1))}},3961:function(o,a,n){var l=n(63489),f=n(56131),s=l.instance();function u(m){this.local=this.regionalOptions[m||""]||this.regionalOptions[""]}u.prototype=new l.baseCalendar,f(u.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(m,b){if(typeof m=="string"){var x=m.match(h);return x?x[0]:""}var _=this._validateYear(m),w=m.month(),k=""+this.toChineseMonth(_,w);return b&&k.length<2&&(k="0"+k),this.isIntercalaryMonth(_,w)&&(k+="i"),k},monthNames:function(m){if(typeof m=="string"){var b=m.match(p);return b?b[0]:""}var x=this._validateYear(m),_=m.month(),w=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(x,_)-1];return this.isIntercalaryMonth(x,_)&&(w="闰"+w),w},monthNamesShort:function(m){if(typeof m=="string"){var b=m.match(g);return b?b[0]:""}var x=this._validateYear(m),_=m.month(),w=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(x,_)-1];return this.isIntercalaryMonth(x,_)&&(w="闰"+w),w},parseMonth:function(m,b){m=this._validateYear(m);var x,_=parseInt(b);if(isNaN(_))b[0]==="闰"&&(x=!0,b=b.substring(1)),b[b.length-1]==="月"&&(b=b.substring(0,b.length-1)),_=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(b);else{var w=b[b.length-1];x=w==="i"||w==="I"}return this.toMonthIndex(m,_,x)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(m,b){if(m.year&&(m=m.year()),typeof m!="number"||m<1888||m>2111)throw b.replace(/\{0\}/,this.local.name);return m},toMonthIndex:function(m,b,x){var _=this.intercalaryMonth(m);if(x&&b!==_||b<1||b>12)throw l.local.invalidMonth.replace(/\{0\}/,this.local.name);return _?!x&&b<=_?b-1:b:b-1},toChineseMonth:function(m,b){m.year&&(b=(m=m.year()).month());var x=this.intercalaryMonth(m);if(b<0||b>(x?12:11))throw l.local.invalidMonth.replace(/\{0\}/,this.local.name);return x?b>13},isIntercalaryMonth:function(m,b){m.year&&(b=(m=m.year()).month());var x=this.intercalaryMonth(m);return!!x&&x===b},leapYear:function(m){return this.intercalaryMonth(m)!==0},weekOfYear:function(m,b,x){var _,w=this._validateYear(m,l.local.invalidyear),k=v[w-v[0]],T=k>>9&4095,M=k>>5&15,S=31&k;(_=s.newDate(T,M,S)).add(4-(_.dayOfWeek()||7),"d");var C=this.toJD(m,b,x)-_.toJD();return 1+Math.floor(C/7)},monthsInYear:function(m){return this.leapYear(m)?13:12},daysInMonth:function(m,b){m.year&&(b=m.month(),m=m.year()),m=this._validateYear(m);var x=y[m-y[0]];if(b>(x>>13?12:11))throw l.local.invalidMonth.replace(/\{0\}/,this.local.name);return x&1<<12-b?30:29},weekDay:function(m,b,x){return(this.dayOfWeek(m,b,x)||7)<6},toJD:function(m,b,x){var _=this._validate(m,k,x,l.local.invalidDate);m=this._validateYear(_.year()),b=_.month(),x=_.day();var w=this.isIntercalaryMonth(m,b),k=this.toChineseMonth(m,b),T=function(M,S,C,P,D){var O,R,F;if(typeof M=="object")R=M,O=S||{};else{var A;if(!(typeof M=="number"&&M>=1888&&M<=2111))throw new Error("Lunar year outside range 1888-2111");if(!(typeof S=="number"&&S>=1&&S<=12))throw new Error("Lunar month outside range 1 - 12");if(!(typeof C=="number"&&C>=1&&C<=30))throw new Error("Lunar day outside range 1 - 30");typeof P=="object"?(A=!1,O=P):(A=!!P,O={}),R={year:M,month:S,day:C,isIntercalary:A}}F=R.day-1;var z,B=y[R.year-y[0]],$=B>>13;z=$&&(R.month>$||R.isIntercalary)?R.month:R.month-1;for(var j=0;j>9&4095,(N>>5&15)-1,(31&N)+F);return O.year=E.getFullYear(),O.month=1+E.getMonth(),O.day=E.getDate(),O}(m,k,x,w);return s.toJD(T.year,T.month,T.day)},fromJD:function(m){var b=s.fromJD(m),x=function(w,k,T,M){var S,C;if(typeof w=="object")S=w,C=k||{};else{if(!(typeof w=="number"&&w>=1888&&w<=2111))throw new Error("Solar year outside range 1888-2111");if(!(typeof k=="number"&&k>=1&&k<=12))throw new Error("Solar month outside range 1 - 12");if(!(typeof T=="number"&&T>=1&&T<=31))throw new Error("Solar day outside range 1 - 31");S={year:w,month:k,day:T},C={}}var P=v[S.year-v[0]],D=S.year<<9|S.month<<5|S.day;C.year=D>=P?S.year:S.year-1,P=v[C.year-v[0]];var O,R=new Date(P>>9&4095,(P>>5&15)-1,31&P),F=new Date(S.year,S.month-1,S.day);O=Math.round((F-R)/864e5);var A,z=y[C.year-y[0]];for(A=0;A<13;A++){var B=z&1<<12-A?30:29;if(O>13;return!$||A<$?(C.isIntercalary=!1,C.month=1+A):A===$?(C.isIntercalary=!0,C.month=A):(C.isIntercalary=!1,C.month=A),C.day=1+O,C}(b.year(),b.month(),b.day()),_=this.toMonthIndex(x.year,x.month,x.isIntercalary);return this.newDate(x.year,_,x.day)},fromString:function(m){var b=m.match(d),x=this._validateYear(+b[1]),_=+b[2],w=!!b[3],k=this.toMonthIndex(x,_,w),T=+b[4];return this.newDate(x,k,T)},add:function(m,b,x){var _=m.year(),w=m.month(),k=this.isIntercalaryMonth(_,w),T=this.toChineseMonth(_,w),M=Object.getPrototypeOf(u.prototype).add.call(this,m,b,x);if(x==="y"){var S=M.year(),C=M.month(),P=this.isIntercalaryMonth(S,T),D=k&&P?this.toMonthIndex(S,T,!0):this.toMonthIndex(S,T,!1);D!==C&&M.month(D)}return M}});var d=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,h=/^\d?\d[iI]?/m,p=/^闰?十?[一二三四五六七八九]?月/m,g=/^闰?十?[一二三四五六七八九]?/m;l.calendars.chinese=u;var y=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],v=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904]},38751:function(o,a,n){var l=n(63489),f=n(56131);function s(u){this.local=this.regionalOptions[u||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(u){var d=this._validate(u,this.minMonth,this.minDay,l.local.invalidYear);return(u=d.year()+(d.year()<0?1:0))%4==3||u%4==-1},monthsInYear:function(u){return this._validate(u,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear),13},weekOfYear:function(u,d,h){var p=this.newDate(u,d,h);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(u,d){var h=this._validate(u,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===13&&this.leapYear(h.year())?1:0)},weekDay:function(u,d,h){return(this.dayOfWeek(u,d,h)||7)<6},toJD:function(u,d,h){var p=this._validate(u,d,h,l.local.invalidDate);return(u=p.year())<0&&u++,p.day()+30*(p.month()-1)+365*(u-1)+Math.floor(u/4)+this.jdEpoch-1},fromJD:function(u){var d=Math.floor(u)+.5-this.jdEpoch,h=Math.floor((d-Math.floor((d+366)/1461))/365)+1;h<=0&&h--,d=Math.floor(u)+.5-this.newDate(h,1,1).toJD();var p=Math.floor(d/30)+1,g=d-30*(p-1)+1;return this.newDate(h,p,g)}}),l.calendars.coptic=s},86825:function(o,a,n){var l=n(63489),f=n(56131);function s(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(d){return this._validate(d,this.minMonth,this.minDay,l.local.invalidYear),!1},monthsInYear:function(d){return this._validate(d,this.minMonth,this.minDay,l.local.invalidYear),13},daysInYear:function(d){return this._validate(d,this.minMonth,this.minDay,l.local.invalidYear),400},weekOfYear:function(d,h,p){var g=this.newDate(d,h,p);return g.add(-g.dayOfWeek(),"d"),Math.floor((g.dayOfYear()-1)/8)+1},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(d,h,p){return(this._validate(d,h,p,l.local.invalidDate).day()+1)%8},weekDay:function(d,h,p){var g=this.dayOfWeek(d,h,p);return g>=2&&g<=6},extraInfo:function(d,h,p){var g=this._validate(d,h,p,l.local.invalidDate);return{century:u[Math.floor((g.year()-1)/100)+1]||""}},toJD:function(d,h,p){var g=this._validate(d,h,p,l.local.invalidDate);return d=g.year()+(g.year()<0?1:0),h=g.month(),(p=g.day())+(h>1?16:0)+(h>2?32*(h-2):0)+400*(d-1)+this.jdEpoch-1},fromJD:function(d){d=Math.floor(d+.5)-Math.floor(this.jdEpoch)-1;var h=Math.floor(d/400)+1;d-=400*(h-1),d+=d>15?16:0;var p=Math.floor(d/32)+1,g=d-32*(p-1)+1;return this.newDate(h<=0?h-1:h,p,g)}});var u={20:"Fruitbat",21:"Anchovy"};l.calendars.discworld=s},37715:function(o,a,n){var l=n(63489),f=n(56131);function s(u){this.local=this.regionalOptions[u||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(u){var d=this._validate(u,this.minMonth,this.minDay,l.local.invalidYear);return(u=d.year()+(d.year()<0?1:0))%4==3||u%4==-1},monthsInYear:function(u){return this._validate(u,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear),13},weekOfYear:function(u,d,h){var p=this.newDate(u,d,h);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(u,d){var h=this._validate(u,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===13&&this.leapYear(h.year())?1:0)},weekDay:function(u,d,h){return(this.dayOfWeek(u,d,h)||7)<6},toJD:function(u,d,h){var p=this._validate(u,d,h,l.local.invalidDate);return(u=p.year())<0&&u++,p.day()+30*(p.month()-1)+365*(u-1)+Math.floor(u/4)+this.jdEpoch-1},fromJD:function(u){var d=Math.floor(u)+.5-this.jdEpoch,h=Math.floor((d-Math.floor((d+366)/1461))/365)+1;h<=0&&h--,d=Math.floor(u)+.5-this.newDate(h,1,1).toJD();var p=Math.floor(d/30)+1,g=d-30*(p-1)+1;return this.newDate(h,p,g)}}),l.calendars.ethiopian=s},99384:function(o,a,n){var l=n(63489),f=n(56131);function s(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}function u(d,h){return d-h*Math.floor(d/h)}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return this._leapYear(h.year())},_leapYear:function(d){return u(7*(d=d<0?d+1:d)+1,19)<7},monthsInYear:function(d){return this._validate(d,this.minMonth,this.minDay,l.local.invalidYear),this._leapYear(d.year?d.year():d)?13:12},weekOfYear:function(d,h,p){var g=this.newDate(d,h,p);return g.add(-g.dayOfWeek(),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInYear:function(d){return d=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear).year(),this.toJD(d===-1?1:d+1,7,1)-this.toJD(d,7,1)},daysInMonth:function(d,h){return d.year&&(h=d.month(),d=d.year()),this._validate(d,h,this.minDay,l.local.invalidMonth),h===12&&this.leapYear(d)||h===8&&u(this.daysInYear(d),10)===5?30:h===9&&u(this.daysInYear(d),10)===3?29:this.daysPerMonth[h-1]},weekDay:function(d,h,p){return this.dayOfWeek(d,h,p)!==6},extraInfo:function(d,h,p){var g=this._validate(d,h,p,l.local.invalidDate);return{yearType:(this.leapYear(g)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(g)%10-3]}},toJD:function(d,h,p){var g=this._validate(d,h,p,l.local.invalidDate);d=g.year(),h=g.month(),p=g.day();var y=d<=0?d+1:d,v=this.jdEpoch+this._delay1(y)+this._delay2(y)+p+1;if(h<7){for(var m=7;m<=this.monthsInYear(d);m++)v+=this.daysInMonth(d,m);for(m=1;m=this.toJD(h===-1?1:h+1,7,1);)h++;for(var p=dthis.toJD(h,p,this.daysInMonth(h,p));)p++;var g=d-this.toJD(h,p,1)+1;return this.newDate(h,p,g)}}),l.calendars.hebrew=s},43805:function(o,a,n){var l=n(63489),f=n(56131);function s(u){this.local=this.regionalOptions[u||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(u){return(11*this._validate(u,this.minMonth,this.minDay,l.local.invalidYear).year()+14)%30<11},weekOfYear:function(u,d,h){var p=this.newDate(u,d,h);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInYear:function(u){return this.leapYear(u)?355:354},daysInMonth:function(u,d){var h=this._validate(u,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===12&&this.leapYear(h.year())?1:0)},weekDay:function(u,d,h){return this.dayOfWeek(u,d,h)!==5},toJD:function(u,d,h){var p=this._validate(u,d,h,l.local.invalidDate);return u=p.year(),d=p.month(),u=u<=0?u+1:u,(h=p.day())+Math.ceil(29.5*(d-1))+354*(u-1)+Math.floor((3+11*u)/30)+this.jdEpoch-1},fromJD:function(u){u=Math.floor(u)+.5;var d=Math.floor((30*(u-this.jdEpoch)+10646)/10631);d=d<=0?d-1:d;var h=Math.min(12,Math.ceil((u-29-this.toJD(d,1,1))/29.5)+1),p=u-this.toJD(d,h,1)+1;return this.newDate(d,h,p)}}),l.calendars.islamic=s},88874:function(o,a,n){var l=n(63489),f=n(56131);function s(u){this.local=this.regionalOptions[u||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(u){var d=this._validate(u,this.minMonth,this.minDay,l.local.invalidYear);return(u=d.year()<0?d.year()+1:d.year())%4==0},weekOfYear:function(u,d,h){var p=this.newDate(u,d,h);return p.add(4-(p.dayOfWeek()||7),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInMonth:function(u,d){var h=this._validate(u,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===2&&this.leapYear(h.year())?1:0)},weekDay:function(u,d,h){return(this.dayOfWeek(u,d,h)||7)<6},toJD:function(u,d,h){var p=this._validate(u,d,h,l.local.invalidDate);return u=p.year(),d=p.month(),h=p.day(),u<0&&u++,d<=2&&(u--,d+=12),Math.floor(365.25*(u+4716))+Math.floor(30.6001*(d+1))+h-1524.5},fromJD:function(u){var d=Math.floor(u+.5)+1524,h=Math.floor((d-122.1)/365.25),p=Math.floor(365.25*h),g=Math.floor((d-p)/30.6001),y=g-Math.floor(g<14?1:13),v=h-Math.floor(y>2?4716:4715),m=d-p-Math.floor(30.6001*g);return v<=0&&v--,this.newDate(v,y,m)}}),l.calendars.julian=s},83290:function(o,a,n){var l=n(63489),f=n(56131);function s(h){this.local=this.regionalOptions[h||""]||this.regionalOptions[""]}function u(h,p){return h-p*Math.floor(h/p)}function d(h,p){return u(h-1,p)+1}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(h){return this._validate(h,this.minMonth,this.minDay,l.local.invalidYear),!1},formatYear:function(h){h=this._validate(h,this.minMonth,this.minDay,l.local.invalidYear).year();var p=Math.floor(h/400);return h%=400,h+=h<0?400:0,p+"."+Math.floor(h/20)+"."+h%20},forYear:function(h){if((h=h.split(".")).length<3)throw"Invalid Mayan year";for(var p=0,g=0;g19||g>0&&y<0)throw"Invalid Mayan year";p=20*p+y}return p},monthsInYear:function(h){return this._validate(h,this.minMonth,this.minDay,l.local.invalidYear),18},weekOfYear:function(h,p,g){return this._validate(h,p,g,l.local.invalidDate),0},daysInYear:function(h){return this._validate(h,this.minMonth,this.minDay,l.local.invalidYear),360},daysInMonth:function(h,p){return this._validate(h,p,this.minDay,l.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(h,p,g){return this._validate(h,p,g,l.local.invalidDate).day()},weekDay:function(h,p,g){return this._validate(h,p,g,l.local.invalidDate),!0},extraInfo:function(h,p,g){var y=this._validate(h,p,g,l.local.invalidDate).toJD(),v=this._toHaab(y),m=this._toTzolkin(y);return{haabMonthName:this.local.haabMonths[v[0]-1],haabMonth:v[0],haabDay:v[1],tzolkinDayName:this.local.tzolkinMonths[m[0]-1],tzolkinDay:m[0],tzolkinTrecena:m[1]}},_toHaab:function(h){var p=u(8+(h-=this.jdEpoch)+340,365);return[Math.floor(p/20)+1,u(p,20)]},_toTzolkin:function(h){return[d(20+(h-=this.jdEpoch),20),d(h+4,13)]},toJD:function(h,p,g){var y=this._validate(h,p,g,l.local.invalidDate);return y.day()+20*y.month()+360*y.year()+this.jdEpoch},fromJD:function(h){h=Math.floor(h)+.5-this.jdEpoch;var p=Math.floor(h/360);h%=360,h+=h<0?360:0;var g=Math.floor(h/20),y=h%20;return this.newDate(p,g,y)}}),l.calendars.mayan=s},29108:function(o,a,n){var l=n(63489),f=n(56131);function s(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar;var u=l.instance("gregorian");f(s.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear);return u.leapYear(h.year()+(h.year()<1?1:0)+1469)},weekOfYear:function(d,h,p){var g=this.newDate(d,h,p);return g.add(1-(g.dayOfWeek()||7),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(d,h,p){return(this.dayOfWeek(d,h,p)||7)<6},toJD:function(d,h,p){var g=this._validate(d,h,p,l.local.invalidMonth);(d=g.year())<0&&d++;for(var y=g.day(),v=1;v=this.toJD(h+1,1,1);)h++;for(var p=d-Math.floor(this.toJD(h,1,1)+.5)+1,g=1;p>this.daysInMonth(h,g);)p-=this.daysInMonth(h,g),g++;return this.newDate(h,g,p)}}),l.calendars.nanakshahi=s},55422:function(o,a,n){var l=n(63489),f=n(56131);function s(u){this.local=this.regionalOptions[u||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(u){return this.daysInYear(u)!==this.daysPerYear},weekOfYear:function(u,d,h){var p=this.newDate(u,d,h);return p.add(-p.dayOfWeek(),"d"),Math.floor((p.dayOfYear()-1)/7)+1},daysInYear:function(u){if(u=this._validate(u,this.minMonth,this.minDay,l.local.invalidYear).year(),this.NEPALI_CALENDAR_DATA[u]===void 0)return this.daysPerYear;for(var d=0,h=this.minMonth;h<=12;h++)d+=this.NEPALI_CALENDAR_DATA[u][h];return d},daysInMonth:function(u,d){return u.year&&(d=u.month(),u=u.year()),this._validate(u,d,this.minDay,l.local.invalidMonth),this.NEPALI_CALENDAR_DATA[u]===void 0?this.daysPerMonth[d-1]:this.NEPALI_CALENDAR_DATA[u][d]},weekDay:function(u,d,h){return this.dayOfWeek(u,d,h)!==6},toJD:function(u,d,h){var p=this._validate(u,d,h,l.local.invalidDate);u=p.year(),d=p.month(),h=p.day();var g=l.instance(),y=0,v=d,m=u;this._createMissingCalendarData(u);var b=u-(v>9||v===9&&h>=this.NEPALI_CALENDAR_DATA[m][0]?56:57);for(d!==9&&(y=h,v--);v!==9;)v<=0&&(v=12,m--),y+=this.NEPALI_CALENDAR_DATA[m][v],v--;return d===9?(y+=h-this.NEPALI_CALENDAR_DATA[m][0])<0&&(y+=g.daysInYear(b)):y+=this.NEPALI_CALENDAR_DATA[m][9]-this.NEPALI_CALENDAR_DATA[m][0],g.newDate(b,1,1).add(y,"d").toJD()},fromJD:function(u){var d=l.instance().fromJD(u),h=d.year(),p=d.dayOfYear(),g=h+56;this._createMissingCalendarData(g);for(var y=9,v=this.NEPALI_CALENDAR_DATA[g][0],m=this.NEPALI_CALENDAR_DATA[g][y]-v+1;p>m;)++y>12&&(y=1,g++),m+=this.NEPALI_CALENDAR_DATA[g][y];var b=this.NEPALI_CALENDAR_DATA[g][y]-(m-p);return this.newDate(g,y,b)},_createMissingCalendarData:function(u){var d=this.daysPerMonth.slice(0);d.unshift(17);for(var h=u-1;h0?474:473))%2820+474+38)%2816<682},weekOfYear:function(d,h,p){var g=this.newDate(d,h,p);return g.add(-(g.dayOfWeek()+1)%7,"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(d,h,p){return this.dayOfWeek(d,h,p)!==5},toJD:function(d,h,p){var g=this._validate(d,h,p,l.local.invalidDate);d=g.year(),h=g.month(),p=g.day();var y=d-(d>=0?474:473),v=474+u(y,2820);return p+(h<=7?31*(h-1):30*(h-1)+6)+Math.floor((682*v-110)/2816)+365*(v-1)+1029983*Math.floor(y/2820)+this.jdEpoch-1},fromJD:function(d){var h=(d=Math.floor(d)+.5)-this.toJD(475,1,1),p=Math.floor(h/1029983),g=u(h,1029983),y=2820;if(g!==1029982){var v=Math.floor(g/366),m=u(g,366);y=Math.floor((2134*v+2816*m+2815)/1028522)+v+1}var b=y+2820*p+474;b=b<=0?b-1:b;var x=d-this.toJD(b,1,1)+1,_=x<=186?Math.ceil(x/31):Math.ceil((x-6)/30),w=d-this.toJD(b,_,1)+1;return this.newDate(b,_,w)}}),l.calendars.persian=s,l.calendars.jalali=s},31320:function(o,a,n){var l=n(63489),f=n(56131),s=l.instance();function u(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}u.prototype=new l.baseCalendar,f(u.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(h.year()),s.leapYear(d)},weekOfYear:function(d,h,p){var g=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(g.year()),s.weekOfYear(d,g.month(),g.day())},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(d,h,p){return(this.dayOfWeek(d,h,p)||7)<6},toJD:function(d,h,p){var g=this._validate(d,h,p,l.local.invalidDate);return d=this._t2gYear(g.year()),s.toJD(d,g.month(),g.day())},fromJD:function(d){var h=s.fromJD(d),p=this._g2tYear(h.year());return this.newDate(p,h.month(),h.day())},_t2gYear:function(d){return d+this.yearsOffset+(d>=-this.yearsOffset&&d<=-1?1:0)},_g2tYear:function(d){return d-this.yearsOffset-(d>=1&&d<=this.yearsOffset?1:0)}}),l.calendars.taiwan=u},51367:function(o,a,n){var l=n(63489),f=n(56131),s=l.instance();function u(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}u.prototype=new l.baseCalendar,f(u.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(h.year()),s.leapYear(d)},weekOfYear:function(d,h,p){var g=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(g.year()),s.weekOfYear(d,g.month(),g.day())},daysInMonth:function(d,h){var p=this._validate(d,h,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(d,h,p){return(this.dayOfWeek(d,h,p)||7)<6},toJD:function(d,h,p){var g=this._validate(d,h,p,l.local.invalidDate);return d=this._t2gYear(g.year()),s.toJD(d,g.month(),g.day())},fromJD:function(d){var h=s.fromJD(d),p=this._g2tYear(h.year());return this.newDate(p,h.month(),h.day())},_t2gYear:function(d){return d-this.yearsOffset-(d>=1&&d<=this.yearsOffset?1:0)},_g2tYear:function(d){return d+this.yearsOffset+(d>=-this.yearsOffset&&d<=-1?1:0)}}),l.calendars.thai=u},21457:function(o,a,n){var l=n(63489),f=n(56131);function s(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}s.prototype=new l.baseCalendar,f(s.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(d){var h=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return this.daysInYear(h.year())===355},weekOfYear:function(d,h,p){var g=this.newDate(d,h,p);return g.add(-g.dayOfWeek(),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInYear:function(d){for(var h=0,p=1;p<=12;p++)h+=this.daysInMonth(d,p);return h},daysInMonth:function(d,h){for(var p=this._validate(d,h,this.minDay,l.local.invalidMonth).toJD()-24e5+.5,g=0,y=0;yp)return u[g]-u[g-1];g++}return 30},weekDay:function(d,h,p){return this.dayOfWeek(d,h,p)!==5},toJD:function(d,h,p){var g=this._validate(d,h,p,l.local.invalidDate),y=12*(g.year()-1)+g.month()-15292;return g.day()+u[y-1]-1+24e5-.5},fromJD:function(d){for(var h=d-24e5+.5,p=0,g=0;gh);g++)p++;var y=p+15292,v=Math.floor((y-1)/12),m=v+1,b=y-12*v,x=h-u[p-1]+1;return this.newDate(m,b,x)},isValid:function(d,h,p){var g=l.baseCalendar.prototype.isValid.apply(this,arguments);return g&&(g=(d=d.year!=null?d.year:d)>=1276&&d<=1500),g},_validate:function(d,h,p,g){var y=l.baseCalendar.prototype._validate.apply(this,arguments);if(y.year<1276||y.year>1500)throw g.replace(/\{0\}/,this.local.name);return y}}),l.calendars.ummalqura=s;var u=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},63489:function(o,a,n){var l=n(56131);function f(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function s(g,y,v,m){if(this._calendar=g,this._year=y,this._month=v,this._day=m,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(p.local.invalidDate||p.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function u(g,y){return"000000".substring(0,y-(g=""+g).length)+g}function d(){this.shortYearCutoff="+10"}function h(g){this.local=this.regionalOptions[g]||this.regionalOptions[""]}l(f.prototype,{instance:function(g,y){g=(g||"gregorian").toLowerCase(),y=y||"";var v=this._localCals[g+"-"+y];if(!v&&this.calendars[g]&&(v=new this.calendars[g](y),this._localCals[g+"-"+y]=v),!v)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,g);return v},newDate:function(g,y,v,m,b){return(m=(g!=null&&g.year?g.calendar():typeof m=="string"?this.instance(m,b):m)||this.instance()).newDate(g,y,v)},substituteDigits:function(g){return function(y){return(y+"").replace(/[0-9]/g,function(v){return g[v]})}},substituteChineseDigits:function(g,y){return function(v){for(var m="",b=0;v>0;){var x=v%10;m=(x===0?"":g[x]+y[b])+m,b++,v=Math.floor(v/10)}return m.indexOf(g[1]+y[1])===0&&(m=m.substr(1)),m||g[0]}}}),l(s.prototype,{newDate:function(g,y,v){return this._calendar.newDate(g??this,y,v)},year:function(g){return arguments.length===0?this._year:this.set(g,"y")},month:function(g){return arguments.length===0?this._month:this.set(g,"m")},day:function(g){return arguments.length===0?this._day:this.set(g,"d")},date:function(g,y,v){if(!this._calendar.isValid(g,y,v))throw(p.local.invalidDate||p.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=g,this._month=y,this._day=v,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(g,y){return this._calendar.add(this,g,y)},set:function(g,y){return this._calendar.set(this,g,y)},compareTo:function(g){if(this._calendar.name!==g._calendar.name)throw(p.local.differentCalendars||p.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,g._calendar.local.name);var y=this._year!==g._year?this._year-g._year:this._month!==g._month?this.monthOfYear()-g.monthOfYear():this._day-g._day;return y===0?0:y<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(g){return this._calendar.fromJD(g)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(g){return this._calendar.fromJSDate(g)},toString:function(){return(this.year()<0?"-":"")+u(Math.abs(this.year()),4)+"-"+u(this.month(),2)+"-"+u(this.day(),2)}}),l(d.prototype,{_validateLevel:0,newDate:function(g,y,v){return g==null?this.today():(g.year&&(this._validate(g,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate),v=g.day(),y=g.month(),g=g.year()),new s(this,g,y,v))},today:function(){return this.fromJSDate(new Date)},epoch:function(g){return this._validate(g,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(g){var y=this._validate(g,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return(y.year()<0?"-":"")+u(Math.abs(y.year()),4)},monthsInYear:function(g){return this._validate(g,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear),12},monthOfYear:function(g,y){var v=this._validate(g,y,this.minDay,p.local.invalidMonth||p.regionalOptions[""].invalidMonth);return(v.month()+this.monthsInYear(v)-this.firstMonth)%this.monthsInYear(v)+this.minMonth},fromMonthOfYear:function(g,y){var v=(y+this.firstMonth-2*this.minMonth)%this.monthsInYear(g)+this.minMonth;return this._validate(g,v,this.minDay,p.local.invalidMonth||p.regionalOptions[""].invalidMonth),v},daysInYear:function(g){var y=this._validate(g,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return this.leapYear(y)?366:365},dayOfYear:function(g,y,v){var m=this._validate(g,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate);return m.toJD()-this.newDate(m.year(),this.fromMonthOfYear(m.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(g,y,v){var m=this._validate(g,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(m))+2)%this.daysInWeek()},extraInfo:function(g,y,v){return this._validate(g,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate),{}},add:function(g,y,v){return this._validate(g,this.minMonth,this.minDay,p.local.invalidDate||p.regionalOptions[""].invalidDate),this._correctAdd(g,this._add(g,y,v),y,v)},_add:function(g,y,v){if(this._validateLevel++,v==="d"||v==="w"){var m=g.toJD()+y*(v==="w"?this.daysInWeek():1),b=g.calendar().fromJD(m);return this._validateLevel--,[b.year(),b.month(),b.day()]}try{var x=g.year()+(v==="y"?y:0),_=g.monthOfYear()+(v==="m"?y:0);b=g.day(),v==="y"?(g.month()!==this.fromMonthOfYear(x,_)&&(_=this.newDate(x,g.month(),this.minDay).monthOfYear()),_=Math.min(_,this.monthsInYear(x)),b=Math.min(b,this.daysInMonth(x,this.fromMonthOfYear(x,_)))):v==="m"&&(function(k){for(;_T-1+k.minMonth;)x++,_-=T,T=k.monthsInYear(x)}(this),b=Math.min(b,this.daysInMonth(x,this.fromMonthOfYear(x,_))));var w=[x,this.fromMonthOfYear(x,_),b];return this._validateLevel--,w}catch(k){throw this._validateLevel--,k}},_correctAdd:function(g,y,v,m){if(!(this.hasYearZero||m!=="y"&&m!=="m"||y[0]!==0&&g.year()>0==y[0]>0)){var b={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[m],x=v<0?-1:1;y=this._add(g,v*b[0]+x*b[1],b[2])}return g.date(y[0],y[1],y[2])},set:function(g,y,v){this._validate(g,this.minMonth,this.minDay,p.local.invalidDate||p.regionalOptions[""].invalidDate);var m=v==="y"?y:g.year(),b=v==="m"?y:g.month(),x=v==="d"?y:g.day();return v!=="y"&&v!=="m"||(x=Math.min(x,this.daysInMonth(m,b))),g.date(m,b,x)},isValid:function(g,y,v){this._validateLevel++;var m=this.hasYearZero||g!==0;if(m){var b=this.newDate(g,y,this.minDay);m=y>=this.minMonth&&y-this.minMonth=this.minDay&&v-this.minDay13.5?13:1),T=b-(k>2.5?4716:4715);return T<=0&&T--,this.newDate(T,k,w)},toJSDate:function(g,y,v){var m=this._validate(g,y,v,p.local.invalidDate||p.regionalOptions[""].invalidDate),b=new Date(m.year(),m.month()-1,m.day());return b.setHours(0),b.setMinutes(0),b.setSeconds(0),b.setMilliseconds(0),b.setHours(b.getHours()>12?b.getHours()+2:0),b},fromJSDate:function(g){return this.newDate(g.getFullYear(),g.getMonth()+1,g.getDate())}});var p=o.exports=new f;p.cdate=s,p.baseCalendar=d,p.calendars.gregorian=h},94338:function(o,a,n){var l=n(56131),f=n(63489);l(f.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),f.local=f.regionalOptions[""],l(f.cdate.prototype,{formatDate:function(s,u){return typeof s!="string"&&(u=s,s=""),this._calendar.formatDate(s||"",this,u)}}),l(f.baseCalendar.prototype,{UNIX_EPOCH:f.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:f.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(s,u,d){if(typeof s!="string"&&(d=u,u=s,s=""),!u)return"";if(u.calendar()!==this)throw f.local.invalidFormat||f.regionalOptions[""].invalidFormat;s=s||this.local.dateFormat;for(var h,p,g,y=(d=d||{}).dayNamesShort||this.local.dayNamesShort,v=d.dayNames||this.local.dayNames,m=d.monthNumbers||this.local.monthNumbers,b=d.monthNamesShort||this.local.monthNamesShort,x=d.monthNames||this.local.monthNames,_=(d.calculateWeek||this.local.calculateWeek,function(R,F){for(var A=1;O+A1}),w=function(R,F,A,z){var B=""+F;if(_(R,z))for(;B.length1},P=function(N,E){var W=C(N,E),G=[2,3,W?4:2,W?4:2,10,11,20]["oyYJ@!".indexOf(N)+1],L=new RegExp("^-?\\d{1,"+G+"}"),q=u.substring(z).match(L);if(!q)throw(f.local.missingNumberAt||f.regionalOptions[""].missingNumberAt).replace(/\{0\}/,z);return z+=q[0].length,parseInt(q[0],10)},D=this,O=function(){if(typeof v=="function"){C("m");var N=v.call(D,u.substring(z));return z+=N.length,N}return P("m")},R=function(N,E,W,G){for(var L=C(N,G)?W:E,q=0;q-1){w=1,k=T;for(var j=this.daysInMonth(_,w);k>j;j=this.daysInMonth(_,w))w++,k-=j}return x>-1?this.fromJD(x):this.newDate(_,w,k)},determineDate:function(s,u,d,h,p){d&&typeof d!="object"&&(p=h,h=d,d=null),typeof h!="string"&&(p=h,h="");var g=this;return u=u?u.newDate():null,s==null?u:typeof s=="string"?function(y){try{return g.parseDate(h,y,p)}catch{}for(var v=((y=y.toLowerCase()).match(/^c/)&&d?d.newDate():null)||g.today(),m=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,b=m.exec(y);b;)v.add(parseInt(b[1],10),b[2]||"d"),b=m.exec(y);return v}(s):typeof s=="number"?isNaN(s)||s===1/0||s===-1/0?u:g.today().add(s,"d"):g.newDate(s)}})},69862:function(){},40964:function(){},72077:function(o,a,n){var l=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],f=typeof globalThis>"u"?n.g:globalThis;o.exports=function(){for(var s=[],u=0;u"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function y(_){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(k){return k.__proto__||Object.getPrototypeOf(k)},y(_)}var v=["AfterExport","AfterPlot","Animated","AnimatingFrame","AnimationInterrupted","AutoSize","BeforeExport","BeforeHover","ButtonClicked","Click","ClickAnnotation","Deselect","DoubleClick","Framework","Hover","LegendClick","LegendDoubleClick","Relayout","Relayouting","Restyle","Redraw","Selected","Selecting","SliderChange","SliderEnd","SliderStart","SunburstClick","Transitioning","TransitionInterrupted","Unhover","WebGlContextLost"],m=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick"],b=typeof window<"u";function x(_){var w=function(k){s(M,k);var T=d(M);function M(S){var C;return n(this,M),C=T.call(this,S),C.p=Promise.resolve(),C.resizeHandler=null,C.handlers={},C.syncWindowResize=C.syncWindowResize.bind(p(C)),C.syncEventHandlers=C.syncEventHandlers.bind(p(C)),C.attachUpdateEvents=C.attachUpdateEvents.bind(p(C)),C.getRef=C.getRef.bind(p(C)),C.handleUpdate=C.handleUpdate.bind(p(C)),C.figureCallback=C.figureCallback.bind(p(C)),C.updatePlotly=C.updatePlotly.bind(p(C)),C}return f(M,[{key:"updatePlotly",value:function(C,P,D){var O=this;this.p=this.p.then(function(){if(!O.unmounting){if(!O.el)throw new Error("Missing element reference");return _.react(O.el,{data:O.props.data,layout:O.props.layout,config:O.props.config,frames:O.props.frames})}}).then(function(){O.unmounting||(O.syncWindowResize(C),O.syncEventHandlers(),O.figureCallback(P),D&&O.attachUpdateEvents())}).catch(function(R){O.props.onError&&O.props.onError(R)})}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(C){this.unmounting=!1;var P=C.frames&&C.frames.length?C.frames.length:0,D=this.props.frames&&this.props.frames.length?this.props.frames.length:0,O=!(C.layout===this.props.layout&&C.data===this.props.data&&C.config===this.props.config&&D===P),R=C.revision!==void 0,F=C.revision!==this.props.revision;!O&&(!R||R&&!F)||this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&b&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),_.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var C=this;!this.el||!this.el.removeListener||m.forEach(function(P){C.el.on(P,C.handleUpdate)})}},{key:"removeUpdateEvents",value:function(){var C=this;!this.el||!this.el.removeListener||m.forEach(function(P){C.el.removeListener(P,C.handleUpdate)})}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(C){if(typeof C=="function"){var P=this.el,D=P.data,O=P.layout,R=this.el._transitionData?this.el._transitionData._frames:null,F={data:D,layout:O,frames:R};C(F,this.el)}}},{key:"syncWindowResize",value:function(C){var P=this;b&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return _.Plots.resize(P.el)},window.addEventListener("resize",this.resizeHandler),C&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(C){this.el=C,this.props.debug&&b&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var C=this;v.forEach(function(P){var D=C.props["on"+P],O=C.handlers[P],R=!!O;D&&!R?C.addEventHandler(P,D):!D&&R?C.removeEventHandler(P):D&&R&&D!==O&&(C.removeEventHandler(P),C.addEventHandler(P,D))})}},{key:"addEventHandler",value:function(C,P){this.handlers[C]=P,this.el.on(this.getPlotlyEventName(C),this.handlers[C])}},{key:"removeEventHandler",value:function(C){this.el.removeListener(this.getPlotlyEventName(C),this.handlers[C]),delete this.handlers[C]}},{key:"getPlotlyEventName",value:function(C){return"plotly_"+C.toLowerCase()}},{key:"render",value:function(){return r.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),M}(r.Component);return w.propTypes={data:i.default.arrayOf(i.default.object),config:i.default.object,layout:i.default.object,frames:i.default.arrayOf(i.default.object),revision:i.default.number,onInitialized:i.default.func,onPurge:i.default.func,onError:i.default.func,onUpdate:i.default.func,debug:i.default.bool,style:i.default.object,className:i.default.string,useResizeHandler:i.default.bool,divId:i.default.string},v.forEach(function(k){w.propTypes["on"+k]=i.default.func}),w.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},w}})(pS);const gE=ir(pS),gS=gE(pE),ml={data:{barpolar:[{marker:{line:{color:"rgb(17,17,17)",width:.5},pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"barpolar"}],bar:[{error_x:{color:"#f2f5fa"},error_y:{color:"#f2f5fa"},marker:{line:{color:"rgb(17,17,17)",width:.5},pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"bar"}],carpet:[{aaxis:{endlinecolor:"#A2B1C6",gridcolor:"#506784",linecolor:"#506784",minorgridcolor:"#506784",startlinecolor:"#A2B1C6"},baxis:{endlinecolor:"#A2B1C6",gridcolor:"#506784",linecolor:"#506784",minorgridcolor:"#506784",startlinecolor:"#A2B1C6"},type:"carpet"}],choropleth:[{colorbar:{outlinewidth:0,ticks:""},type:"choropleth"}],contourcarpet:[{colorbar:{outlinewidth:0,ticks:""},type:"contourcarpet"}],contour:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"contour"}],heatmapgl:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"heatmapgl"}],heatmap:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"heatmap"}],histogram2dcontour:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"histogram2dcontour"}],histogram2d:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"histogram2d"}],histogram:[{marker:{pattern:{fillmode:"overlay",size:10,solidity:.2}},type:"histogram"}],mesh3d:[{colorbar:{outlinewidth:0,ticks:""},type:"mesh3d"}],parcoords:[{line:{colorbar:{outlinewidth:0,ticks:""}},type:"parcoords"}],pie:[{automargin:!0,type:"pie"}],scatter3d:[{line:{colorbar:{outlinewidth:0,ticks:""}},marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatter3d"}],scattercarpet:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scattercarpet"}],scattergeo:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scattergeo"}],scattergl:[{marker:{line:{color:"#283442"}},type:"scattergl"}],scattermapbox:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scattermapbox"}],scatterpolargl:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatterpolargl"}],scatterpolar:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatterpolar"}],scatter:[{marker:{line:{color:"#283442"}},type:"scatter"}],scatterternary:[{marker:{colorbar:{outlinewidth:0,ticks:""}},type:"scatterternary"}],surface:[{colorbar:{outlinewidth:0,ticks:""},colorscale:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],type:"surface"}],table:[{cells:{fill:{color:"#506784"},line:{color:"rgb(17,17,17)"}},header:{fill:{color:"#2a3f5f"},line:{color:"rgb(17,17,17)"}},type:"table"}]},layout:{annotationdefaults:{arrowcolor:"#f2f5fa",arrowhead:0,arrowwidth:1},autotypenumbers:"strict",coloraxis:{colorbar:{outlinewidth:0,ticks:""}},colorscale:{diverging:[[0,"#8e0152"],[.1,"#c51b7d"],[.2,"#de77ae"],[.3,"#f1b6da"],[.4,"#fde0ef"],[.5,"#f7f7f7"],[.6,"#e6f5d0"],[.7,"#b8e186"],[.8,"#7fbc41"],[.9,"#4d9221"],[1,"#276419"]],sequential:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]],sequentialminus:[[0,"#0d0887"],[.1111111111111111,"#46039f"],[.2222222222222222,"#7201a8"],[.3333333333333333,"#9c179e"],[.4444444444444444,"#bd3786"],[.5555555555555556,"#d8576b"],[.6666666666666666,"#ed7953"],[.7777777777777778,"#fb9f3a"],[.8888888888888888,"#fdca26"],[1,"#f0f921"]]},colorway:["#636efa","#EF553B","#00cc96","#ab63fa","#FFA15A","#19d3f3","#FF6692","#B6E880","#FF97FF","#FECB52"],font:{color:"#f2f5fa"},geo:{bgcolor:"rgb(17,17,17)",lakecolor:"rgb(17,17,17)",landcolor:"rgb(17,17,17)",showlakes:!0,showland:!0,subunitcolor:"#506784"},hoverlabel:{align:"left"},hovermode:"closest",mapbox:{style:"dark"},paper_bgcolor:"rgb(17,17,17)",plot_bgcolor:"rgb(17,17,17)",polar:{angularaxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""},bgcolor:"rgb(17,17,17)",radialaxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""}},scene:{xaxis:{backgroundcolor:"rgb(17,17,17)",gridcolor:"#506784",gridwidth:2,linecolor:"#506784",showbackground:!0,ticks:"",zerolinecolor:"#C8D4E3"},yaxis:{backgroundcolor:"rgb(17,17,17)",gridcolor:"#506784",gridwidth:2,linecolor:"#506784",showbackground:!0,ticks:"",zerolinecolor:"#C8D4E3"},zaxis:{backgroundcolor:"rgb(17,17,17)",gridcolor:"#506784",gridwidth:2,linecolor:"#506784",showbackground:!0,ticks:"",zerolinecolor:"#C8D4E3"}},shapedefaults:{line:{color:"#f2f5fa"}},sliderdefaults:{bgcolor:"#C8D4E3",bordercolor:"rgb(17,17,17)",borderwidth:1,tickwidth:0},ternary:{aaxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""},baxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""},bgcolor:"rgb(17,17,17)",caxis:{gridcolor:"#506784",linecolor:"#506784",ticks:""}},title:{x:.05},updatemenudefaults:{bgcolor:"#506784",borderwidth:0,showactive:!1},xaxis:{automargin:!0,gridcolor:"#283442",linecolor:"#506784",ticks:"",title:{standoff:15},zerolinecolor:"#283442",zerolinewidth:2},yaxis:{automargin:!0,gridcolor:"#283442",linecolor:"#506784",ticks:"",title:{standoff:15},zerolinecolor:"#283442",zerolinewidth:2}}},Pd=e=>{var n,l,f,s;const t=fS(),r=dS(),i=e.data.some(({type:u})=>u==="histogram"),c=(t==null?void 0:t.isXaxisAsCategorical)&&!i,o=r==="dark"?{template:{...ml,layout:{...ml.layout,colorway:((l=(n=e.layout.template)==null?void 0:n.layout)==null?void 0:l.colorway)||((f=ml.layout)==null?void 0:f.colorway)}}}:void 0,a=c?{type:"category",categoryorder:"category ascending"}:void 0;return je.jsx("div",{children:je.jsx(gS,{data:e.data,layout:{...e.layout,...o,title:void 0,xaxis:{...(s=e.layout)==null?void 0:s.xaxis,...a}},config:{responsive:!0},style:{width:"100%",minHeight:300+100*(1+e.widgetSize/2),maxHeight:400}})})};var mS={},vS={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(vS);var Rn=vS.exports,ug={exports:{}},W2;function hr(){return W2||(W2=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var i=1;i{let t;const r=new Set,i=(l,f)=>{const s=typeof l=="function"?l(t):l;if(!Object.is(s,t)){const u=t;t=f??typeof s!="object"?s:Object.assign({},t,s),r.forEach(d=>d(t,u))}},c=()=>t,n={setState:i,getState:c,subscribe:l=>(r.add(l),()=>r.delete(l)),destroy:()=>{(bE?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}};return t=e(i,c,n),n},xS=e=>e?X2(e):X2;var wS={exports:{}},_S={},TS={exports:{}},kS={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -76,7 +76,7 @@ should equal * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var wl=$e;function fE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var dE=typeof Object.is=="function"?Object.is:fE,hE=wl.useState,pE=wl.useEffect,gE=wl.useLayoutEffect,mE=wl.useDebugValue;function vE(e,t){var r=t(),i=hE({inst:{value:r,getSnapshot:t}}),u=i[0].inst,o=i[1];return gE(function(){u.value=r,u.getSnapshot=t,yg(u)&&o({inst:u})},[e,r,t]),pE(function(){return yg(u)&&o({inst:u}),e(function(){yg(u)&&o({inst:u})})},[e]),mE(r),r}function yg(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!dE(e,r)}catch{return!0}}function yE(e,t){return t()}var bE=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?yE:vE;yS.useSyncExternalStore=wl.useSyncExternalStore!==void 0?wl.useSyncExternalStore:bE;vS.exports=yS;var bS=vS.exports;/** + */var Tl=$e;function xE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wE=typeof Object.is=="function"?Object.is:xE,_E=Tl.useState,TE=Tl.useEffect,kE=Tl.useLayoutEffect,ME=Tl.useDebugValue;function SE(e,t){var r=t(),i=_E({inst:{value:r,getSnapshot:t}}),c=i[0].inst,o=i[1];return kE(function(){c.value=r,c.getSnapshot=t,bg(c)&&o({inst:c})},[e,r,t]),TE(function(){return bg(c)&&o({inst:c}),e(function(){bg(c)&&o({inst:c})})},[e]),ME(r),r}function bg(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!wE(e,r)}catch{return!0}}function CE(e,t){return t()}var OE=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?CE:SE;kS.useSyncExternalStore=Tl.useSyncExternalStore!==void 0?Tl.useSyncExternalStore:OE;TS.exports=kS;var MS=TS.exports;/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * @@ -84,11 +84,11 @@ should equal * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Pd=$e,xE=bS;function wE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _E=typeof Object.is=="function"?Object.is:wE,TE=xE.useSyncExternalStore,kE=Pd.useRef,ME=Pd.useEffect,SE=Pd.useMemo,CE=Pd.useDebugValue;mS.useSyncExternalStoreWithSelector=function(e,t,r,i,u){var o=kE(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=SE(function(){function l(h){if(!f){if(f=!0,s=h,h=i(h),u!==void 0&&a.hasValue){var p=a.value;if(u(p,h))return c=p}return c=h}if(p=c,_E(s,h))return p;var m=i(h);return u!==void 0&&u(p,m)?p:(s=h,c=m)}var f=!1,s,c,d=r===void 0?null:r;return[function(){return l(t())},d===null?void 0:function(){return l(d())}]},[t,r,i,u]);var n=TE(e,o[0],o[1]);return ME(function(){a.hasValue=!0,a.value=n},[n]),CE(n),n};gS.exports=mS;var OE=gS.exports;const AE=ir(OE),{useSyncExternalStoreWithSelector:PE}=AE;function xS(e,t=e.getState,r){const i=PE(e.subscribe,e.getState,e.getServerState||e.getState,t,r);return $e.useDebugValue(i),i}const X2=e=>{const t=typeof e=="function"?pS(e):e,r=(i,u)=>xS(t,i,u);return Object.assign(r,t),r},wS=e=>e?X2(e):X2;var DE=e=>wS(e);const EE=Object.freeze(Object.defineProperty({__proto__:null,create:wS,createStore:pS,default:DE,useStore:xS},Symbol.toStringTag,{value:"Module"})),RE=qn(EE);var Ic={exports:{}},bg={exports:{}},Z2;function LE(){return Z2||(Z2=1,function(e,t){(function(r,i){e.exports=i()})(Ma,function(){var r=typeof Promise=="function",i=typeof self=="object"?self:Ma,u=typeof Symbol<"u",o=typeof Map<"u",a=typeof Set<"u",n=typeof WeakMap<"u",l=typeof WeakSet<"u",f=typeof DataView<"u",s=u&&typeof Symbol.iterator<"u",c=u&&typeof Symbol.toStringTag<"u",d=a&&typeof Set.prototype.entries=="function",h=o&&typeof Map.prototype.entries=="function",p=d&&Object.getPrototypeOf(new Set().entries()),m=h&&Object.getPrototypeOf(new Map().entries()),y=s&&typeof Array.prototype[Symbol.iterator]=="function",v=y&&Object.getPrototypeOf([][Symbol.iterator]()),g=s&&typeof String.prototype[Symbol.iterator]=="function",b=g&&Object.getPrototypeOf(""[Symbol.iterator]()),x=8,_=-1;function w(k){var T=typeof k;if(T!=="object")return T;if(k===null)return"null";if(k===i)return"global";if(Array.isArray(k)&&(c===!1||!(Symbol.toStringTag in k)))return"Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&k===window.location)return"Location";if(typeof window.document=="object"&&k===window.document)return"Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&k===window.navigator.mimeTypes)return"MimeTypeArray";if(typeof window.navigator.plugins=="object"&&k===window.navigator.plugins)return"PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&k instanceof window.HTMLElement){if(k.tagName==="BLOCKQUOTE")return"HTMLQuoteElement";if(k.tagName==="TD")return"HTMLTableDataCellElement";if(k.tagName==="TH")return"HTMLTableHeaderCellElement"}}var M=c&&k[Symbol.toStringTag];if(typeof M=="string")return M;var S=Object.getPrototypeOf(k);return S===RegExp.prototype?"RegExp":S===Date.prototype?"Date":r&&S===Promise.prototype?"Promise":a&&S===Set.prototype?"Set":o&&S===Map.prototype?"Map":l&&S===WeakSet.prototype?"WeakSet":n&&S===WeakMap.prototype?"WeakMap":f&&S===DataView.prototype?"DataView":o&&S===m?"Map Iterator":a&&S===p?"Set Iterator":y&&S===v?"Array Iterator":g&&S===b?"String Iterator":S===null?"Object":Object.prototype.toString.call(k).slice(x,_)}return w})}(bg)),bg.exports}var K2;function _S(){if(K2)return Ic.exports;K2=1;/*! + */var Dd=$e,AE=MS;function PE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var DE=typeof Object.is=="function"?Object.is:PE,EE=AE.useSyncExternalStore,RE=Dd.useRef,LE=Dd.useEffect,IE=Dd.useMemo,FE=Dd.useDebugValue;_S.useSyncExternalStoreWithSelector=function(e,t,r,i,c){var o=RE(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=IE(function(){function l(h){if(!f){if(f=!0,s=h,h=i(h),c!==void 0&&a.hasValue){var p=a.value;if(c(p,h))return u=p}return u=h}if(p=u,DE(s,h))return p;var g=i(h);return c!==void 0&&c(p,g)?p:(s=h,u=g)}var f=!1,s,u,d=r===void 0?null:r;return[function(){return l(t())},d===null?void 0:function(){return l(d())}]},[t,r,i,c]);var n=EE(e,o[0],o[1]);return LE(function(){a.hasValue=!0,a.value=n},[n]),FE(n),n};wS.exports=_S;var NE=wS.exports;const jE=ir(NE),{useSyncExternalStoreWithSelector:$E}=jE;function SS(e,t=e.getState,r){const i=$E(e.subscribe,e.getState,e.getServerState||e.getState,t,r);return $e.useDebugValue(i),i}const Z2=e=>{const t=typeof e=="function"?xS(e):e,r=(i,c)=>SS(t,i,c);return Object.assign(r,t),r},CS=e=>e?Z2(e):Z2;var BE=e=>CS(e);const zE=Object.freeze(Object.defineProperty({__proto__:null,create:CS,createStore:xS,default:BE,useStore:SS},Symbol.toStringTag,{value:"Module"})),qE=qn(zE);var jc={exports:{}},xg={exports:{}},K2;function WE(){return K2||(K2=1,function(e,t){(function(r,i){e.exports=i()})(Sa,function(){var r=typeof Promise=="function",i=typeof self=="object"?self:Sa,c=typeof Symbol<"u",o=typeof Map<"u",a=typeof Set<"u",n=typeof WeakMap<"u",l=typeof WeakSet<"u",f=typeof DataView<"u",s=c&&typeof Symbol.iterator<"u",u=c&&typeof Symbol.toStringTag<"u",d=a&&typeof Set.prototype.entries=="function",h=o&&typeof Map.prototype.entries=="function",p=d&&Object.getPrototypeOf(new Set().entries()),g=h&&Object.getPrototypeOf(new Map().entries()),y=s&&typeof Array.prototype[Symbol.iterator]=="function",v=y&&Object.getPrototypeOf([][Symbol.iterator]()),m=s&&typeof String.prototype[Symbol.iterator]=="function",b=m&&Object.getPrototypeOf(""[Symbol.iterator]()),x=8,_=-1;function w(k){var T=typeof k;if(T!=="object")return T;if(k===null)return"null";if(k===i)return"global";if(Array.isArray(k)&&(u===!1||!(Symbol.toStringTag in k)))return"Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&k===window.location)return"Location";if(typeof window.document=="object"&&k===window.document)return"Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&k===window.navigator.mimeTypes)return"MimeTypeArray";if(typeof window.navigator.plugins=="object"&&k===window.navigator.plugins)return"PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&k instanceof window.HTMLElement){if(k.tagName==="BLOCKQUOTE")return"HTMLQuoteElement";if(k.tagName==="TD")return"HTMLTableDataCellElement";if(k.tagName==="TH")return"HTMLTableHeaderCellElement"}}var M=u&&k[Symbol.toStringTag];if(typeof M=="string")return M;var S=Object.getPrototypeOf(k);return S===RegExp.prototype?"RegExp":S===Date.prototype?"Date":r&&S===Promise.prototype?"Promise":a&&S===Set.prototype?"Set":o&&S===Map.prototype?"Map":l&&S===WeakSet.prototype?"WeakSet":n&&S===WeakMap.prototype?"WeakMap":f&&S===DataView.prototype?"DataView":o&&S===g?"Map Iterator":a&&S===p?"Set Iterator":y&&S===v?"Array Iterator":m&&S===b?"String Iterator":S===null?"Object":Object.prototype.toString.call(k).slice(x,_)}return w})}(xg)),xg.exports}var J2;function OS(){if(J2)return jc.exports;J2=1;/*! * deep-eql * Copyright(c) 2013 Jake Luer * MIT Licensed - */var e=LE();function t(){this._key="chai/deep-eql__"+Math.random()+Date.now()}t.prototype={get:function(k){return k[this._key]},set:function(k,T){Object.isExtensible(k)&&Object.defineProperty(k,this._key,{value:T,configurable:!0})}};var r=typeof WeakMap=="function"?WeakMap:t;/*! + */var e=WE();function t(){this._key="chai/deep-eql__"+Math.random()+Date.now()}t.prototype={get:function(k){return k[this._key]},set:function(k,T){Object.isExtensible(k)&&Object.defineProperty(k,this._key,{value:T,configurable:!0})}};var r=typeof WeakMap=="function"?WeakMap:t;/*! * Check to see if the MemoizeMap has recorded a result of the two operands * * @param {Mixed} leftHandOperand @@ -102,9 +102,9 @@ should equal * @param {Mixed} rightHandOperand * @param {MemoizeMap} memoizeMap * @param {Boolean} result -*/function u(w,k,T,M){if(!(!T||x(w)||x(k))){var S=T.get(w);S?S.set(k,M):(S=new r,S.set(k,M),T.set(w,S))}}/*! +*/function c(w,k,T,M){if(!(!T||x(w)||x(k))){var S=T.get(w);S?S.set(k,M):(S=new r,S.set(k,M),T.set(w,S))}}/*! * Primary Export - */Ic.exports=o,Ic.exports.MemoizeMap=r;function o(w,k,T){if(T&&T.comparator)return n(w,k,T);var M=a(w,k);return M!==null?M:n(w,k,T)}function a(w,k){return w===k?w!==0||1/w===1/k:w!==w&&k!==k?!0:x(w)||x(k)?!1:null}/*! + */jc.exports=o,jc.exports.MemoizeMap=r;function o(w,k,T){if(T&&T.comparator)return n(w,k,T);var M=a(w,k);return M!==null?M:n(w,k,T)}function a(w,k){return w===k?w!==0||1/w===1/k:w!==w&&k!==k?!0:x(w)||x(k)?!1:null}/*! * The main logic of the `deepEqual` function. * * @param {Mixed} leftHandOperand @@ -115,7 +115,7 @@ should equal complex objects for a speed boost. By passing `false` you can disable memoization, but this will cause circular references to blow the stack. * @return {Boolean} equal match -*/function n(w,k,T){T=T||{},T.memoize=T.memoize===!1?!1:T.memoize||new r;var M=T&&T.comparator,S=i(w,k,T.memoize);if(S!==null)return S;var C=i(k,w,T.memoize);if(C!==null)return C;if(M){var P=M(w,k);if(P===!1||P===!0)return u(w,k,T.memoize,P),P;var D=a(w,k);if(D!==null)return D}var O=e(w);if(O!==e(k))return u(w,k,T.memoize,!1),!1;u(w,k,T.memoize,!0);var R=l(w,k,O,T);return u(w,k,T.memoize,R),R}function l(w,k,T,M){switch(T){case"String":case"Number":case"Boolean":case"Date":return o(w.valueOf(),k.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return w===k;case"Error":return g(w,k,["name","message","code"],M);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return c(w,k,M);case"RegExp":return f(w,k);case"Generator":return d(w,k,M);case"DataView":return c(new Uint8Array(w.buffer),new Uint8Array(k.buffer),M);case"ArrayBuffer":return c(new Uint8Array(w),new Uint8Array(k),M);case"Set":return s(w,k,M);case"Map":return s(w,k,M);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return w.equals(k);case"Temporal.Duration":return w.total("nanoseconds")===k.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return w.toString()===k.toString();default:return b(w,k,M)}}/*! +*/function n(w,k,T){T=T||{},T.memoize=T.memoize===!1?!1:T.memoize||new r;var M=T&&T.comparator,S=i(w,k,T.memoize);if(S!==null)return S;var C=i(k,w,T.memoize);if(C!==null)return C;if(M){var P=M(w,k);if(P===!1||P===!0)return c(w,k,T.memoize,P),P;var D=a(w,k);if(D!==null)return D}var O=e(w);if(O!==e(k))return c(w,k,T.memoize,!1),!1;c(w,k,T.memoize,!0);var R=l(w,k,O,T);return c(w,k,T.memoize,R),R}function l(w,k,T,M){switch(T){case"String":case"Number":case"Boolean":case"Date":return o(w.valueOf(),k.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return w===k;case"Error":return m(w,k,["name","message","code"],M);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return u(w,k,M);case"RegExp":return f(w,k);case"Generator":return d(w,k,M);case"DataView":return u(new Uint8Array(w.buffer),new Uint8Array(k.buffer),M);case"ArrayBuffer":return u(new Uint8Array(w),new Uint8Array(k),M);case"Set":return s(w,k,M);case"Map":return s(w,k,M);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return w.equals(k);case"Temporal.Duration":return w.total("nanoseconds")===k.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return w.toString()===k.toString();default:return b(w,k,M)}}/*! * Compare two Regular Expressions for equality. * * @param {RegExp} leftHandOperand @@ -128,21 +128,21 @@ should equal * @param {Set} rightHandOperand * @param {Object} [options] (Optional) * @return {Boolean} result - */function s(w,k,T){if(w.size!==k.size)return!1;if(w.size===0)return!0;var M=[],S=[];return w.forEach(function(P,D){M.push([P,D])}),k.forEach(function(P,D){S.push([P,D])}),c(M.sort(),S.sort(),T)}/*! + */function s(w,k,T){if(w.size!==k.size)return!1;if(w.size===0)return!0;var M=[],S=[];return w.forEach(function(P,D){M.push([P,D])}),k.forEach(function(P,D){S.push([P,D])}),u(M.sort(),S.sort(),T)}/*! * Simple equality for flat iterable objects such as Arrays, TypedArrays or Node.js buffers. * * @param {Iterable} leftHandOperand * @param {Iterable} rightHandOperand * @param {Object} [options] (Optional) * @return {Boolean} result - */function c(w,k,T){var M=w.length;if(M!==k.length)return!1;if(M===0)return!0;for(var S=-1;++S=0)&&(u[a]=r[a]);return u}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Sg)),Sg.exports}var ww;function jl(){return ww||(ww=1,function(e){var t=QE();function r(i,u){if(i==null)return{};var o=t(i,u),a,n;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(i,a)&&(o[a]=i[a])}return o}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(Mg)),Mg.exports}var _w;function eR(){return _w||(_w=1,function(e){var t=vn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(JE),i=t(hr()),u=t(jl()),o=t($e),a=["forwardedRef"];function n(f){var s=f.forwardedRef,c=(0,u.default)(f,a);return o.default.createElement(r.default,(0,i.default)({elevation:2},c,{ref:s}))}var l=o.default.forwardRef(function(s,c){return o.default.createElement(n,(0,i.default)({},s,{forwardedRef:c}))});e.default=l}(kg)),kg}var Cg={};const Bo=qn(i9);var Og={exports:{}},Tw;function tR(){return Tw||(Tw=1,function(e,t){(function(i,u){e.exports=u($e)})(Ma,function(r){return function(i){var u={};function o(a){if(u[a])return u[a].exports;var n=u[a]={exports:{},id:a,loaded:!1};return i[a].call(n.exports,n,n.exports,o),n.loaded=!0,n.exports}return o.m=i,o.c=u,o.p="",o(0)}([function(i,u,o){Object.defineProperty(u,"__esModule",{value:!0});var a=function(){function p(m,y){for(var v=0;vr.length)&&(i=r.length);for(var u=0,o=new Array(i);u0&&R++,m.hasDetailPanel&&R++,m.isTreeData&&R++,l.default.createElement(a.default,{style:{height:O*(v.paging&&v.emptyRowsWhenPaging?m.pageSize:1)},key:"empty-0"},l.default.createElement(n.default,{style:{paddingTop:0,paddingBottom:0,textAlign:"center"},colSpan:m.columns.reduce(function(F,A){return A.hidden?F:F+1},R),key:"empty-"},y.emptyDataSourceMessage))}else if(v.emptyRowsWhenPaging)return l.default.createElement(l.default.Fragment,null,(0,o.default)(Array(P)).map(function(F,A){return l.default.createElement(a.default,{style:{height:O},key:"empty-"+A})}),P>0&&l.default.createElement(a.default,{style:{height:1},key:"empty-last1"}))}function _(P){return P.map(function(D,O){if(D.tableData.editing||m.bulkEditOpen)return l.default.createElement(m.components.EditRow,{columns:b,components:m.components,data:D,errorState:m.errorState,icons:g,localization:y.editRow,key:"row-"+D.tableData.uuid,mode:m.bulkEditOpen?"bulk":D.tableData.editing,isTreeData:m.isTreeData,detailPanel:m.detailPanel,onEditingCanceled:m.onEditingCanceled,onEditingApproved:m.onEditingApproved,bulkEditChangedRows:m.bulkEditChangedRows,getFieldValue:m.getFieldValue,onBulkEditRowChanged:m.onBulkEditRowChanged,scrollWidth:m.scrollWidth});var R=m.isTreeData?[D.tableData.uuid]:[O+m.pageSize*m.currentPage];return l.default.createElement(m.components.Row,{components:m.components,data:D,index:O,errorState:m.errorState,key:"row-"+D.tableData.uuid,level:0,onRowSelected:m.onRowSelected,actions:m.actions,columns:m.columns,getFieldValue:m.getFieldValue,detailPanel:m.detailPanel,path:R,onToggleDetailPanel:m.onToggleDetailPanel,onRowClick:m.onRowClick,onRowDoubleClick:m.onRowDoubleClick,isTreeData:m.isTreeData,onTreeExpandChanged:m.onTreeExpandChanged,onEditingCanceled:m.onEditingCanceled,onEditingApproved:m.onEditingApproved,hasAnyEditingRow:m.hasAnyEditingRow,treeDataMaxLevel:m.treeDataMaxLevel,cellEditable:m.cellEditable,onCellEditStarted:m.onCellEditStarted,onCellEditFinished:m.onCellEditFinished,onRowEditStarted:m.onRowEditStarted,scrollWidth:m.scrollWidth})})}function w(P,D){return D.map(function(O,R){return l.default.createElement(m.components.GroupRow,{actions:m.actions,cellEditable:m.cellEditable,columns:m.columns,components:m.components,detailPanel:m.detailPanel,getFieldValue:m.getFieldValue,groupData:O,groups:P,hasAnyEditingRow:m.hasAnyEditingRow,icons:g,isTreeData:m.isTreeData,key:O.value==null?""+R:O.value,level:0,localization:y.editRow,onBulkEditRowChanged:m.onBulkEditRowChanged,onCellEditFinished:m.onCellEditFinished,onCellEditStarted:m.onCellEditStarted,onEditingApproved:m.onEditingApproved,onEditingCanceled:m.onEditingCanceled,onGroupExpandChanged:m.onGroupExpandChanged,onRowClick:m.onRowClick,onGroupSelected:m.onGroupSelected,onRowSelected:m.onRowSelected,onToggleDetailPanel:m.onToggleDetailPanel,onTreeExpandChanged:m.onTreeExpandChanged,path:[R+m.pageSize*m.currentPage],scrollWidth:m.scrollWidth,treeDataMaxLevel:m.treeDataMaxLevel})})}function k(){return m.showAddRow&&l.default.createElement(m.components.EditRow,{columns:b,components:m.components,data:m.initialFormData,detailPanel:m.detailPanel,errorState:m.errorState,getFieldValue:m.getFieldValue,icons:g,isTreeData:m.isTreeData,key:"key-add-row",localization:y.editRow,mode:"add",onEditingApproved:m.onEditingApproved,onEditingCanceled:m.onEditingCanceled,scrollWidth:m.scrollWidth})}var T=m.renderData,M=m.columns.filter(function(P){return P.tableData.groupOrder>-1}).sort(function(P,D){return P.tableData.groupOrder-D.tableData.groupOrder}),S=0;v.paging&&m.pageSize>T.length&&(S=m.pageSize-T.length);var C=l.default.useMemo(function(){return m.renderSummaryRow?function(P){return m.renderSummaryRow(d(d({},P),{},{data:m.data,currentData:m.currentData}))}:void 0},[m.data]);return l.default.createElement(i.default,{ref:m.forwardedRef},v.filtering&&l.default.createElement(m.components.FilterRow,{columns:b,icons:g,hasActions:m.actions.some(function(P){return P.position==="row"||typeof P=="function"}),onFilterChanged:m.onFilterChanged,localization:y.filterRow,hasDetailPanel:!!m.detailPanel,isTreeData:m.isTreeData,scrollWidth:m.scrollWidth,hideFilterIcons:m.options.hideFilterIcons}),v.addRowPosition==="first"&&k(),M.length>0?w(M,T):_(T),v.addRowPosition==="last"&&k(),l.default.createElement(m.components.SummaryRow,{columns:b,renderSummaryRow:C,rowProps:m}),x(S,T))}h.defaultProps={actions:[],currentPage:0,data:[],pageSize:5,renderData:[],selection:!1},h.propTypes={actions:f.default.array,bulkEditChangedRows:f.default.object,bulkEditOpen:f.default.bool,cellEditable:f.default.object,columns:f.default.array.isRequired,components:f.default.object.isRequired,currentPage:f.default.number,data:f.default.array,detailPanel:f.default.oneOfType([f.default.func,f.default.arrayOf(f.default.oneOfType([f.default.object,f.default.func]))]),errorState:f.default.oneOfType([f.default.object,f.default.bool]),forwardedRef:f.default.oneOfType([f.default.func,f.default.object]),getFieldValue:f.default.func.isRequired,hasAnyEditingRow:f.default.bool,hasDetailPanel:f.default.bool.isRequired,initialFormData:f.default.object,isTreeData:f.default.bool.isRequired,onBulkEditRowChanged:f.default.func,onCellEditFinished:f.default.func,onCellEditStarted:f.default.func,onEditingApproved:f.default.func,onEditingCanceled:f.default.func,onFilterChanged:f.default.func,onGroupExpandChanged:f.default.func,onRowClick:f.default.func,onRowDoubleClick:f.default.func,onGroupSelected:f.default.func,onRowSelected:f.default.func,onToggleDetailPanel:f.default.func.isRequired,onTreeExpandChanged:f.default.func.isRequired,pageSize:f.default.number,renderData:f.default.array,renderSummaryRow:f.default.func,scrollWidth:f.default.number.isRequired,selection:f.default.bool.isRequired,showAddRow:f.default.bool,treeDataMaxLevel:f.default.number};var p=l.default.forwardRef(function(y,v){return l.default.createElement(h,(0,r.default)({},y,{forwardedRef:v}))});e.default=p}(Ag)),Ag}var Fg={},Ng={exports:{}},Ew;function Dd(){return Ew||(Ew=1,function(e){function t(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ng)),Ng.exports}var jg={exports:{}},Rw;function Ed(){return Rw||(Rw=1,function(e){var t=hS();function r(u,o){for(var a=0;a1?"s":"")+" required, but only "+t.length+" present")}function hn(e){dn(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Mi(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function C0(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return isNaN(i)?new Date(NaN):(i&&r.setDate(r.getDate()+i),r)}function Ld(e,t){dn(2,arguments);var r=hn(e).getTime(),i=sr(t);return new Date(r+i)}function fR(e,t){dn(2,arguments);var r=sr(t);return Ld(e,r*1e3)}var dR=6e4;function hR(e,t){dn(2,arguments);var r=sr(t);return Ld(e,r*dR)}var pR=36e5;function gR(e,t){dn(2,arguments);var r=sr(t);return Ld(e,r*pR)}function mR(e,t){dn(2,arguments);var r=sr(t),i=r*7;return C0(e,i)}function ff(e,t){dn(2,arguments);var r=hn(e),i=sr(t);if(isNaN(i))return new Date(NaN);if(!i)return r;var u=r.getDate(),o=new Date(r.getTime());o.setMonth(r.getMonth()+i+1,0);var a=o.getDate();return u>=a?o:(r.setFullYear(o.getFullYear(),o.getMonth(),u),r)}function $w(e,t){dn(2,arguments);var r=sr(t);return ff(e,r*12)}function vR(e,t){dn(2,arguments);var r=hn(e),i=hn(t);return r.getFullYear()-i.getFullYear()}function wu(e,t){dn(2,arguments);var r=hn(e),i=hn(t),u=r.getTime()-i.getTime();return u<0?-1:u>0?1:u}function yR(e,t){dn(2,arguments);var r=hn(e),i=hn(t),u=wu(r,i),o=Math.abs(vR(r,i));r.setFullYear(1584),i.setFullYear(1584);var a=wu(r,i)===-u,n=u*(o-Number(a));return n===0?0:n}function bR(e,t){dn(2,arguments);var r=hn(e),i=hn(t),u=r.getFullYear()-i.getFullYear(),o=r.getMonth()-i.getMonth();return u*12+o}function O0(e){dn(1,arguments);var t=hn(e);return t.setHours(23,59,59,999),t}function A0(e){dn(1,arguments);var t=hn(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function xR(e){dn(1,arguments);var t=hn(e);return O0(t).getTime()===A0(t).getTime()}function DS(e,t){dn(2,arguments);var r=hn(e),i=hn(t),u=wu(r,i),o=Math.abs(bR(r,i)),a;if(o<1)a=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-u*o);var n=wu(r,i)===-u;xR(hn(e))&&o===1&&wu(e,i)===1&&(n=!1),a=u*(o-Number(n))}return a===0?0:a}var Bw={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},wR="trunc";function Qu(e){return e?Bw[e]:Bw[wR]}function _R(e,t,r){dn(2,arguments);var i=DS(e,t)/3;return Qu(void 0)(i)}function Df(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function _l(e){dn(1,arguments);var t=hn(e);return t.setHours(0,0,0,0),t}var TR=864e5;function kR(e,t){dn(2,arguments);var r=_l(e),i=_l(t),u=r.getTime()-Df(r),o=i.getTime()-Df(i);return Math.round((u-o)/TR)}function zw(e,t){var r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}function ES(e,t){dn(2,arguments);var r=hn(e),i=hn(t),u=zw(r,i),o=Math.abs(kR(r,i));r.setDate(r.getDate()-u*o);var a=+(zw(r,i)===-u),n=u*(o-a);return n===0?0:n}function MR(e,t,r){dn(2,arguments);var i=ES(e,t)/7;return Qu(void 0)(i)}var Id=6e4,Fd=36e5,SR=1e3;function Nd(e,t){return dn(2,arguments),hn(e).getTime()-hn(t).getTime()}function CR(e,t,r){dn(2,arguments);var i=Nd(e,t)/Fd;return Qu(void 0)(i)}function OR(e,t,r){dn(2,arguments);var i=Nd(e,t)/Id;return Qu(void 0)(i)}function AR(e,t,r){dn(2,arguments);var i=Nd(e,t)/1e3;return Qu(void 0)(i)}function PR(e,t){var r;dn(1,arguments);var i=e||{},u=hn(i.start),o=hn(i.end),a=o.getTime();if(!(u.getTime()<=a))throw new RangeError("Invalid interval");var n=[],l=u;l.setHours(0,0,0,0);var f=Number((r=void 0)!==null&&r!==void 0?r:1);if(f<1||isNaN(f))throw new RangeError("`options.step` must be a number greater than 1");for(;l.getTime()<=a;)n.push(hn(l)),l.setDate(l.getDate()+f),l.setHours(0,0,0,0);return n}var DR={};function ro(){return DR}function Ug(e,t){var r,i,u,o,a,n,l,f;dn(1,arguments);var s=ro(),c=sr((r=(i=(u=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(n=a.options)===null||n===void 0?void 0:n.weekStartsOn)!==null&&u!==void 0?u:s.weekStartsOn)!==null&&i!==void 0?i:(l=s.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=hn(e),h=d.getDay(),p=(h=u.getTime()?r+1:t.getTime()>=a.getTime()?r:r-1}function IR(e){dn(1,arguments);var t=IS(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var i=Tl(r);return i}var FR=6048e5;function FS(e){dn(1,arguments);var t=hn(e),r=Tl(t).getTime()-IR(t).getTime();return Math.round(r/FR)+1}function Co(e,t){var r,i,u,o,a,n,l,f;dn(1,arguments);var s=ro(),c=sr((r=(i=(u=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(n=a.options)===null||n===void 0?void 0:n.weekStartsOn)!==null&&u!==void 0?u:s.weekStartsOn)!==null&&i!==void 0?i:(l=s.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=hn(e),h=d.getUTCDay(),p=(h=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(c+1,0,h),p.setUTCHours(0,0,0,0);var m=Co(p,t),y=new Date(0);y.setUTCFullYear(c,0,h),y.setUTCHours(0,0,0,0);var v=Co(y,t);return s.getTime()>=m.getTime()?c+1:s.getTime()>=v.getTime()?c:c-1}function NR(e,t){var r,i,u,o,a,n,l,f;dn(1,arguments);var s=ro(),c=sr((r=(i=(u=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(n=a.options)===null||n===void 0?void 0:n.firstWeekContainsDate)!==null&&u!==void 0?u:s.firstWeekContainsDate)!==null&&i!==void 0?i:(l=s.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&r!==void 0?r:1),d=Ty(e,t),h=new Date(0);h.setUTCFullYear(d,0,c),h.setUTCHours(0,0,0,0);var p=Co(h,t);return p}var jR=6048e5;function NS(e,t){dn(1,arguments);var r=hn(e),i=Co(r,t).getTime()-NR(r,t).getTime();return Math.round(i/jR)+1}function Hn(e,t){for(var r=e<0?"-":"",i=Math.abs(e).toString();i.length0?i:1-i;return Hn(r==="yy"?u%100:u,r.length)},M:function(t,r){var i=t.getUTCMonth();return r==="M"?String(i+1):Hn(i+1,2)},d:function(t,r){return Hn(t.getUTCDate(),r.length)},a:function(t,r){var i=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];case"aaaa":default:return i==="am"?"a.m.":"p.m."}},h:function(t,r){return Hn(t.getUTCHours()%12||12,r.length)},H:function(t,r){return Hn(t.getUTCHours(),r.length)},m:function(t,r){return Hn(t.getUTCMinutes(),r.length)},s:function(t,r){return Hn(t.getUTCSeconds(),r.length)},S:function(t,r){var i=r.length,u=t.getUTCMilliseconds(),o=Math.floor(u*Math.pow(10,i-3));return Hn(o,r.length)}},al={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},$R={G:function(t,r,i){var u=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return i.era(u,{width:"abbreviated"});case"GGGGG":return i.era(u,{width:"narrow"});case"GGGG":default:return i.era(u,{width:"wide"})}},y:function(t,r,i){if(r==="yo"){var u=t.getUTCFullYear(),o=u>0?u:1-u;return i.ordinalNumber(o,{unit:"year"})}return Bi.y(t,r)},Y:function(t,r,i,u){var o=Ty(t,u),a=o>0?o:1-o;if(r==="YY"){var n=a%100;return Hn(n,2)}return r==="Yo"?i.ordinalNumber(a,{unit:"year"}):Hn(a,r.length)},R:function(t,r){var i=IS(t);return Hn(i,r.length)},u:function(t,r){var i=t.getUTCFullYear();return Hn(i,r.length)},Q:function(t,r,i){var u=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(u);case"QQ":return Hn(u,2);case"Qo":return i.ordinalNumber(u,{unit:"quarter"});case"QQQ":return i.quarter(u,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(u,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(u,{width:"wide",context:"formatting"})}},q:function(t,r,i){var u=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(u);case"qq":return Hn(u,2);case"qo":return i.ordinalNumber(u,{unit:"quarter"});case"qqq":return i.quarter(u,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(u,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(u,{width:"wide",context:"standalone"})}},M:function(t,r,i){var u=t.getUTCMonth();switch(r){case"M":case"MM":return Bi.M(t,r);case"Mo":return i.ordinalNumber(u+1,{unit:"month"});case"MMM":return i.month(u,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(u,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(u,{width:"wide",context:"formatting"})}},L:function(t,r,i){var u=t.getUTCMonth();switch(r){case"L":return String(u+1);case"LL":return Hn(u+1,2);case"Lo":return i.ordinalNumber(u+1,{unit:"month"});case"LLL":return i.month(u,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(u,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(u,{width:"wide",context:"standalone"})}},w:function(t,r,i,u){var o=NS(t,u);return r==="wo"?i.ordinalNumber(o,{unit:"week"}):Hn(o,r.length)},I:function(t,r,i){var u=FS(t);return r==="Io"?i.ordinalNumber(u,{unit:"week"}):Hn(u,r.length)},d:function(t,r,i){return r==="do"?i.ordinalNumber(t.getUTCDate(),{unit:"date"}):Bi.d(t,r)},D:function(t,r,i){var u=LR(t);return r==="Do"?i.ordinalNumber(u,{unit:"dayOfYear"}):Hn(u,r.length)},E:function(t,r,i){var u=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return i.day(u,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(u,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(u,{width:"short",context:"formatting"});case"EEEE":default:return i.day(u,{width:"wide",context:"formatting"})}},e:function(t,r,i,u){var o=t.getUTCDay(),a=(o-u.weekStartsOn+8)%7||7;switch(r){case"e":return String(a);case"ee":return Hn(a,2);case"eo":return i.ordinalNumber(a,{unit:"day"});case"eee":return i.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(o,{width:"short",context:"formatting"});case"eeee":default:return i.day(o,{width:"wide",context:"formatting"})}},c:function(t,r,i,u){var o=t.getUTCDay(),a=(o-u.weekStartsOn+8)%7||7;switch(r){case"c":return String(a);case"cc":return Hn(a,r.length);case"co":return i.ordinalNumber(a,{unit:"day"});case"ccc":return i.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(o,{width:"narrow",context:"standalone"});case"cccccc":return i.day(o,{width:"short",context:"standalone"});case"cccc":default:return i.day(o,{width:"wide",context:"standalone"})}},i:function(t,r,i){var u=t.getUTCDay(),o=u===0?7:u;switch(r){case"i":return String(o);case"ii":return Hn(o,r.length);case"io":return i.ordinalNumber(o,{unit:"day"});case"iii":return i.day(u,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(u,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(u,{width:"short",context:"formatting"});case"iiii":default:return i.day(u,{width:"wide",context:"formatting"})}},a:function(t,r,i){var u=t.getUTCHours(),o=u/12>=1?"pm":"am";switch(r){case"a":case"aa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,r,i){var u=t.getUTCHours(),o;switch(u===12?o=al.noon:u===0?o=al.midnight:o=u/12>=1?"pm":"am",r){case"b":case"bb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,r,i){var u=t.getUTCHours(),o;switch(u>=17?o=al.evening:u>=12?o=al.afternoon:u>=4?o=al.morning:o=al.night,r){case"B":case"BB":case"BBB":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,r,i){if(r==="ho"){var u=t.getUTCHours()%12;return u===0&&(u=12),i.ordinalNumber(u,{unit:"hour"})}return Bi.h(t,r)},H:function(t,r,i){return r==="Ho"?i.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Bi.H(t,r)},K:function(t,r,i){var u=t.getUTCHours()%12;return r==="Ko"?i.ordinalNumber(u,{unit:"hour"}):Hn(u,r.length)},k:function(t,r,i){var u=t.getUTCHours();return u===0&&(u=24),r==="ko"?i.ordinalNumber(u,{unit:"hour"}):Hn(u,r.length)},m:function(t,r,i){return r==="mo"?i.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Bi.m(t,r)},s:function(t,r,i){return r==="so"?i.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Bi.s(t,r)},S:function(t,r){return Bi.S(t,r)},X:function(t,r,i,u){var o=u._originalDate||t,a=o.getTimezoneOffset();if(a===0)return"Z";switch(r){case"X":return Ww(a);case"XXXX":case"XX":return po(a);case"XXXXX":case"XXX":default:return po(a,":")}},x:function(t,r,i,u){var o=u._originalDate||t,a=o.getTimezoneOffset();switch(r){case"x":return Ww(a);case"xxxx":case"xx":return po(a);case"xxxxx":case"xxx":default:return po(a,":")}},O:function(t,r,i,u){var o=u._originalDate||t,a=o.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+qw(a,":");case"OOOO":default:return"GMT"+po(a,":")}},z:function(t,r,i,u){var o=u._originalDate||t,a=o.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+qw(a,":");case"zzzz":default:return"GMT"+po(a,":")}},t:function(t,r,i,u){var o=u._originalDate||t,a=Math.floor(o.getTime()/1e3);return Hn(a,r.length)},T:function(t,r,i,u){var o=u._originalDate||t,a=o.getTime();return Hn(a,r.length)}};function qw(e,t){var r=e>0?"-":"+",i=Math.abs(e),u=Math.floor(i/60),o=i%60;if(o===0)return r+String(u);var a=t;return r+String(u)+a+Hn(o,2)}function Ww(e,t){if(e%60===0){var r=e>0?"-":"+";return r+Hn(Math.abs(e)/60,2)}return po(e,t)}function po(e,t){var r=t||"",i=e>0?"-":"+",u=Math.abs(e),o=Hn(Math.floor(u/60),2),a=Hn(u%60,2);return i+o+r+a}var Uw=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},jS=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},BR=function(t,r){var i=t.match(/(P+)(p+)?/)||[],u=i[1],o=i[2];if(!o)return Uw(t,r);var a;switch(u){case"P":a=r.dateTime({width:"short"});break;case"PP":a=r.dateTime({width:"medium"});break;case"PPP":a=r.dateTime({width:"long"});break;case"PPPP":default:a=r.dateTime({width:"full"});break}return a.replace("{{date}}",Uw(u,r)).replace("{{time}}",jS(o,r))},P0={p:jS,P:BR},zR=["D","DD"],qR=["YY","YYYY"];function $S(e){return zR.indexOf(e)!==-1}function BS(e){return qR.indexOf(e)!==-1}function Ef(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var WR={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},UR=function(t,r,i){var u,o=WR[t];return typeof o=="string"?u=o:r===1?u=o.one:u=o.other.replace("{{count}}",r.toString()),i!=null&&i.addSuffix?i.comparison&&i.comparison>0?"in "+u:u+" ago":u};function Vg(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,i=e.formats[r]||e.formats[e.defaultWidth];return i}}var HR={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},VR={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},YR={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},GR={date:Vg({formats:HR,defaultWidth:"full"}),time:Vg({formats:VR,defaultWidth:"full"}),dateTime:Vg({formats:YR,defaultWidth:"full"})},XR={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ZR=function(t,r,i,u){return XR[t]};function Ds(e){return function(t,r){var i=r!=null&&r.context?String(r.context):"standalone",u;if(i==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=r!=null&&r.width?String(r.width):o;u=e.formattingValues[a]||e.formattingValues[o]}else{var n=e.defaultWidth,l=r!=null&&r.width?String(r.width):e.defaultWidth;u=e.values[l]||e.values[n]}var f=e.argumentCallback?e.argumentCallback(t):t;return u[f]}}var KR={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},JR={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},QR={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},eL={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},tL={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},nL={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},rL=function(t,r){var i=Number(t),u=i%100;if(u>20||u<10)switch(u%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},aL={ordinalNumber:rL,era:Ds({values:KR,defaultWidth:"wide"}),quarter:Ds({values:JR,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ds({values:QR,defaultWidth:"wide"}),day:Ds({values:eL,defaultWidth:"wide"}),dayPeriod:Ds({values:tL,defaultWidth:"wide",formattingValues:nL,defaultFormattingWidth:"wide"})};function Es(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.width,u=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],o=t.match(u);if(!o)return null;var a=o[0],n=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(n)?oL(n,function(c){return c.test(a)}):iL(n,function(c){return c.test(a)}),f;f=e.valueCallback?e.valueCallback(l):l,f=r.valueCallback?r.valueCallback(f):f;var s=t.slice(a.length);return{value:f,rest:s}}}function iL(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function oL(e,t){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},i=t.match(e.matchPattern);if(!i)return null;var u=i[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];a=r.valueCallback?r.valueCallback(a):a;var n=t.slice(u.length);return{value:a,rest:n}}}var sL=/^(\d+)(th|st|nd|rd)?/i,uL=/\d+/i,cL={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},fL={any:[/^b/i,/^(a|c)/i]},dL={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},hL={any:[/1/i,/2/i,/3/i,/4/i]},pL={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},gL={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},mL={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},vL={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},yL={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},bL={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},xL={ordinalNumber:lL({matchPattern:sL,parsePattern:uL,valueCallback:function(t){return parseInt(t,10)}}),era:Es({matchPatterns:cL,defaultMatchWidth:"wide",parsePatterns:fL,defaultParseWidth:"any"}),quarter:Es({matchPatterns:dL,defaultMatchWidth:"wide",parsePatterns:hL,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Es({matchPatterns:pL,defaultMatchWidth:"wide",parsePatterns:gL,defaultParseWidth:"any"}),day:Es({matchPatterns:mL,defaultMatchWidth:"wide",parsePatterns:vL,defaultParseWidth:"any"}),dayPeriod:Es({matchPatterns:yL,defaultMatchWidth:"any",parsePatterns:bL,defaultParseWidth:"any"})},jd={code:"en-US",formatDistance:UR,formatLong:GR,formatRelative:ZR,localize:aL,match:xL,options:{weekStartsOn:0,firstWeekContainsDate:1}},wL=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,_L=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,TL=/^'([^]*?)'?$/,kL=/''/g,ML=/[a-zA-Z]/;function zS(e,t,r){var i,u,o,a,n,l,f,s,c,d,h,p,m,y,v,g,b,x;dn(2,arguments);var _=String(t),w=ro(),k=(i=(u=r==null?void 0:r.locale)!==null&&u!==void 0?u:w.locale)!==null&&i!==void 0?i:jd,T=sr((o=(a=(n=(l=r==null?void 0:r.firstWeekContainsDate)!==null&&l!==void 0?l:r==null||(f=r.locale)===null||f===void 0||(s=f.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&n!==void 0?n:w.firstWeekContainsDate)!==null&&a!==void 0?a:(c=w.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=sr((h=(p=(m=(y=r==null?void 0:r.weekStartsOn)!==null&&y!==void 0?y:r==null||(v=r.locale)===null||v===void 0||(g=v.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&m!==void 0?m:w.weekStartsOn)!==null&&p!==void 0?p:(b=w.locale)===null||b===void 0||(x=b.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&h!==void 0?h:0);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var S=hn(e);if(!RS(S))throw new RangeError("Invalid time value");var C=Df(S),P=LS(S,C),D={firstWeekContainsDate:T,weekStartsOn:M,locale:k,_originalDate:S},O=_.match(_L).map(function(R){var F=R[0];if(F==="p"||F==="P"){var A=P0[F];return A(R,k.formatLong)}return R}).join("").match(wL).map(function(R){if(R==="''")return"'";var F=R[0];if(F==="'")return SL(R);var A=$R[F];if(A)return!(r!=null&&r.useAdditionalWeekYearTokens)&&BS(R)&&Ef(R,t,String(e)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&$S(R)&&Ef(R,t,String(e)),A(P,R,k.localize,D);if(F.match(ML))throw new RangeError("Format string contains an unescaped latin alphabet character `"+F+"`");return R}).join("");return O}function SL(e){var t=e.match(TL);return t?t[1].replace(kL,"'"):e}const CL=Object.freeze(Object.defineProperty({__proto__:null,default:zS},Symbol.toStringTag,{value:"Module"}));function OL(e){dn(1,arguments);var t=hn(e),r=t.getDate();return r}function AL(e){dn(1,arguments);var t=hn(e),r=t.getDay();return r}function qS(e){dn(1,arguments);var t=hn(e),r=t.getFullYear(),i=t.getMonth(),u=new Date(0);return u.setFullYear(r,i+1,0),u.setHours(0,0,0,0),u.getDate()}function PL(e){dn(1,arguments);var t=hn(e),r=t.getHours();return r}function DL(e){dn(1,arguments);var t=hn(e),r=t.getMinutes();return r}function EL(e){dn(1,arguments);var t=hn(e),r=t.getMonth();return r}function RL(e){dn(1,arguments);var t=hn(e),r=t.getSeconds();return r}function LL(e){return dn(1,arguments),hn(e).getFullYear()}function Fc(e,t){dn(2,arguments);var r=hn(e),i=hn(t);return r.getTime()>i.getTime()}function il(e,t){dn(2,arguments);var r=hn(e),i=hn(t);return r.getTime()e.length)&&(t=e.length);for(var r=0,i=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(f){throw f},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,n;return{s:function(){r=r.call(e)},n:function(){var f=r.next();return o=f.done,f},e:function(f){a=!0,n=f},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(a)throw n}}}}function zL(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function Qn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v9(e,t)}function Rf(e){return Rf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Rf(e)}function qL(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function WL(e,t){if(t&&(Mi(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xn(e)}function er(e){var t=qL();return function(){var i=Rf(e),u;if(t){var o=Rf(this).constructor;u=Reflect.construct(i,arguments,o)}else u=i.apply(this,arguments);return WL(this,u)}}function Zn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UL(e,t){if(Mi(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(Mi(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function WS(e){var t=UL(e,"string");return Mi(t)==="symbol"?t:String(t)}function HL(e,t){for(var r=0;r0,i=r?t:1-t,u;if(i<=50)u=e||100;else{var o=i+50,a=Math.floor(o/100)*100,n=e>=o%100;u=e+a-(n?100:0)}return r?u:1-u}function YS(e){return e%400===0||e%4===0&&e%100!==0}var ZL=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a0}},{key:"set",value:function(u,o,a){var n=u.getUTCFullYear();if(a.isTwoDigitYear){var l=VS(a.year,n);return u.setUTCFullYear(l,0,1),u.setUTCHours(0,0,0,0),u}var f=!("era"in o)||o.era===1?a.year:1-a.year;return u.setUTCFullYear(f,0,1),u.setUTCHours(0,0,0,0),u}}]),r}(or),KL=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a0}},{key:"set",value:function(u,o,a,n){var l=Ty(u,n);if(a.isTwoDigitYear){var f=VS(a.year,l);return u.setUTCFullYear(f,0,n.firstWeekContainsDate),u.setUTCHours(0,0,0,0),Co(u,n)}var s=!("era"in o)||o.era===1?a.year:1-a.year;return u.setUTCFullYear(s,0,n.firstWeekContainsDate),u.setUTCHours(0,0,0,0),Co(u,n)}}]),r}(or),JL=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=1&&o<=4}},{key:"set",value:function(u,o,a){return u.setUTCMonth((a-1)*3,1),u.setUTCHours(0,0,0,0),u}}]),r}(or),tI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=1&&o<=4}},{key:"set",value:function(u,o,a){return u.setUTCMonth((a-1)*3,1),u.setUTCHours(0,0,0,0),u}}]),r}(or),nI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=0&&o<=11}},{key:"set",value:function(u,o,a){return u.setUTCMonth(a,1),u.setUTCHours(0,0,0,0),u}}]),r}(or),rI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=0&&o<=11}},{key:"set",value:function(u,o,a){return u.setUTCMonth(a,1),u.setUTCHours(0,0,0,0),u}}]),r}(or);function aI(e,t,r){dn(2,arguments);var i=hn(e),u=sr(t),o=NS(i,r)-u;return i.setUTCDate(i.getUTCDate()-o*7),i}var iI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=1&&o<=53}},{key:"set",value:function(u,o,a,n){return Co(aI(u,a,n),n)}}]),r}(or);function oI(e,t){dn(2,arguments);var r=hn(e),i=sr(t),u=FS(r)-i;return r.setUTCDate(r.getUTCDate()-u*7),r}var lI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=1&&o<=53}},{key:"set",value:function(u,o,a){return Tl(oI(u,a))}}]),r}(or),sI=[31,28,31,30,31,30,31,31,30,31,30,31],uI=[31,29,31,30,31,30,31,31,30,31,30,31],cI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=1&&o<=uI[l]:o>=1&&o<=sI[l]}},{key:"set",value:function(u,o,a){return u.setUTCDate(a),u.setUTCHours(0,0,0,0),u}}]),r}(or),fI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(u,o,a){return u.setUTCMonth(0,a),u.setUTCHours(0,0,0,0),u}}]),r}(or);function My(e,t,r){var i,u,o,a,n,l,f,s;dn(2,arguments);var c=ro(),d=sr((i=(u=(o=(a=r==null?void 0:r.weekStartsOn)!==null&&a!==void 0?a:r==null||(n=r.locale)===null||n===void 0||(l=n.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:c.weekStartsOn)!==null&&u!==void 0?u:(f=c.locale)===null||f===void 0||(s=f.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=hn(e),p=sr(t),m=h.getUTCDay(),y=p%7,v=(y+7)%7,g=(v=0&&o<=6}},{key:"set",value:function(u,o,a,n){return u=My(u,a,n),u.setUTCHours(0,0,0,0),u}}]),r}(or),hI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=0&&o<=6}},{key:"set",value:function(u,o,a,n){return u=My(u,a,n),u.setUTCHours(0,0,0,0),u}}]),r}(or),pI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=0&&o<=6}},{key:"set",value:function(u,o,a,n){return u=My(u,a,n),u.setUTCHours(0,0,0,0),u}}]),r}(or);function gI(e,t){dn(2,arguments);var r=sr(t);r%7===0&&(r=r-7);var i=1,u=hn(e),o=u.getUTCDay(),a=r%7,n=(a+7)%7,l=(n=1&&o<=7}},{key:"set",value:function(u,o,a){return u=gI(u,a),u.setUTCHours(0,0,0,0),u}}]),r}(or),vI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=1&&o<=12}},{key:"set",value:function(u,o,a){var n=u.getUTCHours()>=12;return n&&a<12?u.setUTCHours(a+12,0,0,0):!n&&a===12?u.setUTCHours(0,0,0,0):u.setUTCHours(a,0,0,0),u}}]),r}(or),wI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=0&&o<=23}},{key:"set",value:function(u,o,a){return u.setUTCHours(a,0,0,0),u}}]),r}(or),_I=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=0&&o<=11}},{key:"set",value:function(u,o,a){var n=u.getUTCHours()>=12;return n&&a<12?u.setUTCHours(a+12,0,0,0):u.setUTCHours(a,0,0,0),u}}]),r}(or),TI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=1&&o<=24}},{key:"set",value:function(u,o,a){var n=a<=24?a%24:a;return u.setUTCHours(n,0,0,0),u}}]),r}(or),kI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=0&&o<=59}},{key:"set",value:function(u,o,a){return u.setUTCMinutes(a,0,0),u}}]),r}(or),MI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=0&&o<=59}},{key:"set",value:function(u,o,a){return u.setUTCSeconds(a,0),u}}]),r}(or),SI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var u=arguments.length,o=new Array(u),a=0;a=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=sr((p=(m=(y=(v=i==null?void 0:i.weekStartsOn)!==null&&v!==void 0?v:i==null||(g=i.locale)===null||g===void 0||(b=g.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&y!==void 0?y:T.weekStartsOn)!==null&&m!==void 0?m:(x=T.locale)===null||x===void 0||(_=x.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&p!==void 0?p:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(k==="")return w===""?hn(r):new Date(NaN);var P={firstWeekContainsDate:S,weekStartsOn:C,locale:M},D=[new GL],O=k.match(RI).map(function(H){var V=H[0];if(V in P0){var te=P0[V];return te(H,M.formatLong)}return H}).join("").match(EI),R=[],F=Yw(O),A;try{var z=function(){var V=A.value;!(i!=null&&i.useAdditionalWeekYearTokens)&&BS(V)&&Ef(V,k,e),!(i!=null&&i.useAdditionalDayOfYearTokens)&&$S(V)&&Ef(V,k,e);var te=V[0],ee=DI[te];if(ee){var U=ee.incompatibleTokens;if(Array.isArray(U)){var Q=R.find(function(Z){return U.includes(Z.token)||Z.token===te});if(Q)throw new RangeError("The format string mustn't contain `".concat(Q.fullToken,"` and `").concat(V,"` at the same time"))}else if(ee.incompatibleTokens==="*"&&R.length>0)throw new RangeError("The format string mustn't contain `".concat(V,"` and any other token at the same time"));R.push({token:te,fullToken:V});var Y=ee.run(w,V,M.match,P);if(!Y)return{v:new Date(NaN)};D.push(Y.setter),w=Y.rest}else{if(te.match(NI))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");if(V==="''"?V="'":te==="'"&&(V=$I(V)),w.indexOf(V)===0)w=w.slice(V.length);else return{v:new Date(NaN)}}};for(F.s();!(A=F.n()).done;){var B=z();if(Mi(B)==="object")return B.v}}catch(H){F.e(H)}finally{F.f()}if(w.length>0&&FI.test(w))return new Date(NaN);var $=D.map(function(H){return H.priority}).sort(function(H,V){return V-H}).filter(function(H,V,te){return te.indexOf(H)===V}).map(function(H){return D.filter(function(V){return V.priority===H}).sort(function(V,te){return te.subPriority-V.subPriority})}).map(function(H){return H[0]}),j=hn(r);if(isNaN(j.getTime()))return new Date(NaN);var N=LS(j,Df(j)),E={},W=Yw($),G;try{for(W.s();!(G=W.n()).done;){var L=G.value;if(!L.validate(N,P))return new Date(NaN);var q=L.set(N,E,P);Array.isArray(q)?(N=q[0],zL(E,q[1])):N=q}}catch(H){W.e(H)}finally{W.f()}return N}function $I(e){return e.match(LI)[1].replace(II,"'")}function BI(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return r.setDate(i),r}function zI(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return r.setHours(i),r}function qI(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return r.setMinutes(i),r}function WI(e,t){dn(2,arguments);var r=hn(e),i=sr(t),u=r.getFullYear(),o=r.getDate(),a=new Date(0);a.setFullYear(u,i,15),a.setHours(0,0,0,0);var n=qS(a);return r.setMonth(i,Math.min(o,n)),r}function UI(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return r.setSeconds(i),r}function HI(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(i),r)}function Nc(e){dn(1,arguments);var t=hn(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Yg(e,t){var r,i,u,o,a,n,l,f;dn(1,arguments);var s=ro(),c=sr((r=(i=(u=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(n=a.options)===null||n===void 0?void 0:n.weekStartsOn)!==null&&u!==void 0?u:s.weekStartsOn)!==null&&i!==void 0?i:(l=s.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=hn(e),h=d.getDay(),p=(h2)return t;if(/:/.test(r[0])?i=r[0]:(t.date=r[0],i=r[1],$c.timeZoneDelimiter.test(t.date)&&(t.date=e.split($c.timeZoneDelimiter)[0],i=e.substr(t.date.length,e.length))),i){var u=$c.timezone.exec(i);u?(t.time=i.replace(u[1],""),t.timezone=u[1]):t.time=i}return t}function ZI(e,t){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),i=e.match(r);if(!i)return{year:NaN,restDateString:""};var u=i[1]?parseInt(i[1]):null,o=i[2]?parseInt(i[2]):null;return{year:o===null?u:o*100,restDateString:e.slice((i[1]||i[2]).length)}}function KI(e,t){if(t===null)return new Date(NaN);var r=e.match(VI);if(!r)return new Date(NaN);var i=!!r[4],u=Rs(r[1]),o=Rs(r[2])-1,a=Rs(r[3]),n=Rs(r[4]),l=Rs(r[5])-1;if(i)return aF(t,n,l)?eF(t,n,l):new Date(NaN);var f=new Date(0);return!nF(t,o,a)||!rF(t,u)?new Date(NaN):(f.setUTCFullYear(t,o,Math.max(u,a)),f)}function Rs(e){return e?parseInt(e):1}function JI(e){var t=e.match(YI);if(!t)return NaN;var r=Gg(t[1]),i=Gg(t[2]),u=Gg(t[3]);return iF(r,i,u)?r*Fd+i*Id+u*1e3:NaN}function Gg(e){return e&&parseFloat(e.replace(",","."))||0}function QI(e){if(e==="Z")return 0;var t=e.match(GI);if(!t)return 0;var r=t[1]==="+"?-1:1,i=parseInt(t[2]),u=t[3]&&parseInt(t[3])||0;return oF(i,u)?r*(i*Fd+u*Id):NaN}function eF(e,t,r){var i=new Date(0);i.setUTCFullYear(e,0,4);var u=i.getUTCDay()||7,o=(t-1)*7+r+1-u;return i.setUTCDate(i.getUTCDate()+o),i}var tF=[31,null,31,30,31,30,31,31,30,31,30,31];function XS(e){return e%400===0||e%4===0&&e%100!==0}function nF(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(tF[t]||(XS(e)?29:28))}function rF(e,t){return t>=1&&t<=(XS(e)?366:365)}function aF(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function iF(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function oF(e,t){return t>=0&&t<=59}const lF=Object.freeze(Object.defineProperty({__proto__:null,default:GS},Symbol.toStringTag,{value:"Module"}));function sF(e,t){var r,i;dn(1,arguments);var u=hn(e);if(isNaN(u.getTime()))throw new RangeError("Invalid time value");var o=String((r=t==null?void 0:t.format)!==null&&r!==void 0?r:"extended"),a=String((i=t==null?void 0:t.representation)!==null&&i!==void 0?i:"complete");if(o!=="extended"&&o!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(a!=="date"&&a!=="time"&&a!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var n="",l="",f=o==="extended"?"-":"",s=o==="extended"?":":"";if(a!=="time"){var c=Hn(u.getDate(),2),d=Hn(u.getMonth()+1,2),h=Hn(u.getFullYear(),4);n="".concat(h).concat(f).concat(d).concat(f).concat(c)}if(a!=="date"){var p=u.getTimezoneOffset();if(p!==0){var m=Math.abs(p),y=Hn(Math.floor(m/60),2),v=Hn(m%60,2),g=p<0?"+":"-";l="".concat(g).concat(y,":").concat(v)}else l="Z";var b=Hn(u.getHours(),2),x=Hn(u.getMinutes(),2),_=Hn(u.getSeconds(),2),w=n===""?"":"T",k=[b,x,_].join(s);n="".concat(n).concat(w).concat(k).concat(l)}return n}function uF(e,t){dn(2,arguments);var r=hn(e).getTime(),i=hn(t.start).getTime(),u=hn(t.end).getTime();if(!(i<=u))throw new RangeError("Invalid interval");return r>=i&&r<=u}var D0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(l,f){switch(l){case"P":return f.date({width:"short"});case"PP":return f.date({width:"medium"});case"PPP":return f.date({width:"long"});case"PPPP":default:return f.date({width:"full"})}},i=function(l,f){switch(l){case"p":return f.time({width:"short"});case"pp":return f.time({width:"medium"});case"ppp":return f.time({width:"long"});case"pppp":default:return f.time({width:"full"})}},u=function(l,f){var s=l.match(/(P+)(p+)?/)||[],c=s[1],d=s[2];if(!d)return r(l,f);var h;switch(c){case"P":h=f.dateTime({width:"short"});break;case"PP":h=f.dateTime({width:"medium"});break;case"PPP":h=f.dateTime({width:"long"});break;case"PPPP":default:h=f.dateTime({width:"full"});break}return h.replace("{{date}}",r(c,f)).replace("{{time}}",i(d,f))},o={p:i,P:u},a=o;t.default=a,e.exports=t.default})(D0,D0.exports);var cF=D0.exports;const ZS=ir(cF),fF={dayOfMonth:"d",fullDate:"PP",fullDateWithWeekday:"PPPP",fullDateTime:"PP p",fullDateTime12h:"PP hh:mm aaa",fullDateTime24h:"PP HH:mm",fullTime:"p",fullTime12h:"hh:mm aaa",fullTime24h:"HH:mm",hours12h:"hh",hours24h:"HH",keyboardDate:"P",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aaa",keyboardDateTime24h:"P HH:mm",minutes:"mm",month:"LLLL",monthAndDate:"MMMM d",monthAndYear:"LLLL yyyy",monthShort:"MMM",weekday:"EEEE",weekdayShort:"EEE",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",seconds:"ss",shortDate:"MMM d",year:"yyyy"};class dF{constructor({locale:t,formats:r}={}){this.lib="date-fns",this.is12HourCycleInCurrentLocale=()=>{var i;return this.locale?/a/.test((i=this.locale.formatLong)===null||i===void 0?void 0:i.time()):!0},this.getFormatHelperText=i=>{var u,o;const a=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,n=this.locale||jd;return(o=(u=i.match(a))===null||u===void 0?void 0:u.map(l=>{const f=l[0];if(f==="p"||f==="P"){const s=ZS[f];return s(l,n.formatLong,{})}return l}).join("").replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase())!==null&&o!==void 0?o:i},this.parseISO=i=>GS(i),this.toISO=i=>sF(i,{format:"extended"}),this.getCurrentLocaleCode=()=>{var i;return((i=this.locale)===null||i===void 0?void 0:i.code)||"en-US"},this.addSeconds=(i,u)=>fR(i,u),this.addMinutes=(i,u)=>hR(i,u),this.addHours=(i,u)=>gR(i,u),this.addDays=(i,u)=>C0(i,u),this.addWeeks=(i,u)=>mR(i,u),this.addMonths=(i,u)=>ff(i,u),this.addYears=(i,u)=>$w(i,u),this.isValid=i=>RS(this.date(i)),this.getDiff=(i,u,o)=>{var a;const n=(a=this.date(u))!==null&&a!==void 0?a:i;if(!this.isValid(n))return 0;switch(o){case"years":return yR(i,n);case"quarters":return _R(i,n);case"months":return DS(i,n);case"weeks":return MR(i,n);case"days":return ES(i,n);case"hours":return CR(i,n);case"minutes":return OR(i,n);case"seconds":return AR(i,n);default:return Nd(i,n)}},this.isAfter=(i,u)=>Fc(i,u),this.isBefore=(i,u)=>il(i,u),this.startOfDay=i=>_l(i),this.endOfDay=i=>O0(i),this.getHours=i=>PL(i),this.setHours=(i,u)=>zI(i,u),this.setMinutes=(i,u)=>qI(i,u),this.getSeconds=i=>RL(i),this.setSeconds=(i,u)=>UI(i,u),this.isSameDay=(i,u)=>FL(i,u),this.isSameMonth=(i,u)=>jL(i,u),this.isSameYear=(i,u)=>NL(i,u),this.isSameHour=(i,u)=>$L(i,u),this.startOfYear=i=>jc(i),this.endOfYear=i=>Hg(i),this.startOfMonth=i=>Nc(i),this.endOfMonth=i=>A0(i),this.startOfWeek=i=>Yg(i,{locale:this.locale}),this.endOfWeek=i=>Ug(i,{locale:this.locale}),this.getYear=i=>LL(i),this.setYear=(i,u)=>HI(i,u),this.date=i=>typeof i>"u"?new Date:i===null?null:new Date(i),this.toJsDate=i=>i,this.parse=(i,u)=>i===""?null:jI(i,u,new Date,{locale:this.locale}),this.format=(i,u)=>this.formatByString(i,this.formats[u]),this.formatByString=(i,u)=>zS(i,u,{locale:this.locale}),this.isEqual=(i,u)=>i===null&&u===null?!0:IL(i,u),this.isNull=i=>i===null,this.isAfterDay=(i,u)=>Fc(i,O0(u)),this.isBeforeDay=(i,u)=>il(i,_l(u)),this.isBeforeYear=(i,u)=>il(i,jc(u)),this.isAfterYear=(i,u)=>Fc(i,Hg(u)),this.isWithinRange=(i,[u,o])=>uF(i,{start:u,end:o}),this.formatNumber=i=>i,this.getMinutes=i=>DL(i),this.getDate=i=>OL(i),this.setDate=(i,u)=>BI(i,u),this.getMonth=i=>EL(i),this.getDaysInMonth=i=>qS(i),this.setMonth=(i,u)=>WI(i,u),this.getMeridiemText=i=>i==="am"?"AM":"PM",this.getNextMonth=i=>ff(i,1),this.getPreviousMonth=i=>ff(i,-1),this.getMonthArray=i=>{const o=[jc(i)];for(;o.length<12;){const a=o[o.length-1];o.push(this.getNextMonth(a))}return o},this.mergeDateAndTime=(i,u)=>this.setSeconds(this.setMinutes(this.setHours(i,this.getHours(u)),this.getMinutes(u)),this.getSeconds(u)),this.getWeekdays=()=>{const i=new Date;return PR({start:Yg(i,{locale:this.locale}),end:Ug(i,{locale:this.locale})}).map(u=>this.formatByString(u,"EEEEEE"))},this.getWeekArray=i=>{const u=Yg(Nc(i),{locale:this.locale}),o=Ug(A0(i),{locale:this.locale});let a=0,n=u;const l=[];let f=null;for(;il(n,o);){const s=Math.floor(a/7);l[s]=l[s]||[];const c=AL(n);f!==c&&(f=c,l[s].push(n),a+=1),n=C0(n,1)}return l},this.getYearRange=(i,u)=>{const o=jc(i),a=Hg(u),n=[];let l=o;for(;il(l,a);)n.push(l),l=$w(l,1);return n},this.locale=t,this.formats=Object.assign({},fF,r)}isBeforeMonth(t,r){return il(t,Nc(r))}isAfterMonth(t,r){return Fc(t,Nc(r))}}const hF={y:"year",yy:"year",yyy:"year",yyyy:"year",MMMM:"month",MM:"month",DD:"day",d:"day",dd:"day",H:"hour",HH:"hour",h:"hour",hh:"hour",mm:"minute",ss:"second",a:"am-pm",aa:"am-pm",aaa:"am-pm"};class pF extends dF{constructor(...t){super(...t),this.formatTokenMap=hF,this.expandFormat=r=>{const i=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return r.match(i).map(u=>{const o=u[0];if(o==="p"||o==="P"){const a=ZS[o],n=this.locale||jd;return a(u,n.formatLong,{})}return u}).join("")},this.getFormatHelperText=r=>this.expandFormat(r).replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase()}}const gF=Object.freeze(Object.defineProperty({__proto__:null,AdapterDateFns:pF},Symbol.toStringTag,{value:"Module"})),KS=qn(gF);function JS(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;te.indexOf(r)!==-1):e.indexOf(t)!==-1}const QS=(e,t)=>r=>{(r.key==="Enter"||r.key===" ")&&(e(r),r.preventDefault(),r.stopPropagation())},e4=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?e4(t.shadowRoot):t:null};function mF(e){return Tr("PrivatePickersMonth",e)}const E0=_r("PrivatePickersMonth",["root","selected"]),vF=["disabled","onSelect","selected","value","tabIndex","hasFocus","onFocus","onBlur"],yF=e=>{const{classes:t,selected:r}=e;return yr({root:["root",r&&"selected"]},mF,t)},bF=_n(Cr,{name:"PrivatePickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${E0.selected}`]:t.selected}]})(({theme:e})=>Gt({flex:"1 0 33.33%",display:"flex",alignItems:"center",justifyContent:"center",color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:Af(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{pointerEvents:"none",color:e.palette.text.secondary},[`&.${E0.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),Gw=()=>{},xF=e=>{const{disabled:t,onSelect:r,selected:i,value:u,tabIndex:o,hasFocus:a,onFocus:n=Gw,onBlur:l=Gw}=e,f=Vn(e,vF),s=yF(e),c=()=>{r(u)},d=$e.useRef(null);return Md(()=>{if(a){var h;(h=d.current)==null||h.focus()}},[a]),je.jsx(bF,Gt({ref:d,component:"button",type:"button",className:s.root,tabIndex:o,onClick:c,onKeyDown:QS(c),color:i?"primary":void 0,variant:i?"h5":"subtitle1",disabled:t,onFocus:h=>n(h,u),onBlur:h=>l(h,u)},f))},Rr=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:Gt({},e)}}}}),wF={previousMonth:"Vorige maand",nextMonth:"Volgende maand",openPreviousView:"open vorige view",openNextView:"open volgende view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"jaarweergave is geopend, schakel over naar kalenderweergave":"kalenderweergave is geopend, switch naar jaarweergave",start:"Start",end:"Einde",cancelButtonLabel:"Annuleren",clearButtonLabel:"Resetten",okButtonLabel:"OK",todayButtonLabel:"Vandaag",clockLabelText:(e,t,r)=>`Selecteer ${e}. ${t===null?"Geen tijd geselecteerd":`Geselecteerde tijd is ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} uren`,minutesClockNumberText:e=>`${e} minuten`,secondsClockNumberText:e=>`${e} seconden`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Kies datum, geselecteerde datum is ${t.format(t.date(e),"fullDate")}`:"Kies datum",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Kies tijd, geselecteerde tijd is ${t.format(t.date(e),"fullTime")}`:"Kies tijd",timeTableLabel:"kies tijd",dateTableLabel:"kies datum"},_F=Rr(wF),TF={previousMonth:"Poprzedni miesiąc",nextMonth:"Następny miesiąc",openPreviousView:"otwórz poprzedni widok",openNextView:"otwórz następny widok",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"otwarty jest widok roku, przełącz na widok kalendarza":"otwarty jest widok kalendarza, przełącz na widok roku",start:"Początek",end:"Koniec",cancelButtonLabel:"Anuluj",clearButtonLabel:"Wyczyść",okButtonLabel:"Zatwierdź",todayButtonLabel:"Dzisiaj",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"Nie wybrano czasu":`Wybrany czas to ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} godzin`,minutesClockNumberText:e=>`${e} minut`,secondsClockNumberText:e=>`${e} sekund`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Wybierz datę, obecnie wybrana data to ${t.format(t.date(e),"fullDate")}`:"Wybierz datę",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Wybierz czas, obecnie wybrany czas to ${t.format(t.date(e),"fullTime")}`:"Wybierz czas",timeTableLabel:"wybierz czas",dateTableLabel:"wybierz datę"},kF=Rr(TF),MF={previousMonth:"Mês anterior",nextMonth:"Próximo mês",openPreviousView:"Abrir próxima seleção",openNextView:"Abrir seleção anterior",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"Seleção de ano está aberta, alternando para seleção de calendário":"Seleção de calendários está aberta, alternando para seleção de ano",start:"Início",end:"Fim",cancelButtonLabel:"Cancelar",clearButtonLabel:"Limpar",okButtonLabel:"OK",todayButtonLabel:"Hoje",datePickerDefaultToolbarTitle:"Selecione a data",dateTimePickerDefaultToolbarTitle:"Selecione data e hora",timePickerDefaultToolbarTitle:"Selecione a hora",dateRangePickerDefaultToolbarTitle:"Selecione o intervalo entre datas",clockLabelText:(e,t,r)=>`Selecione ${e}. ${t===null?"Hora não selecionada":`Selecionado a hora ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} horas`,minutesClockNumberText:e=>`${e} minutos`,secondsClockNumberText:e=>`${e} segundos`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Escolha uma data, data selecionada ${t.format(t.date(e),"fullDate")}`:"Escolha uma data",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Escolha uma hora, hora selecionada ${t.format(t.date(e),"fullTime")}`:"Escolha uma hora",timeTableLabel:"escolha uma hora",dateTableLabel:"escolha uma data"},SF=Rr(MF),CF={previousMonth:"Önceki ay",nextMonth:"Sonraki ay",openPreviousView:"sonraki görünüm",openNextView:"önceki görünüm",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"yıl görünümü açık, takvim görünümüne geç":"takvim görünümü açık, yıl görünümüne geç",inputModeToggleButtonAriaLabel:(e,t)=>e?`metin girişi görünümü açık, şuraya gidin: ${t} görünümü`:`${t} görünüm açık, metin girişi görünümüne gidin`,start:"Başlangıç",end:"Bitiş",cancelButtonLabel:"iptal",clearButtonLabel:"Temizle",okButtonLabel:"Tamam",todayButtonLabel:"Bugün",datePickerDefaultToolbarTitle:"Tarih Seç",dateTimePickerDefaultToolbarTitle:"Tarih & Saat seç",timePickerDefaultToolbarTitle:"Saat seç",dateRangePickerDefaultToolbarTitle:"Tarih aralığı seçin",clockLabelText:(e,t,r)=>`${e} seç. ${t===null?"Zaman seçilmedi":`Seçilen zaman: ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} saat`,minutesClockNumberText:e=>`${e} dakika`,secondsClockNumberText:e=>`${e} saniye`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Tarih seçin, seçilen tarih: ${t.format(e,"fullDate")}`:"Tarih seç",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Saat seçin, seçilen saat: ${t.format(e,"fullTime")}`:"Saat seç",timeTableLabel:"saat seç",dateTableLabel:"tarih seç"},OF=Rr(CF),Bc={hours:"Stunden",minutes:"Minuten",seconds:"Sekunden"},Xw={calendar:"Kalenderansicht",clock:"Uhransicht"},AF={previousMonth:"Letzter Monat",nextMonth:"Nächster Monat",openPreviousView:"Letzte Ansicht öffnen",openNextView:"Nächste Ansicht öffnen",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"Jahresansicht ist geöffnet, zur Kalenderansicht wechseln":"Kalenderansicht ist geöffnet, zur Jahresansicht wechseln",inputModeToggleButtonAriaLabel:(e,t)=>e?`Texteingabeansicht ist geöffnet, zur ${Xw[t]} wechseln`:`${Xw[t]} ist geöffnet, zur Texteingabeansicht wechseln`,start:"Beginn",end:"Ende",cancelButtonLabel:"Abbrechen",clearButtonLabel:"Löschen",okButtonLabel:"OK",todayButtonLabel:"Heute",datePickerDefaultToolbarTitle:"Datum auswählen",dateTimePickerDefaultToolbarTitle:"Datum & Uhrzeit auswählen",timePickerDefaultToolbarTitle:"Uhrzeit auswählen",dateRangePickerDefaultToolbarTitle:"Datumsbereich auswählen",clockLabelText:(e,t,r)=>{var i;return`${(i=Bc[e])!=null?i:e} auswählen. ${t===null?"Keine Uhrzeit ausgewählt":`Gewählte Uhrzeit ist ${r.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} ${Bc.hours}`,minutesClockNumberText:e=>`${e} ${Bc.minutes}`,secondsClockNumberText:e=>`${e} ${Bc.seconds}`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Datum auswählen, gewähltes Datum ist ${t.format(t.date(e),"fullDate")}`:"Datum auswählen",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Uhrzeit auswählen, gewählte Uhrzeit ist ${t.format(t.date(e),"fullTime")}`:"Uhrzeit auswählen",timeTableLabel:"Uhrzeit auswählen",dateTableLabel:"Datum auswählen"},PF=Rr(AF),DF={hours:"las horas",minutes:"los minutos",seconds:"los segundos"},EF={previousMonth:"Último mes",nextMonth:"Próximo mes",openPreviousView:"abrir la última vista",openNextView:"abrir la siguiente vista",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"la vista del año está abierta, cambie a la vista de calendario":"la vista de calendario está abierta, cambie a la vista del año",inputModeToggleButtonAriaLabel:(e,t)=>e?`la vista de entrada de texto está abierta, ir a la vista ${t}`:`la vista ${t} está abierta, ir a la vista de entrada de texto`,start:"Empezar",end:"Terminar",cancelButtonLabel:"Cancelar",clearButtonLabel:"Limpiar",okButtonLabel:"OK",todayButtonLabel:"Hoy",datePickerDefaultToolbarTitle:"Seleccionar fecha",dateTimePickerDefaultToolbarTitle:"Seleccionar fecha & hora",timePickerDefaultToolbarTitle:"Seleccionar hora",dateRangePickerDefaultToolbarTitle:"Seleccionar rango de fecha",clockLabelText:(e,t,r)=>`Seleccione ${DF[e]}. ${t===null?"Sin tiempo seleccionado":`El tiempo seleccionado es ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} horas`,minutesClockNumberText:e=>`${e} minutos`,secondsClockNumberText:e=>`${e} segundos`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Elige la fecha, la fecha elegida es ${t.format(t.date(e),"fullDate")}`:"Elige la fecha",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Elige la hora, la hora elegido es ${t.format(t.date(e),"fullTime")}`:"Elige la hora",timeTableLabel:"elige la fecha",dateTableLabel:"elige la hora"},RF=Rr(EF),LF={previousMonth:"ماه گذشته",nextMonth:"ماه آینده",openPreviousView:"نمای قبلی",openNextView:"نمای بعدی",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"نمای سال باز است، رفتن به نمای تقویم":"نمای تقویم باز است، رفتن به نمای سال",inputModeToggleButtonAriaLabel:(e,t)=>e?`نمای ورودی متن باز است، رفتن به نمای ${t}`:`نمای ${t} باز است، رفتن به نمای ورودی متن`,start:"شروع",end:"پایان",cancelButtonLabel:"لغو",clearButtonLabel:"پاک کردن",okButtonLabel:"اوکی",todayButtonLabel:"امروز",datePickerDefaultToolbarTitle:"تاریخ را انتخاب کنید",dateTimePickerDefaultToolbarTitle:"تاریخ و ساعت را انتخاب کنید",timePickerDefaultToolbarTitle:"ساعت را انتخاب کنید",dateRangePickerDefaultToolbarTitle:"محدوده تاریخ را انتخاب کنید",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"هیچ ساعتی انتخاب نشده است":`ساعت انتخاب ${r.format(t,"fullTime")} می باشد`}`,hoursClockNumberText:e=>`${e} ساعت ها`,minutesClockNumberText:e=>`${e} دقیقه ها`,secondsClockNumberText:e=>`${e} ثانیه ها`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`تاریخ را انتخاب کنید، تاریخ انتخاب شده ${t.format(t.date(e),"fullDate")} می باشد`:"تاریخ را انتخاب کنید",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`ساعت را انتخاب کنید، ساعت انتخاب شده ${t.format(t.date(e),"fullTime")} می باشد`:"ساعت را انتخاب کنید",timeTableLabel:"انتخاب تاریخ",dateTableLabel:"انتخاب ساعت"},IF=Rr(LF),FF={hours:"tunnit",minutes:"minuutit",seconds:"sekuntit"},Zw={calendar:"kalenteri",clock:"kello"},NF={previousMonth:"Edellinen kuukausi",nextMonth:"Seuraava kuukausi",openPreviousView:"avaa edellinen kuukausi",openNextView:"avaa seuraava kuukausi",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"vuosinäkymä on auki, vaihda kalenterinäkymään":"kalenterinäkymä on auki, vaihda vuosinäkymään",inputModeToggleButtonAriaLabel:(e,t)=>e?`tekstikenttä on auki, mene ${Zw[t]}näkymään`:`${Zw[t]}näkymä on auki, mene tekstikenttään`,start:"Alku",end:"Loppu",cancelButtonLabel:"Peruuta",clearButtonLabel:"Tyhjennä",okButtonLabel:"OK",todayButtonLabel:"Tänään",datePickerDefaultToolbarTitle:"Valitse päivä",dateTimePickerDefaultToolbarTitle:"Valitse päivä ja aika",timePickerDefaultToolbarTitle:"Valitse aika",dateRangePickerDefaultToolbarTitle:"Valitse aikaväli",clockLabelText:(e,t,r)=>`Valitse ${FF[e]}. ${t===null?"Ei aikaa valittuna":`Valittu aika on ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} tuntia`,minutesClockNumberText:e=>`${e} minuuttia`,secondsClockNumberText:e=>`${e} sekunttia`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Valitse päivä, valittu päivä on ${t.format(t.date(e),"fullDate")}`:"Valitse päivä",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Valitse aika, valittu aika on ${t.format(t.date(e),"fullTime")}`:"Valitse aika",timeTableLabel:"valitse aika",dateTableLabel:"valitse päivä"},jF=Rr(NF),$F={hours:"Hodiny",minutes:"Minuty",seconds:"Sekundy"},Kw={calendar:"kalendáře",clock:"času"},BF={previousMonth:"Další měsíc",nextMonth:"Předchozí month",openPreviousView:"otevřít předchozí zobrazení",openNextView:"otevřít další zobrazení",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"roční zobrazení otevřeno, přepněte do zobrazení kalendáře":"zobrazení kalendáře otevřeno, přepněte do zobrazení roku",inputModeToggleButtonAriaLabel:(e,t)=>e?`Zobrazení pro zadávání textu je otevřené, přepněte do zobrazení ${Kw[t]}`:`Zobrazení ${Kw[t]} je otevřené, přepněte do zobrazení textového pole`,start:"Začátek",end:"Konec",cancelButtonLabel:"Zrušit",clearButtonLabel:"Vymazat",okButtonLabel:"Potvrdit",todayButtonLabel:"Dnes",datePickerDefaultToolbarTitle:"Vyberte datum",dateTimePickerDefaultToolbarTitle:"Vyberte datum a čas",timePickerDefaultToolbarTitle:"Vyberte čas",dateRangePickerDefaultToolbarTitle:"Vyberete rozmezí dat",clockLabelText:(e,t,r)=>{var i;return`${(i=$F[e])!=null?i:e} vybrány. ${t===null?"Není vybrán čas":`Vybraný čas je ${r.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} hodin`,minutesClockNumberText:e=>`${e} minut`,secondsClockNumberText:e=>`${e} sekund`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Vybrané datum, vybrané datum je ${t.format(e,"fullDate")}`:"Vyberte datum",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Vybrané čas, vybraný čas je ${t.format(e,"fullTime")}`:"Vyberte čas",timeTableLabel:"vyberte čas",dateTableLabel:"vyberte datum"},zF=Rr(BF),qF={hours:"heures",minutes:"minutes",seconds:"secondes"},Jw={calendar:"calendrier",clock:"horloge"},WF={previousMonth:"Mois précédent",nextMonth:"Mois suivant",openPreviousView:"Ouvrir la vue précédente",openNextView:"Ouvrir la vue suivante",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"La vue année est ouverte, ouvrir la vue calendrier":"La vue calendrier est ouverte, ouvrir la vue année",inputModeToggleButtonAriaLabel:(e,t)=>e?`passer du champ text au ${Jw[t]}`:`passer du ${Jw[t]} au champ text`,start:"Début",end:"Fin",cancelButtonLabel:"Annuler",clearButtonLabel:"Vider",okButtonLabel:"OK",todayButtonLabel:"Aujourd'hui",clockLabelText:(e,t,r)=>`Choix des ${qF[e]}. ${t===null?"Aucune heure choisie":`L'heure choisie est ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} heures`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} secondes`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choisir la date, la date sélectionnée est ${t.format(t.date(e),"fullDate")}`:"Choisir la date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choisir l'heure, l'heure sélectionnée est ${t.format(t.date(e),"fullTime")}`:"Choisir l'heure",timeTableLabel:"choix de l'heure",dateTableLabel:"choix de la date"},UF=Rr(WF),zc={hours:"Óra",minutes:"Perc",seconds:"Másodperc"},Qw={calendar:"naptár",clock:"óra"},HF={previousMonth:"Előző hónap",nextMonth:"Következő hónap",openPreviousView:"Előző nézet megnyitása",openNextView:"Következő nézet megnyitása",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"az évválasztó már nyitva, váltson a naptárnézetre":"a naptárnézet már nyitva, váltson az évválasztóra",inputModeToggleButtonAriaLabel:(e,t)=>e?`szöveges beviteli nézet aktív, váltás ${Qw[t]} nézetre`:`${Qw[t]} beviteli nézet aktív, váltás szöveges beviteli nézetre`,start:"Kezdő dátum",end:"Záró dátum",cancelButtonLabel:"Mégse",clearButtonLabel:"Törlés",okButtonLabel:"OK",todayButtonLabel:"Ma",datePickerDefaultToolbarTitle:"Dátum kiválasztása",dateTimePickerDefaultToolbarTitle:"Dátum és idő kiválasztása",timePickerDefaultToolbarTitle:"Idő kiválasztása",dateRangePickerDefaultToolbarTitle:"Dátumhatárok kiválasztása",clockLabelText:(e,t,r)=>{var i;return`${(i=zc[e])!=null?i:e} kiválasztása. ${t===null?"Nincs kiválasztva idő":`A kiválasztott idő ${r.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} ${zc.hours.toLowerCase()}`,minutesClockNumberText:e=>`${e} ${zc.minutes.toLowerCase()}`,secondsClockNumberText:e=>`${e} ${zc.seconds.toLowerCase()}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Válasszon dátumot, a kiválasztott dátum: ${t.format(e,"fullDate")}`:"Válasszon dátumot",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Válasszon időt, a kiválasztott idő: ${t.format(e,"fullTime")}`:"Válasszon időt",timeTableLabel:"válasszon időt",dateTableLabel:"válasszon dátumot"},VF=Rr(HF),t4={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",inputModeToggleButtonAriaLabel:(e,t)=>e?`text input view is open, go to ${t} view`:`${t} view is open, go to text input view`,start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerDefaultToolbarTitle:"Select date",dateTimePickerDefaultToolbarTitle:"Select date & time",timePickerDefaultToolbarTitle:"Select time",dateRangePickerDefaultToolbarTitle:"Select date range",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose date, selected date is ${t.format(t.date(e),"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose time, selected time is ${t.format(t.date(e),"fullTime")}`:"Choose time",timeTableLabel:"pick time",dateTableLabel:"pick date"},n4=t4,YF=Rr(t4),GF={previousMonth:"Forrige måned",nextMonth:"Neste måned",openPreviousView:"åpne forrige visning",openNextView:"åpne neste visning",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"årsvisning er åpen, bytt til kalendervisning":"kalendervisning er åpen, bytt til årsvisning",start:"Start",end:"Slutt",cancelButtonLabel:"Avbryt",clearButtonLabel:"Fjern",okButtonLabel:"OK",todayButtonLabel:"I dag",clockLabelText:(e,t,r)=>`Velg ${e}. ${t===null?"Ingen tid valgt":`Valgt tid er ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} timer`,minutesClockNumberText:e=>`${e} minutter`,secondsClockNumberText:e=>`${e} sekunder`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velg dato, valgt dato er ${t.format(t.date(e),"fullDate")}`:"Velg dato",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velg tid, valgt tid er ${t.format(t.date(e),"fullTime")}`:"Velg tid",timeTableLabel:"velg tid",dateTableLabel:"velg dato"},XF=Rr(GF),ZF={previousMonth:"Föregående månad",nextMonth:"Nästa månad",openPreviousView:"öppna föregående vy",openNextView:"öppna nästa vy",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"årsvyn är öppen, byt till kalendervy":"kalendervyn är öppen, byt till årsvy",start:"Start",end:"Slut",cancelButtonLabel:"Avbryt",clearButtonLabel:"Rensa",okButtonLabel:"OK",todayButtonLabel:"Idag",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"Ingen tid vald":`Vald tid är ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} timmar`,minutesClockNumberText:e=>`${e} minuter`,secondsClockNumberText:e=>`${e} sekunder`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Välj datum, valt datum är ${t.format(t.date(e),"fullDate")}`:"Välj datum",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Välj tid, vald tid är ${t.format(t.date(e),"fullTime")}`:"Välj tid",timeTableLabel:"välj tid",dateTableLabel:"välj datum"},KF=Rr(ZF),JF={hours:"le ore",minutes:"i minuti",seconds:"i secondi"},QF={previousMonth:"Mese precedente",nextMonth:"Mese successivo",openPreviousView:"apri la vista precedente",openNextView:"apri la vista successiva",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"la vista dell'anno è aperta, passare alla vista del calendario":"la vista dell'calendario è aperta, passare alla vista dell'anno",inputModeToggleButtonAriaLabel:(e,t)=>e?`la vista del campo di testo è aperta, passare alla vista ${t}`:`la vista aperta è: ${t}, vai alla vista del campo di testo`,start:"Inizio",end:"Fine",cancelButtonLabel:"Cancellare",clearButtonLabel:"Sgomberare",okButtonLabel:"OK",todayButtonLabel:"Oggi",datePickerDefaultToolbarTitle:"Seleziona data",dateTimePickerDefaultToolbarTitle:"Seleziona data e orario",timePickerDefaultToolbarTitle:"Seleziona orario",dateRangePickerDefaultToolbarTitle:"Seleziona intervallo di date",clockLabelText:(e,t,r)=>`Seleziona ${JF[e]}. ${t===null?"Nessun orario selezionato":`L'ora selezionata è ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} ore`,minutesClockNumberText:e=>`${e} minuti`,secondsClockNumberText:e=>`${e} secondi`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Scegli la data, la data selezionata è ${t.format(t.date(e),"fullDate")}`:"Scegli la data",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Scegli l'ora, l'ora selezionata è ${t.format(t.date(e),"fullTime")}`:"Scegli l'ora",timeTableLabel:"scegli un'ora",dateTableLabel:"scegli una data"},eN=Rr(QF),tN={hours:"小时",minutes:"分钟",seconds:"秒"},nN={previousMonth:"上个月",nextMonth:"下个月",openPreviousView:"前一个视图",openNextView:"下一个视图",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"年视图已打开,切换为日历视图":"日历视图已打开,切换为年视图",start:"开始",end:"结束",cancelButtonLabel:"取消",clearButtonLabel:"清除",okButtonLabel:"确认",todayButtonLabel:"今天",clockLabelText:(e,t,r)=>`Select ${tN[e]}. ${t===null?"未选择时间":`已选择${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e}小时`,minutesClockNumberText:e=>`${e}分钟`,secondsClockNumberText:e=>`${e}秒`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`选择日期,已选择${t.format(t.date(e),"fullDate")}`:"选择日期",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`选择时间,已选择${t.format(t.date(e),"fullTime")}`:"选择时间",timeTableLabel:"选择时间",dateTableLabel:"选择日期"},rN=Rr(nN),aN={hours:"시간을",minutes:"분을",seconds:"초를"},iN={previousMonth:"이전 달",nextMonth:"다음 달",openPreviousView:"이전 화면 보기",openNextView:"다음 화면 보기",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"연도 선택 화면에서 달력 화면으로 전환하기":"달력 화면에서 연도 선택 화면으로 전환하기",inputModeToggleButtonAriaLabel:(e,t)=>e?`텍스트 입력 화면에서 ${t} 화면으로 전환하기`:`${t} 화면에서 텍스트 입력 화면으로 전환하기`,start:"시작",end:"종료",cancelButtonLabel:"취소",clearButtonLabel:"초기화",okButtonLabel:"확인",todayButtonLabel:"오늘",datePickerDefaultToolbarTitle:"날짜 선택하기",dateTimePickerDefaultToolbarTitle:"날짜 & 시간 선택하기",timePickerDefaultToolbarTitle:"시간 선택하기",dateRangePickerDefaultToolbarTitle:"날짜 범위 선택하기",clockLabelText:(e,t,r)=>`${aN[e]} 선택하세요. ${t===null?"시간을 선택하지 않았습니다.":`현재 선택된 시간은 ${r.format(t,"fullTime")}입니다.`}`,hoursClockNumberText:e=>`${e}시간`,minutesClockNumberText:e=>`${e}분`,secondsClockNumberText:e=>`${e}초`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`날짜를 선택하세요. 현재 선택된 날짜는 ${t.format(t.date(e),"fullDate")}입니다.`:"날짜를 선택하세요",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`시간을 선택하세요. 현재 선택된 시간은 ${t.format(t.date(e),"fullTime")}입니다.`:"시간을 선택하세요",timeTableLabel:"선택한 시간",dateTableLabel:"선택한 날짜"},oN=Rr(iN),lN={previousMonth:"Fyrri mánuður",nextMonth:"Næsti mánuður",openPreviousView:"opna fyrri skoðun",openNextView:"opna næstu skoðun",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"ársskoðun er opin, skipta yfir í dagatalsskoðun":"dagatalsskoðun er opin, skipta yfir í ársskoðun",inputModeToggleButtonAriaLabel:(e,t)=>{const r=t==="calendar"?"dagatals":"klukku";return e?`textainnsláttur er opinn, fara í ${r}skoðun`:`${r}skoðun er opin, opna fyrir textainnslátt`},start:"Upphaf",end:"Endir",cancelButtonLabel:"Hætta við",clearButtonLabel:"Hreinsa",okButtonLabel:"OK",todayButtonLabel:"Í dag",datePickerDefaultToolbarTitle:"Velja dagsetningu",dateTimePickerDefaultToolbarTitle:"Velja dagsetningu og tíma",timePickerDefaultToolbarTitle:"Velja tíma",dateRangePickerDefaultToolbarTitle:"Velja tímabil",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"Enginn tími valinn":`Valinn tími er ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} klukkustundir`,minutesClockNumberText:e=>`${e} mínútur`,secondsClockNumberText:e=>`${e} sekúndur`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velja dagsetningu, valin dagsetning er ${t.format(t.date(e),"fullDate")}`:"Velja dagsetningu",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velja tíma, valinn tími er ${t.format(t.date(e),"fullTime")}`:"Velja tíma",timeTableLabel:"velja tíma",dateTableLabel:"velja dagsetningu"},sN=Rr(lN),qc={hours:"時間",minutes:"分",seconds:"秒"},e_={calendar:"カレンダー表示",clock:"時計表示"},uN={previousMonth:"先月",nextMonth:"来月",openPreviousView:"前の表示を開く",openNextView:"次の表示を開く",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"年選択表示からカレンダー表示に切り替える":"カレンダー表示から年選択表示に切り替える",inputModeToggleButtonAriaLabel:(e,t)=>e?`テキスト入力表示から${e_[t]}に切り替える`:`${e_[t]}からテキスト入力表示に切り替える`,start:"開始",end:"終了",cancelButtonLabel:"キャンセル",clearButtonLabel:"クリア",okButtonLabel:"確定",todayButtonLabel:"今日",datePickerDefaultToolbarTitle:"日付を選択",dateTimePickerDefaultToolbarTitle:"日時を選択",timePickerDefaultToolbarTitle:"時間を選択",dateRangePickerDefaultToolbarTitle:"日付の範囲を選択",clockLabelText:(e,t,r)=>{var i;return`${(i=qc[e])!=null?i:e}を選択してください ${t===null?"時間が選択されていません":`選択した時間は ${r.format(t,"fullTime")} です`}`},hoursClockNumberText:e=>`${e} ${qc.hours}`,minutesClockNumberText:e=>`${e} ${qc.minutes}`,secondsClockNumberText:e=>`${e} ${qc.seconds}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`日付を選択してください。選択した日付は ${t.format(e,"fullDate")} です`:"日付を選択してください",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`時間を選択してください。選択した時間は ${t.format(e,"fullTime")} です`:"時間を選択してください",timeTableLabel:"時間を選択",dateTableLabel:"日付を選択"},cN=Rr(uN),fN={previousMonth:"Попередній місяць",nextMonth:"Наступний місяць",openPreviousView:"відкрити попередній вигляд",openNextView:"відкрити наступний вигляд",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"річний вигляд відкрито, перейти до календарного вигляду":"календарний вигляд відкрито, перейти до річного вигляду",inputModeToggleButtonAriaLabel:(e,t)=>e?`текстове поле відкрите, перейти до ${t} вигляду`:`${t} вигляд наразі відкрито, перейти до текстового поля`,start:"Початок",end:"Кінець",cancelButtonLabel:"Відміна",clearButtonLabel:"Очистити",okButtonLabel:"OK",todayButtonLabel:"Сьогодні",datePickerDefaultToolbarTitle:"Вибрати дату",dateTimePickerDefaultToolbarTitle:"Вибрати дату і час",timePickerDefaultToolbarTitle:"Вибрати час",dateRangePickerDefaultToolbarTitle:"Вибрати календарний період",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"Час не вибраний":`Вибрано час ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} годин`,minutesClockNumberText:e=>`${e} хвилин`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Оберіть дату, обрана дата ${t.format(e,"fullDate")}`:"Оберіть дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Оберіть час, обраний час ${t.format(e,"fullTime")}`:"Оберіть час",timeTableLabel:"оберіть час",dateTableLabel:"оберіть дату"},dN=Rr(fN),hN={previousMonth:"پچھلا مہینہ",nextMonth:"اگلا مہینہ",openPreviousView:"پچھلا ویو کھولیں",openNextView:"اگلا ویو کھولیں",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"سال والا ویو کھلا ہے۔ کیلنڈر والا ویو کھولیں":"کیلنڈر والا ویو کھلا ہے۔ سال والا ویو کھولیں",inputModeToggleButtonAriaLabel:(e,t)=>e?`،ٹیکسٹ ویو کھلا ہے ${t} ویو کھولیں`:`${t} ویو کھلا ہے، ٹیکسٹ ویو کھولیں`,start:"شروع",end:"ختم",cancelButtonLabel:"کینسل",clearButtonLabel:"کلئیر",okButtonLabel:"اوکے",todayButtonLabel:"آج",datePickerDefaultToolbarTitle:"تاریخ منتخب کریں",dateTimePickerDefaultToolbarTitle:"تاریخ اور وقت منتخب کریں",timePickerDefaultToolbarTitle:"وقت منتخب کریں",dateRangePickerDefaultToolbarTitle:"تاریخوں کی رینج منتخب کریں",clockLabelText:(e,t,r)=>`${e} منتخب کریں ${t===null?"کوئی وقت منتخب نہیں":`منتخب وقت ہے ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} گھنٹے`,minutesClockNumberText:e=>`${e} منٹ`,secondsClockNumberText:e=>`${e} سیکنڈ`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`تاریخ منتخب کریں، منتخب شدہ تاریخ ہے ${t.format(e,"fullDate")}`:"تاریخ منتخب کریں",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`وقت منتخب کریں، منتخب شدہ وقت ہے ${t.format(e,"fullTime")}`:"وقت منتخب کریں",timeTableLabel:"وقت منتخب کریں",dateTableLabel:"تاریخ منتخب کریں"},pN=Rr(hN),Xg={hours:"гадзіны",minutes:"хвіліны",seconds:"секунды",calendar:"календара",clock:"часу"},gN={previousMonth:"Папярэдні месяц",nextMonth:"Наступны месяц",openPreviousView:"адкрыць папярэдні выгляд",openNextView:"адкрыць наступны выгляд",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"гадавы выгляд адкрыты, перайсці да каляндарнага выгляду":"каляндарны выгляд адкрыты, перайсці да гадавога выгляду",inputModeToggleButtonAriaLabel:(e,t)=>e?`тэкставае поле адкрыта, перайсці да выгляду ${Xg[t]}`:`Выгляд ${Xg[t]} зараз адкрыты, перайсці да тэкставага поля`,start:"Пачатак",end:"Канец",cancelButtonLabel:"Адмена",clearButtonLabel:"Ачысціць",okButtonLabel:"OK",todayButtonLabel:"Сёння",datePickerDefaultToolbarTitle:"Абраць дату",dateTimePickerDefaultToolbarTitle:"Абраць дату і час",timePickerDefaultToolbarTitle:"Абраць час",dateRangePickerDefaultToolbarTitle:"Абраць каляндарны перыяд",clockLabelText:(e,t,r)=>`Абярыце ${Xg[e]}. ${t===null?"Час не абраны":`Абраны час ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} гадзін`,minutesClockNumberText:e=>`${e} хвілін`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Абраць дату, абрана дата ${t.format(e,"fullDate")}`:"Абраць дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Абраць час, абрыны час ${t.format(e,"fullTime")}`:"Абраць час",timeTableLabel:"абраць час",dateTableLabel:"абраць дату"},mN=Rr(gN),vN={hours:"часы",minutes:"минуты",seconds:"секунды"},t_={calendar:"календарный",clock:"часовой"},yN={previousMonth:"Предыдущий месяц",nextMonth:"Следующий месяц",openPreviousView:"открыть предыдущий вид",openNextView:"открыть следующий вид",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"открыт годовой вид, переключить на календарный вид":"открыт календарный вид, переключить на годовой вид",inputModeToggleButtonAriaLabel:(e,t)=>e?`Открыт текстовый вид, перейти на ${t_[t]} вид`:`Открыт ${t_[t]} вид, перейти на текстовый вид`,start:"Начало",end:"Конец",cancelButtonLabel:"Отмена",clearButtonLabel:"Очистить",okButtonLabel:"Ок",todayButtonLabel:"Сегодня",datePickerDefaultToolbarTitle:"Выбрать дату",dateTimePickerDefaultToolbarTitle:"Выбрать дату и время",timePickerDefaultToolbarTitle:"Выбрать время",dateRangePickerDefaultToolbarTitle:"Выбрать период",clockLabelText:(e,t,r)=>`Выбрать ${vN[e]}. ${t===null?"Время не выбрано":`Выбрано время ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} часов`,minutesClockNumberText:e=>`${e} минут`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Выберите дату, выбрана дата ${t.format(e,"fullDate")}`:"Выберите дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Выберите время, выбрано время ${t.format(e,"fullTime")}`:"Выберите время",timeTableLabel:"выбрать время",dateTableLabel:"выбрать дату"},bN=Rr(yN),Sy=$e.createContext(null);function xN(e){const t=fr({props:e,name:"MuiLocalizationProvider"}),{children:r,dateAdapter:i,dateFormats:u,dateLibInstance:o,locale:a,adapterLocale:n,localeText:l}=t,f=$e.useMemo(()=>new i({locale:n??a,formats:u,instance:o}),[i,a,n,u,o]),s=$e.useMemo(()=>({minDate:f.date("1900-01-01T00:00:00.000"),maxDate:f.date("2099-12-31T00:00:00.000")}),[f]),c=$e.useMemo(()=>({utils:f,defaultDates:s,localeText:Gt({},n4,l??{})}),[s,f,l]);return je.jsx(Sy.Provider,{value:c,children:r})}const ec=()=>{const e=$e.useContext(Sy);if(e===null)throw new Error("MUI: Can not find utils in context. It looks like you forgot to wrap your component in LocalizationProvider, or pass dateAdapter prop directly.");return e},br=()=>ec().utils,tc=()=>ec().defaultDates,ei=()=>ec().localeText,nc=()=>{const e=br();return $e.useRef(e.date()).current};function r4(e){return Tr("MuiMonthPicker",e)}const wN=_r("MuiMonthPicker",["root"]),_u=({date:e,disableFuture:t,disablePast:r,maxDate:i,minDate:u,isDateDisabled:o,utils:a})=>{const n=a.startOfDay(a.date());r&&a.isBefore(u,n)&&(u=n),t&&a.isAfter(i,n)&&(i=n);let l=e,f=e;for(a.isBefore(e,u)&&(l=a.date(u),f=null),a.isAfter(e,i)&&(f&&(f=a.date(i)),l=null);l||f;){if(l&&a.isAfter(l,i)&&(l=null),f&&a.isBefore(f,u)&&(f=null),l){if(!o(l))return l;l=a.addDays(l,1)}if(f){if(!o(f))return f;f=a.addDays(f,-1)}}return null},Cy=(e,t)=>{const r=e.date(t);return e.isValid(r)?r:null},Ha=(e,t,r)=>{if(t==null)return r;const i=e.date(t);return e.isValid(i)?i:r},_N=["className","date","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange"],TN=e=>{const{classes:t}=e;return yr({root:["root"]},r4,t)};function kN(e,t){const r=br(),i=tc(),u=fr({props:e,name:t});return Gt({disableFuture:!1,disablePast:!1},u,{minDate:Ha(r,u.minDate,i.minDate),maxDate:Ha(r,u.maxDate,i.maxDate)})}const MN=_n("div",{name:"MuiMonthPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({width:310,display:"flex",flexWrap:"wrap",alignContent:"stretch",margin:"0 4px"}),a4=$e.forwardRef(function(t,r){const i=br(),u=nc(),o=kN(t,"MuiMonthPicker"),{className:a,date:n,disabled:l,disableFuture:f,disablePast:s,maxDate:c,minDate:d,onChange:h,shouldDisableMonth:p,readOnly:m,disableHighlightToday:y,autoFocus:v=!1,onMonthFocus:g,hasFocus:b,onFocusedViewChange:x}=o,_=Vn(o,_N),w=o,k=TN(w),T=y9(),M=$e.useMemo(()=>n??i.startOfMonth(u),[u,i,n]),S=$e.useMemo(()=>n!=null?i.getMonth(n):y?null:i.getMonth(u),[u,n,i,y]),[C,P]=$e.useState(()=>S||i.getMonth(u)),D=$e.useCallback(E=>{const W=i.startOfMonth(s&&i.isAfter(u,d)?u:d),G=i.startOfMonth(f&&i.isBefore(u,c)?u:c);return i.isBefore(E,W)||i.isAfter(E,G)?!0:p?p(E):!1},[f,s,c,d,u,p,i]),O=E=>{if(m)return;const W=i.setMonth(M,E);h(W,"finish")},[R,F]=Sd({name:"MonthPicker",state:"hasFocus",controlled:b,default:v}),A=$e.useCallback(E=>{F(E),x&&x(E)},[F,x]),z=$e.useCallback(E=>{D(i.setMonth(M,E))||(P(E),A(!0),g&&g(E))},[D,i,M,A,g]);$e.useEffect(()=>{P(E=>S!==null&&E!==S?S:E)},[S]);const B=Cd(E=>{switch(E.key){case"ArrowUp":z((12+C-3)%12),E.preventDefault();break;case"ArrowDown":z((12+C+3)%12),E.preventDefault();break;case"ArrowLeft":z((12+C+(T.direction==="ltr"?-1:1))%12),E.preventDefault();break;case"ArrowRight":z((12+C+(T.direction==="ltr"?1:-1))%12),E.preventDefault();break}}),$=$e.useCallback((E,W)=>{z(W)},[z]),j=$e.useCallback(()=>{A(!1)},[A]),N=i.getMonth(u);return je.jsx(MN,Gt({ref:r,className:jr(k.root,a),ownerState:w,onKeyDown:B},_,{children:i.getMonthArray(M).map(E=>{const W=i.getMonth(E),G=i.format(E,"monthShort"),L=l||D(E);return je.jsx(xF,{value:W,selected:W===S,tabIndex:W===C&&!L?0:-1,hasFocus:R&&W===C,onSelect:O,onFocus:$,onBlur:j,disabled:L,"aria-current":N===W?"date":void 0,children:G},G)})}))});function Oy(e,t,r){const{value:i,onError:u}=e,o=ec(),a=$e.useRef(null),n=t({adapter:o,value:i,props:e});return $e.useEffect(()=>{u&&!r(n,a.current)&&u(n,i),a.current=n},[r,u,a,n,i]),n}const Ay=({props:e,value:t,adapter:r})=>{const i=r.utils.date(),u=r.utils.date(t),o=Ha(r.utils,e.minDate,r.defaultDates.minDate),a=Ha(r.utils,e.maxDate,r.defaultDates.maxDate);if(u===null)return null;switch(!0){case!r.utils.isValid(t):return"invalidDate";case!!(e.shouldDisableDate&&e.shouldDisableDate(u)):return"shouldDisableDate";case!!(e.disableFuture&&r.utils.isAfterDay(u,i)):return"disableFuture";case!!(e.disablePast&&r.utils.isBeforeDay(u,i)):return"disablePast";case!!(o&&r.utils.isBeforeDay(u,o)):return"minDate";case!!(a&&r.utils.isAfterDay(u,a)):return"maxDate";default:return null}},i4=({shouldDisableDate:e,minDate:t,maxDate:r,disableFuture:i,disablePast:u})=>{const o=ec();return $e.useCallback(a=>Ay({adapter:o,value:a,props:{shouldDisableDate:e,minDate:t,maxDate:r,disableFuture:i,disablePast:u}})!==null,[o,e,t,r,i,u])},SN=(e,t)=>e===t,Py=e=>Oy(e,Ay,SN),CN=(e,t,r)=>(i,u)=>{switch(u.type){case"changeMonth":return Gt({},i,{slideDirection:u.direction,currentMonth:u.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return Gt({},i,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(i.focusedDay!=null&&u.focusedDay!=null&&r.isSameDay(u.focusedDay,i.focusedDay))return i;const o=u.focusedDay!=null&&!t&&!r.isSameMonth(i.currentMonth,u.focusedDay);return Gt({},i,{focusedDay:u.focusedDay,isMonthSwitchingAnimating:o&&!e&&!u.withoutMonthSwitchingAnimation,currentMonth:o?r.startOfMonth(u.focusedDay):i.currentMonth,slideDirection:u.focusedDay!=null&&r.isAfterDay(u.focusedDay,i.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},ON=({date:e,defaultCalendarMonth:t,disableFuture:r,disablePast:i,disableSwitchToMonthOnDayFocus:u=!1,maxDate:o,minDate:a,onMonthChange:n,reduceAnimations:l,shouldDisableDate:f})=>{var s;const c=nc(),d=br(),h=$e.useRef(CN(!!l,u,d)).current,[p,m]=$e.useReducer(h,{isMonthSwitchingAnimating:!1,focusedDay:e||c,currentMonth:d.startOfMonth((s=e??t)!=null?s:c),slideDirection:"left"}),y=$e.useCallback(_=>{m(Gt({type:"changeMonth"},_)),n&&n(_.newMonth)},[n]),v=$e.useCallback(_=>{const w=_??c;d.isSameMonth(w,p.currentMonth)||y({newMonth:d.startOfMonth(w),direction:d.isAfterDay(w,p.currentMonth)?"left":"right"})},[p.currentMonth,y,c,d]),g=i4({shouldDisableDate:f,minDate:a,maxDate:o,disableFuture:r,disablePast:i}),b=$e.useCallback(()=>{m({type:"finishMonthSwitchingAnimation"})},[]),x=$e.useCallback((_,w)=>{g(_)||m({type:"changeFocusedDay",focusedDay:_,withoutMonthSwitchingAnimation:w})},[g]);return{calendarState:p,changeMonth:v,changeFocusedDay:x,isDateDisabled:g,onMonthSwitchingAnimationEnd:b,handleChangeMonth:y}},AN=e=>Tr("MuiPickersFadeTransitionGroup",e),PN=_r("MuiPickersFadeTransitionGroup",["root"]),DN=e=>{const{classes:t}=e;return yr({root:["root"]},AN,t)},n_=500,EN=_n(Z5,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function o4(e){const t=fr({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:r,className:i,reduceAnimations:u,transKey:o}=t,a=DN(t);return u?r:je.jsx(EN,{className:jr(a.root,i),children:je.jsx(K5,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:n_,enter:n_/2,exit:0},children:r},o)})}const Cu=36,rc=2,Dy=320,RN=358;function l4(e){return Tr("MuiPickersDay",e)}const vu=_r("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),LN=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today"],IN=e=>{const{selected:t,disableMargin:r,disableHighlightToday:i,today:u,disabled:o,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:n,classes:l}=e;return yr({root:["root",t&&"selected",o&&"disabled",!r&&"dayWithMargin",!i&&u&&"today",a&&n&&"dayOutsideMonth",a&&!n&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},l4,l)},s4=({theme:e,ownerState:t})=>Gt({},e.typography.caption,{width:Cu,height:Cu,borderRadius:"50%",padding:0,backgroundColor:e.palette.background.paper,color:e.palette.text.primary,"&:hover":{backgroundColor:Af(e.palette.action.active,e.palette.action.hoverOpacity)},"&:focus":{backgroundColor:Af(e.palette.action.active,e.palette.action.hoverOpacity),[`&.${vu.selected}`]:{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${vu.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium,transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),"&:hover":{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${vu.disabled}`]:{color:e.palette.text.disabled}},!t.disableMargin&&{margin:`0 ${rc}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:e.palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${vu.selected})`]:{border:`1px solid ${e.palette.text.secondary}`}}),u4=(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableMargin&&t.dayWithMargin,!r.disableHighlightToday&&r.today&&t.today,!r.outsideCurrentMonth&&r.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,r.outsideCurrentMonth&&!r.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},FN=_n(b9,{name:"MuiPickersDay",slot:"Root",overridesResolver:u4})(s4),NN=_n("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:u4})(({theme:e,ownerState:t})=>Gt({},s4({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),Zg=()=>{},jN=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiPickersDay"}),{autoFocus:u=!1,className:o,day:a,disabled:n=!1,disableHighlightToday:l=!1,disableMargin:f=!1,isAnimating:s,onClick:c,onDaySelect:d,onFocus:h=Zg,onBlur:p=Zg,onKeyDown:m=Zg,onMouseDown:y,outsideCurrentMonth:v,selected:g=!1,showDaysOutsideCurrentMonth:b=!1,children:x,today:_=!1}=i,w=Vn(i,LN),k=Gt({},i,{autoFocus:u,disabled:n,disableHighlightToday:l,disableMargin:f,selected:g,showDaysOutsideCurrentMonth:b,today:_}),T=IN(k),M=br(),S=$e.useRef(null),C=xl(S,r);Md(()=>{u&&!n&&!s&&!v&&S.current.focus()},[u,n,s,v]);const P=O=>{y&&y(O),v&&O.preventDefault()},D=O=>{n||d(a,"finish"),v&&O.currentTarget.focus(),c&&c(O)};return v&&!b?je.jsx(NN,{className:jr(T.root,T.hiddenDaySpacingFiller,o),ownerState:k,role:w.role}):je.jsx(FN,Gt({className:jr(T.root,o),ownerState:k,ref:C,centerRipple:!0,disabled:n,tabIndex:g?0:-1,onKeyDown:O=>m(O,a),onFocus:O=>h(O,a),onBlur:O=>p(O,a),onClick:D,onMouseDown:P},w,{children:x||M.format(a,"dayOfMonth")}))}),$N=(e,t)=>e.autoFocus===t.autoFocus&&e.isAnimating===t.isAnimating&&e.today===t.today&&e.disabled===t.disabled&&e.selected===t.selected&&e.disableMargin===t.disableMargin&&e.showDaysOutsideCurrentMonth===t.showDaysOutsideCurrentMonth&&e.disableHighlightToday===t.disableHighlightToday&&e.className===t.className&&e.sx===t.sx&&e.outsideCurrentMonth===t.outsideCurrentMonth&&e.onFocus===t.onFocus&&e.onBlur===t.onBlur&&e.onDaySelect===t.onDaySelect,c4=$e.memo(jN,$N),BN=e=>Tr("PrivatePickersSlideTransition",e),ua=_r("PrivatePickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),zN=["children","className","reduceAnimations","slideDirection","transKey"],qN=e=>{const{classes:t}=e;return yr({root:["root"]},BN,t)},f4=350,WN=_n(Z5,{name:"PrivatePickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${ua["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${ua["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${ua.slideEnterActive}`]:t.slideEnterActive},{[`.${ua.slideExit}`]:t.slideExit},{[`.${ua["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${ua["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:f4,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${ua["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${ua["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${ua.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${ua.slideExit}`]:{transform:"translate(0%)"},[`& .${ua["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${ua["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}}),UN=e=>{const{children:t,className:r,reduceAnimations:i,slideDirection:u,transKey:o}=e,a=Vn(e,zN),n=qN(e);if(i)return je.jsx("div",{className:jr(n.root,r),children:t});const l={exit:ua.slideExit,enterActive:ua.slideEnterActive,enter:ua[`slideEnter-${u}`],exitActive:ua[`slideExitActiveLeft-${u}`]};return je.jsx(WN,{className:jr(n.root,r),childFactory:f=>$e.cloneElement(f,{classNames:l}),role:"presentation",children:je.jsx(x9,Gt({mountOnEnter:!0,unmountOnExit:!0,timeout:f4,classNames:l},a,{children:t}),o)})},HN=e=>Tr("MuiDayPicker",e),VN=_r("MuiDayPicker",["header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer"]),YN=e=>{const{classes:t}=e;return yr({header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"]},HN,t)},GN=e=>e.charAt(0).toUpperCase(),d4=(Cu+rc*2)*6,XN=_n("div",{name:"MuiDayPicker",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),ZN=_n(Cr,{name:"MuiDayPicker",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.secondary})),KN=_n("div",{name:"MuiDayPicker",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:d4}),JN=_n(UN,{name:"MuiDayPicker",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:d4}),QN=_n("div",{name:"MuiDayPicker",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),ej=_n("div",{name:"MuiDayPicker",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${rc}px 0`,display:"flex",justifyContent:"center"});function tj(e){const t=nc(),r=br(),i=fr({props:e,name:"MuiDayPicker"}),u=YN(i),{onFocusedDayChange:o,className:a,currentMonth:n,selectedDays:l,disabled:f,disableHighlightToday:s,focusedDay:c,isMonthSwitchingAnimating:d,loading:h,onSelectedDaysChange:p,onMonthSwitchingAnimationEnd:m,readOnly:y,reduceAnimations:v,renderDay:g,renderLoading:b=()=>je.jsx("span",{children:"..."}),showDaysOutsideCurrentMonth:x,slideDirection:_,TransitionProps:w,disablePast:k,disableFuture:T,minDate:M,maxDate:S,shouldDisableDate:C,dayOfWeekFormatter:P=GN,hasFocus:D,onFocusedViewChange:O,gridLabelId:R}=i,F=i4({shouldDisableDate:C,minDate:M,maxDate:S,disablePast:k,disableFuture:T}),[A,z]=$e.useState(()=>c||t),B=$e.useCallback(U=>{O&&O(U)},[O]),$=$e.useCallback((U,Q="finish")=>{y||p(U,Q)},[p,y]),j=$e.useCallback(U=>{F(U)||(o(U),z(U),B(!0))},[F,o,B]),N=Od();function E(U,Q){switch(U.key){case"ArrowUp":j(r.addDays(Q,-7)),U.preventDefault();break;case"ArrowDown":j(r.addDays(Q,7)),U.preventDefault();break;case"ArrowLeft":{const Y=r.addDays(Q,N.direction==="ltr"?-1:1),Z=N.direction==="ltr"?r.getPreviousMonth(Q):r.getNextMonth(Q),X=_u({utils:r,date:Y,minDate:N.direction==="ltr"?r.startOfMonth(Z):Y,maxDate:N.direction==="ltr"?Y:r.endOfMonth(Z),isDateDisabled:F});j(X||Y),U.preventDefault();break}case"ArrowRight":{const Y=r.addDays(Q,N.direction==="ltr"?1:-1),Z=N.direction==="ltr"?r.getNextMonth(Q):r.getPreviousMonth(Q),X=_u({utils:r,date:Y,minDate:N.direction==="ltr"?Y:r.startOfMonth(Z),maxDate:N.direction==="ltr"?r.endOfMonth(Z):Y,isDateDisabled:F});j(X||Y),U.preventDefault();break}case"Home":j(r.startOfWeek(Q)),U.preventDefault();break;case"End":j(r.endOfWeek(Q)),U.preventDefault();break;case"PageUp":j(r.getNextMonth(Q)),U.preventDefault();break;case"PageDown":j(r.getPreviousMonth(Q)),U.preventDefault();break}}function W(U,Q){j(Q)}function G(U,Q){D&&r.isSameDay(A,Q)&&B(!1)}const L=r.getMonth(n),q=l.filter(U=>!!U).map(U=>r.startOfDay(U)),H=L,V=$e.useMemo(()=>$e.createRef(),[H]),te=r.startOfWeek(t),ee=$e.useMemo(()=>{const U=r.startOfMonth(n),Q=r.endOfMonth(n);return F(A)||r.isAfterDay(A,Q)||r.isBeforeDay(A,U)?_u({utils:r,date:A,minDate:U,maxDate:Q,disablePast:k,disableFuture:T,isDateDisabled:F}):A},[n,T,k,A,F,r]);return je.jsxs("div",{role:"grid","aria-labelledby":R,children:[je.jsx(XN,{role:"row",className:u.header,children:r.getWeekdays().map((U,Q)=>{var Y;return je.jsx(ZN,{variant:"caption",role:"columnheader","aria-label":r.format(r.addDays(te,Q),"weekday"),className:u.weekDayLabel,children:(Y=P==null?void 0:P(U))!=null?Y:U},U+Q.toString())})}),h?je.jsx(KN,{className:u.loadingContainer,children:b()}):je.jsx(JN,Gt({transKey:H,onExited:m,reduceAnimations:v,slideDirection:_,className:jr(a,u.slideTransition)},w,{nodeRef:V,children:je.jsx(QN,{ref:V,role:"rowgroup",className:u.monthContainer,children:r.getWeekArray(n).map(U=>je.jsx(ej,{role:"row",className:u.weekContainer,children:U.map(Q=>{const Y=ee!==null&&r.isSameDay(Q,ee),Z=q.some(ie=>r.isSameDay(ie,Q)),X=r.isSameDay(Q,t),re={key:Q==null?void 0:Q.toString(),day:Q,isAnimating:d,disabled:f||F(Q),autoFocus:D&&Y,today:X,outsideCurrentMonth:r.getMonth(Q)!==L,selected:Z,disableHighlightToday:s,showDaysOutsideCurrentMonth:x,onKeyDown:E,onFocus:W,onBlur:G,onDaySelect:$,tabIndex:Y?0:-1,role:"gridcell","aria-selected":Z};return X&&(re["aria-current"]="date"),g?g(Q,q,re):$e.createElement(c4,Gt({},re,{key:re.key}))})},`week-${U[0]}`))})}))]})}function Ey({onChange:e,onViewChange:t,openTo:r,view:i,views:u}){var o,a;const[n,l]=Sd({name:"Picker",state:"view",controlled:i,default:r&&yo(u,r)?r:u[0]}),f=(o=u[u.indexOf(n)-1])!=null?o:null,s=(a=u[u.indexOf(n)+1])!=null?a:null,c=$e.useCallback(p=>{l(p),t&&t(p)},[l,t]),d=$e.useCallback(()=>{s&&c(s)},[s,c]);return{handleChangeAndOpenNext:$e.useCallback((p,m)=>{const y=m==="finish";e(p,y&&s?"partial":m),y&&d()},[s,e,d]),nextView:s,previousView:f,openNext:d,openView:n,setOpenView:c}}const nj=no(je.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),rj=no(je.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),aj=no(je.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),h4=no(je.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),p4=no(je.jsxs($e.Fragment,{children:[je.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),je.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),ij=no(je.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),oj=no(je.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Pen"),lj=no(je.jsxs($e.Fragment,{children:[je.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),je.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");function sj(e){return Tr("MuiPickersArrowSwitcher",e)}_r("MuiPickersArrowSwitcher",["root","spacer","button"]);const uj=["children","className","components","componentsProps","isLeftDisabled","isLeftHidden","isRightDisabled","isRightHidden","leftArrowButtonText","onLeftClick","onRightClick","rightArrowButtonText"],cj=e=>{const{classes:t}=e;return yr({root:["root"],spacer:["spacer"],button:["button"]},sj,t)},fj=_n("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),dj=_n("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),r_=_n(Fl,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>Gt({},e.hidden&&{visibility:"hidden"})),g4=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiPickersArrowSwitcher"}),{children:u,className:o,components:a,componentsProps:n,isLeftDisabled:l,isLeftHidden:f,isRightDisabled:s,isRightHidden:c,leftArrowButtonText:d,onLeftClick:h,onRightClick:p,rightArrowButtonText:m}=i,y=Vn(i,uj),g=Od().direction==="rtl",b=(n==null?void 0:n.leftArrowButton)||{},x=(a==null?void 0:a.LeftArrowIcon)||rj,_=(n==null?void 0:n.rightArrowButton)||{},w=(a==null?void 0:a.RightArrowIcon)||aj,k=i,T=cj(k);return je.jsxs(fj,Gt({ref:r,className:jr(T.root,o),ownerState:k},y,{children:[je.jsx(r_,Gt({as:a==null?void 0:a.LeftArrowButton,size:"small","aria-label":d,title:d,disabled:l,edge:"end",onClick:h},b,{className:jr(T.button,b.className),ownerState:Gt({},k,b,{hidden:f}),children:g?je.jsx(w,{}):je.jsx(x,{})})),u?je.jsx(Cr,{variant:"subtitle1",component:"span",children:u}):je.jsx(dj,{className:T.spacer,ownerState:k}),je.jsx(r_,Gt({as:a==null?void 0:a.RightArrowButton,size:"small","aria-label":m,title:m,edge:"start",disabled:s,onClick:p},_,{className:jr(T.button,_.className),ownerState:Gt({},k,_,{hidden:c}),children:g?je.jsx(x,{}):je.jsx(w,{})}))]}))}),hj=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,R0=(e,t,r)=>r&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,pj=(e,t,r,i)=>{const u=R0(i.getHours(e),t,r);return i.setHours(e,u)},a_=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),m4=(e=!1,t)=>(r,i)=>e?t.isAfter(r,i):a_(r,t)>a_(i,t);function gj(e,{disableFuture:t,maxDate:r}){const i=br();return $e.useMemo(()=>{const u=i.date(),o=i.startOfMonth(t&&i.isBefore(u,r)?u:r);return!i.isAfter(o,e)},[t,r,e,i])}function mj(e,{disablePast:t,minDate:r}){const i=br();return $e.useMemo(()=>{const u=i.date(),o=i.startOfMonth(t&&i.isAfter(u,r)?u:r);return!i.isBefore(o,e)},[t,r,e,i])}function v4(e,t,r){const i=br(),u=hj(e,i),o=$e.useCallback(a=>{const n=e==null?null:pj(e,a,!!t,i);r(n,"partial")},[t,e,r,i]);return{meridiemMode:u,handleMeridiemChange:o}}const y4=e=>()=>{},vj=e=>Tr("MuiPickersCalendarHeader",e),yj=_r("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),bj=e=>{const{classes:t}=e;return yr({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},vj,t)},xj=_n("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),wj=_n("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>Gt({display:"flex",maxHeight:30,overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),_j=_n("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),Tj=_n(Fl,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto"}),kj=_n(nj,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e,ownerState:t})=>Gt({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"},t.openView==="year"&&{transform:"rotate(180deg)"})),Mj=y4();function Sj(e){const t=fr({props:e,name:"MuiPickersCalendarHeader"}),{components:r={},componentsProps:i={},currentMonth:u,disabled:o,disableFuture:a,disablePast:n,getViewSwitchingButtonText:l,leftArrowButtonText:f,maxDate:s,minDate:c,onMonthChange:d,onViewChange:h,openView:p,reduceAnimations:m,rightArrowButtonText:y,views:v,labelId:g}=t;Mj({leftArrowButtonText:f,rightArrowButtonText:y,getViewSwitchingButtonText:l});const b=ei(),x=f??b.previousMonth,_=y??b.nextMonth,w=l??b.calendarViewSwitchingButtonAriaLabel,k=br(),T=bj(t),M=i.switchViewButton||{},S=()=>d(k.getNextMonth(u),"left"),C=()=>d(k.getPreviousMonth(u),"right"),P=gj(u,{disableFuture:a,maxDate:s}),D=mj(u,{disablePast:n,minDate:c}),O=()=>{if(!(v.length===1||!h||o))if(v.length===2)h(v.find(F=>F!==p)||v[0]);else{const F=v.indexOf(p)!==0?0:1;h(v[F])}};if(v.length===1&&v[0]==="year")return null;const R=t;return je.jsxs(xj,{ownerState:R,className:T.root,children:[je.jsxs(wj,{role:"presentation",onClick:O,ownerState:R,"aria-live":"polite",className:T.labelContainer,children:[je.jsx(o4,{reduceAnimations:m,transKey:k.format(u,"monthAndYear"),children:je.jsx(_j,{id:g,ownerState:R,className:T.label,children:k.format(u,"monthAndYear")})}),v.length>1&&!o&&je.jsx(Tj,Gt({size:"small",as:r.SwitchViewButton,"aria-label":w(p),className:T.switchViewButton},M,{children:je.jsx(kj,{as:r.SwitchViewIcon,ownerState:R,className:T.switchViewIcon})}))]}),je.jsx(K5,{in:p==="day",children:je.jsx(g4,{leftArrowButtonText:x,rightArrowButtonText:_,components:r,componentsProps:i,onLeftClick:C,onRightClick:S,isLeftDisabled:D,isRightDisabled:P})})]})}const Pi=$e.createContext(null);function Cj(e){return Tr("PrivatePickersYear",e)}const wo=_r("PrivatePickersYear",["root","modeDesktop","modeMobile","yearButton","selected","disabled"]),Oj=["autoFocus","className","children","disabled","onClick","onKeyDown","value","tabIndex","onFocus","onBlur"],Aj=e=>{const{wrapperVariant:t,disabled:r,selected:i,classes:u}=e,o={root:["root",t&&`mode${w9(t)}`],yearButton:["yearButton",r&&"disabled",i&&"selected"]};return yr(o,Cj,u)},Pj=_n("div",{name:"PrivatePickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${wo.modeDesktop}`]:t.modeDesktop},{[`&.${wo.modeMobile}`]:t.modeMobile}]})(({ownerState:e})=>Gt({flexBasis:"33.3%",display:"flex",alignItems:"center",justifyContent:"center"},(e==null?void 0:e.wrapperVariant)==="desktop"&&{flexBasis:"25%"})),Dj=_n("button",{name:"PrivatePickersYear",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${wo.disabled}`]:t.disabled},{[`&.${wo.selected}`]:t.selected}]})(({theme:e})=>Gt({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:Af(e.palette.action.active,e.palette.action.hoverOpacity)},[`&.${wo.disabled}`]:{color:e.palette.text.secondary},[`&.${wo.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),i_=()=>{},Ej=$e.forwardRef(function(t,r){const{autoFocus:i,className:u,children:o,disabled:a,onClick:n,onKeyDown:l,value:f,tabIndex:s,onFocus:c=i_,onBlur:d=i_}=t,h=Vn(t,Oj),p=$e.useRef(null),m=xl(p,r),y=$e.useContext(Pi),v=Gt({},t,{wrapperVariant:y}),g=Aj(v);return $e.useEffect(()=>{i&&p.current.focus()},[i]),je.jsx(Pj,{className:jr(g.root,u),ownerState:v,children:je.jsx(Dj,Gt({ref:m,disabled:a,type:"button",tabIndex:a?-1:s,onClick:b=>n(b,f),onKeyDown:b=>l(b,f),onFocus:b=>c(b,f),onBlur:b=>d(b,f),className:g.yearButton,ownerState:v},h,{children:o}))})});function b4(e){return Tr("MuiYearPicker",e)}const Rj=_r("MuiYearPicker",["root"]),Lj=e=>{const{classes:t}=e;return yr({root:["root"]},b4,t)};function Ij(e,t){const r=br(),i=tc(),u=fr({props:e,name:t});return Gt({disablePast:!1,disableFuture:!1},u,{minDate:Ha(r,u.minDate,i.minDate),maxDate:Ha(r,u.maxDate,i.maxDate)})}const Fj=_n("div",{name:"MuiYearPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",maxHeight:"304px"}),x4=$e.forwardRef(function(t,r){const i=nc(),u=Od(),o=br(),a=Ij(t,"MuiYearPicker"),{autoFocus:n,className:l,date:f,disabled:s,disableFuture:c,disablePast:d,maxDate:h,minDate:p,onChange:m,readOnly:y,shouldDisableYear:v,disableHighlightToday:g,onYearFocus:b,hasFocus:x,onFocusedViewChange:_}=a,w=a,k=Lj(w),T=$e.useMemo(()=>f??o.startOfYear(i),[i,o,f]),M=$e.useMemo(()=>f!=null?o.getYear(f):g?null:o.getYear(i),[i,f,o,g]),S=$e.useContext(Pi),C=$e.useRef(null),[P,D]=$e.useState(()=>M||o.getYear(i)),[O,R]=Sd({name:"YearPicker",state:"hasFocus",controlled:x,default:n}),F=$e.useCallback(q=>{R(q),_&&_(q)},[R,_]),A=$e.useCallback(q=>!!(d&&o.isBeforeYear(q,i)||c&&o.isAfterYear(q,i)||p&&o.isBeforeYear(q,p)||h&&o.isAfterYear(q,h)||v&&v(q)),[c,d,h,p,i,v,o]),z=(q,H,V="finish")=>{if(y)return;const te=o.setYear(T,H);m(te,V)},B=$e.useCallback(q=>{A(o.setYear(T,q))||(D(q),F(!0),b==null||b(q))},[A,o,T,F,b]);$e.useEffect(()=>{D(q=>M!==null&&q!==M?M:q)},[M]);const $=S==="desktop"?4:3,j=$e.useCallback((q,H)=>{switch(q.key){case"ArrowUp":B(H-$),q.preventDefault();break;case"ArrowDown":B(H+$),q.preventDefault();break;case"ArrowLeft":B(H+(u.direction==="ltr"?-1:1)),q.preventDefault();break;case"ArrowRight":B(H+(u.direction==="ltr"?1:-1)),q.preventDefault();break}},[B,u.direction,$]),N=$e.useCallback((q,H)=>{B(H)},[B]),E=$e.useCallback((q,H)=>{P===H&&F(!1)},[P,F]),W=o.getYear(i),G=$e.useRef(null),L=xl(r,G);return $e.useEffect(()=>{if(n||G.current===null)return;const q=G.current.querySelector('[tabindex="0"]');if(!q)return;const H=q.offsetHeight,V=q.offsetTop,te=G.current.clientHeight,ee=G.current.scrollTop,U=V+H;H>te||V{const H=o.getYear(q),V=H===M;return je.jsx(Ej,{selected:V,value:H,onClick:z,onKeyDown:j,autoFocus:O&&H===P,ref:V?C:void 0,disabled:s||A(q),tabIndex:H===P?0:-1,onFocus:N,onBlur:E,"aria-current":W===H?"date":void 0,children:o.format(q,"year")},o.format(q,"year"))})})}),Ry=_n("div")({overflowX:"hidden",width:Dy,maxHeight:RN,display:"flex",flexDirection:"column",margin:"0 auto"}),Nj=typeof navigator<"u"&&/(android)/i.test(navigator.userAgent),w4=e=>Tr("MuiCalendarPicker",e),jj=_r("MuiCalendarPicker",["root","viewTransitionContainer"]),$j=["autoFocus","onViewChange","date","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","classes"],Bj=e=>{const{classes:t}=e;return yr({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},w4,t)};function zj(e,t){const r=br(),i=tc(),u=fr({props:e,name:t});return Gt({loading:!1,disablePast:!1,disableFuture:!1,openTo:"day",views:["year","day"],reduceAnimations:Nj,renderLoading:()=>je.jsx("span",{children:"..."})},u,{minDate:Ha(r,u.minDate,i.minDate),maxDate:Ha(r,u.maxDate,i.maxDate)})}const qj=_n(Ry,{name:"MuiCalendarPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),Wj=_n(o4,{name:"MuiCalendarPicker",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),_4=$e.forwardRef(function(t,r){const i=br(),u=J5(),o=zj(t,"MuiCalendarPicker"),{autoFocus:a,onViewChange:n,date:l,disableFuture:f,disablePast:s,defaultCalendarMonth:c,onChange:d,onYearChange:h,onMonthChange:p,reduceAnimations:m,shouldDisableDate:y,shouldDisableMonth:v,shouldDisableYear:g,view:b,views:x,openTo:_,className:w,disabled:k,readOnly:T,minDate:M,maxDate:S,disableHighlightToday:C,focusedView:P,onFocusedViewChange:D}=o,O=Vn(o,$j),{openView:R,setOpenView:F,openNext:A}=Ey({view:b,views:x,openTo:_,onChange:d,onViewChange:n}),{calendarState:z,changeFocusedDay:B,changeMonth:$,handleChangeMonth:j,isDateDisabled:N,onMonthSwitchingAnimationEnd:E}=ON({date:l,defaultCalendarMonth:c,reduceAnimations:m,onMonthChange:p,minDate:M,maxDate:S,shouldDisableDate:y,disablePast:s,disableFuture:f}),W=$e.useCallback((le,se)=>{const pe=i.startOfMonth(le),Te=i.endOfMonth(le),Se=N(le)?_u({utils:i,date:le,minDate:i.isBefore(M,pe)?pe:M,maxDate:i.isAfter(S,Te)?Te:S,disablePast:s,disableFuture:f,isDateDisabled:N}):le;Se?(d(Se,se),p==null||p(pe)):(A(),$(pe)),B(Se,!0)},[B,f,s,N,S,M,d,p,$,A,i]),G=$e.useCallback((le,se)=>{const pe=i.startOfYear(le),Te=i.endOfYear(le),Se=N(le)?_u({utils:i,date:le,minDate:i.isBefore(M,pe)?pe:M,maxDate:i.isAfter(S,Te)?Te:S,disablePast:s,disableFuture:f,isDateDisabled:N}):le;Se?(d(Se,se),h==null||h(Se)):(A(),$(pe)),B(Se,!0)},[B,f,s,N,S,M,d,h,A,i,$]),L=$e.useCallback((le,se)=>d(l&&le?i.mergeDateAndTime(le,l):le,se),[i,l,d]);$e.useEffect(()=>{l&&$(l)},[l]);const q=o,H=Bj(q),V={disablePast:s,disableFuture:f,maxDate:S,minDate:M},te=k&&l||M,ee=k&&l||S,U={disableHighlightToday:C,readOnly:T,disabled:k},Q=`${u}-grid-label`,[Y,Z]=Sd({name:"DayPicker",state:"focusedView",controlled:P,default:a?R:null}),X=Y!==null,re=Cd(le=>se=>{if(D){D(le)(se);return}Z(se?le:pe=>pe===le?null:pe)}),ie=$e.useRef(R);return $e.useEffect(()=>{ie.current!==R&&(ie.current=R,re(R)(!0))},[R,re]),je.jsxs(qj,{ref:r,className:jr(H.root,w),ownerState:q,children:[je.jsx(Sj,Gt({},O,{views:x,openView:R,currentMonth:z.currentMonth,onViewChange:F,onMonthChange:(le,se)=>j({newMonth:le,direction:se}),minDate:te,maxDate:ee,disabled:k,disablePast:s,disableFuture:f,reduceAnimations:m,labelId:Q})),je.jsx(Wj,{reduceAnimations:m,className:H.viewTransitionContainer,transKey:R,ownerState:q,children:je.jsxs("div",{children:[R==="year"&&je.jsx(x4,Gt({},O,V,U,{autoFocus:a,date:l,onChange:G,shouldDisableYear:g,hasFocus:X,onFocusedViewChange:re("year")})),R==="month"&&je.jsx(a4,Gt({},V,U,{autoFocus:a,hasFocus:X,className:w,date:l,onChange:W,shouldDisableMonth:v,onFocusedViewChange:re("month")})),R==="day"&&je.jsx(tj,Gt({},O,z,V,U,{autoFocus:a,onMonthSwitchingAnimationEnd:E,onFocusedDayChange:B,reduceAnimations:m,selectedDays:[l],onSelectedDaysChange:L,shouldDisableDate:y,hasFocus:X,onFocusedViewChange:re("day"),gridLabelId:Q}))]})})]})}),T4=e=>Tr("MuiCalendarPickerSkeleton",e),Uj=_r("MuiCalendarPickerSkeleton",["root","week","daySkeleton"]),Hj=["className"],Vj=e=>{const{classes:t}=e;return yr({root:["root"],week:["week"],daySkeleton:["daySkeleton"]},T4,t)},Yj=_n("div",{name:"MuiCalendarPickerSkeleton",slot:"Root",overridesResolver:(e,t)=>t.root})({alignSelf:"start"}),Gj=_n("div",{name:"MuiCalendarPickerSkeleton",slot:"Week",overridesResolver:(e,t)=>t.week})({margin:`${rc}px 0`,display:"flex",justifyContent:"center"}),k4=_n(_9,{name:"MuiCalendarPickerSkeleton",slot:"DaySkeleton",overridesResolver:(e,t)=>t.daySkeleton})(({ownerState:e})=>Gt({margin:`0 ${rc}px`},e.day===0&&{visibility:"hidden"}));k4.propTypes={ownerState:oe.shape({day:oe.number.isRequired}).isRequired};const Xj=[[0,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,0,0,0]];function Zj(e){const t=fr({props:e,name:"MuiCalendarPickerSkeleton"}),{className:r}=t,i=Vn(t,Hj),u=Vj(i);return je.jsx(Yj,Gt({className:jr(u.root,r)},i,{children:Xj.map((o,a)=>je.jsx(Gj,{className:u.week,children:o.map((n,l)=>je.jsx(k4,{variant:"circular",width:Cu,height:Cu,className:u.daySkeleton,ownerState:{day:n}},l))},a))}))}const kl=220,Yi=36,Ou={x:kl/2,y:kl/2},M4={x:Ou.x,y:0},Kj=M4.x-Ou.x,Jj=M4.y-Ou.y,Qj=e=>e*(180/Math.PI),S4=(e,t,r)=>{const i=t-Ou.x,u=r-Ou.y,o=Math.atan2(Kj,Jj)-Math.atan2(i,u);let a=Qj(o);a=Math.round(a/e)*e,a%=360;const n=Math.floor(a/e)||0,l=i**2+u**2,f=Math.sqrt(l);return{value:n,distance:f}},e$=(e,t,r=1)=>{const i=r*6;let{value:u}=S4(i,e,t);return u=u*r%60,u},t$=(e,t,r)=>{const{value:i,distance:u}=S4(30,e,t);let o=i||12;return r?o%=12:u{const{classes:t}=e;return yr({root:["root"],thumb:["thumb"]},n$,t)},o$=_n("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>Gt({width:2,backgroundColor:e.palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),l$=_n("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>Gt({width:4,height:4,backgroundColor:e.palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Yi/2}px)`,border:`${(Yi-4)/2}px solid ${e.palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:e.palette.primary.main}));function s$(e){const t=fr({props:e,name:"MuiClockPointer"}),{className:r,isInner:i,type:u,value:o}=t,a=Vn(t,a$),n=$e.useRef(u);$e.useEffect(()=>{n.current=u},[u]);const l=Gt({},t,{shouldAnimate:n.current!==u}),f=i$(l),s=()=>{let d=360/(u==="hours"?12:60)*o;return u==="hours"&&o>12&&(d-=360),{height:Math.round((i?.26:.4)*kl),transform:`rotateZ(${d}deg)`}};return je.jsx(o$,Gt({style:s(),className:jr(r,f.root),ownerState:l},a,{children:je.jsx(l$,{ownerState:l,className:f.thumb})}))}function u$(e){return Tr("MuiClock",e)}const c$=_r("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton"]),f$=e=>{const{classes:t}=e;return yr({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"]},u$,t)},d$=_n("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),h$=_n("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),p$=_n("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),g$=_n("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>Gt({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),m$=_n("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:e.palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),v$=_n(Fl,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>Gt({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,left:8},t.meridiemMode==="am"&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}})),y$=_n(Fl,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>Gt({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,right:8},t.meridiemMode==="pm"&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}}));function b$(e){const t=fr({props:e,name:"MuiClock"}),{ampm:r,ampmInClock:i,autoFocus:u,children:o,date:a,getClockLabelText:n,handleMeridiemChange:l,isTimeDisabled:f,meridiemMode:s,minutesStep:c=1,onChange:d,selectedId:h,type:p,value:m,disabled:y,readOnly:v,className:g}=t,b=t,x=br(),_=$e.useContext(Pi),w=$e.useRef(!1),k=f$(b),T=f(m,p),M=!r&&p==="hours"&&(m<1||m>12),S=($,j)=>{y||v||f($,p)||d($,j)},C=($,j)=>{let{offsetX:N,offsetY:E}=$;if(N===void 0){const G=$.target.getBoundingClientRect();N=$.changedTouches[0].clientX-G.left,E=$.changedTouches[0].clientY-G.top}const W=p==="seconds"||p==="minutes"?e$(N,E,c):t$(N,E,!!r);S(W,j)},P=$=>{w.current=!0,C($,"shallow")},D=$=>{w.current&&(C($,"finish"),w.current=!1)},O=$=>{$.buttons>0&&C($.nativeEvent,"shallow")},R=$=>{w.current&&(w.current=!1),C($.nativeEvent,"finish")},F=$e.useMemo(()=>p==="hours"?!0:m%5===0,[p,m]),A=p==="minutes"?c:1,z=$e.useRef(null);Md(()=>{u&&z.current.focus()},[u]);const B=$=>{if(!w.current)switch($.key){case"Home":S(0,"partial"),$.preventDefault();break;case"End":S(p==="minutes"?59:23,"partial"),$.preventDefault();break;case"ArrowUp":S(m+A,"partial"),$.preventDefault();break;case"ArrowDown":S(m-A,"partial"),$.preventDefault();break}};return je.jsxs(d$,{className:jr(g,k.root),children:[je.jsxs(h$,{className:k.clock,children:[je.jsx(g$,{onTouchMove:P,onTouchEnd:D,onMouseUp:R,onMouseMove:O,ownerState:{disabled:y},className:k.squareMask}),!T&&je.jsxs($e.Fragment,{children:[je.jsx(m$,{className:k.pin}),a&&je.jsx(s$,{type:p,value:m,isInner:M,hasSelected:F})]}),je.jsx(p$,{"aria-activedescendant":h,"aria-label":n(p,a,x),ref:z,role:"listbox",onKeyDown:B,tabIndex:0,className:k.wrapper,children:o})]}),r&&(_==="desktop"||i)&&je.jsxs($e.Fragment,{children:[je.jsx(v$,{onClick:v?void 0:()=>l("am"),disabled:y||s===null,ownerState:b,className:k.amButton,children:je.jsx(Cr,{variant:"caption",children:"AM"})}),je.jsx(y$,{disabled:y||s===null,onClick:v?void 0:()=>l("pm"),ownerState:b,className:k.pmButton,children:je.jsx(Cr,{variant:"caption",children:"PM"})})]})]})}function x$(e){return Tr("MuiClockNumber",e)}const yu=_r("MuiClockNumber",["root","selected","disabled"]),w$=["className","disabled","index","inner","label","selected"],_$=e=>{const{classes:t,selected:r,disabled:i}=e;return yr({root:["root",r&&"selected",i&&"disabled"]},x$,t)},T$=_n("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${yu.disabled}`]:t.disabled},{[`&.${yu.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>Gt({height:Yi,width:Yi,position:"absolute",left:`calc((100% - ${Yi}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:e.palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:e.palette.background.paper},[`&.${yu.selected}`]:{color:e.palette.primary.contrastText},[`&.${yu.disabled}`]:{pointerEvents:"none",color:e.palette.text.disabled}},t.inner&&Gt({},e.typography.body2,{color:e.palette.text.secondary})));function C4(e){const t=fr({props:e,name:"MuiClockNumber"}),{className:r,disabled:i,index:u,inner:o,label:a,selected:n}=t,l=Vn(t,w$),f=t,s=_$(f),c=u%12/12*Math.PI*2-Math.PI/2,d=(kl-Yi-2)/2*(o?.65:1),h=Math.round(Math.cos(c)*d),p=Math.round(Math.sin(c)*d);return je.jsx(T$,Gt({className:jr(r,s.root),"aria-disabled":i?!0:void 0,"aria-selected":n?!0:void 0,role:"option",style:{transform:`translate(${h}px, ${p+(kl-Yi)/2}px`},ownerState:f},l,{children:a}))}const k$=({ampm:e,date:t,getClockNumberText:r,isDisabled:i,selectedId:u,utils:o})=>{const a=t?o.getHours(t):null,n=[],l=e?1:0,f=e?12:23,s=c=>a===null?!1:e?c===12?a===12||a===0:a===c||a-12===c:a===c;for(let c=l;c<=f;c+=1){let d=c.toString();c===0&&(d="00");const h=!e&&(c===0||c>12);d=o.formatNumber(d);const p=s(c);n.push(je.jsx(C4,{id:p?u:void 0,index:c,inner:h,selected:p,disabled:i(c),label:d,"aria-label":r(d)},c))}return n},o_=({utils:e,value:t,isDisabled:r,getClockNumberText:i,selectedId:u})=>{const o=e.formatNumber;return[[5,o("05")],[10,o("10")],[15,o("15")],[20,o("20")],[25,o("25")],[30,o("30")],[35,o("35")],[40,o("40")],[45,o("45")],[50,o("50")],[55,o("55")],[0,o("00")]].map(([a,n],l)=>{const f=a===t;return je.jsx(C4,{label:n,id:f?u:void 0,index:l+1,inner:!1,disabled:r(a),selected:f,"aria-label":i(n)},a)})};function O4(e){return Tr("MuiClockPicker",e)}const M$=_r("MuiClockPicker",["root","arrowSwitcher"]),S$=e=>{const{classes:t}=e;return yr({root:["root"],arrowSwitcher:["arrowSwitcher"]},O4,t)},C$=_n(Ry,{name:"MuiClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),O$=_n(g4,{name:"MuiClockPicker",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),A$=y4(),A4=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiClockPicker"}),{ampm:u=!1,ampmInClock:o=!1,autoFocus:a,components:n,componentsProps:l,date:f,disableIgnoringDatePartForTimeValidation:s,getClockLabelText:c,getHoursClockNumberText:d,getMinutesClockNumberText:h,getSecondsClockNumberText:p,leftArrowButtonText:m,maxTime:y,minTime:v,minutesStep:g=1,rightArrowButtonText:b,shouldDisableTime:x,showViewSwitcher:_,onChange:w,view:k,views:T=["hours","minutes"],openTo:M,onViewChange:S,className:C,disabled:P,readOnly:D}=i;A$({leftArrowButtonText:m,rightArrowButtonText:b,getClockLabelText:c,getHoursClockNumberText:d,getMinutesClockNumberText:h,getSecondsClockNumberText:p});const O=ei(),R=m??O.openPreviousView,F=b??O.openNextView,A=c??O.clockLabelText,z=d??O.hoursClockNumberText,B=h??O.minutesClockNumberText,$=p??O.secondsClockNumberText,{openView:j,setOpenView:N,nextView:E,previousView:W,handleChangeAndOpenNext:G}=Ey({view:k,views:T,openTo:M,onViewChange:S,onChange:w}),L=nc(),q=br(),H=$e.useMemo(()=>f||q.setSeconds(q.setMinutes(q.setHours(L,0),0),0),[f,L,q]),{meridiemMode:V,handleMeridiemChange:te}=v4(H,u,G),ee=$e.useCallback((X,re)=>{const ie=m4(s,q),le=({start:pe,end:Te})=>!(v&&ie(v,Te)||y&&ie(pe,y)),se=(pe,Te=1)=>pe%Te!==0?!1:x?!x(pe,re):!0;switch(re){case"hours":{const pe=R0(X,V,u),Te=q.setHours(H,pe),Se=q.setSeconds(q.setMinutes(Te,0),0),Oe=q.setSeconds(q.setMinutes(Te,59),59);return!le({start:Se,end:Oe})||!se(pe)}case"minutes":{const pe=q.setMinutes(H,X),Te=q.setSeconds(pe,0),Se=q.setSeconds(pe,59);return!le({start:Te,end:Se})||!se(X,g)}case"seconds":{const pe=q.setSeconds(H,X);return!le({start:pe,end:pe})||!se(X)}default:throw new Error("not supported")}},[u,H,s,y,V,v,g,x,q]),U=J5(),Q=$e.useMemo(()=>{switch(j){case"hours":{const X=(re,ie)=>{const le=R0(re,V,u);G(q.setHours(H,le),ie)};return{onChange:X,value:q.getHours(H),children:k$({date:f,utils:q,ampm:u,onChange:X,getClockNumberText:z,isDisabled:re=>P||ee(re,"hours"),selectedId:U})}}case"minutes":{const X=q.getMinutes(H),re=(ie,le)=>{G(q.setMinutes(H,ie),le)};return{value:X,onChange:re,children:o_({utils:q,value:X,onChange:re,getClockNumberText:B,isDisabled:ie=>P||ee(ie,"minutes"),selectedId:U})}}case"seconds":{const X=q.getSeconds(H),re=(ie,le)=>{G(q.setSeconds(H,ie),le)};return{value:X,onChange:re,children:o_({utils:q,value:X,onChange:re,getClockNumberText:$,isDisabled:ie=>P||ee(ie,"seconds"),selectedId:U})}}default:throw new Error("You must provide the type for ClockView")}},[j,q,f,u,z,B,$,V,G,H,ee,U,P]),Y=i,Z=S$(Y);return je.jsxs(C$,{ref:r,className:jr(Z.root,C),ownerState:Y,children:[_&&je.jsx(O$,{className:Z.arrowSwitcher,leftArrowButtonText:R,rightArrowButtonText:F,components:n,componentsProps:l,onLeftClick:()=>N(W),onRightClick:()=>N(E),isLeftDisabled:!W,isRightDisabled:!E,ownerState:Y}),je.jsx(b$,Gt({autoFocus:a,date:f,ampmInClock:o,type:j,ampm:u,getClockLabelText:A,minutesStep:g,isTimeDisabled:ee,meridiemMode:V,handleMeridiemChange:te,selectedId:U,disabled:P,readOnly:D},Q))]})}),P4=e=>e.length===1&&e[0]==="year",D4=e=>e.length===2&&e.indexOf("month")!==-1&&e.indexOf("year")!==-1,P$=(e,t)=>P4(e)?{inputFormat:t.formats.year}:D4(e)?{disableMaskedInput:!0,inputFormat:t.formats.monthAndYear}:{inputFormat:t.formats.keyboardDate};function Ly(e,t){var r;const i=br(),u=tc(),o=fr({props:e,name:t}),a=(r=o.views)!=null?r:["year","day"];return Gt({openTo:"day",disableFuture:!1,disablePast:!1},P$(a,i),o,{views:a,minDate:Ha(i,o.minDate,u.minDate),maxDate:Ha(i,o.maxDate,u.maxDate)})}const Iy={emptyValue:null,getTodayValue:e=>e.date(),parseInput:Cy,areValuesEqual:(e,t,r)=>e.isEqual(t,r)};function E4(e){return Tr("MuiPickersToolbar",e)}const Fy=_r("MuiPickersToolbar",["root","content","penIconButton","penIconButtonLandscape"]),D$=e=>{const{classes:t,isLandscape:r}=e;return yr({root:["root"],content:["content"],penIconButton:["penIconButton",r&&"penIconButtonLandscape"]},E4,t)},E$=_n("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>Gt({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),R$=_n(Jn,{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>Gt({flex:1},!e.isLandscape&&{alignItems:"center"})),L$=_n(Fl,{name:"MuiPickersToolbar",slot:"PenIconButton",overridesResolver:(e,t)=>[{[`&.${Fy.penIconButtonLandscape}`]:t.penIconButtonLandscape},t.penIconButton]})({}),I$=e=>e==="clock"?je.jsx(p4,{color:"inherit"}):je.jsx(h4,{color:"inherit"}),Ny=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiPickersToolbar"}),{children:u,className:o,getMobileKeyboardInputViewButtonText:a,isLandscape:n,isMobileKeyboardViewOpen:l,landscapeDirection:f="column",toggleMobileKeyboardView:s,toolbarTitle:c,viewType:d="calendar"}=i,h=i,p=ei(),m=D$(h);return je.jsxs(E$,{ref:r,className:jr(m.root,o),ownerState:h,children:[je.jsx(Cr,{color:"text.secondary",variant:"overline",children:c}),je.jsxs(R$,{container:!0,justifyContent:"space-between",className:m.content,ownerState:h,direction:n?f:"row",alignItems:n?"flex-start":"flex-end",children:[u,je.jsx(L$,{onClick:s,className:m.penIconButton,ownerState:h,color:"inherit","aria-label":a?a(l,d):p.inputModeToggleButtonAriaLabel(l,d),children:l?I$(d):je.jsx(oj,{color:"inherit"})})]})]})});function F$(e){return Tr("MuiDatePickerToolbar",e)}const N$=_r("MuiDatePickerToolbar",["root","title"]),j$=["parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],$$=e=>{const{classes:t}=e;return yr({root:["root"],title:["title"]},F$,t)},B$=_n(Ny,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),z$=_n(Cr,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>Gt({},e.isLandscape&&{margin:"auto 16px auto auto"})),jy=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiDatePickerToolbar"}),{parsedValue:u,isLandscape:o,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:n,toolbarFormat:l,toolbarPlaceholder:f="––",toolbarTitle:s,views:c}=i,d=Vn(i,j$),h=br(),p=ei(),m=$$(i),y=s??p.datePickerDefaultToolbarTitle,v=$e.useMemo(()=>u?l?h.formatByString(u,l):P4(c)?h.format(u,"year"):D4(c)?h.format(u,"month"):/en/.test(h.getCurrentLocaleCode())?h.format(u,"normalDateWithWeekday"):h.format(u,"normalDate"):f,[u,l,f,h,c]),g=i;return je.jsx(B$,Gt({ref:r,toolbarTitle:y,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:n,isLandscape:o,className:m.root},d,{children:je.jsx(z$,{variant:"h4",align:o?"left":"center",ownerState:g,className:m.title,children:v})}))}),q$=["onAccept","onClear","onCancel","onSetToday","actions"],$y=e=>{const{onAccept:t,onClear:r,onCancel:i,onSetToday:u,actions:o}=e,a=Vn(e,q$),n=$e.useContext(Pi),l=ei(),f=typeof o=="function"?o(n):o;if(f==null||f.length===0)return null;const s=f==null?void 0:f.map(c=>{switch(c){case"clear":return je.jsx(di,{onClick:r,children:l.clearButtonLabel},c);case"cancel":return je.jsx(di,{onClick:i,children:l.cancelButtonLabel},c);case"accept":return je.jsx(di,{onClick:t,children:l.okButtonLabel},c);case"today":return je.jsx(di,{onClick:u,children:l.todayButtonLabel},c);default:return null}});return je.jsx(T9,Gt({},a,{children:s}))};function W$(e){return Tr("MuiPickersPopper",e)}_r("MuiPickersPopper",["root","paper"]);const U$=["onClick","onTouchStart"],H$=e=>{const{classes:t}=e;return yr({root:["root"],paper:["paper"]},W$,t)},V$=_n(k9,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),Y$=_n(Q5,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>Gt({transformOrigin:"top center",outline:0},e.placement==="top"&&{transformOrigin:"bottom center"}));function G$(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){o.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),o.current=!1}},[e]);const a=Cd(l=>{if(!o.current)return;const f=i.current;i.current=!1;const s=lg(u.current);if(!u.current||"clientX"in l&&G$(l,s))return;if(r.current){r.current=!1;return}let c;l.composedPath?c=l.composedPath().indexOf(u.current)>-1:c=!s.documentElement.contains(l.target)||u.current.contains(l.target),!c&&!f&&t(l)}),n=()=>{i.current=!0};return $e.useEffect(()=>{if(e){const l=lg(u.current),f=()=>{r.current=!0};return l.addEventListener("touchstart",a),l.addEventListener("touchmove",f),()=>{l.removeEventListener("touchstart",a),l.removeEventListener("touchmove",f)}}},[e,a]),$e.useEffect(()=>{if(e){const l=lg(u.current);return l.addEventListener("click",a),()=>{l.removeEventListener("click",a),i.current=!1}}},[e,a]),[u,n,n]}function Z$(e){var t;const r=fr({props:e,name:"MuiPickersPopper"}),{anchorEl:i,children:u,containerRef:o=null,onBlur:a,onClose:n,onClear:l,onAccept:f,onCancel:s,onSetToday:c,open:d,PopperProps:h,role:p,TransitionComponent:m=S9,TrapFocusProps:y,PaperProps:v={},components:g,componentsProps:b}=r;$e.useEffect(()=>{function B($){d&&($.key==="Escape"||$.key==="Esc")&&n()}return document.addEventListener("keydown",B),()=>{document.removeEventListener("keydown",B)}},[n,d]);const x=$e.useRef(null);$e.useEffect(()=>{p!=="tooltip"&&(d?x.current=e4(document):x.current&&x.current instanceof HTMLElement&&setTimeout(()=>{x.current instanceof HTMLElement&&x.current.focus()}))},[d,p]);const[_,w,k]=X$(d,a??n),T=$e.useRef(null),M=xl(T,o),S=xl(M,_),C=r,P=H$(C),{onClick:D,onTouchStart:O}=v,R=Vn(v,U$),F=B=>{B.key==="Escape"&&(B.stopPropagation(),n())},A=(t=g==null?void 0:g.ActionBar)!=null?t:$y,z=(g==null?void 0:g.PaperContent)||$e.Fragment;return je.jsx(V$,Gt({transition:!0,role:p,open:d,anchorEl:i,onKeyDown:F,className:P.root},h,{children:({TransitionProps:B,placement:$})=>je.jsx(M9,Gt({open:d,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:p==="tooltip",isEnabled:()=>!0},y,{children:je.jsx(m,Gt({},B,{children:je.jsx(Y$,Gt({tabIndex:-1,elevation:8,ref:S,onClick:j=>{w(j),D&&D(j)},onTouchStart:j=>{k(j),O&&O(j)},ownerState:Gt({},C,{placement:$}),className:P.paper},R,{children:je.jsxs(z,Gt({},b==null?void 0:b.paperContent,{children:[u,je.jsx(A,Gt({onAccept:f,onClear:l,onCancel:s,onSetToday:c,actions:[]},b==null?void 0:b.actionBar))]}))}))}))}))}))}function By(e){const{children:t,DateInputProps:r,KeyboardDateInputComponent:i,onClear:u,onDismiss:o,onCancel:a,onAccept:n,onSetToday:l,open:f,PopperProps:s,PaperProps:c,TransitionComponent:d,components:h,componentsProps:p}=e,m=$e.useRef(null),y=xl(r.inputRef,m);return je.jsxs(Pi.Provider,{value:"desktop",children:[je.jsx(i,Gt({},r,{inputRef:y})),je.jsx(Z$,{role:"dialog",open:f,anchorEl:m.current,TransitionComponent:d,PopperProps:s,PaperProps:c,onClose:o,onCancel:a,onClear:u,onAccept:n,onSetToday:l,components:h,componentsProps:p,children:t})]})}const K$=e=>{const[,t]=$e.useReducer(l=>l+1,0),r=$e.useRef(null),{replace:i,append:u}=e,o=i?i(e.format(e.value)):e.format(e.value),a=$e.useRef(!1),n=l=>{const f=l.target.value;r.current=[f,l.target,f.length>o.length,a.current,o===e.format(f)],t()};return $e.useLayoutEffect(()=>{if(r.current==null)return;let[l,f,s,c,d]=r.current;r.current=null;const h=c&&d,m=l.slice(f.selectionStart).search(e.accept||/\d/g),y=m!==-1?m:0,v=w=>(w.match(e.accept||/\d/g)||[]).join(""),g=v(l.substr(0,f.selectionStart)),b=w=>{let k=0,T=0;for(let M=0;M!==g.length;++M){let S=w.indexOf(g[M],k)+1,C=v(w).indexOf(g[M],T)+1;C-T>1&&(S=k,C=T),T=Math.max(C,T),k=Math.max(k,S)}return k};if(e.mask===!0&&s&&!d){let w=b(l);const k=v(l.substr(w))[0];w=l.indexOf(k,w),l=`${l.substr(0,w)}${l.substr(w+1)}`}let x=e.format(l);u!=null&&f.selectionStart===l.length&&!d&&(s?x=u(x):v(x.slice(-1))===""&&(x=x.slice(0,-1)));const _=i?i(x):x;return o===_?t():e.onChange(_),()=>{let w=b(x);if(e.mask!=null&&(s||c&&!h))for(;x[w]&&v(x[w])==="";)w+=1;f.selectionStart=f.selectionEnd=w+(h?1+y:0)}}),$e.useEffect(()=>{const l=s=>{s.code==="Delete"&&(a.current=!0)},f=s=>{s.code==="Delete"&&(a.current=!1)};return document.addEventListener("keydown",l),document.addEventListener("keyup",f),()=>{document.removeEventListener("keydown",l),document.removeEventListener("keyup",f)}},[]),{value:r.current!=null?r.current[0]:o,onChange:n}},L0=(e,t,r)=>{const i=e.date(t);return t===null?"":e.isValid(i)?e.formatByString(i,r):""},If="_",R4="2019-11-21T22:30:00.000",L4="2019-01-01T09:00:00.000";function J$(e,t,r,i){if(e)return e;const o=i.formatByString(i.date(L4),t).replace(r,If),a=i.formatByString(i.date(R4),t).replace(r,"_");return o===a?o:""}function Q$(e,t,r,i){if(!e)return!1;const o=i.formatByString(i.date(L4),t).replace(r,If),a=i.formatByString(i.date(R4),t).replace(r,"_"),n=a===o&&e===a;return!n&&i.lib,n}const eB=(e,t)=>r=>{let i=0;return r.split("").map((u,o)=>{if(t.lastIndex=0,i>e.length-1)return"";const a=e[i],n=e[i+1],l=t.test(u)?u:"",f=a===If?l:a+l;return i+=f.length,o===r.length-1&&n&&n!==If?f?f+n:"":f}).join("")},tB=({acceptRegex:e=/[\d]/gi,disabled:t,disableMaskedInput:r,ignoreInvalidInputs:i,inputFormat:u,inputProps:o,label:a,mask:n,onChange:l,rawValue:f,readOnly:s,rifmFormatter:c,TextFieldProps:d,validationError:h})=>{const p=br(),m=p.getFormatHelperText(u),{shouldUseMaskedInput:y,maskToUse:v}=$e.useMemo(()=>{if(r)return{shouldUseMaskedInput:!1,maskToUse:""};const O=J$(n,u,e,p);return{shouldUseMaskedInput:Q$(O,u,e,p),maskToUse:O}},[e,r,u,n,p]),g=$e.useMemo(()=>y&&v?eB(v,e):O=>O,[e,v,y]),b=f===null?null:p.date(f),[x,_]=$e.useState(b),[w,k]=$e.useState(L0(p,f,u)),T=$e.useRef(),M=$e.useRef(p.locale),S=$e.useRef(u);$e.useEffect(()=>{const O=f!==T.current,R=p.locale!==M.current,F=u!==S.current;if(T.current=f,M.current=p.locale,S.current=u,!O&&!R&&!F)return;const A=f===null?null:p.date(f),z=f===null||p.isValid(A);let B=x===null&&A===null;if(x!==null&&A!==null){const j=p.isEqual(x,A);if(j)B=!0;else{const N=Math.abs(p.getDiff(x,A));B=N===0?j:N<1e3}}if(!R&&!F&&(!z||B))return;const $=L0(p,f,u);_(A),k($)},[p,f,u,x]);const C=O=>{const R=O===""||O===n?"":O;k(R);const F=R===null?null:p.parse(R,u);i&&!p.isValid(F)||(_(F),l(F,R||void 0))},P=K$({value:w,onChange:C,format:c||g});return Gt({label:a,disabled:t,error:h,inputProps:Gt({},y?P:{value:w,onChange:O=>{C(O.currentTarget.value)}},{disabled:t,placeholder:m,readOnly:s,type:y?"tel":"text"},o)},d)},nB=["className","components","disableOpenPicker","getOpenDialogAriaText","InputAdornmentProps","InputProps","inputRef","openPicker","OpenPickerButtonProps","renderInput"],$d=$e.forwardRef(function(t,r){const{className:i,components:u={},disableOpenPicker:o,getOpenDialogAriaText:a,InputAdornmentProps:n,InputProps:l,inputRef:f,openPicker:s,OpenPickerButtonProps:c,renderInput:d}=t,h=Vn(t,nB),p=ei(),m=a??p.openDatePickerDialogue,y=br(),v=tB(h),g=(n==null?void 0:n.position)||"end",b=u.OpenPickerIcon||h4;return d(Gt({ref:r,inputRef:f,className:i},v,{InputProps:Gt({},l,{[`${g}Adornment`]:o?void 0:je.jsx(C9,Gt({position:g},n,{children:je.jsx(Fl,Gt({edge:g,disabled:h.disabled||h.readOnly,"aria-label":m(h.rawValue,y)},c,{onClick:s,children:je.jsx(b,{})}))}))})}))});function l_(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const rB=(e,t)=>{const[r,i]=$e.useState(l_);return Md(()=>{const o=()=>{i(l_())};return window.addEventListener("orientationchange",o),()=>{window.removeEventListener("orientationchange",o)}},[]),yo(e,["hours","minutes","seconds"])?!1:(t||r)==="landscape"},aB=({autoFocus:e,openView:t})=>{const[r,i]=$e.useState(e?t:null),u=$e.useCallback(o=>a=>{i(a?o:n=>o===n?null:n)},[]);return{focusedView:r,setFocusedView:u}};function iB(e){return Tr("MuiCalendarOrClockPicker",e)}_r("MuiCalendarOrClockPicker",["root","mobileKeyboardInputView"]);const oB=["autoFocus","className","parsedValue","DateInputProps","isMobileKeyboardViewOpen","onDateChange","onViewChange","openTo","orientation","showToolbar","toggleMobileKeyboardView","ToolbarComponent","toolbarFormat","toolbarPlaceholder","toolbarTitle","views","dateRangeIcon","timeIcon","hideTabs","classes"],lB=e=>{const{classes:t}=e;return yr({root:["root"],mobileKeyboardInputView:["mobileKeyboardInputView"]},iB,t)},sB=_n("div",{name:"MuiCalendarOrClockPicker",slot:"MobileKeyboardInputView",overridesResolver:(e,t)=>t.mobileKeyboardInputView})({padding:"16px 24px"}),uB=_n("div",{name:"MuiCalendarOrClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>Gt({display:"flex",flexDirection:"column"},e.isLandscape&&{flexDirection:"row"})),cB={fullWidth:!0},s_=e=>e==="year"||e==="month"||e==="day",u_=e=>e==="hours"||e==="minutes"||e==="seconds";function Di(e){var t,r;const i=fr({props:e,name:"MuiCalendarOrClockPicker"}),{autoFocus:u,parsedValue:o,DateInputProps:a,isMobileKeyboardViewOpen:n,onDateChange:l,onViewChange:f,openTo:s,orientation:c,showToolbar:d,toggleMobileKeyboardView:h,ToolbarComponent:p=()=>null,toolbarFormat:m,toolbarPlaceholder:y,toolbarTitle:v,views:g,dateRangeIcon:b,timeIcon:x,hideTabs:_}=i,w=Vn(i,oB),k=(t=w.components)==null?void 0:t.Tabs,T=rB(g,c),M=$e.useContext(Pi),S=lB(i),C=d??M!=="desktop",P=!_&&typeof window<"u"&&window.innerHeight>667,D=$e.useCallback(($,j)=>{l($,M,j)},[l,M]),O=$e.useCallback($=>{n&&h(),f&&f($)},[n,f,h]),{openView:R,setOpenView:F,handleChangeAndOpenNext:A}=Ey({view:void 0,views:g,openTo:s,onChange:D,onViewChange:O}),{focusedView:z,setFocusedView:B}=aB({autoFocus:u,openView:R});return je.jsxs(uB,{ownerState:{isLandscape:T},className:S.root,children:[C&&je.jsx(p,Gt({},w,{views:g,isLandscape:T,parsedValue:o,onChange:D,setOpenView:F,openView:R,toolbarTitle:v,toolbarFormat:m,toolbarPlaceholder:y,isMobileKeyboardViewOpen:n,toggleMobileKeyboardView:h})),P&&!!k&&je.jsx(k,Gt({dateRangeIcon:b,timeIcon:x,view:R,onChange:F},(r=w.componentsProps)==null?void 0:r.tabs)),je.jsx(Ry,{children:n?je.jsx(sB,{className:S.mobileKeyboardInputView,children:je.jsx($d,Gt({},a,{ignoreInvalidInputs:!0,disableOpenPicker:!0,TextFieldProps:cB}))}):je.jsxs($e.Fragment,{children:[s_(R)&&je.jsx(_4,Gt({autoFocus:u,date:o,onViewChange:F,onChange:A,view:R,views:g.filter(s_),focusedView:z,onFocusedViewChange:B},w)),u_(R)&&je.jsx(A4,Gt({},w,{autoFocus:u,date:o,view:R,views:g.filter(u_),onChange:A,onViewChange:F,showViewSwitcher:M==="desktop"}))]})})]})}const fB=({open:e,onOpen:t,onClose:r})=>{const i=$e.useRef(typeof e=="boolean").current,[u,o]=$e.useState(!1);$e.useEffect(()=>{if(i){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");o(e)}},[i,e]);const a=$e.useCallback(n=>{i||o(n),n&&t&&t(),!n&&r&&r()},[i,t,r]);return{isOpen:u,setIsOpen:a}},Ei=(e,t)=>{const{onAccept:r,onChange:i,value:u,closeOnSelect:o}=e,a=br(),{isOpen:n,setIsOpen:l}=fB(e),f=$e.useMemo(()=>t.parseInput(a,u),[t,a,u]),[s,c]=$e.useState(f),[d,h]=$e.useState(()=>({committed:f,draft:f,resetFallback:f})),p=$e.useCallback(w=>{h(k=>{switch(w.action){case"setAll":case"acceptAndClose":return{draft:w.value,committed:w.value,resetFallback:w.value};case"setCommitted":return Gt({},k,{draft:w.value,committed:w.value});case"setDraft":return Gt({},k,{draft:w.value});default:return k}}),(w.forceOnChangeCall||!w.skipOnChangeCall&&!t.areValuesEqual(a,d.committed,w.value))&&i(w.value),w.action==="acceptAndClose"&&(l(!1),r&&!t.areValuesEqual(a,d.resetFallback,w.value)&&r(w.value))},[r,i,l,d,a,t]);$e.useEffect(()=>{a.isValid(f)&&c(f)},[a,f]),$e.useEffect(()=>{n&&p({action:"setAll",value:f,skipOnChangeCall:!0})},[n]),t.areValuesEqual(a,d.committed,f)||p({action:"setCommitted",value:f,skipOnChangeCall:!0});const m=$e.useMemo(()=>({open:n,onClear:()=>{p({value:t.emptyValue,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(a,u,t.emptyValue)})},onAccept:()=>{p({value:d.draft,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(a,u,f)})},onDismiss:()=>{p({value:d.committed,action:"acceptAndClose"})},onCancel:()=>{p({value:d.resetFallback,action:"acceptAndClose"})},onSetToday:()=>{p({value:t.getTodayValue(a),action:"acceptAndClose"})}}),[p,n,a,d,t,u,f]),[y,v]=$e.useState(!1),g=$e.useMemo(()=>({parsedValue:d.draft,isMobileKeyboardViewOpen:y,toggleMobileKeyboardView:()=>v(!y),onDateChange:(w,k,T="partial")=>{switch(T){case"shallow":return p({action:"setDraft",value:w,skipOnChangeCall:!0});case"partial":return p({action:"setDraft",value:w});case"finish":return p(o??k==="desktop"?{value:w,action:"acceptAndClose"}:{value:w,action:"setCommitted"});default:throw new Error("MUI: Invalid selectionState passed to `onDateChange`")}}}),[p,y,d.draft,o]),b=$e.useCallback((w,k)=>{const T=t.valueReducer?t.valueReducer(a,s,w):w;i(T,k)},[i,t,s,a]),x=$e.useMemo(()=>({onChange:b,open:n,rawValue:u,openPicker:()=>l(!0)}),[b,n,u,l]),_={pickerProps:g,inputProps:x,wrapperProps:m};return $e.useDebugValue(_,()=>({MuiPickerState:{dateState:d,other:_}})),_},dB=["onChange","PopperProps","PaperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],I4=$e.forwardRef(function(t,r){const i=Ly(t,"MuiDesktopDatePicker"),u=Py(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ei(i,Iy),{PopperProps:l,PaperProps:f,ToolbarComponent:s=jy,TransitionComponent:c,components:d,componentsProps:h}=i,p=Vn(i,dB),m=Gt({},a,p,{components:d,componentsProps:h,ref:r,validationError:u});return je.jsx(By,Gt({},n,{DateInputProps:m,KeyboardDateInputComponent:$d,PopperProps:l,PaperProps:f,TransitionComponent:c,components:d,componentsProps:h,children:je.jsx(Di,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:s,DateInputProps:m,components:d,componentsProps:h},p))}))}),hB=_n(O9)({[`& .${B2.container}`]:{outline:0},[`& .${B2.paper}`]:{outline:0,minWidth:Dy}}),pB=_n(A9)({"&:first-of-type":{padding:0}}),gB=e=>{var t;const{children:r,DialogProps:i={},onAccept:u,onClear:o,onDismiss:a,onCancel:n,onSetToday:l,open:f,components:s,componentsProps:c}=e,d=(t=s==null?void 0:s.ActionBar)!=null?t:$y;return je.jsxs(hB,Gt({open:f,onClose:a},i,{children:[je.jsx(pB,{children:r}),je.jsx(d,Gt({onAccept:u,onClear:o,onCancel:n,onSetToday:l,actions:["cancel","accept"]},c==null?void 0:c.actionBar))]}))},mB=["children","DateInputProps","DialogProps","onAccept","onClear","onDismiss","onCancel","onSetToday","open","PureDateInputComponent","components","componentsProps"];function zy(e){const{children:t,DateInputProps:r,DialogProps:i,onAccept:u,onClear:o,onDismiss:a,onCancel:n,onSetToday:l,open:f,PureDateInputComponent:s,components:c,componentsProps:d}=e,h=Vn(e,mB);return je.jsxs(Pi.Provider,{value:"mobile",children:[je.jsx(s,Gt({components:c},h,r)),je.jsx(gB,{DialogProps:i,onAccept:u,onClear:o,onDismiss:a,onCancel:n,onSetToday:l,open:f,components:c,componentsProps:d,children:t})]})}const qy=$e.forwardRef(function(t,r){const{disabled:i,getOpenDialogAriaText:u,inputFormat:o,InputProps:a,inputRef:n,label:l,openPicker:f,rawValue:s,renderInput:c,TextFieldProps:d={},validationError:h,className:p}=t,m=ei(),y=u??m.openDatePickerDialogue,v=br(),g=$e.useMemo(()=>Gt({},a,{readOnly:!0}),[a]),b=L0(v,s,o),x=Cd(_=>{_.stopPropagation(),f()});return c(Gt({label:l,disabled:i,ref:r,inputRef:n,error:h,InputProps:g,className:p},!t.readOnly&&!t.disabled&&{onClick:x},{inputProps:Gt({disabled:i,readOnly:!0,"aria-readonly":!0,"aria-label":y(s,v),value:b},!t.readOnly&&{onClick:x},{onKeyDown:QS(f)})},d))}),vB=["ToolbarComponent","value","onChange","components","componentsProps"],F4=$e.forwardRef(function(t,r){const i=Ly(t,"MuiMobileDatePicker"),u=Py(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ei(i,Iy),{ToolbarComponent:l=jy,components:f,componentsProps:s}=i,c=Vn(i,vB),d=Gt({},a,c,{components:f,componentsProps:s,ref:r,validationError:u});return je.jsx(zy,Gt({},c,n,{DateInputProps:d,PureDateInputComponent:qy,components:f,componentsProps:s,children:je.jsx(Di,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:l,DateInputProps:d,components:f,componentsProps:s},c))}))}),yB=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],bB=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:u="@media (pointer: fine)",DialogProps:o,PopperProps:a,TransitionComponent:n}=i,l=Vn(i,yB);return dy(u,{defaultMatches:!0})?je.jsx(I4,Gt({ref:r,PopperProps:a,TransitionComponent:n},l)):je.jsx(F4,Gt({ref:r,DialogProps:o},l))});function Wy(e,t){var r,i,u,o,a;const n=fr({props:e,name:t}),l=br(),f=tc(),s=(r=n.ampm)!=null?r:l.is12HourCycleInCurrentLocale();if(n.orientation!=null&&n.orientation!=="portrait")throw new Error("We are not supporting custom orientation for DateTimePicker yet :(");return Gt({ampm:s,orientation:"portrait",openTo:"day",views:["year","day","hours","minutes"],ampmInClock:!0,acceptRegex:s?/[\dap]/gi:/\d/gi,disableMaskedInput:!1,inputFormat:s?l.formats.keyboardDateTime12h:l.formats.keyboardDateTime24h,disableIgnoringDatePartForTimeValidation:!!(n.minDateTime||n.maxDateTime),disablePast:!1,disableFuture:!1},n,{minDate:Ha(l,(i=n.minDateTime)!=null?i:n.minDate,f.minDate),maxDate:Ha(l,(u=n.maxDateTime)!=null?u:n.maxDate,f.maxDate),minTime:(o=n.minDateTime)!=null?o:n.minTime,maxTime:(a=n.maxDateTime)!=null?a:n.maxTime})}const Uy={emptyValue:null,getTodayValue:e=>e.date(),parseInput:Cy,areValuesEqual:(e,t,r)=>e.isEqual(t,r)},xB=e=>{switch(e){case"year":case"month":case"day":return"calendar";default:return"clock"}};function wB(e){return Tr("PrivatePickersToolbarText",e)}const c_=_r("PrivatePickersToolbarText",["root","selected"]),_B=["className","selected","value"],TB=e=>{const{classes:t,selected:r}=e;return yr({root:["root",r&&"selected"]},wB,t)},kB=_n(Cr,{name:"PrivatePickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${c_.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:e.palette.text.secondary,[`&.${c_.selected}`]:{color:e.palette.text.primary}})),Hy=$e.forwardRef(function(t,r){const{className:i,value:u}=t,o=Vn(t,_B),a=TB(t);return je.jsx(kB,Gt({ref:r,className:jr(i,a.root),component:"span"},o,{children:u}))}),MB=["align","className","selected","typographyClassName","value","variant"],SB=e=>{const{classes:t}=e;return yr({root:["root"]},E4,t)},CB=_n(di,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),ui=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiPickersToolbarButton"}),{align:u,className:o,selected:a,typographyClassName:n,value:l,variant:f}=i,s=Vn(i,MB),c=SB(i);return je.jsx(CB,Gt({variant:"text",ref:r,className:jr(o,c.root)},s,{children:je.jsx(Hy,{align:u,className:n,variant:f,value:l,selected:a})}))});function OB(e){return Tr("MuiDateTimePickerToolbar",e)}const AB=_r("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","separator"]),PB=["ampm","parsedValue","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],DB=e=>{const{classes:t}=e;return yr({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer"],separator:["separator"]},OB,t)},EB=_n(Ny,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",[`& .${Fy.penIconButton}`]:Gt({position:"absolute",top:8},e.direction==="rtl"?{left:8}:{right:8})})),RB=_n("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),LB=_n("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})({display:"flex"}),f_=_n(Hy,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({margin:"0 4px 0 2px",cursor:"default"});function Vy(e){const t=fr({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:r,parsedValue:i,isMobileKeyboardViewOpen:u,openView:o,setOpenView:a,toggleMobileKeyboardView:n,toolbarFormat:l,toolbarPlaceholder:f="––",toolbarTitle:s,views:c}=t,d=Vn(t,PB),h=t,p=br(),m=ei(),y=DB(h),v=s??m.dateTimePickerDefaultToolbarTitle,g=x=>r?p.format(x,"hours12h"):p.format(x,"hours24h"),b=$e.useMemo(()=>i?l?p.formatByString(i,l):p.format(i,"shortDate"):f,[i,l,f,p]);return je.jsxs(EB,Gt({toolbarTitle:v,isMobileKeyboardViewOpen:u,toggleMobileKeyboardView:n,className:y.root,viewType:xB(o)},d,{isLandscape:!1,ownerState:h,children:[je.jsxs(RB,{className:y.dateContainer,ownerState:h,children:[c.includes("year")&&je.jsx(ui,{tabIndex:-1,variant:"subtitle1",onClick:()=>a("year"),selected:o==="year",value:i?p.format(i,"year"):"–"}),c.includes("day")&&je.jsx(ui,{tabIndex:-1,variant:"h4",onClick:()=>a("day"),selected:o==="day",value:b})]}),je.jsxs(LB,{className:y.timeContainer,ownerState:h,children:[c.includes("hours")&&je.jsx(ui,{variant:"h3",onClick:()=>a("hours"),selected:o==="hours",value:i?g(i):"--"}),c.includes("minutes")&&je.jsxs($e.Fragment,{children:[je.jsx(f_,{variant:"h3",value:":",className:y.separator,ownerState:h}),je.jsx(ui,{variant:"h3",onClick:()=>a("minutes"),selected:o==="minutes",value:i?p.format(i,"minutes"):"--"})]}),c.includes("seconds")&&je.jsxs($e.Fragment,{children:[je.jsx(f_,{variant:"h3",value:":",className:y.separator,ownerState:h}),je.jsx(ui,{variant:"h3",onClick:()=>a("seconds"),selected:o==="seconds",value:i?p.format(i,"seconds"):"--"})]})]})]}))}const N4=({adapter:e,value:t,props:r})=>{const{minTime:i,maxTime:u,minutesStep:o,shouldDisableTime:a,disableIgnoringDatePartForTimeValidation:n}=r,l=e.utils.date(t),f=m4(n,e.utils);if(t===null)return null;switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(i&&f(i,l)):return"minTime";case!!(u&&f(l,u)):return"maxTime";case!!(a&&a(e.utils.getHours(l),"hours")):return"shouldDisableTime-hours";case!!(a&&a(e.utils.getMinutes(l),"minutes")):return"shouldDisableTime-minutes";case!!(a&&a(e.utils.getSeconds(l),"seconds")):return"shouldDisableTime-seconds";case!!(o&&e.utils.getMinutes(l)%o!==0):return"minutesStep";default:return null}},IB=(e,t)=>e===t,Yy=e=>Oy(e,N4,IB),FB=["minDate","maxDate","disableFuture","shouldDisableDate","disablePast"],NB=({props:e,value:t,adapter:r})=>{const{minDate:i,maxDate:u,disableFuture:o,shouldDisableDate:a,disablePast:n}=e,l=Vn(e,FB),f=Ay({adapter:r,value:t,props:{minDate:i,maxDate:u,disableFuture:o,shouldDisableDate:a,disablePast:n}});return f!==null?f:N4({adapter:r,value:t,props:l})},jB=(e,t)=>e===t;function Gy(e){return Oy(e,NB,jB)}function $B(e){return Tr("MuiDateTimePickerTabs",e)}const BB=_r("MuiDateTimePickerTabs",["root"]),zB=e=>["day","month","year"].includes(e)?"date":"time",qB=e=>e==="date"?"day":"hours",WB=e=>{const{classes:t}=e;return yr({root:["root"]},$B,t)},UB=_n(eS,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>Gt({boxShadow:`0 -1px 0 0 inset ${t.palette.divider}`},e.wrapperVariant==="desktop"&&{order:1,boxShadow:`0 1px 0 0 inset ${t.palette.divider}`,[`& .${P9.indicator}`]:{bottom:"auto",top:0}})),Bd=function(t){const r=fr({props:t,name:"MuiDateTimePickerTabs"}),{dateRangeIcon:i=je.jsx(ij,{}),onChange:u,timeIcon:o=je.jsx(lj,{}),view:a}=r,n=ei(),l=$e.useContext(Pi),f=Gt({},r,{wrapperVariant:l}),s=WB(f),c=(d,h)=>{u(qB(h))};return je.jsxs(UB,{ownerState:f,variant:"fullWidth",value:zB(a),onChange:c,className:s.root,children:[je.jsx(S0,{value:"date","aria-label":n.dateTableLabel,icon:je.jsx($e.Fragment,{children:i})}),je.jsx(S0,{value:"time","aria-label":n.timeTableLabel,icon:je.jsx($e.Fragment,{children:o})})]})},HB=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps","hideTabs"],j4=$e.forwardRef(function(t,r){const i=Wy(t,"MuiDesktopDateTimePicker"),u=Gy(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ei(i,Uy),{PaperProps:l,PopperProps:f,ToolbarComponent:s=Vy,TransitionComponent:c,components:d,componentsProps:h,hideTabs:p=!0}=i,m=Vn(i,HB),y=$e.useMemo(()=>Gt({Tabs:Bd},d),[d]),v=Gt({},a,m,{components:y,componentsProps:h,ref:r,validationError:u});return je.jsx(By,Gt({},n,{DateInputProps:v,KeyboardDateInputComponent:$d,PopperProps:f,PaperProps:l,TransitionComponent:c,components:y,componentsProps:h,children:je.jsx(Di,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:s,DateInputProps:v,components:y,componentsProps:h,hideTabs:p},m))}))}),VB=["ToolbarComponent","value","onChange","components","componentsProps","hideTabs"],$4=$e.forwardRef(function(t,r){const i=Wy(t,"MuiMobileDateTimePicker"),u=Gy(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ei(i,Uy),{ToolbarComponent:l=Vy,components:f,componentsProps:s,hideTabs:c=!1}=i,d=Vn(i,VB),h=$e.useMemo(()=>Gt({Tabs:Bd},f),[f]),p=Gt({},a,d,{components:h,componentsProps:s,ref:r,validationError:u});return je.jsx(zy,Gt({},d,n,{DateInputProps:p,PureDateInputComponent:qy,components:h,componentsProps:s,children:je.jsx(Di,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:l,DateInputProps:p,components:h,componentsProps:s,hideTabs:c},d))}))}),YB=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],GB=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:u="@media (pointer: fine)",DialogProps:o,PopperProps:a,TransitionComponent:n}=i,l=Vn(i,YB);return dy(u,{defaultMatches:!0})?je.jsx(j4,Gt({ref:r,PopperProps:a,TransitionComponent:n},l)):je.jsx($4,Gt({ref:r,DialogProps:o},l))});function Xy(e,t){var r;const i=fr({props:e,name:t}),u=br(),o=(r=i.ampm)!=null?r:u.is12HourCycleInCurrentLocale(),n=ei().openTimePickerDialogue;return Gt({ampm:o,openTo:"hours",views:["hours","minutes"],acceptRegex:o?/[\dapAP]/gi:/\d/gi,disableMaskedInput:!1,getOpenDialogAriaText:n,inputFormat:o?u.formats.fullTime12h:u.formats.fullTime24h},i,{components:Gt({OpenPickerIcon:p4},i.components)})}const Zy={emptyValue:null,parseInput:Cy,getTodayValue:e=>e.date(),areValuesEqual:(e,t,r)=>e.isEqual(t,r),valueReducer:(e,t,r)=>!t||!e.isValid(r)?r:e.mergeDateAndTime(t,r)};function XB(e){return Tr("MuiTimePickerToolbar",e)}const gl=_r("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),ZB=["ampm","ampmInClock","parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarTitle","views","disabled","readOnly"],KB=e=>{const{theme:t,isLandscape:r,classes:i}=e,u={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",r&&"hourMinuteLabelLandscape",t.direction==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return yr(u,XB,i)},JB=_n(Ny,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({[`& .${Fy.penIconButtonLandscape}`]:{marginTop:"auto"}}),QB=_n(Hy,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),ez=_n("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${gl.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${gl.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>Gt({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"})),tz=_n("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${gl.ampmLabel}`]:t.ampmLabel},{[`&.${gl.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>Gt({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${gl.ampmLabel}`]:{fontSize:17}}));function Ky(e){const t=fr({props:e,name:"MuiTimePickerToolbar"}),{ampm:r,ampmInClock:i,parsedValue:u,isLandscape:o,isMobileKeyboardViewOpen:a,onChange:n,openView:l,setOpenView:f,toggleMobileKeyboardView:s,toolbarTitle:c,views:d,disabled:h,readOnly:p}=t,m=Vn(t,ZB),y=br(),v=ei(),g=c??v.timePickerDefaultToolbarTitle,b=Od(),x=!!(r&&!i),{meridiemMode:_,handleMeridiemChange:w}=v4(u,r,n),k=C=>r?y.format(C,"hours12h"):y.format(C,"hours24h"),T=t,M=KB(Gt({},T,{theme:b})),S=je.jsx(QB,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:M.separator});return je.jsxs(JB,Gt({viewType:"clock",landscapeDirection:"row",toolbarTitle:g,isLandscape:o,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:s,ownerState:T,className:M.root},m,{children:[je.jsxs(ez,{className:M.hourMinuteLabel,ownerState:T,children:[yo(d,"hours")&&je.jsx(ui,{tabIndex:-1,variant:"h3",onClick:()=>f("hours"),selected:l==="hours",value:u?k(u):"--"}),yo(d,["hours","minutes"])&&S,yo(d,"minutes")&&je.jsx(ui,{tabIndex:-1,variant:"h3",onClick:()=>f("minutes"),selected:l==="minutes",value:u?y.format(u,"minutes"):"--"}),yo(d,["minutes","seconds"])&&S,yo(d,"seconds")&&je.jsx(ui,{variant:"h3",onClick:()=>f("seconds"),selected:l==="seconds",value:u?y.format(u,"seconds"):"--"})]}),x&&je.jsxs(tz,{className:M.ampmSelection,ownerState:T,children:[je.jsx(ui,{disableRipple:!0,variant:"subtitle2",selected:_==="am",typographyClassName:M.ampmLabel,value:y.getMeridiemText("am"),onClick:p?void 0:()=>w("am"),disabled:h}),je.jsx(ui,{disableRipple:!0,variant:"subtitle2",selected:_==="pm",typographyClassName:M.ampmLabel,value:y.getMeridiemText("pm"),onClick:p?void 0:()=>w("pm"),disabled:h})]})]}))}const nz=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],B4=$e.forwardRef(function(t,r){const i=Xy(t,"MuiDesktopTimePicker"),u=Yy(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ei(i,Zy),{PaperProps:l,PopperProps:f,ToolbarComponent:s=Ky,TransitionComponent:c,components:d,componentsProps:h}=i,p=Vn(i,nz),m=Gt({},a,p,{components:d,componentsProps:h,ref:r,validationError:u});return je.jsx(By,Gt({},n,{DateInputProps:m,KeyboardDateInputComponent:$d,PopperProps:f,PaperProps:l,TransitionComponent:c,components:d,componentsProps:h,children:je.jsx(Di,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:s,DateInputProps:m,components:d,componentsProps:h},p))}))}),rz=["ToolbarComponent","value","onChange","components","componentsProps"],z4=$e.forwardRef(function(t,r){const i=Xy(t,"MuiMobileTimePicker"),u=Yy(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ei(i,Zy),{ToolbarComponent:l=Ky,components:f,componentsProps:s}=i,c=Vn(i,rz),d=Gt({},a,c,{components:f,componentsProps:s,ref:r,validationError:u});return je.jsx(zy,Gt({},c,n,{DateInputProps:d,PureDateInputComponent:qy,components:f,componentsProps:s,children:je.jsx(Di,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:l,DateInputProps:d,components:f,componentsProps:s},c))}))});function az(e){return Tr("MuiPickerStaticWrapper",e)}_r("MuiPickerStaticWrapper",["root","content"]);const iz=["displayStaticWrapperAs","onAccept","onClear","onCancel","onDismiss","onSetToday","open","children","components","componentsProps","className"],oz=e=>{const{classes:t}=e;return yr({root:["root"],content:["content"]},az,t)},lz=_n("div",{name:"MuiPickerStaticWrapper",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),sz=_n("div",{name:"MuiPickerStaticWrapper",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e})=>({overflow:"hidden",minWidth:Dy,display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper}));function zd(e){var t;const r=fr({props:e,name:"MuiPickerStaticWrapper"}),{displayStaticWrapperAs:i,onAccept:u,onClear:o,onCancel:a,onSetToday:n,children:l,components:f,componentsProps:s,className:c}=r,d=Vn(r,iz),h=oz(r),p=(t=f==null?void 0:f.ActionBar)!=null?t:$y,m=(f==null?void 0:f.PaperContent)||$e.Fragment;return je.jsx(Pi.Provider,{value:i,children:je.jsxs(lz,Gt({className:jr(h.root,c)},d,{children:[je.jsx(sz,{className:h.content,children:je.jsx(m,Gt({},s==null?void 0:s.paperContent,{children:l}))}),je.jsx(p,Gt({onAccept:u,onClear:o,onCancel:a,onSetToday:n,actions:i==="desktop"?[]:["cancel","accept"]},s==null?void 0:s.actionBar))]}))})}const uz=["ToolbarComponent","value","onChange","displayStaticWrapperAs","components","componentsProps","className"],cz=$e.forwardRef(function(t,r){const i=Ly(t,"MuiStaticDatePicker"),{ToolbarComponent:u=jy,displayStaticWrapperAs:o="mobile",components:a,componentsProps:n,className:l}=i,f=Vn(i,uz),{pickerProps:s,inputProps:c,wrapperProps:d}=Ei(i,Iy),h=Py(i)!==null,p=Gt({},c,f,{ref:r,validationError:h,components:a});return je.jsx(zd,Gt({displayStaticWrapperAs:o,components:a,componentsProps:n,className:l},d,{children:je.jsx(Di,Gt({},s,{toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:u,DateInputProps:p,components:a,componentsProps:n},f))}))}),fz=["displayStaticWrapperAs","onChange","ToolbarComponent","value","components","componentsProps","hideTabs","className"],dz=$e.forwardRef(function(t,r){const i=Wy(t,"MuiStaticDateTimePicker"),{displayStaticWrapperAs:u="mobile",ToolbarComponent:o=Vy,components:a,componentsProps:n,hideTabs:l=u==="desktop",className:f}=i,s=Vn(i,fz),{pickerProps:c,inputProps:d,wrapperProps:h}=Ei(i,Uy),p=Gy(i)!==null,m=$e.useMemo(()=>Gt({Tabs:Bd},a),[a]),y=Gt({},d,s,{ref:r,validationError:p,components:m,componentsProps:n});return je.jsx(zd,Gt({displayStaticWrapperAs:u,components:m,componentsProps:n,className:f},h,{children:je.jsx(Di,Gt({},c,{toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:o,DateInputProps:y,components:m,componentsProps:n,hideTabs:l},s))}))}),hz=["displayStaticWrapperAs","onChange","ToolbarComponent","value","components","componentsProps","className"],pz=$e.forwardRef(function(t,r){const i=Xy(t,"MuiStaticTimePicker"),{displayStaticWrapperAs:u="mobile",ToolbarComponent:o=Ky,components:a,componentsProps:n,className:l}=i,f=Vn(i,hz),s=Yy(i)!==null,{pickerProps:c,inputProps:d,wrapperProps:h}=Ei(i,Zy),p=Gt({},d,f,{ref:r,validationError:s,components:a,componentsProps:n});return je.jsx(zd,Gt({displayStaticWrapperAs:u,components:a,componentsProps:n,className:l},h,{children:je.jsx(Di,Gt({},c,{toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:o,DateInputProps:p,components:a,componentsProps:n},f))}))}),gz=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],mz=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:u="@media (pointer: fine)",DialogProps:o,PopperProps:a,TransitionComponent:n}=i,l=Vn(i,gz);return dy(u,{defaultMatches:!0})?je.jsx(B4,Gt({ref:r,PopperProps:a,TransitionComponent:n},l)):je.jsx(z4,Gt({ref:r,DialogProps:o},l))});/** @license MUI X v5.0.20 + */function x(w){return w===null||typeof w!="object"}function _(w){return w.map(function(T){return typeof T=="symbol"?T.toString():T})}return jc.exports}var wg={},Q2;function AS(){return Q2||(Q2=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={error:"Data could not be retrieved",grouping:{groupedBy:"Grouped By:",placeholder:"Drag headers here to group by"},pagination:{labelDisplayedRows:"{from}-{to} of {count}",labelRowsPerPage:"Rows per page:",labelRows:"rows",firstAriaLabel:"First Page",firstTooltip:"First Page",previousAriaLabel:"Previous Page",previousTooltip:"Previous Page",nextAriaLabel:"Next Page",nextTooltip:"Next Page",lastAriaLabel:"Last Page",lastTooltip:"Last Page"},toolbar:{addRemoveColumns:"Add or remove columns",nRowsSelected:"{0} row(s) selected",showColumnsTitle:"Show Columns",showColumnsAriaLabel:"Show Columns",exportTitle:"Export",exportAriaLabel:"Export",searchTooltip:"Search",searchPlaceholder:"Search",searchAriaLabel:"Search",clearSearchAriaLabel:"Clear Search"},header:{actions:"Actions"},body:{emptyDataSourceMessage:"No records to display",editRow:{saveTooltip:"Save",cancelTooltip:"Cancel",deleteText:"Are you sure you want to delete this row?"},filterRow:{},dateTimePickerLocalization:"Filter",addTooltip:"Add",deleteTooltip:"Delete",editTooltip:"Edit",bulkEditTooltip:"Edit All",bulkEditApprove:"Save all changes",bulkEditCancel:"Discard all changes"}};e.default=t}(wg)),wg}var _g={},ew;function PS(){return ew||(ew=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={idSynonym:"id",actionsColumnIndex:0,addRowPosition:"last",columnsButton:!1,detailPanelType:"multiple",debounceInterval:200,doubleHorizontalScroll:!1,emptyRowsWhenPaging:!0,exportAllData:!1,exportMenu:[],filtering:!1,groupTitle:!1,header:!0,headerSelectionProps:{},hideFilterIcons:!1,loadingType:"overlay",padding:"normal",searchAutoFocus:!1,paging:!0,pageSize:5,pageSizeOptions:[5,10,20],paginationType:"normal",paginationPosition:"bottom",showEmptyDataSourceMessage:!0,showFirstLastPageButtons:!0,showSelectAllCheckbox:!0,showSelectGroupCheckbox:!0,search:!0,showTitle:!0,showTextRowsSelected:!0,showDetailPanelIcon:!0,tableLayout:"auto",tableWidth:"full",toolbarButtonAlignment:"right",searchFieldAlignment:"right",searchFieldStyle:{},searchFieldVariant:"standard",selection:!1,selectionProps:{},maxColumnSort:1,clientSorting:!0,groupChipProps:{},defaultOrderByCollection:[],showColumnSortOrder:!1,keepSortDirectionOnColumnSwitch:!0,toolbar:!0,defaultExpanded:!1,detailPanelColumnAlignment:"left",detailPanelOffset:{left:0,right:0},thirdSortClick:!0,overflowY:"auto",numberOfPagesAround:1,actionsHeaderIndex:0,draggable:!0};e.default=t}(_g)),_g}var Tg={},ys={},kg={exports:{}},tw;function ga(){return tw||(tw=1,function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(kg)),kg.exports}var Mg={};const UE=qn(a9);var nw;function ma(){return nw||(nw=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=UE}(Mg)),Mg}var rw;function HE(){if(rw)return ys;rw=1;var e=ga();Object.defineProperty(ys,"__esModule",{value:!0}),ys.default=void 0;var t=e(ma()),r=je;return ys.default=(0,t.default)((0,r.jsx)("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"}),"ViewColumn"),ys}var bs={},aw;function VE(){if(aw)return bs;aw=1;var e=ga();Object.defineProperty(bs,"__esModule",{value:!0}),bs.default=void 0;var t=e(ma()),r=je;return bs.default=(0,t.default)((0,r.jsx)("path",{d:"M19 13H5v-2h14z"}),"Remove"),bs}var xs={},iw;function YE(){if(iw)return xs;iw=1;var e=ga();Object.defineProperty(xs,"__esModule",{value:!0}),xs.default=void 0;var t=e(ma()),r=je;return xs.default=(0,t.default)((0,r.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),xs}var ws={},ow;function GE(){if(ow)return ws;ow=1;var e=ga();Object.defineProperty(ws,"__esModule",{value:!0}),ws.default=void 0;var t=e(ma()),r=je;return ws.default=(0,t.default)((0,r.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),ws}var _s={},lw;function XE(){if(lw)return _s;lw=1;var e=ga();Object.defineProperty(_s,"__esModule",{value:!0}),_s.default=void 0;var t=e(ma()),r=je;return _s.default=(0,t.default)((0,r.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"Replay"),_s}const Ty=qn(i9);var Ts={},sw;function ZE(){if(sw)return Ts;sw=1;var e=ga();Object.defineProperty(Ts,"__esModule",{value:!0}),Ts.default=void 0;var t=e(ma()),r=je;return Ts.default=(0,t.default)((0,r.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),Ts}var ks={},uw;function KE(){if(uw)return ks;uw=1;var e=ga();Object.defineProperty(ks,"__esModule",{value:!0}),ks.default=void 0;var t=e(ma()),r=je;return ks.default=(0,t.default)((0,r.jsx)("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),ks}var Ms={},cw;function JE(){if(cw)return Ms;cw=1;var e=ga();Object.defineProperty(Ms,"__esModule",{value:!0}),Ms.default=void 0;var t=e(ma()),r=je;return Ms.default=(0,t.default)((0,r.jsx)("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Ms}var Ss={},fw;function QE(){if(fw)return Ss;fw=1;var e=ga();Object.defineProperty(Ss,"__esModule",{value:!0}),Ss.default=void 0;var t=e(ma()),r=je;return Ss.default=(0,t.default)((0,r.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList"),Ss}var Cs={},dw;function eR(){if(dw)return Cs;dw=1;var e=ga();Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.default=void 0;var t=e(ma()),r=je;return Cs.default=(0,t.default)((0,r.jsx)("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),Cs}var Os={},hw;function tR(){if(hw)return Os;hw=1;var e=ga();Object.defineProperty(Os,"__esModule",{value:!0}),Os.default=void 0;var t=e(ma()),r=je;return Os.default=(0,t.default)((0,r.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),Os}var As={},pw;function nR(){if(pw)return As;pw=1;var e=ga();Object.defineProperty(As,"__esModule",{value:!0}),As.default=void 0;var t=e(ma()),r=je;return As.default=(0,t.default)((0,r.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),As}var Ps={},gw;function rR(){if(gw)return Ps;gw=1;var e=ga();Object.defineProperty(Ps,"__esModule",{value:!0}),Ps.default=void 0;var t=e(ma()),r=je;return Ps.default=(0,t.default)((0,r.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline"),Ps}var Ds={},mw;function aR(){if(mw)return Ds;mw=1;var e=ga();Object.defineProperty(Ds,"__esModule",{value:!0}),Ds.default=void 0;var t=e(ma()),r=je;return Ds.default=(0,t.default)((0,r.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear"),Ds}var Es={},vw;function iR(){if(vw)return Es;vw=1;var e=ga();Object.defineProperty(Es,"__esModule",{value:!0}),Es.default=void 0;var t=e(ma()),r=je;return Es.default=(0,t.default)((0,r.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Es}var Rs={},yw;function oR(){if(yw)return Rs;yw=1;var e=ga();Object.defineProperty(Rs,"__esModule",{value:!0}),Rs.default=void 0;var t=e(ma()),r=je;return Rs.default=(0,t.default)((0,r.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4z"}),"AddBox"),Rs}var bw;function DS(){return bw||(bw=1,function(e){var t=Rn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(HE()),c=t(VE()),o=t(YE()),a=t(GE()),n=t(XE()),l=t(Ty),f=t(ZE()),s=t(KE()),u=t(JE()),d=t(QE()),h=t(eR()),p=t(tR()),g=t(nR()),y=t(rR()),v=t(aR()),m=t(iR()),b=t(oR()),x=t(hr()),_=k($e);function w(M){if(typeof WeakMap!="function")return null;var S=new WeakMap,C=new WeakMap;return(w=function(D){return D?C:S})(M)}function k(M,S){if(M&&M.__esModule)return M;if(M===null||r(M)!=="object"&&typeof M!="function")return{default:M};var C=w(S);if(C&&C.has(M))return C.get(M);var P={},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in M)if(O!=="default"&&Object.prototype.hasOwnProperty.call(M,O)){var R=D?Object.getOwnPropertyDescriptor(M,O):null;R&&(R.get||R.set)?Object.defineProperty(P,O,R):P[O]=M[O]}return P.default=M,C&&C.set(M,P),P}var T={Add:(0,_.forwardRef)(function(M,S){return _.default.createElement(b.default,(0,x.default)({},M,{ref:S,"data-testid":"add_box"}))}),Check:(0,_.forwardRef)(function(M,S){return _.default.createElement(m.default,(0,x.default)({},M,{ref:S,"data-testid":"check"}))}),Clear:(0,_.forwardRef)(function(M,S){return _.default.createElement(v.default,(0,x.default)({},M,{ref:S,"data-testid":"clear"}))}),Delete:(0,_.forwardRef)(function(M,S){return _.default.createElement(y.default,(0,x.default)({},M,{ref:S,"data-testid":"delete_outline"}))}),DetailPanel:(0,_.forwardRef)(function(M,S){return _.default.createElement(g.default,(0,x.default)({},M,{ref:S,"data-testid":"chevron_right"}))}),Edit:(0,_.forwardRef)(function(M,S){return _.default.createElement(p.default,(0,x.default)({},M,{ref:S,"data-testid":"edit"}))}),Export:(0,_.forwardRef)(function(M,S){return _.default.createElement(h.default,(0,x.default)({},M,{ref:S,"data-testid":"save_alt"}))}),Filter:(0,_.forwardRef)(function(M,S){return _.default.createElement(d.default,(0,x.default)({},M,{ref:S,"data-testid":"filter_list"}))}),FirstPage:(0,_.forwardRef)(function(M,S){return _.default.createElement(u.default,(0,x.default)({},M,{ref:S,"data-testid":"first_page"}))}),LastPage:(0,_.forwardRef)(function(M,S){return _.default.createElement(s.default,(0,x.default)({},M,{ref:S,"data-testid":"last_page"}))}),NextPage:(0,_.forwardRef)(function(M,S){return _.default.createElement(g.default,(0,x.default)({},M,{ref:S,"data-testid":"chevron_right"}))}),PreviousPage:(0,_.forwardRef)(function(M,S){return _.default.createElement(f.default,(0,x.default)({},M,{ref:S,"data-testid":"chevron_left"}))}),ResetSearch:(0,_.forwardRef)(function(M,S){return _.default.createElement(v.default,(0,x.default)({},M,{ref:S,"data-testid":"clear"}))}),Resize:(0,_.forwardRef)(function(M,S){return _.default.createElement(l.default,(0,x.default)({},M,{ref:S,"data-testid":"drag_handle"}),"|")}),Retry:(0,_.forwardRef)(function(M,S){return _.default.createElement(n.default,(0,x.default)({},M,{ref:S,"data-testid":"replay"}))}),Search:(0,_.forwardRef)(function(M,S){return _.default.createElement(a.default,(0,x.default)({},M,{ref:S,"data-testid":"search"}))}),SortArrow:(0,_.forwardRef)(function(M,S){return _.default.createElement(o.default,(0,x.default)({},M,{ref:S,"data-testid":"arrow_downward"}))}),ThirdStateCheck:(0,_.forwardRef)(function(M,S){return _.default.createElement(c.default,(0,x.default)({},M,{ref:S,"data-testid":"remove"}))}),ViewColumn:(0,_.forwardRef)(function(M,S){return _.default.createElement(i.default,(0,x.default)({},M,{ref:S,"data-testid":"view_column"}))})};e.default=T}(Tg)),Tg}var Sg,xw;function lR(){if(xw)return Sg;xw=1;var e=function(m){return t(m)&&!r(m)};function t(v){return!!v&&typeof v=="object"}function r(v){var m=Object.prototype.toString.call(v);return m==="[object RegExp]"||m==="[object Date]"||o(v)}var i=typeof Symbol=="function"&&Symbol.for,c=i?Symbol.for("react.element"):60103;function o(v){return v.$$typeof===c}function a(v){return Array.isArray(v)?[]:{}}function n(v,m){return m.clone!==!1&&m.isMergeableObject(v)?g(a(v),v,m):v}function l(v,m,b){return v.concat(m).map(function(x){return n(x,b)})}function f(v,m){if(!m.customMerge)return g;var b=m.customMerge(v);return typeof b=="function"?b:g}function s(v){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(v).filter(function(m){return Object.propertyIsEnumerable.call(v,m)}):[]}function u(v){return Object.keys(v).concat(s(v))}function d(v,m){try{return m in v}catch{return!1}}function h(v,m){return d(v,m)&&!(Object.hasOwnProperty.call(v,m)&&Object.propertyIsEnumerable.call(v,m))}function p(v,m,b){var x={};return b.isMergeableObject(v)&&u(v).forEach(function(_){x[_]=n(v[_],b)}),u(m).forEach(function(_){h(v,_)||(d(v,_)&&b.isMergeableObject(m[_])?x[_]=f(_,b)(v[_],m[_],b):x[_]=n(m[_],b))}),x}function g(v,m,b){b=b||{},b.arrayMerge=b.arrayMerge||l,b.isMergeableObject=b.isMergeableObject||e,b.cloneUnlessOtherwiseSpecified=n;var x=Array.isArray(m),_=Array.isArray(v),w=x===_;return w?x?b.arrayMerge(v,m,b):p(v,m,b):n(m,b)}g.all=function(m,b){if(!Array.isArray(m))throw new Error("first argument should be an array");return m.reduce(function(x,_){return g(x,_,b)},{})};var y=g;return Sg=y,Sg}var ww;function tc(){if(ww)return Ja;ww=1;var e=Rn;Object.defineProperty(Ja,"__esModule",{value:!0}),Ja.useLocalizationStore=Ja.useIconStore=void 0,Ja.useMergeProps=v,Ja.useOptionStore=void 0,Ja.withContext=m;var t=e(Kr()),r=qE,i=e($e),c=e(OS()),o=e(AS()),a=e(PS()),n=e(DS()),l=e(gC());function f(b,x){var _=Object.keys(b);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(b);x&&(w=w.filter(function(k){return Object.getOwnPropertyDescriptor(b,k).enumerable})),_.push.apply(_,w)}return _}function s(b){for(var x=1;x=0)&&(c[a]=r[a]);return c}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ag)),Ag.exports}var Mw;function Bl(){return Mw||(Mw=1,function(e){var t=cR();function r(i,c){if(i==null)return{};var o=t(i,c),a,n;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(i,a)&&(o[a]=i[a])}return o}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(Og)),Og.exports}var Sw;function fR(){return Sw||(Sw=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(uR),i=t(hr()),c=t(Bl()),o=t($e),a=["forwardedRef"];function n(f){var s=f.forwardedRef,u=(0,c.default)(f,a);return o.default.createElement(r.default,(0,i.default)({elevation:2},u,{ref:s}))}var l=o.default.forwardRef(function(s,u){return o.default.createElement(n,(0,i.default)({},s,{forwardedRef:u}))});e.default=l}(Cg)),Cg}var Pg={};const zo=qn(l9);var Dg={exports:{}},Cw;function dR(){return Cw||(Cw=1,function(e,t){(function(i,c){e.exports=c($e)})(Sa,function(r){return function(i){var c={};function o(a){if(c[a])return c[a].exports;var n=c[a]={exports:{},id:a,loaded:!1};return i[a].call(n.exports,n,n.exports,o),n.loaded=!0,n.exports}return o.m=i,o.c=c,o.p="",o(0)}([function(i,c,o){Object.defineProperty(c,"__esModule",{value:!0});var a=function(){function p(g,y){for(var v=0;vr.length)&&(i=r.length);for(var c=0,o=new Array(i);c0&&R++,g.hasDetailPanel&&R++,g.isTreeData&&R++,l.default.createElement(a.default,{style:{height:O*(v.paging&&v.emptyRowsWhenPaging?g.pageSize:1)},key:"empty-0"},l.default.createElement(n.default,{style:{paddingTop:0,paddingBottom:0,textAlign:"center"},colSpan:g.columns.reduce(function(F,A){return A.hidden?F:F+1},R),key:"empty-"},y.emptyDataSourceMessage))}else if(v.emptyRowsWhenPaging)return l.default.createElement(l.default.Fragment,null,(0,o.default)(Array(P)).map(function(F,A){return l.default.createElement(a.default,{style:{height:O},key:"empty-"+A})}),P>0&&l.default.createElement(a.default,{style:{height:1},key:"empty-last1"}))}function _(P){return P.map(function(D,O){if(D.tableData.editing||g.bulkEditOpen)return l.default.createElement(g.components.EditRow,{columns:b,components:g.components,data:D,errorState:g.errorState,icons:m,localization:y.editRow,key:"row-"+D.tableData.uuid,mode:g.bulkEditOpen?"bulk":D.tableData.editing,isTreeData:g.isTreeData,detailPanel:g.detailPanel,onEditingCanceled:g.onEditingCanceled,onEditingApproved:g.onEditingApproved,bulkEditChangedRows:g.bulkEditChangedRows,getFieldValue:g.getFieldValue,onBulkEditRowChanged:g.onBulkEditRowChanged,scrollWidth:g.scrollWidth});var R=g.isTreeData?[D.tableData.uuid]:[O+g.pageSize*g.currentPage];return l.default.createElement(g.components.Row,{components:g.components,data:D,index:O,errorState:g.errorState,key:"row-"+D.tableData.uuid,level:0,onRowSelected:g.onRowSelected,actions:g.actions,columns:g.columns,getFieldValue:g.getFieldValue,detailPanel:g.detailPanel,path:R,onToggleDetailPanel:g.onToggleDetailPanel,onRowClick:g.onRowClick,onRowDoubleClick:g.onRowDoubleClick,isTreeData:g.isTreeData,onTreeExpandChanged:g.onTreeExpandChanged,onEditingCanceled:g.onEditingCanceled,onEditingApproved:g.onEditingApproved,hasAnyEditingRow:g.hasAnyEditingRow,treeDataMaxLevel:g.treeDataMaxLevel,cellEditable:g.cellEditable,onCellEditStarted:g.onCellEditStarted,onCellEditFinished:g.onCellEditFinished,onRowEditStarted:g.onRowEditStarted,scrollWidth:g.scrollWidth})})}function w(P,D){return D.map(function(O,R){return l.default.createElement(g.components.GroupRow,{actions:g.actions,cellEditable:g.cellEditable,columns:g.columns,components:g.components,detailPanel:g.detailPanel,getFieldValue:g.getFieldValue,groupData:O,groups:P,hasAnyEditingRow:g.hasAnyEditingRow,icons:m,isTreeData:g.isTreeData,key:O.value==null?""+R:O.value,level:0,localization:y.editRow,onBulkEditRowChanged:g.onBulkEditRowChanged,onCellEditFinished:g.onCellEditFinished,onCellEditStarted:g.onCellEditStarted,onEditingApproved:g.onEditingApproved,onEditingCanceled:g.onEditingCanceled,onGroupExpandChanged:g.onGroupExpandChanged,onRowClick:g.onRowClick,onGroupSelected:g.onGroupSelected,onRowSelected:g.onRowSelected,onToggleDetailPanel:g.onToggleDetailPanel,onTreeExpandChanged:g.onTreeExpandChanged,path:[R+g.pageSize*g.currentPage],scrollWidth:g.scrollWidth,treeDataMaxLevel:g.treeDataMaxLevel})})}function k(){return g.showAddRow&&l.default.createElement(g.components.EditRow,{columns:b,components:g.components,data:g.initialFormData,detailPanel:g.detailPanel,errorState:g.errorState,getFieldValue:g.getFieldValue,icons:m,isTreeData:g.isTreeData,key:"key-add-row",localization:y.editRow,mode:"add",onEditingApproved:g.onEditingApproved,onEditingCanceled:g.onEditingCanceled,scrollWidth:g.scrollWidth})}var T=g.renderData,M=g.columns.filter(function(P){return P.tableData.groupOrder>-1}).sort(function(P,D){return P.tableData.groupOrder-D.tableData.groupOrder}),S=0;v.paging&&g.pageSize>T.length&&(S=g.pageSize-T.length);var C=l.default.useMemo(function(){return g.renderSummaryRow?function(P){return g.renderSummaryRow(d(d({},P),{},{data:g.data,currentData:g.currentData}))}:void 0},[g.data]);return l.default.createElement(i.default,{ref:g.forwardedRef},v.filtering&&l.default.createElement(g.components.FilterRow,{columns:b,icons:m,hasActions:g.actions.some(function(P){return P.position==="row"||typeof P=="function"}),onFilterChanged:g.onFilterChanged,localization:y.filterRow,hasDetailPanel:!!g.detailPanel,isTreeData:g.isTreeData,scrollWidth:g.scrollWidth,hideFilterIcons:g.options.hideFilterIcons}),v.addRowPosition==="first"&&k(),M.length>0?w(M,T):_(T),v.addRowPosition==="last"&&k(),l.default.createElement(g.components.SummaryRow,{columns:b,renderSummaryRow:C,rowProps:g}),x(S,T))}h.defaultProps={actions:[],currentPage:0,data:[],pageSize:5,renderData:[],selection:!1},h.propTypes={actions:f.default.array,bulkEditChangedRows:f.default.object,bulkEditOpen:f.default.bool,cellEditable:f.default.object,columns:f.default.array.isRequired,components:f.default.object.isRequired,currentPage:f.default.number,data:f.default.array,detailPanel:f.default.oneOfType([f.default.func,f.default.arrayOf(f.default.oneOfType([f.default.object,f.default.func]))]),errorState:f.default.oneOfType([f.default.object,f.default.bool]),forwardedRef:f.default.oneOfType([f.default.func,f.default.object]),getFieldValue:f.default.func.isRequired,hasAnyEditingRow:f.default.bool,hasDetailPanel:f.default.bool.isRequired,initialFormData:f.default.object,isTreeData:f.default.bool.isRequired,onBulkEditRowChanged:f.default.func,onCellEditFinished:f.default.func,onCellEditStarted:f.default.func,onEditingApproved:f.default.func,onEditingCanceled:f.default.func,onFilterChanged:f.default.func,onGroupExpandChanged:f.default.func,onRowClick:f.default.func,onRowDoubleClick:f.default.func,onGroupSelected:f.default.func,onRowSelected:f.default.func,onToggleDetailPanel:f.default.func.isRequired,onTreeExpandChanged:f.default.func.isRequired,pageSize:f.default.number,renderData:f.default.array,renderSummaryRow:f.default.func,scrollWidth:f.default.number.isRequired,selection:f.default.bool.isRequired,showAddRow:f.default.bool,treeDataMaxLevel:f.default.number};var p=l.default.forwardRef(function(y,v){return l.default.createElement(h,(0,r.default)({},y,{forwardedRef:v}))});e.default=p}(Eg)),Eg}var $g={},Bg={exports:{}},Fw;function Ed(){return Fw||(Fw=1,function(e){function t(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Bg)),Bg.exports}var zg={exports:{}},Nw;function Rd(){return Nw||(Nw=1,function(e){var t=bS();function r(c,o){for(var a=0;a1?"s":"")+" required, but only "+t.length+" present")}function hn(e){dn(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Si(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function P0(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return isNaN(i)?new Date(NaN):(i&&r.setDate(r.getDate()+i),r)}function Id(e,t){dn(2,arguments);var r=hn(e).getTime(),i=sr(t);return new Date(r+i)}function _R(e,t){dn(2,arguments);var r=sr(t);return Id(e,r*1e3)}var TR=6e4;function kR(e,t){dn(2,arguments);var r=sr(t);return Id(e,r*TR)}var MR=36e5;function SR(e,t){dn(2,arguments);var r=sr(t);return Id(e,r*MR)}function CR(e,t){dn(2,arguments);var r=sr(t),i=r*7;return P0(e,i)}function pf(e,t){dn(2,arguments);var r=hn(e),i=sr(t);if(isNaN(i))return new Date(NaN);if(!i)return r;var c=r.getDate(),o=new Date(r.getTime());o.setMonth(r.getMonth()+i+1,0);var a=o.getDate();return c>=a?o:(r.setFullYear(o.getFullYear(),o.getMonth(),c),r)}function Ww(e,t){dn(2,arguments);var r=sr(t);return pf(e,r*12)}function OR(e,t){dn(2,arguments);var r=hn(e),i=hn(t);return r.getFullYear()-i.getFullYear()}function ku(e,t){dn(2,arguments);var r=hn(e),i=hn(t),c=r.getTime()-i.getTime();return c<0?-1:c>0?1:c}function AR(e,t){dn(2,arguments);var r=hn(e),i=hn(t),c=ku(r,i),o=Math.abs(OR(r,i));r.setFullYear(1584),i.setFullYear(1584);var a=ku(r,i)===-c,n=c*(o-Number(a));return n===0?0:n}function PR(e,t){dn(2,arguments);var r=hn(e),i=hn(t),c=r.getFullYear()-i.getFullYear(),o=r.getMonth()-i.getMonth();return c*12+o}function D0(e){dn(1,arguments);var t=hn(e);return t.setHours(23,59,59,999),t}function E0(e){dn(1,arguments);var t=hn(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function DR(e){dn(1,arguments);var t=hn(e);return D0(t).getTime()===E0(t).getTime()}function NS(e,t){dn(2,arguments);var r=hn(e),i=hn(t),c=ku(r,i),o=Math.abs(PR(r,i)),a;if(o<1)a=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-c*o);var n=ku(r,i)===-c;DR(hn(e))&&o===1&&ku(e,i)===1&&(n=!1),a=c*(o-Number(n))}return a===0?0:a}var Uw={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},ER="trunc";function nc(e){return e?Uw[e]:Uw[ER]}function RR(e,t,r){dn(2,arguments);var i=NS(e,t)/3;return nc(void 0)(i)}function Lf(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function kl(e){dn(1,arguments);var t=hn(e);return t.setHours(0,0,0,0),t}var LR=864e5;function IR(e,t){dn(2,arguments);var r=kl(e),i=kl(t),c=r.getTime()-Lf(r),o=i.getTime()-Lf(i);return Math.round((c-o)/LR)}function Hw(e,t){var r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}function jS(e,t){dn(2,arguments);var r=hn(e),i=hn(t),c=Hw(r,i),o=Math.abs(IR(r,i));r.setDate(r.getDate()-c*o);var a=+(Hw(r,i)===-c),n=c*(o-a);return n===0?0:n}function FR(e,t,r){dn(2,arguments);var i=jS(e,t)/7;return nc(void 0)(i)}var Fd=6e4,Nd=36e5,NR=1e3;function jd(e,t){return dn(2,arguments),hn(e).getTime()-hn(t).getTime()}function jR(e,t,r){dn(2,arguments);var i=jd(e,t)/Nd;return nc(void 0)(i)}function $R(e,t,r){dn(2,arguments);var i=jd(e,t)/Fd;return nc(void 0)(i)}function BR(e,t,r){dn(2,arguments);var i=jd(e,t)/1e3;return nc(void 0)(i)}function zR(e,t){var r;dn(1,arguments);var i=e||{},c=hn(i.start),o=hn(i.end),a=o.getTime();if(!(c.getTime()<=a))throw new RangeError("Invalid interval");var n=[],l=c;l.setHours(0,0,0,0);var f=Number((r=void 0)!==null&&r!==void 0?r:1);if(f<1||isNaN(f))throw new RangeError("`options.step` must be a number greater than 1");for(;l.getTime()<=a;)n.push(hn(l)),l.setDate(l.getDate()+f),l.setHours(0,0,0,0);return n}var qR={};function ao(){return qR}function Yg(e,t){var r,i,c,o,a,n,l,f;dn(1,arguments);var s=ao(),u=sr((r=(i=(c=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(n=a.options)===null||n===void 0?void 0:n.weekStartsOn)!==null&&c!==void 0?c:s.weekStartsOn)!==null&&i!==void 0?i:(l=s.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=hn(e),h=d.getDay(),p=(h=c.getTime()?r+1:t.getTime()>=a.getTime()?r:r-1}function VR(e){dn(1,arguments);var t=zS(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var i=Ml(r);return i}var YR=6048e5;function qS(e){dn(1,arguments);var t=hn(e),r=Ml(t).getTime()-VR(t).getTime();return Math.round(r/YR)+1}function Oo(e,t){var r,i,c,o,a,n,l,f;dn(1,arguments);var s=ao(),u=sr((r=(i=(c=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(n=a.options)===null||n===void 0?void 0:n.weekStartsOn)!==null&&c!==void 0?c:s.weekStartsOn)!==null&&i!==void 0?i:(l=s.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=hn(e),h=d.getUTCDay(),p=(h=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(u+1,0,h),p.setUTCHours(0,0,0,0);var g=Oo(p,t),y=new Date(0);y.setUTCFullYear(u,0,h),y.setUTCHours(0,0,0,0);var v=Oo(y,t);return s.getTime()>=g.getTime()?u+1:s.getTime()>=v.getTime()?u:u-1}function GR(e,t){var r,i,c,o,a,n,l,f;dn(1,arguments);var s=ao(),u=sr((r=(i=(c=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(n=a.options)===null||n===void 0?void 0:n.firstWeekContainsDate)!==null&&c!==void 0?c:s.firstWeekContainsDate)!==null&&i!==void 0?i:(l=s.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&r!==void 0?r:1),d=Ay(e,t),h=new Date(0);h.setUTCFullYear(d,0,u),h.setUTCHours(0,0,0,0);var p=Oo(h,t);return p}var XR=6048e5;function WS(e,t){dn(1,arguments);var r=hn(e),i=Oo(r,t).getTime()-GR(r,t).getTime();return Math.round(i/XR)+1}function Hn(e,t){for(var r=e<0?"-":"",i=Math.abs(e).toString();i.length0?i:1-i;return Hn(r==="yy"?c%100:c,r.length)},M:function(t,r){var i=t.getUTCMonth();return r==="M"?String(i+1):Hn(i+1,2)},d:function(t,r){return Hn(t.getUTCDate(),r.length)},a:function(t,r){var i=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];case"aaaa":default:return i==="am"?"a.m.":"p.m."}},h:function(t,r){return Hn(t.getUTCHours()%12||12,r.length)},H:function(t,r){return Hn(t.getUTCHours(),r.length)},m:function(t,r){return Hn(t.getUTCMinutes(),r.length)},s:function(t,r){return Hn(t.getUTCSeconds(),r.length)},S:function(t,r){var i=r.length,c=t.getUTCMilliseconds(),o=Math.floor(c*Math.pow(10,i-3));return Hn(o,r.length)}},il={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ZR={G:function(t,r,i){var c=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return i.era(c,{width:"abbreviated"});case"GGGGG":return i.era(c,{width:"narrow"});case"GGGG":default:return i.era(c,{width:"wide"})}},y:function(t,r,i){if(r==="yo"){var c=t.getUTCFullYear(),o=c>0?c:1-c;return i.ordinalNumber(o,{unit:"year"})}return zi.y(t,r)},Y:function(t,r,i,c){var o=Ay(t,c),a=o>0?o:1-o;if(r==="YY"){var n=a%100;return Hn(n,2)}return r==="Yo"?i.ordinalNumber(a,{unit:"year"}):Hn(a,r.length)},R:function(t,r){var i=zS(t);return Hn(i,r.length)},u:function(t,r){var i=t.getUTCFullYear();return Hn(i,r.length)},Q:function(t,r,i){var c=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(c);case"QQ":return Hn(c,2);case"Qo":return i.ordinalNumber(c,{unit:"quarter"});case"QQQ":return i.quarter(c,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(c,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(c,{width:"wide",context:"formatting"})}},q:function(t,r,i){var c=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(c);case"qq":return Hn(c,2);case"qo":return i.ordinalNumber(c,{unit:"quarter"});case"qqq":return i.quarter(c,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(c,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(c,{width:"wide",context:"standalone"})}},M:function(t,r,i){var c=t.getUTCMonth();switch(r){case"M":case"MM":return zi.M(t,r);case"Mo":return i.ordinalNumber(c+1,{unit:"month"});case"MMM":return i.month(c,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(c,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(c,{width:"wide",context:"formatting"})}},L:function(t,r,i){var c=t.getUTCMonth();switch(r){case"L":return String(c+1);case"LL":return Hn(c+1,2);case"Lo":return i.ordinalNumber(c+1,{unit:"month"});case"LLL":return i.month(c,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(c,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(c,{width:"wide",context:"standalone"})}},w:function(t,r,i,c){var o=WS(t,c);return r==="wo"?i.ordinalNumber(o,{unit:"week"}):Hn(o,r.length)},I:function(t,r,i){var c=qS(t);return r==="Io"?i.ordinalNumber(c,{unit:"week"}):Hn(c,r.length)},d:function(t,r,i){return r==="do"?i.ordinalNumber(t.getUTCDate(),{unit:"date"}):zi.d(t,r)},D:function(t,r,i){var c=HR(t);return r==="Do"?i.ordinalNumber(c,{unit:"dayOfYear"}):Hn(c,r.length)},E:function(t,r,i){var c=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return i.day(c,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(c,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(c,{width:"short",context:"formatting"});case"EEEE":default:return i.day(c,{width:"wide",context:"formatting"})}},e:function(t,r,i,c){var o=t.getUTCDay(),a=(o-c.weekStartsOn+8)%7||7;switch(r){case"e":return String(a);case"ee":return Hn(a,2);case"eo":return i.ordinalNumber(a,{unit:"day"});case"eee":return i.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(o,{width:"short",context:"formatting"});case"eeee":default:return i.day(o,{width:"wide",context:"formatting"})}},c:function(t,r,i,c){var o=t.getUTCDay(),a=(o-c.weekStartsOn+8)%7||7;switch(r){case"c":return String(a);case"cc":return Hn(a,r.length);case"co":return i.ordinalNumber(a,{unit:"day"});case"ccc":return i.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(o,{width:"narrow",context:"standalone"});case"cccccc":return i.day(o,{width:"short",context:"standalone"});case"cccc":default:return i.day(o,{width:"wide",context:"standalone"})}},i:function(t,r,i){var c=t.getUTCDay(),o=c===0?7:c;switch(r){case"i":return String(o);case"ii":return Hn(o,r.length);case"io":return i.ordinalNumber(o,{unit:"day"});case"iii":return i.day(c,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(c,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(c,{width:"short",context:"formatting"});case"iiii":default:return i.day(c,{width:"wide",context:"formatting"})}},a:function(t,r,i){var c=t.getUTCHours(),o=c/12>=1?"pm":"am";switch(r){case"a":case"aa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,r,i){var c=t.getUTCHours(),o;switch(c===12?o=il.noon:c===0?o=il.midnight:o=c/12>=1?"pm":"am",r){case"b":case"bb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,r,i){var c=t.getUTCHours(),o;switch(c>=17?o=il.evening:c>=12?o=il.afternoon:c>=4?o=il.morning:o=il.night,r){case"B":case"BB":case"BBB":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,r,i){if(r==="ho"){var c=t.getUTCHours()%12;return c===0&&(c=12),i.ordinalNumber(c,{unit:"hour"})}return zi.h(t,r)},H:function(t,r,i){return r==="Ho"?i.ordinalNumber(t.getUTCHours(),{unit:"hour"}):zi.H(t,r)},K:function(t,r,i){var c=t.getUTCHours()%12;return r==="Ko"?i.ordinalNumber(c,{unit:"hour"}):Hn(c,r.length)},k:function(t,r,i){var c=t.getUTCHours();return c===0&&(c=24),r==="ko"?i.ordinalNumber(c,{unit:"hour"}):Hn(c,r.length)},m:function(t,r,i){return r==="mo"?i.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):zi.m(t,r)},s:function(t,r,i){return r==="so"?i.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):zi.s(t,r)},S:function(t,r){return zi.S(t,r)},X:function(t,r,i,c){var o=c._originalDate||t,a=o.getTimezoneOffset();if(a===0)return"Z";switch(r){case"X":return Yw(a);case"XXXX":case"XX":return go(a);case"XXXXX":case"XXX":default:return go(a,":")}},x:function(t,r,i,c){var o=c._originalDate||t,a=o.getTimezoneOffset();switch(r){case"x":return Yw(a);case"xxxx":case"xx":return go(a);case"xxxxx":case"xxx":default:return go(a,":")}},O:function(t,r,i,c){var o=c._originalDate||t,a=o.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+Vw(a,":");case"OOOO":default:return"GMT"+go(a,":")}},z:function(t,r,i,c){var o=c._originalDate||t,a=o.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+Vw(a,":");case"zzzz":default:return"GMT"+go(a,":")}},t:function(t,r,i,c){var o=c._originalDate||t,a=Math.floor(o.getTime()/1e3);return Hn(a,r.length)},T:function(t,r,i,c){var o=c._originalDate||t,a=o.getTime();return Hn(a,r.length)}};function Vw(e,t){var r=e>0?"-":"+",i=Math.abs(e),c=Math.floor(i/60),o=i%60;if(o===0)return r+String(c);var a=t;return r+String(c)+a+Hn(o,2)}function Yw(e,t){if(e%60===0){var r=e>0?"-":"+";return r+Hn(Math.abs(e)/60,2)}return go(e,t)}function go(e,t){var r=t||"",i=e>0?"-":"+",c=Math.abs(e),o=Hn(Math.floor(c/60),2),a=Hn(c%60,2);return i+o+r+a}var Gw=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},US=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},KR=function(t,r){var i=t.match(/(P+)(p+)?/)||[],c=i[1],o=i[2];if(!o)return Gw(t,r);var a;switch(c){case"P":a=r.dateTime({width:"short"});break;case"PP":a=r.dateTime({width:"medium"});break;case"PPP":a=r.dateTime({width:"long"});break;case"PPPP":default:a=r.dateTime({width:"full"});break}return a.replace("{{date}}",Gw(c,r)).replace("{{time}}",US(o,r))},R0={p:US,P:KR},JR=["D","DD"],QR=["YY","YYYY"];function HS(e){return JR.indexOf(e)!==-1}function VS(e){return QR.indexOf(e)!==-1}function If(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var eL={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},tL=function(t,r,i){var c,o=eL[t];return typeof o=="string"?c=o:r===1?c=o.one:c=o.other.replace("{{count}}",r.toString()),i!=null&&i.addSuffix?i.comparison&&i.comparison>0?"in "+c:c+" ago":c};function Xg(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,i=e.formats[r]||e.formats[e.defaultWidth];return i}}var nL={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},rL={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},aL={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},iL={date:Xg({formats:nL,defaultWidth:"full"}),time:Xg({formats:rL,defaultWidth:"full"}),dateTime:Xg({formats:aL,defaultWidth:"full"})},oL={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},lL=function(t,r,i,c){return oL[t]};function Ls(e){return function(t,r){var i=r!=null&&r.context?String(r.context):"standalone",c;if(i==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=r!=null&&r.width?String(r.width):o;c=e.formattingValues[a]||e.formattingValues[o]}else{var n=e.defaultWidth,l=r!=null&&r.width?String(r.width):e.defaultWidth;c=e.values[l]||e.values[n]}var f=e.argumentCallback?e.argumentCallback(t):t;return c[f]}}var sL={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},uL={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},cL={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},fL={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dL={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},hL={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},pL=function(t,r){var i=Number(t),c=i%100;if(c>20||c<10)switch(c%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},gL={ordinalNumber:pL,era:Ls({values:sL,defaultWidth:"wide"}),quarter:Ls({values:uL,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ls({values:cL,defaultWidth:"wide"}),day:Ls({values:fL,defaultWidth:"wide"}),dayPeriod:Ls({values:dL,defaultWidth:"wide",formattingValues:hL,defaultFormattingWidth:"wide"})};function Is(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.width,c=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],o=t.match(c);if(!o)return null;var a=o[0],n=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(n)?vL(n,function(u){return u.test(a)}):mL(n,function(u){return u.test(a)}),f;f=e.valueCallback?e.valueCallback(l):l,f=r.valueCallback?r.valueCallback(f):f;var s=t.slice(a.length);return{value:f,rest:s}}}function mL(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function vL(e,t){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},i=t.match(e.matchPattern);if(!i)return null;var c=i[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];a=r.valueCallback?r.valueCallback(a):a;var n=t.slice(c.length);return{value:a,rest:n}}}var bL=/^(\d+)(th|st|nd|rd)?/i,xL=/\d+/i,wL={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},_L={any:[/^b/i,/^(a|c)/i]},TL={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},kL={any:[/1/i,/2/i,/3/i,/4/i]},ML={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},SL={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},CL={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},OL={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},AL={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},PL={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},DL={ordinalNumber:yL({matchPattern:bL,parsePattern:xL,valueCallback:function(t){return parseInt(t,10)}}),era:Is({matchPatterns:wL,defaultMatchWidth:"wide",parsePatterns:_L,defaultParseWidth:"any"}),quarter:Is({matchPatterns:TL,defaultMatchWidth:"wide",parsePatterns:kL,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Is({matchPatterns:ML,defaultMatchWidth:"wide",parsePatterns:SL,defaultParseWidth:"any"}),day:Is({matchPatterns:CL,defaultMatchWidth:"wide",parsePatterns:OL,defaultParseWidth:"any"}),dayPeriod:Is({matchPatterns:AL,defaultMatchWidth:"any",parsePatterns:PL,defaultParseWidth:"any"})},$d={code:"en-US",formatDistance:tL,formatLong:iL,formatRelative:lL,localize:gL,match:DL,options:{weekStartsOn:0,firstWeekContainsDate:1}},EL=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,RL=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,LL=/^'([^]*?)'?$/,IL=/''/g,FL=/[a-zA-Z]/;function YS(e,t,r){var i,c,o,a,n,l,f,s,u,d,h,p,g,y,v,m,b,x;dn(2,arguments);var _=String(t),w=ao(),k=(i=(c=r==null?void 0:r.locale)!==null&&c!==void 0?c:w.locale)!==null&&i!==void 0?i:$d,T=sr((o=(a=(n=(l=r==null?void 0:r.firstWeekContainsDate)!==null&&l!==void 0?l:r==null||(f=r.locale)===null||f===void 0||(s=f.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&n!==void 0?n:w.firstWeekContainsDate)!==null&&a!==void 0?a:(u=w.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=sr((h=(p=(g=(y=r==null?void 0:r.weekStartsOn)!==null&&y!==void 0?y:r==null||(v=r.locale)===null||v===void 0||(m=v.options)===null||m===void 0?void 0:m.weekStartsOn)!==null&&g!==void 0?g:w.weekStartsOn)!==null&&p!==void 0?p:(b=w.locale)===null||b===void 0||(x=b.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&h!==void 0?h:0);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var S=hn(e);if(!$S(S))throw new RangeError("Invalid time value");var C=Lf(S),P=BS(S,C),D={firstWeekContainsDate:T,weekStartsOn:M,locale:k,_originalDate:S},O=_.match(RL).map(function(R){var F=R[0];if(F==="p"||F==="P"){var A=R0[F];return A(R,k.formatLong)}return R}).join("").match(EL).map(function(R){if(R==="''")return"'";var F=R[0];if(F==="'")return NL(R);var A=ZR[F];if(A)return!(r!=null&&r.useAdditionalWeekYearTokens)&&VS(R)&&If(R,t,String(e)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&HS(R)&&If(R,t,String(e)),A(P,R,k.localize,D);if(F.match(FL))throw new RangeError("Format string contains an unescaped latin alphabet character `"+F+"`");return R}).join("");return O}function NL(e){var t=e.match(LL);return t?t[1].replace(IL,"'"):e}const jL=Object.freeze(Object.defineProperty({__proto__:null,default:YS},Symbol.toStringTag,{value:"Module"}));function $L(e){dn(1,arguments);var t=hn(e),r=t.getDate();return r}function BL(e){dn(1,arguments);var t=hn(e),r=t.getDay();return r}function GS(e){dn(1,arguments);var t=hn(e),r=t.getFullYear(),i=t.getMonth(),c=new Date(0);return c.setFullYear(r,i+1,0),c.setHours(0,0,0,0),c.getDate()}function zL(e){dn(1,arguments);var t=hn(e),r=t.getHours();return r}function qL(e){dn(1,arguments);var t=hn(e),r=t.getMinutes();return r}function WL(e){dn(1,arguments);var t=hn(e),r=t.getMonth();return r}function UL(e){dn(1,arguments);var t=hn(e),r=t.getSeconds();return r}function HL(e){return dn(1,arguments),hn(e).getFullYear()}function $c(e,t){dn(2,arguments);var r=hn(e),i=hn(t);return r.getTime()>i.getTime()}function ol(e,t){dn(2,arguments);var r=hn(e),i=hn(t);return r.getTime()e.length)&&(t=e.length);for(var r=0,i=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(f){throw f},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,n;return{s:function(){r=r.call(e)},n:function(){var f=r.next();return o=f.done,f},e:function(f){a=!0,n=f},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(a)throw n}}}}function JL(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function Qn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b9(e,t)}function Ff(e){return Ff=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ff(e)}function QL(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function eI(e,t){if(t&&(Si(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bn(e)}function er(e){var t=QL();return function(){var i=Ff(e),c;if(t){var o=Ff(this).constructor;c=Reflect.construct(i,arguments,o)}else c=i.apply(this,arguments);return eI(this,c)}}function Zn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tI(e,t){if(Si(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(Si(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function XS(e){var t=tI(e,"string");return Si(t)==="symbol"?t:String(t)}function nI(e,t){for(var r=0;r0,i=r?t:1-t,c;if(i<=50)c=e||100;else{var o=i+50,a=Math.floor(o/100)*100,n=e>=o%100;c=e+a-(n?100:0)}return r?c:1-c}function QS(e){return e%400===0||e%4===0&&e%100!==0}var lI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a0}},{key:"set",value:function(c,o,a){var n=c.getUTCFullYear();if(a.isTwoDigitYear){var l=JS(a.year,n);return c.setUTCFullYear(l,0,1),c.setUTCHours(0,0,0,0),c}var f=!("era"in o)||o.era===1?a.year:1-a.year;return c.setUTCFullYear(f,0,1),c.setUTCHours(0,0,0,0),c}}]),r}(or),sI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a0}},{key:"set",value:function(c,o,a,n){var l=Ay(c,n);if(a.isTwoDigitYear){var f=JS(a.year,l);return c.setUTCFullYear(f,0,n.firstWeekContainsDate),c.setUTCHours(0,0,0,0),Oo(c,n)}var s=!("era"in o)||o.era===1?a.year:1-a.year;return c.setUTCFullYear(s,0,n.firstWeekContainsDate),c.setUTCHours(0,0,0,0),Oo(c,n)}}]),r}(or),uI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=1&&o<=4}},{key:"set",value:function(c,o,a){return c.setUTCMonth((a-1)*3,1),c.setUTCHours(0,0,0,0),c}}]),r}(or),dI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=1&&o<=4}},{key:"set",value:function(c,o,a){return c.setUTCMonth((a-1)*3,1),c.setUTCHours(0,0,0,0),c}}]),r}(or),hI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=0&&o<=11}},{key:"set",value:function(c,o,a){return c.setUTCMonth(a,1),c.setUTCHours(0,0,0,0),c}}]),r}(or),pI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=0&&o<=11}},{key:"set",value:function(c,o,a){return c.setUTCMonth(a,1),c.setUTCHours(0,0,0,0),c}}]),r}(or);function gI(e,t,r){dn(2,arguments);var i=hn(e),c=sr(t),o=WS(i,r)-c;return i.setUTCDate(i.getUTCDate()-o*7),i}var mI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=1&&o<=53}},{key:"set",value:function(c,o,a,n){return Oo(gI(c,a,n),n)}}]),r}(or);function vI(e,t){dn(2,arguments);var r=hn(e),i=sr(t),c=qS(r)-i;return r.setUTCDate(r.getUTCDate()-c*7),r}var yI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=1&&o<=53}},{key:"set",value:function(c,o,a){return Ml(vI(c,a))}}]),r}(or),bI=[31,28,31,30,31,30,31,31,30,31,30,31],xI=[31,29,31,30,31,30,31,31,30,31,30,31],wI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=1&&o<=xI[l]:o>=1&&o<=bI[l]}},{key:"set",value:function(c,o,a){return c.setUTCDate(a),c.setUTCHours(0,0,0,0),c}}]),r}(or),_I=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(c,o,a){return c.setUTCMonth(0,a),c.setUTCHours(0,0,0,0),c}}]),r}(or);function Dy(e,t,r){var i,c,o,a,n,l,f,s;dn(2,arguments);var u=ao(),d=sr((i=(c=(o=(a=r==null?void 0:r.weekStartsOn)!==null&&a!==void 0?a:r==null||(n=r.locale)===null||n===void 0||(l=n.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:u.weekStartsOn)!==null&&c!==void 0?c:(f=u.locale)===null||f===void 0||(s=f.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=hn(e),p=sr(t),g=h.getUTCDay(),y=p%7,v=(y+7)%7,m=(v=0&&o<=6}},{key:"set",value:function(c,o,a,n){return c=Dy(c,a,n),c.setUTCHours(0,0,0,0),c}}]),r}(or),kI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=0&&o<=6}},{key:"set",value:function(c,o,a,n){return c=Dy(c,a,n),c.setUTCHours(0,0,0,0),c}}]),r}(or),MI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=0&&o<=6}},{key:"set",value:function(c,o,a,n){return c=Dy(c,a,n),c.setUTCHours(0,0,0,0),c}}]),r}(or);function SI(e,t){dn(2,arguments);var r=sr(t);r%7===0&&(r=r-7);var i=1,c=hn(e),o=c.getUTCDay(),a=r%7,n=(a+7)%7,l=(n=1&&o<=7}},{key:"set",value:function(c,o,a){return c=SI(c,a),c.setUTCHours(0,0,0,0),c}}]),r}(or),OI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=1&&o<=12}},{key:"set",value:function(c,o,a){var n=c.getUTCHours()>=12;return n&&a<12?c.setUTCHours(a+12,0,0,0):!n&&a===12?c.setUTCHours(0,0,0,0):c.setUTCHours(a,0,0,0),c}}]),r}(or),EI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=0&&o<=23}},{key:"set",value:function(c,o,a){return c.setUTCHours(a,0,0,0),c}}]),r}(or),RI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=0&&o<=11}},{key:"set",value:function(c,o,a){var n=c.getUTCHours()>=12;return n&&a<12?c.setUTCHours(a+12,0,0,0):c.setUTCHours(a,0,0,0),c}}]),r}(or),LI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=1&&o<=24}},{key:"set",value:function(c,o,a){var n=a<=24?a%24:a;return c.setUTCHours(n,0,0,0),c}}]),r}(or),II=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=0&&o<=59}},{key:"set",value:function(c,o,a){return c.setUTCMinutes(a,0,0),c}}]),r}(or),FI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=0&&o<=59}},{key:"set",value:function(c,o,a){return c.setUTCSeconds(a,0),c}}]),r}(or),NI=function(e){Qn(r,e);var t=er(r);function r(){var i;Zn(this,r);for(var c=arguments.length,o=new Array(c),a=0;a=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=sr((p=(g=(y=(v=i==null?void 0:i.weekStartsOn)!==null&&v!==void 0?v:i==null||(m=i.locale)===null||m===void 0||(b=m.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&y!==void 0?y:T.weekStartsOn)!==null&&g!==void 0?g:(x=T.locale)===null||x===void 0||(_=x.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&p!==void 0?p:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(k==="")return w===""?hn(r):new Date(NaN);var P={firstWeekContainsDate:S,weekStartsOn:C,locale:M},D=[new iI],O=k.match(UI).map(function(H){var V=H[0];if(V in R0){var te=R0[V];return te(H,M.formatLong)}return H}).join("").match(WI),R=[],F=Kw(O),A;try{var z=function(){var V=A.value;!(i!=null&&i.useAdditionalWeekYearTokens)&&VS(V)&&If(V,k,e),!(i!=null&&i.useAdditionalDayOfYearTokens)&&HS(V)&&If(V,k,e);var te=V[0],ee=qI[te];if(ee){var U=ee.incompatibleTokens;if(Array.isArray(U)){var Q=R.find(function(Z){return U.includes(Z.token)||Z.token===te});if(Q)throw new RangeError("The format string mustn't contain `".concat(Q.fullToken,"` and `").concat(V,"` at the same time"))}else if(ee.incompatibleTokens==="*"&&R.length>0)throw new RangeError("The format string mustn't contain `".concat(V,"` and any other token at the same time"));R.push({token:te,fullToken:V});var Y=ee.run(w,V,M.match,P);if(!Y)return{v:new Date(NaN)};D.push(Y.setter),w=Y.rest}else{if(te.match(GI))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");if(V==="''"?V="'":te==="'"&&(V=ZI(V)),w.indexOf(V)===0)w=w.slice(V.length);else return{v:new Date(NaN)}}};for(F.s();!(A=F.n()).done;){var B=z();if(Si(B)==="object")return B.v}}catch(H){F.e(H)}finally{F.f()}if(w.length>0&&YI.test(w))return new Date(NaN);var $=D.map(function(H){return H.priority}).sort(function(H,V){return V-H}).filter(function(H,V,te){return te.indexOf(H)===V}).map(function(H){return D.filter(function(V){return V.priority===H}).sort(function(V,te){return te.subPriority-V.subPriority})}).map(function(H){return H[0]}),j=hn(r);if(isNaN(j.getTime()))return new Date(NaN);var N=BS(j,Lf(j)),E={},W=Kw($),G;try{for(W.s();!(G=W.n()).done;){var L=G.value;if(!L.validate(N,P))return new Date(NaN);var q=L.set(N,E,P);Array.isArray(q)?(N=q[0],JL(E,q[1])):N=q}}catch(H){W.e(H)}finally{W.f()}return N}function ZI(e){return e.match(HI)[1].replace(VI,"'")}function KI(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return r.setDate(i),r}function JI(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return r.setHours(i),r}function QI(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return r.setMinutes(i),r}function eF(e,t){dn(2,arguments);var r=hn(e),i=sr(t),c=r.getFullYear(),o=r.getDate(),a=new Date(0);a.setFullYear(c,i,15),a.setHours(0,0,0,0);var n=GS(a);return r.setMonth(i,Math.min(o,n)),r}function tF(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return r.setSeconds(i),r}function nF(e,t){dn(2,arguments);var r=hn(e),i=sr(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(i),r)}function Bc(e){dn(1,arguments);var t=hn(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Zg(e,t){var r,i,c,o,a,n,l,f;dn(1,arguments);var s=ao(),u=sr((r=(i=(c=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(n=a.options)===null||n===void 0?void 0:n.weekStartsOn)!==null&&c!==void 0?c:s.weekStartsOn)!==null&&i!==void 0?i:(l=s.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=hn(e),h=d.getDay(),p=(h2)return t;if(/:/.test(r[0])?i=r[0]:(t.date=r[0],i=r[1],qc.timeZoneDelimiter.test(t.date)&&(t.date=e.split(qc.timeZoneDelimiter)[0],i=e.substr(t.date.length,e.length))),i){var c=qc.timezone.exec(i);c?(t.time=i.replace(c[1],""),t.timezone=c[1]):t.time=i}return t}function lF(e,t){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),i=e.match(r);if(!i)return{year:NaN,restDateString:""};var c=i[1]?parseInt(i[1]):null,o=i[2]?parseInt(i[2]):null;return{year:o===null?c:o*100,restDateString:e.slice((i[1]||i[2]).length)}}function sF(e,t){if(t===null)return new Date(NaN);var r=e.match(rF);if(!r)return new Date(NaN);var i=!!r[4],c=Fs(r[1]),o=Fs(r[2])-1,a=Fs(r[3]),n=Fs(r[4]),l=Fs(r[5])-1;if(i)return gF(t,n,l)?fF(t,n,l):new Date(NaN);var f=new Date(0);return!hF(t,o,a)||!pF(t,c)?new Date(NaN):(f.setUTCFullYear(t,o,Math.max(c,a)),f)}function Fs(e){return e?parseInt(e):1}function uF(e){var t=e.match(aF);if(!t)return NaN;var r=Kg(t[1]),i=Kg(t[2]),c=Kg(t[3]);return mF(r,i,c)?r*Nd+i*Fd+c*1e3:NaN}function Kg(e){return e&&parseFloat(e.replace(",","."))||0}function cF(e){if(e==="Z")return 0;var t=e.match(iF);if(!t)return 0;var r=t[1]==="+"?-1:1,i=parseInt(t[2]),c=t[3]&&parseInt(t[3])||0;return vF(i,c)?r*(i*Nd+c*Fd):NaN}function fF(e,t,r){var i=new Date(0);i.setUTCFullYear(e,0,4);var c=i.getUTCDay()||7,o=(t-1)*7+r+1-c;return i.setUTCDate(i.getUTCDate()+o),i}var dF=[31,null,31,30,31,30,31,31,30,31,30,31];function t4(e){return e%400===0||e%4===0&&e%100!==0}function hF(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(dF[t]||(t4(e)?29:28))}function pF(e,t){return t>=1&&t<=(t4(e)?366:365)}function gF(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function mF(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function vF(e,t){return t>=0&&t<=59}const yF=Object.freeze(Object.defineProperty({__proto__:null,default:e4},Symbol.toStringTag,{value:"Module"}));function bF(e,t){var r,i;dn(1,arguments);var c=hn(e);if(isNaN(c.getTime()))throw new RangeError("Invalid time value");var o=String((r=t==null?void 0:t.format)!==null&&r!==void 0?r:"extended"),a=String((i=t==null?void 0:t.representation)!==null&&i!==void 0?i:"complete");if(o!=="extended"&&o!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(a!=="date"&&a!=="time"&&a!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var n="",l="",f=o==="extended"?"-":"",s=o==="extended"?":":"";if(a!=="time"){var u=Hn(c.getDate(),2),d=Hn(c.getMonth()+1,2),h=Hn(c.getFullYear(),4);n="".concat(h).concat(f).concat(d).concat(f).concat(u)}if(a!=="date"){var p=c.getTimezoneOffset();if(p!==0){var g=Math.abs(p),y=Hn(Math.floor(g/60),2),v=Hn(g%60,2),m=p<0?"+":"-";l="".concat(m).concat(y,":").concat(v)}else l="Z";var b=Hn(c.getHours(),2),x=Hn(c.getMinutes(),2),_=Hn(c.getSeconds(),2),w=n===""?"":"T",k=[b,x,_].join(s);n="".concat(n).concat(w).concat(k).concat(l)}return n}function xF(e,t){dn(2,arguments);var r=hn(e).getTime(),i=hn(t.start).getTime(),c=hn(t.end).getTime();if(!(i<=c))throw new RangeError("Invalid interval");return r>=i&&r<=c}var L0={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(l,f){switch(l){case"P":return f.date({width:"short"});case"PP":return f.date({width:"medium"});case"PPP":return f.date({width:"long"});case"PPPP":default:return f.date({width:"full"})}},i=function(l,f){switch(l){case"p":return f.time({width:"short"});case"pp":return f.time({width:"medium"});case"ppp":return f.time({width:"long"});case"pppp":default:return f.time({width:"full"})}},c=function(l,f){var s=l.match(/(P+)(p+)?/)||[],u=s[1],d=s[2];if(!d)return r(l,f);var h;switch(u){case"P":h=f.dateTime({width:"short"});break;case"PP":h=f.dateTime({width:"medium"});break;case"PPP":h=f.dateTime({width:"long"});break;case"PPPP":default:h=f.dateTime({width:"full"});break}return h.replace("{{date}}",r(u,f)).replace("{{time}}",i(d,f))},o={p:i,P:c},a=o;t.default=a,e.exports=t.default})(L0,L0.exports);var wF=L0.exports;const n4=ir(wF),_F={dayOfMonth:"d",fullDate:"PP",fullDateWithWeekday:"PPPP",fullDateTime:"PP p",fullDateTime12h:"PP hh:mm aaa",fullDateTime24h:"PP HH:mm",fullTime:"p",fullTime12h:"hh:mm aaa",fullTime24h:"HH:mm",hours12h:"hh",hours24h:"HH",keyboardDate:"P",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aaa",keyboardDateTime24h:"P HH:mm",minutes:"mm",month:"LLLL",monthAndDate:"MMMM d",monthAndYear:"LLLL yyyy",monthShort:"MMM",weekday:"EEEE",weekdayShort:"EEE",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",seconds:"ss",shortDate:"MMM d",year:"yyyy"};class TF{constructor({locale:t,formats:r}={}){this.lib="date-fns",this.is12HourCycleInCurrentLocale=()=>{var i;return this.locale?/a/.test((i=this.locale.formatLong)===null||i===void 0?void 0:i.time()):!0},this.getFormatHelperText=i=>{var c,o;const a=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,n=this.locale||$d;return(o=(c=i.match(a))===null||c===void 0?void 0:c.map(l=>{const f=l[0];if(f==="p"||f==="P"){const s=n4[f];return s(l,n.formatLong,{})}return l}).join("").replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase())!==null&&o!==void 0?o:i},this.parseISO=i=>e4(i),this.toISO=i=>bF(i,{format:"extended"}),this.getCurrentLocaleCode=()=>{var i;return((i=this.locale)===null||i===void 0?void 0:i.code)||"en-US"},this.addSeconds=(i,c)=>_R(i,c),this.addMinutes=(i,c)=>kR(i,c),this.addHours=(i,c)=>SR(i,c),this.addDays=(i,c)=>P0(i,c),this.addWeeks=(i,c)=>CR(i,c),this.addMonths=(i,c)=>pf(i,c),this.addYears=(i,c)=>Ww(i,c),this.isValid=i=>$S(this.date(i)),this.getDiff=(i,c,o)=>{var a;const n=(a=this.date(c))!==null&&a!==void 0?a:i;if(!this.isValid(n))return 0;switch(o){case"years":return AR(i,n);case"quarters":return RR(i,n);case"months":return NS(i,n);case"weeks":return FR(i,n);case"days":return jS(i,n);case"hours":return jR(i,n);case"minutes":return $R(i,n);case"seconds":return BR(i,n);default:return jd(i,n)}},this.isAfter=(i,c)=>$c(i,c),this.isBefore=(i,c)=>ol(i,c),this.startOfDay=i=>kl(i),this.endOfDay=i=>D0(i),this.getHours=i=>zL(i),this.setHours=(i,c)=>JI(i,c),this.setMinutes=(i,c)=>QI(i,c),this.getSeconds=i=>UL(i),this.setSeconds=(i,c)=>tF(i,c),this.isSameDay=(i,c)=>YL(i,c),this.isSameMonth=(i,c)=>XL(i,c),this.isSameYear=(i,c)=>GL(i,c),this.isSameHour=(i,c)=>ZL(i,c),this.startOfYear=i=>zc(i),this.endOfYear=i=>Gg(i),this.startOfMonth=i=>Bc(i),this.endOfMonth=i=>E0(i),this.startOfWeek=i=>Zg(i,{locale:this.locale}),this.endOfWeek=i=>Yg(i,{locale:this.locale}),this.getYear=i=>HL(i),this.setYear=(i,c)=>nF(i,c),this.date=i=>typeof i>"u"?new Date:i===null?null:new Date(i),this.toJsDate=i=>i,this.parse=(i,c)=>i===""?null:XI(i,c,new Date,{locale:this.locale}),this.format=(i,c)=>this.formatByString(i,this.formats[c]),this.formatByString=(i,c)=>YS(i,c,{locale:this.locale}),this.isEqual=(i,c)=>i===null&&c===null?!0:VL(i,c),this.isNull=i=>i===null,this.isAfterDay=(i,c)=>$c(i,D0(c)),this.isBeforeDay=(i,c)=>ol(i,kl(c)),this.isBeforeYear=(i,c)=>ol(i,zc(c)),this.isAfterYear=(i,c)=>$c(i,Gg(c)),this.isWithinRange=(i,[c,o])=>xF(i,{start:c,end:o}),this.formatNumber=i=>i,this.getMinutes=i=>qL(i),this.getDate=i=>$L(i),this.setDate=(i,c)=>KI(i,c),this.getMonth=i=>WL(i),this.getDaysInMonth=i=>GS(i),this.setMonth=(i,c)=>eF(i,c),this.getMeridiemText=i=>i==="am"?"AM":"PM",this.getNextMonth=i=>pf(i,1),this.getPreviousMonth=i=>pf(i,-1),this.getMonthArray=i=>{const o=[zc(i)];for(;o.length<12;){const a=o[o.length-1];o.push(this.getNextMonth(a))}return o},this.mergeDateAndTime=(i,c)=>this.setSeconds(this.setMinutes(this.setHours(i,this.getHours(c)),this.getMinutes(c)),this.getSeconds(c)),this.getWeekdays=()=>{const i=new Date;return zR({start:Zg(i,{locale:this.locale}),end:Yg(i,{locale:this.locale})}).map(c=>this.formatByString(c,"EEEEEE"))},this.getWeekArray=i=>{const c=Zg(Bc(i),{locale:this.locale}),o=Yg(E0(i),{locale:this.locale});let a=0,n=c;const l=[];let f=null;for(;ol(n,o);){const s=Math.floor(a/7);l[s]=l[s]||[];const u=BL(n);f!==u&&(f=u,l[s].push(n),a+=1),n=P0(n,1)}return l},this.getYearRange=(i,c)=>{const o=zc(i),a=Gg(c),n=[];let l=o;for(;ol(l,a);)n.push(l),l=Ww(l,1);return n},this.locale=t,this.formats=Object.assign({},_F,r)}isBeforeMonth(t,r){return ol(t,Bc(r))}isAfterMonth(t,r){return $c(t,Bc(r))}}const kF={y:"year",yy:"year",yyy:"year",yyyy:"year",MMMM:"month",MM:"month",DD:"day",d:"day",dd:"day",H:"hour",HH:"hour",h:"hour",hh:"hour",mm:"minute",ss:"second",a:"am-pm",aa:"am-pm",aaa:"am-pm"};class MF extends TF{constructor(...t){super(...t),this.formatTokenMap=kF,this.expandFormat=r=>{const i=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return r.match(i).map(c=>{const o=c[0];if(o==="p"||o==="P"){const a=n4[o],n=this.locale||$d;return a(c,n.formatLong,{})}return c}).join("")},this.getFormatHelperText=r=>this.expandFormat(r).replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase()}}const SF=Object.freeze(Object.defineProperty({__proto__:null,AdapterDateFns:MF},Symbol.toStringTag,{value:"Module"})),r4=qn(SF);function a4(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;te.indexOf(r)!==-1):e.indexOf(t)!==-1}const i4=(e,t)=>r=>{(r.key==="Enter"||r.key===" ")&&(e(r),r.preventDefault(),r.stopPropagation())},o4=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?o4(t.shadowRoot):t:null};function CF(e){return _r("PrivatePickersMonth",e)}const I0=wr("PrivatePickersMonth",["root","selected"]),OF=["disabled","onSelect","selected","value","tabIndex","hasFocus","onFocus","onBlur"],AF=e=>{const{classes:t,selected:r}=e;return Tr({root:["root",r&&"selected"]},CF,t)},PF=wn(Cr,{name:"PrivatePickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${I0.selected}`]:t.selected}]})(({theme:e})=>Gt({flex:"1 0 33.33%",display:"flex",alignItems:"center",justifyContent:"center",color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:Ef(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{pointerEvents:"none",color:e.palette.text.secondary},[`&.${I0.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),Jw=()=>{},DF=e=>{const{disabled:t,onSelect:r,selected:i,value:c,tabIndex:o,hasFocus:a,onFocus:n=Jw,onBlur:l=Jw}=e,f=Vn(e,OF),s=AF(e),u=()=>{r(c)},d=$e.useRef(null);return x9(()=>{if(a){var h;(h=d.current)==null||h.focus()}},[a]),je.jsx(PF,Gt({ref:d,component:"button",type:"button",className:s.root,tabIndex:o,onClick:u,onKeyDown:i4(u),color:i?"primary":void 0,variant:i?"h5":"subtitle1",disabled:t,onFocus:h=>n(h,c),onBlur:h=>l(h,c)},f))},Rr=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:Gt({},e)}}}}),EF={previousMonth:"Vorige maand",nextMonth:"Volgende maand",openPreviousView:"open vorige view",openNextView:"open volgende view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"jaarweergave is geopend, schakel over naar kalenderweergave":"kalenderweergave is geopend, switch naar jaarweergave",start:"Start",end:"Einde",cancelButtonLabel:"Annuleren",clearButtonLabel:"Resetten",okButtonLabel:"OK",todayButtonLabel:"Vandaag",clockLabelText:(e,t,r)=>`Selecteer ${e}. ${t===null?"Geen tijd geselecteerd":`Geselecteerde tijd is ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} uren`,minutesClockNumberText:e=>`${e} minuten`,secondsClockNumberText:e=>`${e} seconden`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Kies datum, geselecteerde datum is ${t.format(t.date(e),"fullDate")}`:"Kies datum",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Kies tijd, geselecteerde tijd is ${t.format(t.date(e),"fullTime")}`:"Kies tijd",timeTableLabel:"kies tijd",dateTableLabel:"kies datum"},RF=Rr(EF),LF={previousMonth:"Poprzedni miesiąc",nextMonth:"Następny miesiąc",openPreviousView:"otwórz poprzedni widok",openNextView:"otwórz następny widok",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"otwarty jest widok roku, przełącz na widok kalendarza":"otwarty jest widok kalendarza, przełącz na widok roku",start:"Początek",end:"Koniec",cancelButtonLabel:"Anuluj",clearButtonLabel:"Wyczyść",okButtonLabel:"Zatwierdź",todayButtonLabel:"Dzisiaj",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"Nie wybrano czasu":`Wybrany czas to ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} godzin`,minutesClockNumberText:e=>`${e} minut`,secondsClockNumberText:e=>`${e} sekund`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Wybierz datę, obecnie wybrana data to ${t.format(t.date(e),"fullDate")}`:"Wybierz datę",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Wybierz czas, obecnie wybrany czas to ${t.format(t.date(e),"fullTime")}`:"Wybierz czas",timeTableLabel:"wybierz czas",dateTableLabel:"wybierz datę"},IF=Rr(LF),FF={previousMonth:"Mês anterior",nextMonth:"Próximo mês",openPreviousView:"Abrir próxima seleção",openNextView:"Abrir seleção anterior",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"Seleção de ano está aberta, alternando para seleção de calendário":"Seleção de calendários está aberta, alternando para seleção de ano",start:"Início",end:"Fim",cancelButtonLabel:"Cancelar",clearButtonLabel:"Limpar",okButtonLabel:"OK",todayButtonLabel:"Hoje",datePickerDefaultToolbarTitle:"Selecione a data",dateTimePickerDefaultToolbarTitle:"Selecione data e hora",timePickerDefaultToolbarTitle:"Selecione a hora",dateRangePickerDefaultToolbarTitle:"Selecione o intervalo entre datas",clockLabelText:(e,t,r)=>`Selecione ${e}. ${t===null?"Hora não selecionada":`Selecionado a hora ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} horas`,minutesClockNumberText:e=>`${e} minutos`,secondsClockNumberText:e=>`${e} segundos`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Escolha uma data, data selecionada ${t.format(t.date(e),"fullDate")}`:"Escolha uma data",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Escolha uma hora, hora selecionada ${t.format(t.date(e),"fullTime")}`:"Escolha uma hora",timeTableLabel:"escolha uma hora",dateTableLabel:"escolha uma data"},NF=Rr(FF),jF={previousMonth:"Önceki ay",nextMonth:"Sonraki ay",openPreviousView:"sonraki görünüm",openNextView:"önceki görünüm",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"yıl görünümü açık, takvim görünümüne geç":"takvim görünümü açık, yıl görünümüne geç",inputModeToggleButtonAriaLabel:(e,t)=>e?`metin girişi görünümü açık, şuraya gidin: ${t} görünümü`:`${t} görünüm açık, metin girişi görünümüne gidin`,start:"Başlangıç",end:"Bitiş",cancelButtonLabel:"iptal",clearButtonLabel:"Temizle",okButtonLabel:"Tamam",todayButtonLabel:"Bugün",datePickerDefaultToolbarTitle:"Tarih Seç",dateTimePickerDefaultToolbarTitle:"Tarih & Saat seç",timePickerDefaultToolbarTitle:"Saat seç",dateRangePickerDefaultToolbarTitle:"Tarih aralığı seçin",clockLabelText:(e,t,r)=>`${e} seç. ${t===null?"Zaman seçilmedi":`Seçilen zaman: ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} saat`,minutesClockNumberText:e=>`${e} dakika`,secondsClockNumberText:e=>`${e} saniye`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Tarih seçin, seçilen tarih: ${t.format(e,"fullDate")}`:"Tarih seç",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Saat seçin, seçilen saat: ${t.format(e,"fullTime")}`:"Saat seç",timeTableLabel:"saat seç",dateTableLabel:"tarih seç"},$F=Rr(jF),Wc={hours:"Stunden",minutes:"Minuten",seconds:"Sekunden"},Qw={calendar:"Kalenderansicht",clock:"Uhransicht"},BF={previousMonth:"Letzter Monat",nextMonth:"Nächster Monat",openPreviousView:"Letzte Ansicht öffnen",openNextView:"Nächste Ansicht öffnen",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"Jahresansicht ist geöffnet, zur Kalenderansicht wechseln":"Kalenderansicht ist geöffnet, zur Jahresansicht wechseln",inputModeToggleButtonAriaLabel:(e,t)=>e?`Texteingabeansicht ist geöffnet, zur ${Qw[t]} wechseln`:`${Qw[t]} ist geöffnet, zur Texteingabeansicht wechseln`,start:"Beginn",end:"Ende",cancelButtonLabel:"Abbrechen",clearButtonLabel:"Löschen",okButtonLabel:"OK",todayButtonLabel:"Heute",datePickerDefaultToolbarTitle:"Datum auswählen",dateTimePickerDefaultToolbarTitle:"Datum & Uhrzeit auswählen",timePickerDefaultToolbarTitle:"Uhrzeit auswählen",dateRangePickerDefaultToolbarTitle:"Datumsbereich auswählen",clockLabelText:(e,t,r)=>{var i;return`${(i=Wc[e])!=null?i:e} auswählen. ${t===null?"Keine Uhrzeit ausgewählt":`Gewählte Uhrzeit ist ${r.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} ${Wc.hours}`,minutesClockNumberText:e=>`${e} ${Wc.minutes}`,secondsClockNumberText:e=>`${e} ${Wc.seconds}`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Datum auswählen, gewähltes Datum ist ${t.format(t.date(e),"fullDate")}`:"Datum auswählen",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Uhrzeit auswählen, gewählte Uhrzeit ist ${t.format(t.date(e),"fullTime")}`:"Uhrzeit auswählen",timeTableLabel:"Uhrzeit auswählen",dateTableLabel:"Datum auswählen"},zF=Rr(BF),qF={hours:"las horas",minutes:"los minutos",seconds:"los segundos"},WF={previousMonth:"Último mes",nextMonth:"Próximo mes",openPreviousView:"abrir la última vista",openNextView:"abrir la siguiente vista",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"la vista del año está abierta, cambie a la vista de calendario":"la vista de calendario está abierta, cambie a la vista del año",inputModeToggleButtonAriaLabel:(e,t)=>e?`la vista de entrada de texto está abierta, ir a la vista ${t}`:`la vista ${t} está abierta, ir a la vista de entrada de texto`,start:"Empezar",end:"Terminar",cancelButtonLabel:"Cancelar",clearButtonLabel:"Limpiar",okButtonLabel:"OK",todayButtonLabel:"Hoy",datePickerDefaultToolbarTitle:"Seleccionar fecha",dateTimePickerDefaultToolbarTitle:"Seleccionar fecha & hora",timePickerDefaultToolbarTitle:"Seleccionar hora",dateRangePickerDefaultToolbarTitle:"Seleccionar rango de fecha",clockLabelText:(e,t,r)=>`Seleccione ${qF[e]}. ${t===null?"Sin tiempo seleccionado":`El tiempo seleccionado es ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} horas`,minutesClockNumberText:e=>`${e} minutos`,secondsClockNumberText:e=>`${e} segundos`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Elige la fecha, la fecha elegida es ${t.format(t.date(e),"fullDate")}`:"Elige la fecha",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Elige la hora, la hora elegido es ${t.format(t.date(e),"fullTime")}`:"Elige la hora",timeTableLabel:"elige la fecha",dateTableLabel:"elige la hora"},UF=Rr(WF),HF={previousMonth:"ماه گذشته",nextMonth:"ماه آینده",openPreviousView:"نمای قبلی",openNextView:"نمای بعدی",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"نمای سال باز است، رفتن به نمای تقویم":"نمای تقویم باز است، رفتن به نمای سال",inputModeToggleButtonAriaLabel:(e,t)=>e?`نمای ورودی متن باز است، رفتن به نمای ${t}`:`نمای ${t} باز است، رفتن به نمای ورودی متن`,start:"شروع",end:"پایان",cancelButtonLabel:"لغو",clearButtonLabel:"پاک کردن",okButtonLabel:"اوکی",todayButtonLabel:"امروز",datePickerDefaultToolbarTitle:"تاریخ را انتخاب کنید",dateTimePickerDefaultToolbarTitle:"تاریخ و ساعت را انتخاب کنید",timePickerDefaultToolbarTitle:"ساعت را انتخاب کنید",dateRangePickerDefaultToolbarTitle:"محدوده تاریخ را انتخاب کنید",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"هیچ ساعتی انتخاب نشده است":`ساعت انتخاب ${r.format(t,"fullTime")} می باشد`}`,hoursClockNumberText:e=>`${e} ساعت ها`,minutesClockNumberText:e=>`${e} دقیقه ها`,secondsClockNumberText:e=>`${e} ثانیه ها`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`تاریخ را انتخاب کنید، تاریخ انتخاب شده ${t.format(t.date(e),"fullDate")} می باشد`:"تاریخ را انتخاب کنید",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`ساعت را انتخاب کنید، ساعت انتخاب شده ${t.format(t.date(e),"fullTime")} می باشد`:"ساعت را انتخاب کنید",timeTableLabel:"انتخاب تاریخ",dateTableLabel:"انتخاب ساعت"},VF=Rr(HF),YF={hours:"tunnit",minutes:"minuutit",seconds:"sekuntit"},e_={calendar:"kalenteri",clock:"kello"},GF={previousMonth:"Edellinen kuukausi",nextMonth:"Seuraava kuukausi",openPreviousView:"avaa edellinen kuukausi",openNextView:"avaa seuraava kuukausi",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"vuosinäkymä on auki, vaihda kalenterinäkymään":"kalenterinäkymä on auki, vaihda vuosinäkymään",inputModeToggleButtonAriaLabel:(e,t)=>e?`tekstikenttä on auki, mene ${e_[t]}näkymään`:`${e_[t]}näkymä on auki, mene tekstikenttään`,start:"Alku",end:"Loppu",cancelButtonLabel:"Peruuta",clearButtonLabel:"Tyhjennä",okButtonLabel:"OK",todayButtonLabel:"Tänään",datePickerDefaultToolbarTitle:"Valitse päivä",dateTimePickerDefaultToolbarTitle:"Valitse päivä ja aika",timePickerDefaultToolbarTitle:"Valitse aika",dateRangePickerDefaultToolbarTitle:"Valitse aikaväli",clockLabelText:(e,t,r)=>`Valitse ${YF[e]}. ${t===null?"Ei aikaa valittuna":`Valittu aika on ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} tuntia`,minutesClockNumberText:e=>`${e} minuuttia`,secondsClockNumberText:e=>`${e} sekunttia`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Valitse päivä, valittu päivä on ${t.format(t.date(e),"fullDate")}`:"Valitse päivä",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Valitse aika, valittu aika on ${t.format(t.date(e),"fullTime")}`:"Valitse aika",timeTableLabel:"valitse aika",dateTableLabel:"valitse päivä"},XF=Rr(GF),ZF={hours:"Hodiny",minutes:"Minuty",seconds:"Sekundy"},t_={calendar:"kalendáře",clock:"času"},KF={previousMonth:"Další měsíc",nextMonth:"Předchozí month",openPreviousView:"otevřít předchozí zobrazení",openNextView:"otevřít další zobrazení",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"roční zobrazení otevřeno, přepněte do zobrazení kalendáře":"zobrazení kalendáře otevřeno, přepněte do zobrazení roku",inputModeToggleButtonAriaLabel:(e,t)=>e?`Zobrazení pro zadávání textu je otevřené, přepněte do zobrazení ${t_[t]}`:`Zobrazení ${t_[t]} je otevřené, přepněte do zobrazení textového pole`,start:"Začátek",end:"Konec",cancelButtonLabel:"Zrušit",clearButtonLabel:"Vymazat",okButtonLabel:"Potvrdit",todayButtonLabel:"Dnes",datePickerDefaultToolbarTitle:"Vyberte datum",dateTimePickerDefaultToolbarTitle:"Vyberte datum a čas",timePickerDefaultToolbarTitle:"Vyberte čas",dateRangePickerDefaultToolbarTitle:"Vyberete rozmezí dat",clockLabelText:(e,t,r)=>{var i;return`${(i=ZF[e])!=null?i:e} vybrány. ${t===null?"Není vybrán čas":`Vybraný čas je ${r.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} hodin`,minutesClockNumberText:e=>`${e} minut`,secondsClockNumberText:e=>`${e} sekund`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Vybrané datum, vybrané datum je ${t.format(e,"fullDate")}`:"Vyberte datum",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Vybrané čas, vybraný čas je ${t.format(e,"fullTime")}`:"Vyberte čas",timeTableLabel:"vyberte čas",dateTableLabel:"vyberte datum"},JF=Rr(KF),QF={hours:"heures",minutes:"minutes",seconds:"secondes"},n_={calendar:"calendrier",clock:"horloge"},eN={previousMonth:"Mois précédent",nextMonth:"Mois suivant",openPreviousView:"Ouvrir la vue précédente",openNextView:"Ouvrir la vue suivante",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"La vue année est ouverte, ouvrir la vue calendrier":"La vue calendrier est ouverte, ouvrir la vue année",inputModeToggleButtonAriaLabel:(e,t)=>e?`passer du champ text au ${n_[t]}`:`passer du ${n_[t]} au champ text`,start:"Début",end:"Fin",cancelButtonLabel:"Annuler",clearButtonLabel:"Vider",okButtonLabel:"OK",todayButtonLabel:"Aujourd'hui",clockLabelText:(e,t,r)=>`Choix des ${QF[e]}. ${t===null?"Aucune heure choisie":`L'heure choisie est ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} heures`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} secondes`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choisir la date, la date sélectionnée est ${t.format(t.date(e),"fullDate")}`:"Choisir la date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choisir l'heure, l'heure sélectionnée est ${t.format(t.date(e),"fullTime")}`:"Choisir l'heure",timeTableLabel:"choix de l'heure",dateTableLabel:"choix de la date"},tN=Rr(eN),Uc={hours:"Óra",minutes:"Perc",seconds:"Másodperc"},r_={calendar:"naptár",clock:"óra"},nN={previousMonth:"Előző hónap",nextMonth:"Következő hónap",openPreviousView:"Előző nézet megnyitása",openNextView:"Következő nézet megnyitása",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"az évválasztó már nyitva, váltson a naptárnézetre":"a naptárnézet már nyitva, váltson az évválasztóra",inputModeToggleButtonAriaLabel:(e,t)=>e?`szöveges beviteli nézet aktív, váltás ${r_[t]} nézetre`:`${r_[t]} beviteli nézet aktív, váltás szöveges beviteli nézetre`,start:"Kezdő dátum",end:"Záró dátum",cancelButtonLabel:"Mégse",clearButtonLabel:"Törlés",okButtonLabel:"OK",todayButtonLabel:"Ma",datePickerDefaultToolbarTitle:"Dátum kiválasztása",dateTimePickerDefaultToolbarTitle:"Dátum és idő kiválasztása",timePickerDefaultToolbarTitle:"Idő kiválasztása",dateRangePickerDefaultToolbarTitle:"Dátumhatárok kiválasztása",clockLabelText:(e,t,r)=>{var i;return`${(i=Uc[e])!=null?i:e} kiválasztása. ${t===null?"Nincs kiválasztva idő":`A kiválasztott idő ${r.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} ${Uc.hours.toLowerCase()}`,minutesClockNumberText:e=>`${e} ${Uc.minutes.toLowerCase()}`,secondsClockNumberText:e=>`${e} ${Uc.seconds.toLowerCase()}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Válasszon dátumot, a kiválasztott dátum: ${t.format(e,"fullDate")}`:"Válasszon dátumot",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Válasszon időt, a kiválasztott idő: ${t.format(e,"fullTime")}`:"Válasszon időt",timeTableLabel:"válasszon időt",dateTableLabel:"válasszon dátumot"},rN=Rr(nN),l4={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",inputModeToggleButtonAriaLabel:(e,t)=>e?`text input view is open, go to ${t} view`:`${t} view is open, go to text input view`,start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerDefaultToolbarTitle:"Select date",dateTimePickerDefaultToolbarTitle:"Select date & time",timePickerDefaultToolbarTitle:"Select time",dateRangePickerDefaultToolbarTitle:"Select date range",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose date, selected date is ${t.format(t.date(e),"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose time, selected time is ${t.format(t.date(e),"fullTime")}`:"Choose time",timeTableLabel:"pick time",dateTableLabel:"pick date"},s4=l4,aN=Rr(l4),iN={previousMonth:"Forrige måned",nextMonth:"Neste måned",openPreviousView:"åpne forrige visning",openNextView:"åpne neste visning",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"årsvisning er åpen, bytt til kalendervisning":"kalendervisning er åpen, bytt til årsvisning",start:"Start",end:"Slutt",cancelButtonLabel:"Avbryt",clearButtonLabel:"Fjern",okButtonLabel:"OK",todayButtonLabel:"I dag",clockLabelText:(e,t,r)=>`Velg ${e}. ${t===null?"Ingen tid valgt":`Valgt tid er ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} timer`,minutesClockNumberText:e=>`${e} minutter`,secondsClockNumberText:e=>`${e} sekunder`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velg dato, valgt dato er ${t.format(t.date(e),"fullDate")}`:"Velg dato",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velg tid, valgt tid er ${t.format(t.date(e),"fullTime")}`:"Velg tid",timeTableLabel:"velg tid",dateTableLabel:"velg dato"},oN=Rr(iN),lN={previousMonth:"Föregående månad",nextMonth:"Nästa månad",openPreviousView:"öppna föregående vy",openNextView:"öppna nästa vy",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"årsvyn är öppen, byt till kalendervy":"kalendervyn är öppen, byt till årsvy",start:"Start",end:"Slut",cancelButtonLabel:"Avbryt",clearButtonLabel:"Rensa",okButtonLabel:"OK",todayButtonLabel:"Idag",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"Ingen tid vald":`Vald tid är ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} timmar`,minutesClockNumberText:e=>`${e} minuter`,secondsClockNumberText:e=>`${e} sekunder`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Välj datum, valt datum är ${t.format(t.date(e),"fullDate")}`:"Välj datum",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Välj tid, vald tid är ${t.format(t.date(e),"fullTime")}`:"Välj tid",timeTableLabel:"välj tid",dateTableLabel:"välj datum"},sN=Rr(lN),uN={hours:"le ore",minutes:"i minuti",seconds:"i secondi"},cN={previousMonth:"Mese precedente",nextMonth:"Mese successivo",openPreviousView:"apri la vista precedente",openNextView:"apri la vista successiva",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"la vista dell'anno è aperta, passare alla vista del calendario":"la vista dell'calendario è aperta, passare alla vista dell'anno",inputModeToggleButtonAriaLabel:(e,t)=>e?`la vista del campo di testo è aperta, passare alla vista ${t}`:`la vista aperta è: ${t}, vai alla vista del campo di testo`,start:"Inizio",end:"Fine",cancelButtonLabel:"Cancellare",clearButtonLabel:"Sgomberare",okButtonLabel:"OK",todayButtonLabel:"Oggi",datePickerDefaultToolbarTitle:"Seleziona data",dateTimePickerDefaultToolbarTitle:"Seleziona data e orario",timePickerDefaultToolbarTitle:"Seleziona orario",dateRangePickerDefaultToolbarTitle:"Seleziona intervallo di date",clockLabelText:(e,t,r)=>`Seleziona ${uN[e]}. ${t===null?"Nessun orario selezionato":`L'ora selezionata è ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} ore`,minutesClockNumberText:e=>`${e} minuti`,secondsClockNumberText:e=>`${e} secondi`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Scegli la data, la data selezionata è ${t.format(t.date(e),"fullDate")}`:"Scegli la data",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Scegli l'ora, l'ora selezionata è ${t.format(t.date(e),"fullTime")}`:"Scegli l'ora",timeTableLabel:"scegli un'ora",dateTableLabel:"scegli una data"},fN=Rr(cN),dN={hours:"小时",minutes:"分钟",seconds:"秒"},hN={previousMonth:"上个月",nextMonth:"下个月",openPreviousView:"前一个视图",openNextView:"下一个视图",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"年视图已打开,切换为日历视图":"日历视图已打开,切换为年视图",start:"开始",end:"结束",cancelButtonLabel:"取消",clearButtonLabel:"清除",okButtonLabel:"确认",todayButtonLabel:"今天",clockLabelText:(e,t,r)=>`Select ${dN[e]}. ${t===null?"未选择时间":`已选择${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e}小时`,minutesClockNumberText:e=>`${e}分钟`,secondsClockNumberText:e=>`${e}秒`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`选择日期,已选择${t.format(t.date(e),"fullDate")}`:"选择日期",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`选择时间,已选择${t.format(t.date(e),"fullTime")}`:"选择时间",timeTableLabel:"选择时间",dateTableLabel:"选择日期"},pN=Rr(hN),gN={hours:"시간을",minutes:"분을",seconds:"초를"},mN={previousMonth:"이전 달",nextMonth:"다음 달",openPreviousView:"이전 화면 보기",openNextView:"다음 화면 보기",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"연도 선택 화면에서 달력 화면으로 전환하기":"달력 화면에서 연도 선택 화면으로 전환하기",inputModeToggleButtonAriaLabel:(e,t)=>e?`텍스트 입력 화면에서 ${t} 화면으로 전환하기`:`${t} 화면에서 텍스트 입력 화면으로 전환하기`,start:"시작",end:"종료",cancelButtonLabel:"취소",clearButtonLabel:"초기화",okButtonLabel:"확인",todayButtonLabel:"오늘",datePickerDefaultToolbarTitle:"날짜 선택하기",dateTimePickerDefaultToolbarTitle:"날짜 & 시간 선택하기",timePickerDefaultToolbarTitle:"시간 선택하기",dateRangePickerDefaultToolbarTitle:"날짜 범위 선택하기",clockLabelText:(e,t,r)=>`${gN[e]} 선택하세요. ${t===null?"시간을 선택하지 않았습니다.":`현재 선택된 시간은 ${r.format(t,"fullTime")}입니다.`}`,hoursClockNumberText:e=>`${e}시간`,minutesClockNumberText:e=>`${e}분`,secondsClockNumberText:e=>`${e}초`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`날짜를 선택하세요. 현재 선택된 날짜는 ${t.format(t.date(e),"fullDate")}입니다.`:"날짜를 선택하세요",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`시간을 선택하세요. 현재 선택된 시간은 ${t.format(t.date(e),"fullTime")}입니다.`:"시간을 선택하세요",timeTableLabel:"선택한 시간",dateTableLabel:"선택한 날짜"},vN=Rr(mN),yN={previousMonth:"Fyrri mánuður",nextMonth:"Næsti mánuður",openPreviousView:"opna fyrri skoðun",openNextView:"opna næstu skoðun",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"ársskoðun er opin, skipta yfir í dagatalsskoðun":"dagatalsskoðun er opin, skipta yfir í ársskoðun",inputModeToggleButtonAriaLabel:(e,t)=>{const r=t==="calendar"?"dagatals":"klukku";return e?`textainnsláttur er opinn, fara í ${r}skoðun`:`${r}skoðun er opin, opna fyrir textainnslátt`},start:"Upphaf",end:"Endir",cancelButtonLabel:"Hætta við",clearButtonLabel:"Hreinsa",okButtonLabel:"OK",todayButtonLabel:"Í dag",datePickerDefaultToolbarTitle:"Velja dagsetningu",dateTimePickerDefaultToolbarTitle:"Velja dagsetningu og tíma",timePickerDefaultToolbarTitle:"Velja tíma",dateRangePickerDefaultToolbarTitle:"Velja tímabil",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"Enginn tími valinn":`Valinn tími er ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} klukkustundir`,minutesClockNumberText:e=>`${e} mínútur`,secondsClockNumberText:e=>`${e} sekúndur`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velja dagsetningu, valin dagsetning er ${t.format(t.date(e),"fullDate")}`:"Velja dagsetningu",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velja tíma, valinn tími er ${t.format(t.date(e),"fullTime")}`:"Velja tíma",timeTableLabel:"velja tíma",dateTableLabel:"velja dagsetningu"},bN=Rr(yN),Hc={hours:"時間",minutes:"分",seconds:"秒"},a_={calendar:"カレンダー表示",clock:"時計表示"},xN={previousMonth:"先月",nextMonth:"来月",openPreviousView:"前の表示を開く",openNextView:"次の表示を開く",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"年選択表示からカレンダー表示に切り替える":"カレンダー表示から年選択表示に切り替える",inputModeToggleButtonAriaLabel:(e,t)=>e?`テキスト入力表示から${a_[t]}に切り替える`:`${a_[t]}からテキスト入力表示に切り替える`,start:"開始",end:"終了",cancelButtonLabel:"キャンセル",clearButtonLabel:"クリア",okButtonLabel:"確定",todayButtonLabel:"今日",datePickerDefaultToolbarTitle:"日付を選択",dateTimePickerDefaultToolbarTitle:"日時を選択",timePickerDefaultToolbarTitle:"時間を選択",dateRangePickerDefaultToolbarTitle:"日付の範囲を選択",clockLabelText:(e,t,r)=>{var i;return`${(i=Hc[e])!=null?i:e}を選択してください ${t===null?"時間が選択されていません":`選択した時間は ${r.format(t,"fullTime")} です`}`},hoursClockNumberText:e=>`${e} ${Hc.hours}`,minutesClockNumberText:e=>`${e} ${Hc.minutes}`,secondsClockNumberText:e=>`${e} ${Hc.seconds}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`日付を選択してください。選択した日付は ${t.format(e,"fullDate")} です`:"日付を選択してください",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`時間を選択してください。選択した時間は ${t.format(e,"fullTime")} です`:"時間を選択してください",timeTableLabel:"時間を選択",dateTableLabel:"日付を選択"},wN=Rr(xN),_N={previousMonth:"Попередній місяць",nextMonth:"Наступний місяць",openPreviousView:"відкрити попередній вигляд",openNextView:"відкрити наступний вигляд",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"річний вигляд відкрито, перейти до календарного вигляду":"календарний вигляд відкрито, перейти до річного вигляду",inputModeToggleButtonAriaLabel:(e,t)=>e?`текстове поле відкрите, перейти до ${t} вигляду`:`${t} вигляд наразі відкрито, перейти до текстового поля`,start:"Початок",end:"Кінець",cancelButtonLabel:"Відміна",clearButtonLabel:"Очистити",okButtonLabel:"OK",todayButtonLabel:"Сьогодні",datePickerDefaultToolbarTitle:"Вибрати дату",dateTimePickerDefaultToolbarTitle:"Вибрати дату і час",timePickerDefaultToolbarTitle:"Вибрати час",dateRangePickerDefaultToolbarTitle:"Вибрати календарний період",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"Час не вибраний":`Вибрано час ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} годин`,minutesClockNumberText:e=>`${e} хвилин`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Оберіть дату, обрана дата ${t.format(e,"fullDate")}`:"Оберіть дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Оберіть час, обраний час ${t.format(e,"fullTime")}`:"Оберіть час",timeTableLabel:"оберіть час",dateTableLabel:"оберіть дату"},TN=Rr(_N),kN={previousMonth:"پچھلا مہینہ",nextMonth:"اگلا مہینہ",openPreviousView:"پچھلا ویو کھولیں",openNextView:"اگلا ویو کھولیں",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"سال والا ویو کھلا ہے۔ کیلنڈر والا ویو کھولیں":"کیلنڈر والا ویو کھلا ہے۔ سال والا ویو کھولیں",inputModeToggleButtonAriaLabel:(e,t)=>e?`،ٹیکسٹ ویو کھلا ہے ${t} ویو کھولیں`:`${t} ویو کھلا ہے، ٹیکسٹ ویو کھولیں`,start:"شروع",end:"ختم",cancelButtonLabel:"کینسل",clearButtonLabel:"کلئیر",okButtonLabel:"اوکے",todayButtonLabel:"آج",datePickerDefaultToolbarTitle:"تاریخ منتخب کریں",dateTimePickerDefaultToolbarTitle:"تاریخ اور وقت منتخب کریں",timePickerDefaultToolbarTitle:"وقت منتخب کریں",dateRangePickerDefaultToolbarTitle:"تاریخوں کی رینج منتخب کریں",clockLabelText:(e,t,r)=>`${e} منتخب کریں ${t===null?"کوئی وقت منتخب نہیں":`منتخب وقت ہے ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} گھنٹے`,minutesClockNumberText:e=>`${e} منٹ`,secondsClockNumberText:e=>`${e} سیکنڈ`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`تاریخ منتخب کریں، منتخب شدہ تاریخ ہے ${t.format(e,"fullDate")}`:"تاریخ منتخب کریں",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`وقت منتخب کریں، منتخب شدہ وقت ہے ${t.format(e,"fullTime")}`:"وقت منتخب کریں",timeTableLabel:"وقت منتخب کریں",dateTableLabel:"تاریخ منتخب کریں"},MN=Rr(kN),Jg={hours:"гадзіны",minutes:"хвіліны",seconds:"секунды",calendar:"календара",clock:"часу"},SN={previousMonth:"Папярэдні месяц",nextMonth:"Наступны месяц",openPreviousView:"адкрыць папярэдні выгляд",openNextView:"адкрыць наступны выгляд",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"гадавы выгляд адкрыты, перайсці да каляндарнага выгляду":"каляндарны выгляд адкрыты, перайсці да гадавога выгляду",inputModeToggleButtonAriaLabel:(e,t)=>e?`тэкставае поле адкрыта, перайсці да выгляду ${Jg[t]}`:`Выгляд ${Jg[t]} зараз адкрыты, перайсці да тэкставага поля`,start:"Пачатак",end:"Канец",cancelButtonLabel:"Адмена",clearButtonLabel:"Ачысціць",okButtonLabel:"OK",todayButtonLabel:"Сёння",datePickerDefaultToolbarTitle:"Абраць дату",dateTimePickerDefaultToolbarTitle:"Абраць дату і час",timePickerDefaultToolbarTitle:"Абраць час",dateRangePickerDefaultToolbarTitle:"Абраць каляндарны перыяд",clockLabelText:(e,t,r)=>`Абярыце ${Jg[e]}. ${t===null?"Час не абраны":`Абраны час ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} гадзін`,minutesClockNumberText:e=>`${e} хвілін`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Абраць дату, абрана дата ${t.format(e,"fullDate")}`:"Абраць дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Абраць час, абрыны час ${t.format(e,"fullTime")}`:"Абраць час",timeTableLabel:"абраць час",dateTableLabel:"абраць дату"},CN=Rr(SN),ON={hours:"часы",minutes:"минуты",seconds:"секунды"},i_={calendar:"календарный",clock:"часовой"},AN={previousMonth:"Предыдущий месяц",nextMonth:"Следующий месяц",openPreviousView:"открыть предыдущий вид",openNextView:"открыть следующий вид",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"открыт годовой вид, переключить на календарный вид":"открыт календарный вид, переключить на годовой вид",inputModeToggleButtonAriaLabel:(e,t)=>e?`Открыт текстовый вид, перейти на ${i_[t]} вид`:`Открыт ${i_[t]} вид, перейти на текстовый вид`,start:"Начало",end:"Конец",cancelButtonLabel:"Отмена",clearButtonLabel:"Очистить",okButtonLabel:"Ок",todayButtonLabel:"Сегодня",datePickerDefaultToolbarTitle:"Выбрать дату",dateTimePickerDefaultToolbarTitle:"Выбрать дату и время",timePickerDefaultToolbarTitle:"Выбрать время",dateRangePickerDefaultToolbarTitle:"Выбрать период",clockLabelText:(e,t,r)=>`Выбрать ${ON[e]}. ${t===null?"Время не выбрано":`Выбрано время ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} часов`,minutesClockNumberText:e=>`${e} минут`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Выберите дату, выбрана дата ${t.format(e,"fullDate")}`:"Выберите дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Выберите время, выбрано время ${t.format(e,"fullTime")}`:"Выберите время",timeTableLabel:"выбрать время",dateTableLabel:"выбрать дату"},PN=Rr(AN),Ey=$e.createContext(null);function DN(e){const t=fr({props:e,name:"MuiLocalizationProvider"}),{children:r,dateAdapter:i,dateFormats:c,dateLibInstance:o,locale:a,adapterLocale:n,localeText:l}=t,f=$e.useMemo(()=>new i({locale:n??a,formats:c,instance:o}),[i,a,n,c,o]),s=$e.useMemo(()=>({minDate:f.date("1900-01-01T00:00:00.000"),maxDate:f.date("2099-12-31T00:00:00.000")}),[f]),u=$e.useMemo(()=>({utils:f,defaultDates:s,localeText:Gt({},s4,l??{})}),[s,f,l]);return je.jsx(Ey.Provider,{value:u,children:r})}const rc=()=>{const e=$e.useContext(Ey);if(e===null)throw new Error("MUI: Can not find utils in context. It looks like you forgot to wrap your component in LocalizationProvider, or pass dateAdapter prop directly.");return e},yr=()=>rc().utils,ac=()=>rc().defaultDates,ti=()=>rc().localeText,ic=()=>{const e=yr();return $e.useRef(e.date()).current};function u4(e){return _r("MuiMonthPicker",e)}const EN=wr("MuiMonthPicker",["root"]),Mu=({date:e,disableFuture:t,disablePast:r,maxDate:i,minDate:c,isDateDisabled:o,utils:a})=>{const n=a.startOfDay(a.date());r&&a.isBefore(c,n)&&(c=n),t&&a.isAfter(i,n)&&(i=n);let l=e,f=e;for(a.isBefore(e,c)&&(l=a.date(c),f=null),a.isAfter(e,i)&&(f&&(f=a.date(i)),l=null);l||f;){if(l&&a.isAfter(l,i)&&(l=null),f&&a.isBefore(f,c)&&(f=null),l){if(!o(l))return l;l=a.addDays(l,1)}if(f){if(!o(f))return f;f=a.addDays(f,-1)}}return null},Ry=(e,t)=>{const r=e.date(t);return e.isValid(r)?r:null},Va=(e,t,r)=>{if(t==null)return r;const i=e.date(t);return e.isValid(i)?i:r},RN=["className","date","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange"],LN=e=>{const{classes:t}=e;return Tr({root:["root"]},u4,t)};function IN(e,t){const r=yr(),i=ac(),c=fr({props:e,name:t});return Gt({disableFuture:!1,disablePast:!1},c,{minDate:Va(r,c.minDate,i.minDate),maxDate:Va(r,c.maxDate,i.maxDate)})}const FN=wn("div",{name:"MuiMonthPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({width:310,display:"flex",flexWrap:"wrap",alignContent:"stretch",margin:"0 4px"}),c4=$e.forwardRef(function(t,r){const i=yr(),c=ic(),o=IN(t,"MuiMonthPicker"),{className:a,date:n,disabled:l,disableFuture:f,disablePast:s,maxDate:u,minDate:d,onChange:h,shouldDisableMonth:p,readOnly:g,disableHighlightToday:y,autoFocus:v=!1,onMonthFocus:m,hasFocus:b,onFocusedViewChange:x}=o,_=Vn(o,RN),w=o,k=LN(w),T=w9(),M=$e.useMemo(()=>n??i.startOfMonth(c),[c,i,n]),S=$e.useMemo(()=>n!=null?i.getMonth(n):y?null:i.getMonth(c),[c,n,i,y]),[C,P]=$e.useState(()=>S||i.getMonth(c)),D=$e.useCallback(E=>{const W=i.startOfMonth(s&&i.isAfter(c,d)?c:d),G=i.startOfMonth(f&&i.isBefore(c,u)?c:u);return i.isBefore(E,W)||i.isAfter(E,G)?!0:p?p(E):!1},[f,s,u,d,c,p,i]),O=E=>{if(g)return;const W=i.setMonth(M,E);h(W,"finish")},[R,F]=gy({name:"MonthPicker",state:"hasFocus",controlled:b,default:v}),A=$e.useCallback(E=>{F(E),x&&x(E)},[F,x]),z=$e.useCallback(E=>{D(i.setMonth(M,E))||(P(E),A(!0),m&&m(E))},[D,i,M,A,m]);$e.useEffect(()=>{P(E=>S!==null&&E!==S?S:E)},[S]);const B=Od(E=>{switch(E.key){case"ArrowUp":z((12+C-3)%12),E.preventDefault();break;case"ArrowDown":z((12+C+3)%12),E.preventDefault();break;case"ArrowLeft":z((12+C+(T.direction==="ltr"?-1:1))%12),E.preventDefault();break;case"ArrowRight":z((12+C+(T.direction==="ltr"?1:-1))%12),E.preventDefault();break}}),$=$e.useCallback((E,W)=>{z(W)},[z]),j=$e.useCallback(()=>{A(!1)},[A]),N=i.getMonth(c);return je.jsx(FN,Gt({ref:r,className:jr(k.root,a),ownerState:w,onKeyDown:B},_,{children:i.getMonthArray(M).map(E=>{const W=i.getMonth(E),G=i.format(E,"monthShort"),L=l||D(E);return je.jsx(DF,{value:W,selected:W===S,tabIndex:W===C&&!L?0:-1,hasFocus:R&&W===C,onSelect:O,onFocus:$,onBlur:j,disabled:L,"aria-current":N===W?"date":void 0,children:G},G)})}))});function Ly(e,t,r){const{value:i,onError:c}=e,o=rc(),a=$e.useRef(null),n=t({adapter:o,value:i,props:e});return $e.useEffect(()=>{c&&!r(n,a.current)&&c(n,i),a.current=n},[r,c,a,n,i]),n}const Iy=({props:e,value:t,adapter:r})=>{const i=r.utils.date(),c=r.utils.date(t),o=Va(r.utils,e.minDate,r.defaultDates.minDate),a=Va(r.utils,e.maxDate,r.defaultDates.maxDate);if(c===null)return null;switch(!0){case!r.utils.isValid(t):return"invalidDate";case!!(e.shouldDisableDate&&e.shouldDisableDate(c)):return"shouldDisableDate";case!!(e.disableFuture&&r.utils.isAfterDay(c,i)):return"disableFuture";case!!(e.disablePast&&r.utils.isBeforeDay(c,i)):return"disablePast";case!!(o&&r.utils.isBeforeDay(c,o)):return"minDate";case!!(a&&r.utils.isAfterDay(c,a)):return"maxDate";default:return null}},f4=({shouldDisableDate:e,minDate:t,maxDate:r,disableFuture:i,disablePast:c})=>{const o=rc();return $e.useCallback(a=>Iy({adapter:o,value:a,props:{shouldDisableDate:e,minDate:t,maxDate:r,disableFuture:i,disablePast:c}})!==null,[o,e,t,r,i,c])},NN=(e,t)=>e===t,Fy=e=>Ly(e,Iy,NN),jN=(e,t,r)=>(i,c)=>{switch(c.type){case"changeMonth":return Gt({},i,{slideDirection:c.direction,currentMonth:c.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return Gt({},i,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(i.focusedDay!=null&&c.focusedDay!=null&&r.isSameDay(c.focusedDay,i.focusedDay))return i;const o=c.focusedDay!=null&&!t&&!r.isSameMonth(i.currentMonth,c.focusedDay);return Gt({},i,{focusedDay:c.focusedDay,isMonthSwitchingAnimating:o&&!e&&!c.withoutMonthSwitchingAnimation,currentMonth:o?r.startOfMonth(c.focusedDay):i.currentMonth,slideDirection:c.focusedDay!=null&&r.isAfterDay(c.focusedDay,i.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},$N=({date:e,defaultCalendarMonth:t,disableFuture:r,disablePast:i,disableSwitchToMonthOnDayFocus:c=!1,maxDate:o,minDate:a,onMonthChange:n,reduceAnimations:l,shouldDisableDate:f})=>{var s;const u=ic(),d=yr(),h=$e.useRef(jN(!!l,c,d)).current,[p,g]=$e.useReducer(h,{isMonthSwitchingAnimating:!1,focusedDay:e||u,currentMonth:d.startOfMonth((s=e??t)!=null?s:u),slideDirection:"left"}),y=$e.useCallback(_=>{g(Gt({type:"changeMonth"},_)),n&&n(_.newMonth)},[n]),v=$e.useCallback(_=>{const w=_??u;d.isSameMonth(w,p.currentMonth)||y({newMonth:d.startOfMonth(w),direction:d.isAfterDay(w,p.currentMonth)?"left":"right"})},[p.currentMonth,y,u,d]),m=f4({shouldDisableDate:f,minDate:a,maxDate:o,disableFuture:r,disablePast:i}),b=$e.useCallback(()=>{g({type:"finishMonthSwitchingAnimation"})},[]),x=$e.useCallback((_,w)=>{m(_)||g({type:"changeFocusedDay",focusedDay:_,withoutMonthSwitchingAnimation:w})},[m]);return{calendarState:p,changeMonth:v,changeFocusedDay:x,isDateDisabled:m,onMonthSwitchingAnimationEnd:b,handleChangeMonth:y}},BN=e=>_r("MuiPickersFadeTransitionGroup",e),zN=wr("MuiPickersFadeTransitionGroup",["root"]),qN=e=>{const{classes:t}=e;return Tr({root:["root"]},BN,t)},o_=500,WN=wn(eS,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function d4(e){const t=fr({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:r,className:i,reduceAnimations:c,transKey:o}=t,a=qN(t);return c?r:je.jsx(WN,{className:jr(a.root,i),children:je.jsx(tS,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:o_,enter:o_/2,exit:0},children:r},o)})}const Pu=36,oc=2,Ny=320,UN=358;function h4(e){return _r("MuiPickersDay",e)}const xu=wr("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),HN=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today"],VN=e=>{const{selected:t,disableMargin:r,disableHighlightToday:i,today:c,disabled:o,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:n,classes:l}=e;return Tr({root:["root",t&&"selected",o&&"disabled",!r&&"dayWithMargin",!i&&c&&"today",a&&n&&"dayOutsideMonth",a&&!n&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},h4,l)},p4=({theme:e,ownerState:t})=>Gt({},e.typography.caption,{width:Pu,height:Pu,borderRadius:"50%",padding:0,backgroundColor:e.palette.background.paper,color:e.palette.text.primary,"&:hover":{backgroundColor:Ef(e.palette.action.active,e.palette.action.hoverOpacity)},"&:focus":{backgroundColor:Ef(e.palette.action.active,e.palette.action.hoverOpacity),[`&.${xu.selected}`]:{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${xu.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium,transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),"&:hover":{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${xu.disabled}`]:{color:e.palette.text.disabled}},!t.disableMargin&&{margin:`0 ${oc}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:e.palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${xu.selected})`]:{border:`1px solid ${e.palette.text.secondary}`}}),g4=(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableMargin&&t.dayWithMargin,!r.disableHighlightToday&&r.today&&t.today,!r.outsideCurrentMonth&&r.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,r.outsideCurrentMonth&&!r.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},YN=wn(_9,{name:"MuiPickersDay",slot:"Root",overridesResolver:g4})(p4),GN=wn("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:g4})(({theme:e,ownerState:t})=>Gt({},p4({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),Qg=()=>{},XN=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiPickersDay"}),{autoFocus:c=!1,className:o,day:a,disabled:n=!1,disableHighlightToday:l=!1,disableMargin:f=!1,isAnimating:s,onClick:u,onDaySelect:d,onFocus:h=Qg,onBlur:p=Qg,onKeyDown:g=Qg,onMouseDown:y,outsideCurrentMonth:v,selected:m=!1,showDaysOutsideCurrentMonth:b=!1,children:x,today:_=!1}=i,w=Vn(i,HN),k=Gt({},i,{autoFocus:c,disabled:n,disableHighlightToday:l,disableMargin:f,selected:m,showDaysOutsideCurrentMonth:b,today:_}),T=VN(k),M=yr(),S=$e.useRef(null),C=_l(S,r);my(()=>{c&&!n&&!s&&!v&&S.current.focus()},[c,n,s,v]);const P=O=>{y&&y(O),v&&O.preventDefault()},D=O=>{n||d(a,"finish"),v&&O.currentTarget.focus(),u&&u(O)};return v&&!b?je.jsx(GN,{className:jr(T.root,T.hiddenDaySpacingFiller,o),ownerState:k,role:w.role}):je.jsx(YN,Gt({className:jr(T.root,o),ownerState:k,ref:C,centerRipple:!0,disabled:n,tabIndex:m?0:-1,onKeyDown:O=>g(O,a),onFocus:O=>h(O,a),onBlur:O=>p(O,a),onClick:D,onMouseDown:P},w,{children:x||M.format(a,"dayOfMonth")}))}),ZN=(e,t)=>e.autoFocus===t.autoFocus&&e.isAnimating===t.isAnimating&&e.today===t.today&&e.disabled===t.disabled&&e.selected===t.selected&&e.disableMargin===t.disableMargin&&e.showDaysOutsideCurrentMonth===t.showDaysOutsideCurrentMonth&&e.disableHighlightToday===t.disableHighlightToday&&e.className===t.className&&e.sx===t.sx&&e.outsideCurrentMonth===t.outsideCurrentMonth&&e.onFocus===t.onFocus&&e.onBlur===t.onBlur&&e.onDaySelect===t.onDaySelect,m4=$e.memo(XN,ZN),KN=e=>_r("PrivatePickersSlideTransition",e),sa=wr("PrivatePickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),JN=["children","className","reduceAnimations","slideDirection","transKey"],QN=e=>{const{classes:t}=e;return Tr({root:["root"]},KN,t)},v4=350,ej=wn(eS,{name:"PrivatePickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${sa["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${sa["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${sa.slideEnterActive}`]:t.slideEnterActive},{[`.${sa.slideExit}`]:t.slideExit},{[`.${sa["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${sa["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:v4,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${sa["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${sa["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${sa.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${sa.slideExit}`]:{transform:"translate(0%)"},[`& .${sa["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${sa["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}}),tj=e=>{const{children:t,className:r,reduceAnimations:i,slideDirection:c,transKey:o}=e,a=Vn(e,JN),n=QN(e);if(i)return je.jsx("div",{className:jr(n.root,r),children:t});const l={exit:sa.slideExit,enterActive:sa.slideEnterActive,enter:sa[`slideEnter-${c}`],exitActive:sa[`slideExitActiveLeft-${c}`]};return je.jsx(ej,{className:jr(n.root,r),childFactory:f=>$e.cloneElement(f,{classNames:l}),role:"presentation",children:je.jsx(T9,Gt({mountOnEnter:!0,unmountOnExit:!0,timeout:v4,classNames:l},a,{children:t}),o)})},nj=e=>_r("MuiDayPicker",e),rj=wr("MuiDayPicker",["header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer"]),aj=e=>{const{classes:t}=e;return Tr({header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"]},nj,t)},ij=e=>e.charAt(0).toUpperCase(),y4=(Pu+oc*2)*6,oj=wn("div",{name:"MuiDayPicker",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),lj=wn(Cr,{name:"MuiDayPicker",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.secondary})),sj=wn("div",{name:"MuiDayPicker",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:y4}),uj=wn(tj,{name:"MuiDayPicker",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:y4}),cj=wn("div",{name:"MuiDayPicker",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),fj=wn("div",{name:"MuiDayPicker",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${oc}px 0`,display:"flex",justifyContent:"center"});function dj(e){const t=ic(),r=yr(),i=fr({props:e,name:"MuiDayPicker"}),c=aj(i),{onFocusedDayChange:o,className:a,currentMonth:n,selectedDays:l,disabled:f,disableHighlightToday:s,focusedDay:u,isMonthSwitchingAnimating:d,loading:h,onSelectedDaysChange:p,onMonthSwitchingAnimationEnd:g,readOnly:y,reduceAnimations:v,renderDay:m,renderLoading:b=()=>je.jsx("span",{children:"..."}),showDaysOutsideCurrentMonth:x,slideDirection:_,TransitionProps:w,disablePast:k,disableFuture:T,minDate:M,maxDate:S,shouldDisableDate:C,dayOfWeekFormatter:P=ij,hasFocus:D,onFocusedViewChange:O,gridLabelId:R}=i,F=f4({shouldDisableDate:C,minDate:M,maxDate:S,disablePast:k,disableFuture:T}),[A,z]=$e.useState(()=>u||t),B=$e.useCallback(U=>{O&&O(U)},[O]),$=$e.useCallback((U,Q="finish")=>{y||p(U,Q)},[p,y]),j=$e.useCallback(U=>{F(U)||(o(U),z(U),B(!0))},[F,o,B]),N=Ad();function E(U,Q){switch(U.key){case"ArrowUp":j(r.addDays(Q,-7)),U.preventDefault();break;case"ArrowDown":j(r.addDays(Q,7)),U.preventDefault();break;case"ArrowLeft":{const Y=r.addDays(Q,N.direction==="ltr"?-1:1),Z=N.direction==="ltr"?r.getPreviousMonth(Q):r.getNextMonth(Q),X=Mu({utils:r,date:Y,minDate:N.direction==="ltr"?r.startOfMonth(Z):Y,maxDate:N.direction==="ltr"?Y:r.endOfMonth(Z),isDateDisabled:F});j(X||Y),U.preventDefault();break}case"ArrowRight":{const Y=r.addDays(Q,N.direction==="ltr"?1:-1),Z=N.direction==="ltr"?r.getNextMonth(Q):r.getPreviousMonth(Q),X=Mu({utils:r,date:Y,minDate:N.direction==="ltr"?Y:r.startOfMonth(Z),maxDate:N.direction==="ltr"?r.endOfMonth(Z):Y,isDateDisabled:F});j(X||Y),U.preventDefault();break}case"Home":j(r.startOfWeek(Q)),U.preventDefault();break;case"End":j(r.endOfWeek(Q)),U.preventDefault();break;case"PageUp":j(r.getNextMonth(Q)),U.preventDefault();break;case"PageDown":j(r.getPreviousMonth(Q)),U.preventDefault();break}}function W(U,Q){j(Q)}function G(U,Q){D&&r.isSameDay(A,Q)&&B(!1)}const L=r.getMonth(n),q=l.filter(U=>!!U).map(U=>r.startOfDay(U)),H=L,V=$e.useMemo(()=>$e.createRef(),[H]),te=r.startOfWeek(t),ee=$e.useMemo(()=>{const U=r.startOfMonth(n),Q=r.endOfMonth(n);return F(A)||r.isAfterDay(A,Q)||r.isBeforeDay(A,U)?Mu({utils:r,date:A,minDate:U,maxDate:Q,disablePast:k,disableFuture:T,isDateDisabled:F}):A},[n,T,k,A,F,r]);return je.jsxs("div",{role:"grid","aria-labelledby":R,children:[je.jsx(oj,{role:"row",className:c.header,children:r.getWeekdays().map((U,Q)=>{var Y;return je.jsx(lj,{variant:"caption",role:"columnheader","aria-label":r.format(r.addDays(te,Q),"weekday"),className:c.weekDayLabel,children:(Y=P==null?void 0:P(U))!=null?Y:U},U+Q.toString())})}),h?je.jsx(sj,{className:c.loadingContainer,children:b()}):je.jsx(uj,Gt({transKey:H,onExited:g,reduceAnimations:v,slideDirection:_,className:jr(a,c.slideTransition)},w,{nodeRef:V,children:je.jsx(cj,{ref:V,role:"rowgroup",className:c.monthContainer,children:r.getWeekArray(n).map(U=>je.jsx(fj,{role:"row",className:c.weekContainer,children:U.map(Q=>{const Y=ee!==null&&r.isSameDay(Q,ee),Z=q.some(ie=>r.isSameDay(ie,Q)),X=r.isSameDay(Q,t),re={key:Q==null?void 0:Q.toString(),day:Q,isAnimating:d,disabled:f||F(Q),autoFocus:D&&Y,today:X,outsideCurrentMonth:r.getMonth(Q)!==L,selected:Z,disableHighlightToday:s,showDaysOutsideCurrentMonth:x,onKeyDown:E,onFocus:W,onBlur:G,onDaySelect:$,tabIndex:Y?0:-1,role:"gridcell","aria-selected":Z};return X&&(re["aria-current"]="date"),m?m(Q,q,re):$e.createElement(m4,Gt({},re,{key:re.key}))})},`week-${U[0]}`))})}))]})}function jy({onChange:e,onViewChange:t,openTo:r,view:i,views:c}){var o,a;const[n,l]=gy({name:"Picker",state:"view",controlled:i,default:r&&bo(c,r)?r:c[0]}),f=(o=c[c.indexOf(n)-1])!=null?o:null,s=(a=c[c.indexOf(n)+1])!=null?a:null,u=$e.useCallback(p=>{l(p),t&&t(p)},[l,t]),d=$e.useCallback(()=>{s&&u(s)},[s,u]);return{handleChangeAndOpenNext:$e.useCallback((p,g)=>{const y=g==="finish";e(p,y&&s?"partial":g),y&&d()},[s,e,d]),nextView:s,previousView:f,openNext:d,openView:n,setOpenView:u}}const hj=ro(je.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),pj=ro(je.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),gj=ro(je.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),b4=ro(je.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),x4=ro(je.jsxs($e.Fragment,{children:[je.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),je.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),mj=ro(je.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),vj=ro(je.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Pen"),yj=ro(je.jsxs($e.Fragment,{children:[je.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),je.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");function bj(e){return _r("MuiPickersArrowSwitcher",e)}wr("MuiPickersArrowSwitcher",["root","spacer","button"]);const xj=["children","className","components","componentsProps","isLeftDisabled","isLeftHidden","isRightDisabled","isRightHidden","leftArrowButtonText","onLeftClick","onRightClick","rightArrowButtonText"],wj=e=>{const{classes:t}=e;return Tr({root:["root"],spacer:["spacer"],button:["button"]},bj,t)},_j=wn("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),Tj=wn("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),l_=wn(jl,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>Gt({},e.hidden&&{visibility:"hidden"})),w4=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiPickersArrowSwitcher"}),{children:c,className:o,components:a,componentsProps:n,isLeftDisabled:l,isLeftHidden:f,isRightDisabled:s,isRightHidden:u,leftArrowButtonText:d,onLeftClick:h,onRightClick:p,rightArrowButtonText:g}=i,y=Vn(i,xj),m=Ad().direction==="rtl",b=(n==null?void 0:n.leftArrowButton)||{},x=(a==null?void 0:a.LeftArrowIcon)||pj,_=(n==null?void 0:n.rightArrowButton)||{},w=(a==null?void 0:a.RightArrowIcon)||gj,k=i,T=wj(k);return je.jsxs(_j,Gt({ref:r,className:jr(T.root,o),ownerState:k},y,{children:[je.jsx(l_,Gt({as:a==null?void 0:a.LeftArrowButton,size:"small","aria-label":d,title:d,disabled:l,edge:"end",onClick:h},b,{className:jr(T.button,b.className),ownerState:Gt({},k,b,{hidden:f}),children:m?je.jsx(w,{}):je.jsx(x,{})})),c?je.jsx(Cr,{variant:"subtitle1",component:"span",children:c}):je.jsx(Tj,{className:T.spacer,ownerState:k}),je.jsx(l_,Gt({as:a==null?void 0:a.RightArrowButton,size:"small","aria-label":g,title:g,edge:"start",disabled:s,onClick:p},_,{className:jr(T.button,_.className),ownerState:Gt({},k,_,{hidden:u}),children:m?je.jsx(x,{}):je.jsx(w,{})}))]}))}),kj=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,F0=(e,t,r)=>r&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,Mj=(e,t,r,i)=>{const c=F0(i.getHours(e),t,r);return i.setHours(e,c)},s_=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),_4=(e=!1,t)=>(r,i)=>e?t.isAfter(r,i):s_(r,t)>s_(i,t);function Sj(e,{disableFuture:t,maxDate:r}){const i=yr();return $e.useMemo(()=>{const c=i.date(),o=i.startOfMonth(t&&i.isBefore(c,r)?c:r);return!i.isAfter(o,e)},[t,r,e,i])}function Cj(e,{disablePast:t,minDate:r}){const i=yr();return $e.useMemo(()=>{const c=i.date(),o=i.startOfMonth(t&&i.isAfter(c,r)?c:r);return!i.isBefore(o,e)},[t,r,e,i])}function T4(e,t,r){const i=yr(),c=kj(e,i),o=$e.useCallback(a=>{const n=e==null?null:Mj(e,a,!!t,i);r(n,"partial")},[t,e,r,i]);return{meridiemMode:c,handleMeridiemChange:o}}const k4=e=>()=>{},Oj=e=>_r("MuiPickersCalendarHeader",e),Aj=wr("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),Pj=e=>{const{classes:t}=e;return Tr({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Oj,t)},Dj=wn("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),Ej=wn("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>Gt({display:"flex",maxHeight:30,overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),Rj=wn("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),Lj=wn(jl,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto"}),Ij=wn(hj,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e,ownerState:t})=>Gt({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"},t.openView==="year"&&{transform:"rotate(180deg)"})),Fj=k4();function Nj(e){const t=fr({props:e,name:"MuiPickersCalendarHeader"}),{components:r={},componentsProps:i={},currentMonth:c,disabled:o,disableFuture:a,disablePast:n,getViewSwitchingButtonText:l,leftArrowButtonText:f,maxDate:s,minDate:u,onMonthChange:d,onViewChange:h,openView:p,reduceAnimations:g,rightArrowButtonText:y,views:v,labelId:m}=t;Fj({leftArrowButtonText:f,rightArrowButtonText:y,getViewSwitchingButtonText:l});const b=ti(),x=f??b.previousMonth,_=y??b.nextMonth,w=l??b.calendarViewSwitchingButtonAriaLabel,k=yr(),T=Pj(t),M=i.switchViewButton||{},S=()=>d(k.getNextMonth(c),"left"),C=()=>d(k.getPreviousMonth(c),"right"),P=Sj(c,{disableFuture:a,maxDate:s}),D=Cj(c,{disablePast:n,minDate:u}),O=()=>{if(!(v.length===1||!h||o))if(v.length===2)h(v.find(F=>F!==p)||v[0]);else{const F=v.indexOf(p)!==0?0:1;h(v[F])}};if(v.length===1&&v[0]==="year")return null;const R=t;return je.jsxs(Dj,{ownerState:R,className:T.root,children:[je.jsxs(Ej,{role:"presentation",onClick:O,ownerState:R,"aria-live":"polite",className:T.labelContainer,children:[je.jsx(d4,{reduceAnimations:g,transKey:k.format(c,"monthAndYear"),children:je.jsx(Rj,{id:m,ownerState:R,className:T.label,children:k.format(c,"monthAndYear")})}),v.length>1&&!o&&je.jsx(Lj,Gt({size:"small",as:r.SwitchViewButton,"aria-label":w(p),className:T.switchViewButton},M,{children:je.jsx(Ij,{as:r.SwitchViewIcon,ownerState:R,className:T.switchViewIcon})}))]}),je.jsx(tS,{in:p==="day",children:je.jsx(w4,{leftArrowButtonText:x,rightArrowButtonText:_,components:r,componentsProps:i,onLeftClick:C,onRightClick:S,isLeftDisabled:D,isRightDisabled:P})})]})}const Di=$e.createContext(null);function jj(e){return _r("PrivatePickersYear",e)}const _o=wr("PrivatePickersYear",["root","modeDesktop","modeMobile","yearButton","selected","disabled"]),$j=["autoFocus","className","children","disabled","onClick","onKeyDown","value","tabIndex","onFocus","onBlur"],Bj=e=>{const{wrapperVariant:t,disabled:r,selected:i,classes:c}=e,o={root:["root",t&&`mode${k9(t)}`],yearButton:["yearButton",r&&"disabled",i&&"selected"]};return Tr(o,jj,c)},zj=wn("div",{name:"PrivatePickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${_o.modeDesktop}`]:t.modeDesktop},{[`&.${_o.modeMobile}`]:t.modeMobile}]})(({ownerState:e})=>Gt({flexBasis:"33.3%",display:"flex",alignItems:"center",justifyContent:"center"},(e==null?void 0:e.wrapperVariant)==="desktop"&&{flexBasis:"25%"})),qj=wn("button",{name:"PrivatePickersYear",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${_o.disabled}`]:t.disabled},{[`&.${_o.selected}`]:t.selected}]})(({theme:e})=>Gt({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:Ef(e.palette.action.active,e.palette.action.hoverOpacity)},[`&.${_o.disabled}`]:{color:e.palette.text.secondary},[`&.${_o.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),u_=()=>{},Wj=$e.forwardRef(function(t,r){const{autoFocus:i,className:c,children:o,disabled:a,onClick:n,onKeyDown:l,value:f,tabIndex:s,onFocus:u=u_,onBlur:d=u_}=t,h=Vn(t,$j),p=$e.useRef(null),g=_l(p,r),y=$e.useContext(Di),v=Gt({},t,{wrapperVariant:y}),m=Bj(v);return $e.useEffect(()=>{i&&p.current.focus()},[i]),je.jsx(zj,{className:jr(m.root,c),ownerState:v,children:je.jsx(qj,Gt({ref:g,disabled:a,type:"button",tabIndex:a?-1:s,onClick:b=>n(b,f),onKeyDown:b=>l(b,f),onFocus:b=>u(b,f),onBlur:b=>d(b,f),className:m.yearButton,ownerState:v},h,{children:o}))})});function M4(e){return _r("MuiYearPicker",e)}const Uj=wr("MuiYearPicker",["root"]),Hj=e=>{const{classes:t}=e;return Tr({root:["root"]},M4,t)};function Vj(e,t){const r=yr(),i=ac(),c=fr({props:e,name:t});return Gt({disablePast:!1,disableFuture:!1},c,{minDate:Va(r,c.minDate,i.minDate),maxDate:Va(r,c.maxDate,i.maxDate)})}const Yj=wn("div",{name:"MuiYearPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",maxHeight:"304px"}),S4=$e.forwardRef(function(t,r){const i=ic(),c=Ad(),o=yr(),a=Vj(t,"MuiYearPicker"),{autoFocus:n,className:l,date:f,disabled:s,disableFuture:u,disablePast:d,maxDate:h,minDate:p,onChange:g,readOnly:y,shouldDisableYear:v,disableHighlightToday:m,onYearFocus:b,hasFocus:x,onFocusedViewChange:_}=a,w=a,k=Hj(w),T=$e.useMemo(()=>f??o.startOfYear(i),[i,o,f]),M=$e.useMemo(()=>f!=null?o.getYear(f):m?null:o.getYear(i),[i,f,o,m]),S=$e.useContext(Di),C=$e.useRef(null),[P,D]=$e.useState(()=>M||o.getYear(i)),[O,R]=M9({name:"YearPicker",state:"hasFocus",controlled:x,default:n}),F=$e.useCallback(q=>{R(q),_&&_(q)},[R,_]),A=$e.useCallback(q=>!!(d&&o.isBeforeYear(q,i)||u&&o.isAfterYear(q,i)||p&&o.isBeforeYear(q,p)||h&&o.isAfterYear(q,h)||v&&v(q)),[u,d,h,p,i,v,o]),z=(q,H,V="finish")=>{if(y)return;const te=o.setYear(T,H);g(te,V)},B=$e.useCallback(q=>{A(o.setYear(T,q))||(D(q),F(!0),b==null||b(q))},[A,o,T,F,b]);$e.useEffect(()=>{D(q=>M!==null&&q!==M?M:q)},[M]);const $=S==="desktop"?4:3,j=$e.useCallback((q,H)=>{switch(q.key){case"ArrowUp":B(H-$),q.preventDefault();break;case"ArrowDown":B(H+$),q.preventDefault();break;case"ArrowLeft":B(H+(c.direction==="ltr"?-1:1)),q.preventDefault();break;case"ArrowRight":B(H+(c.direction==="ltr"?1:-1)),q.preventDefault();break}},[B,c.direction,$]),N=$e.useCallback((q,H)=>{B(H)},[B]),E=$e.useCallback((q,H)=>{P===H&&F(!1)},[P,F]),W=o.getYear(i),G=$e.useRef(null),L=_l(r,G);return $e.useEffect(()=>{if(n||G.current===null)return;const q=G.current.querySelector('[tabindex="0"]');if(!q)return;const H=q.offsetHeight,V=q.offsetTop,te=G.current.clientHeight,ee=G.current.scrollTop,U=V+H;H>te||V{const H=o.getYear(q),V=H===M;return je.jsx(Wj,{selected:V,value:H,onClick:z,onKeyDown:j,autoFocus:O&&H===P,ref:V?C:void 0,disabled:s||A(q),tabIndex:H===P?0:-1,onFocus:N,onBlur:E,"aria-current":W===H?"date":void 0,children:o.format(q,"year")},o.format(q,"year"))})})}),$y=wn("div")({overflowX:"hidden",width:Ny,maxHeight:UN,display:"flex",flexDirection:"column",margin:"0 auto"}),Gj=typeof navigator<"u"&&/(android)/i.test(navigator.userAgent),C4=e=>_r("MuiCalendarPicker",e),Xj=wr("MuiCalendarPicker",["root","viewTransitionContainer"]),Zj=["autoFocus","onViewChange","date","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","classes"],Kj=e=>{const{classes:t}=e;return Tr({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},C4,t)};function Jj(e,t){const r=yr(),i=ac(),c=fr({props:e,name:t});return Gt({loading:!1,disablePast:!1,disableFuture:!1,openTo:"day",views:["year","day"],reduceAnimations:Gj,renderLoading:()=>je.jsx("span",{children:"..."})},c,{minDate:Va(r,c.minDate,i.minDate),maxDate:Va(r,c.maxDate,i.maxDate)})}const Qj=wn($y,{name:"MuiCalendarPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),e$=wn(d4,{name:"MuiCalendarPicker",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),O4=$e.forwardRef(function(t,r){const i=yr(),c=nS(),o=Jj(t,"MuiCalendarPicker"),{autoFocus:a,onViewChange:n,date:l,disableFuture:f,disablePast:s,defaultCalendarMonth:u,onChange:d,onYearChange:h,onMonthChange:p,reduceAnimations:g,shouldDisableDate:y,shouldDisableMonth:v,shouldDisableYear:m,view:b,views:x,openTo:_,className:w,disabled:k,readOnly:T,minDate:M,maxDate:S,disableHighlightToday:C,focusedView:P,onFocusedViewChange:D}=o,O=Vn(o,Zj),{openView:R,setOpenView:F,openNext:A}=jy({view:b,views:x,openTo:_,onChange:d,onViewChange:n}),{calendarState:z,changeFocusedDay:B,changeMonth:$,handleChangeMonth:j,isDateDisabled:N,onMonthSwitchingAnimationEnd:E}=$N({date:l,defaultCalendarMonth:u,reduceAnimations:g,onMonthChange:p,minDate:M,maxDate:S,shouldDisableDate:y,disablePast:s,disableFuture:f}),W=$e.useCallback((le,se)=>{const pe=i.startOfMonth(le),Te=i.endOfMonth(le),Se=N(le)?Mu({utils:i,date:le,minDate:i.isBefore(M,pe)?pe:M,maxDate:i.isAfter(S,Te)?Te:S,disablePast:s,disableFuture:f,isDateDisabled:N}):le;Se?(d(Se,se),p==null||p(pe)):(A(),$(pe)),B(Se,!0)},[B,f,s,N,S,M,d,p,$,A,i]),G=$e.useCallback((le,se)=>{const pe=i.startOfYear(le),Te=i.endOfYear(le),Se=N(le)?Mu({utils:i,date:le,minDate:i.isBefore(M,pe)?pe:M,maxDate:i.isAfter(S,Te)?Te:S,disablePast:s,disableFuture:f,isDateDisabled:N}):le;Se?(d(Se,se),h==null||h(Se)):(A(),$(pe)),B(Se,!0)},[B,f,s,N,S,M,d,h,A,i,$]),L=$e.useCallback((le,se)=>d(l&&le?i.mergeDateAndTime(le,l):le,se),[i,l,d]);$e.useEffect(()=>{l&&$(l)},[l]);const q=o,H=Kj(q),V={disablePast:s,disableFuture:f,maxDate:S,minDate:M},te=k&&l||M,ee=k&&l||S,U={disableHighlightToday:C,readOnly:T,disabled:k},Q=`${c}-grid-label`,[Y,Z]=gy({name:"DayPicker",state:"focusedView",controlled:P,default:a?R:null}),X=Y!==null,re=Od(le=>se=>{if(D){D(le)(se);return}Z(se?le:pe=>pe===le?null:pe)}),ie=$e.useRef(R);return $e.useEffect(()=>{ie.current!==R&&(ie.current=R,re(R)(!0))},[R,re]),je.jsxs(Qj,{ref:r,className:jr(H.root,w),ownerState:q,children:[je.jsx(Nj,Gt({},O,{views:x,openView:R,currentMonth:z.currentMonth,onViewChange:F,onMonthChange:(le,se)=>j({newMonth:le,direction:se}),minDate:te,maxDate:ee,disabled:k,disablePast:s,disableFuture:f,reduceAnimations:g,labelId:Q})),je.jsx(e$,{reduceAnimations:g,className:H.viewTransitionContainer,transKey:R,ownerState:q,children:je.jsxs("div",{children:[R==="year"&&je.jsx(S4,Gt({},O,V,U,{autoFocus:a,date:l,onChange:G,shouldDisableYear:m,hasFocus:X,onFocusedViewChange:re("year")})),R==="month"&&je.jsx(c4,Gt({},V,U,{autoFocus:a,hasFocus:X,className:w,date:l,onChange:W,shouldDisableMonth:v,onFocusedViewChange:re("month")})),R==="day"&&je.jsx(dj,Gt({},O,z,V,U,{autoFocus:a,onMonthSwitchingAnimationEnd:E,onFocusedDayChange:B,reduceAnimations:g,selectedDays:[l],onSelectedDaysChange:L,shouldDisableDate:y,hasFocus:X,onFocusedViewChange:re("day"),gridLabelId:Q}))]})})]})}),A4=e=>_r("MuiCalendarPickerSkeleton",e),t$=wr("MuiCalendarPickerSkeleton",["root","week","daySkeleton"]),n$=["className"],r$=e=>{const{classes:t}=e;return Tr({root:["root"],week:["week"],daySkeleton:["daySkeleton"]},A4,t)},a$=wn("div",{name:"MuiCalendarPickerSkeleton",slot:"Root",overridesResolver:(e,t)=>t.root})({alignSelf:"start"}),i$=wn("div",{name:"MuiCalendarPickerSkeleton",slot:"Week",overridesResolver:(e,t)=>t.week})({margin:`${oc}px 0`,display:"flex",justifyContent:"center"}),P4=wn(S9,{name:"MuiCalendarPickerSkeleton",slot:"DaySkeleton",overridesResolver:(e,t)=>t.daySkeleton})(({ownerState:e})=>Gt({margin:`0 ${oc}px`},e.day===0&&{visibility:"hidden"}));P4.propTypes={ownerState:oe.shape({day:oe.number.isRequired}).isRequired};const o$=[[0,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,0,0,0]];function l$(e){const t=fr({props:e,name:"MuiCalendarPickerSkeleton"}),{className:r}=t,i=Vn(t,n$),c=r$(i);return je.jsx(a$,Gt({className:jr(c.root,r)},i,{children:o$.map((o,a)=>je.jsx(i$,{className:c.week,children:o.map((n,l)=>je.jsx(P4,{variant:"circular",width:Pu,height:Pu,className:c.daySkeleton,ownerState:{day:n}},l))},a))}))}const Sl=220,Gi=36,Du={x:Sl/2,y:Sl/2},D4={x:Du.x,y:0},s$=D4.x-Du.x,u$=D4.y-Du.y,c$=e=>e*(180/Math.PI),E4=(e,t,r)=>{const i=t-Du.x,c=r-Du.y,o=Math.atan2(s$,u$)-Math.atan2(i,c);let a=c$(o);a=Math.round(a/e)*e,a%=360;const n=Math.floor(a/e)||0,l=i**2+c**2,f=Math.sqrt(l);return{value:n,distance:f}},f$=(e,t,r=1)=>{const i=r*6;let{value:c}=E4(i,e,t);return c=c*r%60,c},d$=(e,t,r)=>{const{value:i,distance:c}=E4(30,e,t);let o=i||12;return r?o%=12:c{const{classes:t}=e;return Tr({root:["root"],thumb:["thumb"]},h$,t)},v$=wn("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>Gt({width:2,backgroundColor:e.palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),y$=wn("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>Gt({width:4,height:4,backgroundColor:e.palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Gi/2}px)`,border:`${(Gi-4)/2}px solid ${e.palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:e.palette.primary.main}));function b$(e){const t=fr({props:e,name:"MuiClockPointer"}),{className:r,isInner:i,type:c,value:o}=t,a=Vn(t,g$),n=$e.useRef(c);$e.useEffect(()=>{n.current=c},[c]);const l=Gt({},t,{shouldAnimate:n.current!==c}),f=m$(l),s=()=>{let d=360/(c==="hours"?12:60)*o;return c==="hours"&&o>12&&(d-=360),{height:Math.round((i?.26:.4)*Sl),transform:`rotateZ(${d}deg)`}};return je.jsx(v$,Gt({style:s(),className:jr(r,f.root),ownerState:l},a,{children:je.jsx(y$,{ownerState:l,className:f.thumb})}))}function x$(e){return _r("MuiClock",e)}const w$=wr("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton"]),_$=e=>{const{classes:t}=e;return C9({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"]},x$,t)},T$=wn("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),k$=wn("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),M$=wn("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),S$=wn("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>Gt({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),C$=wn("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:e.palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),O$=wn(jl,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>Gt({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,left:8},t.meridiemMode==="am"&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}})),A$=wn(jl,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>Gt({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,right:8},t.meridiemMode==="pm"&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}}));function P$(e){const t=fr({props:e,name:"MuiClock"}),{ampm:r,ampmInClock:i,autoFocus:c,children:o,date:a,getClockLabelText:n,handleMeridiemChange:l,isTimeDisabled:f,meridiemMode:s,minutesStep:u=1,onChange:d,selectedId:h,type:p,value:g,disabled:y,readOnly:v,className:m}=t,b=t,x=yr(),_=$e.useContext(Di),w=$e.useRef(!1),k=_$(b),T=f(g,p),M=!r&&p==="hours"&&(g<1||g>12),S=($,j)=>{y||v||f($,p)||d($,j)},C=($,j)=>{let{offsetX:N,offsetY:E}=$;if(N===void 0){const G=$.target.getBoundingClientRect();N=$.changedTouches[0].clientX-G.left,E=$.changedTouches[0].clientY-G.top}const W=p==="seconds"||p==="minutes"?f$(N,E,u):d$(N,E,!!r);S(W,j)},P=$=>{w.current=!0,C($,"shallow")},D=$=>{w.current&&(C($,"finish"),w.current=!1)},O=$=>{$.buttons>0&&C($.nativeEvent,"shallow")},R=$=>{w.current&&(w.current=!1),C($.nativeEvent,"finish")},F=$e.useMemo(()=>p==="hours"?!0:g%5===0,[p,g]),A=p==="minutes"?u:1,z=$e.useRef(null);my(()=>{c&&z.current.focus()},[c]);const B=$=>{if(!w.current)switch($.key){case"Home":S(0,"partial"),$.preventDefault();break;case"End":S(p==="minutes"?59:23,"partial"),$.preventDefault();break;case"ArrowUp":S(g+A,"partial"),$.preventDefault();break;case"ArrowDown":S(g-A,"partial"),$.preventDefault();break}};return je.jsxs(T$,{className:jr(m,k.root),children:[je.jsxs(k$,{className:k.clock,children:[je.jsx(S$,{onTouchMove:P,onTouchEnd:D,onMouseUp:R,onMouseMove:O,ownerState:{disabled:y},className:k.squareMask}),!T&&je.jsxs($e.Fragment,{children:[je.jsx(C$,{className:k.pin}),a&&je.jsx(b$,{type:p,value:g,isInner:M,hasSelected:F})]}),je.jsx(M$,{"aria-activedescendant":h,"aria-label":n(p,a,x),ref:z,role:"listbox",onKeyDown:B,tabIndex:0,className:k.wrapper,children:o})]}),r&&(_==="desktop"||i)&&je.jsxs($e.Fragment,{children:[je.jsx(O$,{onClick:v?void 0:()=>l("am"),disabled:y||s===null,ownerState:b,className:k.amButton,children:je.jsx(Cr,{variant:"caption",children:"AM"})}),je.jsx(A$,{disabled:y||s===null,onClick:v?void 0:()=>l("pm"),ownerState:b,className:k.pmButton,children:je.jsx(Cr,{variant:"caption",children:"PM"})})]})]})}function D$(e){return _r("MuiClockNumber",e)}const wu=wr("MuiClockNumber",["root","selected","disabled"]),E$=["className","disabled","index","inner","label","selected"],R$=e=>{const{classes:t,selected:r,disabled:i}=e;return Tr({root:["root",r&&"selected",i&&"disabled"]},D$,t)},L$=wn("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${wu.disabled}`]:t.disabled},{[`&.${wu.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>Gt({height:Gi,width:Gi,position:"absolute",left:`calc((100% - ${Gi}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:e.palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:e.palette.background.paper},[`&.${wu.selected}`]:{color:e.palette.primary.contrastText},[`&.${wu.disabled}`]:{pointerEvents:"none",color:e.palette.text.disabled}},t.inner&&Gt({},e.typography.body2,{color:e.palette.text.secondary})));function R4(e){const t=fr({props:e,name:"MuiClockNumber"}),{className:r,disabled:i,index:c,inner:o,label:a,selected:n}=t,l=Vn(t,E$),f=t,s=R$(f),u=c%12/12*Math.PI*2-Math.PI/2,d=(Sl-Gi-2)/2*(o?.65:1),h=Math.round(Math.cos(u)*d),p=Math.round(Math.sin(u)*d);return je.jsx(L$,Gt({className:jr(r,s.root),"aria-disabled":i?!0:void 0,"aria-selected":n?!0:void 0,role:"option",style:{transform:`translate(${h}px, ${p+(Sl-Gi)/2}px`},ownerState:f},l,{children:a}))}const I$=({ampm:e,date:t,getClockNumberText:r,isDisabled:i,selectedId:c,utils:o})=>{const a=t?o.getHours(t):null,n=[],l=e?1:0,f=e?12:23,s=u=>a===null?!1:e?u===12?a===12||a===0:a===u||a-12===u:a===u;for(let u=l;u<=f;u+=1){let d=u.toString();u===0&&(d="00");const h=!e&&(u===0||u>12);d=o.formatNumber(d);const p=s(u);n.push(je.jsx(R4,{id:p?c:void 0,index:u,inner:h,selected:p,disabled:i(u),label:d,"aria-label":r(d)},u))}return n},c_=({utils:e,value:t,isDisabled:r,getClockNumberText:i,selectedId:c})=>{const o=e.formatNumber;return[[5,o("05")],[10,o("10")],[15,o("15")],[20,o("20")],[25,o("25")],[30,o("30")],[35,o("35")],[40,o("40")],[45,o("45")],[50,o("50")],[55,o("55")],[0,o("00")]].map(([a,n],l)=>{const f=a===t;return je.jsx(R4,{label:n,id:f?c:void 0,index:l+1,inner:!1,disabled:r(a),selected:f,"aria-label":i(n)},a)})};function L4(e){return _r("MuiClockPicker",e)}const F$=wr("MuiClockPicker",["root","arrowSwitcher"]),N$=e=>{const{classes:t}=e;return Tr({root:["root"],arrowSwitcher:["arrowSwitcher"]},L4,t)},j$=wn($y,{name:"MuiClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),$$=wn(w4,{name:"MuiClockPicker",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),B$=k4(),I4=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiClockPicker"}),{ampm:c=!1,ampmInClock:o=!1,autoFocus:a,components:n,componentsProps:l,date:f,disableIgnoringDatePartForTimeValidation:s,getClockLabelText:u,getHoursClockNumberText:d,getMinutesClockNumberText:h,getSecondsClockNumberText:p,leftArrowButtonText:g,maxTime:y,minTime:v,minutesStep:m=1,rightArrowButtonText:b,shouldDisableTime:x,showViewSwitcher:_,onChange:w,view:k,views:T=["hours","minutes"],openTo:M,onViewChange:S,className:C,disabled:P,readOnly:D}=i;B$({leftArrowButtonText:g,rightArrowButtonText:b,getClockLabelText:u,getHoursClockNumberText:d,getMinutesClockNumberText:h,getSecondsClockNumberText:p});const O=ti(),R=g??O.openPreviousView,F=b??O.openNextView,A=u??O.clockLabelText,z=d??O.hoursClockNumberText,B=h??O.minutesClockNumberText,$=p??O.secondsClockNumberText,{openView:j,setOpenView:N,nextView:E,previousView:W,handleChangeAndOpenNext:G}=jy({view:k,views:T,openTo:M,onViewChange:S,onChange:w}),L=ic(),q=yr(),H=$e.useMemo(()=>f||q.setSeconds(q.setMinutes(q.setHours(L,0),0),0),[f,L,q]),{meridiemMode:V,handleMeridiemChange:te}=T4(H,c,G),ee=$e.useCallback((X,re)=>{const ie=_4(s,q),le=({start:pe,end:Te})=>!(v&&ie(v,Te)||y&&ie(pe,y)),se=(pe,Te=1)=>pe%Te!==0?!1:x?!x(pe,re):!0;switch(re){case"hours":{const pe=F0(X,V,c),Te=q.setHours(H,pe),Se=q.setSeconds(q.setMinutes(Te,0),0),Oe=q.setSeconds(q.setMinutes(Te,59),59);return!le({start:Se,end:Oe})||!se(pe)}case"minutes":{const pe=q.setMinutes(H,X),Te=q.setSeconds(pe,0),Se=q.setSeconds(pe,59);return!le({start:Te,end:Se})||!se(X,m)}case"seconds":{const pe=q.setSeconds(H,X);return!le({start:pe,end:pe})||!se(X)}default:throw new Error("not supported")}},[c,H,s,y,V,v,m,x,q]),U=nS(),Q=$e.useMemo(()=>{switch(j){case"hours":{const X=(re,ie)=>{const le=F0(re,V,c);G(q.setHours(H,le),ie)};return{onChange:X,value:q.getHours(H),children:I$({date:f,utils:q,ampm:c,onChange:X,getClockNumberText:z,isDisabled:re=>P||ee(re,"hours"),selectedId:U})}}case"minutes":{const X=q.getMinutes(H),re=(ie,le)=>{G(q.setMinutes(H,ie),le)};return{value:X,onChange:re,children:c_({utils:q,value:X,onChange:re,getClockNumberText:B,isDisabled:ie=>P||ee(ie,"minutes"),selectedId:U})}}case"seconds":{const X=q.getSeconds(H),re=(ie,le)=>{G(q.setSeconds(H,ie),le)};return{value:X,onChange:re,children:c_({utils:q,value:X,onChange:re,getClockNumberText:$,isDisabled:ie=>P||ee(ie,"seconds"),selectedId:U})}}default:throw new Error("You must provide the type for ClockView")}},[j,q,f,c,z,B,$,V,G,H,ee,U,P]),Y=i,Z=N$(Y);return je.jsxs(j$,{ref:r,className:jr(Z.root,C),ownerState:Y,children:[_&&je.jsx($$,{className:Z.arrowSwitcher,leftArrowButtonText:R,rightArrowButtonText:F,components:n,componentsProps:l,onLeftClick:()=>N(W),onRightClick:()=>N(E),isLeftDisabled:!W,isRightDisabled:!E,ownerState:Y}),je.jsx(P$,Gt({autoFocus:a,date:f,ampmInClock:o,type:j,ampm:c,getClockLabelText:A,minutesStep:m,isTimeDisabled:ee,meridiemMode:V,handleMeridiemChange:te,selectedId:U,disabled:P,readOnly:D},Q))]})}),F4=e=>e.length===1&&e[0]==="year",N4=e=>e.length===2&&e.indexOf("month")!==-1&&e.indexOf("year")!==-1,z$=(e,t)=>F4(e)?{inputFormat:t.formats.year}:N4(e)?{disableMaskedInput:!0,inputFormat:t.formats.monthAndYear}:{inputFormat:t.formats.keyboardDate};function By(e,t){var r;const i=yr(),c=ac(),o=fr({props:e,name:t}),a=(r=o.views)!=null?r:["year","day"];return Gt({openTo:"day",disableFuture:!1,disablePast:!1},z$(a,i),o,{views:a,minDate:Va(i,o.minDate,c.minDate),maxDate:Va(i,o.maxDate,c.maxDate)})}const zy={emptyValue:null,getTodayValue:e=>e.date(),parseInput:Ry,areValuesEqual:(e,t,r)=>e.isEqual(t,r)};function j4(e){return _r("MuiPickersToolbar",e)}const qy=wr("MuiPickersToolbar",["root","content","penIconButton","penIconButtonLandscape"]),q$=e=>{const{classes:t,isLandscape:r}=e;return Tr({root:["root"],content:["content"],penIconButton:["penIconButton",r&&"penIconButtonLandscape"]},j4,t)},W$=wn("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>Gt({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),U$=wn(Jn,{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>Gt({flex:1},!e.isLandscape&&{alignItems:"center"})),H$=wn(jl,{name:"MuiPickersToolbar",slot:"PenIconButton",overridesResolver:(e,t)=>[{[`&.${qy.penIconButtonLandscape}`]:t.penIconButtonLandscape},t.penIconButton]})({}),V$=e=>e==="clock"?je.jsx(x4,{color:"inherit"}):je.jsx(b4,{color:"inherit"}),Wy=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiPickersToolbar"}),{children:c,className:o,getMobileKeyboardInputViewButtonText:a,isLandscape:n,isMobileKeyboardViewOpen:l,landscapeDirection:f="column",toggleMobileKeyboardView:s,toolbarTitle:u,viewType:d="calendar"}=i,h=i,p=ti(),g=q$(h);return je.jsxs(W$,{ref:r,className:jr(g.root,o),ownerState:h,children:[je.jsx(Cr,{color:"text.secondary",variant:"overline",children:u}),je.jsxs(U$,{container:!0,justifyContent:"space-between",className:g.content,ownerState:h,direction:n?f:"row",alignItems:n?"flex-start":"flex-end",children:[c,je.jsx(H$,{onClick:s,className:g.penIconButton,ownerState:h,color:"inherit","aria-label":a?a(l,d):p.inputModeToggleButtonAriaLabel(l,d),children:l?V$(d):je.jsx(vj,{color:"inherit"})})]})]})});function Y$(e){return _r("MuiDatePickerToolbar",e)}const G$=wr("MuiDatePickerToolbar",["root","title"]),X$=["parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],Z$=e=>{const{classes:t}=e;return Tr({root:["root"],title:["title"]},Y$,t)},K$=wn(Wy,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),J$=wn(Cr,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>Gt({},e.isLandscape&&{margin:"auto 16px auto auto"})),Uy=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiDatePickerToolbar"}),{parsedValue:c,isLandscape:o,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:n,toolbarFormat:l,toolbarPlaceholder:f="––",toolbarTitle:s,views:u}=i,d=Vn(i,X$),h=yr(),p=ti(),g=Z$(i),y=s??p.datePickerDefaultToolbarTitle,v=$e.useMemo(()=>c?l?h.formatByString(c,l):F4(u)?h.format(c,"year"):N4(u)?h.format(c,"month"):/en/.test(h.getCurrentLocaleCode())?h.format(c,"normalDateWithWeekday"):h.format(c,"normalDate"):f,[c,l,f,h,u]),m=i;return je.jsx(K$,Gt({ref:r,toolbarTitle:y,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:n,isLandscape:o,className:g.root},d,{children:je.jsx(J$,{variant:"h4",align:o?"left":"center",ownerState:m,className:g.title,children:v})}))}),Q$=["onAccept","onClear","onCancel","onSetToday","actions"],Hy=e=>{const{onAccept:t,onClear:r,onCancel:i,onSetToday:c,actions:o}=e,a=Vn(e,Q$),n=$e.useContext(Di),l=ti(),f=typeof o=="function"?o(n):o;if(f==null||f.length===0)return null;const s=f==null?void 0:f.map(u=>{switch(u){case"clear":return je.jsx(hi,{onClick:r,children:l.clearButtonLabel},u);case"cancel":return je.jsx(hi,{onClick:i,children:l.cancelButtonLabel},u);case"accept":return je.jsx(hi,{onClick:t,children:l.okButtonLabel},u);case"today":return je.jsx(hi,{onClick:c,children:l.todayButtonLabel},u);default:return null}});return je.jsx(O9,Gt({},a,{children:s}))};function eB(e){return _r("MuiPickersPopper",e)}wr("MuiPickersPopper",["root","paper"]);const tB=["onClick","onTouchStart"],nB=e=>{const{classes:t}=e;return Tr({root:["root"],paper:["paper"]},eB,t)},rB=wn(A9,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),aB=wn(rS,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>Gt({transformOrigin:"top center",outline:0},e.placement==="top"&&{transformOrigin:"bottom center"}));function iB(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){o.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),o.current=!1}},[e]);const a=Od(l=>{if(!o.current)return;const f=i.current;i.current=!1;const s=sg(c.current);if(!c.current||"clientX"in l&&iB(l,s))return;if(r.current){r.current=!1;return}let u;l.composedPath?u=l.composedPath().indexOf(c.current)>-1:u=!s.documentElement.contains(l.target)||c.current.contains(l.target),!u&&!f&&t(l)}),n=()=>{i.current=!0};return $e.useEffect(()=>{if(e){const l=sg(c.current),f=()=>{r.current=!0};return l.addEventListener("touchstart",a),l.addEventListener("touchmove",f),()=>{l.removeEventListener("touchstart",a),l.removeEventListener("touchmove",f)}}},[e,a]),$e.useEffect(()=>{if(e){const l=sg(c.current);return l.addEventListener("click",a),()=>{l.removeEventListener("click",a),i.current=!1}}},[e,a]),[c,n,n]}function lB(e){var t;const r=fr({props:e,name:"MuiPickersPopper"}),{anchorEl:i,children:c,containerRef:o=null,onBlur:a,onClose:n,onClear:l,onAccept:f,onCancel:s,onSetToday:u,open:d,PopperProps:h,role:p,TransitionComponent:g=D9,TrapFocusProps:y,PaperProps:v={},components:m,componentsProps:b}=r;$e.useEffect(()=>{function B($){d&&($.key==="Escape"||$.key==="Esc")&&n()}return document.addEventListener("keydown",B),()=>{document.removeEventListener("keydown",B)}},[n,d]);const x=$e.useRef(null);$e.useEffect(()=>{p!=="tooltip"&&(d?x.current=o4(document):x.current&&x.current instanceof HTMLElement&&setTimeout(()=>{x.current instanceof HTMLElement&&x.current.focus()}))},[d,p]);const[_,w,k]=oB(d,a??n),T=$e.useRef(null),M=_l(T,o),S=_l(M,_),C=r,P=nB(C),{onClick:D,onTouchStart:O}=v,R=Vn(v,tB),F=B=>{B.key==="Escape"&&(B.stopPropagation(),n())},A=(t=m==null?void 0:m.ActionBar)!=null?t:Hy,z=(m==null?void 0:m.PaperContent)||$e.Fragment;return je.jsx(rB,Gt({transition:!0,role:p,open:d,anchorEl:i,onKeyDown:F,className:P.root},h,{children:({TransitionProps:B,placement:$})=>je.jsx(P9,Gt({open:d,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:p==="tooltip",isEnabled:()=>!0},y,{children:je.jsx(g,Gt({},B,{children:je.jsx(aB,Gt({tabIndex:-1,elevation:8,ref:S,onClick:j=>{w(j),D&&D(j)},onTouchStart:j=>{k(j),O&&O(j)},ownerState:Gt({},C,{placement:$}),className:P.paper},R,{children:je.jsxs(z,Gt({},b==null?void 0:b.paperContent,{children:[c,je.jsx(A,Gt({onAccept:f,onClear:l,onCancel:s,onSetToday:u,actions:[]},b==null?void 0:b.actionBar))]}))}))}))}))}))}function Vy(e){const{children:t,DateInputProps:r,KeyboardDateInputComponent:i,onClear:c,onDismiss:o,onCancel:a,onAccept:n,onSetToday:l,open:f,PopperProps:s,PaperProps:u,TransitionComponent:d,components:h,componentsProps:p}=e,g=$e.useRef(null),y=_l(r.inputRef,g);return je.jsxs(Di.Provider,{value:"desktop",children:[je.jsx(i,Gt({},r,{inputRef:y})),je.jsx(lB,{role:"dialog",open:f,anchorEl:g.current,TransitionComponent:d,PopperProps:s,PaperProps:u,onClose:o,onCancel:a,onClear:c,onAccept:n,onSetToday:l,components:h,componentsProps:p,children:t})]})}const sB=e=>{const[,t]=$e.useReducer(l=>l+1,0),r=$e.useRef(null),{replace:i,append:c}=e,o=i?i(e.format(e.value)):e.format(e.value),a=$e.useRef(!1),n=l=>{const f=l.target.value;r.current=[f,l.target,f.length>o.length,a.current,o===e.format(f)],t()};return $e.useLayoutEffect(()=>{if(r.current==null)return;let[l,f,s,u,d]=r.current;r.current=null;const h=u&&d,g=l.slice(f.selectionStart).search(e.accept||/\d/g),y=g!==-1?g:0,v=w=>(w.match(e.accept||/\d/g)||[]).join(""),m=v(l.substr(0,f.selectionStart)),b=w=>{let k=0,T=0;for(let M=0;M!==m.length;++M){let S=w.indexOf(m[M],k)+1,C=v(w).indexOf(m[M],T)+1;C-T>1&&(S=k,C=T),T=Math.max(C,T),k=Math.max(k,S)}return k};if(e.mask===!0&&s&&!d){let w=b(l);const k=v(l.substr(w))[0];w=l.indexOf(k,w),l=`${l.substr(0,w)}${l.substr(w+1)}`}let x=e.format(l);c!=null&&f.selectionStart===l.length&&!d&&(s?x=c(x):v(x.slice(-1))===""&&(x=x.slice(0,-1)));const _=i?i(x):x;return o===_?t():e.onChange(_),()=>{let w=b(x);if(e.mask!=null&&(s||u&&!h))for(;x[w]&&v(x[w])==="";)w+=1;f.selectionStart=f.selectionEnd=w+(h?1+y:0)}}),$e.useEffect(()=>{const l=s=>{s.code==="Delete"&&(a.current=!0)},f=s=>{s.code==="Delete"&&(a.current=!1)};return document.addEventListener("keydown",l),document.addEventListener("keyup",f),()=>{document.removeEventListener("keydown",l),document.removeEventListener("keyup",f)}},[]),{value:r.current!=null?r.current[0]:o,onChange:n}},N0=(e,t,r)=>{const i=e.date(t);return t===null?"":e.isValid(i)?e.formatByString(i,r):""},jf="_",$4="2019-11-21T22:30:00.000",B4="2019-01-01T09:00:00.000";function uB(e,t,r,i){if(e)return e;const o=i.formatByString(i.date(B4),t).replace(r,jf),a=i.formatByString(i.date($4),t).replace(r,"_");return o===a?o:""}function cB(e,t,r,i){if(!e)return!1;const o=i.formatByString(i.date(B4),t).replace(r,jf),a=i.formatByString(i.date($4),t).replace(r,"_"),n=a===o&&e===a;return!n&&i.lib,n}const fB=(e,t)=>r=>{let i=0;return r.split("").map((c,o)=>{if(t.lastIndex=0,i>e.length-1)return"";const a=e[i],n=e[i+1],l=t.test(c)?c:"",f=a===jf?l:a+l;return i+=f.length,o===r.length-1&&n&&n!==jf?f?f+n:"":f}).join("")},dB=({acceptRegex:e=/[\d]/gi,disabled:t,disableMaskedInput:r,ignoreInvalidInputs:i,inputFormat:c,inputProps:o,label:a,mask:n,onChange:l,rawValue:f,readOnly:s,rifmFormatter:u,TextFieldProps:d,validationError:h})=>{const p=yr(),g=p.getFormatHelperText(c),{shouldUseMaskedInput:y,maskToUse:v}=$e.useMemo(()=>{if(r)return{shouldUseMaskedInput:!1,maskToUse:""};const O=uB(n,c,e,p);return{shouldUseMaskedInput:cB(O,c,e,p),maskToUse:O}},[e,r,c,n,p]),m=$e.useMemo(()=>y&&v?fB(v,e):O=>O,[e,v,y]),b=f===null?null:p.date(f),[x,_]=$e.useState(b),[w,k]=$e.useState(N0(p,f,c)),T=$e.useRef(),M=$e.useRef(p.locale),S=$e.useRef(c);$e.useEffect(()=>{const O=f!==T.current,R=p.locale!==M.current,F=c!==S.current;if(T.current=f,M.current=p.locale,S.current=c,!O&&!R&&!F)return;const A=f===null?null:p.date(f),z=f===null||p.isValid(A);let B=x===null&&A===null;if(x!==null&&A!==null){const j=p.isEqual(x,A);if(j)B=!0;else{const N=Math.abs(p.getDiff(x,A));B=N===0?j:N<1e3}}if(!R&&!F&&(!z||B))return;const $=N0(p,f,c);_(A),k($)},[p,f,c,x]);const C=O=>{const R=O===""||O===n?"":O;k(R);const F=R===null?null:p.parse(R,c);i&&!p.isValid(F)||(_(F),l(F,R||void 0))},P=sB({value:w,onChange:C,format:u||m});return Gt({label:a,disabled:t,error:h,inputProps:Gt({},y?P:{value:w,onChange:O=>{C(O.currentTarget.value)}},{disabled:t,placeholder:g,readOnly:s,type:y?"tel":"text"},o)},d)},hB=["className","components","disableOpenPicker","getOpenDialogAriaText","InputAdornmentProps","InputProps","inputRef","openPicker","OpenPickerButtonProps","renderInput"],Bd=$e.forwardRef(function(t,r){const{className:i,components:c={},disableOpenPicker:o,getOpenDialogAriaText:a,InputAdornmentProps:n,InputProps:l,inputRef:f,openPicker:s,OpenPickerButtonProps:u,renderInput:d}=t,h=Vn(t,hB),p=ti(),g=a??p.openDatePickerDialogue,y=yr(),v=dB(h),m=(n==null?void 0:n.position)||"end",b=c.OpenPickerIcon||b4;return d(Gt({ref:r,inputRef:f,className:i},v,{InputProps:Gt({},l,{[`${m}Adornment`]:o?void 0:je.jsx(E9,Gt({position:m},n,{children:je.jsx(jl,Gt({edge:m,disabled:h.disabled||h.readOnly,"aria-label":g(h.rawValue,y)},u,{onClick:s,children:je.jsx(b,{})}))}))})}))});function f_(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const pB=(e,t)=>{const[r,i]=$e.useState(f_);return my(()=>{const o=()=>{i(f_())};return window.addEventListener("orientationchange",o),()=>{window.removeEventListener("orientationchange",o)}},[]),bo(e,["hours","minutes","seconds"])?!1:(t||r)==="landscape"},gB=({autoFocus:e,openView:t})=>{const[r,i]=$e.useState(e?t:null),c=$e.useCallback(o=>a=>{i(a?o:n=>o===n?null:n)},[]);return{focusedView:r,setFocusedView:c}};function mB(e){return _r("MuiCalendarOrClockPicker",e)}wr("MuiCalendarOrClockPicker",["root","mobileKeyboardInputView"]);const vB=["autoFocus","className","parsedValue","DateInputProps","isMobileKeyboardViewOpen","onDateChange","onViewChange","openTo","orientation","showToolbar","toggleMobileKeyboardView","ToolbarComponent","toolbarFormat","toolbarPlaceholder","toolbarTitle","views","dateRangeIcon","timeIcon","hideTabs","classes"],yB=e=>{const{classes:t}=e;return Tr({root:["root"],mobileKeyboardInputView:["mobileKeyboardInputView"]},mB,t)},bB=wn("div",{name:"MuiCalendarOrClockPicker",slot:"MobileKeyboardInputView",overridesResolver:(e,t)=>t.mobileKeyboardInputView})({padding:"16px 24px"}),xB=wn("div",{name:"MuiCalendarOrClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>Gt({display:"flex",flexDirection:"column"},e.isLandscape&&{flexDirection:"row"})),wB={fullWidth:!0},d_=e=>e==="year"||e==="month"||e==="day",h_=e=>e==="hours"||e==="minutes"||e==="seconds";function Ei(e){var t,r;const i=fr({props:e,name:"MuiCalendarOrClockPicker"}),{autoFocus:c,parsedValue:o,DateInputProps:a,isMobileKeyboardViewOpen:n,onDateChange:l,onViewChange:f,openTo:s,orientation:u,showToolbar:d,toggleMobileKeyboardView:h,ToolbarComponent:p=()=>null,toolbarFormat:g,toolbarPlaceholder:y,toolbarTitle:v,views:m,dateRangeIcon:b,timeIcon:x,hideTabs:_}=i,w=Vn(i,vB),k=(t=w.components)==null?void 0:t.Tabs,T=pB(m,u),M=$e.useContext(Di),S=yB(i),C=d??M!=="desktop",P=!_&&typeof window<"u"&&window.innerHeight>667,D=$e.useCallback(($,j)=>{l($,M,j)},[l,M]),O=$e.useCallback($=>{n&&h(),f&&f($)},[n,f,h]),{openView:R,setOpenView:F,handleChangeAndOpenNext:A}=jy({view:void 0,views:m,openTo:s,onChange:D,onViewChange:O}),{focusedView:z,setFocusedView:B}=gB({autoFocus:c,openView:R});return je.jsxs(xB,{ownerState:{isLandscape:T},className:S.root,children:[C&&je.jsx(p,Gt({},w,{views:m,isLandscape:T,parsedValue:o,onChange:D,setOpenView:F,openView:R,toolbarTitle:v,toolbarFormat:g,toolbarPlaceholder:y,isMobileKeyboardViewOpen:n,toggleMobileKeyboardView:h})),P&&!!k&&je.jsx(k,Gt({dateRangeIcon:b,timeIcon:x,view:R,onChange:F},(r=w.componentsProps)==null?void 0:r.tabs)),je.jsx($y,{children:n?je.jsx(bB,{className:S.mobileKeyboardInputView,children:je.jsx(Bd,Gt({},a,{ignoreInvalidInputs:!0,disableOpenPicker:!0,TextFieldProps:wB}))}):je.jsxs($e.Fragment,{children:[d_(R)&&je.jsx(O4,Gt({autoFocus:c,date:o,onViewChange:F,onChange:A,view:R,views:m.filter(d_),focusedView:z,onFocusedViewChange:B},w)),h_(R)&&je.jsx(I4,Gt({},w,{autoFocus:c,date:o,view:R,views:m.filter(h_),onChange:A,onViewChange:F,showViewSwitcher:M==="desktop"}))]})})]})}const _B=({open:e,onOpen:t,onClose:r})=>{const i=$e.useRef(typeof e=="boolean").current,[c,o]=$e.useState(!1);$e.useEffect(()=>{if(i){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");o(e)}},[i,e]);const a=$e.useCallback(n=>{i||o(n),n&&t&&t(),!n&&r&&r()},[i,t,r]);return{isOpen:c,setIsOpen:a}},Ri=(e,t)=>{const{onAccept:r,onChange:i,value:c,closeOnSelect:o}=e,a=yr(),{isOpen:n,setIsOpen:l}=_B(e),f=$e.useMemo(()=>t.parseInput(a,c),[t,a,c]),[s,u]=$e.useState(f),[d,h]=$e.useState(()=>({committed:f,draft:f,resetFallback:f})),p=$e.useCallback(w=>{h(k=>{switch(w.action){case"setAll":case"acceptAndClose":return{draft:w.value,committed:w.value,resetFallback:w.value};case"setCommitted":return Gt({},k,{draft:w.value,committed:w.value});case"setDraft":return Gt({},k,{draft:w.value});default:return k}}),(w.forceOnChangeCall||!w.skipOnChangeCall&&!t.areValuesEqual(a,d.committed,w.value))&&i(w.value),w.action==="acceptAndClose"&&(l(!1),r&&!t.areValuesEqual(a,d.resetFallback,w.value)&&r(w.value))},[r,i,l,d,a,t]);$e.useEffect(()=>{a.isValid(f)&&u(f)},[a,f]),$e.useEffect(()=>{n&&p({action:"setAll",value:f,skipOnChangeCall:!0})},[n]),t.areValuesEqual(a,d.committed,f)||p({action:"setCommitted",value:f,skipOnChangeCall:!0});const g=$e.useMemo(()=>({open:n,onClear:()=>{p({value:t.emptyValue,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(a,c,t.emptyValue)})},onAccept:()=>{p({value:d.draft,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(a,c,f)})},onDismiss:()=>{p({value:d.committed,action:"acceptAndClose"})},onCancel:()=>{p({value:d.resetFallback,action:"acceptAndClose"})},onSetToday:()=>{p({value:t.getTodayValue(a),action:"acceptAndClose"})}}),[p,n,a,d,t,c,f]),[y,v]=$e.useState(!1),m=$e.useMemo(()=>({parsedValue:d.draft,isMobileKeyboardViewOpen:y,toggleMobileKeyboardView:()=>v(!y),onDateChange:(w,k,T="partial")=>{switch(T){case"shallow":return p({action:"setDraft",value:w,skipOnChangeCall:!0});case"partial":return p({action:"setDraft",value:w});case"finish":return p(o??k==="desktop"?{value:w,action:"acceptAndClose"}:{value:w,action:"setCommitted"});default:throw new Error("MUI: Invalid selectionState passed to `onDateChange`")}}}),[p,y,d.draft,o]),b=$e.useCallback((w,k)=>{const T=t.valueReducer?t.valueReducer(a,s,w):w;i(T,k)},[i,t,s,a]),x=$e.useMemo(()=>({onChange:b,open:n,rawValue:c,openPicker:()=>l(!0)}),[b,n,c,l]),_={pickerProps:m,inputProps:x,wrapperProps:g};return $e.useDebugValue(_,()=>({MuiPickerState:{dateState:d,other:_}})),_},TB=["onChange","PopperProps","PaperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],z4=$e.forwardRef(function(t,r){const i=By(t,"MuiDesktopDatePicker"),c=Fy(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ri(i,zy),{PopperProps:l,PaperProps:f,ToolbarComponent:s=Uy,TransitionComponent:u,components:d,componentsProps:h}=i,p=Vn(i,TB),g=Gt({},a,p,{components:d,componentsProps:h,ref:r,validationError:c});return je.jsx(Vy,Gt({},n,{DateInputProps:g,KeyboardDateInputComponent:Bd,PopperProps:l,PaperProps:f,TransitionComponent:u,components:d,componentsProps:h,children:je.jsx(Ei,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:s,DateInputProps:g,components:d,componentsProps:h},p))}))}),kB=wn(R9)({[`& .${z2.container}`]:{outline:0},[`& .${z2.paper}`]:{outline:0,minWidth:Ny}}),MB=wn(L9)({"&:first-of-type":{padding:0}}),SB=e=>{var t;const{children:r,DialogProps:i={},onAccept:c,onClear:o,onDismiss:a,onCancel:n,onSetToday:l,open:f,components:s,componentsProps:u}=e,d=(t=s==null?void 0:s.ActionBar)!=null?t:Hy;return je.jsxs(kB,Gt({open:f,onClose:a},i,{children:[je.jsx(MB,{children:r}),je.jsx(d,Gt({onAccept:c,onClear:o,onCancel:n,onSetToday:l,actions:["cancel","accept"]},u==null?void 0:u.actionBar))]}))},CB=["children","DateInputProps","DialogProps","onAccept","onClear","onDismiss","onCancel","onSetToday","open","PureDateInputComponent","components","componentsProps"];function Yy(e){const{children:t,DateInputProps:r,DialogProps:i,onAccept:c,onClear:o,onDismiss:a,onCancel:n,onSetToday:l,open:f,PureDateInputComponent:s,components:u,componentsProps:d}=e,h=Vn(e,CB);return je.jsxs(Di.Provider,{value:"mobile",children:[je.jsx(s,Gt({components:u},h,r)),je.jsx(SB,{DialogProps:i,onAccept:c,onClear:o,onDismiss:a,onCancel:n,onSetToday:l,open:f,components:u,componentsProps:d,children:t})]})}const Gy=$e.forwardRef(function(t,r){const{disabled:i,getOpenDialogAriaText:c,inputFormat:o,InputProps:a,inputRef:n,label:l,openPicker:f,rawValue:s,renderInput:u,TextFieldProps:d={},validationError:h,className:p}=t,g=ti(),y=c??g.openDatePickerDialogue,v=yr(),m=$e.useMemo(()=>Gt({},a,{readOnly:!0}),[a]),b=N0(v,s,o),x=Od(_=>{_.stopPropagation(),f()});return u(Gt({label:l,disabled:i,ref:r,inputRef:n,error:h,InputProps:m,className:p},!t.readOnly&&!t.disabled&&{onClick:x},{inputProps:Gt({disabled:i,readOnly:!0,"aria-readonly":!0,"aria-label":y(s,v),value:b},!t.readOnly&&{onClick:x},{onKeyDown:i4(f)})},d))}),OB=["ToolbarComponent","value","onChange","components","componentsProps"],q4=$e.forwardRef(function(t,r){const i=By(t,"MuiMobileDatePicker"),c=Fy(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ri(i,zy),{ToolbarComponent:l=Uy,components:f,componentsProps:s}=i,u=Vn(i,OB),d=Gt({},a,u,{components:f,componentsProps:s,ref:r,validationError:c});return je.jsx(Yy,Gt({},u,n,{DateInputProps:d,PureDateInputComponent:Gy,components:f,componentsProps:s,children:je.jsx(Ei,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:l,DateInputProps:d,components:f,componentsProps:s},u))}))}),AB=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],PB=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:c="@media (pointer: fine)",DialogProps:o,PopperProps:a,TransitionComponent:n}=i,l=Vn(i,AB);return vy(c,{defaultMatches:!0})?je.jsx(z4,Gt({ref:r,PopperProps:a,TransitionComponent:n},l)):je.jsx(q4,Gt({ref:r,DialogProps:o},l))});function Xy(e,t){var r,i,c,o,a;const n=fr({props:e,name:t}),l=yr(),f=ac(),s=(r=n.ampm)!=null?r:l.is12HourCycleInCurrentLocale();if(n.orientation!=null&&n.orientation!=="portrait")throw new Error("We are not supporting custom orientation for DateTimePicker yet :(");return Gt({ampm:s,orientation:"portrait",openTo:"day",views:["year","day","hours","minutes"],ampmInClock:!0,acceptRegex:s?/[\dap]/gi:/\d/gi,disableMaskedInput:!1,inputFormat:s?l.formats.keyboardDateTime12h:l.formats.keyboardDateTime24h,disableIgnoringDatePartForTimeValidation:!!(n.minDateTime||n.maxDateTime),disablePast:!1,disableFuture:!1},n,{minDate:Va(l,(i=n.minDateTime)!=null?i:n.minDate,f.minDate),maxDate:Va(l,(c=n.maxDateTime)!=null?c:n.maxDate,f.maxDate),minTime:(o=n.minDateTime)!=null?o:n.minTime,maxTime:(a=n.maxDateTime)!=null?a:n.maxTime})}const Zy={emptyValue:null,getTodayValue:e=>e.date(),parseInput:Ry,areValuesEqual:(e,t,r)=>e.isEqual(t,r)},DB=e=>{switch(e){case"year":case"month":case"day":return"calendar";default:return"clock"}};function EB(e){return _r("PrivatePickersToolbarText",e)}const p_=wr("PrivatePickersToolbarText",["root","selected"]),RB=["className","selected","value"],LB=e=>{const{classes:t,selected:r}=e;return Tr({root:["root",r&&"selected"]},EB,t)},IB=wn(Cr,{name:"PrivatePickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${p_.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:e.palette.text.secondary,[`&.${p_.selected}`]:{color:e.palette.text.primary}})),Ky=$e.forwardRef(function(t,r){const{className:i,value:c}=t,o=Vn(t,RB),a=LB(t);return je.jsx(IB,Gt({ref:r,className:jr(i,a.root),component:"span"},o,{children:c}))}),FB=["align","className","selected","typographyClassName","value","variant"],NB=e=>{const{classes:t}=e;return Tr({root:["root"]},j4,t)},jB=wn(hi,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),ci=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiPickersToolbarButton"}),{align:c,className:o,selected:a,typographyClassName:n,value:l,variant:f}=i,s=Vn(i,FB),u=NB(i);return je.jsx(jB,Gt({variant:"text",ref:r,className:jr(o,u.root)},s,{children:je.jsx(Ky,{align:c,className:n,variant:f,value:l,selected:a})}))});function $B(e){return _r("MuiDateTimePickerToolbar",e)}const BB=wr("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","separator"]),zB=["ampm","parsedValue","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],qB=e=>{const{classes:t}=e;return Tr({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer"],separator:["separator"]},$B,t)},WB=wn(Wy,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",[`& .${qy.penIconButton}`]:Gt({position:"absolute",top:8},e.direction==="rtl"?{left:8}:{right:8})})),UB=wn("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),HB=wn("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})({display:"flex"}),g_=wn(Ky,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({margin:"0 4px 0 2px",cursor:"default"});function Jy(e){const t=fr({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:r,parsedValue:i,isMobileKeyboardViewOpen:c,openView:o,setOpenView:a,toggleMobileKeyboardView:n,toolbarFormat:l,toolbarPlaceholder:f="––",toolbarTitle:s,views:u}=t,d=Vn(t,zB),h=t,p=yr(),g=ti(),y=qB(h),v=s??g.dateTimePickerDefaultToolbarTitle,m=x=>r?p.format(x,"hours12h"):p.format(x,"hours24h"),b=$e.useMemo(()=>i?l?p.formatByString(i,l):p.format(i,"shortDate"):f,[i,l,f,p]);return je.jsxs(WB,Gt({toolbarTitle:v,isMobileKeyboardViewOpen:c,toggleMobileKeyboardView:n,className:y.root,viewType:DB(o)},d,{isLandscape:!1,ownerState:h,children:[je.jsxs(UB,{className:y.dateContainer,ownerState:h,children:[u.includes("year")&&je.jsx(ci,{tabIndex:-1,variant:"subtitle1",onClick:()=>a("year"),selected:o==="year",value:i?p.format(i,"year"):"–"}),u.includes("day")&&je.jsx(ci,{tabIndex:-1,variant:"h4",onClick:()=>a("day"),selected:o==="day",value:b})]}),je.jsxs(HB,{className:y.timeContainer,ownerState:h,children:[u.includes("hours")&&je.jsx(ci,{variant:"h3",onClick:()=>a("hours"),selected:o==="hours",value:i?m(i):"--"}),u.includes("minutes")&&je.jsxs($e.Fragment,{children:[je.jsx(g_,{variant:"h3",value:":",className:y.separator,ownerState:h}),je.jsx(ci,{variant:"h3",onClick:()=>a("minutes"),selected:o==="minutes",value:i?p.format(i,"minutes"):"--"})]}),u.includes("seconds")&&je.jsxs($e.Fragment,{children:[je.jsx(g_,{variant:"h3",value:":",className:y.separator,ownerState:h}),je.jsx(ci,{variant:"h3",onClick:()=>a("seconds"),selected:o==="seconds",value:i?p.format(i,"seconds"):"--"})]})]})]}))}const W4=({adapter:e,value:t,props:r})=>{const{minTime:i,maxTime:c,minutesStep:o,shouldDisableTime:a,disableIgnoringDatePartForTimeValidation:n}=r,l=e.utils.date(t),f=_4(n,e.utils);if(t===null)return null;switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(i&&f(i,l)):return"minTime";case!!(c&&f(l,c)):return"maxTime";case!!(a&&a(e.utils.getHours(l),"hours")):return"shouldDisableTime-hours";case!!(a&&a(e.utils.getMinutes(l),"minutes")):return"shouldDisableTime-minutes";case!!(a&&a(e.utils.getSeconds(l),"seconds")):return"shouldDisableTime-seconds";case!!(o&&e.utils.getMinutes(l)%o!==0):return"minutesStep";default:return null}},VB=(e,t)=>e===t,Qy=e=>Ly(e,W4,VB),YB=["minDate","maxDate","disableFuture","shouldDisableDate","disablePast"],GB=({props:e,value:t,adapter:r})=>{const{minDate:i,maxDate:c,disableFuture:o,shouldDisableDate:a,disablePast:n}=e,l=Vn(e,YB),f=Iy({adapter:r,value:t,props:{minDate:i,maxDate:c,disableFuture:o,shouldDisableDate:a,disablePast:n}});return f!==null?f:W4({adapter:r,value:t,props:l})},XB=(e,t)=>e===t;function e1(e){return Ly(e,GB,XB)}function ZB(e){return _r("MuiDateTimePickerTabs",e)}const KB=wr("MuiDateTimePickerTabs",["root"]),JB=e=>["day","month","year"].includes(e)?"date":"time",QB=e=>e==="date"?"day":"hours",ez=e=>{const{classes:t}=e;return Tr({root:["root"]},ZB,t)},tz=wn(aS,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>Gt({boxShadow:`0 -1px 0 0 inset ${t.palette.divider}`},e.wrapperVariant==="desktop"&&{order:1,boxShadow:`0 1px 0 0 inset ${t.palette.divider}`,[`& .${I9.indicator}`]:{bottom:"auto",top:0}})),zd=function(t){const r=fr({props:t,name:"MuiDateTimePickerTabs"}),{dateRangeIcon:i=je.jsx(mj,{}),onChange:c,timeIcon:o=je.jsx(yj,{}),view:a}=r,n=ti(),l=$e.useContext(Di),f=Gt({},r,{wrapperVariant:l}),s=ez(f),u=(d,h)=>{c(QB(h))};return je.jsxs(tz,{ownerState:f,variant:"fullWidth",value:JB(a),onChange:u,className:s.root,children:[je.jsx(A0,{value:"date","aria-label":n.dateTableLabel,icon:je.jsx($e.Fragment,{children:i})}),je.jsx(A0,{value:"time","aria-label":n.timeTableLabel,icon:je.jsx($e.Fragment,{children:o})})]})},nz=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps","hideTabs"],U4=$e.forwardRef(function(t,r){const i=Xy(t,"MuiDesktopDateTimePicker"),c=e1(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ri(i,Zy),{PaperProps:l,PopperProps:f,ToolbarComponent:s=Jy,TransitionComponent:u,components:d,componentsProps:h,hideTabs:p=!0}=i,g=Vn(i,nz),y=$e.useMemo(()=>Gt({Tabs:zd},d),[d]),v=Gt({},a,g,{components:y,componentsProps:h,ref:r,validationError:c});return je.jsx(Vy,Gt({},n,{DateInputProps:v,KeyboardDateInputComponent:Bd,PopperProps:f,PaperProps:l,TransitionComponent:u,components:y,componentsProps:h,children:je.jsx(Ei,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:s,DateInputProps:v,components:y,componentsProps:h,hideTabs:p},g))}))}),rz=["ToolbarComponent","value","onChange","components","componentsProps","hideTabs"],H4=$e.forwardRef(function(t,r){const i=Xy(t,"MuiMobileDateTimePicker"),c=e1(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ri(i,Zy),{ToolbarComponent:l=Jy,components:f,componentsProps:s,hideTabs:u=!1}=i,d=Vn(i,rz),h=$e.useMemo(()=>Gt({Tabs:zd},f),[f]),p=Gt({},a,d,{components:h,componentsProps:s,ref:r,validationError:c});return je.jsx(Yy,Gt({},d,n,{DateInputProps:p,PureDateInputComponent:Gy,components:h,componentsProps:s,children:je.jsx(Ei,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:l,DateInputProps:p,components:h,componentsProps:s,hideTabs:u},d))}))}),az=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],iz=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:c="@media (pointer: fine)",DialogProps:o,PopperProps:a,TransitionComponent:n}=i,l=Vn(i,az);return vy(c,{defaultMatches:!0})?je.jsx(U4,Gt({ref:r,PopperProps:a,TransitionComponent:n},l)):je.jsx(H4,Gt({ref:r,DialogProps:o},l))});function t1(e,t){var r;const i=fr({props:e,name:t}),c=yr(),o=(r=i.ampm)!=null?r:c.is12HourCycleInCurrentLocale(),n=ti().openTimePickerDialogue;return Gt({ampm:o,openTo:"hours",views:["hours","minutes"],acceptRegex:o?/[\dapAP]/gi:/\d/gi,disableMaskedInput:!1,getOpenDialogAriaText:n,inputFormat:o?c.formats.fullTime12h:c.formats.fullTime24h},i,{components:Gt({OpenPickerIcon:x4},i.components)})}const n1={emptyValue:null,parseInput:Ry,getTodayValue:e=>e.date(),areValuesEqual:(e,t,r)=>e.isEqual(t,r),valueReducer:(e,t,r)=>!t||!e.isValid(r)?r:e.mergeDateAndTime(t,r)};function oz(e){return _r("MuiTimePickerToolbar",e)}const vl=wr("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),lz=["ampm","ampmInClock","parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarTitle","views","disabled","readOnly"],sz=e=>{const{theme:t,isLandscape:r,classes:i}=e,c={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",r&&"hourMinuteLabelLandscape",t.direction==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Tr(c,oz,i)},uz=wn(Wy,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({[`& .${qy.penIconButtonLandscape}`]:{marginTop:"auto"}}),cz=wn(Ky,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),fz=wn("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${vl.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${vl.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>Gt({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"})),dz=wn("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${vl.ampmLabel}`]:t.ampmLabel},{[`&.${vl.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>Gt({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${vl.ampmLabel}`]:{fontSize:17}}));function r1(e){const t=fr({props:e,name:"MuiTimePickerToolbar"}),{ampm:r,ampmInClock:i,parsedValue:c,isLandscape:o,isMobileKeyboardViewOpen:a,onChange:n,openView:l,setOpenView:f,toggleMobileKeyboardView:s,toolbarTitle:u,views:d,disabled:h,readOnly:p}=t,g=Vn(t,lz),y=yr(),v=ti(),m=u??v.timePickerDefaultToolbarTitle,b=Ad(),x=!!(r&&!i),{meridiemMode:_,handleMeridiemChange:w}=T4(c,r,n),k=C=>r?y.format(C,"hours12h"):y.format(C,"hours24h"),T=t,M=sz(Gt({},T,{theme:b})),S=je.jsx(cz,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:M.separator});return je.jsxs(uz,Gt({viewType:"clock",landscapeDirection:"row",toolbarTitle:m,isLandscape:o,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:s,ownerState:T,className:M.root},g,{children:[je.jsxs(fz,{className:M.hourMinuteLabel,ownerState:T,children:[bo(d,"hours")&&je.jsx(ci,{tabIndex:-1,variant:"h3",onClick:()=>f("hours"),selected:l==="hours",value:c?k(c):"--"}),bo(d,["hours","minutes"])&&S,bo(d,"minutes")&&je.jsx(ci,{tabIndex:-1,variant:"h3",onClick:()=>f("minutes"),selected:l==="minutes",value:c?y.format(c,"minutes"):"--"}),bo(d,["minutes","seconds"])&&S,bo(d,"seconds")&&je.jsx(ci,{variant:"h3",onClick:()=>f("seconds"),selected:l==="seconds",value:c?y.format(c,"seconds"):"--"})]}),x&&je.jsxs(dz,{className:M.ampmSelection,ownerState:T,children:[je.jsx(ci,{disableRipple:!0,variant:"subtitle2",selected:_==="am",typographyClassName:M.ampmLabel,value:y.getMeridiemText("am"),onClick:p?void 0:()=>w("am"),disabled:h}),je.jsx(ci,{disableRipple:!0,variant:"subtitle2",selected:_==="pm",typographyClassName:M.ampmLabel,value:y.getMeridiemText("pm"),onClick:p?void 0:()=>w("pm"),disabled:h})]})]}))}const hz=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],V4=$e.forwardRef(function(t,r){const i=t1(t,"MuiDesktopTimePicker"),c=Qy(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ri(i,n1),{PaperProps:l,PopperProps:f,ToolbarComponent:s=r1,TransitionComponent:u,components:d,componentsProps:h}=i,p=Vn(i,hz),g=Gt({},a,p,{components:d,componentsProps:h,ref:r,validationError:c});return je.jsx(Vy,Gt({},n,{DateInputProps:g,KeyboardDateInputComponent:Bd,PopperProps:f,PaperProps:l,TransitionComponent:u,components:d,componentsProps:h,children:je.jsx(Ei,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:s,DateInputProps:g,components:d,componentsProps:h},p))}))}),pz=["ToolbarComponent","value","onChange","components","componentsProps"],Y4=$e.forwardRef(function(t,r){const i=t1(t,"MuiMobileTimePicker"),c=Qy(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=Ri(i,n1),{ToolbarComponent:l=r1,components:f,componentsProps:s}=i,u=Vn(i,pz),d=Gt({},a,u,{components:f,componentsProps:s,ref:r,validationError:c});return je.jsx(Yy,Gt({},u,n,{DateInputProps:d,PureDateInputComponent:Gy,components:f,componentsProps:s,children:je.jsx(Ei,Gt({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:l,DateInputProps:d,components:f,componentsProps:s},u))}))});function gz(e){return _r("MuiPickerStaticWrapper",e)}wr("MuiPickerStaticWrapper",["root","content"]);const mz=["displayStaticWrapperAs","onAccept","onClear","onCancel","onDismiss","onSetToday","open","children","components","componentsProps","className"],vz=e=>{const{classes:t}=e;return Tr({root:["root"],content:["content"]},gz,t)},yz=wn("div",{name:"MuiPickerStaticWrapper",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),bz=wn("div",{name:"MuiPickerStaticWrapper",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e})=>({overflow:"hidden",minWidth:Ny,display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper}));function qd(e){var t;const r=fr({props:e,name:"MuiPickerStaticWrapper"}),{displayStaticWrapperAs:i,onAccept:c,onClear:o,onCancel:a,onSetToday:n,children:l,components:f,componentsProps:s,className:u}=r,d=Vn(r,mz),h=vz(r),p=(t=f==null?void 0:f.ActionBar)!=null?t:Hy,g=(f==null?void 0:f.PaperContent)||$e.Fragment;return je.jsx(Di.Provider,{value:i,children:je.jsxs(yz,Gt({className:jr(h.root,u)},d,{children:[je.jsx(bz,{className:h.content,children:je.jsx(g,Gt({},s==null?void 0:s.paperContent,{children:l}))}),je.jsx(p,Gt({onAccept:c,onClear:o,onCancel:a,onSetToday:n,actions:i==="desktop"?[]:["cancel","accept"]},s==null?void 0:s.actionBar))]}))})}const xz=["ToolbarComponent","value","onChange","displayStaticWrapperAs","components","componentsProps","className"],wz=$e.forwardRef(function(t,r){const i=By(t,"MuiStaticDatePicker"),{ToolbarComponent:c=Uy,displayStaticWrapperAs:o="mobile",components:a,componentsProps:n,className:l}=i,f=Vn(i,xz),{pickerProps:s,inputProps:u,wrapperProps:d}=Ri(i,zy),h=Fy(i)!==null,p=Gt({},u,f,{ref:r,validationError:h,components:a});return je.jsx(qd,Gt({displayStaticWrapperAs:o,components:a,componentsProps:n,className:l},d,{children:je.jsx(Ei,Gt({},s,{toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:c,DateInputProps:p,components:a,componentsProps:n},f))}))}),_z=["displayStaticWrapperAs","onChange","ToolbarComponent","value","components","componentsProps","hideTabs","className"],Tz=$e.forwardRef(function(t,r){const i=Xy(t,"MuiStaticDateTimePicker"),{displayStaticWrapperAs:c="mobile",ToolbarComponent:o=Jy,components:a,componentsProps:n,hideTabs:l=c==="desktop",className:f}=i,s=Vn(i,_z),{pickerProps:u,inputProps:d,wrapperProps:h}=Ri(i,Zy),p=e1(i)!==null,g=$e.useMemo(()=>Gt({Tabs:zd},a),[a]),y=Gt({},d,s,{ref:r,validationError:p,components:g,componentsProps:n});return je.jsx(qd,Gt({displayStaticWrapperAs:c,components:g,componentsProps:n,className:f},h,{children:je.jsx(Ei,Gt({},u,{toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:o,DateInputProps:y,components:g,componentsProps:n,hideTabs:l},s))}))}),kz=["displayStaticWrapperAs","onChange","ToolbarComponent","value","components","componentsProps","className"],Mz=$e.forwardRef(function(t,r){const i=t1(t,"MuiStaticTimePicker"),{displayStaticWrapperAs:c="mobile",ToolbarComponent:o=r1,components:a,componentsProps:n,className:l}=i,f=Vn(i,kz),s=Qy(i)!==null,{pickerProps:u,inputProps:d,wrapperProps:h}=Ri(i,n1),p=Gt({},d,f,{ref:r,validationError:s,components:a,componentsProps:n});return je.jsx(qd,Gt({displayStaticWrapperAs:c,components:a,componentsProps:n,className:l},h,{children:je.jsx(Ei,Gt({},u,{toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:o,DateInputProps:p,components:a,componentsProps:n},f))}))}),Sz=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],Cz=$e.forwardRef(function(t,r){const i=fr({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:c="@media (pointer: fine)",DialogProps:o,PopperProps:a,TransitionComponent:n}=i,l=Vn(i,Sz);return vy(c,{defaultMatches:!0})?je.jsx(V4,Gt({ref:r,PopperProps:a,TransitionComponent:n},l)):je.jsx(Y4,Gt({ref:r,DialogProps:o},l))});/** @license MUI X v5.0.20 * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */const vz=Object.freeze(Object.defineProperty({__proto__:null,CalendarPicker:_4,CalendarPickerSkeleton:Zj,ClockPicker:A4,DEFAULT_LOCALE:n4,DatePicker:bB,DateTimePicker:GB,DateTimePickerTabs:Bd,DesktopDatePicker:I4,DesktopDateTimePicker:j4,DesktopTimePicker:B4,LocalizationProvider:xN,MobileDatePicker:F4,MobileDateTimePicker:$4,MobileTimePicker:z4,MonthPicker:a4,MuiPickersAdapterContext:Sy,PickerStaticWrapper:zd,PickersDay:c4,StaticDatePicker:cz,StaticDateTimePicker:dz,StaticTimePicker:pz,TimePicker:mz,YearPicker:x4,beBY:mN,calendarPickerClasses:jj,calendarPickerSkeletonClasses:Uj,clockClasses:c$,clockNumberClasses:yu,clockPickerClasses:M$,clockPointerClasses:r$,csCZ:zF,datePickerToolbarClasses:N$,dateTimePickerTabsClasses:BB,dateTimePickerToolbarClasses:AB,dayPickerClasses:VN,deDE:PF,enUS:YF,esES:RF,faIR:IF,fiFI:jF,frFR:UF,getCalendarPickerSkeletonUtilityClass:T4,getCalendarPickerUtilityClass:w4,getClockPickerUtilityClass:O4,getMonthPickerUtilityClass:r4,getPickersDayUtilityClass:l4,getYearPickerUtilityClass:b4,huHU:VF,isIS:sN,itIT:eN,jaJP:cN,koKR:oN,monthPickerClasses:wN,nbNO:XF,nlNL:_F,pickersCalendarHeaderClasses:yj,pickersDayClasses:vu,pickersFadeTransitionGroupClasses:PN,pickersMonthClasses:E0,pickersSlideTransitionClasses:ua,pickersYearClasses:wo,plPL:kF,ptBR:SF,ruRU:bN,svSE:KF,timePickerToolbarClasses:gl,trTR:OF,ukUA:dN,urPK:pN,yearPickerClasses:Rj,zhCN:rN},Symbol.toStringTag,{value:"Module"})),q4=qn(vz);var d_;function yz(){return d_||(d_=1,function(e){var t=vn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(hr()),i=t(jl()),u=t(Dd()),o=t(Ed()),a=t(yy()),n=t(xy()),l=t(wy()),f=t($e),s=t(Rd),c=t(zo),d=t(AS),h=t(_y),p=t(PS),m=t(sR),y=t(uR),v=t(cR),g=KS,b=q4,x=t(Or),_=["columnDef","rowData","onRowDataChange","errorState","autoFocus","onBulkEditRowChanged","scrollWidth"],w=["helperText","error"],k=["helperText","error"];function T(P){var D=M();return function(){var R=(0,l.default)(P),F;if(D){var A=(0,l.default)(this).constructor;F=Reflect.construct(R,arguments,A)}else F=R.apply(this,arguments);return(0,n.default)(this,F)}}function M(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var S=function(P){(0,a.default)(O,P);var D=T(O);function O(){return(0,u.default)(this,O),D.apply(this,arguments)}return(0,o.default)(O,[{key:"getProps",value:function(){var F=this.props;F.columnDef,F.rowData,F.onRowDataChange,F.errorState,F.autoFocus,F.onBulkEditRowChanged,F.scrollWidth;var A=(0,i.default)(F,_);return A}},{key:"renderLookupField",value:function(){var F=this,A=this.getProps(),z=A.helperText,B=A.error,$=(0,i.default)(A,w);return f.default.createElement(p.default,{error:!!B},f.default.createElement(d.default,(0,r.default)({},$,{value:this.props.value===void 0?"":this.props.value,onChange:function(N){return F.props.onChange(N.target.value)},style:{fontSize:13},inputProps:{autoFocus:this.props.autoFocus},SelectDisplayProps:{"aria-label":this.props.columnDef.title}}),Object.keys(this.props.columnDef.lookup).map(function(j){return f.default.createElement(h.default,{key:j,value:j},F.props.columnDef.lookup[j])})),!!z&&f.default.createElement(m.default,null,z))}},{key:"renderBooleanField",value:function(){var F=this,A=this.getProps(),z=A.helperText,B=A.error,$=(0,i.default)(A,k);return f.default.createElement(p.default,{error:!!B,component:"fieldset"},f.default.createElement(y.default,null,f.default.createElement(v.default,{label:"",control:f.default.createElement(c.default,(0,r.default)({},$,{value:String(this.props.value),checked:!!this.props.value,onChange:function(N){return F.props.onChange(N.target.checked)},style:{padding:0,width:24,marginLeft:9},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title}}))})),f.default.createElement(m.default,null,z))}},{key:"renderDateField",value:function(){var F=this.props.columnDef.dateSetting&&this.props.columnDef.dateSetting.format?this.props.columnDef.dateSetting.format:"dd.MM.yyyy";return f.default.createElement(b.LocalizationProvider,{dateAdapter:g.AdapterDateFns,locale:this.props.locale},f.default.createElement(b.DatePicker,(0,r.default)({},this.getProps(),{renderInput:function(z){return f.default.createElement(s.default,z)},format:F,value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderTimeField",value:function(){return f.default.createElement(b.LocalizationProvider,{dateAdapter:g.AdapterDateFns,locale:this.props.locale},f.default.createElement(b.TimePicker,(0,r.default)({},this.getProps(),{renderInput:function(A){return f.default.createElement(s.default,A)},format:"HH:mm:ss",value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderDateTimeField",value:function(){return f.default.createElement(b.LocalizationProvider,{dateAdapter:g.AdapterDateFns,locale:this.props.locale},f.default.createElement(b.DateTimePicker,(0,r.default)({},this.getProps(),{renderInput:function(A){return f.default.createElement(s.default,A)},format:"dd.MM.yyyy HH:mm:ss",value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderTextField",value:function(){var F=this;return f.default.createElement(s.default,(0,r.default)({},this.getProps(),{variant:"standard",fullWidth:!0,type:this.props.columnDef.type==="numeric"?"number":"text",placeholder:this.props.columnDef.editPlaceholder||this.props.columnDef.title,value:this.props.value===void 0?"":this.props.value,onChange:function(z){return F.props.onChange(F.props.columnDef.type==="numeric"?z.target.valueAsNumber:z.target.value)},InputProps:{style:{minWidth:50,fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title,style:this.props.columnDef.type==="numeric"?{textAlign:"right"}:{}}}))}},{key:"renderCurrencyField",value:function(){var F=this;return f.default.createElement(s.default,(0,r.default)({},this.getProps(),{variant:"standard",placeholder:this.props.columnDef.editPlaceholder||this.props.columnDef.title,type:"number",value:this.props.value===void 0?"":this.props.value,onChange:function(z){var B=z.target.valueAsNumber;return!B&&B!==0&&(B=void 0),F.props.onChange(B)},InputProps:{style:{fontSize:13,textAlign:"right"}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title,style:{textAlign:"right"}},onKeyDown:this.props.onKeyDown}))}},{key:"render",value:function(){var F="ok";return this.props.columnDef.editComponent?F=this.props.columnDef.editComponent(this.props):this.props.columnDef.lookup?F=this.renderLookupField():this.props.columnDef.type==="boolean"?F=this.renderBooleanField():this.props.columnDef.type==="date"?F=this.renderDateField():this.props.columnDef.type==="time"?F=this.renderTimeField():this.props.columnDef.type==="datetime"?F=this.renderDateTimeField():this.props.columnDef.type==="currency"?F=this.renderCurrencyField():F=this.renderTextField(),F}}]),O}(f.default.Component);S.propTypes={value:x.default.any,onChange:x.default.func.isRequired,columnDef:x.default.object.isRequired,locale:x.default.object,rowData:x.default.object,onRowDataChange:x.default.func,errorState:x.default.func,autoFocus:x.default.bool,onBulkEditRowChanged:x.default.func,scrollWidth:x.default.number,onKeyDown:x.default.func};var C=S;e.default=C}(Fg)),Fg}var Kg={},Wc={},h_;function W4(){if(h_)return Wc;h_=1;var e=vn;Object.defineProperty(Wc,"__esModule",{value:!0}),Wc.validateInput=o;var t=e(Jr()),r=e(Ur());function i(a,n){var l=Object.keys(a);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);n&&(f=f.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),l.push.apply(l,f)}return l}function u(a){for(var n=1;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var g=function(x){(0,o.default)(w,x);var _=y(w);function w(k){var T;return(0,r.default)(this,w),T=_.call(this,k),(0,l.default)((0,u.default)(T),"getStyle",function(){var M={boxShadow:"2px 0px 15px rgba(125,147,178,.25)",color:"inherit",width:T.props.columnDef.tableData.width,boxSizing:"border-box",fontSize:"inherit",fontFamily:"inherit",fontWeight:"inherit",padding:"0 16px"};return typeof T.props.columnDef.cellStyle=="function"?M=m(m({},M),T.props.columnDef.cellStyle(T.state.value,T.props.rowData)):M=m(m({},M),T.props.columnDef.cellStyle),typeof T.props.cellEditable.cellStyle=="function"?M=m(m({},M),T.props.cellEditable.cellStyle(T.state.value,T.props.rowData,T.props.columnDef)):M=m(m({},M),T.props.cellEditable.cellStyle),M}),(0,l.default)((0,u.default)(T),"handleKeyDown",function(M){M.keyCode===13?T.onApprove():M.keyCode===27&&T.onCancel()}),(0,l.default)((0,u.default)(T),"onApprove",function(){var M=(0,h.validateInput)(T.props.columnDef,T.state.value).isValid;M&&T.setState({isLoading:!0},function(){T.props.cellEditable.onCellEditApproved(T.state.value,T.props.getFieldValue(T.props.rowData,T.props.columnDef),T.props.rowData,T.props.columnDef).then(function(){T.setState({isLoading:!1}),T.props.onCellEditFinished(T.props.rowData,T.props.columnDef)}).catch(function(S){T.setState({isLoading:!1})})})}),(0,l.default)((0,u.default)(T),"onCancel",function(){T.props.onCellEditFinished(T.props.rowData,T.props.columnDef)}),T.state={errorState:{isValid:!0,helperText:""},isLoading:!1,value:k.getFieldValue(T.props.rowData,T.props.columnDef,!1)},T}return(0,i.default)(w,[{key:"renderActions",value:function(){if(this.state.isLoading)return f.default.createElement("div",{style:{display:"flex",justifyContent:"center",width:60}},f.default.createElement(d.default,{size:20}));var T=[{icon:this.props.icons.Check,tooltip:this.props.localization.saveTooltip,onClick:this.onApprove,disabled:this.state.isLoading||!this.state.errorState.isValid},{icon:this.props.icons.Clear,tooltip:this.props.localization.cancelTooltip,onClick:this.onCancel,disabled:this.state.isLoading}];return f.default.createElement(this.props.components.Actions,{actions:T,components:this.props.components,size:"small"})}},{key:"handleChange",value:function(T){var M=(0,h.validateInput)(this.props.columnDef,T);this.setState({errorState:M,value:T})}},{key:"render",value:function(){var T=this;return f.default.createElement(c.default,{size:this.props.size,style:this.getStyle(),padding:"none"},f.default.createElement("div",{style:{display:"flex",alignItems:"center"}},f.default.createElement("div",{style:{flex:1,marginRight:4}},f.default.createElement(this.props.components.EditField,{columnDef:this.props.columnDef,value:this.state.value,error:!this.state.errorState.isValid,helperText:this.state.errorState.helperText,onChange:function(S){return T.handleChange(S)},onKeyDown:this.handleKeyDown,disabled:this.state.isLoading,rowData:this.props.rowData,autoFocus:!0})),this.renderActions()))}}]),w}(f.default.Component);g.defaultProps={columnDef:{},localization:{saveTooltip:"Save",cancelTooltip:"Cancel"}},g.propTypes={cellEditable:s.default.object.isRequired,columnDef:s.default.object.isRequired,components:s.default.object.isRequired,errorState:s.default.oneOfType([s.default.object,s.default.bool]),icons:s.default.object.isRequired,localization:s.default.object.isRequired,onCellEditFinished:s.default.func.isRequired,rowData:s.default.object.isRequired,size:s.default.string,getFieldValue:s.default.func.isRequired};var b=g;e.default=b}(Kg)),Kg}var Jg={},Qg={exports:{}},em={exports:{}},g_;function xz(){return g_||(g_=1,function(e){function t(r){if(Array.isArray(r))return r}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(em)),em.exports}var tm={exports:{}},m_;function wz(){return m_||(m_=1,function(e){function t(r,i){var u=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(u!=null){var o,a,n,l,f=[],s=!0,c=!1;try{if(n=(u=u.call(r)).next,i===0){if(Object(u)!==u)return;s=!1}else for(;!(s=(o=n.call(u)).done)&&(f.push(o.value),f.length!==i);s=!0);}catch(d){c=!0,a=d}finally{try{if(!s&&u.return!=null&&(l=u.return(),Object(l)!==l))return}finally{if(c)throw a}}return f}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(tm)),tm.exports}var nm={exports:{}},v_;function _z(){return v_||(v_=1,function(e){function t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(nm)),nm.exports}var y_;function ao(){return y_||(y_=1,function(e){var t=xz(),r=wz(),i=CS(),u=_z();function o(a,n){return t(a)||r(a,n)||i(a,n)||u()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(Qg)),Qg.exports}const Bl=qn(D9),qo=qn(E9);var b_;function Tz(){return b_||(b_=1,function(e){var t=vn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(hr()),i=t(Jr()),u=t(Ur()),o=t(ao()),a=t($e),n=t(Or),l=t(vy),f=t(Bl),s=t(qo);function c(m,y){var v=Object.keys(m);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(m);y&&(g=g.filter(function(b){return Object.getOwnPropertyDescriptor(m,b).enumerable})),v.push.apply(v,g)}return v}function d(m){for(var y=1;y0&&o.default.createElement(i.default,{colSpan:n.options.detailPanelOffset.left}),o.default.createElement(i.default,{size:n.size,colSpan:n.renderColumns.length-n.options.detailPanelOffset.left-n.options.detailPanelOffset.right,padding:"none"},o.default.createElement(r.default,{in:c,timeout:"auto",unmountOnExit:!0,mountOnEnter:!0,onExited:function(){y.current=void 0,m()}},g({rowData:n.data}))))}return Uc}var Kr={},__;function Ri(){if(__)return Kr;__=1;var e=vn;Object.defineProperty(Kr,"__esModule",{value:!0}),Kr.widthToNumber=Kr.selectionMaxWidth=Kr.rowActions=Kr.reducePercentsInCalc=Kr.parseFirstLastPageButtons=Kr.elementSize=Kr.baseIconSize=Kr.actionsColumnWidth=void 0;var t=e(Jr()),r=e(Ur());function i(h,p){var m=Object.keys(h);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(h);p&&(y=y.filter(function(v){return Object.getOwnPropertyDescriptor(h,v).enumerable})),m.push.apply(m,y)}return m}function u(h){for(var p=1;p1){var v=y[1];return p.replace(/\d*%/,"".concat(m*(v/100),"px"))}return p.replace(/\d*%/,"".concat(m,"px"))};Kr.reducePercentsInCalc=s;var c=function(p){return typeof p=="number"?p:!p||!p.match(/^\s*\d+(px)?\s*$/)?NaN:Number(p.replace(/px$/,""))};Kr.widthToNumber=c;var d=function(p,m){var y={first:!0,last:!0};return typeof p=="boolean"?y={first:p,last:p}:(0,r.default)(p)==="object"&&(y=u(u({},y),p)),m&&(y={first:y.last,last:y.first}),y};return Kr.parseFirstLastPageButtons=d,Kr}var Hc={},T_;function Cz(){if(T_)return Hc;T_=1;var e=vn;Object.defineProperty(Hc,"__esModule",{value:!0}),Hc.useDoubleClick=r;var t=e($e);function r(i,u){var o=t.default.useRef(0),a=t.default.useRef(null),n=t.default.useRef(null),l=t.default.useRef(null);t.default.useEffect(function(){n.current=u,l.current=i});var f=function(){clearTimeout(a.current),a.current=null,o.current=0},s=t.default.useCallback(function(c){var d=o.current+1===2,h=a.current;if(h&&d&&(f(),n.current&&n.current(c)),!h){o.current=o.current+1;var p=function(){f(),l.current&&l.current(c)};if(n.current){var m=setTimeout(p,250);a.current=m}else p()}},[]);return s}return Hc}var k_;function Oz(){return k_||(k_=1,function(e){var t=vn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t($l()),u=t(Ai),o=t(qo),a=t(Bl),n=t(zo),l=t(hr()),f=t(gi),s=t(Jr()),c=t(jl()),d=t($e),h=t(Or),p=Sz(),m=w(Ri()),y=Cz(),v=Kd(),g=Qa(),b=["forwardedRef"],x=["data","components","detailPanel","getFieldValue","isTreeData","onRowSelected","onRowEditStarted","onTreeExpandChanged","onToggleDetailPanel","onEditingCanceled","onEditingApproved","hasAnyEditingRow","treeDataMaxLevel","path","actions","errorState","cellEditable","onCellEditStarted","onCellEditFinished","persistEvents","scrollWidth","onRowClick","onRowDoubleClick","columns"];function _(C){if(typeof WeakMap!="function")return null;var P=new WeakMap,D=new WeakMap;return(_=function(R){return R?D:P})(C)}function w(C,P){if(C&&C.__esModule)return C;if(C===null||r(C)!=="object"&&typeof C!="function")return{default:C};var D=_(P);if(D&&D.has(C))return D.get(C);var O={},R=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var F in C)if(F!=="default"&&Object.prototype.hasOwnProperty.call(C,F)){var A=R?Object.getOwnPropertyDescriptor(C,F):null;A&&(A.get||A.set)?Object.defineProperty(O,F,A):O[F]=C[F]}return O.default=C,D&&D.set(C,O),O}function k(C,P){var D=Object.keys(C);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(C);P&&(O=O.filter(function(R){return Object.getOwnPropertyDescriptor(C,R).enumerable})),D.push.apply(D,O)}return D}function T(C){for(var P=1;P-1)}).sort(function(Ae,Ee){return Ae.tableData.columnOrder-Ee.tableData.columnOrder}).map(function(Ae){var Ee=D.getFieldValue(D.data,Ae);if(D.data.tableData.editCellList&&D.data.tableData.editCellList.find(function(Ie){return Ie.tableData.id===Ae.tableData.id}))return d.default.createElement(D.components.EditCell,{getFieldValue:D.getFieldValue,components:D.components,icons:F,localization:O,columnDef:Ae,size:Oe,key:"cell-"+D.data.tableData.id+"-"+Ae.tableData.id,rowData:D.data,cellEditable:D.cellEditable,onCellEditFinished:D.onCellEditFinished,scrollWidth:U});var De=Ae.editable!=="never"&&!!D.cellEditable;De&&D.cellEditable.isCellEditable&&(De=D.cellEditable.isCellEditable(D.data,Ae));var Re="cell-".concat(D.data.tableData.id,"-").concat(Ae.tableData.id);return d.default.createElement(D.components.Cell,{size:Oe,errorState:D.errorState,columnDef:T({cellStyle:R.cellStyle},Ae),value:Ee,key:Re,rowData:D.data,cellEditable:De,onCellEditStarted:D.onCellEditStarted,scrollWidth:U})});return ke},Oe=m.elementSize(A),Me=q.length*m.baseIconSize(A),ce=function(ke){return d.default.createElement(f.default,{size:Oe,padding:"none",key:"key-actions-column",style:T({width:Me,padding:"0px 5px",boxSizing:"border-box"},R.actionsCellStyle)},d.default.createElement(D.components.Actions,{data:D.data,actions:ke,components:D.components,size:Oe,disabled:D.hasAnyEditingRow}))},ye=function(){var ke=R.selectionProps||{};typeof ke=="function"&&(ke=ke(D.data));var Ae=m.selectionMaxWidth(A,D.treeDataMaxLevel)||0,Ee=Oe!=="medium"?{padding:"4px"}:void 0;return d.default.createElement(f.default,{size:Oe,padding:"none",key:"key-selection-column",style:{width:Ae}},d.default.createElement(n.default,(0,l.default)({size:Oe,checked:D.data.tableData.checked===!0,onClick:function(Re){return Re.stopPropagation()},value:D.data.tableData.id.toString(),onChange:function(Re){D.onRowSelected(Re,D.path,D.data)},style:Ee},ke)))},J=function(ke){return{transform:ke?"rotate(90deg)":"none"}},ne=function(){return R.showDetailPanelIcon?typeof D.detailPanel=="function"?d.default.createElement(f.default,{size:Oe,padding:"none",key:"key-detail-panel-column",style:T({width:42,textAlign:"center"},R.detailPanelColumnStyle)},d.default.createElement(a.default,{"aria-label":"Detail panel visibility toggle",size:Oe,style:T({transition:"all ease 200ms"},J(D.data.tableData.showDetailPanel)),onClick:function(Ae){D.onToggleDetailPanel(D.path,D.detailPanel),Ae.stopPropagation()}},d.default.createElement(F.DetailPanel,null))):d.default.createElement(f.default,{size:Oe,padding:"none",key:"key-detail-panel-column"},d.default.createElement("div",{style:T({width:42*D.detailPanel.length,textAlign:"center",display:"flex"},R.detailPanelColumnStyle)},D.detailPanel.map(function(ke,Ae){typeof ke=="function"&&(ke=ke(D.data));var Ee=(D.data.tableData.showDetailPanel||"").toString()===ke.render.toString(),De=d.default.createElement(F.DetailPanel,null),Re=!0;return Ee?ke.openIcon?(De=d.default.createElement(v.MTableCustomIcon,{icon:ke.openIcon,iconProps:ke.iconProps}),Re=!1):ke.icon&&(De=d.default.createElement(v.MTableCustomIcon,{icon:ke.icon,iconProps:ke.iconProps})):ke.icon&&(De=d.default.createElement(v.MTableCustomIcon,{icon:ke.icon,iconProps:ke.iconProps}),Re=!1),De=d.default.createElement(a.default,{"aria-label":"Detail panel visibility toggle",size:Oe,key:"key-detail-panel-"+Ae,style:T({transition:"all ease 200ms"},J(Re&&Ee)),disabled:ke.disabled,onClick:function(Be){D.onToggleDetailPanel(D.path,ke.render),Be.stopPropagation()}},De),ke.tooltip&&(De=d.default.createElement(o.default,{key:"key-detail-panel-"+Ae,title:ke.tooltip},De)),De}))):null},de=function(){return D.data.tableData.childRows&&D.data.tableData.childRows.length>0?d.default.createElement(f.default,{size:Oe,padding:"none",key:"key-tree-data-column",style:{width:48+9*(D.treeDataMaxLevel-2)}},d.default.createElement(a.default,{"aria-label":"Detail panel visibility toggle",size:Oe,style:T({transition:"all ease 200ms",marginLeft:D.level*9},J(D.data.tableData.isTreeExpanded)),onClick:function(Ae){D.onTreeExpandChanged(D.path,D.data),Ae.stopPropagation()}},d.default.createElement(F.DetailPanel,null))):d.default.createElement(f.default,{padding:"none",key:"key-tree-data-column"})},xe=function(ke,Ae){var Ee={};return typeof R.rowStyle=="function"?Ee=T(T({},Ee),R.rowStyle(D.data,ke,Ae,D.hasAnyEditingRow)):R.rowStyle&&(Ee=T(T({},Ee),R.rowStyle)),(Q||Y)&&(Ee.cursor="pointer"),D.hasAnyEditingRow&&(Ee.opacity=Ee.opacity?Ee.opacity:.2),Ee},ue=Se();R.selection&&ue.splice(0,0,ye());var ge=m.rowActions(D);if(ge.length>0){if(R.actionsColumnIndex===-1)ue.push(ce(ge));else if(R.actionsColumnIndex>=0){var be=0;R.selection&&(be=1),ue.splice(R.actionsColumnIndex+be,0,ce(ge))}}return D.detailPanel&&(R.detailPanelColumnAlignment==="right"?ue.push(ne()):ue.splice(0,0,ne())),D.isTreeData&&ue.splice(0,0,de()),D.columns.filter(function(we){return we.tableData.groupOrder>-1}).forEach(function(we){ue.splice(0,0,d.default.createElement(f.default,{size:Oe,padding:"none",key:"key-group-cell"+we.tableData.id}))}),d.default.createElement(d.default.Fragment,null,d.default.createElement(u.default,(0,l.default)({ref:P,selected:W},X,{onClick:function(ke){ee&&ke.persist(),!W&&Te(ke)},hover:!!(Q||Y),style:xe(D.index,D.level),"data-testid":"mtablebodyrow"}),ue),d.default.createElement(p.MTableDetailPanel,{options:R,data:D.data,detailPanel:D.detailPanel,renderColumns:ue,size:Oe}),D.data.tableData.childRows&&D.data.tableData.isTreeExpanded&&D.data.tableData.childRows.map(function(we,ke){return we.tableData.editing?d.default.createElement(D.components.EditRow,{columns:re,components:D.components,data:we,icons:F,localization:O,getFieldValue:D.getFieldValue,key:ke,mode:we.tableData.editing,isTreeData:D.isTreeData,detailPanel:D.detailPanel,onEditingCanceled:N,onEditingApproved:E,errorState:D.errorState}):d.default.createElement(D.components.Row,(0,l.default)({},D,{data:we,index:ke,key:ke,level:D.level+1,path:[].concat((0,i.default)(D.path),[we.tableData.uuid]),onEditingCanceled:N,onEditingApproved:E,hasAnyEditingRow:D.hasAnyEditingRow,treeDataMaxLevel:G,errorState:D.errorState,cellEditable:H,onCellEditStarted:V,onCellEditFinished:te}))}))}M.defaultProps={actions:[],index:0,data:{},path:[],persistEvents:!1},M.propTypes={forwardedRef:h.default.element,actions:h.default.array,index:h.default.number.isRequired,data:h.default.object.isRequired,detailPanel:h.default.oneOfType([h.default.func,h.default.arrayOf(h.default.oneOfType([h.default.object,h.default.func]))]),hasAnyEditingRow:h.default.bool,onRowSelected:h.default.func,path:h.default.arrayOf(h.default.oneOfType([h.default.string,h.default.number])),persistEvents:h.default.bool,treeDataMaxLevel:h.default.number,getFieldValue:h.default.func.isRequired,columns:h.default.array,onToggleDetailPanel:h.default.func.isRequired,onRowClick:h.default.func,onRowDoubleClick:h.default.func,onEditingApproved:h.default.func,onEditingCanceled:h.default.func,errorState:h.default.oneOfType([h.default.object,h.default.bool])};var S=d.default.forwardRef(function(P,D){return d.default.createElement(M,(0,l.default)({},P,{forwardedRef:D}))});e.default=S}(am)),am}var im={},zi={};const Az=qn(lF);var M_;function Pz(){if(M_)return zi;M_=1;var e=vn;Object.defineProperty(zi,"__esModule",{value:!0}),zi.getCurrencyValue=o,zi.getEmptyValue=u,zi.getRenderValue=a,zi.isoDateRegex=void 0;var t=e($e),r=e(Az),i=/^\d{4}-(0[1-9]|1[0-2])-([12]\d|0[1-9]|3[01])([T\s](([01]\d|2[0-3])\:[0-5]\d|24\:00)(\:[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3])\:?([0-5]\d)?)?)?$/;zi.isoDateRegex=i;function u(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof n=="function"?l.columnDef.emptyValue(l.rowData):n}function o(n,l){return n!==void 0?new Intl.NumberFormat(n.locale!==void 0?n.locale:"en-US",{style:"currency",currency:n.currencyCode!==void 0?n.currencyCode:"USD",minimumFractionDigits:n.minimumFractionDigits!==void 0?n.minimumFractionDigits:2,maximumFractionDigits:n.maximumFractionDigits!==void 0?n.maximumFractionDigits:2}).format(l!==void 0?l:0):new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(l!==void 0?l:0)}function a(n,l,f){var s=n.columnDef.dateSetting&&n.columnDef.dateSetting.locale?n.columnDef.dateSetting.locale:void 0;if(n.columnDef.emptyValue!==void 0&&(n.value===void 0||n.value===null))return u(n.columnDef.emptyValue,n);if(n.rowData===void 0&&n.value&&n.columnDef.groupRender)return n.columnDef.groupRender(n.value);if(n.columnDef.render&&n.rowData)return n.columnDef.render(n.rowData);if(n.columnDef.type==="boolean"){var c={textAlign:"left",verticalAlign:"middle",width:48};return n.value?t.default.createElement(l.Check,{style:c}):t.default.createElement(l.ThirdStateCheck,{style:c})}else{if(n.columnDef.type==="date")return n.value instanceof Date?n.value.toLocaleDateString(s):i.exec(n.value)?(0,r.default)(n.value).toLocaleDateString(s):n.value;if(n.columnDef.type==="time")return n.value instanceof Date?n.value.toLocaleTimeString():i.exec(n.value)?(0,r.default)(n.value).toLocaleTimeString(s):n.value;if(n.columnDef.type==="datetime")return n.value instanceof Date?n.value.toLocaleString():i.exec(n.value)?(0,r.default)(n.value).toLocaleString(s):n.value;if(n.columnDef.type==="currency")return o(n.columnDef.currencySetting,n.value);if(typeof n.value=="boolean")return n.value.toString()}return n.value}return zi}var qi={},S_;function qd(){if(S_)return qi;S_=1;var e=vn,t=Ur();Object.defineProperty(qi,"__esModule",{value:!0}),qi.getStyle=s,qi.setObjectByKey=qi.selectFromObject=void 0;var r=e(Jr()),i=o(Ri());function u(c){if(typeof WeakMap!="function")return null;var d=new WeakMap,h=new WeakMap;return(u=function(m){return m?h:d})(c)}function o(c,d){if(c&&c.__esModule)return c;if(c===null||t(c)!=="object"&&typeof c!="function")return{default:c};var h=u(d);if(h&&h.has(c))return h.get(c);var p={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in c)if(y!=="default"&&Object.prototype.hasOwnProperty.call(c,y)){var v=m?Object.getOwnPropertyDescriptor(c,y):null;v&&(v.get||v.set)?Object.defineProperty(p,y,v):p[y]=c[y]}return p.default=c,h&&h.set(c,p),p}function a(c,d){var h=Object.keys(c);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(c);d&&(p=p.filter(function(m){return Object.getOwnPropertyDescriptor(c,m).enumerable})),h.push.apply(h,p)}return h}function n(c){for(var d=1;d-1)}).sort(function(U,Q){return U.tableData.columnOrder-Q.tableData.columnOrder}).map(function(U,Q){var Y=T.getFieldValue(D.data,U,!1),Z=function(Se,Oe){var Me={color:"inherit"};return typeof Se.cellStyle=="function"?Me=_(_({},Me),Se.cellStyle(Oe,T.data)):Me=_(_({},Me),Se.cellStyle),Se.disableClick&&(Me.cursor="default"),_({},Me)};Q===0&&24+T.level*20;var X=!1;if(U.editable===void 0&&(X=!0),U.editable==="always"&&(X=!0),U.editable==="onAdd"&&T.mode==="add"&&(X=!0),U.editable==="onUpdate"&&T.mode==="update"&&(X=!0),typeof U.editable=="function"&&(X=U.editable(U,T.data)),!U.field||!X){var re=T.getFieldValue(D.data,U);return n.default.createElement(T.components.Cell,{size:V,icons:M,columnDef:U,value:re,key:U.tableData.id,rowData:T.data,style:Z(U,Y)})}else{var ie=U.editComponent,le=(0,u.default)(U,y),se=ie||T.components.EditField,pe=(0,m.validateInput)(U,D.data);return te===-1&&(te=Q),n.default.createElement(l.default,{size:V,key:U.tableData.id,align:["numeric"].indexOf(U.type)!==-1?"right":"left",style:Z(U,Y)},n.default.createElement(se,{key:U.tableData.id,columnDef:le,autoFocus:te===Q,value:Y,error:!pe.isValid,helperText:pe.helperText,locale:T.localization.dateTimePickerLocalization,rowData:D.data,onChange:function(Se){var Oe=_({},D.data);(0,d.setObjectByKey)(Oe,U.field,Se),O({data:Oe}),T.onBulkEditRowChanged&&T.onBulkEditRowChanged(T.data,Oe)},onRowDataChange:function(Se){O({data:Se}),T.onBulkEditRowChanged&&T.onBulkEditRowChanged(T.data,Se)}}))}});return ee}var F=T.columns.every(function(V){var te=(0,m.validateInput)(V,D.data);return te.isValid}),A=function(){F&&T.onEditingApproved(T.mode,D.data,T.data)};function z(){if(T.mode!=="bulk"){var V=p.elementSize(T),te=[{icon:M.Check,tooltip:T.localization.saveTooltip,disabled:!F,onClick:A},{icon:M.Clear,tooltip:T.localization.cancelTooltip,onClick:function(){T.onEditingCanceled(T.mode,T.data)}}];return n.default.createElement(l.default,{size:V,padding:"none",key:"key-actions-column",style:_({width:42*te.length,padding:"0px 5px"},S.editCellStyle)},n.default.createElement(T.components.Actions,{data:T.data,actions:te,components:T.components,size:V}))}}function B(){var V={borderBottom:"1px solid red"};return V}var $=function(te){te.keyCode===13&&te.target.type!=="textarea"&&te.target.type!=="button"||te.keyCode===13&&te.target.type==="textarea"&&te.shiftKey?A():te.keyCode===27&&T.onEditingCanceled(T.mode,T.data)},j=p.elementSize(T),N;if(T.mode==="add"||T.mode==="update"||T.mode==="bulk")N=R();else{var E=T.columns.filter(function(V){return!V.hidden&&!(V.tableData.groupOrder>-1)}).length;N=[n.default.createElement(l.default,{size:j,padding:S.actionsColumnIndex===0?"none":void 0,key:"key-edit-cell",colSpan:E},n.default.createElement(s.default,{variant:"h6"},T.localization.deleteText))]}if(S.selection&&N.splice(0,0,n.default.createElement(l.default,{padding:"none",key:"key-selection-cell"})),T.isTreeData&&N.splice(0,0,n.default.createElement(l.default,{padding:"none",key:"key-tree-data-cell"})),S.actionsColumnIndex===-1)N.push(z());else if(S.actionsColumnIndex>=0){var W=0;S.selection&&(W=1),T.isTreeData&&(W=1,S.selection&&N.splice(1,1)),N.splice(S.actionsColumnIndex+W,0,z())}if(T.detailPanel&&S.showDetailPanelIcon!==!1&&T.mode!=="bulk"){var G=S.detailPanelColumnAlignment,L=G==="left"?0:N.length;N.splice(L,0,n.default.createElement(l.default,{padding:"none",key:"key-detail-panel-cell"}))}T.columns.filter(function(V){return V.tableData.groupOrder>-1}).forEach(function(V){N.splice(0,0,n.default.createElement(l.default,{padding:"none",key:"key-group-cell"+V.tableData.id}))}),T.detailPanel,T.isTreeData,T.onRowClick,T.onRowSelected,T.onTreeExpandChanged,T.onToggleDetailPanel,T.onEditingApproved,T.onEditingCanceled,T.getFieldValue,T.components,T.columns,T.errorState,T.onBulkEditRowChanged,T.bulkEditChangedRows,T.scrollWidth;var q=T.forwardedRef,H=(0,u.default)(T,v);return n.default.createElement(f.default,(0,i.default)({onKeyDown:$},H,{ref:q,style:B()}),N)}w.defaultProps={actions:[],index:0,options:{},path:[],onBulkEditRowChanged:function(){}},w.propTypes={actions:c.default.array,index:c.default.number.isRequired,data:c.default.object,detailPanel:c.default.oneOfType([c.default.func,c.default.arrayOf(c.default.oneOfType([c.default.object,c.default.func]))]),onRowSelected:c.default.func,path:c.default.arrayOf(c.default.number),columns:c.default.array,onRowClick:c.default.func,onEditingApproved:c.default.func,onEditingCanceled:c.default.func,localization:c.default.object,getFieldValue:c.default.func,errorState:c.default.oneOfType([c.default.object,c.default.bool]),onBulkEditRowChanged:c.default.func};var k=n.default.forwardRef(function(M,S){return n.default.createElement(w,(0,i.default)({},M,{forwardedRef:S}))});e.default=k}(lm)),lm}var sm={},um={},uo={},P_;function Jy(){if(P_)return uo;P_=1;var e=vn;Object.defineProperty(uo,"__esModule",{value:!0}),uo.getLocalizedFilterPlaceHolder=uo.getLocalizationData=void 0;var t=e(Jr()),r=H4();function i(n,l){var f=Object.keys(n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);l&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),f.push.apply(f,s)}return f}function u(n){for(var l=1;l-1}),c.default.createElement(n.default,{primary:_.lookup[D]}))})))}var b=c.default.forwardRef(function(_,w){return c.default.createElement(g,(0,i.default)({},_,{forwardedRef:w}))});e.default=b}(cm)),cm}var fm={};const U4=qn(N9);var R_;function jz(){return R_||(R_=1,function(e){var t=vn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(hr()),i=t(Rd),u=t(U4),o=t(qo),a=t($e),n=Jy();function l(s){var c,d,h=s.columnDef,p=s.icons,m=s.localization,y=s.hideFilterIcons,v=s.onFilterChanged,g=s.forwardedRef,b=(0,n.getLocalizationData)(m),x=p.Filter;return a.default.createElement(i.default,{ref:g,style:h.type==="numeric"?{float:(c=h.align)!==null&&c!==void 0?c:"right"}:{float:(d=h.align)!==null&&d!==void 0?d:"left"},type:h.type==="numeric"?"number":"search",value:h.tableData.filterValue||"",placeholder:(0,n.getLocalizedFilterPlaceHolder)(h,m),onChange:function(w){v(h.tableData.id,w.target.value)},inputProps:{"aria-label":"filter data by ".concat(h.title)},InputProps:y||h.hideFilterIcon?void 0:{startAdornment:a.default.createElement(u.default,{position:"start"},a.default.createElement(o.default,{title:b.filterTooltip},a.default.createElement(x,null)))}})}var f=a.default.forwardRef(function(c,d){return a.default.createElement(l,(0,r.default)({},c,{forwardedRef:d}))});e.default=f}(fm)),fm}var dm={},L_;function $z(){return L_||(L_=1,function(e){var t=vn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(hr()),i=t(zo),u=t($e);function o(n){var l=n.forwardedRef,f=n.columnDef,s=n.onFilterChanged;return u.default.createElement(i.default,{ref:l,inputProps:{"aria-label":"Filter of ".concat(f.title)},indeterminate:f.tableData.filterValue===void 0,checked:f.tableData.filterValue==="checked",onChange:function(){var d;f.tableData.filterValue===void 0?d="checked":f.tableData.filterValue==="checked"&&(d="unchecked"),s(f.tableData.id,d)}})}var a=u.default.forwardRef(function(l,f){return u.default.createElement(o,(0,r.default)({},l,{forwardedRef:f}))});e.default=a}(dm)),dm}var hm={},I_;function Bz(){return I_||(I_=1,function(e){var t=vn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(hr()),u=a($e);function o(f){if(typeof WeakMap!="function")return null;var s=new WeakMap,c=new WeakMap;return(o=function(h){return h?c:s})(f)}function a(f,s){if(f&&f.__esModule)return f;if(f===null||r(f)!=="object"&&typeof f!="function")return{default:f};var c=o(s);if(c&&c.has(f))return c.get(f);var d={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in f)if(p!=="default"&&Object.prototype.hasOwnProperty.call(f,p)){var m=h?Object.getOwnPropertyDescriptor(f,p):null;m&&(m.get||m.set)?Object.defineProperty(d,p,m):d[p]=f[p]}return d.default=f,c&&c.set(f,d),d}function n(f){var s=f.columnDef,c=f.onFilterChanged,d=f.forwardedRef;return(0,u.createElement)(s.filterComponent,{columnDef:s,onFilterChanged:c,forwardedRef:d})}var l=u.default.forwardRef(function(s,c){return u.default.createElement(n,(0,i.default)({},s,{forwardedRef:c}))});e.default=l}(hm)),hm}var F_;function H4(){return F_||(F_=1,function(e){var t=vn;Object.defineProperty(e,"__esModule",{value:!0}),e.MTableFilterRow=y,e.default=void 0;var r=t(Ai),i=t(gi),u=t(Jr()),o=t(hr()),a=t($e),n=t(Or),l=t(Lz()),f=t(Nz()),s=t(jz()),c=t($z()),d=t(Bz()),h=Ju();function p(g,b){var x=Object.keys(g);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(g);b&&(_=_.filter(function(w){return Object.getOwnPropertyDescriptor(g,w).enumerable})),x.push.apply(x,_)}return x}function m(g){for(var b=1;b-1)}).sort(function(T,M){return T.tableData.columnOrder-M.tableData.columnOrder}).map(function(T){return a.default.createElement(i.default,{key:T.tableData.id,style:m(m({},b.filterCellStyle),T.filterCellStyle)},x(T))});if(b.selection&&_.splice(0,0,a.default.createElement(i.default,{padding:"none",key:"key-selection-column"})),g.hasActions)if(b.actionsColumnIndex===-1)_.push(a.default.createElement(i.default,{key:"key-action-column"}));else{var w=0;g.selection&&(w=1),_.splice(b.actionsColumnIndex+w,0,a.default.createElement(i.default,{key:"key-action-column"}))}if(g.hasDetailPanel&&b.showDetailPanelIcon){var k=b.detailPanelColumnAlignment==="left"?0:_.length;_.splice(k,0,a.default.createElement(i.default,{padding:"none",key:"key-detail-panel-column"}))}return g.isTreeData>0&&_.splice(0,0,a.default.createElement(i.default,{padding:"none",key:"key-tree-data-filter"})),g.columns.filter(function(T){return T.tableData.groupOrder>-1}).forEach(function(T){_.splice(0,0,a.default.createElement(i.default,{padding:"checkbox",key:"key-group-filter"+T.tableData.id}))}),a.default.createElement(r.default,{id:"m--table--filter--row",ref:g.forwardedRef,style:m({height:10},b.filterRowStyle)},_)}y.defaultProps={columns:[],hasActions:!1,localization:{filterTooltip:"Filter"}},y.propTypes={columns:n.default.array.isRequired,hasDetailPanel:n.default.bool.isRequired,isTreeData:n.default.bool.isRequired,onFilterChanged:n.default.func.isRequired,hasActions:n.default.bool,localization:n.default.object};var v=a.default.forwardRef(function(b,x){return a.default.createElement(y,(0,o.default)({},b,{forwardedRef:x}))});e.default=v}(sm)),sm}var pm={};const V4=qn(j9),zz=qn($9);function N_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,i)}return r}function j_(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ka(1));return r(Y4)(e,t)}if(typeof e!="function")throw new Error(ka(2));var u=e,o=t,a=[],n=a,l=!1;function f(){n===a&&(n=a.slice())}function s(){if(l)throw new Error(ka(3));return o}function c(m){if(typeof m!="function")throw new Error(ka(4));if(l)throw new Error(ka(5));var y=!0;return f(),n.push(m),function(){if(y){if(l)throw new Error(ka(6));y=!1,f();var g=n.indexOf(m);n.splice(g,1),a=null}}}function d(m){if(!qz(m))throw new Error(ka(7));if(typeof m.type>"u")throw new Error(ka(8));if(l)throw new Error(ka(9));try{l=!0,o=u(o,m)}finally{l=!1}for(var y=a=n,v=0;vX4=e,Vz=()=>X4,W_=Symbol.for("react-redux-context"),U_=typeof globalThis<"u"?globalThis:{};function Yz(){var e;if(!$e.createContext)return{};const t=(e=U_[W_])!=null?e:U_[W_]=new Map;let r=t.get($e.createContext);return r||(r=$e.createContext(null),t.set($e.createContext,r)),r}const Z4=Yz(),Gz=()=>{throw new Error("uSES not initialized!")},Xz=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function Zz(e,t,r,i,{areStatesEqual:u,areOwnPropsEqual:o,areStatePropsEqual:a}){let n=!1,l,f,s,c,d;function h(g,b){return l=g,f=b,s=e(l,f),c=t(i,f),d=r(s,c,f),n=!0,d}function p(){return s=e(l,f),t.dependsOnOwnProps&&(c=t(i,f)),d=r(s,c,f),d}function m(){return e.dependsOnOwnProps&&(s=e(l,f)),t.dependsOnOwnProps&&(c=t(i,f)),d=r(s,c,f),d}function y(){const g=e(l,f),b=!a(g,s);return s=g,b&&(d=r(s,c,f)),d}function v(g,b){const x=!o(b,f),_=!u(g,l,b,f);return l=g,f=b,x&&_?p():x?m():_?y():d}return function(b,x){return n?v(b,x):h(b,x)}}function Kz(e,t){let{initMapStateToProps:r,initMapDispatchToProps:i,initMergeProps:u}=t,o=Vn(t,Xz);const a=r(e,o),n=i(e,o),l=u(e,o);return Zz(a,n,l,e,o)}function Jz(e,t){const r={};for(const i in e){const u=e[i];typeof u=="function"&&(r[i]=(...o)=>t(u(...o)))}return r}function I0(e){return function(r){const i=e(r);function u(){return i}return u.dependsOnOwnProps=!1,u}}function H_(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function K4(e,t){return function(i,{displayName:u}){const o=function(n,l){return o.dependsOnOwnProps?o.mapToProps(n,l):o.mapToProps(n,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(n,l){o.mapToProps=e,o.dependsOnOwnProps=H_(e);let f=o(n,l);return typeof f=="function"&&(o.mapToProps=f,o.dependsOnOwnProps=H_(f),f=o(n,l)),f},o}}function Qy(e,t){return(r,i)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${i.wrappedComponentName}.`)}}function Qz(e){return e&&typeof e=="object"?I0(t=>Jz(e,t)):e?typeof e=="function"?K4(e):Qy(e,"mapDispatchToProps"):I0(t=>({dispatch:t}))}function eq(e){return e?typeof e=="function"?K4(e):Qy(e,"mapStateToProps"):I0(()=>({}))}function tq(e,t,r){return Gt({},r,e,t)}function nq(e){return function(r,{displayName:i,areMergedPropsEqual:u}){let o=!1,a;return function(l,f,s){const c=e(l,f,s);return o?u(c,a)||(a=c):(o=!0,a=c),a}}}function rq(e){return e?typeof e=="function"?nq(e):Qy(e,"mergeProps"):()=>tq}function aq(){const e=Vz();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let i=t;for(;i;)i.callback(),i=i.next})},get(){let i=[],u=t;for(;u;)i.push(u),u=u.next;return i},subscribe(i){let u=!0,o=r={callback:i,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){!u||t===null||(u=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}const V_={notify(){},get:()=>[]};function J4(e,t){let r,i=V_,u=0,o=!1;function a(m){s();const y=i.subscribe(m);let v=!1;return()=>{v||(v=!0,y(),c())}}function n(){i.notify()}function l(){p.onStateChange&&p.onStateChange()}function f(){return o}function s(){u++,r||(r=t?t.addNestedSub(l):e.subscribe(l),i=aq())}function c(){u--,r&&u===0&&(r(),r=void 0,i.clear(),i=V_)}function d(){o||(o=!0,s())}function h(){o&&(o=!1,c())}const p={addNestedSub:a,notifyNestedSubs:n,handleChangeWrapper:l,isSubscribed:f,trySubscribe:d,tryUnsubscribe:h,getListeners:()=>i};return p}const iq=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ff=iq?$e.useLayoutEffect:$e.useEffect;function Y_(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function mm(e,t){if(Y_(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(let u=0;u{Q4=e},sq=[null,null];function uq(e,t,r){Ff(()=>e(...t),r)}function cq(e,t,r,i,u,o){e.current=i,r.current=!1,u.current&&(u.current=null,o())}function fq(e,t,r,i,u,o,a,n,l,f,s){if(!e)return()=>{};let c=!1,d=null;const h=()=>{if(c||!n.current)return;const m=t.getState();let y,v;try{y=i(m,u.current)}catch(g){v=g,d=g}v||(d=null),y===o.current?a.current||f():(o.current=y,l.current=y,a.current=!0,s())};return r.onStateChange=h,r.trySubscribe(),h(),()=>{if(c=!0,r.tryUnsubscribe(),r.onStateChange=null,d)throw d}}function dq(e,t){return e===t}function eC(e,t,r,{pure:i,areStatesEqual:u=dq,areOwnPropsEqual:o=mm,areStatePropsEqual:a=mm,areMergedPropsEqual:n=mm,forwardRef:l=!1,context:f=Z4}={}){const s=f,c=eq(e),d=Qz(t),h=rq(r),p=!!e;return y=>{const v=y.displayName||y.name||"Component",g=`Connect(${v})`,b={shouldHandleStateChanges:p,displayName:g,wrappedComponentName:v,WrappedComponent:y,initMapStateToProps:c,initMapDispatchToProps:d,initMergeProps:h,areStatesEqual:u,areStatePropsEqual:a,areOwnPropsEqual:o,areMergedPropsEqual:n};function x(k){const[T,M,S]=$e.useMemo(()=>{const{reactReduxForwardedRef:U}=k,Q=Vn(k,oq);return[k.context,U,Q]},[k]),C=$e.useMemo(()=>T&&T.Consumer&&B9.isContextConsumer($e.createElement(T.Consumer,null))?T:s,[T,s]),P=$e.useContext(C),D=!!k.store&&!!k.store.getState&&!!k.store.dispatch,O=!!P&&!!P.store,R=D?k.store:P.store,F=O?P.getServerState:R.getState,A=$e.useMemo(()=>Kz(R.dispatch,b),[R]),[z,B]=$e.useMemo(()=>{if(!p)return sq;const U=J4(R,D?void 0:P.subscription),Q=U.notifyNestedSubs.bind(U);return[U,Q]},[R,D,P]),$=$e.useMemo(()=>D?P:Gt({},P,{subscription:z}),[D,P,z]),j=$e.useRef(),N=$e.useRef(S),E=$e.useRef(),W=$e.useRef(!1);$e.useRef(!1);const G=$e.useRef(!1),L=$e.useRef();Ff(()=>(G.current=!0,()=>{G.current=!1}),[]);const q=$e.useMemo(()=>()=>E.current&&S===N.current?E.current:A(R.getState(),S),[R,S]),H=$e.useMemo(()=>Q=>z?fq(p,R,z,A,N,j,W,G,E,B,Q):()=>{},[z]);uq(cq,[N,j,W,S,E,B]);let V;try{V=Q4(H,q,F?()=>A(F(),S):q)}catch(U){throw L.current&&(U.message+=` + */const Oz=Object.freeze(Object.defineProperty({__proto__:null,CalendarPicker:O4,CalendarPickerSkeleton:l$,ClockPicker:I4,DEFAULT_LOCALE:s4,DatePicker:PB,DateTimePicker:iz,DateTimePickerTabs:zd,DesktopDatePicker:z4,DesktopDateTimePicker:U4,DesktopTimePicker:V4,LocalizationProvider:DN,MobileDatePicker:q4,MobileDateTimePicker:H4,MobileTimePicker:Y4,MonthPicker:c4,MuiPickersAdapterContext:Ey,PickerStaticWrapper:qd,PickersDay:m4,StaticDatePicker:wz,StaticDateTimePicker:Tz,StaticTimePicker:Mz,TimePicker:Cz,YearPicker:S4,beBY:CN,calendarPickerClasses:Xj,calendarPickerSkeletonClasses:t$,clockClasses:w$,clockNumberClasses:wu,clockPickerClasses:F$,clockPointerClasses:p$,csCZ:JF,datePickerToolbarClasses:G$,dateTimePickerTabsClasses:KB,dateTimePickerToolbarClasses:BB,dayPickerClasses:rj,deDE:zF,enUS:aN,esES:UF,faIR:VF,fiFI:XF,frFR:tN,getCalendarPickerSkeletonUtilityClass:A4,getCalendarPickerUtilityClass:C4,getClockPickerUtilityClass:L4,getMonthPickerUtilityClass:u4,getPickersDayUtilityClass:h4,getYearPickerUtilityClass:M4,huHU:rN,isIS:bN,itIT:fN,jaJP:wN,koKR:vN,monthPickerClasses:EN,nbNO:oN,nlNL:RF,pickersCalendarHeaderClasses:Aj,pickersDayClasses:xu,pickersFadeTransitionGroupClasses:zN,pickersMonthClasses:I0,pickersSlideTransitionClasses:sa,pickersYearClasses:_o,plPL:IF,ptBR:NF,ruRU:PN,svSE:sN,timePickerToolbarClasses:vl,trTR:$F,ukUA:TN,urPK:MN,yearPickerClasses:Uj,zhCN:pN},Symbol.toStringTag,{value:"Module"})),G4=qn(Oz);var m_;function Az(){return m_||(m_=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(hr()),i=t(Bl()),c=t(Ed()),o=t(Rd()),a=t(ky()),n=t(Sy()),l=t(Cy()),f=t($e),s=t(Ld),u=t(qo),d=t(IS),h=t(Oy),p=t(FS),g=t(bR),y=t(xR),v=t(wR),m=r4,b=G4,x=t(Or),_=["columnDef","rowData","onRowDataChange","errorState","autoFocus","onBulkEditRowChanged","scrollWidth"],w=["helperText","error"],k=["helperText","error"];function T(P){var D=M();return function(){var R=(0,l.default)(P),F;if(D){var A=(0,l.default)(this).constructor;F=Reflect.construct(R,arguments,A)}else F=R.apply(this,arguments);return(0,n.default)(this,F)}}function M(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var S=function(P){(0,a.default)(O,P);var D=T(O);function O(){return(0,c.default)(this,O),D.apply(this,arguments)}return(0,o.default)(O,[{key:"getProps",value:function(){var F=this.props;F.columnDef,F.rowData,F.onRowDataChange,F.errorState,F.autoFocus,F.onBulkEditRowChanged,F.scrollWidth;var A=(0,i.default)(F,_);return A}},{key:"renderLookupField",value:function(){var F=this,A=this.getProps(),z=A.helperText,B=A.error,$=(0,i.default)(A,w);return f.default.createElement(p.default,{error:!!B},f.default.createElement(d.default,(0,r.default)({},$,{value:this.props.value===void 0?"":this.props.value,onChange:function(N){return F.props.onChange(N.target.value)},style:{fontSize:13},inputProps:{autoFocus:this.props.autoFocus},SelectDisplayProps:{"aria-label":this.props.columnDef.title}}),Object.keys(this.props.columnDef.lookup).map(function(j){return f.default.createElement(h.default,{key:j,value:j},F.props.columnDef.lookup[j])})),!!z&&f.default.createElement(g.default,null,z))}},{key:"renderBooleanField",value:function(){var F=this,A=this.getProps(),z=A.helperText,B=A.error,$=(0,i.default)(A,k);return f.default.createElement(p.default,{error:!!B,component:"fieldset"},f.default.createElement(y.default,null,f.default.createElement(v.default,{label:"",control:f.default.createElement(u.default,(0,r.default)({},$,{value:String(this.props.value),checked:!!this.props.value,onChange:function(N){return F.props.onChange(N.target.checked)},style:{padding:0,width:24,marginLeft:9},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title}}))})),f.default.createElement(g.default,null,z))}},{key:"renderDateField",value:function(){var F=this.props.columnDef.dateSetting&&this.props.columnDef.dateSetting.format?this.props.columnDef.dateSetting.format:"dd.MM.yyyy";return f.default.createElement(b.LocalizationProvider,{dateAdapter:m.AdapterDateFns,locale:this.props.locale},f.default.createElement(b.DatePicker,(0,r.default)({},this.getProps(),{renderInput:function(z){return f.default.createElement(s.default,z)},format:F,value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderTimeField",value:function(){return f.default.createElement(b.LocalizationProvider,{dateAdapter:m.AdapterDateFns,locale:this.props.locale},f.default.createElement(b.TimePicker,(0,r.default)({},this.getProps(),{renderInput:function(A){return f.default.createElement(s.default,A)},format:"HH:mm:ss",value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderDateTimeField",value:function(){return f.default.createElement(b.LocalizationProvider,{dateAdapter:m.AdapterDateFns,locale:this.props.locale},f.default.createElement(b.DateTimePicker,(0,r.default)({},this.getProps(),{renderInput:function(A){return f.default.createElement(s.default,A)},format:"dd.MM.yyyy HH:mm:ss",value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderTextField",value:function(){var F=this;return f.default.createElement(s.default,(0,r.default)({},this.getProps(),{variant:"standard",fullWidth:!0,type:this.props.columnDef.type==="numeric"?"number":"text",placeholder:this.props.columnDef.editPlaceholder||this.props.columnDef.title,value:this.props.value===void 0?"":this.props.value,onChange:function(z){return F.props.onChange(F.props.columnDef.type==="numeric"?z.target.valueAsNumber:z.target.value)},InputProps:{style:{minWidth:50,fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title,style:this.props.columnDef.type==="numeric"?{textAlign:"right"}:{}}}))}},{key:"renderCurrencyField",value:function(){var F=this;return f.default.createElement(s.default,(0,r.default)({},this.getProps(),{variant:"standard",placeholder:this.props.columnDef.editPlaceholder||this.props.columnDef.title,type:"number",value:this.props.value===void 0?"":this.props.value,onChange:function(z){var B=z.target.valueAsNumber;return!B&&B!==0&&(B=void 0),F.props.onChange(B)},InputProps:{style:{fontSize:13,textAlign:"right"}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title,style:{textAlign:"right"}},onKeyDown:this.props.onKeyDown}))}},{key:"render",value:function(){var F="ok";return this.props.columnDef.editComponent?F=this.props.columnDef.editComponent(this.props):this.props.columnDef.lookup?F=this.renderLookupField():this.props.columnDef.type==="boolean"?F=this.renderBooleanField():this.props.columnDef.type==="date"?F=this.renderDateField():this.props.columnDef.type==="time"?F=this.renderTimeField():this.props.columnDef.type==="datetime"?F=this.renderDateTimeField():this.props.columnDef.type==="currency"?F=this.renderCurrencyField():F=this.renderTextField(),F}}]),O}(f.default.Component);S.propTypes={value:x.default.any,onChange:x.default.func.isRequired,columnDef:x.default.object.isRequired,locale:x.default.object,rowData:x.default.object,onRowDataChange:x.default.func,errorState:x.default.func,autoFocus:x.default.bool,onBulkEditRowChanged:x.default.func,scrollWidth:x.default.number,onKeyDown:x.default.func};var C=S;e.default=C}($g)),$g}var em={},Vc={},v_;function X4(){if(v_)return Vc;v_=1;var e=Rn;Object.defineProperty(Vc,"__esModule",{value:!0}),Vc.validateInput=o;var t=e(Kr()),r=e(Ur());function i(a,n){var l=Object.keys(a);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);n&&(f=f.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),l.push.apply(l,f)}return l}function c(a){for(var n=1;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var m=function(x){(0,o.default)(w,x);var _=y(w);function w(k){var T;return(0,r.default)(this,w),T=_.call(this,k),(0,l.default)((0,c.default)(T),"getStyle",function(){var M={boxShadow:"2px 0px 15px rgba(125,147,178,.25)",color:"inherit",width:T.props.columnDef.tableData.width,boxSizing:"border-box",fontSize:"inherit",fontFamily:"inherit",fontWeight:"inherit",padding:"0 16px"};return typeof T.props.columnDef.cellStyle=="function"?M=g(g({},M),T.props.columnDef.cellStyle(T.state.value,T.props.rowData)):M=g(g({},M),T.props.columnDef.cellStyle),typeof T.props.cellEditable.cellStyle=="function"?M=g(g({},M),T.props.cellEditable.cellStyle(T.state.value,T.props.rowData,T.props.columnDef)):M=g(g({},M),T.props.cellEditable.cellStyle),M}),(0,l.default)((0,c.default)(T),"handleKeyDown",function(M){M.keyCode===13?T.onApprove():M.keyCode===27&&T.onCancel()}),(0,l.default)((0,c.default)(T),"onApprove",function(){var M=(0,h.validateInput)(T.props.columnDef,T.state.value).isValid;M&&T.setState({isLoading:!0},function(){T.props.cellEditable.onCellEditApproved(T.state.value,T.props.getFieldValue(T.props.rowData,T.props.columnDef),T.props.rowData,T.props.columnDef).then(function(){T.setState({isLoading:!1}),T.props.onCellEditFinished(T.props.rowData,T.props.columnDef)}).catch(function(S){T.setState({isLoading:!1})})})}),(0,l.default)((0,c.default)(T),"onCancel",function(){T.props.onCellEditFinished(T.props.rowData,T.props.columnDef)}),T.state={errorState:{isValid:!0,helperText:""},isLoading:!1,value:k.getFieldValue(T.props.rowData,T.props.columnDef,!1)},T}return(0,i.default)(w,[{key:"renderActions",value:function(){if(this.state.isLoading)return f.default.createElement("div",{style:{display:"flex",justifyContent:"center",width:60}},f.default.createElement(d.default,{size:20}));var T=[{icon:this.props.icons.Check,tooltip:this.props.localization.saveTooltip,onClick:this.onApprove,disabled:this.state.isLoading||!this.state.errorState.isValid},{icon:this.props.icons.Clear,tooltip:this.props.localization.cancelTooltip,onClick:this.onCancel,disabled:this.state.isLoading}];return f.default.createElement(this.props.components.Actions,{actions:T,components:this.props.components,size:"small"})}},{key:"handleChange",value:function(T){var M=(0,h.validateInput)(this.props.columnDef,T);this.setState({errorState:M,value:T})}},{key:"render",value:function(){var T=this;return f.default.createElement(u.default,{size:this.props.size,style:this.getStyle(),padding:"none"},f.default.createElement("div",{style:{display:"flex",alignItems:"center"}},f.default.createElement("div",{style:{flex:1,marginRight:4}},f.default.createElement(this.props.components.EditField,{columnDef:this.props.columnDef,value:this.state.value,error:!this.state.errorState.isValid,helperText:this.state.errorState.helperText,onChange:function(S){return T.handleChange(S)},onKeyDown:this.handleKeyDown,disabled:this.state.isLoading,rowData:this.props.rowData,autoFocus:!0})),this.renderActions()))}}]),w}(f.default.Component);m.defaultProps={columnDef:{},localization:{saveTooltip:"Save",cancelTooltip:"Cancel"}},m.propTypes={cellEditable:s.default.object.isRequired,columnDef:s.default.object.isRequired,components:s.default.object.isRequired,errorState:s.default.oneOfType([s.default.object,s.default.bool]),icons:s.default.object.isRequired,localization:s.default.object.isRequired,onCellEditFinished:s.default.func.isRequired,rowData:s.default.object.isRequired,size:s.default.string,getFieldValue:s.default.func.isRequired};var b=m;e.default=b}(em)),em}var tm={},nm={exports:{}},rm={exports:{}},b_;function Dz(){return b_||(b_=1,function(e){function t(r){if(Array.isArray(r))return r}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(rm)),rm.exports}var am={exports:{}},x_;function Ez(){return x_||(x_=1,function(e){function t(r,i){var c=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(c!=null){var o,a,n,l,f=[],s=!0,u=!1;try{if(n=(c=c.call(r)).next,i===0){if(Object(c)!==c)return;s=!1}else for(;!(s=(o=n.call(c)).done)&&(f.push(o.value),f.length!==i);s=!0);}catch(d){u=!0,a=d}finally{try{if(!s&&c.return!=null&&(l=c.return(),Object(l)!==l))return}finally{if(u)throw a}}return f}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(am)),am.exports}var im={exports:{}},w_;function Rz(){return w_||(w_=1,function(e){function t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(im)),im.exports}var __;function io(){return __||(__=1,function(e){var t=Dz(),r=Ez(),i=RS(),c=Rz();function o(a,n){return t(a)||r(a,n)||i(a,n)||c()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(nm)),nm.exports}const ql=qn(F9),Wo=qn(N9);var T_;function Lz(){return T_||(T_=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(hr()),i=t(Kr()),c=t(Ur()),o=t(io()),a=t($e),n=t(Or),l=t(Ty),f=t(ql),s=t(Wo);function u(g,y){var v=Object.keys(g);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(g);y&&(m=m.filter(function(b){return Object.getOwnPropertyDescriptor(g,b).enumerable})),v.push.apply(v,m)}return v}function d(g){for(var y=1;y0&&o.default.createElement(i.default,{colSpan:n.options.detailPanelOffset.left}),o.default.createElement(i.default,{size:n.size,colSpan:n.renderColumns.length-n.options.detailPanelOffset.left-n.options.detailPanelOffset.right,padding:"none"},o.default.createElement(r.default,{in:u,timeout:"auto",unmountOnExit:!0,mountOnEnter:!0,onExited:function(){y.current=void 0,g()}},m({rowData:n.data}))))}return Yc}var Zr={},S_;function Li(){if(S_)return Zr;S_=1;var e=Rn;Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.widthToNumber=Zr.selectionMaxWidth=Zr.rowActions=Zr.reducePercentsInCalc=Zr.parseFirstLastPageButtons=Zr.elementSize=Zr.baseIconSize=Zr.actionsColumnWidth=void 0;var t=e(Kr()),r=e(Ur());function i(h,p){var g=Object.keys(h);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(h);p&&(y=y.filter(function(v){return Object.getOwnPropertyDescriptor(h,v).enumerable})),g.push.apply(g,y)}return g}function c(h){for(var p=1;p1){var v=y[1];return p.replace(/\d*%/,"".concat(g*(v/100),"px"))}return p.replace(/\d*%/,"".concat(g,"px"))};Zr.reducePercentsInCalc=s;var u=function(p){return typeof p=="number"?p:!p||!p.match(/^\s*\d+(px)?\s*$/)?NaN:Number(p.replace(/px$/,""))};Zr.widthToNumber=u;var d=function(p,g){var y={first:!0,last:!0};return typeof p=="boolean"?y={first:p,last:p}:(0,r.default)(p)==="object"&&(y=c(c({},y),p)),g&&(y={first:y.last,last:y.first}),y};return Zr.parseFirstLastPageButtons=d,Zr}var Gc={},C_;function jz(){if(C_)return Gc;C_=1;var e=Rn;Object.defineProperty(Gc,"__esModule",{value:!0}),Gc.useDoubleClick=r;var t=e($e);function r(i,c){var o=t.default.useRef(0),a=t.default.useRef(null),n=t.default.useRef(null),l=t.default.useRef(null);t.default.useEffect(function(){n.current=c,l.current=i});var f=function(){clearTimeout(a.current),a.current=null,o.current=0},s=t.default.useCallback(function(u){var d=o.current+1===2,h=a.current;if(h&&d&&(f(),n.current&&n.current(u)),!h){o.current=o.current+1;var p=function(){f(),l.current&&l.current(u)};if(n.current){var g=setTimeout(p,250);a.current=g}else p()}},[]);return s}return Gc}var O_;function $z(){return O_||(O_=1,function(e){var t=Rn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(zl()),c=t(Pi),o=t(Wo),a=t(ql),n=t(qo),l=t(hr()),f=t(mi),s=t(Kr()),u=t(Bl()),d=t($e),h=t(Or),p=Nz(),g=w(Li()),y=jz(),v=Jd(),m=ei(),b=["forwardedRef"],x=["data","components","detailPanel","getFieldValue","isTreeData","onRowSelected","onRowEditStarted","onTreeExpandChanged","onToggleDetailPanel","onEditingCanceled","onEditingApproved","hasAnyEditingRow","treeDataMaxLevel","path","actions","errorState","cellEditable","onCellEditStarted","onCellEditFinished","persistEvents","scrollWidth","onRowClick","onRowDoubleClick","columns"];function _(C){if(typeof WeakMap!="function")return null;var P=new WeakMap,D=new WeakMap;return(_=function(R){return R?D:P})(C)}function w(C,P){if(C&&C.__esModule)return C;if(C===null||r(C)!=="object"&&typeof C!="function")return{default:C};var D=_(P);if(D&&D.has(C))return D.get(C);var O={},R=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var F in C)if(F!=="default"&&Object.prototype.hasOwnProperty.call(C,F)){var A=R?Object.getOwnPropertyDescriptor(C,F):null;A&&(A.get||A.set)?Object.defineProperty(O,F,A):O[F]=C[F]}return O.default=C,D&&D.set(C,O),O}function k(C,P){var D=Object.keys(C);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(C);P&&(O=O.filter(function(R){return Object.getOwnPropertyDescriptor(C,R).enumerable})),D.push.apply(D,O)}return D}function T(C){for(var P=1;P-1)}).sort(function(Ae,Ee){return Ae.tableData.columnOrder-Ee.tableData.columnOrder}).map(function(Ae){var Ee=D.getFieldValue(D.data,Ae);if(D.data.tableData.editCellList&&D.data.tableData.editCellList.find(function(Ie){return Ie.tableData.id===Ae.tableData.id}))return d.default.createElement(D.components.EditCell,{getFieldValue:D.getFieldValue,components:D.components,icons:F,localization:O,columnDef:Ae,size:Oe,key:"cell-"+D.data.tableData.id+"-"+Ae.tableData.id,rowData:D.data,cellEditable:D.cellEditable,onCellEditFinished:D.onCellEditFinished,scrollWidth:U});var De=Ae.editable!=="never"&&!!D.cellEditable;De&&D.cellEditable.isCellEditable&&(De=D.cellEditable.isCellEditable(D.data,Ae));var Re="cell-".concat(D.data.tableData.id,"-").concat(Ae.tableData.id);return d.default.createElement(D.components.Cell,{size:Oe,errorState:D.errorState,columnDef:T({cellStyle:R.cellStyle},Ae),value:Ee,key:Re,rowData:D.data,cellEditable:De,onCellEditStarted:D.onCellEditStarted,scrollWidth:U})});return ke},Oe=g.elementSize(A),Me=q.length*g.baseIconSize(A),ce=function(ke){return d.default.createElement(f.default,{size:Oe,padding:"none",key:"key-actions-column",style:T({width:Me,padding:"0px 5px",boxSizing:"border-box"},R.actionsCellStyle)},d.default.createElement(D.components.Actions,{data:D.data,actions:ke,components:D.components,size:Oe,disabled:D.hasAnyEditingRow}))},ye=function(){var ke=R.selectionProps||{};typeof ke=="function"&&(ke=ke(D.data));var Ae=g.selectionMaxWidth(A,D.treeDataMaxLevel)||0,Ee=Oe!=="medium"?{padding:"4px"}:void 0;return d.default.createElement(f.default,{size:Oe,padding:"none",key:"key-selection-column",style:{width:Ae}},d.default.createElement(n.default,(0,l.default)({size:Oe,checked:D.data.tableData.checked===!0,onClick:function(Re){return Re.stopPropagation()},value:D.data.tableData.id.toString(),onChange:function(Re){D.onRowSelected(Re,D.path,D.data)},style:Ee},ke)))},J=function(ke){return{transform:ke?"rotate(90deg)":"none"}},ne=function(){return R.showDetailPanelIcon?typeof D.detailPanel=="function"?d.default.createElement(f.default,{size:Oe,padding:"none",key:"key-detail-panel-column",style:T({width:42,textAlign:"center"},R.detailPanelColumnStyle)},d.default.createElement(a.default,{"aria-label":"Detail panel visibility toggle",size:Oe,style:T({transition:"all ease 200ms"},J(D.data.tableData.showDetailPanel)),onClick:function(Ae){D.onToggleDetailPanel(D.path,D.detailPanel),Ae.stopPropagation()}},d.default.createElement(F.DetailPanel,null))):d.default.createElement(f.default,{size:Oe,padding:"none",key:"key-detail-panel-column"},d.default.createElement("div",{style:T({width:42*D.detailPanel.length,textAlign:"center",display:"flex"},R.detailPanelColumnStyle)},D.detailPanel.map(function(ke,Ae){typeof ke=="function"&&(ke=ke(D.data));var Ee=(D.data.tableData.showDetailPanel||"").toString()===ke.render.toString(),De=d.default.createElement(F.DetailPanel,null),Re=!0;return Ee?ke.openIcon?(De=d.default.createElement(v.MTableCustomIcon,{icon:ke.openIcon,iconProps:ke.iconProps}),Re=!1):ke.icon&&(De=d.default.createElement(v.MTableCustomIcon,{icon:ke.icon,iconProps:ke.iconProps})):ke.icon&&(De=d.default.createElement(v.MTableCustomIcon,{icon:ke.icon,iconProps:ke.iconProps}),Re=!1),De=d.default.createElement(a.default,{"aria-label":"Detail panel visibility toggle",size:Oe,key:"key-detail-panel-"+Ae,style:T({transition:"all ease 200ms"},J(Re&&Ee)),disabled:ke.disabled,onClick:function(Be){D.onToggleDetailPanel(D.path,ke.render),Be.stopPropagation()}},De),ke.tooltip&&(De=d.default.createElement(o.default,{key:"key-detail-panel-"+Ae,title:ke.tooltip},De)),De}))):null},de=function(){return D.data.tableData.childRows&&D.data.tableData.childRows.length>0?d.default.createElement(f.default,{size:Oe,padding:"none",key:"key-tree-data-column",style:{width:48+9*(D.treeDataMaxLevel-2)}},d.default.createElement(a.default,{"aria-label":"Detail panel visibility toggle",size:Oe,style:T({transition:"all ease 200ms",marginLeft:D.level*9},J(D.data.tableData.isTreeExpanded)),onClick:function(Ae){D.onTreeExpandChanged(D.path,D.data),Ae.stopPropagation()}},d.default.createElement(F.DetailPanel,null))):d.default.createElement(f.default,{padding:"none",key:"key-tree-data-column"})},xe=function(ke,Ae){var Ee={};return typeof R.rowStyle=="function"?Ee=T(T({},Ee),R.rowStyle(D.data,ke,Ae,D.hasAnyEditingRow)):R.rowStyle&&(Ee=T(T({},Ee),R.rowStyle)),(Q||Y)&&(Ee.cursor="pointer"),D.hasAnyEditingRow&&(Ee.opacity=Ee.opacity?Ee.opacity:.2),Ee},ue=Se();R.selection&&ue.splice(0,0,ye());var ge=g.rowActions(D);if(ge.length>0){if(R.actionsColumnIndex===-1)ue.push(ce(ge));else if(R.actionsColumnIndex>=0){var be=0;R.selection&&(be=1),ue.splice(R.actionsColumnIndex+be,0,ce(ge))}}return D.detailPanel&&(R.detailPanelColumnAlignment==="right"?ue.push(ne()):ue.splice(0,0,ne())),D.isTreeData&&ue.splice(0,0,de()),D.columns.filter(function(we){return we.tableData.groupOrder>-1}).forEach(function(we){ue.splice(0,0,d.default.createElement(f.default,{size:Oe,padding:"none",key:"key-group-cell"+we.tableData.id}))}),d.default.createElement(d.default.Fragment,null,d.default.createElement(c.default,(0,l.default)({ref:P,selected:W},X,{onClick:function(ke){ee&&ke.persist(),!W&&Te(ke)},hover:!!(Q||Y),style:xe(D.index,D.level),"data-testid":"mtablebodyrow"}),ue),d.default.createElement(p.MTableDetailPanel,{options:R,data:D.data,detailPanel:D.detailPanel,renderColumns:ue,size:Oe}),D.data.tableData.childRows&&D.data.tableData.isTreeExpanded&&D.data.tableData.childRows.map(function(we,ke){return we.tableData.editing?d.default.createElement(D.components.EditRow,{columns:re,components:D.components,data:we,icons:F,localization:O,getFieldValue:D.getFieldValue,key:ke,mode:we.tableData.editing,isTreeData:D.isTreeData,detailPanel:D.detailPanel,onEditingCanceled:N,onEditingApproved:E,errorState:D.errorState}):d.default.createElement(D.components.Row,(0,l.default)({},D,{data:we,index:ke,key:ke,level:D.level+1,path:[].concat((0,i.default)(D.path),[we.tableData.uuid]),onEditingCanceled:N,onEditingApproved:E,hasAnyEditingRow:D.hasAnyEditingRow,treeDataMaxLevel:G,errorState:D.errorState,cellEditable:H,onCellEditStarted:V,onCellEditFinished:te}))}))}M.defaultProps={actions:[],index:0,data:{},path:[],persistEvents:!1},M.propTypes={forwardedRef:h.default.element,actions:h.default.array,index:h.default.number.isRequired,data:h.default.object.isRequired,detailPanel:h.default.oneOfType([h.default.func,h.default.arrayOf(h.default.oneOfType([h.default.object,h.default.func]))]),hasAnyEditingRow:h.default.bool,onRowSelected:h.default.func,path:h.default.arrayOf(h.default.oneOfType([h.default.string,h.default.number])),persistEvents:h.default.bool,treeDataMaxLevel:h.default.number,getFieldValue:h.default.func.isRequired,columns:h.default.array,onToggleDetailPanel:h.default.func.isRequired,onRowClick:h.default.func,onRowDoubleClick:h.default.func,onEditingApproved:h.default.func,onEditingCanceled:h.default.func,errorState:h.default.oneOfType([h.default.object,h.default.bool])};var S=d.default.forwardRef(function(P,D){return d.default.createElement(M,(0,l.default)({},P,{forwardedRef:D}))});e.default=S}(lm)),lm}var sm={},qi={};const Bz=qn(yF);var A_;function zz(){if(A_)return qi;A_=1;var e=Rn;Object.defineProperty(qi,"__esModule",{value:!0}),qi.getCurrencyValue=o,qi.getEmptyValue=c,qi.getRenderValue=a,qi.isoDateRegex=void 0;var t=e($e),r=e(Bz),i=/^\d{4}-(0[1-9]|1[0-2])-([12]\d|0[1-9]|3[01])([T\s](([01]\d|2[0-3])\:[0-5]\d|24\:00)(\:[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3])\:?([0-5]\d)?)?)?$/;qi.isoDateRegex=i;function c(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof n=="function"?l.columnDef.emptyValue(l.rowData):n}function o(n,l){return n!==void 0?new Intl.NumberFormat(n.locale!==void 0?n.locale:"en-US",{style:"currency",currency:n.currencyCode!==void 0?n.currencyCode:"USD",minimumFractionDigits:n.minimumFractionDigits!==void 0?n.minimumFractionDigits:2,maximumFractionDigits:n.maximumFractionDigits!==void 0?n.maximumFractionDigits:2}).format(l!==void 0?l:0):new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(l!==void 0?l:0)}function a(n,l,f){var s=n.columnDef.dateSetting&&n.columnDef.dateSetting.locale?n.columnDef.dateSetting.locale:void 0;if(n.columnDef.emptyValue!==void 0&&(n.value===void 0||n.value===null))return c(n.columnDef.emptyValue,n);if(n.rowData===void 0&&n.value&&n.columnDef.groupRender)return n.columnDef.groupRender(n.value);if(n.columnDef.render&&n.rowData)return n.columnDef.render(n.rowData);if(n.columnDef.type==="boolean"){var u={textAlign:"left",verticalAlign:"middle",width:48};return n.value?t.default.createElement(l.Check,{style:u}):t.default.createElement(l.ThirdStateCheck,{style:u})}else{if(n.columnDef.type==="date")return n.value instanceof Date?n.value.toLocaleDateString(s):i.exec(n.value)?(0,r.default)(n.value).toLocaleDateString(s):n.value;if(n.columnDef.type==="time")return n.value instanceof Date?n.value.toLocaleTimeString():i.exec(n.value)?(0,r.default)(n.value).toLocaleTimeString(s):n.value;if(n.columnDef.type==="datetime")return n.value instanceof Date?n.value.toLocaleString():i.exec(n.value)?(0,r.default)(n.value).toLocaleString(s):n.value;if(n.columnDef.type==="currency")return o(n.columnDef.currencySetting,n.value);if(typeof n.value=="boolean")return n.value.toString()}return n.value}return qi}var Wi={},P_;function Wd(){if(P_)return Wi;P_=1;var e=Rn,t=Ur();Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.getStyle=s,Wi.setObjectByKey=Wi.selectFromObject=void 0;var r=e(Kr()),i=o(Li());function c(u){if(typeof WeakMap!="function")return null;var d=new WeakMap,h=new WeakMap;return(c=function(g){return g?h:d})(u)}function o(u,d){if(u&&u.__esModule)return u;if(u===null||t(u)!=="object"&&typeof u!="function")return{default:u};var h=c(d);if(h&&h.has(u))return h.get(u);var p={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in u)if(y!=="default"&&Object.prototype.hasOwnProperty.call(u,y)){var v=g?Object.getOwnPropertyDescriptor(u,y):null;v&&(v.get||v.set)?Object.defineProperty(p,y,v):p[y]=u[y]}return p.default=u,h&&h.set(u,p),p}function a(u,d){var h=Object.keys(u);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(u);d&&(p=p.filter(function(g){return Object.getOwnPropertyDescriptor(u,g).enumerable})),h.push.apply(h,p)}return h}function n(u){for(var d=1;d-1)}).sort(function(U,Q){return U.tableData.columnOrder-Q.tableData.columnOrder}).map(function(U,Q){var Y=T.getFieldValue(D.data,U,!1),Z=function(Se,Oe){var Me={color:"inherit"};return typeof Se.cellStyle=="function"?Me=_(_({},Me),Se.cellStyle(Oe,T.data)):Me=_(_({},Me),Se.cellStyle),Se.disableClick&&(Me.cursor="default"),_({},Me)};Q===0&&24+T.level*20;var X=!1;if(U.editable===void 0&&(X=!0),U.editable==="always"&&(X=!0),U.editable==="onAdd"&&T.mode==="add"&&(X=!0),U.editable==="onUpdate"&&T.mode==="update"&&(X=!0),typeof U.editable=="function"&&(X=U.editable(U,T.data)),!U.field||!X){var re=T.getFieldValue(D.data,U);return n.default.createElement(T.components.Cell,{size:V,icons:M,columnDef:U,value:re,key:U.tableData.id,rowData:T.data,style:Z(U,Y)})}else{var ie=U.editComponent,le=(0,c.default)(U,y),se=ie||T.components.EditField,pe=(0,g.validateInput)(U,D.data);return te===-1&&(te=Q),n.default.createElement(l.default,{size:V,key:U.tableData.id,align:["numeric"].indexOf(U.type)!==-1?"right":"left",style:Z(U,Y)},n.default.createElement(se,{key:U.tableData.id,columnDef:le,autoFocus:te===Q,value:Y,error:!pe.isValid,helperText:pe.helperText,locale:T.localization.dateTimePickerLocalization,rowData:D.data,onChange:function(Se){var Oe=_({},D.data);(0,d.setObjectByKey)(Oe,U.field,Se),O({data:Oe}),T.onBulkEditRowChanged&&T.onBulkEditRowChanged(T.data,Oe)},onRowDataChange:function(Se){O({data:Se}),T.onBulkEditRowChanged&&T.onBulkEditRowChanged(T.data,Se)}}))}});return ee}var F=T.columns.every(function(V){var te=(0,g.validateInput)(V,D.data);return te.isValid}),A=function(){F&&T.onEditingApproved(T.mode,D.data,T.data)};function z(){if(T.mode!=="bulk"){var V=p.elementSize(T),te=[{icon:M.Check,tooltip:T.localization.saveTooltip,disabled:!F,onClick:A},{icon:M.Clear,tooltip:T.localization.cancelTooltip,onClick:function(){T.onEditingCanceled(T.mode,T.data)}}];return n.default.createElement(l.default,{size:V,padding:"none",key:"key-actions-column",style:_({width:42*te.length,padding:"0px 5px"},S.editCellStyle)},n.default.createElement(T.components.Actions,{data:T.data,actions:te,components:T.components,size:V}))}}function B(){var V={borderBottom:"1px solid red"};return V}var $=function(te){te.keyCode===13&&te.target.type!=="textarea"&&te.target.type!=="button"||te.keyCode===13&&te.target.type==="textarea"&&te.shiftKey?A():te.keyCode===27&&T.onEditingCanceled(T.mode,T.data)},j=p.elementSize(T),N;if(T.mode==="add"||T.mode==="update"||T.mode==="bulk")N=R();else{var E=T.columns.filter(function(V){return!V.hidden&&!(V.tableData.groupOrder>-1)}).length;N=[n.default.createElement(l.default,{size:j,padding:S.actionsColumnIndex===0?"none":void 0,key:"key-edit-cell",colSpan:E},n.default.createElement(s.default,{variant:"h6"},T.localization.deleteText))]}if(S.selection&&N.splice(0,0,n.default.createElement(l.default,{padding:"none",key:"key-selection-cell"})),T.isTreeData&&N.splice(0,0,n.default.createElement(l.default,{padding:"none",key:"key-tree-data-cell"})),S.actionsColumnIndex===-1)N.push(z());else if(S.actionsColumnIndex>=0){var W=0;S.selection&&(W=1),T.isTreeData&&(W=1,S.selection&&N.splice(1,1)),N.splice(S.actionsColumnIndex+W,0,z())}if(T.detailPanel&&S.showDetailPanelIcon!==!1&&T.mode!=="bulk"){var G=S.detailPanelColumnAlignment,L=G==="left"?0:N.length;N.splice(L,0,n.default.createElement(l.default,{padding:"none",key:"key-detail-panel-cell"}))}T.columns.filter(function(V){return V.tableData.groupOrder>-1}).forEach(function(V){N.splice(0,0,n.default.createElement(l.default,{padding:"none",key:"key-group-cell"+V.tableData.id}))}),T.detailPanel,T.isTreeData,T.onRowClick,T.onRowSelected,T.onTreeExpandChanged,T.onToggleDetailPanel,T.onEditingApproved,T.onEditingCanceled,T.getFieldValue,T.components,T.columns,T.errorState,T.onBulkEditRowChanged,T.bulkEditChangedRows,T.scrollWidth;var q=T.forwardedRef,H=(0,c.default)(T,v);return n.default.createElement(f.default,(0,i.default)({onKeyDown:$},H,{ref:q,style:B()}),N)}w.defaultProps={actions:[],index:0,options:{},path:[],onBulkEditRowChanged:function(){}},w.propTypes={actions:u.default.array,index:u.default.number.isRequired,data:u.default.object,detailPanel:u.default.oneOfType([u.default.func,u.default.arrayOf(u.default.oneOfType([u.default.object,u.default.func]))]),onRowSelected:u.default.func,path:u.default.arrayOf(u.default.number),columns:u.default.array,onRowClick:u.default.func,onEditingApproved:u.default.func,onEditingCanceled:u.default.func,localization:u.default.object,getFieldValue:u.default.func,errorState:u.default.oneOfType([u.default.object,u.default.bool]),onBulkEditRowChanged:u.default.func};var k=n.default.forwardRef(function(M,S){return n.default.createElement(w,(0,i.default)({},M,{forwardedRef:S}))});e.default=k}(cm)),cm}var fm={},dm={},co={},L_;function a1(){if(L_)return co;L_=1;var e=Rn;Object.defineProperty(co,"__esModule",{value:!0}),co.getLocalizedFilterPlaceHolder=co.getLocalizationData=void 0;var t=e(Kr()),r=K4();function i(n,l){var f=Object.keys(n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);l&&(s=s.filter(function(u){return Object.getOwnPropertyDescriptor(n,u).enumerable})),f.push.apply(f,s)}return f}function c(n){for(var l=1;l-1}),u.default.createElement(n.default,{primary:_.lookup[D]}))})))}var b=u.default.forwardRef(function(_,w){return u.default.createElement(m,(0,i.default)({},_,{forwardedRef:w}))});e.default=b}(hm)),hm}var pm={};const Z4=qn(q9);var N_;function Xz(){return N_||(N_=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(hr()),i=t(Ld),c=t(Z4),o=t(Wo),a=t($e),n=a1();function l(s){var u,d,h=s.columnDef,p=s.icons,g=s.localization,y=s.hideFilterIcons,v=s.onFilterChanged,m=s.forwardedRef,b=(0,n.getLocalizationData)(g),x=p.Filter;return a.default.createElement(i.default,{ref:m,style:h.type==="numeric"?{float:(u=h.align)!==null&&u!==void 0?u:"right"}:{float:(d=h.align)!==null&&d!==void 0?d:"left"},type:h.type==="numeric"?"number":"search",value:h.tableData.filterValue||"",placeholder:(0,n.getLocalizedFilterPlaceHolder)(h,g),onChange:function(w){v(h.tableData.id,w.target.value)},inputProps:{"aria-label":"filter data by ".concat(h.title)},InputProps:y||h.hideFilterIcon?void 0:{startAdornment:a.default.createElement(c.default,{position:"start"},a.default.createElement(o.default,{title:b.filterTooltip},a.default.createElement(x,null)))}})}var f=a.default.forwardRef(function(u,d){return a.default.createElement(l,(0,r.default)({},u,{forwardedRef:d}))});e.default=f}(pm)),pm}var gm={},j_;function Zz(){return j_||(j_=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(hr()),i=t(qo),c=t($e);function o(n){var l=n.forwardedRef,f=n.columnDef,s=n.onFilterChanged;return c.default.createElement(i.default,{ref:l,inputProps:{"aria-label":"Filter of ".concat(f.title)},indeterminate:f.tableData.filterValue===void 0,checked:f.tableData.filterValue==="checked",onChange:function(){var d;f.tableData.filterValue===void 0?d="checked":f.tableData.filterValue==="checked"&&(d="unchecked"),s(f.tableData.id,d)}})}var a=c.default.forwardRef(function(l,f){return c.default.createElement(o,(0,r.default)({},l,{forwardedRef:f}))});e.default=a}(gm)),gm}var mm={},$_;function Kz(){return $_||($_=1,function(e){var t=Rn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(hr()),c=a($e);function o(f){if(typeof WeakMap!="function")return null;var s=new WeakMap,u=new WeakMap;return(o=function(h){return h?u:s})(f)}function a(f,s){if(f&&f.__esModule)return f;if(f===null||r(f)!=="object"&&typeof f!="function")return{default:f};var u=o(s);if(u&&u.has(f))return u.get(f);var d={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in f)if(p!=="default"&&Object.prototype.hasOwnProperty.call(f,p)){var g=h?Object.getOwnPropertyDescriptor(f,p):null;g&&(g.get||g.set)?Object.defineProperty(d,p,g):d[p]=f[p]}return d.default=f,u&&u.set(f,d),d}function n(f){var s=f.columnDef,u=f.onFilterChanged,d=f.forwardedRef;return(0,c.createElement)(s.filterComponent,{columnDef:s,onFilterChanged:u,forwardedRef:d})}var l=c.default.forwardRef(function(s,u){return c.default.createElement(n,(0,i.default)({},s,{forwardedRef:u}))});e.default=l}(mm)),mm}var B_;function K4(){return B_||(B_=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.MTableFilterRow=y,e.default=void 0;var r=t(Pi),i=t(mi),c=t(Kr()),o=t(hr()),a=t($e),n=t(Or),l=t(Hz()),f=t(Gz()),s=t(Xz()),u=t(Zz()),d=t(Kz()),h=tc();function p(m,b){var x=Object.keys(m);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(m);b&&(_=_.filter(function(w){return Object.getOwnPropertyDescriptor(m,w).enumerable})),x.push.apply(x,_)}return x}function g(m){for(var b=1;b-1)}).sort(function(T,M){return T.tableData.columnOrder-M.tableData.columnOrder}).map(function(T){return a.default.createElement(i.default,{key:T.tableData.id,style:g(g({},b.filterCellStyle),T.filterCellStyle)},x(T))});if(b.selection&&_.splice(0,0,a.default.createElement(i.default,{padding:"none",key:"key-selection-column"})),m.hasActions)if(b.actionsColumnIndex===-1)_.push(a.default.createElement(i.default,{key:"key-action-column"}));else{var w=0;m.selection&&(w=1),_.splice(b.actionsColumnIndex+w,0,a.default.createElement(i.default,{key:"key-action-column"}))}if(m.hasDetailPanel&&b.showDetailPanelIcon){var k=b.detailPanelColumnAlignment==="left"?0:_.length;_.splice(k,0,a.default.createElement(i.default,{padding:"none",key:"key-detail-panel-column"}))}return m.isTreeData>0&&_.splice(0,0,a.default.createElement(i.default,{padding:"none",key:"key-tree-data-filter"})),m.columns.filter(function(T){return T.tableData.groupOrder>-1}).forEach(function(T){_.splice(0,0,a.default.createElement(i.default,{padding:"checkbox",key:"key-group-filter"+T.tableData.id}))}),a.default.createElement(r.default,{id:"m--table--filter--row",ref:m.forwardedRef,style:g({height:10},b.filterRowStyle)},_)}y.defaultProps={columns:[],hasActions:!1,localization:{filterTooltip:"Filter"}},y.propTypes={columns:n.default.array.isRequired,hasDetailPanel:n.default.bool.isRequired,isTreeData:n.default.bool.isRequired,onFilterChanged:n.default.func.isRequired,hasActions:n.default.bool,localization:n.default.object};var v=a.default.forwardRef(function(b,x){return a.default.createElement(y,(0,o.default)({},b,{forwardedRef:x}))});e.default=v}(fm)),fm}var vm={};const J4=qn(W9),Jz=qn(U9);function z_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),r.push.apply(r,i)}return r}function q_(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ma(1));return r(Q4)(e,t)}if(typeof e!="function")throw new Error(Ma(2));var c=e,o=t,a=[],n=a,l=!1;function f(){n===a&&(n=a.slice())}function s(){if(l)throw new Error(Ma(3));return o}function u(g){if(typeof g!="function")throw new Error(Ma(4));if(l)throw new Error(Ma(5));var y=!0;return f(),n.push(g),function(){if(y){if(l)throw new Error(Ma(6));y=!1,f();var m=n.indexOf(g);n.splice(m,1),a=null}}}function d(g){if(!Qz(g))throw new Error(Ma(7));if(typeof g.type>"u")throw new Error(Ma(8));if(l)throw new Error(Ma(9));try{l=!0,o=c(o,g)}finally{l=!1}for(var y=a=n,v=0;vt6=e,rq=()=>t6,Y_=Symbol.for("react-redux-context"),G_=typeof globalThis<"u"?globalThis:{};function aq(){var e;if(!$e.createContext)return{};const t=(e=G_[Y_])!=null?e:G_[Y_]=new Map;let r=t.get($e.createContext);return r||(r=$e.createContext(null),t.set($e.createContext,r)),r}const n6=aq(),iq=()=>{throw new Error("uSES not initialized!")},oq=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function lq(e,t,r,i,{areStatesEqual:c,areOwnPropsEqual:o,areStatePropsEqual:a}){let n=!1,l,f,s,u,d;function h(m,b){return l=m,f=b,s=e(l,f),u=t(i,f),d=r(s,u,f),n=!0,d}function p(){return s=e(l,f),t.dependsOnOwnProps&&(u=t(i,f)),d=r(s,u,f),d}function g(){return e.dependsOnOwnProps&&(s=e(l,f)),t.dependsOnOwnProps&&(u=t(i,f)),d=r(s,u,f),d}function y(){const m=e(l,f),b=!a(m,s);return s=m,b&&(d=r(s,u,f)),d}function v(m,b){const x=!o(b,f),_=!c(m,l,b,f);return l=m,f=b,x&&_?p():x?g():_?y():d}return function(b,x){return n?v(b,x):h(b,x)}}function sq(e,t){let{initMapStateToProps:r,initMapDispatchToProps:i,initMergeProps:c}=t,o=Vn(t,oq);const a=r(e,o),n=i(e,o),l=c(e,o);return lq(a,n,l,e,o)}function uq(e,t){const r={};for(const i in e){const c=e[i];typeof c=="function"&&(r[i]=(...o)=>t(c(...o)))}return r}function j0(e){return function(r){const i=e(r);function c(){return i}return c.dependsOnOwnProps=!1,c}}function X_(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function r6(e,t){return function(i,{displayName:c}){const o=function(n,l){return o.dependsOnOwnProps?o.mapToProps(n,l):o.mapToProps(n,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(n,l){o.mapToProps=e,o.dependsOnOwnProps=X_(e);let f=o(n,l);return typeof f=="function"&&(o.mapToProps=f,o.dependsOnOwnProps=X_(f),f=o(n,l)),f},o}}function i1(e,t){return(r,i)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${i.wrappedComponentName}.`)}}function cq(e){return e&&typeof e=="object"?j0(t=>uq(e,t)):e?typeof e=="function"?r6(e):i1(e,"mapDispatchToProps"):j0(t=>({dispatch:t}))}function fq(e){return e?typeof e=="function"?r6(e):i1(e,"mapStateToProps"):j0(()=>({}))}function dq(e,t,r){return Gt({},r,e,t)}function hq(e){return function(r,{displayName:i,areMergedPropsEqual:c}){let o=!1,a;return function(l,f,s){const u=e(l,f,s);return o?c(u,a)||(a=u):(o=!0,a=u),a}}}function pq(e){return e?typeof e=="function"?hq(e):i1(e,"mergeProps"):()=>dq}function gq(){const e=rq();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let i=t;for(;i;)i.callback(),i=i.next})},get(){let i=[],c=t;for(;c;)i.push(c),c=c.next;return i},subscribe(i){let c=!0,o=r={callback:i,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){!c||t===null||(c=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}const Z_={notify(){},get:()=>[]};function a6(e,t){let r,i=Z_,c=0,o=!1;function a(g){s();const y=i.subscribe(g);let v=!1;return()=>{v||(v=!0,y(),u())}}function n(){i.notify()}function l(){p.onStateChange&&p.onStateChange()}function f(){return o}function s(){c++,r||(r=t?t.addNestedSub(l):e.subscribe(l),i=gq())}function u(){c--,r&&c===0&&(r(),r=void 0,i.clear(),i=Z_)}function d(){o||(o=!0,s())}function h(){o&&(o=!1,u())}const p={addNestedSub:a,notifyNestedSubs:n,handleChangeWrapper:l,isSubscribed:f,trySubscribe:d,tryUnsubscribe:h,getListeners:()=>i};return p}const mq=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",$f=mq?$e.useLayoutEffect:$e.useEffect;function K_(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function bm(e,t){if(K_(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(let c=0;c{i6=e},bq=[null,null];function xq(e,t,r){$f(()=>e(...t),r)}function wq(e,t,r,i,c,o){e.current=i,r.current=!1,c.current&&(c.current=null,o())}function _q(e,t,r,i,c,o,a,n,l,f,s){if(!e)return()=>{};let u=!1,d=null;const h=()=>{if(u||!n.current)return;const g=t.getState();let y,v;try{y=i(g,c.current)}catch(m){v=m,d=m}v||(d=null),y===o.current?a.current||f():(o.current=y,l.current=y,a.current=!0,s())};return r.onStateChange=h,r.trySubscribe(),h(),()=>{if(u=!0,r.tryUnsubscribe(),r.onStateChange=null,d)throw d}}function Tq(e,t){return e===t}function o6(e,t,r,{pure:i,areStatesEqual:c=Tq,areOwnPropsEqual:o=bm,areStatePropsEqual:a=bm,areMergedPropsEqual:n=bm,forwardRef:l=!1,context:f=n6}={}){const s=f,u=fq(e),d=cq(t),h=pq(r),p=!!e;return y=>{const v=y.displayName||y.name||"Component",m=`Connect(${v})`,b={shouldHandleStateChanges:p,displayName:m,wrappedComponentName:v,WrappedComponent:y,initMapStateToProps:u,initMapDispatchToProps:d,initMergeProps:h,areStatesEqual:c,areStatePropsEqual:a,areOwnPropsEqual:o,areMergedPropsEqual:n};function x(k){const[T,M,S]=$e.useMemo(()=>{const{reactReduxForwardedRef:U}=k,Q=Vn(k,vq);return[k.context,U,Q]},[k]),C=$e.useMemo(()=>T&&T.Consumer&&H9.isContextConsumer($e.createElement(T.Consumer,null))?T:s,[T,s]),P=$e.useContext(C),D=!!k.store&&!!k.store.getState&&!!k.store.dispatch,O=!!P&&!!P.store,R=D?k.store:P.store,F=O?P.getServerState:R.getState,A=$e.useMemo(()=>sq(R.dispatch,b),[R]),[z,B]=$e.useMemo(()=>{if(!p)return bq;const U=a6(R,D?void 0:P.subscription),Q=U.notifyNestedSubs.bind(U);return[U,Q]},[R,D,P]),$=$e.useMemo(()=>D?P:Gt({},P,{subscription:z}),[D,P,z]),j=$e.useRef(),N=$e.useRef(S),E=$e.useRef(),W=$e.useRef(!1);$e.useRef(!1);const G=$e.useRef(!1),L=$e.useRef();$f(()=>(G.current=!0,()=>{G.current=!1}),[]);const q=$e.useMemo(()=>()=>E.current&&S===N.current?E.current:A(R.getState(),S),[R,S]),H=$e.useMemo(()=>Q=>z?_q(p,R,z,A,N,j,W,G,E,B,Q):()=>{},[z]);xq(wq,[N,j,W,S,E,B]);let V;try{V=i6(H,q,F?()=>A(F(),S):q)}catch(U){throw L.current&&(U.message+=` The error may be correlated with this previous error: ${L.current.stack} -`),U}Ff(()=>{L.current=void 0,E.current=void 0,j.current=V});const te=$e.useMemo(()=>$e.createElement(y,Gt({},V,{ref:M})),[M,y,V]);return $e.useMemo(()=>p?$e.createElement(C.Provider,{value:$},te):te,[C,te,$])}const w=$e.memo(x);if(w.WrappedComponent=y,w.displayName=x.displayName=g,l){const T=$e.forwardRef(function(S,C){return $e.createElement(w,Gt({},S,{reactReduxForwardedRef:C}))});return T.displayName=g,T.WrappedComponent=y,z2(T,y)}return z2(w,y)}}function hq({store:e,context:t,children:r,serverState:i,stabilityCheck:u="once",noopCheck:o="once"}){const a=$e.useMemo(()=>{const f=J4(e);return{store:e,subscription:f,getServerState:i?()=>i:void 0,stabilityCheck:u,noopCheck:o}},[e,i,u,o]),n=$e.useMemo(()=>e.getState(),[e]);Ff(()=>{const{subscription:f}=a;return f.onStateChange=f.notifyNestedSubs,f.trySubscribe(),n!==e.getState()&&f.notifyNestedSubs(),()=>{f.tryUnsubscribe(),f.onStateChange=void 0}},[a,n]);const l=t||Z4;return $e.createElement(l.Provider,{value:a},r)}lq(bS.useSyncExternalStore);Hz(hy.unstable_batchedUpdates);function pq(e,t){if(e.length!==t.length)return!1;for(var r=0;r{const o=xq(r,u.options);return e.addEventListener(u.eventName,u.fn,o),function(){e.removeEventListener(u.eventName,u.fn,o)}});return function(){i.forEach(o=>{o()})}}const wq="Invariant failed";class $f extends Error{}$f.prototype.toString=function(){return this.message};function un(e,t){throw new $f(wq)}class _q extends et.Component{constructor(){super(...arguments),this.callbacks=null,this.unbind=Gi,this.onWindowError=t=>{const r=this.getCallbacks();r.isDragging()&&r.tryAbort(),t.error instanceof $f&&t.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in ");return this.callbacks},this.setCallbacks=t=>{this.callbacks=t}}componentDidMount(){this.unbind=qa(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(t){if(t instanceof $f){this.setState({});return}throw t}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const Tq=` +`),U}$f(()=>{L.current=void 0,E.current=void 0,j.current=V});const te=$e.useMemo(()=>$e.createElement(y,Gt({},V,{ref:M})),[M,y,V]);return $e.useMemo(()=>p?$e.createElement(C.Provider,{value:$},te):te,[C,te,$])}const w=$e.memo(x);if(w.WrappedComponent=y,w.displayName=x.displayName=m,l){const T=$e.forwardRef(function(S,C){return $e.createElement(w,Gt({},S,{reactReduxForwardedRef:C}))});return T.displayName=m,T.WrappedComponent=y,q2(T,y)}return q2(w,y)}}function kq({store:e,context:t,children:r,serverState:i,stabilityCheck:c="once",noopCheck:o="once"}){const a=$e.useMemo(()=>{const f=a6(e);return{store:e,subscription:f,getServerState:i?()=>i:void 0,stabilityCheck:c,noopCheck:o}},[e,i,c,o]),n=$e.useMemo(()=>e.getState(),[e]);$f(()=>{const{subscription:f}=a;return f.onStateChange=f.notifyNestedSubs,f.trySubscribe(),n!==e.getState()&&f.notifyNestedSubs(),()=>{f.tryUnsubscribe(),f.onStateChange=void 0}},[a,n]);const l=t||n6;return $e.createElement(l.Provider,{value:a},r)}yq(MS.useSyncExternalStore);nq(yy.unstable_batchedUpdates);function Mq(e,t){if(e.length!==t.length)return!1;for(var r=0;r{const o=Dq(r,c.options);return e.addEventListener(c.eventName,c.fn,o),function(){e.removeEventListener(c.eventName,c.fn,o)}});return function(){i.forEach(o=>{o()})}}const Eq="Invariant failed";class qf extends Error{}qf.prototype.toString=function(){return this.message};function un(e,t){throw new qf(Eq)}class Rq extends et.Component{constructor(){super(...arguments),this.callbacks=null,this.unbind=Xi,this.onWindowError=t=>{const r=this.getCallbacks();r.isDragging()&&r.tryAbort(),t.error instanceof qf&&t.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in ");return this.callbacks},this.setCallbacks=t=>{this.callbacks=t}}componentDidMount(){this.unbind=Wa(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(t){if(t instanceof qf){this.setState({});return}throw t}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const Lq=` Press space bar to start a drag. When dragging you can use the arrow keys to move the item around and escape to cancel. Some screen readers may require you to be in focus mode or to use your pass through key -`,Bf=e=>e+1,kq=e=>` - You have lifted an item in position ${Bf(e.source.index)} -`,iC=(e,t)=>{const r=e.droppableId===t.droppableId,i=Bf(e.index),u=Bf(t.index);return r?` +`,Wf=e=>e+1,Iq=e=>` + You have lifted an item in position ${Wf(e.source.index)} +`,f6=(e,t)=>{const r=e.droppableId===t.droppableId,i=Wf(e.index),c=Wf(t.index);return r?` You have moved the item from position ${i} - to position ${u} + to position ${c} `:` You have moved the item from position ${i} in list ${e.droppableId} to list ${t.droppableId} - in position ${u} - `},oC=(e,t,r)=>t.droppableId===r.droppableId?` + in position ${c} + `},d6=(e,t,r)=>t.droppableId===r.droppableId?` The item ${e} has been combined with ${r.draggableId}`:` The item ${e} in list ${t.droppableId} has been combined with ${r.draggableId} in list ${r.droppableId} - `,Mq=e=>{const t=e.destination;if(t)return iC(e.source,t);const r=e.combine;return r?oC(e.draggableId,e.source,r):"You are over an area that cannot be dropped on"},Z_=e=>` + `,Fq=e=>{const t=e.destination;if(t)return f6(e.source,t);const r=e.combine;return r?d6(e.draggableId,e.source,r):"You are over an area that cannot be dropped on"},e3=e=>` The item has returned to its starting position - of ${Bf(e.index)} -`,Sq=e=>{if(e.reason==="CANCEL")return` + of ${Wf(e.index)} +`,Nq=e=>{if(e.reason==="CANCEL")return` Movement cancelled. - ${Z_(e.source)} + ${e3(e.source)} `;const t=e.destination,r=e.combine;return t?` You have dropped the item. - ${iC(e.source,t)} + ${f6(e.source,t)} `:r?` You have dropped the item. - ${oC(e.draggableId,e.source,r)} + ${d6(e.draggableId,e.source,r)} `:` The item has been dropped while not over a drop area. - ${Z_(e.source)} - `},Cq={dragHandleUsageInstructions:Tq,onDragStart:kq,onDragUpdate:Mq,onDragEnd:Sq};var df=Cq;const ta={x:0,y:0},fa=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),Da=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),Xi=(e,t)=>e.x===t.x&&e.y===t.y,zl=e=>({x:e.x!==0?-e.x:0,y:e.y!==0?-e.y:0}),Oo=function(e,t,r){return r===void 0&&(r=0),e==="x"?{x:t,y:r}:{x:r,y:t}},Pu=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),K_=(e,t)=>Math.min(...t.map(r=>Pu(e,r))),lC=e=>t=>({x:e(t.x),y:e(t.y)});var Oq=(e,t)=>{const r=Ja({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return r.width<=0||r.height<=0?null:r};const ac=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),J_=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],Aq={top:0,right:0,bottom:0,left:0},Pq=(e,t)=>t?ac(e,t.scroll.diff.displacement):e,Dq=(e,t,r)=>r&&r.increasedBy?{...e,[t.end]:e[t.end]+r.increasedBy[t.line]}:e,Eq=(e,t)=>t&&t.shouldClipSubject?Oq(t.pageMarginBox,e):Ja(e);var Ml=e=>{let{page:t,withPlaceholder:r,axis:i,frame:u}=e;const o=Pq(t.marginBox,u),a=Dq(o,i,r),n=Eq(a,u);return{page:t,withPlaceholder:r,active:n}},n1=(e,t)=>{e.frame||un();const r=e.frame,i=Da(t,r.scroll.initial),u=zl(i),o={...r,scroll:{initial:r.scroll.initial,current:t,diff:{value:i,displacement:u},max:r.scroll.max}},a=Ml({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o});return{...e,frame:o,subject:a}};const sC=ea(e=>e.reduce((t,r)=>(t[r.descriptor.id]=r,t),{})),uC=ea(e=>e.reduce((t,r)=>(t[r.descriptor.id]=r,t),{})),Ud=ea(e=>Object.values(e)),Rq=ea(e=>Object.values(e));var ql=ea((e,t)=>Rq(t).filter(i=>e===i.descriptor.droppableId).sort((i,u)=>i.descriptor.index-u.descriptor.index));function r1(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function Hd(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var Vd=ea((e,t)=>t.filter(r=>r.descriptor.id!==e.descriptor.id)),Lq=e=>{let{isMovingForward:t,draggable:r,destination:i,insideDestination:u,previousImpact:o}=e;if(!i.isCombineEnabled||!r1(o))return null;function n(p){const m={type:"COMBINE",combine:{draggableId:p,droppableId:i.descriptor.id}};return{...o,at:m}}const l=o.displaced.all,f=l.length?l[0]:null;if(t)return f?n(f):null;const s=Vd(r,u);if(!f){if(!s.length)return null;const p=s[s.length-1];return n(p.descriptor.id)}const c=s.findIndex(p=>p.descriptor.id===f);c===-1&&un();const d=c-1;if(d<0)return null;const h=s[d];return n(h.descriptor.id)},Wl=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const cC={point:ta,value:0},Du={invisible:{},visible:{},all:[]},Iq={displaced:Du,displacedBy:cC,at:null};var Fq=Iq,Ua=(e,t)=>r=>e<=r&&r<=t,fC=e=>{const t=Ua(e.top,e.bottom),r=Ua(e.left,e.right);return i=>{if(t(i.top)&&t(i.bottom)&&r(i.left)&&r(i.right))return!0;const o=t(i.top)||t(i.bottom),a=r(i.left)||r(i.right);if(o&&a)return!0;const l=i.tope.bottom,f=i.lefte.right;return l&&f?!0:l&&a||f&&o}},Nq=e=>{const t=Ua(e.top,e.bottom),r=Ua(e.left,e.right);return i=>t(i.top)&&t(i.bottom)&&r(i.left)&&r(i.right)};const a1={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},dC={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};var jq=e=>t=>{const r=Ua(t.top,t.bottom),i=Ua(t.left,t.right);return u=>e===a1?r(u.top)&&r(u.bottom):i(u.left)&&i(u.right)};const $q=(e,t)=>{const r=t.frame?t.frame.scroll.diff.displacement:ta;return ac(e,r)},Bq=(e,t,r)=>t.subject.active?r(t.subject.active)(e):!1,zq=(e,t,r)=>r(t)(e),i1=e=>{let{target:t,destination:r,viewport:i,withDroppableDisplacement:u,isVisibleThroughFrameFn:o}=e;const a=u?$q(t,r):t;return Bq(a,r,o)&&zq(a,i,o)},qq=e=>i1({...e,isVisibleThroughFrameFn:fC}),hC=e=>i1({...e,isVisibleThroughFrameFn:Nq}),Wq=e=>i1({...e,isVisibleThroughFrameFn:jq(e.destination.axis)}),Uq=(e,t,r)=>{if(typeof r=="boolean")return r;if(!t)return!0;const{invisible:i,visible:u}=t;if(i[e])return!1;const o=u[e];return o?o.shouldAnimate:!0};function Hq(e,t){const r=e.page.marginBox,i={top:t.point.y,right:0,bottom:0,left:t.point.x};return Ja(e1(r,i))}function Eu(e){let{afterDragging:t,destination:r,displacedBy:i,viewport:u,forceShouldAnimate:o,last:a}=e;return t.reduce(function(l,f){const s=Hq(f,i),c=f.descriptor.id;if(l.all.push(c),!qq({target:s,destination:r,viewport:u,withDroppableDisplacement:!0}))return l.invisible[f.descriptor.id]=!0,l;const h=Uq(c,a,o),p={draggableId:c,shouldAnimate:h};return l.visible[c]=p,l},{all:[],visible:{},invisible:{}})}function Vq(e,t){if(!e.length)return 0;const r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}function Q_(e){let{insideDestination:t,inHomeList:r,displacedBy:i,destination:u}=e;const o=Vq(t,{inHomeList:r});return{displaced:Du,displacedBy:i,at:{type:"REORDER",destination:{droppableId:u.descriptor.id,index:o}}}}function zf(e){let{draggable:t,insideDestination:r,destination:i,viewport:u,displacedBy:o,last:a,index:n,forceShouldAnimate:l}=e;const f=Wl(t,i);if(n==null)return Q_({insideDestination:r,inHomeList:f,displacedBy:o,destination:i});const s=r.find(m=>m.descriptor.index===n);if(!s)return Q_({insideDestination:r,inHomeList:f,displacedBy:o,destination:i});const c=Vd(t,r),d=r.indexOf(s),h=c.slice(d);return{displaced:Eu({afterDragging:h,destination:i,displacedBy:o,last:a,viewport:u.frame,forceShouldAnimate:l}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:n}}}}function Ji(e,t){return!!t.effected[e]}var Yq=e=>{let{isMovingForward:t,destination:r,draggables:i,combine:u,afterCritical:o}=e;if(!r.isCombineEnabled)return null;const a=u.draggableId,l=i[a].descriptor.index;return Ji(a,o)?t?l:l-1:t?l+1:l},Gq=e=>{let{isMovingForward:t,isInHomeList:r,insideDestination:i,location:u}=e;if(!i.length)return null;const o=u.index,a=t?o+1:o-1,n=i[0].descriptor.index,l=i[i.length-1].descriptor.index,f=r?l:l+1;return af?null:a},Xq=e=>{let{isMovingForward:t,isInHomeList:r,draggable:i,draggables:u,destination:o,insideDestination:a,previousImpact:n,viewport:l,afterCritical:f}=e;const s=n.at;if(s||un(),s.type==="REORDER"){const d=Gq({isMovingForward:t,isInHomeList:r,location:s.destination,insideDestination:a});return d==null?null:zf({draggable:i,insideDestination:a,destination:o,viewport:l,last:n.displaced,displacedBy:n.displacedBy,index:d})}const c=Yq({isMovingForward:t,destination:o,displaced:n.displaced,draggables:u,combine:s.combine,afterCritical:f});return c==null?null:zf({draggable:i,insideDestination:a,destination:o,viewport:l,last:n.displaced,displacedBy:n.displacedBy,index:c})},Zq=e=>{let{displaced:t,afterCritical:r,combineWith:i,displacedBy:u}=e;const o=!!(t.visible[i]||t.invisible[i]);return Ji(i,r)?o?ta:zl(u.point):o?u.point:ta},Kq=e=>{let{afterCritical:t,impact:r,draggables:i}=e;const u=Hd(r);u||un();const o=u.draggableId,a=i[o].page.borderBox.center,n=Zq({displaced:r.displaced,afterCritical:t,combineWith:o,displacedBy:r.displacedBy});return fa(a,n)};const pC=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,Jq=(e,t)=>t.margin[e.end]+t.borderBox[e.size]/2,o1=(e,t,r)=>t[e.crossAxisStart]+r.margin[e.crossAxisStart]+r.borderBox[e.crossAxisSize]/2,e3=e=>{let{axis:t,moveRelativeTo:r,isMoving:i}=e;return Oo(t.line,r.marginBox[t.end]+pC(t,i),o1(t,r.marginBox,i))},t3=e=>{let{axis:t,moveRelativeTo:r,isMoving:i}=e;return Oo(t.line,r.marginBox[t.start]-Jq(t,i),o1(t,r.marginBox,i))},Qq=e=>{let{axis:t,moveInto:r,isMoving:i}=e;return Oo(t.line,r.contentBox[t.start]+pC(t,i),o1(t,r.contentBox,i))};var eW=e=>{let{impact:t,draggable:r,draggables:i,droppable:u,afterCritical:o}=e;const a=ql(u.descriptor.id,i),n=r.page,l=u.axis;if(!a.length)return Qq({axis:l,moveInto:u.page,isMoving:n});const{displaced:f,displacedBy:s}=t,c=f.all[0];if(c){const h=i[c];if(Ji(c,o))return t3({axis:l,moveRelativeTo:h.page,isMoving:n});const p=Nf(h.page,s.point);return t3({axis:l,moveRelativeTo:p,isMoving:n})}const d=a[a.length-1];if(d.descriptor.id===r.descriptor.id)return n.borderBox.center;if(Ji(d.descriptor.id,o)){const h=Nf(d.page,zl(o.displacedBy.point));return e3({axis:l,moveRelativeTo:h,isMoving:n})}return e3({axis:l,moveRelativeTo:d.page,isMoving:n})},F0=(e,t)=>{const r=e.frame;return r?fa(t,r.scroll.diff.displacement):t};const tW=e=>{let{impact:t,draggable:r,droppable:i,draggables:u,afterCritical:o}=e;const a=r.page.borderBox.center,n=t.at;return!i||!n?a:n.type==="REORDER"?eW({impact:t,draggable:r,draggables:u,droppable:i,afterCritical:o}):Kq({impact:t,draggables:u,afterCritical:o})};var Yd=e=>{const t=tW(e),r=e.droppable;return r?F0(r,t):t},gC=(e,t)=>{const r=Da(t,e.scroll.initial),i=zl(r);return{frame:Ja({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:r,displacement:i}}}};function n3(e,t){return e.map(r=>t[r])}function nW(e,t){for(let r=0;r{let{impact:t,viewport:r,destination:i,draggables:u,maxScrollChange:o}=e;const a=gC(r,fa(r.scroll.current,o)),n=i.frame?n1(i,fa(i.frame.scroll.current,o)):i,l=t.displaced,f=Eu({afterDragging:n3(l.all,u),destination:i,displacedBy:t.displacedBy,viewport:a.frame,last:l,forceShouldAnimate:!1}),s=Eu({afterDragging:n3(l.all,u),destination:n,displacedBy:t.displacedBy,viewport:r.frame,last:l,forceShouldAnimate:!1}),c={},d={},h=[l,f,s];return l.all.forEach(m=>{const y=nW(m,h);if(y){d[m]=y;return}c[m]=!0}),{...t,displaced:{all:l.all,invisible:c,visible:d}}},aW=(e,t)=>fa(e.scroll.diff.displacement,t),l1=e=>{let{pageBorderBoxCenter:t,draggable:r,viewport:i}=e;const u=aW(i,t),o=Da(u,r.page.borderBox.center);return fa(r.client.borderBox.center,o)},mC=e=>{let{draggable:t,destination:r,newPageBorderBoxCenter:i,viewport:u,withDroppableDisplacement:o,onlyOnMainAxis:a=!1}=e;const n=Da(i,t.page.borderBox.center),f={target:ac(t.page.borderBox,n),destination:r,withDroppableDisplacement:o,viewport:u};return a?Wq(f):hC(f)},iW=e=>{let{isMovingForward:t,draggable:r,destination:i,draggables:u,previousImpact:o,viewport:a,previousPageBorderBoxCenter:n,previousClientSelection:l,afterCritical:f}=e;if(!i.isEnabled)return null;const s=ql(i.descriptor.id,u),c=Wl(r,i),d=Lq({isMovingForward:t,draggable:r,destination:i,insideDestination:s,previousImpact:o})||Xq({isMovingForward:t,isInHomeList:c,draggable:r,draggables:u,destination:i,insideDestination:s,previousImpact:o,viewport:a,afterCritical:f});if(!d)return null;const h=Yd({impact:d,draggable:r,droppable:i,draggables:u,afterCritical:f});if(mC({draggable:r,destination:i,newPageBorderBoxCenter:h,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:l1({pageBorderBoxCenter:h,draggable:r,viewport:a}),impact:d,scrollJumpRequest:null};const m=Da(h,n),y=rW({impact:d,viewport:a,destination:i,draggables:u,maxScrollChange:m});return{clientSelection:l,impact:y,scrollJumpRequest:m}};const ya=e=>{const t=e.subject.active;return t||un(),t};var oW=e=>{let{isMovingForward:t,pageBorderBoxCenter:r,source:i,droppables:u,viewport:o}=e;const a=i.subject.active;if(!a)return null;const n=i.axis,l=Ua(a[n.start],a[n.end]),f=Ud(u).filter(c=>c!==i).filter(c=>c.isEnabled).filter(c=>!!c.subject.active).filter(c=>fC(o.frame)(ya(c))).filter(c=>{const d=ya(c);return t?a[n.crossAxisEnd]{const d=ya(c),h=Ua(d[n.start],d[n.end]);return l(d[n.start])||l(d[n.end])||h(a[n.start])||h(a[n.end])}).sort((c,d)=>{const h=ya(c)[n.crossAxisStart],p=ya(d)[n.crossAxisStart];return t?h-p:p-h}).filter((c,d,h)=>ya(c)[n.crossAxisStart]===ya(h[0])[n.crossAxisStart]);if(!f.length)return null;if(f.length===1)return f[0];const s=f.filter(c=>Ua(ya(c)[n.start],ya(c)[n.end])(r[n.line]));return s.length===1?s[0]:s.length>1?s.sort((c,d)=>ya(c)[n.start]-ya(d)[n.start])[0]:f.sort((c,d)=>{const h=K_(r,J_(ya(c))),p=K_(r,J_(ya(d)));return h!==p?h-p:ya(c)[n.start]-ya(d)[n.start]})[0]};const r3=(e,t)=>{const r=e.page.borderBox.center;return Ji(e.descriptor.id,t)?Da(r,t.displacedBy.point):r},lW=(e,t)=>{const r=e.page.borderBox;return Ji(e.descriptor.id,t)?ac(r,zl(t.displacedBy.point)):r};var sW=e=>{let{pageBorderBoxCenter:t,viewport:r,destination:i,insideDestination:u,afterCritical:o}=e;return u.filter(n=>hC({target:lW(n,o),destination:i,viewport:r.frame,withDroppableDisplacement:!0})).sort((n,l)=>{const f=Pu(t,F0(i,r3(n,o))),s=Pu(t,F0(i,r3(l,o)));return f{const i=e.axis;if(e.descriptor.mode==="virtual")return Oo(i.line,t[i.line]);const u=e.subject.page.contentBox[i.size],l=ql(e.descriptor.id,r).reduce((f,s)=>f+s.client.marginBox[i.size],0)+t[i.line]-u;return l<=0?null:Oo(i.line,l)},vC=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),yC=(e,t,r)=>{const i=e.frame;Wl(t,e)&&un(),e.subject.withPlaceholder&&un();const u=ic(e.axis,t.displaceBy).point,o=uW(e,u,r),a={placeholderSize:u,increasedBy:o,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!i){const s=Ml({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame});return{...e,subject:s}}const n=o?fa(i.scroll.max,o):i.scroll.max,l=vC(i,n),f=Ml({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:l});return{...e,subject:f,frame:l}},cW=e=>{const t=e.subject.withPlaceholder;t||un();const r=e.frame;if(!r){const a=Ml({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:a}}const i=t.oldFrameMaxScroll;i||un();const u=vC(r,i),o=Ml({page:e.subject.page,axis:e.axis,frame:u,withPlaceholder:null});return{...e,subject:o,frame:u}};var fW=e=>{let{previousPageBorderBoxCenter:t,moveRelativeTo:r,insideDestination:i,draggable:u,draggables:o,destination:a,viewport:n,afterCritical:l}=e;if(!r){if(i.length)return null;const d={displaced:Du,displacedBy:cC,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},h=Yd({impact:d,draggable:u,droppable:a,draggables:o,afterCritical:l}),p=Wl(u,a)?a:yC(a,u,o);return mC({draggable:u,destination:p,newPageBorderBoxCenter:h,viewport:n.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?d:null}const f=t[a.axis.line]<=r.page.borderBox.center[a.axis.line],s=(()=>{const d=r.descriptor.index;return r.descriptor.id===u.descriptor.id||f?d:d+1})(),c=ic(a.axis,u.displaceBy);return zf({draggable:u,insideDestination:i,destination:a,viewport:n,displacedBy:c,last:Du,index:s})},dW=e=>{let{isMovingForward:t,previousPageBorderBoxCenter:r,draggable:i,isOver:u,draggables:o,droppables:a,viewport:n,afterCritical:l}=e;const f=oW({isMovingForward:t,pageBorderBoxCenter:r,source:u,droppables:a,viewport:n});if(!f)return null;const s=ql(f.descriptor.id,o),c=sW({pageBorderBoxCenter:r,viewport:n,destination:f,insideDestination:s,afterCritical:l}),d=fW({previousPageBorderBoxCenter:r,destination:f,draggable:i,draggables:o,moveRelativeTo:c,insideDestination:s,viewport:n,afterCritical:l});if(!d)return null;const h=Yd({impact:d,draggable:i,droppable:f,draggables:o,afterCritical:l});return{clientSelection:l1({pageBorderBoxCenter:h,draggable:i,viewport:n}),impact:d,scrollJumpRequest:null}},La=e=>{const t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null};const hW=(e,t)=>{const r=La(e);return r?t[r]:null};var pW=e=>{let{state:t,type:r}=e;const i=hW(t.impact,t.dimensions.droppables),u=!!i,o=t.dimensions.droppables[t.critical.droppable.id],a=i||o,n=a.axis.direction,l=n==="vertical"&&(r==="MOVE_UP"||r==="MOVE_DOWN")||n==="horizontal"&&(r==="MOVE_LEFT"||r==="MOVE_RIGHT");if(l&&!u)return null;const f=r==="MOVE_DOWN"||r==="MOVE_RIGHT",s=t.dimensions.draggables[t.critical.draggable.id],c=t.current.page.borderBoxCenter,{draggables:d,droppables:h}=t.dimensions;return l?iW({isMovingForward:f,previousPageBorderBoxCenter:c,draggable:s,destination:a,draggables:d,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):dW({isMovingForward:f,previousPageBorderBoxCenter:c,draggable:s,isOver:a,draggables:d,droppables:h,viewport:t.viewport,afterCritical:t.afterCritical})};function go(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function bC(e){const t=Ua(e.top,e.bottom),r=Ua(e.left,e.right);return function(u){return t(u.y)&&r(u.x)}}function gW(e,t){return e.leftt.left&&e.topt.top}function mW(e){let{pageBorderBox:t,draggable:r,candidates:i}=e;const u=r.page.borderBox.center,o=i.map(a=>{const n=a.axis,l=Oo(a.axis.line,t.center[n.line],a.page.borderBox.center[n.crossAxisLine]);return{id:a.descriptor.id,distance:Pu(u,l)}}).sort((a,n)=>n.distance-a.distance);return o[0]?o[0].id:null}function vW(e){let{pageBorderBox:t,draggable:r,droppables:i}=e;const u=Ud(i).filter(o=>{if(!o.isEnabled)return!1;const a=o.subject.active;if(!a||!gW(t,a))return!1;if(bC(a)(t.center))return!0;const n=o.axis,l=a.center[n.crossAxisLine],f=t[n.crossAxisStart],s=t[n.crossAxisEnd],c=Ua(a[n.crossAxisStart],a[n.crossAxisEnd]),d=c(f),h=c(s);return!d&&!h?!0:d?fl});return u.length?u.length===1?u[0].descriptor.id:mW({pageBorderBox:t,draggable:r,candidates:u}):null}const xC=(e,t)=>Ja(ac(e,t));var yW=(e,t)=>{const r=e.frame;return r?xC(t,r.scroll.diff.value):t};function wC(e){let{displaced:t,id:r}=e;return!!(t.visible[r]||t.invisible[r])}function bW(e){let{draggable:t,closest:r,inHomeList:i}=e;return r?i&&r.descriptor.index>t.descriptor.index?r.descriptor.index-1:r.descriptor.index:null}var xW=e=>{let{pageBorderBoxWithDroppableScroll:t,draggable:r,destination:i,insideDestination:u,last:o,viewport:a,afterCritical:n}=e;const l=i.axis,f=ic(i.axis,r.displaceBy),s=f.value,c=t[l.start],d=t[l.end],p=Vd(r,u).find(y=>{const v=y.descriptor.id,g=y.page.borderBox.center[l.line],b=Ji(v,n),x=wC({displaced:o,id:v});return b?x?d<=g:c{let{draggable:t,pageBorderBoxWithDroppableScroll:r,previousImpact:i,destination:u,insideDestination:o,afterCritical:a}=e;if(!u.isCombineEnabled)return null;const n=u.axis,l=ic(u.axis,t.displaceBy),f=l.value,s=r[n.start],c=r[n.end],h=Vd(t,o).find(m=>{const y=m.descriptor.id,v=m.page.borderBox,b=v[n.size]/wW,x=Ji(y,a),_=wC({displaced:i.displaced,id:y});return x?_?c>v[n.start]+b&&cv[n.start]-f+b&&sv[n.start]+f+b&&cv[n.start]+b&&s{let{pageOffset:t,draggable:r,draggables:i,droppables:u,previousImpact:o,viewport:a,afterCritical:n}=e;const l=xC(r.page.borderBox,t),f=vW({pageBorderBox:l,draggable:r,droppables:u});if(!f)return Fq;const s=u[f],c=ql(s.descriptor.id,i),d=yW(s,l);return _W({pageBorderBoxWithDroppableScroll:d,draggable:r,previousImpact:o,destination:s,insideDestination:c,afterCritical:n})||xW({pageBorderBoxWithDroppableScroll:d,draggable:r,destination:s,insideDestination:c,last:o.displaced,viewport:a,afterCritical:n})},s1=(e,t)=>({...e,[t.descriptor.id]:t});const TW=e=>{let{previousImpact:t,impact:r,droppables:i}=e;const u=La(t),o=La(r);if(!u||u===o)return i;const a=i[u];if(!a.subject.withPlaceholder)return i;const n=cW(a);return s1(i,n)};var kW=e=>{let{draggable:t,draggables:r,droppables:i,previousImpact:u,impact:o}=e;const a=TW({previousImpact:u,impact:o,droppables:i}),n=La(o);if(!n)return a;const l=i[n];if(Wl(t,l)||l.subject.withPlaceholder)return a;const f=yC(l,t,r);return s1(a,f)},Tu=e=>{let{state:t,clientSelection:r,dimensions:i,viewport:u,impact:o,scrollJumpRequest:a}=e;const n=u||t.viewport,l=i||t.dimensions,f=r||t.current.client.selection,s=Da(f,t.initial.client.selection),c={offset:s,selection:f,borderBoxCenter:fa(t.initial.client.borderBoxCenter,s)},d={selection:fa(c.selection,n.scroll.current),borderBoxCenter:fa(c.borderBoxCenter,n.scroll.current),offset:fa(c.offset,n.scroll.diff.value)},h={client:c,page:d};if(t.phase==="COLLECTING")return{...t,dimensions:l,viewport:n,current:h};const p=l.draggables[t.critical.draggable.id],m=o||_C({pageOffset:d.offset,draggable:p,draggables:l.draggables,droppables:l.droppables,previousImpact:t.impact,viewport:n,afterCritical:t.afterCritical}),y=kW({draggable:p,impact:m,previousImpact:t.impact,draggables:l.draggables,droppables:l.droppables});return{...t,current:h,dimensions:{draggables:l.draggables,droppables:y},impact:m,viewport:n,scrollJumpRequest:a||null,forceShouldAnimate:a?!1:null}};function MW(e,t){return e.map(r=>t[r])}var TC=e=>{let{impact:t,viewport:r,draggables:i,destination:u,forceShouldAnimate:o}=e;const a=t.displaced,n=MW(a.all,i),l=Eu({afterDragging:n,destination:u,displacedBy:t.displacedBy,viewport:r.frame,forceShouldAnimate:o,last:a});return{...t,displaced:l}},kC=e=>{let{impact:t,draggable:r,droppable:i,draggables:u,viewport:o,afterCritical:a}=e;const n=Yd({impact:t,draggable:r,draggables:u,droppable:i,afterCritical:a});return l1({pageBorderBoxCenter:n,draggable:r,viewport:o})},MC=e=>{let{state:t,dimensions:r,viewport:i}=e;t.movementMode!=="SNAP"&&un();const u=t.impact,o=i||t.viewport,a=r||t.dimensions,{draggables:n,droppables:l}=a,f=n[t.critical.draggable.id],s=La(u);s||un();const c=l[s],d=TC({impact:u,viewport:o,destination:c,draggables:n}),h=kC({impact:d,draggable:f,droppable:c,draggables:n,viewport:o,afterCritical:t.afterCritical});return Tu({impact:d,clientSelection:h,state:t,dimensions:a,viewport:o})},SW=e=>({index:e.index,droppableId:e.droppableId}),SC=e=>{let{draggable:t,home:r,draggables:i,viewport:u}=e;const o=ic(r.axis,t.displaceBy),a=ql(r.descriptor.id,i),n=a.indexOf(t);n===-1&&un();const l=a.slice(n+1),f=l.reduce((h,p)=>(h[p.descriptor.id]=!0,h),{}),s={inVirtualList:r.descriptor.mode==="virtual",displacedBy:o,effected:f};return{impact:{displaced:Eu({afterDragging:l,destination:r,displacedBy:o,last:null,viewport:u.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:SW(t.descriptor)}},afterCritical:s}},CW=(e,t)=>({draggables:e.draggables,droppables:s1(e.droppables,t)}),OW=e=>{let{draggable:t,offset:r,initialWindowScroll:i}=e;const u=Nf(t.client,r),o=jf(u,i);return{...t,placeholder:{...t.placeholder,client:u},client:u,page:o}},AW=e=>{const t=e.frame;return t||un(),t},PW=e=>{let{additions:t,updatedDroppables:r,viewport:i}=e;const u=i.scroll.diff.value;return t.map(o=>{const a=o.descriptor.droppableId,n=r[a],f=AW(n).scroll.diff.value,s=fa(u,f);return OW({draggable:o,offset:s,initialWindowScroll:i.scroll.initial})})},DW=e=>{let{state:t,published:r}=e;const i=r.modified.map(g=>{const b=t.dimensions.droppables[g.droppableId];return n1(b,g.scroll)}),u={...t.dimensions.droppables,...sC(i)},o=uC(PW({additions:r.additions,updatedDroppables:u,viewport:t.viewport})),a={...t.dimensions.draggables,...o};r.removals.forEach(g=>{delete a[g]});const n={droppables:u,draggables:a},l=La(t.impact),f=l?n.droppables[l]:null,s=n.draggables[t.critical.draggable.id],c=n.droppables[t.critical.droppable.id],{impact:d,afterCritical:h}=SC({draggable:s,home:c,draggables:a,viewport:t.viewport}),p=f&&f.isCombineEnabled?t.impact:d,m=_C({pageOffset:t.current.page.offset,draggable:n.draggables[t.critical.draggable.id],draggables:n.draggables,droppables:n.droppables,previousImpact:p,viewport:t.viewport,afterCritical:h}),y={...t,phase:"DRAGGING",impact:m,onLiftImpact:d,dimensions:n,afterCritical:h,forceShouldAnimate:!1};return t.phase==="COLLECTING"?y:{...y,phase:"DROP_PENDING",reason:t.reason,isWaiting:!1}};const N0=e=>e.movementMode==="SNAP",ym=(e,t,r)=>{const i=CW(e.dimensions,t);return!N0(e)||r?Tu({state:e,dimensions:i}):MC({state:e,dimensions:i})};function bm(e){return e.isDragging&&e.movementMode==="SNAP"?{...e,scrollJumpRequest:null}:e}const a3={phase:"IDLE",completed:null,shouldFlush:!1};var EW=function(e,t){if(e===void 0&&(e=a3),t.type==="FLUSH")return{...a3,shouldFlush:!0};if(t.type==="INITIAL_PUBLISH"){e.phase!=="IDLE"&&un();const{critical:r,clientSelection:i,viewport:u,dimensions:o,movementMode:a}=t.payload,n=o.draggables[r.draggable.id],l=o.droppables[r.droppable.id],f={selection:i,borderBoxCenter:n.client.borderBox.center,offset:ta},s={client:f,page:{selection:fa(f.selection,u.scroll.initial),borderBoxCenter:fa(f.selection,u.scroll.initial),offset:fa(f.selection,u.scroll.diff.value)}},c=Ud(o.droppables).every(m=>!m.isFixedOnPage),{impact:d,afterCritical:h}=SC({draggable:n,home:l,draggables:o.draggables,viewport:u});return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:a,dimensions:o,initial:s,current:s,isWindowScrollAllowed:c,impact:d,afterCritical:h,onLiftImpact:d,viewport:u,scrollJumpRequest:null,forceShouldAnimate:null}}if(t.type==="COLLECTION_STARTING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"?e:(e.phase!=="DRAGGING"&&un(),{...e,phase:"COLLECTING"});if(t.type==="PUBLISH_WHILE_DRAGGING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"||un(),DW({state:e,published:t.payload});if(t.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;go(e)||un();const{client:r}=t.payload;return Xi(r,e.current.client.selection)?e:Tu({state:e,clientSelection:r,impact:N0(e)?e.impact:null})}if(t.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return bm(e);go(e)||un();const{id:r,newScroll:i}=t.payload,u=e.dimensions.droppables[r];if(!u)return e;const o=n1(u,i);return ym(e,o,!1)}if(t.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;go(e)||un();const{id:r,isEnabled:i}=t.payload,u=e.dimensions.droppables[r];u||un(),u.isEnabled===i&&un();const o={...u,isEnabled:i};return ym(e,o,!0)}if(t.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;go(e)||un();const{id:r,isCombineEnabled:i}=t.payload,u=e.dimensions.droppables[r];u||un(),u.isCombineEnabled===i&&un();const o={...u,isCombineEnabled:i};return ym(e,o,!0)}if(t.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;go(e)||un(),e.isWindowScrollAllowed||un();const r=t.payload.newScroll;if(Xi(e.viewport.scroll.current,r))return bm(e);const i=gC(e.viewport,r);return N0(e)?MC({state:e,viewport:i}):Tu({state:e,viewport:i})}if(t.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!go(e))return e;const r=t.payload.maxScroll;if(Xi(r,e.viewport.scroll.max))return e;const i={...e.viewport,scroll:{...e.viewport.scroll,max:r}};return{...e,viewport:i}}if(t.type==="MOVE_UP"||t.type==="MOVE_DOWN"||t.type==="MOVE_LEFT"||t.type==="MOVE_RIGHT"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&un();const r=pW({state:e,type:t.type});return r?Tu({state:e,impact:r.impact,clientSelection:r.clientSelection,scrollJumpRequest:r.scrollJumpRequest}):e}if(t.type==="DROP_PENDING"){const r=t.payload.reason;return e.phase!=="COLLECTING"&&un(),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:r}}if(t.type==="DROP_ANIMATE"){const{completed:r,dropDuration:i,newHomeClientOffset:u}=t.payload;return e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||un(),{phase:"DROP_ANIMATING",completed:r,dropDuration:i,newHomeClientOffset:u,dimensions:e.dimensions}}if(t.type==="DROP_COMPLETE"){const{completed:r}=t.payload;return{phase:"IDLE",completed:r,shouldFlush:!1}}return e};const RW=e=>({type:"BEFORE_INITIAL_CAPTURE",payload:e}),LW=e=>({type:"LIFT",payload:e}),IW=e=>({type:"INITIAL_PUBLISH",payload:e}),FW=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),NW=()=>({type:"COLLECTION_STARTING",payload:null}),jW=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),$W=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),BW=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),CC=e=>({type:"MOVE",payload:e}),zW=e=>({type:"MOVE_BY_WINDOW_SCROLL",payload:e}),qW=e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}),WW=()=>({type:"MOVE_UP",payload:null}),UW=()=>({type:"MOVE_DOWN",payload:null}),HW=()=>({type:"MOVE_RIGHT",payload:null}),VW=()=>({type:"MOVE_LEFT",payload:null}),u1=()=>({type:"FLUSH",payload:null}),YW=e=>({type:"DROP_ANIMATE",payload:e}),c1=e=>({type:"DROP_COMPLETE",payload:e}),OC=e=>({type:"DROP",payload:e}),GW=e=>({type:"DROP_PENDING",payload:e}),AC=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});var XW=e=>t=>{let{getState:r,dispatch:i}=t;return u=>o=>{if(o.type!=="LIFT"){u(o);return}const{id:a,clientSelection:n,movementMode:l}=o.payload,f=r();f.phase==="DROP_ANIMATING"&&i(c1({completed:f.completed})),r().phase!=="IDLE"&&un(),i(u1()),i(RW({draggableId:a,movementMode:l}));const c={draggableId:a,scrollOptions:{shouldPublishImmediately:l==="SNAP"}},{critical:d,dimensions:h,viewport:p}=e.startPublishing(c);i(IW({critical:d,dimensions:h,clientSelection:n,movementMode:l,viewport:p}))}},ZW=e=>()=>t=>r=>{r.type==="INITIAL_PUBLISH"&&e.dragging(),r.type==="DROP_ANIMATE"&&e.dropping(r.payload.completed.result.reason),(r.type==="FLUSH"||r.type==="DROP_COMPLETE")&&e.resting(),t(r)};const f1={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Ru={opacity:{drop:0,combining:.7},scale:{drop:.75}},PC={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},co=`${PC.outOfTheWay}s ${f1.outOfTheWay}`,ku={fluid:`opacity ${co}`,snap:`transform ${co}, opacity ${co}`,drop:e=>{const t=`${e}s ${f1.drop}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${co}`,placeholder:`height ${co}, width ${co}, margin ${co}`},i3=e=>Xi(e,ta)?void 0:`translate(${e.x}px, ${e.y}px)`,j0={moveTo:i3,drop:(e,t)=>{const r=i3(e);if(r)return t?`${r} scale(${Ru.scale.drop})`:r}},{minDropTime:$0,maxDropTime:DC}=PC,KW=DC-$0,o3=1500,JW=.6;var QW=e=>{let{current:t,destination:r,reason:i}=e;const u=Pu(t,r);if(u<=0)return $0;if(u>=o3)return DC;const o=u/o3,a=$0+KW*o,n=i==="CANCEL"?a*JW:a;return Number(n.toFixed(2))},eU=e=>{let{impact:t,draggable:r,dimensions:i,viewport:u,afterCritical:o}=e;const{draggables:a,droppables:n}=i,l=La(t),f=l?n[l]:null,s=n[r.descriptor.droppableId],c=kC({impact:t,draggable:r,draggables:a,afterCritical:o,droppable:f||s,viewport:u});return Da(c,r.client.borderBox.center)},tU=e=>{let{draggables:t,reason:r,lastImpact:i,home:u,viewport:o,onLiftImpact:a}=e;return!i.at||r!=="DROP"?{impact:TC({draggables:t,impact:a,destination:u,viewport:o,forceShouldAnimate:!0}),didDropInsideDroppable:!1}:i.at.type==="REORDER"?{impact:i,didDropInsideDroppable:!0}:{impact:{...i,displaced:Du},didDropInsideDroppable:!0}};const nU=e=>{let{getState:t,dispatch:r}=e;return i=>u=>{if(u.type!=="DROP"){i(u);return}const o=t(),a=u.payload.reason;if(o.phase==="COLLECTING"){r(GW({reason:a}));return}if(o.phase==="IDLE")return;o.phase==="DROP_PENDING"&&o.isWaiting&&un(),o.phase==="DRAGGING"||o.phase==="DROP_PENDING"||un();const l=o.critical,f=o.dimensions,s=f.draggables[o.critical.draggable.id],{impact:c,didDropInsideDroppable:d}=tU({reason:a,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),h=d?r1(c):null,p=d?Hd(c):null,m={index:l.draggable.index,droppableId:l.droppable.id},y={draggableId:s.descriptor.id,type:s.descriptor.type,source:m,reason:a,mode:o.movementMode,destination:h,combine:p},v=eU({impact:c,draggable:s,dimensions:f,viewport:o.viewport,afterCritical:o.afterCritical}),g={critical:o.critical,afterCritical:o.afterCritical,result:y,impact:c};if(!(!Xi(o.current.client.offset,v)||!!y.combine)){r(c1({completed:g}));return}const x=QW({current:o.current.client.offset,destination:v,reason:a});r(YW({newHomeClientOffset:v,dropDuration:x,completed:g}))}};var rU=nU,EC=()=>({x:window.pageXOffset,y:window.pageYOffset});function aU(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}function iU(e){let{onWindowScroll:t}=e;function r(){t(EC())}const i=Au(r),u=aU(i);let o=Gi;function a(){return o!==Gi}function n(){a()&&un(),o=qa(window,[u])}function l(){a()||un(),i.cancel(),o(),o=Gi}return{start:n,stop:l,isActive:a}}const oU=e=>e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH",lU=e=>{const t=iU({onWindowScroll:r=>{e.dispatch(zW({newScroll:r}))}});return r=>i=>{!t.isActive()&&i.type==="INITIAL_PUBLISH"&&t.start(),t.isActive()&&oU(i)&&t.stop(),r(i)}};var sU=lU,uU=e=>{let t=!1,r=!1;const i=setTimeout(()=>{r=!0}),u=o=>{t||r||(t=!0,e(o),clearTimeout(i))};return u.wasCalled=()=>t,u},cU=()=>{const e=[],t=u=>{const o=e.findIndex(n=>n.timerId===u);o===-1&&un();const[a]=e.splice(o,1);a.callback()};return{add:u=>{const o=setTimeout(()=>t(o)),a={timerId:o,callback:u};e.push(a)},flush:()=>{if(!e.length)return;const u=[...e];e.length=0,u.forEach(o=>{clearTimeout(o.timerId),o.callback()})}}};const fU=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.droppableId===t.droppableId&&e.index===t.index,dU=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.draggableId===t.draggableId&&e.droppableId===t.droppableId,hU=(e,t)=>{if(e===t)return!0;const r=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,i=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return r&&i},Ls=(e,t)=>{t()},Vc=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function xm(e,t,r,i){if(!e){r(i(t));return}const u=uU(r);e(t,{announce:u}),u.wasCalled()||r(i(t))}var pU=(e,t)=>{const r=cU();let i=null;const u=(c,d)=>{i&&un(),Ls("onBeforeCapture",()=>{const h=e().onBeforeCapture;h&&h({draggableId:c,mode:d})})},o=(c,d)=>{i&&un(),Ls("onBeforeDragStart",()=>{const h=e().onBeforeDragStart;h&&h(Vc(c,d))})},a=(c,d)=>{i&&un();const h=Vc(c,d);i={mode:d,lastCritical:c,lastLocation:h.source,lastCombine:null},r.add(()=>{Ls("onDragStart",()=>xm(e().onDragStart,h,t,df.onDragStart))})},n=(c,d)=>{const h=r1(d),p=Hd(d);i||un();const m=!hU(c,i.lastCritical);m&&(i.lastCritical=c);const y=!fU(i.lastLocation,h);y&&(i.lastLocation=h);const v=!dU(i.lastCombine,p);if(v&&(i.lastCombine=p),!m&&!y&&!v)return;const g={...Vc(c,i.mode),combine:p,destination:h};r.add(()=>{Ls("onDragUpdate",()=>xm(e().onDragUpdate,g,t,df.onDragUpdate))})},l=()=>{i||un(),r.flush()},f=c=>{i||un(),i=null,Ls("onDragEnd",()=>xm(e().onDragEnd,c,t,df.onDragEnd))};return{beforeCapture:u,beforeStart:o,start:a,update:n,flush:l,drop:f,abort:()=>{if(!i)return;const c={...Vc(i.lastCritical,i.mode),combine:null,destination:null,reason:"CANCEL"};f(c)}}},gU=(e,t)=>{const r=pU(e,t);return i=>u=>o=>{if(o.type==="BEFORE_INITIAL_CAPTURE"){r.beforeCapture(o.payload.draggableId,o.payload.movementMode);return}if(o.type==="INITIAL_PUBLISH"){const n=o.payload.critical;r.beforeStart(n,o.payload.movementMode),u(o),r.start(n,o.payload.movementMode);return}if(o.type==="DROP_COMPLETE"){const n=o.payload.completed.result;r.flush(),u(o),r.drop(n);return}if(u(o),o.type==="FLUSH"){r.abort();return}const a=i.getState();a.phase==="DRAGGING"&&r.update(a.critical,a.impact)}};const mU=e=>t=>r=>{if(r.type!=="DROP_ANIMATION_FINISHED"){t(r);return}const i=e.getState();i.phase!=="DROP_ANIMATING"&&un(),e.dispatch(c1({completed:i.completed}))};var vU=mU;const yU=e=>{let t=null,r=null;function i(){r&&(cancelAnimationFrame(r),r=null),t&&(t(),t=null)}return u=>o=>{if((o.type==="FLUSH"||o.type==="DROP_COMPLETE"||o.type==="DROP_ANIMATION_FINISHED")&&i(),u(o),o.type!=="DROP_ANIMATE")return;const a={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){e.getState().phase==="DROP_ANIMATING"&&e.dispatch(AC())}};r=requestAnimationFrame(()=>{r=null,t=qa(window,[a])})}};var bU=yU,xU=e=>()=>t=>r=>{(r.type==="DROP_COMPLETE"||r.type==="FLUSH"||r.type==="DROP_ANIMATE")&&e.stopPublishing(),t(r)},wU=e=>{let t=!1;return()=>r=>i=>{if(i.type==="INITIAL_PUBLISH"){t=!0,e.tryRecordFocus(i.payload.critical.draggable.id),r(i),e.tryRestoreFocusRecorded();return}if(r(i),!!t){if(i.type==="FLUSH"){t=!1,e.tryRestoreFocusRecorded();return}if(i.type==="DROP_COMPLETE"){t=!1;const u=i.payload.completed.result;u.combine&&e.tryShiftRecord(u.draggableId,u.combine.draggableId),e.tryRestoreFocusRecorded()}}}};const _U=e=>e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH";var TU=e=>t=>r=>i=>{if(_U(i)){e.stop(),r(i);return}if(i.type==="INITIAL_PUBLISH"){r(i);const u=t.getState();u.phase!=="DRAGGING"&&un(),e.start(u);return}r(i),e.scroll(t.getState())};const kU=e=>t=>r=>{if(t(r),r.type!=="PUBLISH_WHILE_DRAGGING")return;const i=e.getState();i.phase==="DROP_PENDING"&&(i.isWaiting||e.dispatch(OC({reason:i.reason})))};var MU=kU;const SU=G4;var CU=e=>{let{dimensionMarshal:t,focusMarshal:r,styleMarshal:i,getResponders:u,announce:o,autoScroller:a}=e;return Y4(EW,SU(Wz(ZW(i),xU(t),XW(t),rU,vU,bU,MU,TU(a),sU,wU(r),gU(u,o))))};const wm=()=>({additions:{},removals:{},modified:{}});function OU(e){let{registry:t,callbacks:r}=e,i=wm(),u=null;const o=()=>{u||(r.collectionStarting(),u=requestAnimationFrame(()=>{u=null;const{additions:f,removals:s,modified:c}=i,d=Object.keys(f).map(m=>t.draggable.getById(m).getDimension(ta)).sort((m,y)=>m.descriptor.index-y.descriptor.index),h=Object.keys(c).map(m=>{const v=t.droppable.getById(m).callbacks.getScrollWhileDragging();return{droppableId:m,scroll:v}}),p={additions:d,removals:Object.keys(s),modified:h};i=wm(),r.publish(p)}))};return{add:f=>{const s=f.descriptor.id;i.additions[s]=f,i.modified[f.descriptor.droppableId]=!0,i.removals[s]&&delete i.removals[s],o()},remove:f=>{const s=f.descriptor;i.removals[s.id]=!0,i.modified[s.droppableId]=!0,i.additions[s.id]&&delete i.additions[s.id],o()},stop:()=>{u&&(cancelAnimationFrame(u),u=null,i=wm())}}}var RC=e=>{let{scrollHeight:t,scrollWidth:r,height:i,width:u}=e;const o=Da({x:r,y:t},{x:u,y:i});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},LC=()=>{const e=document.documentElement;return e||un(),e},IC=()=>{const e=LC();return RC({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},AU=()=>{const e=EC(),t=IC(),r=e.y,i=e.x,u=LC(),o=u.clientWidth,a=u.clientHeight,n=i+o,l=r+a;return{frame:Ja({top:r,left:i,right:n,bottom:l}),scroll:{initial:e,current:e,max:t,diff:{value:ta,displacement:ta}}}},PU=e=>{let{critical:t,scrollOptions:r,registry:i}=e;const u=AU(),o=u.scroll.current,a=t.droppable,n=i.droppable.getAllByType(a.type).map(c=>c.callbacks.getDimensionAndWatchScroll(o,r)),l=i.draggable.getAllByType(t.draggable.type).map(c=>c.getDimension(o));return{dimensions:{draggables:uC(l),droppables:sC(n)},critical:t,viewport:u}};function l3(e,t,r){return!(r.descriptor.id===t.id||r.descriptor.type!==t.type||e.droppable.getById(r.descriptor.droppableId).descriptor.mode!=="virtual")}var DU=(e,t)=>{let r=null;const i=OU({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),u=(d,h)=>{e.droppable.exists(d)||un(),r&&t.updateDroppableIsEnabled({id:d,isEnabled:h})},o=(d,h)=>{r&&(e.droppable.exists(d)||un(),t.updateDroppableIsCombineEnabled({id:d,isCombineEnabled:h}))},a=(d,h)=>{r&&(e.droppable.exists(d)||un(),t.updateDroppableScroll({id:d,newScroll:h}))},n=(d,h)=>{r&&e.droppable.getById(d).callbacks.scroll(h)},l=()=>{if(!r)return;i.stop();const d=r.critical.droppable;e.droppable.getAllByType(d.type).forEach(h=>h.callbacks.dragStopped()),r.unsubscribe(),r=null},f=d=>{r||un();const h=r.critical.draggable;d.type==="ADDITION"&&l3(e,h,d.value)&&i.add(d.value),d.type==="REMOVAL"&&l3(e,h,d.value)&&i.remove(d.value)};return{updateDroppableIsEnabled:u,updateDroppableIsCombineEnabled:o,scrollDroppable:n,updateDroppableScroll:a,startPublishing:d=>{r&&un();const h=e.draggable.getById(d.draggableId),p=e.droppable.getById(h.descriptor.droppableId),m={draggable:h.descriptor,droppable:p.descriptor},y=e.subscribe(f);return r={critical:m,unsubscribe:y},PU({critical:m,registry:e,scrollOptions:d.scrollOptions})},stopPublishing:l}},FC=(e,t)=>e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP",EU=e=>{window.scrollBy(e.x,e.y)};const RU=ea(e=>Ud(e).filter(t=>!(!t.isEnabled||!t.frame))),LU=(e,t)=>RU(t).find(i=>(i.frame||un(),bC(i.frame.pageMarginBox)(e)))||null;var IU=e=>{let{center:t,destination:r,droppables:i}=e;if(r){const o=i[r];return o.frame?o:null}return LU(t,i)};const Lu={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var FU=function(e,t,r){r===void 0&&(r=()=>Lu);const i=r(),u=e[t.size]*i.startFromPercentage,o=e[t.size]*i.maxScrollAtPercentage;return{startScrollingFrom:u,maxScrollValueAt:o}},NC=e=>{let{startOfRange:t,endOfRange:r,current:i}=e;const u=r-t;return u===0?0:(i-t)/u},d1=1,NU=function(e,t,r){r===void 0&&(r=()=>Lu);const i=r();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return i.maxPixelScroll;if(e===t.startScrollingFrom)return d1;const o=1-NC({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),a=i.maxPixelScroll*i.ease(o);return Math.ceil(a)},jU=(e,t,r)=>{const i=r(),u=i.durationDampening.accelerateAt,o=i.durationDampening.stopDampeningAt,a=t,n=o,f=Date.now()-a;if(f>=o)return e;if(f{let{distanceToEdge:t,thresholds:r,dragStartTime:i,shouldUseTimeDampening:u,getAutoScrollerOptions:o}=e;const a=NU(t,r,o);return a===0?0:u?Math.max(jU(a,i,o),d1):a},u3=e=>{let{container:t,distanceToEdges:r,dragStartTime:i,axis:u,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const n=FU(t,u,a);return r[u.end]{let{container:t,subject:r,proposedScroll:i}=e;const u=r.height>t.height,o=r.width>t.width;return!o&&!u?i:o&&u?null:{x:o?0:i.x,y:u?0:i.y}};const BU=lC(e=>e===0?0:e);var jC=e=>{let{dragStartTime:t,container:r,subject:i,center:u,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const n={top:u.y-r.top,right:r.right-u.x,bottom:r.bottom-u.y,left:u.x-r.left},l=u3({container:r,distanceToEdges:n,dragStartTime:t,axis:a1,shouldUseTimeDampening:o,getAutoScrollerOptions:a}),f=u3({container:r,distanceToEdges:n,dragStartTime:t,axis:dC,shouldUseTimeDampening:o,getAutoScrollerOptions:a}),s=BU({x:f,y:l});if(Xi(s,ta))return null;const c=$U({container:r,subject:i,proposedScroll:s});return c?Xi(c,ta)?null:c:null};const zU=lC(e=>e===0?0:e>0?1:-1),h1=(()=>{const e=(t,r)=>t<0?t:t>r?t-r:0;return t=>{let{current:r,max:i,change:u}=t;const o=fa(r,u),a={x:e(o.x,i.x),y:e(o.y,i.y)};return Xi(a,ta)?null:a}})(),$C=e=>{let{max:t,current:r,change:i}=e;const u={x:Math.max(r.x,t.x),y:Math.max(r.y,t.y)},o=zU(i),a=h1({max:u,current:r,change:o});return!a||o.x!==0&&a.x===0||o.y!==0&&a.y===0},p1=(e,t)=>$C({current:e.scroll.current,max:e.scroll.max,change:t}),qU=(e,t)=>{if(!p1(e,t))return null;const r=e.scroll.max,i=e.scroll.current;return h1({current:i,max:r,change:t})},g1=(e,t)=>{const r=e.frame;return r?$C({current:r.scroll.current,max:r.scroll.max,change:t}):!1},WU=(e,t)=>{const r=e.frame;return!r||!g1(e,t)?null:h1({current:r.scroll.current,max:r.scroll.max,change:t})};var UU=e=>{let{viewport:t,subject:r,center:i,dragStartTime:u,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const n=jC({dragStartTime:u,container:t.frame,subject:r,center:i,shouldUseTimeDampening:o,getAutoScrollerOptions:a});return n&&p1(t,n)?n:null},HU=e=>{let{droppable:t,subject:r,center:i,dragStartTime:u,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const n=t.frame;if(!n)return null;const l=jC({dragStartTime:u,container:n.pageMarginBox,subject:r,center:i,shouldUseTimeDampening:o,getAutoScrollerOptions:a});return l&&g1(t,l)?l:null},c3=e=>{let{state:t,dragStartTime:r,shouldUseTimeDampening:i,scrollWindow:u,scrollDroppable:o,getAutoScrollerOptions:a}=e;const n=t.current.page.borderBoxCenter,f=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){const d=t.viewport,h=UU({dragStartTime:r,viewport:d,subject:f,center:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a});if(h){u(h);return}}const s=IU({center:n,destination:La(t.impact),droppables:t.dimensions.droppables});if(!s)return;const c=HU({dragStartTime:r,droppable:s,subject:f,center:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a});c&&o(s.descriptor.id,c)},VU=e=>{let{scrollWindow:t,scrollDroppable:r,getAutoScrollerOptions:i=()=>Lu}=e;const u=Au(t),o=Au(r);let a=null;const n=s=>{a||un();const{shouldUseTimeDampening:c,dragStartTime:d}=a;c3({state:s,scrollWindow:u,scrollDroppable:o,dragStartTime:d,shouldUseTimeDampening:c,getAutoScrollerOptions:i})};return{start:s=>{a&&un();const c=Date.now();let d=!1;const h=()=>{d=!0};c3({state:s,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:h,scrollDroppable:h,getAutoScrollerOptions:i}),a={dragStartTime:c,shouldUseTimeDampening:d},d&&n(s)},stop:()=>{a&&(u.cancel(),o.cancel(),a=null)},scroll:n}},YU=e=>{let{move:t,scrollDroppable:r,scrollWindow:i}=e;const u=(l,f)=>{const s=fa(l.current.client.selection,f);t({client:s})},o=(l,f)=>{if(!g1(l,f))return f;const s=WU(l,f);if(!s)return r(l.descriptor.id,f),null;const c=Da(f,s);return r(l.descriptor.id,c),Da(f,c)},a=(l,f,s)=>{if(!l||!p1(f,s))return s;const c=qU(f,s);if(!c)return i(s),null;const d=Da(s,c);return i(d),Da(s,d)};return l=>{const f=l.scrollJumpRequest;if(!f)return;const s=La(l.impact);s||un();const c=o(l.dimensions.droppables[s],f);if(!c)return;const d=l.viewport,h=a(l.isWindowScrollAllowed,d,c);h&&u(l,h)}},GU=e=>{let{scrollDroppable:t,scrollWindow:r,move:i,getAutoScrollerOptions:u}=e;const o=VU({scrollWindow:r,scrollDroppable:t,getAutoScrollerOptions:u}),a=YU({move:i,scrollWindow:r,scrollDroppable:t});return{scroll:f=>{if(!(u().disabled||f.phase!=="DRAGGING")){if(f.movementMode==="FLUID"){o.scroll(f);return}f.scrollJumpRequest&&a(f)}},start:o.start,stop:o.stop}};const Sl="data-rfd",Cl=(()=>{const e=`${Sl}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),B0=(()=>{const e=`${Sl}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),XU=(()=>{const e=`${Sl}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),f3={contextId:`${Sl}-scroll-container-context-id`},ZU=e=>t=>`[${t}="${e}"]`,Is=(e,t)=>e.map(r=>{const i=r.styles[t];return i?`${r.selector} { ${i} }`:""}).join(" "),KU="pointer-events: none;";var JU=e=>{const t=ZU(e),r=(()=>{const n=` + ${e3(e.source)} + `},jq={dragHandleUsageInstructions:Lq,onDragStart:Iq,onDragUpdate:Fq,onDragEnd:Nq};var gf=jq;const ea={x:0,y:0},ca=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),Ea=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),Zi=(e,t)=>e.x===t.x&&e.y===t.y,Wl=e=>({x:e.x!==0?-e.x:0,y:e.y!==0?-e.y:0}),Ao=function(e,t,r){return r===void 0&&(r=0),e==="x"?{x:t,y:r}:{x:r,y:t}},Ru=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),t3=(e,t)=>Math.min(...t.map(r=>Ru(e,r))),h6=e=>t=>({x:e(t.x),y:e(t.y)});var $q=(e,t)=>{const r=Qa({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return r.width<=0||r.height<=0?null:r};const lc=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),n3=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],Bq={top:0,right:0,bottom:0,left:0},zq=(e,t)=>t?lc(e,t.scroll.diff.displacement):e,qq=(e,t,r)=>r&&r.increasedBy?{...e,[t.end]:e[t.end]+r.increasedBy[t.line]}:e,Wq=(e,t)=>t&&t.shouldClipSubject?$q(t.pageMarginBox,e):Qa(e);var Cl=e=>{let{page:t,withPlaceholder:r,axis:i,frame:c}=e;const o=zq(t.marginBox,c),a=qq(o,i,r),n=Wq(a,c);return{page:t,withPlaceholder:r,active:n}},s1=(e,t)=>{e.frame||un();const r=e.frame,i=Ea(t,r.scroll.initial),c=Wl(i),o={...r,scroll:{initial:r.scroll.initial,current:t,diff:{value:i,displacement:c},max:r.scroll.max}},a=Cl({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o});return{...e,frame:o,subject:a}};const p6=Qr(e=>e.reduce((t,r)=>(t[r.descriptor.id]=r,t),{})),g6=Qr(e=>e.reduce((t,r)=>(t[r.descriptor.id]=r,t),{})),Hd=Qr(e=>Object.values(e)),Uq=Qr(e=>Object.values(e));var Ul=Qr((e,t)=>Uq(t).filter(i=>e===i.descriptor.droppableId).sort((i,c)=>i.descriptor.index-c.descriptor.index));function u1(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function Vd(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var Yd=Qr((e,t)=>t.filter(r=>r.descriptor.id!==e.descriptor.id)),Hq=e=>{let{isMovingForward:t,draggable:r,destination:i,insideDestination:c,previousImpact:o}=e;if(!i.isCombineEnabled||!u1(o))return null;function n(p){const g={type:"COMBINE",combine:{draggableId:p,droppableId:i.descriptor.id}};return{...o,at:g}}const l=o.displaced.all,f=l.length?l[0]:null;if(t)return f?n(f):null;const s=Yd(r,c);if(!f){if(!s.length)return null;const p=s[s.length-1];return n(p.descriptor.id)}const u=s.findIndex(p=>p.descriptor.id===f);u===-1&&un();const d=u-1;if(d<0)return null;const h=s[d];return n(h.descriptor.id)},Hl=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const m6={point:ea,value:0},Lu={invisible:{},visible:{},all:[]},Vq={displaced:Lu,displacedBy:m6,at:null};var Yq=Vq,Ha=(e,t)=>r=>e<=r&&r<=t,v6=e=>{const t=Ha(e.top,e.bottom),r=Ha(e.left,e.right);return i=>{if(t(i.top)&&t(i.bottom)&&r(i.left)&&r(i.right))return!0;const o=t(i.top)||t(i.bottom),a=r(i.left)||r(i.right);if(o&&a)return!0;const l=i.tope.bottom,f=i.lefte.right;return l&&f?!0:l&&a||f&&o}},Gq=e=>{const t=Ha(e.top,e.bottom),r=Ha(e.left,e.right);return i=>t(i.top)&&t(i.bottom)&&r(i.left)&&r(i.right)};const c1={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},y6={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};var Xq=e=>t=>{const r=Ha(t.top,t.bottom),i=Ha(t.left,t.right);return c=>e===c1?r(c.top)&&r(c.bottom):i(c.left)&&i(c.right)};const Zq=(e,t)=>{const r=t.frame?t.frame.scroll.diff.displacement:ea;return lc(e,r)},Kq=(e,t,r)=>t.subject.active?r(t.subject.active)(e):!1,Jq=(e,t,r)=>r(t)(e),f1=e=>{let{target:t,destination:r,viewport:i,withDroppableDisplacement:c,isVisibleThroughFrameFn:o}=e;const a=c?Zq(t,r):t;return Kq(a,r,o)&&Jq(a,i,o)},Qq=e=>f1({...e,isVisibleThroughFrameFn:v6}),b6=e=>f1({...e,isVisibleThroughFrameFn:Gq}),eW=e=>f1({...e,isVisibleThroughFrameFn:Xq(e.destination.axis)}),tW=(e,t,r)=>{if(typeof r=="boolean")return r;if(!t)return!0;const{invisible:i,visible:c}=t;if(i[e])return!1;const o=c[e];return o?o.shouldAnimate:!0};function nW(e,t){const r=e.page.marginBox,i={top:t.point.y,right:0,bottom:0,left:t.point.x};return Qa(o1(r,i))}function Iu(e){let{afterDragging:t,destination:r,displacedBy:i,viewport:c,forceShouldAnimate:o,last:a}=e;return t.reduce(function(l,f){const s=nW(f,i),u=f.descriptor.id;if(l.all.push(u),!Qq({target:s,destination:r,viewport:c,withDroppableDisplacement:!0}))return l.invisible[f.descriptor.id]=!0,l;const h=tW(u,a,o),p={draggableId:u,shouldAnimate:h};return l.visible[u]=p,l},{all:[],visible:{},invisible:{}})}function rW(e,t){if(!e.length)return 0;const r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}function r3(e){let{insideDestination:t,inHomeList:r,displacedBy:i,destination:c}=e;const o=rW(t,{inHomeList:r});return{displaced:Lu,displacedBy:i,at:{type:"REORDER",destination:{droppableId:c.descriptor.id,index:o}}}}function Uf(e){let{draggable:t,insideDestination:r,destination:i,viewport:c,displacedBy:o,last:a,index:n,forceShouldAnimate:l}=e;const f=Hl(t,i);if(n==null)return r3({insideDestination:r,inHomeList:f,displacedBy:o,destination:i});const s=r.find(g=>g.descriptor.index===n);if(!s)return r3({insideDestination:r,inHomeList:f,displacedBy:o,destination:i});const u=Yd(t,r),d=r.indexOf(s),h=u.slice(d);return{displaced:Iu({afterDragging:h,destination:i,displacedBy:o,last:a,viewport:c.frame,forceShouldAnimate:l}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:n}}}}function Qi(e,t){return!!t.effected[e]}var aW=e=>{let{isMovingForward:t,destination:r,draggables:i,combine:c,afterCritical:o}=e;if(!r.isCombineEnabled)return null;const a=c.draggableId,l=i[a].descriptor.index;return Qi(a,o)?t?l:l-1:t?l+1:l},iW=e=>{let{isMovingForward:t,isInHomeList:r,insideDestination:i,location:c}=e;if(!i.length)return null;const o=c.index,a=t?o+1:o-1,n=i[0].descriptor.index,l=i[i.length-1].descriptor.index,f=r?l:l+1;return af?null:a},oW=e=>{let{isMovingForward:t,isInHomeList:r,draggable:i,draggables:c,destination:o,insideDestination:a,previousImpact:n,viewport:l,afterCritical:f}=e;const s=n.at;if(s||un(),s.type==="REORDER"){const d=iW({isMovingForward:t,isInHomeList:r,location:s.destination,insideDestination:a});return d==null?null:Uf({draggable:i,insideDestination:a,destination:o,viewport:l,last:n.displaced,displacedBy:n.displacedBy,index:d})}const u=aW({isMovingForward:t,destination:o,displaced:n.displaced,draggables:c,combine:s.combine,afterCritical:f});return u==null?null:Uf({draggable:i,insideDestination:a,destination:o,viewport:l,last:n.displaced,displacedBy:n.displacedBy,index:u})},lW=e=>{let{displaced:t,afterCritical:r,combineWith:i,displacedBy:c}=e;const o=!!(t.visible[i]||t.invisible[i]);return Qi(i,r)?o?ea:Wl(c.point):o?c.point:ea},sW=e=>{let{afterCritical:t,impact:r,draggables:i}=e;const c=Vd(r);c||un();const o=c.draggableId,a=i[o].page.borderBox.center,n=lW({displaced:r.displaced,afterCritical:t,combineWith:o,displacedBy:r.displacedBy});return ca(a,n)};const x6=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,uW=(e,t)=>t.margin[e.end]+t.borderBox[e.size]/2,d1=(e,t,r)=>t[e.crossAxisStart]+r.margin[e.crossAxisStart]+r.borderBox[e.crossAxisSize]/2,a3=e=>{let{axis:t,moveRelativeTo:r,isMoving:i}=e;return Ao(t.line,r.marginBox[t.end]+x6(t,i),d1(t,r.marginBox,i))},i3=e=>{let{axis:t,moveRelativeTo:r,isMoving:i}=e;return Ao(t.line,r.marginBox[t.start]-uW(t,i),d1(t,r.marginBox,i))},cW=e=>{let{axis:t,moveInto:r,isMoving:i}=e;return Ao(t.line,r.contentBox[t.start]+x6(t,i),d1(t,r.contentBox,i))};var fW=e=>{let{impact:t,draggable:r,draggables:i,droppable:c,afterCritical:o}=e;const a=Ul(c.descriptor.id,i),n=r.page,l=c.axis;if(!a.length)return cW({axis:l,moveInto:c.page,isMoving:n});const{displaced:f,displacedBy:s}=t,u=f.all[0];if(u){const h=i[u];if(Qi(u,o))return i3({axis:l,moveRelativeTo:h.page,isMoving:n});const p=Bf(h.page,s.point);return i3({axis:l,moveRelativeTo:p,isMoving:n})}const d=a[a.length-1];if(d.descriptor.id===r.descriptor.id)return n.borderBox.center;if(Qi(d.descriptor.id,o)){const h=Bf(d.page,Wl(o.displacedBy.point));return a3({axis:l,moveRelativeTo:h,isMoving:n})}return a3({axis:l,moveRelativeTo:d.page,isMoving:n})},$0=(e,t)=>{const r=e.frame;return r?ca(t,r.scroll.diff.displacement):t};const dW=e=>{let{impact:t,draggable:r,droppable:i,draggables:c,afterCritical:o}=e;const a=r.page.borderBox.center,n=t.at;return!i||!n?a:n.type==="REORDER"?fW({impact:t,draggable:r,draggables:c,droppable:i,afterCritical:o}):sW({impact:t,draggables:c,afterCritical:o})};var Gd=e=>{const t=dW(e),r=e.droppable;return r?$0(r,t):t},w6=(e,t)=>{const r=Ea(t,e.scroll.initial),i=Wl(r);return{frame:Qa({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:r,displacement:i}}}};function o3(e,t){return e.map(r=>t[r])}function hW(e,t){for(let r=0;r{let{impact:t,viewport:r,destination:i,draggables:c,maxScrollChange:o}=e;const a=w6(r,ca(r.scroll.current,o)),n=i.frame?s1(i,ca(i.frame.scroll.current,o)):i,l=t.displaced,f=Iu({afterDragging:o3(l.all,c),destination:i,displacedBy:t.displacedBy,viewport:a.frame,last:l,forceShouldAnimate:!1}),s=Iu({afterDragging:o3(l.all,c),destination:n,displacedBy:t.displacedBy,viewport:r.frame,last:l,forceShouldAnimate:!1}),u={},d={},h=[l,f,s];return l.all.forEach(g=>{const y=hW(g,h);if(y){d[g]=y;return}u[g]=!0}),{...t,displaced:{all:l.all,invisible:u,visible:d}}},gW=(e,t)=>ca(e.scroll.diff.displacement,t),h1=e=>{let{pageBorderBoxCenter:t,draggable:r,viewport:i}=e;const c=gW(i,t),o=Ea(c,r.page.borderBox.center);return ca(r.client.borderBox.center,o)},_6=e=>{let{draggable:t,destination:r,newPageBorderBoxCenter:i,viewport:c,withDroppableDisplacement:o,onlyOnMainAxis:a=!1}=e;const n=Ea(i,t.page.borderBox.center),f={target:lc(t.page.borderBox,n),destination:r,withDroppableDisplacement:o,viewport:c};return a?eW(f):b6(f)},mW=e=>{let{isMovingForward:t,draggable:r,destination:i,draggables:c,previousImpact:o,viewport:a,previousPageBorderBoxCenter:n,previousClientSelection:l,afterCritical:f}=e;if(!i.isEnabled)return null;const s=Ul(i.descriptor.id,c),u=Hl(r,i),d=Hq({isMovingForward:t,draggable:r,destination:i,insideDestination:s,previousImpact:o})||oW({isMovingForward:t,isInHomeList:u,draggable:r,draggables:c,destination:i,insideDestination:s,previousImpact:o,viewport:a,afterCritical:f});if(!d)return null;const h=Gd({impact:d,draggable:r,droppable:i,draggables:c,afterCritical:f});if(_6({draggable:r,destination:i,newPageBorderBoxCenter:h,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:h1({pageBorderBoxCenter:h,draggable:r,viewport:a}),impact:d,scrollJumpRequest:null};const g=Ea(h,n),y=pW({impact:d,viewport:a,destination:i,draggables:c,maxScrollChange:g});return{clientSelection:l,impact:y,scrollJumpRequest:g}};const ba=e=>{const t=e.subject.active;return t||un(),t};var vW=e=>{let{isMovingForward:t,pageBorderBoxCenter:r,source:i,droppables:c,viewport:o}=e;const a=i.subject.active;if(!a)return null;const n=i.axis,l=Ha(a[n.start],a[n.end]),f=Hd(c).filter(u=>u!==i).filter(u=>u.isEnabled).filter(u=>!!u.subject.active).filter(u=>v6(o.frame)(ba(u))).filter(u=>{const d=ba(u);return t?a[n.crossAxisEnd]{const d=ba(u),h=Ha(d[n.start],d[n.end]);return l(d[n.start])||l(d[n.end])||h(a[n.start])||h(a[n.end])}).sort((u,d)=>{const h=ba(u)[n.crossAxisStart],p=ba(d)[n.crossAxisStart];return t?h-p:p-h}).filter((u,d,h)=>ba(u)[n.crossAxisStart]===ba(h[0])[n.crossAxisStart]);if(!f.length)return null;if(f.length===1)return f[0];const s=f.filter(u=>Ha(ba(u)[n.start],ba(u)[n.end])(r[n.line]));return s.length===1?s[0]:s.length>1?s.sort((u,d)=>ba(u)[n.start]-ba(d)[n.start])[0]:f.sort((u,d)=>{const h=t3(r,n3(ba(u))),p=t3(r,n3(ba(d)));return h!==p?h-p:ba(u)[n.start]-ba(d)[n.start]})[0]};const l3=(e,t)=>{const r=e.page.borderBox.center;return Qi(e.descriptor.id,t)?Ea(r,t.displacedBy.point):r},yW=(e,t)=>{const r=e.page.borderBox;return Qi(e.descriptor.id,t)?lc(r,Wl(t.displacedBy.point)):r};var bW=e=>{let{pageBorderBoxCenter:t,viewport:r,destination:i,insideDestination:c,afterCritical:o}=e;return c.filter(n=>b6({target:yW(n,o),destination:i,viewport:r.frame,withDroppableDisplacement:!0})).sort((n,l)=>{const f=Ru(t,$0(i,l3(n,o))),s=Ru(t,$0(i,l3(l,o)));return f{const i=e.axis;if(e.descriptor.mode==="virtual")return Ao(i.line,t[i.line]);const c=e.subject.page.contentBox[i.size],l=Ul(e.descriptor.id,r).reduce((f,s)=>f+s.client.marginBox[i.size],0)+t[i.line]-c;return l<=0?null:Ao(i.line,l)},T6=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),k6=(e,t,r)=>{const i=e.frame;Hl(t,e)&&un(),e.subject.withPlaceholder&&un();const c=sc(e.axis,t.displaceBy).point,o=xW(e,c,r),a={placeholderSize:c,increasedBy:o,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!i){const s=Cl({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame});return{...e,subject:s}}const n=o?ca(i.scroll.max,o):i.scroll.max,l=T6(i,n),f=Cl({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:l});return{...e,subject:f,frame:l}},wW=e=>{const t=e.subject.withPlaceholder;t||un();const r=e.frame;if(!r){const a=Cl({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:a}}const i=t.oldFrameMaxScroll;i||un();const c=T6(r,i),o=Cl({page:e.subject.page,axis:e.axis,frame:c,withPlaceholder:null});return{...e,subject:o,frame:c}};var _W=e=>{let{previousPageBorderBoxCenter:t,moveRelativeTo:r,insideDestination:i,draggable:c,draggables:o,destination:a,viewport:n,afterCritical:l}=e;if(!r){if(i.length)return null;const d={displaced:Lu,displacedBy:m6,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},h=Gd({impact:d,draggable:c,droppable:a,draggables:o,afterCritical:l}),p=Hl(c,a)?a:k6(a,c,o);return _6({draggable:c,destination:p,newPageBorderBoxCenter:h,viewport:n.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?d:null}const f=t[a.axis.line]<=r.page.borderBox.center[a.axis.line],s=(()=>{const d=r.descriptor.index;return r.descriptor.id===c.descriptor.id||f?d:d+1})(),u=sc(a.axis,c.displaceBy);return Uf({draggable:c,insideDestination:i,destination:a,viewport:n,displacedBy:u,last:Lu,index:s})},TW=e=>{let{isMovingForward:t,previousPageBorderBoxCenter:r,draggable:i,isOver:c,draggables:o,droppables:a,viewport:n,afterCritical:l}=e;const f=vW({isMovingForward:t,pageBorderBoxCenter:r,source:c,droppables:a,viewport:n});if(!f)return null;const s=Ul(f.descriptor.id,o),u=bW({pageBorderBoxCenter:r,viewport:n,destination:f,insideDestination:s,afterCritical:l}),d=_W({previousPageBorderBoxCenter:r,destination:f,draggable:i,draggables:o,moveRelativeTo:u,insideDestination:s,viewport:n,afterCritical:l});if(!d)return null;const h=Gd({impact:d,draggable:i,droppable:f,draggables:o,afterCritical:l});return{clientSelection:h1({pageBorderBoxCenter:h,draggable:i,viewport:n}),impact:d,scrollJumpRequest:null}},Ia=e=>{const t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null};const kW=(e,t)=>{const r=Ia(e);return r?t[r]:null};var MW=e=>{let{state:t,type:r}=e;const i=kW(t.impact,t.dimensions.droppables),c=!!i,o=t.dimensions.droppables[t.critical.droppable.id],a=i||o,n=a.axis.direction,l=n==="vertical"&&(r==="MOVE_UP"||r==="MOVE_DOWN")||n==="horizontal"&&(r==="MOVE_LEFT"||r==="MOVE_RIGHT");if(l&&!c)return null;const f=r==="MOVE_DOWN"||r==="MOVE_RIGHT",s=t.dimensions.draggables[t.critical.draggable.id],u=t.current.page.borderBoxCenter,{draggables:d,droppables:h}=t.dimensions;return l?mW({isMovingForward:f,previousPageBorderBoxCenter:u,draggable:s,destination:a,draggables:d,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):TW({isMovingForward:f,previousPageBorderBoxCenter:u,draggable:s,isOver:a,draggables:d,droppables:h,viewport:t.viewport,afterCritical:t.afterCritical})};function mo(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function M6(e){const t=Ha(e.top,e.bottom),r=Ha(e.left,e.right);return function(c){return t(c.y)&&r(c.x)}}function SW(e,t){return e.leftt.left&&e.topt.top}function CW(e){let{pageBorderBox:t,draggable:r,candidates:i}=e;const c=r.page.borderBox.center,o=i.map(a=>{const n=a.axis,l=Ao(a.axis.line,t.center[n.line],a.page.borderBox.center[n.crossAxisLine]);return{id:a.descriptor.id,distance:Ru(c,l)}}).sort((a,n)=>n.distance-a.distance);return o[0]?o[0].id:null}function OW(e){let{pageBorderBox:t,draggable:r,droppables:i}=e;const c=Hd(i).filter(o=>{if(!o.isEnabled)return!1;const a=o.subject.active;if(!a||!SW(t,a))return!1;if(M6(a)(t.center))return!0;const n=o.axis,l=a.center[n.crossAxisLine],f=t[n.crossAxisStart],s=t[n.crossAxisEnd],u=Ha(a[n.crossAxisStart],a[n.crossAxisEnd]),d=u(f),h=u(s);return!d&&!h?!0:d?fl});return c.length?c.length===1?c[0].descriptor.id:CW({pageBorderBox:t,draggable:r,candidates:c}):null}const S6=(e,t)=>Qa(lc(e,t));var AW=(e,t)=>{const r=e.frame;return r?S6(t,r.scroll.diff.value):t};function C6(e){let{displaced:t,id:r}=e;return!!(t.visible[r]||t.invisible[r])}function PW(e){let{draggable:t,closest:r,inHomeList:i}=e;return r?i&&r.descriptor.index>t.descriptor.index?r.descriptor.index-1:r.descriptor.index:null}var DW=e=>{let{pageBorderBoxWithDroppableScroll:t,draggable:r,destination:i,insideDestination:c,last:o,viewport:a,afterCritical:n}=e;const l=i.axis,f=sc(i.axis,r.displaceBy),s=f.value,u=t[l.start],d=t[l.end],p=Yd(r,c).find(y=>{const v=y.descriptor.id,m=y.page.borderBox.center[l.line],b=Qi(v,n),x=C6({displaced:o,id:v});return b?x?d<=m:u{let{draggable:t,pageBorderBoxWithDroppableScroll:r,previousImpact:i,destination:c,insideDestination:o,afterCritical:a}=e;if(!c.isCombineEnabled)return null;const n=c.axis,l=sc(c.axis,t.displaceBy),f=l.value,s=r[n.start],u=r[n.end],h=Yd(t,o).find(g=>{const y=g.descriptor.id,v=g.page.borderBox,b=v[n.size]/EW,x=Qi(y,a),_=C6({displaced:i.displaced,id:y});return x?_?u>v[n.start]+b&&uv[n.start]-f+b&&sv[n.start]+f+b&&uv[n.start]+b&&s{let{pageOffset:t,draggable:r,draggables:i,droppables:c,previousImpact:o,viewport:a,afterCritical:n}=e;const l=S6(r.page.borderBox,t),f=OW({pageBorderBox:l,draggable:r,droppables:c});if(!f)return Yq;const s=c[f],u=Ul(s.descriptor.id,i),d=AW(s,l);return RW({pageBorderBoxWithDroppableScroll:d,draggable:r,previousImpact:o,destination:s,insideDestination:u,afterCritical:n})||DW({pageBorderBoxWithDroppableScroll:d,draggable:r,destination:s,insideDestination:u,last:o.displaced,viewport:a,afterCritical:n})},p1=(e,t)=>({...e,[t.descriptor.id]:t});const LW=e=>{let{previousImpact:t,impact:r,droppables:i}=e;const c=Ia(t),o=Ia(r);if(!c||c===o)return i;const a=i[c];if(!a.subject.withPlaceholder)return i;const n=wW(a);return p1(i,n)};var IW=e=>{let{draggable:t,draggables:r,droppables:i,previousImpact:c,impact:o}=e;const a=LW({previousImpact:c,impact:o,droppables:i}),n=Ia(o);if(!n)return a;const l=i[n];if(Hl(t,l)||l.subject.withPlaceholder)return a;const f=k6(l,t,r);return p1(a,f)},Su=e=>{let{state:t,clientSelection:r,dimensions:i,viewport:c,impact:o,scrollJumpRequest:a}=e;const n=c||t.viewport,l=i||t.dimensions,f=r||t.current.client.selection,s=Ea(f,t.initial.client.selection),u={offset:s,selection:f,borderBoxCenter:ca(t.initial.client.borderBoxCenter,s)},d={selection:ca(u.selection,n.scroll.current),borderBoxCenter:ca(u.borderBoxCenter,n.scroll.current),offset:ca(u.offset,n.scroll.diff.value)},h={client:u,page:d};if(t.phase==="COLLECTING")return{...t,dimensions:l,viewport:n,current:h};const p=l.draggables[t.critical.draggable.id],g=o||O6({pageOffset:d.offset,draggable:p,draggables:l.draggables,droppables:l.droppables,previousImpact:t.impact,viewport:n,afterCritical:t.afterCritical}),y=IW({draggable:p,impact:g,previousImpact:t.impact,draggables:l.draggables,droppables:l.droppables});return{...t,current:h,dimensions:{draggables:l.draggables,droppables:y},impact:g,viewport:n,scrollJumpRequest:a||null,forceShouldAnimate:a?!1:null}};function FW(e,t){return e.map(r=>t[r])}var A6=e=>{let{impact:t,viewport:r,draggables:i,destination:c,forceShouldAnimate:o}=e;const a=t.displaced,n=FW(a.all,i),l=Iu({afterDragging:n,destination:c,displacedBy:t.displacedBy,viewport:r.frame,forceShouldAnimate:o,last:a});return{...t,displaced:l}},P6=e=>{let{impact:t,draggable:r,droppable:i,draggables:c,viewport:o,afterCritical:a}=e;const n=Gd({impact:t,draggable:r,draggables:c,droppable:i,afterCritical:a});return h1({pageBorderBoxCenter:n,draggable:r,viewport:o})},D6=e=>{let{state:t,dimensions:r,viewport:i}=e;t.movementMode!=="SNAP"&&un();const c=t.impact,o=i||t.viewport,a=r||t.dimensions,{draggables:n,droppables:l}=a,f=n[t.critical.draggable.id],s=Ia(c);s||un();const u=l[s],d=A6({impact:c,viewport:o,destination:u,draggables:n}),h=P6({impact:d,draggable:f,droppable:u,draggables:n,viewport:o,afterCritical:t.afterCritical});return Su({impact:d,clientSelection:h,state:t,dimensions:a,viewport:o})},NW=e=>({index:e.index,droppableId:e.droppableId}),E6=e=>{let{draggable:t,home:r,draggables:i,viewport:c}=e;const o=sc(r.axis,t.displaceBy),a=Ul(r.descriptor.id,i),n=a.indexOf(t);n===-1&&un();const l=a.slice(n+1),f=l.reduce((h,p)=>(h[p.descriptor.id]=!0,h),{}),s={inVirtualList:r.descriptor.mode==="virtual",displacedBy:o,effected:f};return{impact:{displaced:Iu({afterDragging:l,destination:r,displacedBy:o,last:null,viewport:c.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:NW(t.descriptor)}},afterCritical:s}},jW=(e,t)=>({draggables:e.draggables,droppables:p1(e.droppables,t)}),$W=e=>{let{draggable:t,offset:r,initialWindowScroll:i}=e;const c=Bf(t.client,r),o=zf(c,i);return{...t,placeholder:{...t.placeholder,client:c},client:c,page:o}},BW=e=>{const t=e.frame;return t||un(),t},zW=e=>{let{additions:t,updatedDroppables:r,viewport:i}=e;const c=i.scroll.diff.value;return t.map(o=>{const a=o.descriptor.droppableId,n=r[a],f=BW(n).scroll.diff.value,s=ca(c,f);return $W({draggable:o,offset:s,initialWindowScroll:i.scroll.initial})})},qW=e=>{let{state:t,published:r}=e;const i=r.modified.map(m=>{const b=t.dimensions.droppables[m.droppableId];return s1(b,m.scroll)}),c={...t.dimensions.droppables,...p6(i)},o=g6(zW({additions:r.additions,updatedDroppables:c,viewport:t.viewport})),a={...t.dimensions.draggables,...o};r.removals.forEach(m=>{delete a[m]});const n={droppables:c,draggables:a},l=Ia(t.impact),f=l?n.droppables[l]:null,s=n.draggables[t.critical.draggable.id],u=n.droppables[t.critical.droppable.id],{impact:d,afterCritical:h}=E6({draggable:s,home:u,draggables:a,viewport:t.viewport}),p=f&&f.isCombineEnabled?t.impact:d,g=O6({pageOffset:t.current.page.offset,draggable:n.draggables[t.critical.draggable.id],draggables:n.draggables,droppables:n.droppables,previousImpact:p,viewport:t.viewport,afterCritical:h}),y={...t,phase:"DRAGGING",impact:g,onLiftImpact:d,dimensions:n,afterCritical:h,forceShouldAnimate:!1};return t.phase==="COLLECTING"?y:{...y,phase:"DROP_PENDING",reason:t.reason,isWaiting:!1}};const B0=e=>e.movementMode==="SNAP",wm=(e,t,r)=>{const i=jW(e.dimensions,t);return!B0(e)||r?Su({state:e,dimensions:i}):D6({state:e,dimensions:i})};function _m(e){return e.isDragging&&e.movementMode==="SNAP"?{...e,scrollJumpRequest:null}:e}const s3={phase:"IDLE",completed:null,shouldFlush:!1};var WW=function(e,t){if(e===void 0&&(e=s3),t.type==="FLUSH")return{...s3,shouldFlush:!0};if(t.type==="INITIAL_PUBLISH"){e.phase!=="IDLE"&&un();const{critical:r,clientSelection:i,viewport:c,dimensions:o,movementMode:a}=t.payload,n=o.draggables[r.draggable.id],l=o.droppables[r.droppable.id],f={selection:i,borderBoxCenter:n.client.borderBox.center,offset:ea},s={client:f,page:{selection:ca(f.selection,c.scroll.initial),borderBoxCenter:ca(f.selection,c.scroll.initial),offset:ca(f.selection,c.scroll.diff.value)}},u=Hd(o.droppables).every(g=>!g.isFixedOnPage),{impact:d,afterCritical:h}=E6({draggable:n,home:l,draggables:o.draggables,viewport:c});return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:a,dimensions:o,initial:s,current:s,isWindowScrollAllowed:u,impact:d,afterCritical:h,onLiftImpact:d,viewport:c,scrollJumpRequest:null,forceShouldAnimate:null}}if(t.type==="COLLECTION_STARTING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"?e:(e.phase!=="DRAGGING"&&un(),{...e,phase:"COLLECTING"});if(t.type==="PUBLISH_WHILE_DRAGGING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"||un(),qW({state:e,published:t.payload});if(t.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;mo(e)||un();const{client:r}=t.payload;return Zi(r,e.current.client.selection)?e:Su({state:e,clientSelection:r,impact:B0(e)?e.impact:null})}if(t.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return _m(e);mo(e)||un();const{id:r,newScroll:i}=t.payload,c=e.dimensions.droppables[r];if(!c)return e;const o=s1(c,i);return wm(e,o,!1)}if(t.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;mo(e)||un();const{id:r,isEnabled:i}=t.payload,c=e.dimensions.droppables[r];c||un(),c.isEnabled===i&&un();const o={...c,isEnabled:i};return wm(e,o,!0)}if(t.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;mo(e)||un();const{id:r,isCombineEnabled:i}=t.payload,c=e.dimensions.droppables[r];c||un(),c.isCombineEnabled===i&&un();const o={...c,isCombineEnabled:i};return wm(e,o,!0)}if(t.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;mo(e)||un(),e.isWindowScrollAllowed||un();const r=t.payload.newScroll;if(Zi(e.viewport.scroll.current,r))return _m(e);const i=w6(e.viewport,r);return B0(e)?D6({state:e,viewport:i}):Su({state:e,viewport:i})}if(t.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!mo(e))return e;const r=t.payload.maxScroll;if(Zi(r,e.viewport.scroll.max))return e;const i={...e.viewport,scroll:{...e.viewport.scroll,max:r}};return{...e,viewport:i}}if(t.type==="MOVE_UP"||t.type==="MOVE_DOWN"||t.type==="MOVE_LEFT"||t.type==="MOVE_RIGHT"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&un();const r=MW({state:e,type:t.type});return r?Su({state:e,impact:r.impact,clientSelection:r.clientSelection,scrollJumpRequest:r.scrollJumpRequest}):e}if(t.type==="DROP_PENDING"){const r=t.payload.reason;return e.phase!=="COLLECTING"&&un(),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:r}}if(t.type==="DROP_ANIMATE"){const{completed:r,dropDuration:i,newHomeClientOffset:c}=t.payload;return e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||un(),{phase:"DROP_ANIMATING",completed:r,dropDuration:i,newHomeClientOffset:c,dimensions:e.dimensions}}if(t.type==="DROP_COMPLETE"){const{completed:r}=t.payload;return{phase:"IDLE",completed:r,shouldFlush:!1}}return e};const UW=e=>({type:"BEFORE_INITIAL_CAPTURE",payload:e}),HW=e=>({type:"LIFT",payload:e}),VW=e=>({type:"INITIAL_PUBLISH",payload:e}),YW=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),GW=()=>({type:"COLLECTION_STARTING",payload:null}),XW=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),ZW=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),KW=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),R6=e=>({type:"MOVE",payload:e}),JW=e=>({type:"MOVE_BY_WINDOW_SCROLL",payload:e}),QW=e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}),eU=()=>({type:"MOVE_UP",payload:null}),tU=()=>({type:"MOVE_DOWN",payload:null}),nU=()=>({type:"MOVE_RIGHT",payload:null}),rU=()=>({type:"MOVE_LEFT",payload:null}),g1=()=>({type:"FLUSH",payload:null}),aU=e=>({type:"DROP_ANIMATE",payload:e}),m1=e=>({type:"DROP_COMPLETE",payload:e}),L6=e=>({type:"DROP",payload:e}),iU=e=>({type:"DROP_PENDING",payload:e}),I6=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});var oU=e=>t=>{let{getState:r,dispatch:i}=t;return c=>o=>{if(o.type!=="LIFT"){c(o);return}const{id:a,clientSelection:n,movementMode:l}=o.payload,f=r();f.phase==="DROP_ANIMATING"&&i(m1({completed:f.completed})),r().phase!=="IDLE"&&un(),i(g1()),i(UW({draggableId:a,movementMode:l}));const u={draggableId:a,scrollOptions:{shouldPublishImmediately:l==="SNAP"}},{critical:d,dimensions:h,viewport:p}=e.startPublishing(u);i(VW({critical:d,dimensions:h,clientSelection:n,movementMode:l,viewport:p}))}},lU=e=>()=>t=>r=>{r.type==="INITIAL_PUBLISH"&&e.dragging(),r.type==="DROP_ANIMATE"&&e.dropping(r.payload.completed.result.reason),(r.type==="FLUSH"||r.type==="DROP_COMPLETE")&&e.resting(),t(r)};const v1={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Fu={opacity:{drop:0,combining:.7},scale:{drop:.75}},F6={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},fo=`${F6.outOfTheWay}s ${v1.outOfTheWay}`,Cu={fluid:`opacity ${fo}`,snap:`transform ${fo}, opacity ${fo}`,drop:e=>{const t=`${e}s ${v1.drop}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${fo}`,placeholder:`height ${fo}, width ${fo}, margin ${fo}`},u3=e=>Zi(e,ea)?void 0:`translate(${e.x}px, ${e.y}px)`,z0={moveTo:u3,drop:(e,t)=>{const r=u3(e);if(r)return t?`${r} scale(${Fu.scale.drop})`:r}},{minDropTime:q0,maxDropTime:N6}=F6,sU=N6-q0,c3=1500,uU=.6;var cU=e=>{let{current:t,destination:r,reason:i}=e;const c=Ru(t,r);if(c<=0)return q0;if(c>=c3)return N6;const o=c/c3,a=q0+sU*o,n=i==="CANCEL"?a*uU:a;return Number(n.toFixed(2))},fU=e=>{let{impact:t,draggable:r,dimensions:i,viewport:c,afterCritical:o}=e;const{draggables:a,droppables:n}=i,l=Ia(t),f=l?n[l]:null,s=n[r.descriptor.droppableId],u=P6({impact:t,draggable:r,draggables:a,afterCritical:o,droppable:f||s,viewport:c});return Ea(u,r.client.borderBox.center)},dU=e=>{let{draggables:t,reason:r,lastImpact:i,home:c,viewport:o,onLiftImpact:a}=e;return!i.at||r!=="DROP"?{impact:A6({draggables:t,impact:a,destination:c,viewport:o,forceShouldAnimate:!0}),didDropInsideDroppable:!1}:i.at.type==="REORDER"?{impact:i,didDropInsideDroppable:!0}:{impact:{...i,displaced:Lu},didDropInsideDroppable:!0}};const hU=e=>{let{getState:t,dispatch:r}=e;return i=>c=>{if(c.type!=="DROP"){i(c);return}const o=t(),a=c.payload.reason;if(o.phase==="COLLECTING"){r(iU({reason:a}));return}if(o.phase==="IDLE")return;o.phase==="DROP_PENDING"&&o.isWaiting&&un(),o.phase==="DRAGGING"||o.phase==="DROP_PENDING"||un();const l=o.critical,f=o.dimensions,s=f.draggables[o.critical.draggable.id],{impact:u,didDropInsideDroppable:d}=dU({reason:a,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),h=d?u1(u):null,p=d?Vd(u):null,g={index:l.draggable.index,droppableId:l.droppable.id},y={draggableId:s.descriptor.id,type:s.descriptor.type,source:g,reason:a,mode:o.movementMode,destination:h,combine:p},v=fU({impact:u,draggable:s,dimensions:f,viewport:o.viewport,afterCritical:o.afterCritical}),m={critical:o.critical,afterCritical:o.afterCritical,result:y,impact:u};if(!(!Zi(o.current.client.offset,v)||!!y.combine)){r(m1({completed:m}));return}const x=cU({current:o.current.client.offset,destination:v,reason:a});r(aU({newHomeClientOffset:v,dropDuration:x,completed:m}))}};var pU=hU,j6=()=>({x:window.pageXOffset,y:window.pageYOffset});function gU(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}function mU(e){let{onWindowScroll:t}=e;function r(){t(j6())}const i=Eu(r),c=gU(i);let o=Xi;function a(){return o!==Xi}function n(){a()&&un(),o=Wa(window,[c])}function l(){a()||un(),i.cancel(),o(),o=Xi}return{start:n,stop:l,isActive:a}}const vU=e=>e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH",yU=e=>{const t=mU({onWindowScroll:r=>{e.dispatch(JW({newScroll:r}))}});return r=>i=>{!t.isActive()&&i.type==="INITIAL_PUBLISH"&&t.start(),t.isActive()&&vU(i)&&t.stop(),r(i)}};var bU=yU,xU=e=>{let t=!1,r=!1;const i=setTimeout(()=>{r=!0}),c=o=>{t||r||(t=!0,e(o),clearTimeout(i))};return c.wasCalled=()=>t,c},wU=()=>{const e=[],t=c=>{const o=e.findIndex(n=>n.timerId===c);o===-1&&un();const[a]=e.splice(o,1);a.callback()};return{add:c=>{const o=setTimeout(()=>t(o)),a={timerId:o,callback:c};e.push(a)},flush:()=>{if(!e.length)return;const c=[...e];e.length=0,c.forEach(o=>{clearTimeout(o.timerId),o.callback()})}}};const _U=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.droppableId===t.droppableId&&e.index===t.index,TU=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.draggableId===t.draggableId&&e.droppableId===t.droppableId,kU=(e,t)=>{if(e===t)return!0;const r=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,i=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return r&&i},Ns=(e,t)=>{t()},Xc=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function Tm(e,t,r,i){if(!e){r(i(t));return}const c=xU(r);e(t,{announce:c}),c.wasCalled()||r(i(t))}var MU=(e,t)=>{const r=wU();let i=null;const c=(u,d)=>{i&&un(),Ns("onBeforeCapture",()=>{const h=e().onBeforeCapture;h&&h({draggableId:u,mode:d})})},o=(u,d)=>{i&&un(),Ns("onBeforeDragStart",()=>{const h=e().onBeforeDragStart;h&&h(Xc(u,d))})},a=(u,d)=>{i&&un();const h=Xc(u,d);i={mode:d,lastCritical:u,lastLocation:h.source,lastCombine:null},r.add(()=>{Ns("onDragStart",()=>Tm(e().onDragStart,h,t,gf.onDragStart))})},n=(u,d)=>{const h=u1(d),p=Vd(d);i||un();const g=!kU(u,i.lastCritical);g&&(i.lastCritical=u);const y=!_U(i.lastLocation,h);y&&(i.lastLocation=h);const v=!TU(i.lastCombine,p);if(v&&(i.lastCombine=p),!g&&!y&&!v)return;const m={...Xc(u,i.mode),combine:p,destination:h};r.add(()=>{Ns("onDragUpdate",()=>Tm(e().onDragUpdate,m,t,gf.onDragUpdate))})},l=()=>{i||un(),r.flush()},f=u=>{i||un(),i=null,Ns("onDragEnd",()=>Tm(e().onDragEnd,u,t,gf.onDragEnd))};return{beforeCapture:c,beforeStart:o,start:a,update:n,flush:l,drop:f,abort:()=>{if(!i)return;const u={...Xc(i.lastCritical,i.mode),combine:null,destination:null,reason:"CANCEL"};f(u)}}},SU=(e,t)=>{const r=MU(e,t);return i=>c=>o=>{if(o.type==="BEFORE_INITIAL_CAPTURE"){r.beforeCapture(o.payload.draggableId,o.payload.movementMode);return}if(o.type==="INITIAL_PUBLISH"){const n=o.payload.critical;r.beforeStart(n,o.payload.movementMode),c(o),r.start(n,o.payload.movementMode);return}if(o.type==="DROP_COMPLETE"){const n=o.payload.completed.result;r.flush(),c(o),r.drop(n);return}if(c(o),o.type==="FLUSH"){r.abort();return}const a=i.getState();a.phase==="DRAGGING"&&r.update(a.critical,a.impact)}};const CU=e=>t=>r=>{if(r.type!=="DROP_ANIMATION_FINISHED"){t(r);return}const i=e.getState();i.phase!=="DROP_ANIMATING"&&un(),e.dispatch(m1({completed:i.completed}))};var OU=CU;const AU=e=>{let t=null,r=null;function i(){r&&(cancelAnimationFrame(r),r=null),t&&(t(),t=null)}return c=>o=>{if((o.type==="FLUSH"||o.type==="DROP_COMPLETE"||o.type==="DROP_ANIMATION_FINISHED")&&i(),c(o),o.type!=="DROP_ANIMATE")return;const a={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){e.getState().phase==="DROP_ANIMATING"&&e.dispatch(I6())}};r=requestAnimationFrame(()=>{r=null,t=Wa(window,[a])})}};var PU=AU,DU=e=>()=>t=>r=>{(r.type==="DROP_COMPLETE"||r.type==="FLUSH"||r.type==="DROP_ANIMATE")&&e.stopPublishing(),t(r)},EU=e=>{let t=!1;return()=>r=>i=>{if(i.type==="INITIAL_PUBLISH"){t=!0,e.tryRecordFocus(i.payload.critical.draggable.id),r(i),e.tryRestoreFocusRecorded();return}if(r(i),!!t){if(i.type==="FLUSH"){t=!1,e.tryRestoreFocusRecorded();return}if(i.type==="DROP_COMPLETE"){t=!1;const c=i.payload.completed.result;c.combine&&e.tryShiftRecord(c.draggableId,c.combine.draggableId),e.tryRestoreFocusRecorded()}}}};const RU=e=>e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH";var LU=e=>t=>r=>i=>{if(RU(i)){e.stop(),r(i);return}if(i.type==="INITIAL_PUBLISH"){r(i);const c=t.getState();c.phase!=="DRAGGING"&&un(),e.start(c);return}r(i),e.scroll(t.getState())};const IU=e=>t=>r=>{if(t(r),r.type!=="PUBLISH_WHILE_DRAGGING")return;const i=e.getState();i.phase==="DROP_PENDING"&&(i.isWaiting||e.dispatch(L6({reason:i.reason})))};var FU=IU;const NU=e6;var jU=e=>{let{dimensionMarshal:t,focusMarshal:r,styleMarshal:i,getResponders:c,announce:o,autoScroller:a}=e;return Q4(WW,NU(eq(lU(i),DU(t),oU(t),pU,OU,PU,FU,LU(a),bU,EU(r),SU(c,o))))};const km=()=>({additions:{},removals:{},modified:{}});function $U(e){let{registry:t,callbacks:r}=e,i=km(),c=null;const o=()=>{c||(r.collectionStarting(),c=requestAnimationFrame(()=>{c=null;const{additions:f,removals:s,modified:u}=i,d=Object.keys(f).map(g=>t.draggable.getById(g).getDimension(ea)).sort((g,y)=>g.descriptor.index-y.descriptor.index),h=Object.keys(u).map(g=>{const v=t.droppable.getById(g).callbacks.getScrollWhileDragging();return{droppableId:g,scroll:v}}),p={additions:d,removals:Object.keys(s),modified:h};i=km(),r.publish(p)}))};return{add:f=>{const s=f.descriptor.id;i.additions[s]=f,i.modified[f.descriptor.droppableId]=!0,i.removals[s]&&delete i.removals[s],o()},remove:f=>{const s=f.descriptor;i.removals[s.id]=!0,i.modified[s.droppableId]=!0,i.additions[s.id]&&delete i.additions[s.id],o()},stop:()=>{c&&(cancelAnimationFrame(c),c=null,i=km())}}}var $6=e=>{let{scrollHeight:t,scrollWidth:r,height:i,width:c}=e;const o=Ea({x:r,y:t},{x:c,y:i});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},B6=()=>{const e=document.documentElement;return e||un(),e},z6=()=>{const e=B6();return $6({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},BU=()=>{const e=j6(),t=z6(),r=e.y,i=e.x,c=B6(),o=c.clientWidth,a=c.clientHeight,n=i+o,l=r+a;return{frame:Qa({top:r,left:i,right:n,bottom:l}),scroll:{initial:e,current:e,max:t,diff:{value:ea,displacement:ea}}}},zU=e=>{let{critical:t,scrollOptions:r,registry:i}=e;const c=BU(),o=c.scroll.current,a=t.droppable,n=i.droppable.getAllByType(a.type).map(u=>u.callbacks.getDimensionAndWatchScroll(o,r)),l=i.draggable.getAllByType(t.draggable.type).map(u=>u.getDimension(o));return{dimensions:{draggables:g6(l),droppables:p6(n)},critical:t,viewport:c}};function f3(e,t,r){return!(r.descriptor.id===t.id||r.descriptor.type!==t.type||e.droppable.getById(r.descriptor.droppableId).descriptor.mode!=="virtual")}var qU=(e,t)=>{let r=null;const i=$U({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),c=(d,h)=>{e.droppable.exists(d)||un(),r&&t.updateDroppableIsEnabled({id:d,isEnabled:h})},o=(d,h)=>{r&&(e.droppable.exists(d)||un(),t.updateDroppableIsCombineEnabled({id:d,isCombineEnabled:h}))},a=(d,h)=>{r&&(e.droppable.exists(d)||un(),t.updateDroppableScroll({id:d,newScroll:h}))},n=(d,h)=>{r&&e.droppable.getById(d).callbacks.scroll(h)},l=()=>{if(!r)return;i.stop();const d=r.critical.droppable;e.droppable.getAllByType(d.type).forEach(h=>h.callbacks.dragStopped()),r.unsubscribe(),r=null},f=d=>{r||un();const h=r.critical.draggable;d.type==="ADDITION"&&f3(e,h,d.value)&&i.add(d.value),d.type==="REMOVAL"&&f3(e,h,d.value)&&i.remove(d.value)};return{updateDroppableIsEnabled:c,updateDroppableIsCombineEnabled:o,scrollDroppable:n,updateDroppableScroll:a,startPublishing:d=>{r&&un();const h=e.draggable.getById(d.draggableId),p=e.droppable.getById(h.descriptor.droppableId),g={draggable:h.descriptor,droppable:p.descriptor},y=e.subscribe(f);return r={critical:g,unsubscribe:y},zU({critical:g,registry:e,scrollOptions:d.scrollOptions})},stopPublishing:l}},q6=(e,t)=>e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP",WU=e=>{window.scrollBy(e.x,e.y)};const UU=Qr(e=>Hd(e).filter(t=>!(!t.isEnabled||!t.frame))),HU=(e,t)=>UU(t).find(i=>(i.frame||un(),M6(i.frame.pageMarginBox)(e)))||null;var VU=e=>{let{center:t,destination:r,droppables:i}=e;if(r){const o=i[r];return o.frame?o:null}return HU(t,i)};const Nu={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var YU=function(e,t,r){r===void 0&&(r=()=>Nu);const i=r(),c=e[t.size]*i.startFromPercentage,o=e[t.size]*i.maxScrollAtPercentage;return{startScrollingFrom:c,maxScrollValueAt:o}},W6=e=>{let{startOfRange:t,endOfRange:r,current:i}=e;const c=r-t;return c===0?0:(i-t)/c},y1=1,GU=function(e,t,r){r===void 0&&(r=()=>Nu);const i=r();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return i.maxPixelScroll;if(e===t.startScrollingFrom)return y1;const o=1-W6({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),a=i.maxPixelScroll*i.ease(o);return Math.ceil(a)},XU=(e,t,r)=>{const i=r(),c=i.durationDampening.accelerateAt,o=i.durationDampening.stopDampeningAt,a=t,n=o,f=Date.now()-a;if(f>=o)return e;if(f{let{distanceToEdge:t,thresholds:r,dragStartTime:i,shouldUseTimeDampening:c,getAutoScrollerOptions:o}=e;const a=GU(t,r,o);return a===0?0:c?Math.max(XU(a,i,o),y1):a},h3=e=>{let{container:t,distanceToEdges:r,dragStartTime:i,axis:c,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const n=YU(t,c,a);return r[c.end]{let{container:t,subject:r,proposedScroll:i}=e;const c=r.height>t.height,o=r.width>t.width;return!o&&!c?i:o&&c?null:{x:o?0:i.x,y:c?0:i.y}};const KU=h6(e=>e===0?0:e);var U6=e=>{let{dragStartTime:t,container:r,subject:i,center:c,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const n={top:c.y-r.top,right:r.right-c.x,bottom:r.bottom-c.y,left:c.x-r.left},l=h3({container:r,distanceToEdges:n,dragStartTime:t,axis:c1,shouldUseTimeDampening:o,getAutoScrollerOptions:a}),f=h3({container:r,distanceToEdges:n,dragStartTime:t,axis:y6,shouldUseTimeDampening:o,getAutoScrollerOptions:a}),s=KU({x:f,y:l});if(Zi(s,ea))return null;const u=ZU({container:r,subject:i,proposedScroll:s});return u?Zi(u,ea)?null:u:null};const JU=h6(e=>e===0?0:e>0?1:-1),b1=(()=>{const e=(t,r)=>t<0?t:t>r?t-r:0;return t=>{let{current:r,max:i,change:c}=t;const o=ca(r,c),a={x:e(o.x,i.x),y:e(o.y,i.y)};return Zi(a,ea)?null:a}})(),H6=e=>{let{max:t,current:r,change:i}=e;const c={x:Math.max(r.x,t.x),y:Math.max(r.y,t.y)},o=JU(i),a=b1({max:c,current:r,change:o});return!a||o.x!==0&&a.x===0||o.y!==0&&a.y===0},x1=(e,t)=>H6({current:e.scroll.current,max:e.scroll.max,change:t}),QU=(e,t)=>{if(!x1(e,t))return null;const r=e.scroll.max,i=e.scroll.current;return b1({current:i,max:r,change:t})},w1=(e,t)=>{const r=e.frame;return r?H6({current:r.scroll.current,max:r.scroll.max,change:t}):!1},eH=(e,t)=>{const r=e.frame;return!r||!w1(e,t)?null:b1({current:r.scroll.current,max:r.scroll.max,change:t})};var tH=e=>{let{viewport:t,subject:r,center:i,dragStartTime:c,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const n=U6({dragStartTime:c,container:t.frame,subject:r,center:i,shouldUseTimeDampening:o,getAutoScrollerOptions:a});return n&&x1(t,n)?n:null},nH=e=>{let{droppable:t,subject:r,center:i,dragStartTime:c,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const n=t.frame;if(!n)return null;const l=U6({dragStartTime:c,container:n.pageMarginBox,subject:r,center:i,shouldUseTimeDampening:o,getAutoScrollerOptions:a});return l&&w1(t,l)?l:null},p3=e=>{let{state:t,dragStartTime:r,shouldUseTimeDampening:i,scrollWindow:c,scrollDroppable:o,getAutoScrollerOptions:a}=e;const n=t.current.page.borderBoxCenter,f=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){const d=t.viewport,h=tH({dragStartTime:r,viewport:d,subject:f,center:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a});if(h){c(h);return}}const s=VU({center:n,destination:Ia(t.impact),droppables:t.dimensions.droppables});if(!s)return;const u=nH({dragStartTime:r,droppable:s,subject:f,center:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a});u&&o(s.descriptor.id,u)},rH=e=>{let{scrollWindow:t,scrollDroppable:r,getAutoScrollerOptions:i=()=>Nu}=e;const c=Eu(t),o=Eu(r);let a=null;const n=s=>{a||un();const{shouldUseTimeDampening:u,dragStartTime:d}=a;p3({state:s,scrollWindow:c,scrollDroppable:o,dragStartTime:d,shouldUseTimeDampening:u,getAutoScrollerOptions:i})};return{start:s=>{a&&un();const u=Date.now();let d=!1;const h=()=>{d=!0};p3({state:s,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:h,scrollDroppable:h,getAutoScrollerOptions:i}),a={dragStartTime:u,shouldUseTimeDampening:d},d&&n(s)},stop:()=>{a&&(c.cancel(),o.cancel(),a=null)},scroll:n}},aH=e=>{let{move:t,scrollDroppable:r,scrollWindow:i}=e;const c=(l,f)=>{const s=ca(l.current.client.selection,f);t({client:s})},o=(l,f)=>{if(!w1(l,f))return f;const s=eH(l,f);if(!s)return r(l.descriptor.id,f),null;const u=Ea(f,s);return r(l.descriptor.id,u),Ea(f,u)},a=(l,f,s)=>{if(!l||!x1(f,s))return s;const u=QU(f,s);if(!u)return i(s),null;const d=Ea(s,u);return i(d),Ea(s,d)};return l=>{const f=l.scrollJumpRequest;if(!f)return;const s=Ia(l.impact);s||un();const u=o(l.dimensions.droppables[s],f);if(!u)return;const d=l.viewport,h=a(l.isWindowScrollAllowed,d,u);h&&c(l,h)}},iH=e=>{let{scrollDroppable:t,scrollWindow:r,move:i,getAutoScrollerOptions:c}=e;const o=rH({scrollWindow:r,scrollDroppable:t,getAutoScrollerOptions:c}),a=aH({move:i,scrollWindow:r,scrollDroppable:t});return{scroll:f=>{if(!(c().disabled||f.phase!=="DRAGGING")){if(f.movementMode==="FLUID"){o.scroll(f);return}f.scrollJumpRequest&&a(f)}},start:o.start,stop:o.stop}};const Ol="data-rfd",Al=(()=>{const e=`${Ol}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),W0=(()=>{const e=`${Ol}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),oH=(()=>{const e=`${Ol}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),g3={contextId:`${Ol}-scroll-container-context-id`},lH=e=>t=>`[${t}="${e}"]`,js=(e,t)=>e.map(r=>{const i=r.styles[t];return i?`${r.selector} { ${i} }`:""}).join(" "),sH="pointer-events: none;";var uH=e=>{const t=lH(e),r=(()=>{const n=` cursor: -webkit-grab; cursor: grab; - `;return{selector:t(Cl.contextId),styles:{always:` + `;return{selector:t(Al.contextId),styles:{always:` -webkit-touch-callout: none; -webkit-tap-highlight-color: rgba(0,0,0,0); touch-action: manipulation; - `,resting:n,dragging:KU,dropAnimating:n}}})(),i=(()=>{const n=` - transition: ${ku.outOfTheWay}; - `;return{selector:t(B0.contextId),styles:{dragging:n,dropAnimating:n,userCancel:n}}})(),u={selector:t(XU.contextId),styles:{always:"overflow-anchor: none;"}},a=[i,r,u,{selector:"body",styles:{dragging:` + `,resting:n,dragging:sH,dropAnimating:n}}})(),i=(()=>{const n=` + transition: ${Cu.outOfTheWay}; + `;return{selector:t(W0.contextId),styles:{dragging:n,dropAnimating:n,userCancel:n}}})(),c={selector:t(oH.contextId),styles:{always:"overflow-anchor: none;"}},a=[i,r,c,{selector:"body",styles:{dragging:` cursor: grabbing; cursor: -webkit-grabbing; user-select: none; @@ -252,54 +252,54 @@ ${L.current.stack} -moz-user-select: none; -ms-user-select: none; overflow-anchor: none; - `}}];return{always:Is(a,"always"),resting:Is(a,"resting"),dragging:Is(a,"dragging"),dropAnimating:Is(a,"dropAnimating"),userCancel:Is(a,"userCancel")}};const QU=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?$e.useLayoutEffect:$e.useEffect;var Ia=QU;const _m=()=>{const e=document.querySelector("head");return e||un(),e},d3=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function eH(e,t){const r=Xn(()=>JU(e),[e]),i=$e.useRef(null),u=$e.useRef(null),o=Cn(ea(c=>{const d=u.current;d||un(),d.textContent=c}),[]),a=Cn(c=>{const d=i.current;d||un(),d.textContent=c},[]);Ia(()=>{!i.current&&!u.current||un();const c=d3(t),d=d3(t);return i.current=c,u.current=d,c.setAttribute(`${Sl}-always`,e),d.setAttribute(`${Sl}-dynamic`,e),_m().appendChild(c),_m().appendChild(d),a(r.always),o(r.resting),()=>{const h=p=>{const m=p.current;m||un(),_m().removeChild(m),p.current=null};h(i),h(u)}},[t,a,o,r.always,r.resting,e]);const n=Cn(()=>o(r.dragging),[o,r.dragging]),l=Cn(c=>{if(c==="DROP"){o(r.dropAnimating);return}o(r.userCancel)},[o,r.dropAnimating,r.userCancel]),f=Cn(()=>{u.current&&o(r.resting)},[o,r.resting]);return Xn(()=>({dragging:n,dropping:l,resting:f}),[n,l,f])}function BC(e,t){return Array.from(e.querySelectorAll(t))}var zC=e=>{var t;return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)||window};function Gd(e){return e instanceof zC(e).HTMLElement}function tH(e,t){const r=`[${Cl.contextId}="${e}"]`,i=BC(document,r);if(!i.length)return null;const u=i.find(o=>o.getAttribute(Cl.draggableId)===t);return!u||!Gd(u)?null:u}function nH(e){const t=$e.useRef({}),r=$e.useRef(null),i=$e.useRef(null),u=$e.useRef(!1),o=Cn(function(d,h){const p={id:d,focus:h};return t.current[d]=p,function(){const y=t.current;y[d]!==p&&delete y[d]}},[]),a=Cn(function(d){const h=tH(e,d);h&&h!==document.activeElement&&h.focus()},[e]),n=Cn(function(d,h){r.current===d&&(r.current=h)},[]),l=Cn(function(){i.current||u.current&&(i.current=requestAnimationFrame(()=>{i.current=null;const d=r.current;d&&a(d)}))},[a]),f=Cn(function(d){r.current=null;const h=document.activeElement;h&&h.getAttribute(Cl.draggableId)===d&&(r.current=d)},[]);return Ia(()=>(u.current=!0,function(){u.current=!1;const d=i.current;d&&cancelAnimationFrame(d)}),[]),Xn(()=>({register:o,tryRecordFocus:f,tryRestoreFocusRecorded:l,tryShiftRecord:n}),[o,f,l,n])}function rH(){const e={draggables:{},droppables:{}},t=[];function r(c){return t.push(c),function(){const h=t.indexOf(c);h!==-1&&t.splice(h,1)}}function i(c){t.length&&t.forEach(d=>d(c))}function u(c){return e.draggables[c]||null}function o(c){const d=u(c);return d||un(),d}const a={register:c=>{e.draggables[c.descriptor.id]=c,i({type:"ADDITION",value:c})},update:(c,d)=>{const h=e.draggables[d.descriptor.id];h&&h.uniqueId===c.uniqueId&&(delete e.draggables[d.descriptor.id],e.draggables[c.descriptor.id]=c)},unregister:c=>{const d=c.descriptor.id,h=u(d);h&&c.uniqueId===h.uniqueId&&(delete e.draggables[d],e.droppables[c.descriptor.droppableId]&&i({type:"REMOVAL",value:c}))},getById:o,findById:u,exists:c=>!!u(c),getAllByType:c=>Object.values(e.draggables).filter(d=>d.descriptor.type===c)};function n(c){return e.droppables[c]||null}function l(c){const d=n(c);return d||un(),d}const f={register:c=>{e.droppables[c.descriptor.id]=c},unregister:c=>{const d=n(c.descriptor.id);d&&c.uniqueId===d.uniqueId&&delete e.droppables[c.descriptor.id]},getById:l,findById:n,exists:c=>!!n(c),getAllByType:c=>Object.values(e.droppables).filter(d=>d.descriptor.type===c)};function s(){e.draggables={},e.droppables={},t.length=0}return{draggable:a,droppable:f,subscribe:r,clean:s}}function aH(){const e=Xn(rH,[]);return $e.useEffect(()=>function(){et.version.startsWith("16")||et.version.startsWith("17")?requestAnimationFrame(e.clean):e.clean()},[e]),e}var m1=et.createContext(null),qf=()=>{const e=document.body;return e||un(),e};const iH={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};var oH=iH;const lH=e=>`rfd-announcement-${e}`;function sH(e){const t=Xn(()=>lH(e),[e]),r=$e.useRef(null);return $e.useEffect(function(){const o=document.createElement("div");return r.current=o,o.id=t,o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true"),Gt(o.style,oH),qf().appendChild(o),function(){setTimeout(function(){const l=qf();l.contains(o)&&l.removeChild(o),o===r.current&&(r.current=null)})}},[t]),Cn(u=>{const o=r.current;if(o){o.textContent=u;return}},[])}let qC=0;const WC={separator:"::"};function uH(){qC=0}function cH(e,t){return t===void 0&&(t=WC),Xn(()=>`${e}${t.separator}${qC++}`,[t.separator,e])}function fH(e,t){t===void 0&&(t=WC);const r=et.useId();return Xn(()=>`${e}${t.separator}${r}`,[t.separator,e,r])}var v1="useId"in et?fH:cH;function dH(e){let{contextId:t,uniqueId:r}=e;return`rfd-hidden-text-${t}-${r}`}function hH(e){let{contextId:t,text:r}=e;const i=v1("hidden-text",{separator:"-"}),u=Xn(()=>dH({contextId:t,uniqueId:i}),[i,t]);return $e.useEffect(function(){const a=document.createElement("div");return a.id=u,a.textContent=r,a.style.display="none",qf().appendChild(a),function(){const l=qf();l.contains(a)&&l.removeChild(a)}},[u,r]),u}var Xd=et.createContext(null);function UC(e){const t=$e.useRef(e);return $e.useEffect(()=>{t.current=e}),t}function pH(){let e=null;function t(){return!!e}function r(a){return a===e}function i(a){e&&un();const n={abandon:a};return e=n,n}function u(){e||un(),e=null}function o(){e&&(e.abandon(),u())}return{isClaimed:t,isActive:r,claim:i,release:u,tryAbandon:o}}function Iu(e){return e.phase==="IDLE"||e.phase==="DROP_ANIMATING"?!1:e.isDragging}const gH=9,mH=13,y1=27,HC=32,vH=33,yH=34,bH=35,xH=36,wH=37,_H=38,TH=39,kH=40,MH={[mH]:!0,[gH]:!0};var VC=e=>{MH[e.keyCode]&&e.preventDefault()};const SH=(()=>{const e="visibilitychange";return typeof document>"u"?e:[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find(i=>`on${i}`in document)||e})();var Zd=SH;const YC=0,h3=5;function CH(e,t){return Math.abs(t.x-e.x)>=h3||Math.abs(t.y-e.y)>=h3}const p3={type:"IDLE"};function OH(e){let{cancel:t,completed:r,getPhase:i,setPhase:u}=e;return[{eventName:"mousemove",fn:o=>{const{button:a,clientX:n,clientY:l}=o;if(a!==YC)return;const f={x:n,y:l},s=i();if(s.type==="DRAGGING"){o.preventDefault(),s.actions.move(f);return}s.type!=="PENDING"&&un();const c=s.point;if(!CH(c,f))return;o.preventDefault();const d=s.actions.fluidLift(f);u({type:"DRAGGING",actions:d})}},{eventName:"mouseup",fn:o=>{const a=i();if(a.type!=="DRAGGING"){t();return}o.preventDefault(),a.actions.drop({shouldBlockNextClick:!0}),r()}},{eventName:"mousedown",fn:o=>{i().type==="DRAGGING"&&o.preventDefault(),t()}},{eventName:"keydown",fn:o=>{if(i().type==="PENDING"){t();return}if(o.keyCode===y1){o.preventDefault(),t();return}VC(o)}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{i().type==="PENDING"&&t()}},{eventName:"webkitmouseforcedown",fn:o=>{const a=i();if(a.type==="IDLE"&&un(),a.actions.shouldRespectForcePress()){t();return}o.preventDefault()}},{eventName:Zd,fn:t}]}function GC(e){const t=$e.useRef(p3),r=$e.useRef(Gi),i=Xn(()=>({eventName:"mousedown",fn:function(c){if(c.defaultPrevented||c.button!==YC||c.ctrlKey||c.metaKey||c.shiftKey||c.altKey)return;const d=e.findClosestDraggableId(c);if(!d)return;const h=e.tryGetLock(d,a,{sourceEvent:c});if(!h)return;c.preventDefault();const p={x:c.clientX,y:c.clientY};r.current(),f(h,p)}}),[e]),u=Xn(()=>({eventName:"webkitmouseforcewillbegin",fn:s=>{if(s.defaultPrevented)return;const c=e.findClosestDraggableId(s);if(!c)return;const d=e.findOptionsForDraggable(c);d&&(d.shouldRespectForcePress||e.canGetLock(c)&&s.preventDefault())}}),[e]),o=Cn(function(){const c={passive:!1,capture:!0};r.current=qa(window,[u,i],c)},[u,i]),a=Cn(()=>{t.current.type!=="IDLE"&&(t.current=p3,r.current(),o())},[o]),n=Cn(()=>{const s=t.current;a(),s.type==="DRAGGING"&&s.actions.cancel({shouldBlockNextClick:!0}),s.type==="PENDING"&&s.actions.abort()},[a]),l=Cn(function(){const c={capture:!0,passive:!1},d=OH({cancel:n,completed:a,getPhase:()=>t.current,setPhase:h=>{t.current=h}});r.current=qa(window,d,c)},[n,a]),f=Cn(function(c,d){t.current.type!=="IDLE"&&un(),t.current={type:"PENDING",point:d,actions:c},l()},[l]);Ia(function(){return o(),function(){r.current()}},[o])}function AH(){}const PH={[yH]:!0,[vH]:!0,[xH]:!0,[bH]:!0};function DH(e,t){function r(){t(),e.cancel()}function i(){t(),e.drop()}return[{eventName:"keydown",fn:u=>{if(u.keyCode===y1){u.preventDefault(),r();return}if(u.keyCode===HC){u.preventDefault(),i();return}if(u.keyCode===kH){u.preventDefault(),e.moveDown();return}if(u.keyCode===_H){u.preventDefault(),e.moveUp();return}if(u.keyCode===TH){u.preventDefault(),e.moveRight();return}if(u.keyCode===wH){u.preventDefault(),e.moveLeft();return}if(PH[u.keyCode]){u.preventDefault();return}VC(u)}},{eventName:"mousedown",fn:r},{eventName:"mouseup",fn:r},{eventName:"click",fn:r},{eventName:"touchstart",fn:r},{eventName:"resize",fn:r},{eventName:"wheel",fn:r,options:{passive:!0}},{eventName:Zd,fn:r}]}function XC(e){const t=$e.useRef(AH),r=Xn(()=>({eventName:"keydown",fn:function(o){if(o.defaultPrevented||o.keyCode!==HC)return;const a=e.findClosestDraggableId(o);if(!a)return;const n=e.tryGetLock(a,s,{sourceEvent:o});if(!n)return;o.preventDefault();let l=!0;const f=n.snapLift();t.current();function s(){l||un(),l=!1,t.current(),i()}t.current=qa(window,DH(f,s),{capture:!0,passive:!1})}}),[e]),i=Cn(function(){const o={passive:!1,capture:!0};t.current=qa(window,[r],o)},[r]);Ia(function(){return i(),function(){t.current()}},[i])}const Tm={type:"IDLE"},EH=120,RH=.15;function LH(e){let{cancel:t,getPhase:r}=e;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:i=>{i.preventDefault()}},{eventName:"keydown",fn:i=>{if(r().type!=="DRAGGING"){t();return}i.keyCode===y1&&i.preventDefault(),t()}},{eventName:Zd,fn:t}]}function IH(e){let{cancel:t,completed:r,getPhase:i}=e;return[{eventName:"touchmove",options:{capture:!1},fn:u=>{const o=i();if(o.type!=="DRAGGING"){t();return}o.hasMoved=!0;const{clientX:a,clientY:n}=u.touches[0],l={x:a,y:n};u.preventDefault(),o.actions.move(l)}},{eventName:"touchend",fn:u=>{const o=i();if(o.type!=="DRAGGING"){t();return}u.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),r()}},{eventName:"touchcancel",fn:u=>{if(i().type!=="DRAGGING"){t();return}u.preventDefault(),t()}},{eventName:"touchforcechange",fn:u=>{const o=i();o.type==="IDLE"&&un();const a=u.touches[0];if(!a||!(a.force>=RH))return;const l=o.actions.shouldRespectForcePress();if(o.type==="PENDING"){l&&t();return}if(l){if(o.hasMoved){u.preventDefault();return}t();return}u.preventDefault()}},{eventName:Zd,fn:t}]}function ZC(e){const t=$e.useRef(Tm),r=$e.useRef(Gi),i=Cn(function(){return t.current},[]),u=Cn(function(h){t.current=h},[]),o=Xn(()=>({eventName:"touchstart",fn:function(h){if(h.defaultPrevented)return;const p=e.findClosestDraggableId(h);if(!p)return;const m=e.tryGetLock(p,n,{sourceEvent:h});if(!m)return;const y=h.touches[0],{clientX:v,clientY:g}=y,b={x:v,y:g};r.current(),c(m,b)}}),[e]),a=Cn(function(){const h={capture:!0,passive:!1};r.current=qa(window,[o],h)},[o]),n=Cn(()=>{const d=t.current;d.type!=="IDLE"&&(d.type==="PENDING"&&clearTimeout(d.longPressTimerId),u(Tm),r.current(),a())},[a,u]),l=Cn(()=>{const d=t.current;n(),d.type==="DRAGGING"&&d.actions.cancel({shouldBlockNextClick:!0}),d.type==="PENDING"&&d.actions.abort()},[n]),f=Cn(function(){const h={capture:!0,passive:!1},p={cancel:l,completed:n,getPhase:i},m=qa(window,IH(p),h),y=qa(window,LH(p),h);r.current=function(){m(),y()}},[l,i,n]),s=Cn(function(){const h=i();h.type!=="PENDING"&&un();const p=h.actions.fluidLift(h.point);u({type:"DRAGGING",actions:p,hasMoved:!1})},[i,u]),c=Cn(function(h,p){i().type!=="IDLE"&&un();const m=setTimeout(s,EH);u({type:"PENDING",point:p,actions:h,longPressTimerId:m}),f()},[f,i,u,s]);Ia(function(){return a(),function(){r.current();const p=i();p.type==="PENDING"&&(clearTimeout(p.longPressTimerId),u(Tm))}},[i,a,u]),Ia(function(){return qa(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}const FH=["input","button","textarea","select","option","optgroup","video","audio"];function KC(e,t){if(t==null)return!1;if(FH.includes(t.tagName.toLowerCase()))return!0;const i=t.getAttribute("contenteditable");return i==="true"||i===""?!0:t===e?!1:KC(e,t.parentElement)}function NH(e,t){const r=t.target;return Gd(r)?KC(e,r):!1}var jH=e=>Ja(e.getBoundingClientRect()).center;function $H(e){return e instanceof zC(e).Element}const BH=(()=>{const e="matches";return typeof document>"u"?e:[e,"msMatchesSelector","webkitMatchesSelector"].find(i=>i in Element.prototype)||e})();function JC(e,t){return e==null?null:e[BH](t)?e:JC(e.parentElement,t)}function zH(e,t){return e.closest?e.closest(t):JC(e,t)}function qH(e){return`[${Cl.contextId}="${e}"]`}function WH(e,t){const r=t.target;if(!$H(r))return null;const i=qH(e),u=zH(r,i);return!u||!Gd(u)?null:u}function UH(e,t){const r=WH(e,t);return r?r.getAttribute(Cl.draggableId):null}function HH(e,t){const r=`[${B0.contextId}="${e}"]`,u=BC(document,r).find(o=>o.getAttribute(B0.id)===t);return!u||!Gd(u)?null:u}function VH(e){e.preventDefault()}function Yc(e){let{expected:t,phase:r,isLockActive:i,shouldWarn:u}=e;return!(!i()||t!==r)}function QC(e){let{lockAPI:t,store:r,registry:i,draggableId:u}=e;if(t.isClaimed())return!1;const o=i.draggable.findById(u);return!(!o||!o.options.isEnabled||!FC(r.getState(),u))}function YH(e){let{lockAPI:t,contextId:r,store:i,registry:u,draggableId:o,forceSensorStop:a,sourceEvent:n}=e;if(!QC({lockAPI:t,store:i,registry:u,draggableId:o}))return null;const f=u.draggable.getById(o),s=HH(r,f.descriptor.id);if(!s||n&&!f.options.canDragInteractiveElements&&NH(s,n))return null;const c=t.claim(a||Gi);let d="PRE_DRAG";function h(){return f.options.shouldRespectForcePress}function p(){return t.isActive(c)}function m(w,k){Yc({expected:w,phase:d,isLockActive:p,shouldWarn:!0})&&i.dispatch(k())}const y=m.bind(null,"DRAGGING");function v(w){function k(){t.release(),d="COMPLETED"}d!=="PRE_DRAG"&&(k(),un()),i.dispatch(LW(w.liftActionArgs)),d="DRAGGING";function T(M,S){if(S===void 0&&(S={shouldBlockNextClick:!1}),w.cleanup(),S.shouldBlockNextClick){const C=qa(window,[{eventName:"click",fn:VH,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(C)}k(),i.dispatch(OC({reason:M}))}return{isActive:()=>Yc({expected:"DRAGGING",phase:d,isLockActive:p,shouldWarn:!1}),shouldRespectForcePress:h,drop:M=>T("DROP",M),cancel:M=>T("CANCEL",M),...w.actions}}function g(w){const k=Au(M=>{y(()=>CC({client:M}))});return{...v({liftActionArgs:{id:o,clientSelection:w,movementMode:"FLUID"},cleanup:()=>k.cancel(),actions:{move:k}}),move:k}}function b(){const w={moveUp:()=>y(WW),moveRight:()=>y(HW),moveDown:()=>y(UW),moveLeft:()=>y(VW)};return v({liftActionArgs:{id:o,clientSelection:jH(s),movementMode:"SNAP"},cleanup:Gi,actions:w})}function x(){Yc({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!0})&&t.release()}return{isActive:()=>Yc({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!1}),shouldRespectForcePress:h,fluidLift:g,snapLift:b,abort:x}}const GH=[GC,XC,ZC];function XH(e){let{contextId:t,store:r,registry:i,customSensors:u,enableDefaultSensors:o}=e;const a=[...o?GH:[],...u||[]],n=$e.useState(()=>pH())[0],l=Cn(function(v,g){Iu(v)&&!Iu(g)&&n.tryAbandon()},[n]);Ia(function(){let v=r.getState();return r.subscribe(()=>{const b=r.getState();l(v,b),v=b})},[n,r,l]),Ia(()=>n.tryAbandon,[n.tryAbandon]);const f=Cn(y=>QC({lockAPI:n,registry:i,store:r,draggableId:y}),[n,i,r]),s=Cn((y,v,g)=>YH({lockAPI:n,registry:i,contextId:t,store:r,draggableId:y,forceSensorStop:v||null,sourceEvent:g&&g.sourceEvent?g.sourceEvent:null}),[t,n,i,r]),c=Cn(y=>UH(t,y),[t]),d=Cn(y=>{const v=i.draggable.findById(y);return v?v.options:null},[i.draggable]),h=Cn(function(){n.isClaimed()&&(n.tryAbandon(),r.getState().phase!=="IDLE"&&r.dispatch(u1()))},[n,r]),p=Cn(()=>n.isClaimed(),[n]),m=Xn(()=>({canGetLock:f,tryGetLock:s,findClosestDraggableId:c,findOptionsForDraggable:d,tryReleaseLock:h,isLockClaimed:p}),[f,s,c,d,h,p]);for(let y=0;y({onBeforeCapture:t=>{const r=()=>{e.onBeforeCapture&&e.onBeforeCapture(t)};et.version.startsWith("16")||et.version.startsWith("17")?r():hy.flushSync(r)},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}),KH=e=>({...Lu,...e.autoScrollerOptions,durationDampening:{...Lu.durationDampening,...e.autoScrollerOptions}});function Fs(e){return e.current||un(),e.current}function JH(e){const{contextId:t,setCallbacks:r,sensors:i,nonce:u,dragHandleUsageInstructions:o}=e,a=$e.useRef(null),n=UC(e),l=Cn(()=>ZH(n.current),[n]),f=Cn(()=>KH(n.current),[n]),s=sH(t),c=hH({contextId:t,text:o}),d=eH(t,u),h=Cn(S=>{Fs(a).dispatch(S)},[]),p=Xn(()=>q_({publishWhileDragging:FW,updateDroppableScroll:jW,updateDroppableIsEnabled:$W,updateDroppableIsCombineEnabled:BW,collectionStarting:NW},h),[h]),m=aH(),y=Xn(()=>DU(m,p),[m,p]),v=Xn(()=>GU({scrollWindow:EU,scrollDroppable:y.scrollDroppable,getAutoScrollerOptions:f,...q_({move:CC},h)}),[y.scrollDroppable,h,f]),g=nH(t),b=Xn(()=>CU({announce:s,autoScroller:v,dimensionMarshal:y,focusMarshal:g,getResponders:l,styleMarshal:d}),[s,v,y,g,l,d]);a.current=b;const x=Cn(()=>{const S=Fs(a);S.getState().phase!=="IDLE"&&S.dispatch(u1())},[]),_=Cn(()=>{const S=Fs(a).getState();return S.phase==="DROP_ANIMATING"?!0:S.phase==="IDLE"?!1:S.isDragging},[]),w=Xn(()=>({isDragging:_,tryAbort:x}),[_,x]);r(w);const k=Cn(S=>FC(Fs(a).getState(),S),[]),T=Cn(()=>go(Fs(a).getState()),[]),M=Xn(()=>({marshal:y,focus:g,contextId:t,canLift:k,isMovementAllowed:T,dragHandleUsageInstructionsId:c,registry:m}),[t,y,c,g,k,T,m]);return XH({contextId:t,store:b,registry:m,customSensors:i||null,enableDefaultSensors:e.enableDefaultSensors!==!1}),$e.useEffect(()=>x,[x]),et.createElement(Xd.Provider,{value:M},et.createElement(hq,{context:m1,store:b},e.children))}let e6=0;function QH(){e6=0}function eV(){return Xn(()=>`${e6++}`,[])}function tV(){return et.useId()}var nV="useId"in et?tV:eV;function rV(){"useId"in et||(QH(),uH())}function aV(e){const t=nV(),r=e.dragHandleUsageInstructions||df.dragHandleUsageInstructions;return et.createElement(_q,null,i=>et.createElement(JH,{nonce:e.nonce,contextId:t,setCallbacks:i,dragHandleUsageInstructions:r,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children))}const g3={dragging:5e3,dropAnimating:4500},iV=(e,t)=>t?ku.drop(t.duration):e?ku.snap:ku.fluid,oV=(e,t)=>{if(e)return t?Ru.opacity.drop:Ru.opacity.combining},lV=e=>e.forceShouldAnimate!=null?e.forceShouldAnimate:e.mode==="SNAP";function sV(e){const r=e.dimension.client,{offset:i,combineWith:u,dropping:o}=e,a=!!u,n=lV(e),l=!!o,f=l?j0.drop(i,a):j0.moveTo(i);return{position:"fixed",top:r.marginBox.top,left:r.marginBox.left,boxSizing:"border-box",width:r.borderBox.width,height:r.borderBox.height,transition:iV(n,o),transform:f,opacity:oV(a,l),zIndex:l?g3.dropAnimating:g3.dragging,pointerEvents:"none"}}function uV(e){return{transform:j0.moveTo(e.offset),transition:e.shouldAnimateDisplacement?void 0:"none"}}function cV(e){return e.type==="DRAGGING"?sV(e):uV(e)}function fV(e,t,r){r===void 0&&(r=ta);const i=window.getComputedStyle(t),u=t.getBoundingClientRect(),o=nC(u,i),a=jf(o,r),n={client:o,tagName:t.tagName.toLowerCase(),display:i.display},l={x:o.marginBox.width,y:o.marginBox.height};return{descriptor:e,placeholder:n,displaceBy:l,client:o,page:a}}function dV(e){const t=v1("draggable"),{descriptor:r,registry:i,getDraggableRef:u,canDragInteractiveElements:o,shouldRespectForcePress:a,isEnabled:n}=e,l=Xn(()=>({canDragInteractiveElements:o,shouldRespectForcePress:a,isEnabled:n}),[o,n,a]),f=Cn(h=>{const p=u();return p||un(),fV(r,p,h)},[r,u]),s=Xn(()=>({uniqueId:t,descriptor:r,options:l,getDimension:f}),[r,f,l,t]),c=$e.useRef(s),d=$e.useRef(!0);Ia(()=>(i.draggable.register(c.current),()=>i.draggable.unregister(c.current)),[i.draggable]),Ia(()=>{if(d.current){d.current=!1;return}const h=c.current;c.current=s,i.draggable.update(s,h)},[s,i.draggable])}var b1=et.createContext(null);function Wf(e){const t=$e.useContext(e);return t||un(),t}function hV(e){e.preventDefault()}const pV=e=>{const t=$e.useRef(null),r=Cn(function(w){w===void 0&&(w=null),t.current=w},[]),i=Cn(()=>t.current,[]),{contextId:u,dragHandleUsageInstructionsId:o,registry:a}=Wf(Xd),{type:n,droppableId:l}=Wf(b1),f=Xn(()=>({id:e.draggableId,index:e.index,type:n,droppableId:l}),[e.draggableId,e.index,n,l]),{children:s,draggableId:c,isEnabled:d,shouldRespectForcePress:h,canDragInteractiveElements:p,isClone:m,mapped:y,dropAnimationFinished:v}=e;if(!m){const w=Xn(()=>({descriptor:f,registry:a,getDraggableRef:i,canDragInteractiveElements:p,shouldRespectForcePress:h,isEnabled:d}),[f,a,i,p,h,d]);dV(w)}const g=Xn(()=>d?{tabIndex:0,role:"button","aria-describedby":o,"data-rfd-drag-handle-draggable-id":c,"data-rfd-drag-handle-context-id":u,draggable:!1,onDragStart:hV}:null,[u,o,c,d]),b=Cn(w=>{y.type==="DRAGGING"&&y.dropping&&w.propertyName==="transform"&&(et.version.startsWith("16")||et.version.startsWith("17")?v():hy.flushSync(v))},[v,y]),x=Xn(()=>{const w=cV(y),k=y.type==="DRAGGING"&&y.dropping?b:void 0;return{innerRef:r,draggableProps:{"data-rfd-draggable-context-id":u,"data-rfd-draggable-id":c,style:w,onTransitionEnd:k},dragHandleProps:g}},[u,g,c,y,b,r]),_=Xn(()=>({draggableId:f.id,type:f.type,source:{index:f.index,droppableId:f.droppableId}}),[f.droppableId,f.id,f.index,f.type]);return et.createElement(et.Fragment,null,s(x,y.snapshot,_))};var gV=pV,t6=(e,t)=>e===t,n6=e=>{const{combine:t,destination:r}=e;return r?r.droppableId:t?t.droppableId:null};const mV=e=>e.combine?e.combine.draggableId:null,vV=e=>e.at&&e.at.type==="COMBINE"?e.at.combine.draggableId:null;function yV(){const e=ea((u,o)=>({x:u,y:o})),t=ea(function(u,o,a,n,l){return a===void 0&&(a=null),n===void 0&&(n=null),l===void 0&&(l=null),{isDragging:!0,isClone:o,isDropAnimating:!!l,dropAnimation:l,mode:u,draggingOver:a,combineWith:n,combineTargetFor:null}}),r=ea(function(u,o,a,n,l,f,s){return l===void 0&&(l=null),f===void 0&&(f=null),s===void 0&&(s=null),{mapped:{type:"DRAGGING",dropping:null,draggingOver:l,combineWith:f,mode:o,offset:u,dimension:a,forceShouldAnimate:s,snapshot:t(o,n,l,f,null)}}});return(u,o)=>{if(Iu(u)){if(u.critical.draggable.id!==o.draggableId)return null;const a=u.current.client.offset,n=u.dimensions.draggables[o.draggableId],l=La(u.impact),f=vV(u.impact),s=u.forceShouldAnimate;return r(e(a.x,a.y),u.movementMode,n,o.isClone,l,f,s)}if(u.phase==="DROP_ANIMATING"){const a=u.completed;if(a.result.draggableId!==o.draggableId)return null;const n=o.isClone,l=u.dimensions.draggables[o.draggableId],f=a.result,s=f.mode,c=n6(f),d=mV(f),p={duration:u.dropDuration,curve:f1.drop,moveTo:u.newHomeClientOffset,opacity:d?Ru.opacity.drop:null,scale:d?Ru.scale.drop:null};return{mapped:{type:"DRAGGING",offset:u.newHomeClientOffset,dimension:l,dropping:p,draggingOver:c,combineWith:d,mode:s,forceShouldAnimate:null,snapshot:t(s,n,c,d,p)}}}return null}}function r6(e){return e===void 0&&(e=null),{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const bV={mapped:{type:"SECONDARY",offset:ta,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:r6(null)}};function xV(){const e=ea((a,n)=>({x:a,y:n})),t=ea(r6),r=ea(function(a,n,l){return n===void 0&&(n=null),{mapped:{type:"SECONDARY",offset:a,combineTargetFor:n,shouldAnimateDisplacement:l,snapshot:t(n)}}}),i=a=>a?r(ta,a,!0):null,u=(a,n,l,f)=>{const s=l.displaced.visible[a],c=!!(f.inVirtualList&&f.effected[a]),d=Hd(l),h=d&&d.draggableId===a?n:null;if(!s){if(!c)return i(h);if(l.displaced.invisible[a])return null;const y=zl(f.displacedBy.point),v=e(y.x,y.y);return r(v,h,!0)}if(c)return i(h);const p=l.displacedBy.point,m=e(p.x,p.y);return r(m,h,s.shouldAnimate)};return(a,n)=>{if(Iu(a))return a.critical.draggable.id===n.draggableId?null:u(n.draggableId,a.critical.draggable.id,a.impact,a.afterCritical);if(a.phase==="DROP_ANIMATING"){const l=a.completed;return l.result.draggableId===n.draggableId?null:u(n.draggableId,l.result.draggableId,l.impact,l.afterCritical)}return null}}const wV=()=>{const e=yV(),t=xV();return(i,u)=>e(i,u)||t(i,u)||bV},_V={dropAnimationFinished:AC},TV=eC(wV,_V,null,{context:m1,areStatePropsEqual:t6})(gV);var kV=TV;function a6(e){return Wf(b1).isUsingCloneFor===e.draggableId&&!e.isClone?null:et.createElement(kV,e)}function MV(e){const t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,r=!!e.disableInteractiveElementBlocking,i=!!e.shouldRespectForcePress;return et.createElement(a6,Gt({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:i}))}const i6=e=>t=>e===t,SV=i6("scroll"),CV=i6("auto"),m3=(e,t)=>t(e.overflowX)||t(e.overflowY),OV=e=>{const t=window.getComputedStyle(e),r={overflowX:t.overflowX,overflowY:t.overflowY};return m3(r,SV)||m3(r,CV)},AV=()=>!1,o6=e=>e==null?null:e===document.body?AV()?e:null:e===document.documentElement?null:OV(e)?e:o6(e.parentElement);var PV=o6,z0=e=>({x:e.scrollLeft,y:e.scrollTop});const l6=e=>e?window.getComputedStyle(e).position==="fixed"?!0:l6(e.parentElement):!1;var DV=e=>{const t=PV(e),r=l6(e);return{closestScrollable:t,isFixedOnPage:r}},EV=e=>{let{descriptor:t,isEnabled:r,isCombineEnabled:i,isFixedOnPage:u,direction:o,client:a,page:n,closest:l}=e;const f=(()=>{if(!l)return null;const{scrollSize:h,client:p}=l,m=RC({scrollHeight:h.scrollHeight,scrollWidth:h.scrollWidth,height:p.paddingBox.height,width:p.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:p,scrollSize:h,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:m,diff:{value:ta,displacement:ta}}}})(),s=o==="vertical"?a1:dC,c=Ml({page:n,withPlaceholder:null,axis:s,frame:f});return{descriptor:t,isCombineEnabled:i,isFixedOnPage:u,axis:s,isEnabled:r,client:a,page:n,frame:f,subject:c}};const RV=(e,t)=>{const r=rC(e);if(!t||e!==t)return r;const i=r.paddingBox.top-t.scrollTop,u=r.paddingBox.left-t.scrollLeft,o=i+t.scrollHeight,a=u+t.scrollWidth,l=e1({top:i,right:a,bottom:o,left:u},r.border);return t1({borderBox:l,margin:r.margin,border:r.border,padding:r.padding})};var LV=e=>{let{ref:t,descriptor:r,env:i,windowScroll:u,direction:o,isDropDisabled:a,isCombineEnabled:n,shouldClipSubject:l}=e;const f=i.closestScrollable,s=RV(t,f),c=jf(s,u),d=(()=>{if(!f)return null;const p=rC(f),m={scrollHeight:f.scrollHeight,scrollWidth:f.scrollWidth};return{client:p,page:jf(p,u),scroll:z0(f),scrollSize:m,shouldClipSubject:l}})();return EV({descriptor:r,isEnabled:!a,isCombineEnabled:n,isFixedOnPage:i.isFixedOnPage,direction:o,client:s,page:c,closest:d})};const IV={passive:!1},FV={passive:!0};var v3=e=>e.shouldPublishImmediately?IV:FV;const Gc=e=>e&&e.env.closestScrollable||null;function NV(e){const t=$e.useRef(null),r=Wf(Xd),i=v1("droppable"),{registry:u,marshal:o}=r,a=UC(e),n=Xn(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),l=$e.useRef(n),f=Xn(()=>ea((x,_)=>{t.current||un();const w={x,y:_};o.updateDroppableScroll(n.id,w)}),[n.id,o]),s=Cn(()=>{const x=t.current;return!x||!x.env.closestScrollable?ta:z0(x.env.closestScrollable)},[]),c=Cn(()=>{const x=s();f(x.x,x.y)},[s,f]),d=Xn(()=>Au(c),[c]),h=Cn(()=>{const x=t.current,_=Gc(x);if(x&&_||un(),x.scrollOptions.shouldPublishImmediately){c();return}d()},[d,c]),p=Cn((x,_)=>{t.current&&un();const w=a.current,k=w.getDroppableRef();k||un();const T=DV(k),M={ref:k,descriptor:n,env:T,scrollOptions:_};t.current=M;const S=LV({ref:k,descriptor:n,env:T,windowScroll:x,direction:w.direction,isDropDisabled:w.isDropDisabled,isCombineEnabled:w.isCombineEnabled,shouldClipSubject:!w.ignoreContainerClipping}),C=T.closestScrollable;return C&&(C.setAttribute(f3.contextId,r.contextId),C.addEventListener("scroll",h,v3(M.scrollOptions))),S},[r.contextId,n,h,a]),m=Cn(()=>{const x=t.current,_=Gc(x);return x&&_||un(),z0(_)},[]),y=Cn(()=>{const x=t.current;x||un();const _=Gc(x);t.current=null,_&&(d.cancel(),_.removeAttribute(f3.contextId),_.removeEventListener("scroll",h,v3(x.scrollOptions)))},[h,d]),v=Cn(x=>{const _=t.current;_||un();const w=Gc(_);w||un(),w.scrollTop+=x.y,w.scrollLeft+=x.x},[]),g=Xn(()=>({getDimensionAndWatchScroll:p,getScrollWhileDragging:m,dragStopped:y,scroll:v}),[y,p,m,v]),b=Xn(()=>({uniqueId:i,descriptor:n,callbacks:g}),[g,n,i]);Ia(()=>(l.current=b.descriptor,u.droppable.register(b),()=>{t.current&&y(),u.droppable.unregister(b)}),[g,n,y,b,o,u.droppable]),Ia(()=>{t.current&&o.updateDroppableIsEnabled(l.current.id,!e.isDropDisabled)},[e.isDropDisabled,o]),Ia(()=>{t.current&&o.updateDroppableIsCombineEnabled(l.current.id,e.isCombineEnabled)},[e.isCombineEnabled,o])}function km(){}const y3={width:0,height:0,margin:Aq},jV=e=>{let{isAnimatingOpenOnMount:t,placeholder:r,animate:i}=e;return t||i==="close"?y3:{height:r.client.borderBox.height,width:r.client.borderBox.width,margin:r.client.margin}},$V=e=>{let{isAnimatingOpenOnMount:t,placeholder:r,animate:i}=e;const u=jV({isAnimatingOpenOnMount:t,placeholder:r,animate:i});return{display:r.display,boxSizing:"border-box",width:u.width,height:u.height,marginTop:u.margin.top,marginRight:u.margin.right,marginBottom:u.margin.bottom,marginLeft:u.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:i!=="none"?ku.placeholder:null}},BV=e=>{const t=$e.useRef(null),r=Cn(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]),{animate:i,onTransitionEnd:u,onClose:o,contextId:a}=e,[n,l]=$e.useState(e.animate==="open");$e.useEffect(()=>n?i!=="open"?(r(),l(!1),km):t.current?km:(t.current=setTimeout(()=>{t.current=null,l(!1)}),r):km,[i,n,r]);const f=Cn(c=>{c.propertyName==="height"&&(u(),i==="close"&&o())},[i,o,u]),s=$V({isAnimatingOpenOnMount:n,animate:e.animate,placeholder:e.placeholder});return et.createElement(e.placeholder.tagName,{style:s,"data-rfd-placeholder-context-id":a,onTransitionEnd:f,ref:e.innerRef})};var zV=et.memo(BV);class qV extends et.PureComponent{constructor(){super(...arguments),this.state={isVisible:!!this.props.on,data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{this.state.animate==="close"&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(t,r){return t.shouldAnimate?t.on?{isVisible:!0,data:t.on,animate:"open"}:r.isVisible?{isVisible:!0,data:r.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!t.on,data:t.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const t={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(t)}}const WV=e=>{const t=$e.useContext(Xd);t||un();const{contextId:r,isMovementAllowed:i}=t,u=$e.useRef(null),o=$e.useRef(null),{children:a,droppableId:n,type:l,mode:f,direction:s,ignoreContainerClipping:c,isDropDisabled:d,isCombineEnabled:h,snapshot:p,useClone:m,updateViewportMaxScroll:y,getContainerForClone:v}=e,g=Cn(()=>u.current,[]),b=Cn(function(C){C===void 0&&(C=null),u.current=C},[]);Cn(()=>o.current,[]);const x=Cn(function(C){C===void 0&&(C=null),o.current=C},[]),_=Cn(()=>{i()&&y({maxScroll:IC()})},[i,y]);NV({droppableId:n,type:l,mode:f,direction:s,isDropDisabled:d,isCombineEnabled:h,ignoreContainerClipping:c,getDroppableRef:g});const w=Xn(()=>et.createElement(qV,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},C=>{let{onClose:P,data:D,animate:O}=C;return et.createElement(zV,{placeholder:D,onClose:P,innerRef:x,animate:O,contextId:r,onTransitionEnd:_})}),[r,_,e.placeholder,e.shouldAnimatePlaceholder,x]),k=Xn(()=>({innerRef:b,placeholder:w,droppableProps:{"data-rfd-droppable-id":n,"data-rfd-droppable-context-id":r}}),[r,n,w,b]),T=m?m.dragging.draggableId:null,M=Xn(()=>({droppableId:n,type:l,isUsingCloneFor:T}),[n,T,l]);function S(){if(!m)return null;const{dragging:C,render:P}=m,D=et.createElement(a6,{draggableId:C.draggableId,index:C.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(O,R)=>P(O,R,C));return q9.createPortal(D,v())}return et.createElement(b1.Provider,{value:M},a(k,p),S())};var UV=WV;function HV(){return document.body||un(),document.body}const b3={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:HV},s6=e=>{let t={...e},r;for(r in b3)e[r]===void 0&&(t={...t,[r]:b3[r]});return t},Mm=(e,t)=>e===t.droppable.type,x3=(e,t)=>t.draggables[e.draggable.id],VV=()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},r=ea(o=>({draggableId:o.id,type:o.type,source:{index:o.index,droppableId:o.droppableId}})),i=ea((o,a,n,l,f,s)=>{const c=f.descriptor.id;if(f.descriptor.droppableId===o){const p=s?{render:s,dragging:r(f.descriptor)}:null,m={isDraggingOver:n,draggingOverWith:n?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:f.placeholder,shouldAnimatePlaceholder:!1,snapshot:m,useClone:p}}if(!a)return t;if(!l)return e;const h={isDraggingOver:n,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:f.placeholder,shouldAnimatePlaceholder:!0,snapshot:h,useClone:null}});return(o,a)=>{const n=s6(a),l=n.droppableId,f=n.type,s=!n.isDropDisabled,c=n.renderClone;if(Iu(o)){const d=o.critical;if(!Mm(f,d))return t;const h=x3(d,o.dimensions),p=La(o.impact)===l;return i(l,s,p,p,h,c)}if(o.phase==="DROP_ANIMATING"){const d=o.completed;if(!Mm(f,d.critical))return t;const h=x3(d.critical,o.dimensions);return i(l,s,n6(d.result)===l,La(d.impact)===l,h,c)}if(o.phase==="IDLE"&&o.completed&&!o.shouldFlush){const d=o.completed;if(!Mm(f,d.critical))return t;const h=La(d.impact)===l,p=!!(d.impact.at&&d.impact.at.type==="COMBINE"),m=d.critical.droppable.id===l;return h?p?e:t:m?e:t}return t}},YV={updateViewportMaxScroll:qW},GV=eC(VV,YV,(e,t,r)=>({...s6(r),...e,...t}),{context:m1,areStatePropsEqual:t6})(UV);var XV=GV;const ZV=Object.freeze(Object.defineProperty({__proto__:null,DragDropContext:aV,Draggable:MV,Droppable:XV,resetServerContext:rV,useKeyboardSensor:XC,useMouseSensor:GC,useTouchSensor:ZC},Symbol.toStringTag,{value:"Module"})),x1=qn(ZV);var w3;function KV(){return w3||(w3=1,function(e){var t=vn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(hr()),u=t(Bo),o=t(Jr()),a=t(V4),n=t(zz),l=t(Wd),f=t(Or),s=m($e),c=x1,d=Qa(),h=Ju();function p(x){if(typeof WeakMap!="function")return null;var _=new WeakMap,w=new WeakMap;return(p=function(T){return T?w:_})(x)}function m(x,_){if(x&&x.__esModule)return x;if(x===null||r(x)!=="object"&&typeof x!="function")return{default:x};var w=p(_);if(w&&w.has(x))return w.get(x);var k={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in x)if(M!=="default"&&Object.prototype.hasOwnProperty.call(x,M)){var S=T?Object.getOwnPropertyDescriptor(x,M):null;S&&(S.get||S.set)?Object.defineProperty(k,M,S):k[M]=x[M]}return k.default=x,w&&w.set(x,k),k}function y(x,_){var w=Object.keys(x);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(x);_&&(k=k.filter(function(T){return Object.getOwnPropertyDescriptor(x,T).enumerable})),w.push.apply(w,k)}return w}function v(x){for(var _=1;_0&&s.default.createElement(l.default,{variant:"caption",sx:{padding:1}},_.groupedBy),x.groupColumns.map(function(P,D){return s.default.createElement(c.Draggable,{key:P.tableData.id.toString(),draggableId:P.tableData.id.toString(),index:D},function(O,R){var F;return s.default.createElement(u.default,(0,i.default)({ref:O.innerRef},O.draggableProps,O.dragHandleProps,{sx:T(R.isDragging,O.draggableProps.style)}),s.default.createElement(n.default,(0,i.default)({},O.dragHandleProps,k.groupChipProps,{onClick:function(){return x.onSortChanged(P)},label:s.default.createElement(u.default,{sx:{display:"flex",alignItems:"center"}},s.default.createElement(u.default,{sx:{float:"left"}},P.title),P.tableData.groupSort&&s.default.createElement(w.SortArrow,{sx:{transition:"300ms ease all",transform:P.tableData.groupSort==="asc"?"rotate(-180deg)":"none",fontSize:18}})),sx:v({boxShadow:"none",textTransform:"none"},(F=k.groupChipProps)!==null&&F!==void 0?F:{}),onDelete:function(){return x.onGroupRemoved(P,D)}})))})}),x.groupColumns.length===0&&s.default.createElement(l.default,{variant:"caption",sx:{padding:1}},_.placeholder),S.placeholder)}))}g.defaultProps={},g.propTypes={forwardedRef:f.default.element,className:f.default.string,onSortChanged:f.default.func,onGroupRemoved:f.default.func,onGroupChange:f.default.func,persistentGroupingsId:f.default.string};var b=s.default.forwardRef(function(_,w){return s.default.createElement(g,(0,i.default)({},_,{forwardedRef:w}))});e.default=b}(pm)),pm}var Sm={},_3;function JV(){return _3||(_3=1,function(e){var t=vn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(hr()),i=t(Jr()),u=t(ao()),o=t($l()),a=t(gi),n=t(Ai),l=t(Bl),f=t(zo),s=t(Or),c=t($e),d=Qa();function h(v,g){var b=Object.keys(v);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(v);g&&(x=x.filter(function(_){return Object.getOwnPropertyDescriptor(v,_).enumerable})),b.push.apply(b,x)}return b}function p(v){for(var g=1;g0&&_++;var w=v.groups[v.level],k;v.groupData.isExpanded&&(v.groups.length>v.level+1?k=v.groupData.groups.map(function(j,N){return c.default.createElement(v.components.GroupRow,{actions:v.actions,key:j.value||""+N,columns:v.columns,components:v.components,detailPanel:v.detailPanel,getFieldValue:v.getFieldValue,groupData:j,groups:v.groups,level:v.level+1,path:[].concat((0,o.default)(v.path),[N]),onGroupExpandChanged:v.onGroupExpandChanged,onGroupSelected:v.onGroupSelected,onRowSelected:v.onRowSelected,onRowClick:v.onRowClick,onToggleDetailPanel:v.onToggleDetailPanel,onTreeExpandChanged:v.onTreeExpandChanged,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,hasAnyEditingRow:v.hasAnyEditingRow,isTreeData:v.isTreeData,cellEditable:v.cellEditable,onCellEditStarted:v.onCellEditStarted,onCellEditFinished:v.onCellEditFinished,scrollWidth:v.scrollWidth,treeDataMaxLevel:v.treeDataMaxLevel})}):k=v.groupData.data.map(function(j,N){return j.tableData.editing?c.default.createElement(v.components.EditRow,{columns:v.columns,components:v.components,data:j,path:[].concat((0,o.default)(v.path),[j.tableData.uuid]),localization:v.localization,key:N,mode:j.tableData.editing,isTreeData:v.isTreeData,detailPanel:v.detailPanel,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,getFieldValue:v.getFieldValue,onBulkEditRowChanged:v.onBulkEditRowChanged,scrollWidth:v.scrollWidth}):c.default.createElement(v.components.Row,{actions:v.actions,key:N,columns:v.columns,components:v.components,data:j,detailPanel:v.detailPanel,level:(v.level||0)+1,getFieldValue:v.getFieldValue,path:[].concat((0,o.default)(v.path),[j.tableData.uuid]),onRowSelected:v.onRowSelected,onRowClick:v.onRowClick,onToggleDetailPanel:v.onToggleDetailPanel,isTreeData:v.isTreeData,onTreeExpandChanged:v.onTreeExpandChanged,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,hasAnyEditingRow:v.hasAnyEditingRow,cellEditable:v.cellEditable,onCellEditStarted:v.onCellEditStarted,onCellEditFinished:v.onCellEditFinished,scrollWidth:v.scrollWidth,treeDataMaxLevel:v.treeDataMaxLevel})}));for(var T=[],M=0;M0&&A!==z,checked:A===z,onChange:function(N,E){return v.onGroupSelected&&v.onGroupSelected(E,v.groupData.path)},style:{marginRight:8}}),c.default.createElement("b",null,C,P)))),k)}m.defaultProps={columns:[],groups:[],level:0},m.propTypes={actions:s.default.array,columns:s.default.arrayOf(s.default.object),components:s.default.object,cellEditable:s.default.object,detailPanel:s.default.oneOfType([s.default.func,s.default.arrayOf(s.default.object)]),forwardedRef:s.default.element,getFieldValue:s.default.func,groupData:s.default.object,groups:s.default.arrayOf(s.default.object),hasAnyEditingRow:s.default.bool,icons:s.default.object,isTreeData:s.default.bool.isRequired,level:s.default.number,localization:s.default.object,onBulkEditRowChanged:s.default.func,onCellEditFinished:s.default.func,onCellEditStarted:s.default.func,onEditingApproved:s.default.func,onEditingCanceled:s.default.func,onGroupExpandChanged:s.default.func,onRowClick:s.default.func,onGroupSelected:s.default.func,onRowSelected:s.default.func,onToggleDetailPanel:s.default.func.isRequired,onTreeExpandChanged:s.default.func.isRequired,path:s.default.arrayOf(s.default.number),scrollWidth:s.default.number.isRequired,treeDataMaxLevel:s.default.number};var y=c.default.forwardRef(function(g,b){return c.default.createElement(m,(0,r.default)({},g,{forwardedRef:b}))});e.default=y}(Sm)),Sm}var Cm={};const QV=qn(W9),eY=qn(U9);var T3;function tY(){return T3||(T3=1,function(e){var t=vn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableHeader=T,e.styles=e.default=void 0;var i=t(Bo),u=t(qo),o=t(hr()),a=t(Jr()),n=t(ao()),l=t(jl()),f=t($e),s=t(Or),c=t(QV),d=t(Ai),h=t(gi),p=t(eY),m=t(zo),y=x1,v=_(Ri()),g=Qa(),b=["onColumnResized","classes","sx","columns"];function x(O){if(typeof WeakMap!="function")return null;var R=new WeakMap,F=new WeakMap;return(x=function(z){return z?F:R})(O)}function _(O,R){if(O&&O.__esModule)return O;if(O===null||r(O)!=="object"&&typeof O!="function")return{default:O};var F=x(R);if(F&&F.has(O))return F.get(O);var A={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in O)if(B!=="default"&&Object.prototype.hasOwnProperty.call(O,B)){var $=z?Object.getOwnPropertyDescriptor(O,B):null;$&&($.get||$.set)?Object.defineProperty(A,B,$):A[B]=O[B]}return A.default=O,F&&F.set(O,A),A}function w(O,R){var F=Object.keys(O);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(O);R&&(A=A.filter(function(z){return Object.getOwnPropertyDescriptor(O,z).enumerable})),F.push.apply(F,A)}return F}function k(O){for(var R=1;R-1)&&!ce.tableData.hiddden}).sort(function(ce,ye){return ce.tableData.columnOrder-ye.tableData.columnOrder}).map(function(ce,ye,J){var ne=ce.align!==void 0?ce.align:["numeric","currency"].indexOf(ce.type)!==-1?"right":"left",de=ce.title;if(j.draggable&&ce.draggable!==!1?de=f.default.createElement(y.Draggable,{key:ce.tableData.id,draggableId:ce.tableData.id.toString(),index:ye,style:{zIndex:99}},function(ue,ge){return f.default.createElement("div",(0,o.default)({ref:ue.innerRef},ue.draggableProps,ue.dragHandleProps,{style:ge.isDragging?ue.draggableProps.style:{position:"relative",minWidth:0,display:"flex",flexDirection:ne==="right"?"row-reverse":void 0}}),ce.sorting!==!1&&B.sorting&&B.allowSorting?f.default.createElement(S,{columnDef:ce,keepSortDirectionOnColumnSwitch:j.keepSortDirectionOnColumnSwitch,icon:N.SortArrow,thirdSortClick:j.thirdSortClick,onOrderChange:B.onOrderChange,orderByCollection:B.orderByCollection,showColumnSortOrder:j.showColumnSortOrder,sortOrderIndicatorStyle:j.sortOrderIndicatorStyle},ce.title):ce.title)}):ce.sorting!==!1&&B.sorting&&B.allowSorting&&(de=f.default.createElement(S,{columnDef:ce,keepSortDirectionOnColumnSwitch:j.keepSortDirectionOnColumnSwitch,icon:N.SortArrow,thirdSortClick:j.thirdSortClick,onOrderChange:B.onOrderChange,orderByCollection:B.orderByCollection,showColumnSortOrder:j.showColumnSortOrder,sortOrderIndicatorStyle:j.sortOrderIndicatorStyle},ce.title)),ce.tooltip&&(de=f.default.createElement(u.default,{title:ce.tooltip,placement:"bottom"},f.default.createElement("span",null,de))),j.tableLayout==="fixed"&&j.columnResizable&&ce.resizable!==!1&&!(j.tableWidth==="full"&&ye===J.length-1)){var xe=N.Resize?N.Resize:function(ue){return f.default.createElement(i.default,(0,o.default)({},ue,{"data-test-id":"drag_handle"}))};de=f.default.createElement(i.default,{sx:C.headerWrap(ne==="right")},f.default.createElement(i.default,{sx:C.headerContent(ne==="right")},de),f.default.createElement("div",null),f.default.createElement(xe,{sx:C.headerResize((q==null?void 0:q.col)&&q.col.tableData.id===ce.tableData.id),onMouseDown:function(ge){return Y(ge,ce,ye)}}))}return f.default.createElement(h.default,{key:ce.tableData.id,align:ne,sx:C.header,style:le(ce),size:Me,"aria-label":ce.ariaLabel},de)})}function pe(){var Me=v.selectionMaxWidth(k(k({},B),{},{options:j}),B.treeDataMaxLevel);return f.default.createElement(h.default,{padding:"none",key:"key-selection-column",sx:C.header,style:k(k({},j.headerStyle),{},{width:Me})},j.showSelectAllCheckbox&&f.default.createElement(m.default,(0,o.default)({indeterminate:B.selectedCount>0&&B.selectedCount0&&B.selectedCount>=B.dataCount,onChange:function(ye,J){return B.onAllSelected&&B.onAllSelected(J)}},j.headerSelectionProps)))}function Te(){return f.default.createElement(h.default,{padding:"none",key:"key-detail-panel-column",sx:C.header,style:j.headerStyle})}var Se=se();if(j.selection&&Se.splice(0,0,pe()),B.showActionsColumn)if(j.actionsColumnIndex>=0){var Oe=0;j.selection&&(Oe=1),Se.splice(j.actionsColumnIndex+Oe,0,ie())}else j.actionsColumnIndex===-1&&Se.push(ie());return B.hasDetailPanel&&j.showDetailPanelIcon&&(j.detailPanelColumnAlignment==="right"?Se.push(Te()):Se.splice(0,0,Te())),B.isTreeData>0&&Se.splice(0,0,f.default.createElement(h.default,{padding:"none",key:"key-tree-data-header",sx:C.header,style:j.headerStyle})),Q.filter(function(Me){return Me.tableData.groupOrder>-1}).forEach(function(Me){Se.splice(0,0,f.default.createElement(h.default,{padding:"checkbox",key:"key-group-header"+Me.tableData.id,sx:C.header,style:j.headerStyle}))}),f.default.createElement(c.default,{ref:B.forwardedRef,classes:F,sx:A},f.default.createElement(d.default,{sx:C.headerRow},Se))}var M=function(R,F,A,z,B){return A.tableData.id!==R?B&&F||"asc":F==="asc"?"desc":F==="desc"&&z?"":"asc"};function S(O){var R=O.columnDef,F=O.keepSortDirectionOnColumnSwitch,A=O.icon,z=O.thirdSortClick,B=O.onOrderChange,$=O.children,j=O.orderByCollection,N=O.showColumnSortOrder,E=O.sortOrderIndicatorStyle,W=j.find(function(H){var V=H.orderBy;return V===R.tableData.id}),G=(W||F)&&W&&W.orderDirection||"asc",L="none";W&&G==="asc"?L=R.ariaSortAsc||"ascending":W&&G==="desc"&&(L=R.ariaSortDesc||"descending");var q=W&&W.orderBy;return f.default.createElement(f.default.Fragment,null,f.default.createElement(p.default,{role:"columnheader","aria-sort":L,"aria-label":R.ariaLabel,IconComponent:A,active:!!W,"data-testid":"mtableheader-sortlabel",direction:G,onClick:function(){var V=M(q,G,R,z,F);B(R.tableData.id,V,W&&W.sortOrder)}},$),f.default.createElement("span",{style:k(k({},E),{},{width:"1em"}),"data-testid":"material-table-column-sort-order-indicator"},N&&W?W.sortOrder:""))}T.defaultProps={dataCount:0,selectedCount:0,orderByCollection:[],allowSorting:!0},T.propTypes={columns:s.default.array.isRequired,classes:s.default.object,sx:s.default.object,dataCount:s.default.number,hasDetailPanel:s.default.bool.isRequired,selectedCount:s.default.number,onAllSelected:s.default.func,onOrderChange:s.default.func,showActionsColumn:s.default.bool,orderByCollection:s.default.array,showColumnSortOrder:s.default.bool,tooltip:s.default.string,allowSorting:s.default.bool};var C={headerRow:{zIndex:10},header:{top:0},headerWrap:function(R){return{display:"flex",alignItems:"center",position:"relative",left:4}},headerWrapRight:function(R){return{display:"flex",alignItems:"center",pr:R?1:void 0,position:"relative",left:4,justifyContent:"flex-end"}},headerContent:function(R){return{minWidth:0,display:"flex",flex:"1 0 100%",flexDirection:R?"row-reverse":void 0,justifyContent:"flex-start",alignItems:"center",width:"100%",position:"relative"}},headerResize:function(R){return{color:R?"primary.main":"inherit",flex:1,cursor:"col-resize",position:"absolute",height:"100%",width:16,display:"flex",justifyContent:"center",right:-8,zIndex:20}}};e.styles=C;var P=f.default.forwardRef(function(R,F){return f.default.createElement(T,(0,o.default)({},R,{forwardedRef:F}))}),D=f.default.memo(P);e.default=D}(Cm)),Cm}var Om={};const nY=qn(H9);var k3;function rY(){return k3||(k3=1,function(e){var t=vn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(hr()),u=t(Bl),o=t(qo),a=t(Bo),n=t(nY),l=t(Or),f=t($e),s=Nl,c=p(Ri()),d=Qa();function h(b){if(typeof WeakMap!="function")return null;var x=new WeakMap,_=new WeakMap;return(h=function(k){return k?_:x})(b)}function p(b,x){if(b&&b.__esModule)return b;if(b===null||r(b)!=="object"&&typeof b!="function")return{default:b};var _=h(x);if(_&&_.has(b))return _.get(b);var w={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in b)if(T!=="default"&&Object.prototype.hasOwnProperty.call(b,T)){var M=k?Object.getOwnPropertyDescriptor(b,T):null;M&&(M.get||M.set)?Object.defineProperty(w,T,M):w[T]=b[T]}return w.default=b,_&&_.set(b,w),w}function m(b){var x=(0,s.useTheme)(),_=(0,d.useLocalizationStore)().pagination,w=(0,d.useIconStore)(),k=function(G){b.onPageChange(G,0)},T=function(G){b.onPageChange(G,b.page-1)},M=function(G){b.onPageChange(G,b.page+1)},S=function(G){return function(L){b.onPageChange(L,G)}},C=function(G){b.onPageChange(G,Math.max(0,Math.ceil(b.count/b.rowsPerPage)-1))};function P(W,G,L,q){var H=[];q=Math.max(1,Math.min(10,q));for(var V=Math.max(W-q+1,0);V<=Math.min(G+q-1,L);V++){var te=V===b.page?"contained":"text";H.push(f.default.createElement(n.default,{size:"small",style:{boxShadow:"none",maxWidth:"30px",maxHeight:"30px",minWidth:"30px",minHeight:"30px"},disabled:V===b.page,variant:te,onClick:S(V),key:V},V+1))}return f.default.createElement("span",null,H)}var D=b.count,O=b.page,R=b.rowsPerPage,F=b.showFirstLastPageButtons,A=b.numberOfPagesAround,z=Math.ceil(D/R)-1,B=Math.max(O-1,0),$=Math.min(z,O+1),j=c.parseFirstLastPageButtons(F,x.direction==="rtl"),N=j.first,E=j.last;return f.default.createElement(a.default,{sx:{flexShrink:0,color:"text.secondary",marginLeft:2.5,display:"flex",alignItems:"center"},ref:b.forwardedRef},N&&f.default.createElement(o.default,{title:_.firstTooltip},f.default.createElement("span",null,f.default.createElement(u.default,{onClick:k,disabled:O===0,"aria-label":_.firstAriaLabel,size:"large"},x.direction==="rtl"?f.default.createElement(w.LastPage,null):f.default.createElement(w.FirstPage,null)))),f.default.createElement(o.default,{title:_.previousTooltip},f.default.createElement("span",null,f.default.createElement(u.default,{onClick:T,disabled:O===0,"aria-label":_.previousAriaLabel},f.default.createElement(w.PreviousPage,null)))),f.default.createElement(a.default,{sx:{display:{xs:"false",sm:"false",md:"block"}}},P(B,$,z,A)),f.default.createElement(o.default,{title:_.nextTooltip},f.default.createElement("span",null,f.default.createElement(u.default,{onClick:M,disabled:O>=z,"aria-label":_.nextAriaLabel,size:"large"},x.direction==="rtl"?f.default.createElement(w.PreviousPage,null):f.default.createElement(w.NextPage,null)))),E&&f.default.createElement(o.default,{title:_.lastTooltip},f.default.createElement("span",null,f.default.createElement(u.default,{onClick:C,disabled:O>=Math.ceil(D/R)-1,"aria-label":_.lastAriaLabel,size:"large"},x.direction==="rtl"?f.default.createElement(w.FirstPage,null):f.default.createElement(w.LastPage,null)))))}m.propTypes={onPageChange:l.default.func,page:l.default.number,forwardedRef:l.default.func,count:l.default.number,rowsPerPage:l.default.number,numberOfPagesAround:l.default.number,classes:l.default.object,theme:l.default.any,showFirstLastPageButtons:l.default.oneOfType([l.default.object,l.default.bool])},m.defaultProps={showFirstLastPageButtons:!0};var y=f.default.forwardRef(function(x,_){return f.default.createElement(m,(0,i.default)({},x,{forwardedRef:_}))}),v=y,g=v;e.default=g}(Om)),Om}var Am={},M3;function aY(){return M3||(M3=1,function(e){var t=vn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(hr()),u=t(Bo),o=t(Bl),a=t(qo),n=t(Wd),l=t(Or),f=t($e),s=Nl,c=p(Ri()),d=Ju();function h(b){if(typeof WeakMap!="function")return null;var x=new WeakMap,_=new WeakMap;return(h=function(k){return k?_:x})(b)}function p(b,x){if(b&&b.__esModule)return b;if(b===null||r(b)!=="object"&&typeof b!="function")return{default:b};var _=h(x);if(_&&_.has(b))return _.get(b);var w={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in b)if(T!=="default"&&Object.prototype.hasOwnProperty.call(b,T)){var M=k?Object.getOwnPropertyDescriptor(b,T):null;M&&(M.get||M.set)?Object.defineProperty(w,T,M):w[T]=b[T]}return w.default=b,_&&_.set(b,w),w}function m(b){var x=(0,s.useTheme)(),_=(0,d.useIconStore)(),w=(0,d.useLocalizationStore)().pagination,k=function(B){b.onPageChange(B,0)},T=function(B){b.onPageChange(B,b.page-1)},M=function(B){b.onPageChange(B,b.page+1)},S=function(B){b.onPageChange(B,Math.max(0,Math.ceil(b.count/b.rowsPerPage)-1))},C=b.count,P=b.page,D=b.rowsPerPage,O=b.showFirstLastPageButtons,R=c.parseFirstLastPageButtons(O,x.direction==="rtl"),F=R.first,A=R.last;return f.default.createElement(u.default,{sx:{flexShrink:0,color:"text.secondary",display:"flex",alignItems:"center"},ref:b.forwardedRef},F&&f.default.createElement(a.default,{title:w.firstTooltip},f.default.createElement("span",null,f.default.createElement(o.default,{onClick:k,disabled:P===0,"aria-label":w.firstAriaLabel,size:"large"},x.direction==="rtl"?f.default.createElement(_.LastPage,null):f.default.createElement(_.FirstPage,null)))),f.default.createElement(a.default,{title:w.previousTooltip},f.default.createElement("span",null,f.default.createElement(o.default,{onClick:T,disabled:P===0,"aria-label":w.previousAriaLabel},x.direction==="rtl"?f.default.createElement(_.NextPage,null):f.default.createElement(_.PreviousPage,null)))),f.default.createElement(n.default,{variant:"caption",style:{flex:1,textAlign:"center",alignSelf:"center",flexBasis:"inherit"}},w.labelDisplayedRows.replace("{from}",b.count===0?0:b.page*b.rowsPerPage+1).replace("{to}",Math.min((b.page+1)*b.rowsPerPage,b.count)).replace("{count}",b.count)),f.default.createElement(a.default,{title:w.nextTooltip},f.default.createElement("span",null,f.default.createElement(o.default,{onClick:M,disabled:P>=Math.ceil(C/D)-1,"aria-label":w.nextAriaLabel},x.direction==="rtl"?f.default.createElement(_.PreviousPage,null):f.default.createElement(_.NextPage,null)))),A&&f.default.createElement(a.default,{title:w.lastTooltip},f.default.createElement("span",null,f.default.createElement(o.default,{onClick:S,disabled:P>=Math.ceil(C/D)-1,"aria-label":w.lastAriaLabel,size:"large"},x.direction==="rtl"?f.default.createElement(_.FirstPage,null):f.default.createElement(_.LastPage,null)))))}m.propTypes={onPageChange:l.default.func,page:l.default.number,count:l.default.number,rowsPerPage:l.default.number,classes:l.default.object,localization:l.default.object,showFirstLastPageButtons:l.default.oneOfType([l.default.object,l.default.bool]),forwardedRef:l.default.func},m.defaultProps={showFirstLastPageButtons:!0};var y=f.default.forwardRef(function(x,_){return f.default.createElement(m,(0,i.default)({},x,{forwardedRef:_}))}),v=y,g=v;e.default=g}(Am)),Am}var Pm={},S3;function iY(){return S3||(S3=1,function(e){var t=vn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableSummaryRow=v,e.default=void 0;var i=t(Ai),u=t(Ur()),o=t($l()),a=t(gi),n=t(Jr()),l=p($e),f=qd(),s=p(Ri()),c=Qa(),d=t(Or);function h(b){if(typeof WeakMap!="function")return null;var x=new WeakMap,_=new WeakMap;return(h=function(k){return k?_:x})(b)}function p(b,x){if(b&&b.__esModule)return b;if(b===null||r(b)!=="object"&&typeof b!="function")return{default:b};var _=h(x);if(_&&_.has(b))return _.get(b);var w={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in b)if(T!=="default"&&Object.prototype.hasOwnProperty.call(b,T)){var M=k?Object.getOwnPropertyDescriptor(b,T):null;M&&(M.get||M.set)?Object.defineProperty(w,T,M):w[T]=b[T]}return w.default=b,_&&_.set(b,w),w}function m(b,x){var _=Object.keys(b);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(b);x&&(w=w.filter(function(k){return Object.getOwnPropertyDescriptor(b,k).enumerable})),_.push.apply(_,w)}return _}function y(b){for(var x=1;x1&&arguments[1]!==void 0?arguments[1]:1,R=s.elementSize(y(y({},_),{},{options:k})),F=O*s.baseIconSize(y(y({},_),{},{options:k}));return l.createElement(a.default,{key:"placeholder.".concat(D),size:R,padding:"none",style:{width:F,padding:"0px 5px",boxSizing:"border-box"}})}var M=[],S=[],C=0;if(k.selection&&M.push(T(C++)),_.actions&&_.actions.filter(function(D){return D.position==="row"||typeof D=="function"}).length>0){var P=s.rowActions(_).length;k.actionsColumnIndex===-1?S.push(T(C++,P)):k.actionsColumnIndex>=0&&M.push(T(C++,P))}return _.detailPanel&&k.showDetailPanelIcon&&(k.detailPanelColumnAlignment==="right"?S.push(T(C++)):M.push(T(C++))),_.isTreeData&&M.push(T(C++)),l.createElement(i.default,null,M,(0,o.default)(x).sort(function(D,O){return D.tableData.columnOrder-O.tableData.columnOrder}).map(function(D,O){var R=w({index:D.tableData.columnOrder,column:D,columns:x}),F=D.align!==void 0?D.align:["numeric","currency"].indexOf(D.type)!==-1?"right":"left",A="",z=(0,f.getStyle)({columnDef:D,scrollWidth:0});return(0,u.default)(R)==="object"&&R!==null?(A=R.value,z=R.style):A=R,l.createElement(a.default,{key:O,style:z,align:F},A)}),S)}v.propTypes={columns:d.default.array,renderSummaryRow:d.default.func};var g=v;e.default=g}(Pm)),Pm}var Dm={};const oY=qn(V9);var C3;function lY(){return C3||(C3=1,function(e){var t=vn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableToolbar=M,e.default=void 0;var i=t(hr()),u=t(Jr()),o=t(Bo),a=t(ao()),n=t(zo),l=t(U4),f=t(Bl),s=t(oY),c=t(_y),d=t(Rd),h=t(V4),p=t(qo),m=t(Wd),y=Nl,v=t(Or),g=_($e),b=Qa();function x(O){if(typeof WeakMap!="function")return null;var R=new WeakMap,F=new WeakMap;return(x=function(z){return z?F:R})(O)}function _(O,R){if(O&&O.__esModule)return O;if(O===null||r(O)!=="object"&&typeof O!="function")return{default:O};var F=x(R);if(F&&F.has(O))return F.get(O);var A={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in O)if(B!=="default"&&Object.prototype.hasOwnProperty.call(O,B)){var $=z?Object.getOwnPropertyDescriptor(O,B):null;$&&($.get||$.set)?Object.defineProperty(A,B,$):A[B]=O[B]}return A.default=O,F&&F.set(O,A),A}function w(O,R){var F=Object.keys(O);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(O);R&&(A=A.filter(function(z){return Object.getOwnPropertyDescriptor(O,z).enumerable})),F.push.apply(F,A)}return F}function k(O){for(var R=1;ROe.tableData.columnOrder?1:-1}),pe=P(O.data()),Te=pe.map(function(Se){return se.reduce(function(Oe,Me){var ce;return typeof Me.customExport=="function"?ce=Me.customExport(Se):ce=O.getFieldValue(Se,Me),Oe[Me.field]=ce,Oe},{})});return[se,Te]};function Y(){return te.search?g.default.createElement(d.default,{autoFocus:te.searchAutoFocus,sx:te.searchFieldAlignment==="left"&&te.showTitle===!1?void 0:S.searchField,value:B,onChange:function(se){return U(se.target.value)},placeholder:F.searchPlaceholder,variant:te.searchFieldVariant,InputProps:{startAdornment:g.default.createElement(l.default,{position:"start"},g.default.createElement(p.default,{title:F.searchTooltip},g.default.createElement(V.Search,{fontSize:"small"}))),endAdornment:g.default.createElement(l.default,{position:"end"},g.default.createElement(f.default,{disabled:!B,onClick:function(){return U("")},"aria-label":F.clearSearchAriaLabel},g.default.createElement(V.ResetSearch,{fontSize:"small","aria-label":"clear"}))),style:te.searchFieldStyle,inputProps:{"aria-label":F.searchAriaLabel}}}):null}function Z(le){var se=le?"toolbarOnSelect":"toolbar";return g.default.createElement("div",{style:{display:"flex"}},te.columnsButton&&!le&&g.default.createElement("span",null,g.default.createElement(p.default,{title:F.showColumnsTitle},g.default.createElement(f.default,{color:"inherit",onClick:function(Te){return H(Te.currentTarget)},"aria-label":F.showColumnsAriaLabel},g.default.createElement(V.ViewColumn,null))),g.default.createElement(s.default,{anchorEl:q,open:!!q,onClose:function(){return H(null)}},g.default.createElement(c.default,{key:"text",disabled:!0,style:{opacity:1,fontWeight:600,fontSize:12}},F.addRemoveColumns),O.columns.map(function(pe){var Te=pe.hiddenByColumnsButton!==void 0?pe.hiddenByColumnsButton:O.columnsHiddenInColumnsButton;return Te?null:g.default.createElement("li",{key:pe.tableData.id},g.default.createElement(c.default,{sx:S.formControlLabel,component:"label",htmlFor:"column-toggle-".concat(pe.tableData.id),disabled:pe.removable===!1},g.default.createElement(n.default,{checked:!pe.hidden,id:"column-toggle-".concat(pe.tableData.id),onChange:function(){return O.onColumnsChanged(pe,!pe.hidden)}}),g.default.createElement("span",null,pe.title)))}))),te.exportMenu.length>0&&g.default.createElement("span",null,g.default.createElement(p.default,{title:F.exportTitle},g.default.createElement(f.default,{color:"inherit",onClick:function(Te){return W(Te.currentTarget)},"aria-label":F.exportAriaLabel},g.default.createElement(V.Export,null))),g.default.createElement(s.default,{anchorEl:E,open:!!E,onClose:function(){return W(null)}},te.exportMenu.map(function(pe,Te){var Se=Q(),Oe=(0,a.default)(Se,2),Me=Oe[0],ce=Oe[1];return g.default.createElement(c.default,{key:"".concat(pe.label).concat(Te),onClick:function(){pe.exportFunc(Me,ce,{searchedData:O.dataManager.searchedData,filteredData:O.dataManager.filteredData,groupedData:O.dataManager.groupedData,selectedData:ee}),W(null)}},pe.label)}))),g.default.createElement("span",null,g.default.createElement(O.components.Actions,{actions:O.actions&&O.actions.filter(function(pe){return pe.position===se}),data:le?ee:void 0,components:O.components})))}function X(){return g.default.createElement(o.default,{sx:S.actions},g.default.createElement("div",null,Z(ee.length>0)))}function re(le){var se=typeof le=="string"?g.default.createElement(m.default,{variant:"h6",style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},le):le;return g.default.createElement(o.default,{sx:S.title},se)}var ie=te.showTextRowsSelected&&ee.length>0?typeof F.nRowsSelected=="function"?F.nRowsSelected(ee.length):F.nRowsSelected.replace("{0}",ee.length):te.showTitle?O.title:null;return g.default.createElement(h.default,{ref:O.forwardedRef,className:O.className,sx:k(k({},S.root),te.showTextRowsSelected&&ee.length>0?S.highlight(R):{})},ie&&re(ie),te.searchFieldAlignment==="left"&&Y(),te.toolbarButtonAlignment==="left"&&X(),g.default.createElement(o.default,{sx:S.spacer}),te.searchFieldAlignment==="right"&&Y(),te.toolbarButtonAlignment==="right"&&X())}M.defaultProps={actions:[],columns:[],columnsHiddenInColumnsButton:!1,searchText:"",originalData:[],title:"No Title!"},M.propTypes={actions:v.default.array,className:v.default.string,columns:v.default.array,components:v.default.object.isRequired,getFieldValue:v.default.func.isRequired,onColumnsChanged:v.default.func.isRequired,dataManager:v.default.object.isRequired,searchText:v.default.string,onSearchChanged:v.default.func.isRequired,originalData:v.default.array,title:v.default.oneOfType([v.default.element,v.default.string]),renderData:v.default.array,data:v.default.oneOfType([v.default.array,v.default.func]),exportAllData:v.default.bool,exportMenu:v.default.arrayOf(v.default.shape({name:v.default.string,handler:v.default.func})),searchAutoFocus:v.default.bool,classes:v.default.object};var S={root:{paddingRight:1,paddingLeft:2},highlight:function(R){return R.palette.mode==="light"?{color:R.palette.secondary.main,backgroundColor:(0,y.lighten)(R.palette.secondary.light,.85)}:{color:R.palette.text.primary,backgroundColor:R.palette.secondary.dark}},spacer:{flex:"1 1 10%"},actions:{color:"text.secondary"},title:{overflow:"hidden"},searchField:{minWidth:150,paddingLeft:2},formControlLabel:{px:1}},C=g.default.forwardRef(function(R,F){return g.default.createElement(M,(0,i.default)({},R,{forwardedRef:F}))});function P(O){for(var R=O;Array.isArray((F=R)===null||F===void 0||(A=F[0])===null||A===void 0?void 0:A.data);){var F,A;R=R.map(function(z){return z.groups.length!==0?z.groups:z.data}).flat()}return R}var D=g.default.memo(C);e.default=D}(Dm)),Dm}var O3;function Kd(){return O3||(O3=1,function(e){var t=vn;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Container",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"MTableAction",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"MTableActions",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"MTableBody",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"MTableBodyRow",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"MTableCell",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"MTableCustomIcon",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"MTableEditCell",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"MTableEditField",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"MTableEditRow",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"MTableFilterRow",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"MTableGroupRow",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"MTableGroupbar",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"MTableHeader",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"MTablePagination",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"MTableScrollbar",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"MTableSteppedPagination",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"MTableSummaryRow",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"MTableToolbar",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"OverlayError",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"OverlayLoading",{enumerable:!0,get:function(){return r.default}});var r=t(sE()),i=t(KE()),u=t(eR()),o=t(nR()),a=t(lR()),n=t(yz()),l=t(bz()),f=t(Tz()),s=t(kz()),c=t(Oz()),d=t(Dz()),h=t(Ez()),p=t(Rz()),m=t(H4()),y=t(KV()),v=t(JV()),g=t(tY()),b=t(rY()),x=t(aY()),_=t(iY()),w=t(lY())}(cg)),cg}var A3;function u6(){return A3||(A3=1,function(e){var t=vn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(lE),i=Kd(),u={Action:i.MTableAction,Actions:i.MTableActions,Body:i.MTableBody,Cell:i.MTableCell,Container:i.Container,EditCell:i.MTableEditCell,EditField:i.MTableEditField,EditRow:i.MTableEditRow,FilterRow:i.MTableFilterRow,Groupbar:i.MTableGroupbar,GroupRow:i.MTableGroupRow,Header:i.MTableHeader,OverlayLoading:i.OverlayLoading,OverlayError:i.OverlayError,Pagination:r.default,Row:i.MTableBodyRow,SummaryRow:i.MTableSummaryRow,Toolbar:i.MTableToolbar};e.default=u}(ug)),ug}var P3;function sY(){if(P3)return gs;P3=1;var e=vn;Object.defineProperty(gs,"__esModule",{value:!0}),gs.defaultProps=void 0;var t=e(u6()),r=e(MS()),i=e(TS()),u=e(kS()),o={actions:[],classes:{},columns:[],components:t.default,data:[],icons:r.default,isLoading:!1,title:"Table Title",options:u.default,localization:i.default,style:{}};return gs.defaultProps=o,gs}var Ns={},js={},D3;function w1(){if(D3)return js;D3=1,Object.defineProperty(js,"__esModule",{value:!0}),js.ALL_COLUMNS=void 0;var e="all_columns";return js.ALL_COLUMNS=e,js}var E3;function uY(){if(E3)return Ns;E3=1;var e=vn;Object.defineProperty(Ns,"__esModule",{value:!0}),Ns.propTypes=void 0;var t=e(Or),r=w1(),i=t.default.shape({current:t.default.element}),u=t.default.shape({classes:t.default.object,innerRef:i}),o={actions:t.default.arrayOf(t.default.oneOfType([t.default.func,t.default.shape({icon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,i]).isRequired,isFreeAction:t.default.bool,position:t.default.oneOf(["auto","toolbar","toolbarOnSelect","row"]),tooltip:t.default.string,onClick:t.default.func.isRequired,onMouseEnter:t.default.func,onMouseLeave:t.default.func,iconProps:t.default.object,disabled:t.default.bool,hidden:t.default.bool}),t.default.shape({action:t.default.func,position:t.default.oneOf(["auto","toolbar","toolbarOnSelect","row"])})])),renderSummaryRow:t.default.func,columns:t.default.arrayOf(t.default.shape({cellStyle:t.default.oneOfType([t.default.object,t.default.func]),currencySetting:t.default.shape({locale:t.default.string,currencyCode:t.default.string,minimumFractionDigits:t.default.number,maximumFractionDigits:t.default.number}),ariaLabel:t.default.string,ariaSortAsc:t.default.oneOf(["ascending","descending","none","other"]),ariaSortDesc:t.default.oneOf(["ascending","descending","none","other"]),draggable:t.default.bool,customFilterAndSearch:t.default.func,customSort:t.default.func,customExport:t.default.func,defaultFilter:t.default.any,defaultSort:t.default.oneOf(["asc","desc"]),editComponent:t.default.oneOfType([t.default.element,t.default.func]),emptyValue:t.default.oneOfType([t.default.string,t.default.node,t.default.func]),export:t.default.bool,field:t.default.oneOfType([t.default.string,t.default.arrayOf(t.default.string)]),filtering:t.default.bool,filterCellStyle:t.default.object,filterPlaceholder:t.default.string,filterComponent:t.default.oneOfType([t.default.element,t.default.func]),grouping:t.default.bool,headerStyle:t.default.object,hidden:t.default.bool,hideFilterIcon:t.default.bool,initialEditValue:t.default.any,lookup:t.default.object,editable:t.default.oneOfType([t.default.func,t.default.oneOf(["always","onUpdate","onAdd","never"])]),removable:t.default.bool,render:t.default.func,searchable:t.default.bool,sorting:t.default.bool,title:t.default.oneOfType([t.default.element,t.default.string]),type:t.default.oneOf(["string","boolean","numeric","date","datetime","time","currency"])})).isRequired,components:t.default.shape({Action:t.default.oneOfType([t.default.element,t.default.func,u]),Actions:t.default.oneOfType([t.default.element,t.default.func,u]),Body:t.default.oneOfType([t.default.element,t.default.func,u]),Cell:t.default.oneOfType([t.default.element,t.default.func,u]),Container:t.default.oneOfType([t.default.element,t.default.func,u]),EditField:t.default.oneOfType([t.default.element,t.default.func,u]),EditRow:t.default.oneOfType([t.default.element,t.default.func,u]),FilterRow:t.default.oneOfType([t.default.element,t.default.func,u]),Groupbar:t.default.oneOfType([t.default.element,t.default.func,u]),GroupRow:t.default.oneOfType([t.default.element,t.default.func,u]),Header:t.default.oneOfType([t.default.element,t.default.func,u]),OverlayLoading:t.default.oneOfType([t.default.element,t.default.func,u]),OverlayError:t.default.oneOfType([t.default.element,t.default.func,u]),Pagination:t.default.oneOfType([t.default.element,t.default.func,u]),Row:t.default.oneOfType([t.default.element,t.default.func,u]),Toolbar:t.default.oneOfType([t.default.element,t.default.func,u])}),data:t.default.oneOfType([t.default.arrayOf(t.default.object),t.default.func]).isRequired,editable:t.default.shape({isEditable:t.default.func,isBulkEditable:t.default.func,isDeletable:t.default.func,onRowAdd:t.default.func,onRowUpdate:t.default.func,onRowDelete:t.default.func,onRowAddCancelled:t.default.func,onRowUpdateCancelled:t.default.func,isEditHidden:t.default.func,isDeleteHidden:t.default.func}),detailPanel:t.default.oneOfType([t.default.func,t.default.arrayOf(t.default.oneOfType([t.default.func,t.default.shape({disabled:t.default.bool,icon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,i]),openIcon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,i]),tooltip:t.default.string,render:t.default.func.isRequired})]))]),icons:t.default.shape({Add:t.default.oneOfType([t.default.element,t.default.func,i]),Check:t.default.oneOfType([t.default.element,t.default.func,i]),Clear:t.default.oneOfType([t.default.element,t.default.func,i]),Delete:t.default.oneOfType([t.default.element,t.default.func,i]),DetailPanel:t.default.oneOfType([t.default.element,t.default.func,i]),Edit:t.default.oneOfType([t.default.element,t.default.func,i]),Export:t.default.oneOfType([t.default.element,t.default.func,i]),Filter:t.default.oneOfType([t.default.element,t.default.func,i]),FirstPage:t.default.oneOfType([t.default.element,t.default.func,i]),LastPage:t.default.oneOfType([t.default.element,t.default.func,i]),NextPage:t.default.oneOfType([t.default.element,t.default.func,i]),PreviousPage:t.default.oneOfType([t.default.element,t.default.func,i]),Refresh:t.default.oneOfType([t.default.element,t.default.func,i]),ResetSearch:t.default.oneOfType([t.default.element,t.default.func,i]),Search:t.default.oneOfType([t.default.element,t.default.func,i]),SortArrow:t.default.oneOfType([t.default.element,t.default.func,i]),ThirdStateCheck:t.default.oneOfType([t.default.element,t.default.func,i]),ViewColumn:t.default.oneOfType([t.default.element,t.default.func,i])}),isLoading:t.default.bool,title:t.default.oneOfType([t.default.element,t.default.string]),options:t.default.shape({actionsCellStyle:t.default.object,editCellStyle:t.default.object,idSynonym:t.default.string,detailPanelColumnStyle:t.default.object,actionsColumnIndex:t.default.number,addRowPosition:t.default.oneOf(["first","last"]),columnsButton:t.default.bool,defaultExpanded:t.default.oneOfType([t.default.bool,t.default.func]),debounceInterval:t.default.number,detailPanelType:t.default.oneOf(["single","multiple"]),doubleHorizontalScroll:t.default.bool,emptyRowsWhenPaging:t.default.bool,exportAllData:t.default.bool,exportMenu:t.default.arrayOf(t.default.shape({label:t.default.string,exportFunc:t.default.func})),filtering:t.default.bool,filterCellStyle:t.default.object,filterRowStyle:t.default.object,header:t.default.bool,headerSelectionProps:t.default.object,headerStyle:t.default.object,hideFilterIcons:t.default.bool,initialPage:t.default.number,maxBodyHeight:t.default.oneOfType([t.default.number,t.default.string]),minBodyHeight:t.default.oneOfType([t.default.number,t.default.string]),loadingType:t.default.oneOf(["overlay","linear"]),overflowY:t.default.oneOf(["visible","hidden","scroll","auto","initial","inherit","overlay"]),padding:t.default.oneOf(["normal","dense"]),paging:t.default.bool,pageSize:t.default.number,pageSizeOptions:t.default.arrayOf(t.default.number),paginationType:t.default.oneOf(["normal","stepped"]),paginationPosition:t.default.oneOf(["bottom","top","both"]),persistentGroupingsId:t.default.string,rowStyle:t.default.oneOfType([t.default.object,t.default.func]),search:t.default.bool,searchText:t.default.string,searchDebounceDelay:t.default.number,toolbarButtonAlignment:t.default.oneOf(["left","right"]),searchFieldAlignment:t.default.oneOf(["left","right"]),searchFieldStyle:t.default.object,searchAutoFocus:t.default.bool,searchFieldVariant:t.default.oneOf(["standard","filled","outlined"]),selection:t.default.bool,selectionProps:t.default.oneOfType([t.default.object,t.default.func]),showEmptyDataSourceMessage:t.default.bool,showFirstLastPageButtons:t.default.oneOfType([t.default.object,t.default.bool]),showSelectAllCheckbox:t.default.bool,showSelectGroupCheckbox:t.default.bool,showTitle:t.default.bool,showTextRowsSelected:t.default.bool,sorting:t.default.bool,defaultOrderByCollection:t.default.arrayOf(t.default.shape({orderBy:t.default.number,orderDirection:t.default.string,sortOrder:t.default.number,orderIndex:t.default.number})),maxColumnSort:t.default.oneOf([0,1,2,3,4,5,6,7,8,9,10,r.ALL_COLUMNS]),showColumnSortOrder:t.default.bool,sortOrderIndicatorStyle:t.default.object,keepSortDirectionOnColumnSwitch:t.default.bool,clientSorting:t.default.bool,toolbar:t.default.bool,thirdSortClick:t.default.bool,numberOfPagesAround:t.default.oneOf([1,2,3,4,5,6,7,8,9,10])}),localization:t.default.shape({grouping:t.default.shape({groupedBy:t.default.string,placeholder:t.default.string}),pagination:t.default.object,toolbar:t.default.object,header:t.default.object,body:t.default.object}),initialFormData:t.default.object,onSearchChange:t.default.func,onFilterChange:t.default.func,onColumnDragged:t.default.func,onColumnResized:t.default.func,onGroupRemoved:t.default.func,onGroupChange:t.default.func,onSelectionChange:t.default.func,onRowsPerPageChange:t.default.func,onPageChange:t.default.func,onChangeColumnHidden:t.default.func,onOrderChange:t.default.func,onOrderCollectionChange:t.default.func,onRowClick:t.default.func,onRowDoubleClick:t.default.func,onTreeExpandChange:t.default.func,onQueryChange:t.default.func,onBulkEditOpen:t.default.func,tableRef:t.default.any,style:t.default.object,page:t.default.number,totalCount:t.default.number};return Ns.propTypes=o,Ns}var Em={};const cY=qn(Y9),fY=qn(G9),dY=qn(X9);var Rm,R3;function hY(){if(R3)return Rm;R3=1;function e(t,r,i){var u,o,a,n,l;r==null&&(r=100);function f(){var c=Date.now()-n;c=0?u=setTimeout(f,r-c):(u=null,i||(l=t.apply(a,o),a=o=null))}var s=function(){a=this,o=arguments,n=Date.now();var c=i&&!u;return u||(u=setTimeout(f,r)),c&&(l=t.apply(a,o),a=o=null),l};return s.clear=function(){u&&(clearTimeout(u),u=null)},s.flush=function(){u&&(l=t.apply(a,o),a=o=null,clearTimeout(u),u=null)},s}return e.debounce=e,Rm=e,Rm}var Lm={};const pY=qn(CL);var Im={},$s={},Xc={},L3;function c6(){if(L3)return Xc;L3=1,Object.defineProperty(Xc,"__esModule",{value:!0}),Xc.default=r;let e;const t=new Uint8Array(16);function r(){if(!e&&(e=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!e))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(t)}return Xc}var ol={},Bs={},zs={},I3;function gY(){if(I3)return zs;I3=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.default=void 0;var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return zs.default=e,zs}var F3;function Jd(){if(F3)return Bs;F3=1,Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.default=void 0;var e=t(gY());function t(u){return u&&u.__esModule?u:{default:u}}function r(u){return typeof u=="string"&&e.default.test(u)}var i=r;return Bs.default=i,Bs}var N3;function Qd(){if(N3)return ol;N3=1,Object.defineProperty(ol,"__esModule",{value:!0}),ol.default=void 0,ol.unsafeStringify=i;var e=t(Jd());function t(a){return a&&a.__esModule?a:{default:a}}const r=[];for(let a=0;a<256;++a)r.push((a+256).toString(16).slice(1));function i(a,n=0){return r[a[n+0]]+r[a[n+1]]+r[a[n+2]]+r[a[n+3]]+"-"+r[a[n+4]]+r[a[n+5]]+"-"+r[a[n+6]]+r[a[n+7]]+"-"+r[a[n+8]]+r[a[n+9]]+"-"+r[a[n+10]]+r[a[n+11]]+r[a[n+12]]+r[a[n+13]]+r[a[n+14]]+r[a[n+15]]}function u(a,n=0){const l=i(a,n);if(!(0,e.default)(l))throw TypeError("Stringified UUID is invalid");return l}var o=u;return ol.default=o,ol}var j3;function mY(){if(j3)return $s;j3=1,Object.defineProperty($s,"__esModule",{value:!0}),$s.default=void 0;var e=r(c6()),t=Qd();function r(f){return f&&f.__esModule?f:{default:f}}let i,u,o=0,a=0;function n(f,s,c){let d=s&&c||0;const h=s||new Array(16);f=f||{};let p=f.node||i,m=f.clockseq!==void 0?f.clockseq:u;if(p==null||m==null){const _=f.random||(f.rng||e.default)();p==null&&(p=i=[_[0]|1,_[1],_[2],_[3],_[4],_[5]]),m==null&&(m=u=(_[6]<<8|_[7])&16383)}let y=f.msecs!==void 0?f.msecs:Date.now(),v=f.nsecs!==void 0?f.nsecs:a+1;const g=y-o+(v-a)/1e4;if(g<0&&f.clockseq===void 0&&(m=m+1&16383),(g<0||y>o)&&f.nsecs===void 0&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");o=y,a=v,u=m,y+=122192928e5;const b=((y&268435455)*1e4+v)%4294967296;h[d++]=b>>>24&255,h[d++]=b>>>16&255,h[d++]=b>>>8&255,h[d++]=b&255;const x=y/4294967296*1e4&268435455;h[d++]=x>>>8&255,h[d++]=x&255,h[d++]=x>>>24&15|16,h[d++]=x>>>16&255,h[d++]=m>>>8|128,h[d++]=m&255;for(let _=0;_<6;++_)h[d+_]=p[_];return s||(0,t.unsafeStringify)(h)}var l=n;return $s.default=l,$s}var qs={},Wi={},Ws={},$3;function f6(){if($3)return Ws;$3=1,Object.defineProperty(Ws,"__esModule",{value:!0}),Ws.default=void 0;var e=t(Jd());function t(u){return u&&u.__esModule?u:{default:u}}function r(u){if(!(0,e.default)(u))throw TypeError("Invalid UUID");let o;const a=new Uint8Array(16);return a[0]=(o=parseInt(u.slice(0,8),16))>>>24,a[1]=o>>>16&255,a[2]=o>>>8&255,a[3]=o&255,a[4]=(o=parseInt(u.slice(9,13),16))>>>8,a[5]=o&255,a[6]=(o=parseInt(u.slice(14,18),16))>>>8,a[7]=o&255,a[8]=(o=parseInt(u.slice(19,23),16))>>>8,a[9]=o&255,a[10]=(o=parseInt(u.slice(24,36),16))/1099511627776&255,a[11]=o/4294967296&255,a[12]=o>>>24&255,a[13]=o>>>16&255,a[14]=o>>>8&255,a[15]=o&255,a}var i=r;return Ws.default=i,Ws}var B3;function d6(){if(B3)return Wi;B3=1,Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.URL=Wi.DNS=void 0,Wi.default=a;var e=Qd(),t=r(f6());function r(n){return n&&n.__esModule?n:{default:n}}function i(n){n=unescape(encodeURIComponent(n));const l=[];for(let f=0;f>5]>>>v%32&255,b=parseInt(y.charAt(g>>>4&15)+y.charAt(g&15),16);p.push(b)}return p}function r(h){return(h+64>>>9<<4)+14+1}function i(h,p){h[p>>5]|=128<>5]|=(h[y/8]&255)<>16)+(p>>16)+(m>>16)<<16|m&65535}function a(h,p){return h<>>32-p}function n(h,p,m,y,v,g){return o(a(o(o(p,h),o(y,g)),v),m)}function l(h,p,m,y,v,g,b){return n(p&m|~p&y,h,p,v,g,b)}function f(h,p,m,y,v,g,b){return n(p&y|m&~y,h,p,v,g,b)}function s(h,p,m,y,v,g,b){return n(p^m^y,h,p,v,g,b)}function c(h,p,m,y,v,g,b){return n(m^(p|~y),h,p,v,g,b)}var d=e;return Us.default=d,Us}var q3;function yY(){if(q3)return qs;q3=1,Object.defineProperty(qs,"__esModule",{value:!0}),qs.default=void 0;var e=r(d6()),t=r(vY());function r(o){return o&&o.__esModule?o:{default:o}}var u=(0,e.default)("v3",48,t.default);return qs.default=u,qs}var Hs={},Vs={},W3;function bY(){if(W3)return Vs;W3=1,Object.defineProperty(Vs,"__esModule",{value:!0}),Vs.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return Vs.default=t,Vs}var U3;function xY(){if(U3)return Hs;U3=1,Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.default=void 0;var e=i(bY()),t=i(c6()),r=Qd();function i(a){return a&&a.__esModule?a:{default:a}}function u(a,n,l){if(e.default.randomUUID&&!n&&!a)return e.default.randomUUID();a=a||{};const f=a.random||(a.rng||t.default)();if(f[6]=f[6]&15|64,f[8]=f[8]&63|128,n){l=l||0;for(let s=0;s<16;++s)n[l+s]=f[s];return n}return(0,r.unsafeStringify)(f)}var o=u;return Hs.default=o,Hs}var Ys={},Gs={},H3;function wY(){if(H3)return Gs;H3=1,Object.defineProperty(Gs,"__esModule",{value:!0}),Gs.default=void 0;function e(u,o,a,n){switch(u){case 0:return o&a^~o&n;case 1:return o^a^n;case 2:return o&a^o&n^a&n;case 3:return o^a^n}}function t(u,o){return u<>>32-o}function r(u){const o=[1518500249,1859775393,2400959708,3395469782],a=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof u=="string"){const s=unescape(encodeURIComponent(u));u=[];for(let c=0;c>>0;y=m,m=p,p=t(h,30)>>>0,h=d,d=b}a[0]=a[0]+d>>>0,a[1]=a[1]+h>>>0,a[2]=a[2]+p>>>0,a[3]=a[3]+m>>>0,a[4]=a[4]+y>>>0}return[a[0]>>24&255,a[0]>>16&255,a[0]>>8&255,a[0]&255,a[1]>>24&255,a[1]>>16&255,a[1]>>8&255,a[1]&255,a[2]>>24&255,a[2]>>16&255,a[2]>>8&255,a[2]&255,a[3]>>24&255,a[3]>>16&255,a[3]>>8&255,a[3]&255,a[4]>>24&255,a[4]>>16&255,a[4]>>8&255,a[4]&255]}var i=r;return Gs.default=i,Gs}var V3;function _Y(){if(V3)return Ys;V3=1,Object.defineProperty(Ys,"__esModule",{value:!0}),Ys.default=void 0;var e=r(d6()),t=r(wY());function r(o){return o&&o.__esModule?o:{default:o}}var u=(0,e.default)("v5",80,t.default);return Ys.default=u,Ys}var Xs={},Y3;function TY(){if(Y3)return Xs;Y3=1,Object.defineProperty(Xs,"__esModule",{value:!0}),Xs.default=void 0;var e="00000000-0000-0000-0000-000000000000";return Xs.default=e,Xs}var Zs={},G3;function kY(){if(G3)return Zs;G3=1,Object.defineProperty(Zs,"__esModule",{value:!0}),Zs.default=void 0;var e=t(Jd());function t(u){return u&&u.__esModule?u:{default:u}}function r(u){if(!(0,e.default)(u))throw TypeError("Invalid UUID");return parseInt(u.slice(14,15),16)}var i=r;return Zs.default=i,Zs}var X3;function MY(){return X3||(X3=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return a.default}});var t=s(mY()),r=s(yY()),i=s(xY()),u=s(_Y()),o=s(TY()),a=s(kY()),n=s(Jd()),l=s(Qd()),f=s(f6());function s(c){return c&&c.__esModule?c:{default:c}}}(Im)),Im}var Z3;function SY(){return Z3||(Z3=1,function(e){var t=vn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t($l()),i=t(Dd()),u=t(Ed()),o=t(Jr()),a=t(pY),n=MY(),l=qd(),f=Ri(),s=w1();function c(v,g){var b=Object.keys(v);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(v);g&&(x=x.filter(function(_){return Object.getOwnPropertyDescriptor(v,_).enumerable})),b.push.apply(b,x)}return b}function d(v){for(var g=1;g=v.length?{done:!0}:{done:!1,value:v[x++]}},e:function(S){throw S},f:_}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w=!0,k=!1,T;return{s:function(){b=b.call(v)},n:function(){var S=b.next();return w=S.done,S},e:function(S){k=!0,T=S},f:function(){try{!w&&b.return!=null&&b.return()}finally{if(k)throw T}}}}function p(v,g){if(v){if(typeof v=="string")return m(v,g);var b=Object.prototype.toString.call(v).slice(8,-1);if(b==="Object"&&v.constructor&&(b=v.constructor.name),b==="Map"||b==="Set")return Array.from(v);if(b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b))return m(v,g)}}function m(v,g){(g==null||g>v.length)&&(g=v.length);for(var b=0,x=new Array(g);b0?T(S.groups):S.data.forEach(function(C){C.tableData.checked!==b&&(C.tableData.checked=C.tableData.disabled?!1:b,g.selectedCount=g.selectedCount+(b?1:-1))})})};k([_])}),(0,o.default)(this,"getOrderByCollection",function(){return g.orderByCollection.filter(function(b){return b.sortOrder})}),(0,o.default)(this,"sortOrderCollection",function(b){return b.sort(function(x,_){return x.sortOrder?_.sortOrder?x.sortOrder-_.sortOrder:-1:1})}),(0,o.default)(this,"startCellEditable",function(b,x){b.tableData.editCellList=[].concat((0,r.default)(b.tableData.editCellList||[]),[x])}),(0,o.default)(this,"finishCellEditable",function(b,x){if(b.tableData.editCellList){var _=b.tableData.editCellList.findIndex(function(w){return w.tableData.id.toString()===x.tableData.id.toString()});_!==-1&&b.tableData.editCellList.splice(_,1)}}),(0,o.default)(this,"clearBulkEditChangedRows",function(){g.bulkEditChangedRows={}}),(0,o.default)(this,"onBulkEditRowChanged",function(b,x){g.bulkEditChangedRows[b.tableData.id]={oldData:b,newData:x}}),(0,o.default)(this,"expandTreeForNodes",function(b){b.forEach(function(x){for(var _=x;g.parentFunc(_,g.data);){var w=g.parentFunc(_,g.data);w&&(w.tableData.isTreeExpanded=!0),_=w}})}),(0,o.default)(this,"findDataByPath",function(b,x){if(g.isDataType("tree")){var _=x.reduce(function(T,M){return T&&T.tableData&&T.tableData.childRows&&T.tableData.childRows.find(function(S){return S&&S.tableData.uuid===M})},{tableData:{childRows:b}});return _}else{var w={groups:b},k=x.reduce(function(T,M){return T.groups.length>0?T.groups[M]:T.data?T.data[M]||T.data.find(function(S){var C;return((C=S.tableData)===null||C===void 0?void 0:C.uuid)===M}):void 0},w);return k}}),(0,o.default)(this,"getFieldValue",function(b,x){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,w=typeof b[x.field]<"u"?b[x.field]:(0,l.selectFromObject)(b,x.field);return x.lookup&&_&&(w=x.lookup[w]),w}),(0,o.default)(this,"getRenderState",function(){return g.filtered===!1&&g.filterData(),g.searched===!1&&g.searchData(),g.grouped===!1&&g.isDataType("group")&&g.groupData(),g.treefied===!1&&g.isDataType("tree")&&g.treefyData(),g.sorted===!1&&g.sortData(),g.paged===!1&&g.pageData(),{columns:g.columns,currentPage:g.currentPage,data:g.sortedData,lastEditingRow:g.lastEditingRow,orderByCollection:g.orderByCollection,maxColumnSort:g.maxColumnSort,originalData:(0,r.default)(g.data),pageSize:g.pageSize,renderData:g.pagedData,searchText:g.searchText,selectedCount:g.selectedCount,treefiedDataLength:g.treefiedDataLength,treeDataMaxLevel:g.treeDataMaxLevel,groupedDataLength:g.groupedDataLength,tableStyleWidth:g.tableStyleWidth}}),(0,o.default)(this,"filterData",function(){g.searched=g.grouped=g.treefied=g.sorted=g.paged=!1,g.filteredData=(0,r.default)(g.data),g.applyFilters&&g.columns.filter(function(b){return b.tableData.filterValue!==void 0}).forEach(function(b){var x=b.lookup,_=b.type,w=b.tableData;b.customFilterAndSearch?g.filteredData=g.filteredData.filter(function(k){return!!b.customFilterAndSearch(w.filterValue,k,b)}):x?g.filteredData=g.filteredData.filter(function(k){var T=g.getFieldValue(k,b,!1);return!w.filterValue||w.filterValue.length===0||w.filterValue.indexOf(T!=null&&T.toString())>-1}):_==="numeric"?g.filteredData=g.filteredData.filter(function(k){var T=g.getFieldValue(k,b);return T+""===w.filterValue}):_==="boolean"&&w.filterValue?g.filteredData=g.filteredData.filter(function(k){var T=g.getFieldValue(k,b);return T&&w.filterValue==="checked"||!T&&w.filterValue==="unchecked"}):["date","datetime"].includes(_)?g.filteredData=g.filteredData.filter(function(k){var T=g.getFieldValue(k,b),M=T?new Date(T):null;if(M&&M.toString()!=="Invalid Date"){var S=w.filterValue,C="",P="";return _==="date"?(C=(0,a.default)(M,"MM/dd/yyyy"),P=(0,a.default)(S,"MM/dd/yyyy")):_==="datetime"&&(C=(0,a.default)(M,"MM/dd/yyyy - HH:mm"),P=(0,a.default)(S,"MM/dd/yyyy - HH:mm")),C===P}return!0}):_==="time"?g.filteredData=g.filteredData.filter(function(k){var T=g.getFieldValue(k,b),M=T||null;if(M){var S=w.filterValue,C=(0,a.default)(S,"HH:mm");return M===C}return!0}):g.filteredData=g.filteredData.filter(function(k){var T=g.getFieldValue(k,b);return T!=null&&T.toString().toUpperCase().includes(w.filterValue.toUpperCase())})}),g.filtered=!0}),(0,o.default)(this,"searchData",function(){if(g.grouped=g.treefied=g.sorted=g.paged=!1,g.searchedData=(0,r.default)(g.filteredData),g.searchText&&g.applySearch){var b=g.searchText.trim();g.searchedData=g.searchedData.filter(function(x){return g.columns.filter(function(_){return _.searchable===void 0?!_.hidden:_.searchable}).some(function(_){if(_.customFilterAndSearch)return!!_.customFilterAndSearch(b,x,_);if(_.field){var w=g.getFieldValue(x,_);if(w)return w.toString().toUpperCase().includes(b.toUpperCase())}return!1})})}g.searched=!0}),(0,o.default)(this,"clearCriteria",function(){g.changeOrder(-1,""),g.changeSearchText("");var b=h(g.columns),x;try{for(b.s();!(x=b.n()).done;){var _=x.value;g.changeFilterValue(_.tableData.id,"")}}catch(w){b.e(w)}finally{b.f()}g.changeSearchText(""),g.changePaging(0)})}return(0,u.default)(v,[{key:"setData",value:function(b,x){var _=this;this.selectedCount=0;var w={};this.data.length!==0&&this.data[0][x]!==void 0&&(w=this.data.reduce(function(k,T){return k[T.tableData.id]=T.tableData,k},{})),this.data=b.map(function(k,T){var M=w[k[x]]||{},S=d(d({index:T,id:k[x]||T,uuid:k.uuid||(0,n.v4)()},M),k.tableData);S.checked&&_.selectedCount++;var C=d(d({},k),{},{tableData:S});return _.lastDetailPanelRow&&_.lastDetailPanelRow.tableData===M&&(_.lastDetailPanelRow=C),_.lastEditingRow&&_.lastEditingRow.tableData===M&&(_.lastEditingRow=C),C}),this.filtered=!1}},{key:"setTableWidth",value:function(b){this.tableWidth=b}},{key:"setColumns",value:function(b){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},w=0,k=[];this.columns=b.map(function(S,C){var P,D=(0,f.widthToNumber)(S.width),O=typeof S.width=="number"?S.width+"px":S.width;O&&(isNaN(D)?k.push(O):w+=D);var R=x.find(function(z){var B=z.id;return B===C}),F=(P=_[S.field])!==null&&P!==void 0?P:{},A=d(d(d(d({columnOrder:C,filterValue:S.defaultFilter,groupOrder:S.defaultGroupOrder,groupSort:S.defaultGroupSort||"asc",width:O,initialWidth:O,widthPx:isNaN(D)?void 0:D,additionalWidth:0},F),R?R.tableData:{}),S.tableData),{},{id:C});return S.tableData=A,S});var T=this.columns.filter(function(S){return S.hidden||S.columnDef&&S.columnDef.tableData&&S.columnDef.tableData.width?!1:S.width===void 0}),M=(w!==0?"".concat(w,"px"):"0px")+(k.length>0?" - "+k.join(" - "):"");T.forEach(function(S){S.tableData.width=S.tableData.initialWidth="calc((100% - ".concat(M,") / ").concat(T.length,")")}),this.tableStyleWidth=this.tableWidth==="full"||T.length>0||k.length>0?"100%":w}},{key:"setDefaultExpanded",value:function(b){this.defaultExpanded=b}},{key:"setClientSorting",value:function(b){this.clientSorting=!!b}},{key:"setMaxColumnSort",value:function(b){var x=this.columns.filter(function(_){return _.sorting!==!1}).length;b===s.ALL_COLUMNS?this.maxColumnSort=x:this.maxColumnSort=Math.min(b,x)}},{key:"setOrderByCollection",value:function(){var b=this.getOrderByCollection(),x=this.columns.map(function(_){var w=_.tableData.id,k=b.find(function(T){return T.orderBy===w});return k?d({},k):{orderBy:_.tableData.id,sortOrder:void 0,orderDirection:""}});x=this.sortOrderCollection(x),this.orderByCollection=(0,r.default)(x)}},{key:"setDefaultOrderByCollection",value:function(b){this.defaultOrderByCollection=(0,r.default)(b)}},{key:"getDefaultOrderByCollection",value:function(){return this.defaultOrderByCollection}},{key:"changeApplySearch",value:function(b){this.applySearch=b,this.searched=!1}},{key:"changeApplyFilters",value:function(b){this.applyFilters=b,this.filtered=!1}},{key:"changeApplySort",value:function(b){this.applySort=b,this.sorted=!1}},{key:"changePaging",value:function(b){this.paging=b,this.paged=!1}},{key:"changeCurrentPage",value:function(b){this.currentPage=b,this.paged=!1}},{key:"changePageSize",value:function(b){this.pageSize=b,this.paged=!1}},{key:"changeParentFunc",value:function(b){this.parentFunc=b}},{key:"changeFilterValue",value:function(b,x){var _=this.columns.find(function(w){return w.tableData.id===b});_.tableData.filterValue=x,this.filtered=!1}},{key:"changeRowSelected",value:function(b,x){var _=this,w=this.findDataByPath(this.sortedData,x);w.tableData.checked=b,this.selectedCount=this.selectedCount+(b?1:-1);var k=function T(M){M.tableData.childRows&&M.tableData.childRows.forEach(function(S){S.tableData.checked!==b&&(S.tableData.checked=b,_.selectedCount=_.selectedCount+(b?1:-1)),T(S)})};k(w),this.filtered=!1}},{key:"changeDetailPanelVisibility",value:function(b,x){var _=this.findDataByPath(this.sortedData,b);(_.tableData.showDetailPanel||"").toString()===x.toString()?_.tableData.showDetailPanel=void 0:_.tableData.showDetailPanel=x,this.detailPanelType==="single"&&this.lastDetailPanelRow&&this.lastDetailPanelRow!==_&&(this.lastDetailPanelRow.tableData.showDetailPanel=void 0),this.lastDetailPanelRow=_}},{key:"changeGroupExpand",value:function(b){var x=this.findDataByPath(this.sortedData,b);x.isExpanded=!x.isExpanded}},{key:"changeSearchText",value:function(b){this.searchText=b,this.searched=!1,this.currentPage=0}},{key:"changeSearchDebounce",value:function(b){this.searchDebounceDelay=b}},{key:"changeRowEditing",value:function(b,x){b?(b.tableData.editing=x,this.lastEditingRow&&this.lastEditingRow!==b&&(this.lastEditingRow.tableData.editing=void 0),x?this.lastEditingRow=b:this.lastEditingRow=void 0):this.lastEditingRow&&(this.lastEditingRow.tableData.editing=void 0,this.lastEditingRow=void 0)}},{key:"changeBulkEditOpen",value:function(b){this.bulkEditOpen=b}},{key:"changeAllSelected",value:function(b,x){var _=0,w=function(S){var C=x instanceof Function?x(S):{disabled:!1};return S.tableData.disabled||C.disabled?!1:b};if(this.isDataType("group")){var k=function M(S){S.forEach(function(C){C.groups.length>0?M(C.groups):C.data.forEach(function(P){P.tableData.checked=w(P),_++})})};k(this.groupedData)}else{var T=function M(S){S.tableData.childRows&&S.tableData.childRows.forEach(function(C){C.tableData.checked=w(S),M(C)})};this.searchedData.forEach(function(M){M.tableData.checked=w(M),T(M)}),_=this.searchedData.length}this.selectedCount=b?_:0}},{key:"changeColumnOrder",value:function(b,x,_){var w=[],k=this.getOrderByCollection();k.length===this.maxColumnSort&&!_?(this.orderByCollection[0].orderDirection="",this.orderByCollection[0].sortOrder=void 0,w=this.orderByCollection.map(function(T){return T.sortOrder?T.sortOrder-=1:T.orderBy===b&&x&&(T.sortOrder=k.length,T.orderDirection=x),T})):w=this.orderByCollection.map(function(T){return T.orderBy===b&&x?(T.orderDirection=x,T.sortOrder=_||k.length+1):!x&&T.orderBy===b?(T.orderDirection=x,T.sortOrder=void 0):!x&&_-1}).sort(function(W,G){return W.tableData.groupOrder-G.tableData.groupOrder});if(b.destination.droppableId==="groups"&&b.source.droppableId==="groups"){x=Math.min(b.destination.index,b.source.index);var w=Math.max(b.destination.index,b.source.index);if(_=_.slice(x,w+1),b.destination.index-1})&&(x="group"),b===x}},{key:"sort",value:function(b,x,_){if(_==="numeric")return b-x;if(b!==x){if(!b)return-1;if(!x)return 1}return bx?1:0}},{key:"sortList",value:function(b){if(!this.clientSorting)return b;var x=this.orderByCollection.map(function(M){return M.orderBy}),_=new Map;this.columns.forEach(function(M){var S=M.tableData.id;x.includes(S)&&_.set(S,M)});var w=this.sort,k=this.getFieldValue,T=this.orderByCollection;return b.sort(function M(S,C){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_,D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:T,O=D[0],R=O.orderBy,F=O.orderDirection,A=P.get(R),z=0;A.customSort?F==="desc"?z=A.customSort(C,S,"row",F):z=A.customSort(S,C,"row",F):(z=w(k(S,A),k(C,A),A.type),z=F.toLowerCase()==="desc"?z*-1:z);var B=z===0&&D.filter(function($){return $.sortOrder!==void 0}).length!==1;return B?M(S,C,P,D.slice(1)):z})}},{key:"groupData",value:function(){var b=this;this.sorted=this.paged=!1,this.groupedDataLength=0;var x=(0,r.default)(this.searchedData),_=this.columns.filter(function(k){return k.tableData.groupOrder>-1}).sort(function(k,T){return k.tableData.groupOrder-T.tableData.groupOrder}),w=x.reduce(function(k,T){var M=k;return M=_.reduce(function(S,C){var P=T[C.field]||(0,l.selectFromObject)(T,C.field),D;if(S.groupsIndex[P]!==void 0&&(D=S.groups[S.groupsIndex[P]]),!D){var O=[].concat((0,r.default)(S.path||[]),[P]),R=b.findGroupByGroupPath(b.groupedData,O)||{isExpanded:typeof b.defaultExpanded=="boolean"?b.defaultExpanded:!1};D={value:P,groups:[],groupsIndex:{},data:[],isExpanded:R.isExpanded,path:O},S.groups.push(D),S.groupsIndex[P]=S.groups.length-1}return D},M),M.data.push(T),b.groupedDataLength++,k},{groups:[],groupsIndex:{}});this.groupedData=w.groups,this.grouped=!0,this.rootGroupsIndex=w.groupsIndex}},{key:"treefyData",value:function(){var b=this;this.sorted=this.paged=!1,this.data.forEach(function(T){return T.tableData.childRows=null}),this.treefiedData=[],this.treefiedDataLength=0,this.treeDataMaxLevel=0,(this.searchText||this.columns.some(function(T){return T.tableData.filterValue}))&&(this.data.forEach(function(T){T.tableData.isTreeExpanded=!1}),this.expandTreeForNodes(this.searchedData));var x=function T(M){M.tableData.markedForTreeRemove=!1;var S=b.parentFunc(M,b.data);S?(S.tableData.childRows=S.tableData.childRows||[],S.tableData.childRows.includes(M)||(S.tableData.childRows.push(M),b.treefiedDataLength++),T(S),M.tableData.path=[].concat((0,r.default)(S.tableData.path),[M.tableData.uuid]),b.treeDataMaxLevel=Math.max(b.treeDataMaxLevel,M.tableData.path.length)):b.treefiedData.includes(M)||(b.treefiedData.push(M),b.treefiedDataLength++,M.tableData.path=[M.tableData.uuid])};this.data.forEach(function(T){x(T)});var _=function(M){var S=b.treefiedData;M.tableData.path.forEach(function(C){S.tableData&&S.tableData.childRows&&(S=S.tableData.childRows),Array.isArray(S)&&(S=S.find(function(P){return P.tableData.uuid===C}))}),S.tableData.markedForTreeRemove=!0},w=function T(M){M.tableData.childRows&&M.tableData.childRows.forEach(function(S){T(S)}),M.tableData.markedForTreeRemove=!1};this.data.forEach(function(T){if(!b.searchText&&!b.columns.some(function(C){return C.tableData.filterValue})&&T.tableData.isTreeExpanded===void 0){var M=typeof b.defaultExpanded=="boolean"?b.defaultExpanded:b.defaultExpanded(T);T.tableData.isTreeExpanded=M}var S=T.tableData.isTreeExpanded;!S&&b.searchedData.indexOf(T)<0&&_(T)}),this.data.forEach(function(T){b.searchedData.indexOf(T)>-1&&w(T)});var k=function T(M){for(var S=M.length-1;S>=0;S--){var C=M[S];C.tableData.childRows&&T(C.tableData.childRows),C.tableData.markedForTreeRemove&&M.splice(S,1)}};k(this.treefiedData),this.treefiedDataLength=this.treefiedData.length,this.treefied=!0}},{key:"sortData",value:function(){var b=this;if(this.paged=!1,this.isDataType("group")){this.sortedData=(0,r.default)(this.groupedData);var x=this.columns.filter(function(M){return M.tableData.groupOrder>-1}).sort(function(M,S){return M.tableData.groupOrder-S.tableData.groupOrder}),_=function(S,C){return C.customSort?S.sort(C.tableData.groupSort==="desc"?function(P,D){return C.customSort(D.value,P.value,"group",C.tableData.groupSort)}:function(P,D){return C.customSort(P.value,D.value,"group",C.tableData.groupSort)}):S.sort(C.tableData.groupSort==="desc"?function(P,D){return b.sort(D.value,P.value,C.type)}:function(P,D){return b.sort(P.value,D.value,C.type)})};this.sortedData=_(this.sortedData,x[0]);var w=function(S){return S.reduce(function(C,P){return C[P.value]=S.findIndex(function(D){return D.value===P.value}),C},{})},k=function M(S,C){S.forEach(function(P){if(P.groups.length>0){var D=x[C];P.groups=_(P.groups,D),P.groupsIndex=w(P.groups),M(P.groups,C+1)}else b.maxColumnSort>0&&b.getOrderByCollection().length>0?P.data=b.sortList(P.data):b.maxColumnSort>0&&(P.data=P.data.sort(function(O,R){return b.data.findIndex(function(F){return F.tableData.id===O.tableData.id})-b.data.findIndex(function(F){return F.tableData.id===R.tableData.id})}))})};k(this.sortedData,1)}else if(this.isDataType("tree")){if(this.sortedData=(0,r.default)(this.treefiedData),this.maxColumnSort>0&&this.getOrderByCollection().length>0){this.sortedData=this.sortList(this.sortedData);var T=function M(S){S.forEach(function(C){C.tableData.childRows&&(C.tableData.childRows=b.sortList(C.tableData.childRows),M(C.tableData.childRows))})};T(this.sortedData)}}else this.isDataType("normal")&&(this.sortedData=(0,r.default)(this.searchedData),this.maxColumnSort>0&&this.getOrderByCollection().length>0&&this.applySort&&(this.sortedData=this.sortList(this.sortedData)));this.sorted=!0}},{key:"pageData",value:function(){if(this.pagedData=(0,r.default)(this.sortedData),this.paging){var b=this.currentPage*this.pageSize,x=b+this.pageSize;this.pagedData=this.pagedData.slice(b,x)}this.paged=!0}}]),v}();e.default=y}(Lm)),Lm}var K3;function CY(){return K3||(K3=1,function(e){var t=vn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(cY),u=t(fY),o=t(Ai),a=t(hr()),n=t(Bo),l=t($l()),f=t(dY),s=t(Ur()),c=t(ao()),d=t(Dd()),h=t(Ed()),p=t(by()),m=t(yy()),y=t(xy()),v=t(wy()),g=t(Jr()),b=t($e),x=hY(),_=t(_S()),w=C(Ri()),k=x1,T=t(SY()),M=Kd();function S(B){if(typeof WeakMap!="function")return null;var $=new WeakMap,j=new WeakMap;return(S=function(E){return E?j:$})(B)}function C(B,$){if(B&&B.__esModule)return B;if(B===null||r(B)!=="object"&&typeof B!="function")return{default:B};var j=S($);if(j&&j.has(B))return j.get(B);var N={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var W in B)if(W!=="default"&&Object.prototype.hasOwnProperty.call(B,W)){var G=E?Object.getOwnPropertyDescriptor(B,W):null;G&&(G.get||G.set)?Object.defineProperty(N,W,G):N[W]=B[W]}return N.default=B,j&&j.set(B,N),N}function P(B,$){var j=Object.keys(B);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(B);$&&(N=N.filter(function(E){return Object.getOwnPropertyDescriptor(B,E).enumerable})),j.push.apply(j,N)}return j}function D(B){for(var $=1;$"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var F=function(B){(0,m.default)(j,B);var $=O(j);function j(N){var E;(0,d.default)(this,j),E=$.call(this,N),(0,g.default)((0,p.default)(E),"dataManager",new T.default),(0,g.default)((0,p.default)(E),"checkedForFunctions",!1),(0,g.default)((0,p.default)(E),"clearCriteria",function(){E.dataManager.clearCriteria(),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,p.default)(E),"isRemoteData",function(L){return!Array.isArray((L||E.props).data)}),(0,g.default)((0,p.default)(E),"onAllSelected",function(L){E.dataManager.changeAllSelected(L,E.props.options.selectionProps),E.setState(E.dataManager.getRenderState(),function(){return E.onSelectionChange()})}),(0,g.default)((0,p.default)(E),"onGroupSelected",function(L,q){E.dataManager.changeGroupSelected(L,q),E.setState(E.dataManager.getRenderState(),function(){return E.onSelectionChange()})}),(0,g.default)((0,p.default)(E),"onChangeColumnHidden",function(L,q){E.dataManager.changeColumnHidden(L,q),E.setState(E.dataManager.getRenderState(),function(){E.props.onChangeColumnHidden&&E.props.onChangeColumnHidden(L,q)})}),(0,g.default)((0,p.default)(E),"onChangeGroupOrder",function(L){E.dataManager.changeGroupOrder(L.tableData.id),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,p.default)(E),"onChangeOrder",function(L,q,H){E.dataManager.changeColumnOrder(L,q,H);var V=E.dataManager.getOrderByCollection();if(E.isRemoteData()){var te=D({},E.state.query);te.page=0,te.orderBy=E.state.columns.find(function(ee){return ee.tableData.id===L}),te.orderDirection=q,console.warn("Properties orderBy and orderDirection had been deprecated when remote data, please start using orderByCollection instead"),te.orderByCollection=V,E.onQueryChange(te,function(){E.props.onOrderChange&&E.props.onOrderChange(L,q),E.props.onOrderCollectionChange&&E.props.onOrderCollectionChange(V)})}else E.setState(E.dataManager.getRenderState(),function(){E.props.onOrderChange&&E.props.onOrderChange(L,q),E.props.onOrderCollectionChange&&E.props.onOrderCollectionChange(V)})}),(0,g.default)((0,p.default)(E),"onPageChange",function(L,q){if(E.isRemoteData()){var H=D({},E.state.query);H.page=q,E.onQueryChange(H,function(){E.props.onPageChange&&E.props.onPageChange(q,H.pageSize)})}else E.dataManager.changeCurrentPage(q),E.setState(E.dataManager.getRenderState(),function(){E.props.onPageChange&&E.props.onPageChange(q,E.state.pageSize)})}),(0,g.default)((0,p.default)(E),"onRowsPerPageChange",function(L){var q=L.target.value;E.dataManager.changePageSize(q);var H=function(){E.props.onPageChange&&E.props.onPageChange(0,q),E.props.onRowsPerPageChange&&E.props.onRowsPerPageChange(q)};if(E.isRemoteData()){var V=D({},E.state.query);V.pageSize=L.target.value,V.page=0,E.onQueryChange(V,H)}else E.dataManager.changeCurrentPage(0),E.setState(E.dataManager.getRenderState(),H)}),(0,g.default)((0,p.default)(E),"onDragEnd",function(L){!L||!L.source||!L.destination||(E.dataManager.changeByDrag(L),E.setState(E.dataManager.getRenderState(),function(){E.props.onColumnDragged&&L.destination.droppableId==="headers"&&L.source.droppableId==="headers"&&E.props.onColumnDragged(L.source.index,L.destination.index)}))}),(0,g.default)((0,p.default)(E),"onGroupExpandChanged",function(L){E.dataManager.changeGroupExpand(L),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,p.default)(E),"onGroupRemoved",function(L,q){var H={combine:null,destination:{droppableId:"headers",index:0},draggableId:L.tableData.id,mode:"FLUID",reason:"DROP",source:{index:q,droppableId:"groups"},type:"DEFAULT"};E.dataManager.changeByDrag(H),E.setState(E.dataManager.getRenderState(),function(){E.props.onGroupRemoved&&E.props.onGroupRemoved(L,q)})}),(0,g.default)((0,p.default)(E),"onEditingApproved",function(L,q,H){L==="add"&&E.props.editable&&E.props.editable.onRowAdd?E.setState({isLoading:!0},function(){E.props.editable.onRowAdd(q).then(function(V){E.setState({isLoading:!1,showAddRow:!1},function(){E.isRemoteData()&&E.onQueryChange(E.state.query)})}).catch(function(V){var te={message:V,errorCause:"add"};E.setState({isLoading:!1,errorState:te})})}):L==="update"&&E.props.editable&&E.props.editable.onRowUpdate?E.setState({isLoading:!0},function(){E.props.editable.onRowUpdate(q,H).then(function(V){E.dataManager.changeRowEditing(H),E.setState(D({isLoading:!1},E.dataManager.getRenderState()),function(){E.isRemoteData()&&E.onQueryChange(E.state.query)})}).catch(function(V){var te={message:V,errorCause:"update"};E.setState({isLoading:!1,errorState:te})})}):L==="delete"&&E.props.editable&&E.props.editable.onRowDelete?E.setState({isLoading:!0},function(){E.props.editable.onRowDelete(Object.entries(H).reduce(function(V,te){var ee=(0,c.default)(te,2),U=ee[0],Q=ee[1];return U!=="tableData"&&(V[U]=Q),V},{})).then(function(V){E.dataManager.changeRowEditing(H),E.setState(D({isLoading:!1},E.dataManager.getRenderState()),function(){E.isRemoteData()&&E.onQueryChange(E.state.query)})}).catch(function(V){var te={message:V,errorCause:"delete"};E.setState({isLoading:!1,errorState:te})})}):L==="bulk"&&E.props.editable&&E.props.editable.onBulkUpdate&&E.setState({isLoading:!0},function(){E.props.editable.onBulkUpdate(E.dataManager.bulkEditChangedRows).then(function(V){E.dataManager.changeBulkEditOpen(!1),E.props.onBulkEditOpen&&E.props.onBulkEditOpen(!1),E.dataManager.clearBulkEditChangedRows(),E.setState(D({isLoading:!1},E.dataManager.getRenderState()),function(){E.isRemoteData()&&E.onQueryChange(E.state.query)})}).catch(function(V){var te={message:V,errorCause:"bulk edit"};E.setState({isLoading:!1,errorState:te})})})}),(0,g.default)((0,p.default)(E),"onEditingCanceled",function(L,q){L==="add"?(E.props.editable.onRowAddCancelled&&E.props.editable.onRowAddCancelled(),E.setState({showAddRow:!1})):L==="update"?(E.props.editable.onRowUpdateCancelled&&E.props.editable.onRowUpdateCancelled(),E.dataManager.changeRowEditing(q),E.setState(E.dataManager.getRenderState())):L==="delete"&&(E.dataManager.changeRowEditing(q),E.setState(E.dataManager.getRenderState()))}),(0,g.default)((0,p.default)(E),"retry",function(){E.onQueryChange(E.state.query)}),(0,g.default)((0,p.default)(E),"onQueryChange",function(L,q){L=D(D(D({},E.state.query),L),{},{error:E.state.errorState}),E.setState({isLoading:!0,errorState:void 0},function(){E.props.data(L).then(function(H){L.totalCount=H.totalCount,L.page=H.page;var V=D(D({},L),{},{totalCount:H.totalCount,page:H.page});E.dataManager.setData(H.data,E.props.options.idSynonym),E.setState(D(D({isLoading:!1,errorState:!1},E.dataManager.getRenderState()),{},{query:V}),function(){q&&q()})}).catch(function(H){var V={message:(0,s.default)(H)==="object"?H.message:H!==void 0?H:E.props.localization.error,errorCause:"query"};E.setState(D({isLoading:!1,errorState:V},E.dataManager.getRenderState()))})})}),(0,g.default)((0,p.default)(E),"onRowSelected",function(L,q,H){E.dataManager.changeRowSelected(L.target.checked,q),E.setState(E.dataManager.getRenderState(),function(){return E.onSelectionChange(H)})}),(0,g.default)((0,p.default)(E),"onSelectionChange",function(L){if(E.props.onSelectionChange){var q=[],H=function(te){te.forEach(function(ee){ee.tableData.checked&&q.push(ee)})};H(E.state.originalData),E.props.onSelectionChange(q,L)}}),(0,g.default)((0,p.default)(E),"onSearchChangeDebounce",(0,x.debounce)(function(L){if(E.isRemoteData()){var q=D({},E.state.query);q.page=0,q.search=L,E.onQueryChange(q,function(){E.props.onSearchChange&&E.props.onSearchChange(L)})}else E.setState(E.dataManager.getRenderState(),function(){E.props.onSearchChange&&E.props.onSearchChange(L)})},E.props.options.debounceInterval)),(0,g.default)((0,p.default)(E),"onFilterChange",function(L,q){E.dataManager.changeFilterValue(L,q),E.setState({},E.onFilterChangeDebounce)}),(0,g.default)((0,p.default)(E),"onFilterChangeDebounce",(0,x.debounce)(function(){if(E.isRemoteData()){var L=D({},E.state.query);L.page=0,L.filters=E.state.columns.filter(function(q){return q.tableData.filterValue}).map(function(q){return{column:q,operator:"=",value:q.tableData.filterValue}}),E.onQueryChange(L,function(){E.props.onFilterChange&&E.props.onFilterChange(L.filters)})}else E.setState(E.dataManager.getRenderState(),function(){if(E.props.onFilterChange){var q=E.state.columns.filter(function(H){return H.tableData.filterValue}).map(function(H){return{column:H,operator:"=",value:H.tableData.filterValue}});E.props.onFilterChange(q)}})},E.props.options.debounceInterval)),(0,g.default)((0,p.default)(E),"onTreeExpandChanged",function(L,q){E.dataManager.changeTreeExpand(L),E.setState(E.dataManager.getRenderState(),function(){E.props.onTreeExpandChange&&E.props.onTreeExpandChange(q,q.tableData.isTreeExpanded)})}),(0,g.default)((0,p.default)(E),"onToggleDetailPanel",function(L,q){E.dataManager.changeDetailPanelVisibility(L,q),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,p.default)(E),"onCellEditStarted",function(L,q){E.dataManager.startCellEditable(L,q),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,p.default)(E),"onCellEditFinished",function(L,q){E.dataManager.finishCellEditable(L,q),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,p.default)(E),"onEditRowDataChanged",function(L,q){E.dataManager.setEditRowData(L,q),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,p.default)(E),"onColumnResized",function(L,q,H,V){var te=function(Q){return D(D(D({field:Q.field,width:Q.tableData.width,widthPx:Q.tableData.widthPx},Q.id&&{id:Q.id}),Q.minWidth&&{minWidth:Q.minWidth}),Q.maxWidth&&{maxWidth:Q.maxWidth})},ee=E.dataManager.onColumnResized(L,q,H,V);E.setState(E.dataManager.getRenderState(),function(){q===0&&E.props.onColumnResized&&ee.length>0&&E.props.onColumnResized(ee.map(function(U){return te(U)}),E.state.columns.map(function(U){return te(U)}))})}),(0,g.default)((0,p.default)(E),"renderTable",function(L){var q;return b.default.createElement(f.default,{sx:L.sx,style:D(D({},L.options.tableWidth==="variable"&&{width:E.state.tableStyleWidth}),{},{tableLayout:L.options.fixedColumns&&(L.options.fixedColumns.left||L.options.fixedColumns.right)?"fixed":L.options.tableLayout})},L.options.header&&b.default.createElement(L.components.Header,{actions:E.state.actions,columns:E.state.columns,selectedCount:E.state.selectedCount,dataCount:L.parentChildData?E.dataManager.searchedData.length:E.state.columns.some(function(H){return H.tableData.groupOrder>-1})?E.state.groupedDataLength:E.state.data.length,hasDetailPanel:!!L.detailPanel,showActionsColumn:!E.dataManager.bulkEditOpen&&E.state.actions&&E.state.actions.some(function(H){return H.position==="row"||typeof H=="function"}),onAllSelected:E.onAllSelected,onOrderChange:E.onChangeOrder,isTreeData:E.props.parentChildData!==void 0,treeDataMaxLevel:E.state.treeDataMaxLevel,onColumnResized:E.onColumnResized,scrollWidth:E.state.width,sorting:L.options.sorting||E.dataManager.maxColumnSort!==0,allowSorting:E.dataManager.maxColumnSort!==0,orderByCollection:E.dataManager.getOrderByCollection(),tableWidth:(q=L.options.tableWidth)!==null&&q!==void 0?q:"full"}),b.default.createElement(L.components.Body,{actions:E.state.actions,components:E.props.components,renderData:E.state.renderData,data:E.state.data,renderSummaryRow:E.props.renderSummaryRow,currentPage:E.isRemoteData()?0:E.state.currentPage,initialFormData:L.initialFormData,pageSize:E.state.pageSize,columns:E.state.columns,errorState:E.state.errorState,detailPanel:L.detailPanel,options:L.options,getFieldValue:E.dataManager.getFieldValue,isTreeData:E.props.parentChildData!==void 0,onFilterChanged:E.onFilterChange,onRowSelected:E.onRowSelected,onGroupSelected:E.onGroupSelected,onToggleDetailPanel:E.onToggleDetailPanel,onGroupExpandChanged:E.onGroupExpandChanged,onTreeExpandChanged:E.onTreeExpandChanged,onEditingCanceled:E.onEditingCanceled,onEditingApproved:E.onEditingApproved,onRowClick:E.props.onRowClick,onRowDoubleClick:E.props.onRowDoubleClick,showAddRow:E.state.showAddRow,hasAnyEditingRow:!!(E.state.lastEditingRow||E.state.showAddRow),hasDetailPanel:!!L.detailPanel,treeDataMaxLevel:E.state.treeDataMaxLevel,cellEditable:L.cellEditable,onCellEditStarted:E.onCellEditStarted,onCellEditFinished:E.onCellEditFinished,onRowEditStarted:E.onRowEditStarted,bulkEditOpen:E.dataManager.bulkEditOpen,bulkEditChangedRows:E.dataManager.bulkEditChangedRows,onBulkEditRowChanged:E.dataManager.onBulkEditRowChanged,scrollWidth:E.state.width}))}),(0,g.default)((0,p.default)(E),"onRowEditStarted",function(L){var q;(q=E.props.editable)!==null&&q!==void 0&&q.onRowUpdate&&(E.dataManager.changeRowEditing(L,"update"),E.setState(D(D({},E.dataManager.getRenderState()),{},{showAddRow:!1})))}),(0,g.default)((0,p.default)(E),"getColumnsWidth",function(L,q){var H=[],V=w.actionsColumnWidth(L);if(V>0&&(q>0&&L.options.actionsColumnIndex>=0&&L.options.actionsColumnIndex=q)&&H.push(V+"px"),L.options.selection&&q>0){var te=w.selectionMaxWidth(L,E.state.treeDataMaxLevel);H.push(te+"px")}for(var ee=0;ee=0?ee:E.state.columns.length-1-ee];U.tableData&&(typeof U.tableData.width=="number"?H.push(U.tableData.width+"px"):H.push(U.tableData.width))}return"calc("+H.join(" + ")+")"}),(0,g.default)((0,p.default)(E),"getRenderData",function(){return E.props.options.exportAllData?E.state.data:E.state.renderData});var W=E.getProps(N);E.setDataManagerFields(W,!0);var G=E.dataManager.getRenderState();return E.state=D(D({data:[],errorState:void 0},G),{},{query:{filters:G.columns.filter(function(L){return L.tableData.filterValue}).map(function(L){return{column:L,operator:"=",value:L.tableData.filterValue}}),orderBy:G.columns.find(function(L){return L.tableData.id===G.orderBy}),orderDirection:G.orderDirection,orderByCollection:G.orderByCollection,page:0,pageSize:W.options.pageSize,search:G.searchText,totalCount:0},showAddRow:!1,bulkEditOpen:!1,width:0,tableInitialWidthPx:void 0,tableStyleWidth:"100%",actions:W.actions}),E.tableContainerDiv=b.default.createRef(),E}return(0,h.default)(j,[{key:"componentDidMount",value:function(){var E=this;this.setState(D(D({},this.dataManager.getRenderState()),{},{width:this.tableContainerDiv.current.scrollWidth}),function(){E.isRemoteData()&&E.onQueryChange(D(D({},E.state.query),{},{page:E.props.options.initialPage||0})),E.props.onDoubleRowClick!==void 0&&console.warn("Property `onDoubleRowClick` has been renamed to `onRowDoubleClick`"),E.props.options.sorting!==void 0&&console.warn("Property `sorting` has been deprecated, please start using `maxColumnSort` instead. https://github.com/material-table-core/core/pull/619")})}},{key:"setDataManagerFields",value:function(E,W,G){var L,q=this,H={};if(E.options.persistentGroupingsId&&localStorage){var V=localStorage.getItem("material-table-groupings");V&&(V=JSON.parse(V),V[E.options.persistentGroupingsId]&&V[E.options.persistentGroupingsId].forEach(function(Te){H[Te.field]={groupOrder:Te.groupOrder,groupSort:Te.groupSort,columnOrder:Te.columnOrder}}))}this.dataManager.setTableWidth((L=E.options.tableWidth)!==null&&L!==void 0?L:"full"),this.dataManager.setColumns(E.columns,G,H),this.dataManager.setDefaultExpanded(E.options.defaultExpanded),this.dataManager.changeRowEditing();var te=E.options,ee=te.clientSorting,U=te.grouping,Q=te.maxColumnSort;this.dataManager.setClientSorting(ee),this.dataManager.setMaxColumnSort(U?1:Q),this.dataManager.setOrderByCollection(),this.isRemoteData(E)?(this.dataManager.changeApplySearch(!1),this.dataManager.changeApplyFilters(!1),this.dataManager.changeApplySort(!1)):(this.dataManager.changeApplySearch(!0),this.dataManager.changeApplyFilters(!0),this.dataManager.changeApplySort(!0),this.dataManager.setData(E.data,E.options.idSynonym));var Y=this.dataManager.getDefaultOrderByCollection(),Z=E.options.defaultOrderByCollection,X=[],re="",ie="";if(Z&&Z.length>0)X=(0,l.default)(Z).slice(0,Q),X=this.dataManager.sortOrderCollection(X),re=JSON.stringify(X),ie=JSON.stringify(Y),re!==ie&&this.dataManager.setDefaultOrderByCollection(X);else{var le=A(E.columns,G,this.dataManager.maxColumnSort);X=(0,l.default)(le[0]),re=JSON.stringify(X),ie=JSON.stringify((0,l.default)(le[1]))}var se=JSON.stringify(this.dataManager.orderByCollection),pe=W||!this.isRemoteData()&&X.length&&re!==ie&&re!==se;pe&&X.length>0&&Q>0&&X.forEach(function(Te){var Se=Te.orderBy,Oe=Te.orderDirection,Me=Te.sortOrder;return q.dataManager.changeColumnOrder(Se,Oe,Me)}),W&&this.dataManager.changeSearchText(E.options.searchText||""),W&&this.dataManager.changeSearchDebounce(E.options.searchDebounceDelay),W&&this.dataManager.changeCurrentPage(E.options.initialPage?E.options.initialPage:0),W&&this.dataManager.changePageSize(E.options.pageSize),this.dataManager.changePaging(this.isRemoteData()?!1:E.options.paging),W&&this.dataManager.changeParentFunc(E.parentChildData),this.dataManager.changeDetailPanelType(E.options.detailPanelType)}},{key:"cleanColumns",value:function(E){return E.map(function(W){var G=D({},W);return delete G.tableData,G})}},{key:"componentDidUpdate",value:function(E){var W=this.cleanColumns(E.columns),G=this.cleanColumns(this.props.columns),L=!(0,_.default)(W,G),q=L||!(0,_.default)(E.options,this.props.options);if(this.isRemoteData()||(q=q||!(0,_.default)(E.data,this.props.data)),E.options.pageSize!==this.props.options.pageSize&&this.dataManager.changePageSize(this.props.options.pageSize),q){var H=this.getProps(this.props);this.setDataManagerFields(H,!1,E.columns),this.setState(D(D({},this.dataManager.getRenderState()),{},{actions:H.actions}))}var V=this.isRemoteData()?this.state.query.totalCount:this.state.data.length,te=this.isRemoteData()?this.state.query.page:this.state.currentPage,ee=this.isRemoteData()?this.state.query.pageSize:this.state.pageSize;V<=ee*te&&te!==0&&!this.state.isLoading&&this.onPageChange(null,Math.max(0,Math.ceil(V/ee)-1))}},{key:"getProps",value:function(E){var W=this,G=D({},E||this.props),L=this.props.localization.body;if(G.options.selection?G.actions=G.actions.filter(function(H){return H}).map(function(H){return H.position==="auto"||H.isFreeAction===!1||H.position===void 0&&H.isFreeAction===void 0?typeof H=="function"?{action:H,position:"toolbarOnSelect"}:D(D({},H),{},{position:"toolbarOnSelect"}):H.isFreeAction?typeof H=="function"?{action:H,position:"toolbar"}:D(D({},H),{},{position:"toolbar"}):H}):G.actions=G.actions.filter(function(H){return H}).map(function(H){return H.position==="auto"||H.isFreeAction===!1||H.position===void 0&&H.isFreeAction===void 0?typeof H=="function"?{action:H,position:"row"}:D(D({},H),{},{position:"row"}):H.isFreeAction?typeof H=="function"?{action:H,position:"toolbar"}:D(D({},H),{},{position:"toolbar"}):H}),G.editable){var q;G.editable.onRowAdd&&G.actions.push({icon:G.icons.Add,tooltip:L.addTooltip,position:"toolbar",disabled:!!this.dataManager.lastEditingRow,onClick:function(){W.dataManager.changeRowEditing(),W.state.showAddRow&&W.props.editable.onRowAddCancelled&&W.props.editable.onRowAddCancelled(),W.setState(D(D({},W.dataManager.getRenderState()),{},{showAddRow:!W.state.showAddRow}))}}),G.editable.onRowUpdate&&G.actions.push(function(H){return{icon:G.icons.Edit,tooltip:G.editable.editTooltip?G.editable.editTooltip(H):L.editTooltip,disabled:G.editable.isEditable&&!G.editable.isEditable(H),hidden:G.editable.isEditHidden&&G.editable.isEditHidden(H),onClick:function(te,ee){W.onRowEditStarted(ee)}}}),G.editable.onRowDelete&&G.actions.push(function(H){return{icon:G.icons.Delete,tooltip:G.editable.deleteTooltip?G.editable.deleteTooltip(H):L.deleteTooltip,disabled:G.editable.isDeletable&&!G.editable.isDeletable(H),hidden:G.editable.isDeleteHidden&&G.editable.isDeleteHidden(H),onClick:function(te,ee){W.dataManager.changeRowEditing(ee,"delete"),W.setState(D(D({},W.dataManager.getRenderState()),{},{showAddRow:!1}))}}}),G.editable.onBulkUpdate&&(G.actions.push({icon:G.icons.Edit,tooltip:L.bulkEditTooltip,position:"toolbar",hidden:this.dataManager.bulkEditOpen,disabled:G.isBulkEditable&&G.isBulkEditable(),onClick:function(){W.dataManager.changeBulkEditOpen(!0),W.props.onBulkEditOpen&&W.props.onBulkEditOpen(!0),W.setState(W.dataManager.getRenderState())}}),G.actions.push({icon:G.icons.Check,tooltip:L.bulkEditApprove,position:"toolbar",hidden:!this.dataManager.bulkEditOpen,onClick:function(){return W.onEditingApproved("bulk")}}),G.actions.push({icon:G.icons.Clear,tooltip:L.bulkEditCancel,position:"toolbar",hidden:!this.dataManager.bulkEditOpen,onClick:function(){W.dataManager.changeBulkEditOpen(!1),W.props.onBulkEditOpen&&W.props.onBulkEditOpen(!1),W.dataManager.clearBulkEditChangedRows(),W.setState(W.dataManager.getRenderState())}})),(q=this.state)!==null&&q!==void 0&&q.showAddRow&&G.editable.onRowAdd&&G.actions.filter(function(H){return H.position==="row"}).length===0&&G.actions.push({icon:void 0,position:"row",onClick:function(){},disabled:!0})}return G}},{key:"renderFooter",value:function(){var E=this.getProps();if(E.options.paging){var W=this.isRemoteData()?Math.min(E.page,Math.floor(E.totalCount/this.state.pageSize)):this.state.currentPage,G=this.isRemoteData()?E.totalCount:this.state.data.length;return b.default.createElement(f.default,null,b.default.createElement(u.default,{style:{display:"grid"}},b.default.createElement(o.default,{style:{display:"grid"}},b.default.createElement(E.components.Pagination,{sx:{display:"flex",justifyContent:E.options.paginationAlignment?E.options.paginationAlignment:"flex-end",overflowX:"auto","& .MuiTablePagination-displayedRows":{display:"none"}},colSpan:3,count:this.isRemoteData()?this.state.query.totalCount:G,rowsPerPage:this.state.pageSize,rowsPerPageOptions:E.options.pageSizeOptions,SelectProps:{renderValue:function(q){return b.default.createElement(n.default,{sx:{padding:"0px 5px"}},q+" "+E.localization.pagination.labelRows+" ")}},page:this.isRemoteData()?this.state.query.page:W,onPageChange:this.onPageChange,onRowsPerPageChange:this.onRowsPerPageChange,ActionsComponent:function(q){return E.options.paginationType==="normal"?b.default.createElement(M.MTablePagination,(0,a.default)({},q,{showFirstLastPageButtons:E.options.showFirstLastPageButtons})):b.default.createElement(M.MTableSteppedPagination,(0,a.default)({},q,{showFirstLastPageButtons:E.options.showFirstLastPageButtons,numberOfPagesAround:E.options.numberOfPagesAround}))},labelRowsPerPage:E.localization.pagination.labelRowsPerPage}))))}}},{key:"render",value:function(){var E=this,W=this.getProps();return b.default.createElement(k.DragDropContext,{onDragEnd:this.onDragEnd,nonce:W.options.cspNonce},b.default.createElement(this.props.components.Container,{style:D({position:"relative"},W.style)},W.options.paginationPosition==="top"||W.options.paginationPosition==="both"?this.renderFooter():null,W.options.toolbar&&b.default.createElement(this.props.components.Toolbar,{actions:W.actions,components:this.props.components,originalData:this.state.originalData,columns:this.state.columns,selectedCount:this.state.selectedCount,getFieldValue:this.dataManager.getFieldValue,data:this.getRenderData,title:W.title,searchText:this.dataManager.searchText,searchDebounceDelay:this.dataManager.searchDebounceDelay,onSearchChanged:this.onSearchChangeDebounce,isRemoteData:this.isRemoteData(),dataManager:this.dataManager,onColumnsChanged:this.onChangeColumnHidden}),W.options.grouping&&b.default.createElement(this.props.components.Groupbar,{groupColumns:this.state.columns.filter(function(G){return G.tableData.groupOrder>-1}).sort(function(G,L){return G.tableData.groupOrder-L.tableData.groupOrder}),onSortChanged:this.onChangeGroupOrder,onGroupRemoved:this.onGroupRemoved,onGroupChange:this.props.onGroupChange,persistentGroupingsId:W.options.persistentGroupingsId}),b.default.createElement(M.MTableScrollbar,{double:W.options.doubleHorizontalScroll},b.default.createElement(k.Droppable,{droppableId:"headers",direction:"horizontal"},function(G,L){var q=E.renderTable(W);return b.default.createElement("div",{ref:G.innerRef},b.default.createElement("div",{ref:E.tableContainerDiv,style:{maxHeight:W.options.maxBodyHeight,minHeight:W.options.minBodyHeight,overflowY:W.options.overflowY}},E.state.width&&W.options.fixedColumns&&W.options.fixedColumns.right?b.default.createElement("div",{style:{width:E.getColumnsWidth(W,-1*W.options.fixedColumns.right),position:"absolute",top:0,right:0,boxShadow:"-2px 0px 15px rgba(125,147,178,.25)",overflowX:"clip",zIndex:11}},b.default.createElement("div",{style:{width:E.state.width,background:"white",transform:"translateX(calc(".concat(E.getColumnsWidth(W,-1*W.options.fixedColumns.right)," - 100%))")}},q)):null,b.default.createElement("div",null,q),E.state.width&&W.options.fixedColumns&&W.options.fixedColumns.left?b.default.createElement("div",{style:{width:E.getColumnsWidth(W,W.options.fixedColumns.left),position:"absolute",top:0,left:0,boxShadow:"2px 0px 15px rgba(125,147,178,.25)",overflowX:"clip",zIndex:11}},b.default.createElement("div",{style:{width:E.state.width,background:"white"},onKeyDown:function(V){V.key==="Tab"&&V.preventDefault()}},q)):null),G.placeholder)})),(this.state.isLoading||W.isLoading)&&W.options.loadingType==="linear"&&b.default.createElement("div",{style:{position:"relative",width:"100%"}},b.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%"}},b.default.createElement(i.default,null))),W.options.paginationPosition==="bottom"||W.options.paginationPosition==="both"?this.renderFooter():null,(this.state.isLoading||W.isLoading)&&W.options.loadingType==="overlay"&&b.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%",zIndex:11}},b.default.createElement(this.props.components.OverlayLoading,{theme:W.theme})),this.state.errorState&&this.state.errorState.errorCause==="query"&&b.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%",zIndex:11}},b.default.createElement(this.props.components.OverlayError,{error:this.state.errorState,retry:this.retry,theme:W.theme}))))}}]),j}(b.default.Component);e.default=F;function A(B,$,j){var N=[],E=[];return j>0&&(N=z(B,j)),$&&(E=z($,j)),[N,E]}function z(B,$){var j=B.filter(function(N){return N.defaultSort&&N.sorting!==!1});return j.slice(0,$).map(function(N,E){return{orderBy:N.tableData?N.tableData.id:B.findIndex(function(W){return W.field===N.field}),orderDirection:N.defaultSort,sortOrder:E+1}})}}(Em)),Em}(function(e){var t=vn;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ALL_COLUMNS",{enumerable:!0,get:function(){return s.ALL_COLUMNS}}),Object.defineProperty(e,"MTableAction",{enumerable:!0,get:function(){return f.MTableAction}}),Object.defineProperty(e,"MTableActions",{enumerable:!0,get:function(){return f.MTableActions}}),Object.defineProperty(e,"MTableBody",{enumerable:!0,get:function(){return f.MTableBody}}),Object.defineProperty(e,"MTableBodyRow",{enumerable:!0,get:function(){return f.MTableBodyRow}}),Object.defineProperty(e,"MTableCell",{enumerable:!0,get:function(){return f.MTableCell}}),Object.defineProperty(e,"MTableEditCell",{enumerable:!0,get:function(){return f.MTableEditCell}}),Object.defineProperty(e,"MTableEditField",{enumerable:!0,get:function(){return f.MTableEditField}}),Object.defineProperty(e,"MTableEditRow",{enumerable:!0,get:function(){return f.MTableEditRow}}),Object.defineProperty(e,"MTableFilterRow",{enumerable:!0,get:function(){return f.MTableFilterRow}}),Object.defineProperty(e,"MTableGroupRow",{enumerable:!0,get:function(){return f.MTableGroupRow}}),Object.defineProperty(e,"MTableGroupbar",{enumerable:!0,get:function(){return f.MTableGroupbar}}),Object.defineProperty(e,"MTableHeader",{enumerable:!0,get:function(){return f.MTableHeader}}),Object.defineProperty(e,"MTablePagination",{enumerable:!0,get:function(){return f.MTablePagination}}),Object.defineProperty(e,"MTableSteppedPagination",{enumerable:!0,get:function(){return f.MTableSteppedPagination}}),Object.defineProperty(e,"MTableToolbar",{enumerable:!0,get:function(){return f.MTableToolbar}}),e.default=void 0,Object.defineProperty(e,"useLocalizationStore",{enumerable:!0,get:function(){return l.useLocalizationStore}});var r=t(hr()),i=t($e),u=sY(),o=uY(),a=t(CY()),n=Nl,l=Ju(),f=Kd(),s=w1();a.default.defaultProps=u.defaultProps,a.default.propTypes=o.propTypes;var c=(0,l.withContext)(function(d){var h=(0,n.useTheme)(),p=(0,l.useMergeProps)(d),m=p.localization,y=p.options,v=p.components;return i.default.createElement(a.default,(0,r.default)({},d,{theme:h,options:y,components:v,localization:m,ref:d.tableRef}))});e.default=c})(fS);const OY=ir(fS);var _1={},AY=vn;Object.defineProperty(_1,"__esModule",{value:!0});var h6=_1.default=void 0,PY=AY(Xr()),DY=je,EY=(0,PY.default)((0,DY.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");h6=_1.default=EY;class RY{constructor(t){Lc(this,"cachedGraphs");Lc(this,"cachedWidgets");Lc(this,"inner");this.inner=t,this.cachedGraphs=new Map,this.cachedWidgets=new Map}async getAdditionGraphData(t){let r=this.cachedGraphs.get(t);return r!==void 0||(r=await this.inner.getAdditionGraphData(t),this.cachedGraphs.set(t,r)),r}async getAdditionWidgetData(t){let r=this.cachedWidgets.get(t);return r!==void 0||(r=await this.inner.getAdditionWidgetData(t),this.cachedWidgets.set(t,r)),r}}const p6=et.createContext({getAdditionGraphData:()=>new Promise((e,t)=>t("default context doesn't contain methods to get data")),getAdditionWidgetData:()=>new Promise((e,t)=>t("default context doesn't contain methods to get data"))});function aSe(e){return new RY(e)}const LY=e=>{const t=e.activeTab===-1?0:e.activeTab;return je.jsxs("div",{children:[je.jsx(eS,{value:t,onChange:e.onNewTabSelected,indicatorColor:"primary",textColor:"primary",children:e.tabs.map(r=>je.jsx(S0,{disabled:r.disabled??!1,label:je.jsx(Qr,{className:e.tabStyle,children:je.jsxs(Qr,{display:"flex",sx:{fontSize:"0.875rem"},children:[je.jsx("span",{children:r.icon}),r.title]})})}))}),je.jsx(Qr,{children:e.tabs.map((r,i)=>je.jsx("div",{hidden:(e.activeTab===-1?0:e.activeTab)!==i,children:(e.activeTab===-1?0:e.activeTab)!==i?je.jsx("div",{}):r.tab}))})]})},T1=e=>{const[t,r]=$e.useState({activeTab:0});return je.jsx(et.Fragment,{children:je.jsx(LY,{activeTab:t.activeTab,onNewTabSelected:(i,u)=>r(o=>({...o,activeTab:u})),tabs:e.tabs})})},q0=({func:e,children:t})=>{const[r,i]=$e.useState(()=>({status:0,func:e}));return r.status===0&&i(u=>({...u,status:1})),r.status===1&&(i(u=>({...u,status:2})),r.func().then(u=>i(o=>({...o,status:3,result:u}))).catch(()=>i(u=>({...u,status:4})))),je.jsx(je.Fragment,{children:r.status===3?t&&r.result&&t(r.result):r.status===4?je.jsx(Cr,{align:"center",children:"Failed"}):r.status===2?je.jsx(Qr,{textAlign:"center",children:je.jsx(Z9,{})}):null})},g6=e=>je.jsxs(py,{severity:e.data.severity,children:[je.jsx(gy,{children:e.data.title}),e.data.text]}),m6=()=>je.jsx("div",{children:"Not implemented"}),IY=e=>e.type??"graph",J3=(e,t,r)=>{switch(IY(t)){case"graph":{const i=()=>e.getAdditionGraphData(t.id),u=o=>je.jsx(Ad,{...o,widgetSize:r});return je.jsx(q0,{func:i,children:u})}case"widget":{const i=()=>e.getAdditionWidgetData(t.id),u=o=>xc(t.id,o);return je.jsx(q0,{func:i,children:u})}default:return je.jsx(m6,{})}},k1=e=>je.jsx(p6.Consumer,{children:t=>je.jsxs(Qr,{children:[e.details.parts.length>1?je.jsx(T1,{tabs:e.details.parts.map(r=>({title:r.title,tab:J3(t,r,e.widgetSize)}))}):J3(t,e.details.parts[0],e.widgetSize),e.details.insights===void 0?je.jsx(je.Fragment,{}):e.details.insights.map(r=>je.jsx(g6,{data:r},r.text+r.title+r.severity))]})}),FY=e=>je.jsx(p6.Consumer,{children:t=>je.jsx(q0,{func:()=>t.getAdditionGraphData(e.graphId),children:r=>je.jsx(Ad,{...r,widgetSize:e.widgetSize})})});var W0={exports:{}},U0={exports:{}};(function(e,t){t.__esModule=!0,t.default=r;function r(i){var u={};for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(u[o]=0);return u}e.exports=t.default})(U0,U0.exports);var M1=U0.exports,H0={exports:{}};(function(e,t){t.__esModule=!0,t.default=r;function r(i){var u={};for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(u[o]=typeof i[o]=="number"?i[o]:i[o].val);return u}e.exports=t.default})(H0,H0.exports);var eh=H0.exports,V0={exports:{}};(function(e,t){t.__esModule=!0,t.default=i;var r=[0,0];function i(u,o,a,n,l,f,s){var c=-l*(o-n),d=-f*a,h=c+d,p=a+h*u,m=o+p*u;return Math.abs(p)"u"?Ma:window,Zc=["moz","webkit"],ml="AnimationFrame",Ol=ki["request"+ml],Fu=ki["cancel"+ml]||ki["cancelRequest"+ml];for(var Ks=0;!Ol&&Ksk*10&&(P.accumulatedTime=0),P.accumulatedTime===0){P.animationID=null,P.startAnimationIfNecessary();return}var A=(P.accumulatedTime-Math.floor(P.accumulatedTime/k)*k)/k,z=Math.floor(P.accumulatedTime/k),B={},$={},j={},N={};for(var E in O)if(Object.prototype.hasOwnProperty.call(O,E)){var W=O[E];if(typeof W=="number")j[E]=W,N[E]=0,B[E]=W,$[E]=0;else{for(var G=P.state.lastIdealStyle[E],L=P.state.lastIdealVelocity[E],q=0;qk*10&&(D.accumulatedTime=0),D.accumulatedTime===0){D.animationID=null,D.startAnimationIfNecessary();return}for(var z=(D.accumulatedTime-Math.floor(D.accumulatedTime/k)*k)/k,B=Math.floor(D.accumulatedTime/k),$=[],j=[],N=[],E=[],W=0;Wa[g])return-1;if(h>l[g]&&ya[g])return 1;if(p>l[g]&&mM*10&&(A.accumulatedTime=0),A.accumulatedTime===0){A.animationID=null,A.startAnimationIfNecessary();return}for(var E=(A.accumulatedTime-Math.floor(A.accumulatedTime/M)*M)/M,W=Math.floor(A.accumulatedTime/M),G=P(A.props.willEnter,A.props.willLeave,A.props.didLeave,A.state.mergedPropsStyles,$,A.state.currentStyles,A.state.currentVelocities,A.state.lastIdealStyles,A.state.lastIdealVelocities),L=G[0],q=G[1],H=G[2],V=G[3],te=G[4],ee=0;ee0},e.prototype.connect_=function(){!ev||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),aG?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!ev||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,i=r===void 0?"":r,u=rG.some(function(o){return!!~i.indexOf(o)});u&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),b6=function(e,t){for(var r=0,i=Object.keys(t);r"u"||!(Element instanceof Object))){if(!(t instanceof Al(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new hG(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Al(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(i){return new pG(i.target,i.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),w6=typeof WeakMap<"u"?new WeakMap:new y6,_6=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=iG.getInstance(),i=new gG(t,r,this);w6.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach(function(e){_6.prototype[e]=function(){var t;return(t=w6.get(this))[e].apply(t,arguments)}});var mG=function(){return typeof Uf.ResizeObserver<"u"?Uf.ResizeObserver:_6}(),vG=["client","offset","scroll","bounds","margin"];function tT(e){var t=[];return vG.forEach(function(r){e[r]&&t.push(r)}),t}function nT(e,t){var r={};if(t.indexOf("client")>-1&&(r.client={top:e.clientTop,left:e.clientLeft,width:e.clientWidth,height:e.clientHeight}),t.indexOf("offset")>-1&&(r.offset={top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight}),t.indexOf("scroll")>-1&&(r.scroll={top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}),t.indexOf("bounds")>-1){var i=e.getBoundingClientRect();r.bounds={top:i.top,right:i.right,bottom:i.bottom,left:i.left,width:i.width,height:i.height}}if(t.indexOf("margin")>-1){var u=getComputedStyle(e);r.margin={top:u?parseInt(u.marginTop):0,right:u?parseInt(u.marginRight):0,bottom:u?parseInt(u.marginBottom):0,left:u?parseInt(u.marginLeft):0}}return r}function yG(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||window}function bG(e){return function(t){var r,i;return i=r=function(u){K9(o,u);function o(){for(var n,l=arguments.length,f=new Array(l),s=0;s-1}var JG=KG,QG=ih;function eX(e,t){var r=this.__data__,i=QG(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}var tX=eX,nX=jG,rX=VG,aX=XG,iX=JG,oX=tX;function Hl(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=dJ}var j1=hJ,pJ=lh,gJ=j1;function mJ(e){return e!=null&&gJ(e.length)&&!pJ(e)}var Zl=mJ,vJ=Zl,yJ=Fa;function bJ(e){return yJ(e)&&vJ(e)}var F6=bJ,Gf={exports:{}};function xJ(){return!1}var wJ=xJ;Gf.exports;(function(e,t){var r=Ca,i=wJ,u=t&&!t.nodeType&&t,o=u&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===u,n=a?r.Buffer:void 0,l=n?n.isBuffer:void 0,f=l||i;e.exports=f})(Gf,Gf.exports);var ph=Gf.exports,_J=Li,TJ=F1,kJ=Fa,MJ="[object Object]",SJ=Function.prototype,CJ=Object.prototype,N6=SJ.toString,OJ=CJ.hasOwnProperty,AJ=N6.call(Object);function PJ(e){if(!kJ(e)||_J(e)!=MJ)return!1;var t=TJ(e);if(t===null)return!0;var r=OJ.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&N6.call(r)==AJ}var $1=PJ;const Bu=ir($1);var DJ=Li,EJ=j1,RJ=Fa,LJ="[object Arguments]",IJ="[object Array]",FJ="[object Boolean]",NJ="[object Date]",jJ="[object Error]",$J="[object Function]",BJ="[object Map]",zJ="[object Number]",qJ="[object Object]",WJ="[object RegExp]",UJ="[object Set]",HJ="[object String]",VJ="[object WeakMap]",YJ="[object ArrayBuffer]",GJ="[object DataView]",XJ="[object Float32Array]",ZJ="[object Float64Array]",KJ="[object Int8Array]",JJ="[object Int16Array]",QJ="[object Int32Array]",eQ="[object Uint8Array]",tQ="[object Uint8ClampedArray]",nQ="[object Uint16Array]",rQ="[object Uint32Array]",wr={};wr[XJ]=wr[ZJ]=wr[KJ]=wr[JJ]=wr[QJ]=wr[eQ]=wr[tQ]=wr[nQ]=wr[rQ]=!0;wr[LJ]=wr[IJ]=wr[YJ]=wr[FJ]=wr[GJ]=wr[NJ]=wr[jJ]=wr[$J]=wr[BJ]=wr[zJ]=wr[qJ]=wr[WJ]=wr[UJ]=wr[HJ]=wr[VJ]=!1;function aQ(e){return RJ(e)&&EJ(e.length)&&!!wr[DJ(e)]}var iQ=aQ;function oQ(e){return function(t){return e(t)}}var Kl=oQ,Xf={exports:{}};Xf.exports;(function(e,t){var r=k6,i=t&&!t.nodeType&&t,u=i&&!0&&e&&!e.nodeType&&e,o=u&&u.exports===i,a=o&&r.process,n=function(){try{var l=u&&u.require&&u.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=n})(Xf,Xf.exports);var gh=Xf.exports,lQ=iQ,sQ=Kl,mT=gh,vT=mT&&mT.isTypedArray,uQ=vT?sQ(vT):lQ,B1=uQ;function cQ(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var j6=cQ,fQ=L1,dQ=lc,hQ=Object.prototype,pQ=hQ.hasOwnProperty;function gQ(e,t,r){var i=e[t];(!(pQ.call(e,t)&&dQ(i,r))||r===void 0&&!(t in e))&&fQ(e,t,r)}var z1=gQ,mQ=z1,vQ=L1;function yQ(e,t,r,i){var u=!r;r||(r={});for(var o=-1,a=t.length;++o-1&&e%1==0&&e0){if(++t>=Cee)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var q6=Pee,Dee=See,Eee=q6,Ree=Eee(Dee),W1=Ree,Lee=Vo,Iee=z6,Fee=W1;function Nee(e,t){return Fee(Iee(e,t,Lee),e+"")}var mh=Nee,jee=lc,$ee=Zl,Bee=sc,zee=Va;function qee(e,t,r){if(!zee(r))return!1;var i=typeof t;return(i=="number"?$ee(r)&&Bee(t,r.length):i=="string"&&t in r)?jee(r[t],e):!1}var U1=qee,Wee=mh,Uee=U1;function Hee(e){return Wee(function(t,r){var i=-1,u=r.length,o=u>1?r[u-1]:void 0,a=u>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(u--,o):void 0,a&&Uee(r[0],r[1],a)&&(o=u<3?void 0:o,u=1),t=Object(t);++it?1:e>=t?0:NaN}function Y1(e){let t=e,r=e;e.length===1&&(t=(a,n)=>e(a)-n,r=nne(e));function i(a,n,l,f){for(l==null&&(l=0),f==null&&(f=a.length);l>>1;r(a[s],n)<0?l=s+1:f=s}return l}function u(a,n,l,f){for(l==null&&(l=0),f==null&&(f=a.length);l>>1;r(a[s],n)>0?f=s:l=s+1}return l}function o(a,n,l,f){l==null&&(l=0),f==null&&(f=a.length);const s=i(a,n,l,f-1);return s>l&&t(a[s-1],n)>-t(a[s],n)?s-1:s}return{left:i,center:o,right:u}}function nne(e){return(t,r)=>G6(e(t),r)}function rne(e){return e===null?NaN:+e}const ane=Y1(G6),ine=ane.right;Y1(rne).center;var tv=Math.sqrt(50),nv=Math.sqrt(10),rv=Math.sqrt(2);function av(e,t,r){var i,u=-1,o,a,n;if(t=+t,e=+e,r=+r,e===t&&r>0)return[e];if((i=t0){let l=Math.round(e/n),f=Math.round(t/n);for(l*nt&&--f,a=new Array(o=f-l+1);++ut&&--f,a=new Array(o=f-l+1);++u=0?(o>=tv?10:o>=nv?5:o>=rv?2:1)*Math.pow(10,u):-Math.pow(10,-u)/(o>=tv?10:o>=nv?5:o>=rv?2:1)}function iv(e,t,r){var i=Math.abs(t-e)/Math.max(0,r),u=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/u;return o>=tv?u*=10:o>=nv?u*=5:o>=rv&&(u*=2),t>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Jc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Jc(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=une.exec(e))?new Ea(t[1],t[2],t[3],1):(t=cne.exec(e))?new Ea(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=fne.exec(e))?Jc(t[1],t[2],t[3],t[4]):(t=dne.exec(e))?Jc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=hne.exec(e))?IT(t[1],t[2]/100,t[3]/100,1):(t=pne.exec(e))?IT(t[1],t[2]/100,t[3]/100,t[4]):AT.hasOwnProperty(e)?ET(AT[e]):e==="transparent"?new Ea(NaN,NaN,NaN,0):null}function ET(e){return new Ea(e>>16&255,e>>8&255,e&255,1)}function Jc(e,t,r,i){return i<=0&&(e=t=r=NaN),new Ea(e,t,r,i)}function mne(e){return e instanceof fc||(e=Ao(e)),e?(e=e.rgb(),new Ea(e.r,e.g,e.b,e.opacity)):new Ea}function Po(e,t,r,i){return arguments.length===1?mne(e):new Ea(e,t,r,i??1)}function Ea(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}X1(Ea,Po,K6(fc,{brighter:function(e){return e=e==null?Zf:Math.pow(Zf,e),new Ea(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?zu:Math.pow(zu,e),new Ea(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:RT,formatHex:RT,formatRgb:LT,toString:LT}));function RT(){return"#"+jm(this.r)+jm(this.g)+jm(this.b)}function LT(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function jm(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function IT(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ci(e,t,r,i)}function J6(e){if(e instanceof ci)return new ci(e.h,e.s,e.l,e.opacity);if(e instanceof fc||(e=Ao(e)),!e)return new ci;if(e instanceof ci)return e;e=e.rgb();var t=e.r/255,r=e.g/255,i=e.b/255,u=Math.min(t,r,i),o=Math.max(t,r,i),a=NaN,n=o-u,l=(o+u)/2;return n?(t===o?a=(r-i)/n+(r0&&l<1?0:a,new ci(a,n,l,e.opacity)}function vne(e,t,r,i){return arguments.length===1?J6(e):new ci(e,t,r,i??1)}function ci(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}X1(ci,vne,K6(fc,{brighter:function(e){return e=e==null?Zf:Math.pow(Zf,e),new ci(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?zu:Math.pow(zu,e),new ci(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*t,u=2*r-i;return new Ea($m(e>=240?e-240:e+120,u,i),$m(e,u,i),$m(e<120?e+240:e-120,u,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function $m(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Z1=e=>()=>e;function yne(e,t){return function(r){return e+r*t}}function bne(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(i){return Math.pow(e+i*t,r)}}function xne(e){return(e=+e)==1?Q6:function(t,r){return r-t?bne(t,r,e):Z1(isNaN(t)?r:t)}}function Q6(e,t){var r=t-e;return r?yne(e,r):Z1(isNaN(e)?t:e)}const FT=function e(t){var r=xne(t);function i(u,o){var a=r((u=Po(u)).r,(o=Po(o)).r),n=r(u.g,o.g),l=r(u.b,o.b),f=Q6(u.opacity,o.opacity);return function(s){return u.r=a(s),u.g=n(s),u.b=l(s),u.opacity=f(s),u+""}}return i.gamma=e,i}(1);function wne(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,i=t.slice(),u;return function(o){for(u=0;ur&&(o=t.slice(r,o),n[a]?n[a]+=o:n[++a]=o),(i=i[0])===(u=u[0])?n[a]?n[a]+=u:n[++a]=u:(n[++a]=null,l.push({i:a,x:Kf(i,u)})),r=Bm.lastIndex;return rt&&(r=e,e=t,t=r),function(i){return Math.max(e,Math.min(t,i))}}function Rne(e,t,r){var i=e[0],u=e[1],o=t[0],a=t[1];return u2?Lne:Rne,l=f=null,c}function c(d){return d==null||isNaN(d=+d)?o:(l||(l=n(e.map(i),t,r)))(i(a(d)))}return c.invert=function(d){return a(u((f||(f=n(t,e.map(i),Kf)))(d)))},c.domain=function(d){return arguments.length?(e=Array.from(d,Dne),s()):e.slice()},c.range=function(d){return arguments.length?(t=Array.from(d),s()):t.slice()},c.rangeRound=function(d){return t=Array.from(d),r=Ane,s()},c.clamp=function(d){return arguments.length?(a=d?!0:hl,s()):a!==hl},c.interpolate=function(d){return arguments.length?(r=d,s()):r},c.unknown=function(d){return arguments.length?(o=d,c):o},function(d,h){return i=d,u=h,s()}}function tO(){return eO()(hl,hl)}function Ine(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Jf(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,i=e.slice(0,r);return[i.length>1?i[0]+i.slice(2):i,+e.slice(r+1)]}function Pl(e){return e=Jf(Math.abs(e)),e?e[1]:NaN}function Fne(e,t){return function(r,i){for(var u=r.length,o=[],a=0,n=e[0],l=0;u>0&&n>0&&(l+n+1>i&&(n=Math.max(1,i-l)),o.push(r.substring(u-=n,u+n)),!((l+=n+1)>i));)n=e[a=(a+1)%e.length];return o.reverse().join(t)}}function Nne(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var jne=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Qf(e){if(!(t=jne.exec(e)))throw new Error("invalid format: "+e);var t;return new Q1({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Qf.prototype=Q1.prototype;function Q1(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Q1.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function $ne(e){e:for(var t=e.length,r=1,i=-1,u;r0&&(i=0);break}return i>0?e.slice(0,i)+e.slice(u+1):e}var nO;function Bne(e,t){var r=Jf(e,t);if(!r)return e+"";var i=r[0],u=r[1],o=u-(nO=Math.max(-8,Math.min(8,Math.floor(u/3)))*3)+1,a=i.length;return o===a?i:o>a?i+new Array(o-a+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+Jf(e,Math.max(0,t+o-1))[0]}function jT(e,t){var r=Jf(e,t);if(!r)return e+"";var i=r[0],u=r[1];return u<0?"0."+new Array(-u).join("0")+i:i.length>u+1?i.slice(0,u+1)+"."+i.slice(u+1):i+new Array(u-i.length+2).join("0")}const $T={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:Ine,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return jT(e*100,t)},r:jT,s:Bne,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function BT(e){return e}var zT=Array.prototype.map,qT=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function zne(e){var t=e.grouping===void 0||e.thousands===void 0?BT:Fne(zT.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",i=e.currency===void 0?"":e.currency[1]+"",u=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?BT:Nne(zT.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",n=e.minus===void 0?"-":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function f(c){c=Qf(c);var d=c.fill,h=c.align,p=c.sign,m=c.symbol,y=c.zero,v=c.width,g=c.comma,b=c.precision,x=c.trim,_=c.type;_==="n"?(g=!0,_="g"):$T[_]||(b===void 0&&(b=12),x=!0,_="g"),(y||d==="0"&&h==="=")&&(y=!0,d="0",h="=");var w=m==="$"?r:m==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",k=m==="$"?i:/[%p]/.test(_)?a:"",T=$T[_],M=/[defgprs%]/.test(_);b=b===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function S(C){var P=w,D=k,O,R,F;if(_==="c")D=T(C)+D,C="";else{C=+C;var A=C<0||1/C<0;if(C=isNaN(C)?l:T(Math.abs(C),b),x&&(C=$ne(C)),A&&+C==0&&p!=="+"&&(A=!1),P=(A?p==="("?p:n:p==="-"||p==="("?"":p)+P,D=(_==="s"?qT[8+nO/3]:"")+D+(A&&p==="("?")":""),M){for(O=-1,R=C.length;++OF||F>57){D=(F===46?u+C.slice(O+1):C.slice(O))+D,C=C.slice(0,O);break}}}g&&!y&&(C=t(C,1/0));var z=P.length+C.length+D.length,B=z>1)+P+C+D+B.slice(z);break;default:C=B+P+C+D;break}return o(C)}return S.toString=function(){return c+""},S}function s(c,d){var h=f((c=Qf(c),c.type="f",c)),p=Math.max(-8,Math.min(8,Math.floor(Pl(d)/3)))*3,m=Math.pow(10,-p),y=qT[8+p/3];return function(v){return h(m*v)+y}}return{format:f,formatPrefix:s}}var Qc,rs,rO;qne({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function qne(e){return Qc=zne(e),rs=Qc.format,rO=Qc.formatPrefix,Qc}function Wne(e){return Math.max(0,-Pl(Math.abs(e)))}function Une(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Pl(t)/3)))*3-Pl(Math.abs(e)))}function Hne(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Pl(t)-Pl(e))+1}function Vne(e,t,r,i){var u=iv(e,t,r),o;switch(i=Qf(i??",f"),i.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return i.precision==null&&!isNaN(o=Une(u,a))&&(i.precision=o),rO(i,a)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(o=Hne(u,Math.max(Math.abs(e),Math.abs(t))))&&(i.precision=o-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(o=Wne(u))&&(i.precision=o-(i.type==="%")*2);break}}return rs(i)}function Yne(e){var t=e.domain;return e.ticks=function(r){var i=t();return av(i[0],i[i.length-1],r??10)},e.tickFormat=function(r,i){var u=t();return Vne(u[0],u[u.length-1],r??10,i)},e.nice=function(r){r==null&&(r=10);var i=t(),u=0,o=i.length-1,a=i[u],n=i[o],l,f,s=10;for(n0;){if(f=X6(a,n,r),f===l)return i[u]=a,i[o]=n,t(i);if(f>0)a=Math.floor(a/f)*f,n=Math.ceil(n/f)*f;else if(f<0)a=Math.ceil(a*f)/f,n=Math.floor(n*f)/f;else break;l=f}return e},e}function Do(){var e=tO();return e.copy=function(){return J1(e,Do())},ns.apply(e,arguments),Yne(e)}function aO(e,t){e=e.slice();var r=0,i=e.length-1,u=e[r],o=e[i],a;return o0){for(;d<=h;++d)for(m=1,p=o(d);ms)break;g.push(y)}}else for(;d<=h;++d)for(m=i-1,p=o(d);m>=1;--m)if(y=p*m,!(ys)break;g.push(y)}g.length*20))return l;do l.push(f=new Date(+o)),t(o,n),e(o);while(f=a)for(;e(a),!o(a);)a.setTime(a-1)},function(a,n){if(a>=a)if(n<0)for(;++n<=0;)for(;t(a,-1),!o(a););else for(;--n>=0;)for(;t(a,1),!o(a););})},r&&(u.count=function(o,a){return zm.setTime(+o),qm.setTime(+a),e(zm),e(qm),Math.floor(r(zm,qm))},u.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?u.filter(i?function(a){return i(a)%o===0}:function(a){return u.count(0,a)%o===0}):u}),u}var ed=na(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});ed.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?na(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):ed};ed.range;const _i=1e3,Wa=_i*60,Ti=Wa*60,Eo=Ti*24,eb=Eo*7,VT=Eo*30,Wm=Eo*365;var ko=na(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*_i)},function(e,t){return(t-e)/_i},function(e){return e.getUTCSeconds()});ko.range;var tb=na(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*_i)},function(e,t){e.setTime(+e+t*Wa)},function(e,t){return(t-e)/Wa},function(e){return e.getMinutes()});tb.range;var nb=na(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*_i-e.getMinutes()*Wa)},function(e,t){e.setTime(+e+t*Ti)},function(e,t){return(t-e)/Ti},function(e){return e.getHours()});nb.range;var dc=na(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Wa)/Eo,e=>e.getDate()-1);dc.range;function Yo(e){return na(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,r){t.setDate(t.getDate()+r*7)},function(t,r){return(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Wa)/eb})}var yh=Yo(0),td=Yo(1),ere=Yo(2),tre=Yo(3),Dl=Yo(4),nre=Yo(5),rre=Yo(6);yh.range;td.range;ere.range;tre.range;Dl.range;nre.range;rre.range;var rb=na(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});rb.range;var Ci=na(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});Ci.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:na(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)})};Ci.range;var ab=na(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Wa)},function(e,t){return(t-e)/Wa},function(e){return e.getUTCMinutes()});ab.range;var ib=na(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Ti)},function(e,t){return(t-e)/Ti},function(e){return e.getUTCHours()});ib.range;var hc=na(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/Eo},function(e){return e.getUTCDate()-1});hc.range;function Go(e){return na(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCDate(t.getUTCDate()+r*7)},function(t,r){return(r-t)/eb})}var bh=Go(0),nd=Go(1),are=Go(2),ire=Go(3),El=Go(4),ore=Go(5),lre=Go(6);bh.range;nd.range;are.range;ire.range;El.range;ore.range;lre.range;var ob=na(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});ob.range;var Oi=na(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});Oi.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:na(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})};Oi.range;function oO(e,t,r,i,u,o){const a=[[ko,1,_i],[ko,5,5*_i],[ko,15,15*_i],[ko,30,30*_i],[o,1,Wa],[o,5,5*Wa],[o,15,15*Wa],[o,30,30*Wa],[u,1,Ti],[u,3,3*Ti],[u,6,6*Ti],[u,12,12*Ti],[i,1,Eo],[i,2,2*Eo],[r,1,eb],[t,1,VT],[t,3,3*VT],[e,1,Wm]];function n(f,s,c){const d=sy).right(a,d);if(h===a.length)return e.every(iv(f/Wm,s/Wm,c));if(h===0)return ed.every(Math.max(iv(f,s,c),1));const[p,m]=a[d/a[h-1][2]53)return null;"w"in U||(U.w=1),"Z"in U?(Y=Hm(Qs(U.y,0,1)),Z=Y.getUTCDay(),Y=Z>4||Z===0?nd.ceil(Y):nd(Y),Y=hc.offset(Y,(U.V-1)*7),U.y=Y.getUTCFullYear(),U.m=Y.getUTCMonth(),U.d=Y.getUTCDate()+(U.w+6)%7):(Y=Um(Qs(U.y,0,1)),Z=Y.getDay(),Y=Z>4||Z===0?td.ceil(Y):td(Y),Y=dc.offset(Y,(U.V-1)*7),U.y=Y.getFullYear(),U.m=Y.getMonth(),U.d=Y.getDate()+(U.w+6)%7)}else("W"in U||"U"in U)&&("w"in U||(U.w="u"in U?U.u%7:"W"in U?1:0),Z="Z"in U?Hm(Qs(U.y,0,1)).getUTCDay():Um(Qs(U.y,0,1)).getDay(),U.m=0,U.d="W"in U?(U.w+6)%7+U.W*7-(Z+5)%7:U.w+U.U*7-(Z+6)%7);return"Z"in U?(U.H+=U.Z/100|0,U.M+=U.Z%100,Hm(U)):Um(U)}}function T(V,te,ee,U){for(var Q=0,Y=te.length,Z=ee.length,X,re;Q=Z)return-1;if(X=te.charCodeAt(Q++),X===37){if(X=te.charAt(Q++),re=_[X in YT?te.charAt(Q++):X],!re||(U=re(V,ee,U))<0)return-1}else if(X!=ee.charCodeAt(U++))return-1}return U}function M(V,te,ee){var U=f.exec(te.slice(ee));return U?(V.p=s.get(U[0].toLowerCase()),ee+U[0].length):-1}function S(V,te,ee){var U=h.exec(te.slice(ee));return U?(V.w=p.get(U[0].toLowerCase()),ee+U[0].length):-1}function C(V,te,ee){var U=c.exec(te.slice(ee));return U?(V.w=d.get(U[0].toLowerCase()),ee+U[0].length):-1}function P(V,te,ee){var U=v.exec(te.slice(ee));return U?(V.m=g.get(U[0].toLowerCase()),ee+U[0].length):-1}function D(V,te,ee){var U=m.exec(te.slice(ee));return U?(V.m=y.get(U[0].toLowerCase()),ee+U[0].length):-1}function O(V,te,ee){return T(V,t,te,ee)}function R(V,te,ee){return T(V,r,te,ee)}function F(V,te,ee){return T(V,i,te,ee)}function A(V){return a[V.getDay()]}function z(V){return o[V.getDay()]}function B(V){return l[V.getMonth()]}function $(V){return n[V.getMonth()]}function j(V){return u[+(V.getHours()>=12)]}function N(V){return 1+~~(V.getMonth()/3)}function E(V){return a[V.getUTCDay()]}function W(V){return o[V.getUTCDay()]}function G(V){return l[V.getUTCMonth()]}function L(V){return n[V.getUTCMonth()]}function q(V){return u[+(V.getUTCHours()>=12)]}function H(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var te=w(V+="",b);return te.toString=function(){return V},te},parse:function(V){var te=k(V+="",!1);return te.toString=function(){return V},te},utcFormat:function(V){var te=w(V+="",x);return te.toString=function(){return V},te},utcParse:function(V){var te=k(V+="",!0);return te.toString=function(){return V},te}}}var YT={"-":"",_:" ",0:"0"},ra=/^\s*\d+/,hre=/^%/,pre=/[\\^$*+?|[\]().{}]/g;function nr(e,t,r){var i=e<0?"-":"",u=(i?-e:e)+"",o=u.length;return i+(o[t.toLowerCase(),r]))}function mre(e,t,r){var i=ra.exec(t.slice(r,r+1));return i?(e.w=+i[0],r+i[0].length):-1}function vre(e,t,r){var i=ra.exec(t.slice(r,r+1));return i?(e.u=+i[0],r+i[0].length):-1}function yre(e,t,r){var i=ra.exec(t.slice(r,r+2));return i?(e.U=+i[0],r+i[0].length):-1}function bre(e,t,r){var i=ra.exec(t.slice(r,r+2));return i?(e.V=+i[0],r+i[0].length):-1}function xre(e,t,r){var i=ra.exec(t.slice(r,r+2));return i?(e.W=+i[0],r+i[0].length):-1}function GT(e,t,r){var i=ra.exec(t.slice(r,r+4));return i?(e.y=+i[0],r+i[0].length):-1}function XT(e,t,r){var i=ra.exec(t.slice(r,r+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),r+i[0].length):-1}function wre(e,t,r){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),r+i[0].length):-1}function _re(e,t,r){var i=ra.exec(t.slice(r,r+1));return i?(e.q=i[0]*3-3,r+i[0].length):-1}function Tre(e,t,r){var i=ra.exec(t.slice(r,r+2));return i?(e.m=i[0]-1,r+i[0].length):-1}function ZT(e,t,r){var i=ra.exec(t.slice(r,r+2));return i?(e.d=+i[0],r+i[0].length):-1}function kre(e,t,r){var i=ra.exec(t.slice(r,r+3));return i?(e.m=0,e.d=+i[0],r+i[0].length):-1}function KT(e,t,r){var i=ra.exec(t.slice(r,r+2));return i?(e.H=+i[0],r+i[0].length):-1}function Mre(e,t,r){var i=ra.exec(t.slice(r,r+2));return i?(e.M=+i[0],r+i[0].length):-1}function Sre(e,t,r){var i=ra.exec(t.slice(r,r+2));return i?(e.S=+i[0],r+i[0].length):-1}function Cre(e,t,r){var i=ra.exec(t.slice(r,r+3));return i?(e.L=+i[0],r+i[0].length):-1}function Ore(e,t,r){var i=ra.exec(t.slice(r,r+6));return i?(e.L=Math.floor(i[0]/1e3),r+i[0].length):-1}function Are(e,t,r){var i=hre.exec(t.slice(r,r+1));return i?r+i[0].length:-1}function Pre(e,t,r){var i=ra.exec(t.slice(r));return i?(e.Q=+i[0],r+i[0].length):-1}function Dre(e,t,r){var i=ra.exec(t.slice(r));return i?(e.s=+i[0],r+i[0].length):-1}function JT(e,t){return nr(e.getDate(),t,2)}function Ere(e,t){return nr(e.getHours(),t,2)}function Rre(e,t){return nr(e.getHours()%12||12,t,2)}function Lre(e,t){return nr(1+dc.count(Ci(e),e),t,3)}function lO(e,t){return nr(e.getMilliseconds(),t,3)}function Ire(e,t){return lO(e,t)+"000"}function Fre(e,t){return nr(e.getMonth()+1,t,2)}function Nre(e,t){return nr(e.getMinutes(),t,2)}function jre(e,t){return nr(e.getSeconds(),t,2)}function $re(e){var t=e.getDay();return t===0?7:t}function Bre(e,t){return nr(yh.count(Ci(e)-1,e),t,2)}function sO(e){var t=e.getDay();return t>=4||t===0?Dl(e):Dl.ceil(e)}function zre(e,t){return e=sO(e),nr(Dl.count(Ci(e),e)+(Ci(e).getDay()===4),t,2)}function qre(e){return e.getDay()}function Wre(e,t){return nr(td.count(Ci(e)-1,e),t,2)}function Ure(e,t){return nr(e.getFullYear()%100,t,2)}function Hre(e,t){return e=sO(e),nr(e.getFullYear()%100,t,2)}function Vre(e,t){return nr(e.getFullYear()%1e4,t,4)}function Yre(e,t){var r=e.getDay();return e=r>=4||r===0?Dl(e):Dl.ceil(e),nr(e.getFullYear()%1e4,t,4)}function Gre(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+nr(t/60|0,"0",2)+nr(t%60,"0",2)}function QT(e,t){return nr(e.getUTCDate(),t,2)}function Xre(e,t){return nr(e.getUTCHours(),t,2)}function Zre(e,t){return nr(e.getUTCHours()%12||12,t,2)}function Kre(e,t){return nr(1+hc.count(Oi(e),e),t,3)}function uO(e,t){return nr(e.getUTCMilliseconds(),t,3)}function Jre(e,t){return uO(e,t)+"000"}function Qre(e,t){return nr(e.getUTCMonth()+1,t,2)}function eae(e,t){return nr(e.getUTCMinutes(),t,2)}function tae(e,t){return nr(e.getUTCSeconds(),t,2)}function nae(e){var t=e.getUTCDay();return t===0?7:t}function rae(e,t){return nr(bh.count(Oi(e)-1,e),t,2)}function cO(e){var t=e.getUTCDay();return t>=4||t===0?El(e):El.ceil(e)}function aae(e,t){return e=cO(e),nr(El.count(Oi(e),e)+(Oi(e).getUTCDay()===4),t,2)}function iae(e){return e.getUTCDay()}function oae(e,t){return nr(nd.count(Oi(e)-1,e),t,2)}function lae(e,t){return nr(e.getUTCFullYear()%100,t,2)}function sae(e,t){return e=cO(e),nr(e.getUTCFullYear()%100,t,2)}function uae(e,t){return nr(e.getUTCFullYear()%1e4,t,4)}function cae(e,t){var r=e.getUTCDay();return e=r>=4||r===0?El(e):El.ceil(e),nr(e.getUTCFullYear()%1e4,t,4)}function fae(){return"+0000"}function ek(){return"%"}function tk(e){return+e}function nk(e){return Math.floor(+e/1e3)}var ll,fO,dO;dae({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function dae(e){return ll=dre(e),fO=ll.format,ll.parse,dO=ll.utcFormat,ll.utcParse,ll}function hae(e){return new Date(e)}function pae(e){return e instanceof Date?+e:+new Date(+e)}function lb(e,t,r,i,u,o,a,n,l,f){var s=tO(),c=s.invert,d=s.domain,h=f(".%L"),p=f(":%S"),m=f("%I:%M"),y=f("%I %p"),v=f("%a %d"),g=f("%b %d"),b=f("%B"),x=f("%Y");function _(w){return(l(w)=1?(r=1,t-1):Math.floor(r*t),u=e[i],o=e[i+1],a=i>0?e[i-1]:2*u-o,n=ir&&(o=t.slice(r,o),n[a]?n[a]+=o:n[++a]=o),(i=i[0])===(u=u[0])?n[a]?n[a]+=u:n[++a]=u:(n[++a]=null,l.push({i:a,x:sv(i,u)})),r=Vm.lastIndex;return r-1}var db=Jae;function Qae(e,t,r){for(var i=-1,u=e==null?0:e.length;++i=lie&&(o=oie,a=!1,t=new tie(t));e:for(;++umo)if(!(Math.abs(s*n-l*f)>mo)||!u)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var d=r-o,h=i-a,p=n*n+l*l,m=d*d+h*h,y=Math.sqrt(p),v=Math.sqrt(c),g=u*Math.tan((cv-Math.acos((p+c-m)/(2*y*v)))/2),b=g/v,x=g/y;Math.abs(b-1)>mo&&(this._+="L"+(e+b*f)+","+(t+b*s)),this._+="A"+u+","+u+",0,0,"+ +(s*d>f*h)+","+(this._x1=e+x*n)+","+(this._y1=t+x*l)}},arc:function(e,t,r,i,u,o){e=+e,t=+t,r=+r,o=!!o;var a=r*Math.cos(i),n=r*Math.sin(i),l=e+a,f=t+n,s=1^o,c=o?i-u:u-i;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+l+","+f:(Math.abs(this._x1-l)>mo||Math.abs(this._y1-f)>mo)&&(this._+="L"+l+","+f),r&&(c<0&&(c=c%fv+fv),c>gie?this._+="A"+r+","+r+",0,1,"+s+","+(e-a)+","+(t-n)+"A"+r+","+r+",0,1,"+s+","+(this._x1=l)+","+(this._y1=f):c>mo&&(this._+="A"+r+","+r+",0,"+ +(c>=cv)+","+s+","+(this._x1=e+r*Math.cos(u))+","+(this._y1=t+r*Math.sin(u))))},rect:function(e,t,r,i){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +r+"v"+ +i+"h"+-r+"Z"},toString:function(){return this._}};function ca(e){return function(){return e}}var ak=1e-12;function kO(e){this._context=e}kO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function gb(e){return new kO(e)}function MO(e){return e[0]}function SO(e){return e[1]}function CO(){var e=MO,t=SO,r=ca(!0),i=null,u=gb,o=null;function a(n){var l,f=n.length,s,c=!1,d;for(i==null&&(o=u(d=pb())),l=0;l<=f;++l)!(l=d;--h)n.point(g[h],b[h]);n.lineEnd(),n.areaEnd()}y&&(g[c]=+e(m,c,s),b[c]=+r(m,c,s),n.point(t?+t(m,c,s):g[c],i?+i(m,c,s):b[c]))}if(v)return n=null,v+""||null}function f(){return CO().defined(u).curve(a).context(o)}return l.x=function(s){return arguments.length?(e=typeof s=="function"?s:ca(+s),t=null,l):e},l.x0=function(s){return arguments.length?(e=typeof s=="function"?s:ca(+s),l):e},l.x1=function(s){return arguments.length?(t=s==null?null:typeof s=="function"?s:ca(+s),l):t},l.y=function(s){return arguments.length?(r=typeof s=="function"?s:ca(+s),i=null,l):r},l.y0=function(s){return arguments.length?(r=typeof s=="function"?s:ca(+s),l):r},l.y1=function(s){return arguments.length?(i=s==null?null:typeof s=="function"?s:ca(+s),l):i},l.lineX0=l.lineY0=function(){return f().x(e).y(r)},l.lineY1=function(){return f().x(e).y(i)},l.lineX1=function(){return f().x(t).y(r)},l.defined=function(s){return arguments.length?(u=typeof s=="function"?s:ca(!!s),l):u},l.curve=function(s){return arguments.length?(a=s,o!=null&&(n=a(o)),l):a},l.context=function(s){return arguments.length?(s==null?o=n=null:n=a(o=s),l):o},l}var ik=Array.prototype.slice;function Qi(){}function ad(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Yh(e){this._context=e}Yh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ad(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ad(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function vie(e){return new Yh(e)}function OO(e){this._context=e}OO.prototype={areaStart:Qi,areaEnd:Qi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:ad(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function yie(e){return new OO(e)}function AO(e){this._context=e}AO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:ad(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function bie(e){return new AO(e)}function PO(e,t){this._basis=new Yh(e),this._beta=t}PO.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var i=e[0],u=t[0],o=e[r]-i,a=t[r]-u,n=-1,l;++n<=r;)l=n/r,this._basis.point(this._beta*e[n]+(1-this._beta)*(i+l*o),this._beta*t[n]+(1-this._beta)*(u+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const xie=function e(t){function r(i){return t===1?new Yh(i):new PO(i,t)}return r.beta=function(i){return e(+i)},r}(.85);function id(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function mb(e,t){this._context=e,this._k=(1-t)/6}mb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:id(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:id(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const wie=function e(t){function r(i){return new mb(i,t)}return r.tension=function(i){return e(+i)},r}(0);function vb(e,t){this._context=e,this._k=(1-t)/6}vb.prototype={areaStart:Qi,areaEnd:Qi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:id(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const _ie=function e(t){function r(i){return new vb(i,t)}return r.tension=function(i){return e(+i)},r}(0);function yb(e,t){this._context=e,this._k=(1-t)/6}yb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:id(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Tie=function e(t){function r(i){return new yb(i,t)}return r.tension=function(i){return e(+i)},r}(0);function bb(e,t,r){var i=e._x1,u=e._y1,o=e._x2,a=e._y2;if(e._l01_a>ak){var n=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*n-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,u=(u*n-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>ak){var f=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,s=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*f+e._x1*e._l23_2a-t*e._l12_2a)/s,a=(a*f+e._y1*e._l23_2a-r*e._l12_2a)/s}e._context.bezierCurveTo(i,u,o,a,e._x2,e._y2)}function DO(e,t){this._context=e,this._alpha=t}DO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:bb(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const kie=function e(t){function r(i){return t?new DO(i,t):new mb(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function EO(e,t){this._context=e,this._alpha=t}EO.prototype={areaStart:Qi,areaEnd:Qi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:bb(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Mie=function e(t){function r(i){return t?new EO(i,t):new vb(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function RO(e,t){this._context=e,this._alpha=t}RO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:bb(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Sie=function e(t){function r(i){return t?new RO(i,t):new yb(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function LO(e){this._context=e}LO.prototype={areaStart:Qi,areaEnd:Qi,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Cie(e){return new LO(e)}function ok(e){return e<0?-1:1}function lk(e,t,r){var i=e._x1-e._x0,u=t-e._x1,o=(e._y1-e._y0)/(i||u<0&&-0),a=(r-e._y1)/(u||i<0&&-0),n=(o*u+a*i)/(i+u);return(ok(o)+ok(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(n))||0}function sk(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Ym(e,t,r){var i=e._x0,u=e._y0,o=e._x1,a=e._y1,n=(o-i)/3;e._context.bezierCurveTo(i+n,u+n*t,o-n,a-n*r,o,a)}function od(e){this._context=e}od.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ym(this,this._t0,sk(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Ym(this,sk(this,r=lk(this,e,t)),r);break;default:Ym(this,this._t0,r=lk(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function IO(e){this._context=new FO(e)}(IO.prototype=Object.create(od.prototype)).point=function(e,t){od.prototype.point.call(this,t,e)};function FO(e){this._context=e}FO.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,i,u,o){this._context.bezierCurveTo(t,e,i,r,o,u)}};function Oie(e){return new od(e)}function Aie(e){return new IO(e)}function NO(e){this._context=e}NO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var i=uk(e),u=uk(t),o=0,a=1;a=0;--t)u[t]=(a[t]-u[t+1])/o[t];for(o[r-1]=(e[r]+u[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function Die(e){return new Gh(e,.5)}function Eie(e){return new Gh(e,0)}function Rie(e){return new Gh(e,1)}function Rl(e,t){if((a=e.length)>1)for(var r=1,i,u,o=e[t[0]],a,n=o.length;r=0;)r[t]=t;return r}function Lie(e,t){return e[t]}function jO(){var e=ca([]),t=Ll,r=Rl,i=Lie;function u(o){var a=e.apply(this,arguments),n,l=o.length,f=a.length,s=new Array(f),c;for(n=0;n0){for(var r,i,u=0,o=e[0].length,a;u0)for(var r,i=0,u,o,a,n,l,f=e[t[0]].length;i0?(u[0]=a,u[1]=a+=o):o<0?(u[1]=n,u[0]=n+=o):(u[0]=0,u[1]=o)}function Fie(e,t){if((u=e.length)>0){for(var r=0,i=e[t[0]],u,o=i.length;r0)||!((o=(u=e[t[0]]).length)>0))){for(var r=0,i=1,u,o,a;io&&(o=u,r=t);return r}function $O(e){var t=e.map(BO);return Ll(e).sort(function(r,i){return t[r]-t[i]})}function BO(e){for(var t=0,r=-1,i=e.length,u;++rg&&(g=f),w=y*y*_,b=Math.max(g/w,w/v),b>x){y-=f;break}x=b}a.push(l={value:y,dice:h1?i:1)},r}(zO);function Uie(e,t,r,i,u){var o=e.children,a,n=o.length,l,f=new Array(n+1);for(f[0]=l=a=0;a=d-1){var g=o[c];g.x0=p,g.y0=m,g.x1=y,g.y1=v;return}for(var b=f[c],x=h/2+b,_=c+1,w=d-1;_>>1;f[k]v-m){var S=(p*M+y*T)/h;s(c,_,T,p,m,S,v),s(_,d,M,S,m,y,v)}else{var C=(m*M+v*T)/h;s(c,_,T,p,m,y,C),s(_,d,M,p,C,y,v)}}}function Hie(e,t,r,i,u){(e.depth&1?Zh:Xh)(e,t,r,i,u)}const Vie=function e(t){function r(i,u,o,a,n){if((l=i._squarify)&&l.ratio===t)for(var l,f,s,c,d=-1,h,p=l.length,m=i.value;++d1?i:1)},r}(zO);var Gm=new Date,Xm=new Date;function aa(e,t,r,i){function u(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return u.floor=function(o){return e(o=new Date(+o)),o},u.ceil=function(o){return e(o=new Date(o-1)),t(o,1),e(o),o},u.round=function(o){var a=u(o),n=u.ceil(o);return o-a0))return l;do l.push(f=new Date(+o)),t(o,n),e(o);while(f=a)for(;e(a),!o(a);)a.setTime(a-1)},function(a,n){if(a>=a)if(n<0)for(;++n<=0;)for(;t(a,-1),!o(a););else for(;--n>=0;)for(;t(a,1),!o(a););})},r&&(u.count=function(o,a){return Gm.setTime(+o),Xm.setTime(+a),e(Gm),e(Xm),Math.floor(r(Gm,Xm))},u.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?u.filter(i?function(a){return i(a)%o===0}:function(a){return u.count(0,a)%o===0}):u}),u}var Wu=aa(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Wu.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?aa(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):Wu};Wu.range;var ld=1e3,Ro=6e4,sd=36e5,WO=864e5,UO=6048e5,hv=aa(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*ld)},function(e,t){return(t-e)/ld},function(e){return e.getUTCSeconds()});hv.range;var HO=aa(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*ld)},function(e,t){e.setTime(+e+t*Ro)},function(e,t){return(t-e)/Ro},function(e){return e.getMinutes()});HO.range;var VO=aa(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*ld-e.getMinutes()*Ro)},function(e,t){e.setTime(+e+t*sd)},function(e,t){return(t-e)/sd},function(e){return e.getHours()});VO.range;var Kh=aa(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ro)/WO},function(e){return e.getDate()-1});Kh.range;function Xo(e){return aa(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,r){t.setDate(t.getDate()+r*7)},function(t,r){return(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Ro)/UO})}var ud=Xo(0),Uu=Xo(1),YO=Xo(2),GO=Xo(3),Lo=Xo(4),XO=Xo(5),ZO=Xo(6);ud.range;Uu.range;YO.range;GO.range;Lo.range;XO.range;ZO.range;var KO=aa(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});KO.range;var eo=aa(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});eo.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:aa(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)})};eo.range;var JO=aa(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Ro)},function(e,t){return(t-e)/Ro},function(e){return e.getUTCMinutes()});JO.range;var QO=aa(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*sd)},function(e,t){return(t-e)/sd},function(e){return e.getUTCHours()});QO.range;var Jh=aa(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/WO},function(e){return e.getUTCDate()-1});Jh.range;function Zo(e){return aa(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCDate(t.getUTCDate()+r*7)},function(t,r){return(r-t)/UO})}var cd=Zo(0),Hu=Zo(1),e8=Zo(2),t8=Zo(3),Io=Zo(4),n8=Zo(5),r8=Zo(6);cd.range;Hu.range;e8.range;t8.range;Io.range;n8.range;r8.range;var a8=aa(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});a8.range;var to=aa(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});to.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:aa(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})};to.range;function Zm(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Km(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function nu(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function Yie(e){var t=e.dateTime,r=e.date,i=e.time,u=e.periods,o=e.days,a=e.shortDays,n=e.months,l=e.shortMonths,f=ru(u),s=au(u),c=ru(o),d=au(o),h=ru(a),p=au(a),m=ru(n),y=au(n),v=ru(l),g=au(l),b={a:A,A:z,b:B,B:$,c:null,d:gk,e:gk,f:moe,g:Soe,G:Ooe,H:hoe,I:poe,j:goe,L:i8,m:voe,M:yoe,p:j,q:N,Q:yk,s:bk,S:boe,u:xoe,U:woe,V:_oe,w:Toe,W:koe,x:null,X:null,y:Moe,Y:Coe,Z:Aoe,"%":vk},x={a:E,A:W,b:G,B:L,c:null,d:mk,e:mk,f:Roe,g:Woe,G:Hoe,H:Poe,I:Doe,j:Eoe,L:l8,m:Loe,M:Ioe,p:q,q:H,Q:yk,s:bk,S:Foe,u:Noe,U:joe,V:$oe,w:Boe,W:zoe,x:null,X:null,y:qoe,Y:Uoe,Z:Voe,"%":vk},_={a:S,A:C,b:P,B:D,c:O,d:hk,e:hk,f:uoe,g:dk,G:fk,H:pk,I:pk,j:ioe,L:soe,m:aoe,M:ooe,p:M,q:roe,Q:foe,s:doe,S:loe,u:Jie,U:Qie,V:eoe,w:Kie,W:toe,x:R,X:F,y:dk,Y:fk,Z:noe,"%":coe};b.x=w(r,b),b.X=w(i,b),b.c=w(t,b),x.x=w(r,x),x.X=w(i,x),x.c=w(t,x);function w(V,te){return function(ee){var U=[],Q=-1,Y=0,Z=V.length,X,re,ie;for(ee instanceof Date||(ee=new Date(+ee));++Q53)return null;"w"in U||(U.w=1),"Z"in U?(Y=Km(nu(U.y,0,1)),Z=Y.getUTCDay(),Y=Z>4||Z===0?Hu.ceil(Y):Hu(Y),Y=Jh.offset(Y,(U.V-1)*7),U.y=Y.getUTCFullYear(),U.m=Y.getUTCMonth(),U.d=Y.getUTCDate()+(U.w+6)%7):(Y=Zm(nu(U.y,0,1)),Z=Y.getDay(),Y=Z>4||Z===0?Uu.ceil(Y):Uu(Y),Y=Kh.offset(Y,(U.V-1)*7),U.y=Y.getFullYear(),U.m=Y.getMonth(),U.d=Y.getDate()+(U.w+6)%7)}else("W"in U||"U"in U)&&("w"in U||(U.w="u"in U?U.u%7:"W"in U?1:0),Z="Z"in U?Km(nu(U.y,0,1)).getUTCDay():Zm(nu(U.y,0,1)).getDay(),U.m=0,U.d="W"in U?(U.w+6)%7+U.W*7-(Z+5)%7:U.w+U.U*7-(Z+6)%7);return"Z"in U?(U.H+=U.Z/100|0,U.M+=U.Z%100,Km(U)):Zm(U)}}function T(V,te,ee,U){for(var Q=0,Y=te.length,Z=ee.length,X,re;Q=Z)return-1;if(X=te.charCodeAt(Q++),X===37){if(X=te.charAt(Q++),re=_[X in ck?te.charAt(Q++):X],!re||(U=re(V,ee,U))<0)return-1}else if(X!=ee.charCodeAt(U++))return-1}return U}function M(V,te,ee){var U=f.exec(te.slice(ee));return U?(V.p=s[U[0].toLowerCase()],ee+U[0].length):-1}function S(V,te,ee){var U=h.exec(te.slice(ee));return U?(V.w=p[U[0].toLowerCase()],ee+U[0].length):-1}function C(V,te,ee){var U=c.exec(te.slice(ee));return U?(V.w=d[U[0].toLowerCase()],ee+U[0].length):-1}function P(V,te,ee){var U=v.exec(te.slice(ee));return U?(V.m=g[U[0].toLowerCase()],ee+U[0].length):-1}function D(V,te,ee){var U=m.exec(te.slice(ee));return U?(V.m=y[U[0].toLowerCase()],ee+U[0].length):-1}function O(V,te,ee){return T(V,t,te,ee)}function R(V,te,ee){return T(V,r,te,ee)}function F(V,te,ee){return T(V,i,te,ee)}function A(V){return a[V.getDay()]}function z(V){return o[V.getDay()]}function B(V){return l[V.getMonth()]}function $(V){return n[V.getMonth()]}function j(V){return u[+(V.getHours()>=12)]}function N(V){return 1+~~(V.getMonth()/3)}function E(V){return a[V.getUTCDay()]}function W(V){return o[V.getUTCDay()]}function G(V){return l[V.getUTCMonth()]}function L(V){return n[V.getUTCMonth()]}function q(V){return u[+(V.getUTCHours()>=12)]}function H(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var te=w(V+="",b);return te.toString=function(){return V},te},parse:function(V){var te=k(V+="",!1);return te.toString=function(){return V},te},utcFormat:function(V){var te=w(V+="",x);return te.toString=function(){return V},te},utcParse:function(V){var te=k(V+="",!0);return te.toString=function(){return V},te}}}var ck={"-":"",_:" ",0:"0"},ia=/^\s*\d+/,Gie=/^%/,Xie=/[\\^$*+?|[\]().{}]/g;function rr(e,t,r){var i=e<0?"-":"",u=(i?-e:e)+"",o=u.length;return i+(o68?1900:2e3),r+i[0].length):-1}function noe(e,t,r){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),r+i[0].length):-1}function roe(e,t,r){var i=ia.exec(t.slice(r,r+1));return i?(e.q=i[0]*3-3,r+i[0].length):-1}function aoe(e,t,r){var i=ia.exec(t.slice(r,r+2));return i?(e.m=i[0]-1,r+i[0].length):-1}function hk(e,t,r){var i=ia.exec(t.slice(r,r+2));return i?(e.d=+i[0],r+i[0].length):-1}function ioe(e,t,r){var i=ia.exec(t.slice(r,r+3));return i?(e.m=0,e.d=+i[0],r+i[0].length):-1}function pk(e,t,r){var i=ia.exec(t.slice(r,r+2));return i?(e.H=+i[0],r+i[0].length):-1}function ooe(e,t,r){var i=ia.exec(t.slice(r,r+2));return i?(e.M=+i[0],r+i[0].length):-1}function loe(e,t,r){var i=ia.exec(t.slice(r,r+2));return i?(e.S=+i[0],r+i[0].length):-1}function soe(e,t,r){var i=ia.exec(t.slice(r,r+3));return i?(e.L=+i[0],r+i[0].length):-1}function uoe(e,t,r){var i=ia.exec(t.slice(r,r+6));return i?(e.L=Math.floor(i[0]/1e3),r+i[0].length):-1}function coe(e,t,r){var i=Gie.exec(t.slice(r,r+1));return i?r+i[0].length:-1}function foe(e,t,r){var i=ia.exec(t.slice(r));return i?(e.Q=+i[0],r+i[0].length):-1}function doe(e,t,r){var i=ia.exec(t.slice(r));return i?(e.s=+i[0],r+i[0].length):-1}function gk(e,t){return rr(e.getDate(),t,2)}function hoe(e,t){return rr(e.getHours(),t,2)}function poe(e,t){return rr(e.getHours()%12||12,t,2)}function goe(e,t){return rr(1+Kh.count(eo(e),e),t,3)}function i8(e,t){return rr(e.getMilliseconds(),t,3)}function moe(e,t){return i8(e,t)+"000"}function voe(e,t){return rr(e.getMonth()+1,t,2)}function yoe(e,t){return rr(e.getMinutes(),t,2)}function boe(e,t){return rr(e.getSeconds(),t,2)}function xoe(e){var t=e.getDay();return t===0?7:t}function woe(e,t){return rr(ud.count(eo(e)-1,e),t,2)}function o8(e){var t=e.getDay();return t>=4||t===0?Lo(e):Lo.ceil(e)}function _oe(e,t){return e=o8(e),rr(Lo.count(eo(e),e)+(eo(e).getDay()===4),t,2)}function Toe(e){return e.getDay()}function koe(e,t){return rr(Uu.count(eo(e)-1,e),t,2)}function Moe(e,t){return rr(e.getFullYear()%100,t,2)}function Soe(e,t){return e=o8(e),rr(e.getFullYear()%100,t,2)}function Coe(e,t){return rr(e.getFullYear()%1e4,t,4)}function Ooe(e,t){var r=e.getDay();return e=r>=4||r===0?Lo(e):Lo.ceil(e),rr(e.getFullYear()%1e4,t,4)}function Aoe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+rr(t/60|0,"0",2)+rr(t%60,"0",2)}function mk(e,t){return rr(e.getUTCDate(),t,2)}function Poe(e,t){return rr(e.getUTCHours(),t,2)}function Doe(e,t){return rr(e.getUTCHours()%12||12,t,2)}function Eoe(e,t){return rr(1+Jh.count(to(e),e),t,3)}function l8(e,t){return rr(e.getUTCMilliseconds(),t,3)}function Roe(e,t){return l8(e,t)+"000"}function Loe(e,t){return rr(e.getUTCMonth()+1,t,2)}function Ioe(e,t){return rr(e.getUTCMinutes(),t,2)}function Foe(e,t){return rr(e.getUTCSeconds(),t,2)}function Noe(e){var t=e.getUTCDay();return t===0?7:t}function joe(e,t){return rr(cd.count(to(e)-1,e),t,2)}function s8(e){var t=e.getUTCDay();return t>=4||t===0?Io(e):Io.ceil(e)}function $oe(e,t){return e=s8(e),rr(Io.count(to(e),e)+(to(e).getUTCDay()===4),t,2)}function Boe(e){return e.getUTCDay()}function zoe(e,t){return rr(Hu.count(to(e)-1,e),t,2)}function qoe(e,t){return rr(e.getUTCFullYear()%100,t,2)}function Woe(e,t){return e=s8(e),rr(e.getUTCFullYear()%100,t,2)}function Uoe(e,t){return rr(e.getUTCFullYear()%1e4,t,4)}function Hoe(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Io(e):Io.ceil(e),rr(e.getUTCFullYear()%1e4,t,4)}function Voe(){return"+0000"}function vk(){return"%"}function yk(e){return+e}function bk(e){return Math.floor(+e/1e3)}var sl,wb,u8,c8;Yoe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Yoe(e){return sl=Yie(e),wb=sl.format,u8=sl.parse,sl.utcFormat,c8=sl.utcParse,sl}var iu={},ou={},xk;function Goe(){if(xk)return ou;xk=1,ou.__esModule=!0,ou.default=void 0;var e=function(i){if(typeof i=="string")return i;if(i)return i.displayName||i.name||"Component"},t=e;return ou.default=t,ou}var wk;function as(){if(wk)return iu;wk=1;var e=vn;iu.__esModule=!0,iu.default=void 0;var t=e(Goe()),r=function(o,a){return a+"("+(0,t.default)(o)+")"},i=r;return iu.default=i,iu}var Ii={},lu={},_k;function f8(){if(_k)return lu;_k=1,lu.__esModule=!0,lu.default=void 0;var e=function(i,u){return function(o){return o[i]=u,o}},t=e;return lu.default=t,lu}var Xoe=vn;Ii.__esModule=!0;var _b=Ii.default=void 0,Zoe=Xoe(f8()),Koe=function(t){return(0,Zoe.default)("displayName",t)},Joe=Koe;_b=Ii.default=Joe;var su={},Tk;function Qoe(){if(Tk)return su;Tk=1;var e=vn;su.__esModule=!0,su.default=void 0;var t=$e;e(Ii),e(as());var r=function(o){return function(a){var n=(0,t.createFactory)(a),l=function(s){return n(o(s))};return l}},i=r;return su.default=i,su}var Qh=vn;Qh(hr());Qh(as());Qh(Ii);Qh(Qoe());function ele(e,t){for(var r=-1,i=e==null?0:e.length;++rn))return!1;var f=o.get(e),s=o.get(t);if(f&&s)return f==t&&s==e;var c=-1,d=!0,h=r&ole?new nle:void 0;for(o.set(e,t),o.set(t,e);++c{const e=document.querySelector("head");return e||un(),e},m3=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function fH(e,t){const r=Xn(()=>uH(e),[e]),i=$e.useRef(null),c=$e.useRef(null),o=Sn(Qr(u=>{const d=c.current;d||un(),d.textContent=u}),[]),a=Sn(u=>{const d=i.current;d||un(),d.textContent=u},[]);Fa(()=>{!i.current&&!c.current||un();const u=m3(t),d=m3(t);return i.current=u,c.current=d,u.setAttribute(`${Ol}-always`,e),d.setAttribute(`${Ol}-dynamic`,e),Mm().appendChild(u),Mm().appendChild(d),a(r.always),o(r.resting),()=>{const h=p=>{const g=p.current;g||un(),Mm().removeChild(g),p.current=null};h(i),h(c)}},[t,a,o,r.always,r.resting,e]);const n=Sn(()=>o(r.dragging),[o,r.dragging]),l=Sn(u=>{if(u==="DROP"){o(r.dropAnimating);return}o(r.userCancel)},[o,r.dropAnimating,r.userCancel]),f=Sn(()=>{c.current&&o(r.resting)},[o,r.resting]);return Xn(()=>({dragging:n,dropping:l,resting:f}),[n,l,f])}function V6(e,t){return Array.from(e.querySelectorAll(t))}var Y6=e=>{var t;return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)||window};function Xd(e){return e instanceof Y6(e).HTMLElement}function dH(e,t){const r=`[${Al.contextId}="${e}"]`,i=V6(document,r);if(!i.length)return null;const c=i.find(o=>o.getAttribute(Al.draggableId)===t);return!c||!Xd(c)?null:c}function hH(e){const t=$e.useRef({}),r=$e.useRef(null),i=$e.useRef(null),c=$e.useRef(!1),o=Sn(function(d,h){const p={id:d,focus:h};return t.current[d]=p,function(){const y=t.current;y[d]!==p&&delete y[d]}},[]),a=Sn(function(d){const h=dH(e,d);h&&h!==document.activeElement&&h.focus()},[e]),n=Sn(function(d,h){r.current===d&&(r.current=h)},[]),l=Sn(function(){i.current||c.current&&(i.current=requestAnimationFrame(()=>{i.current=null;const d=r.current;d&&a(d)}))},[a]),f=Sn(function(d){r.current=null;const h=document.activeElement;h&&h.getAttribute(Al.draggableId)===d&&(r.current=d)},[]);return Fa(()=>(c.current=!0,function(){c.current=!1;const d=i.current;d&&cancelAnimationFrame(d)}),[]),Xn(()=>({register:o,tryRecordFocus:f,tryRestoreFocusRecorded:l,tryShiftRecord:n}),[o,f,l,n])}function pH(){const e={draggables:{},droppables:{}},t=[];function r(u){return t.push(u),function(){const h=t.indexOf(u);h!==-1&&t.splice(h,1)}}function i(u){t.length&&t.forEach(d=>d(u))}function c(u){return e.draggables[u]||null}function o(u){const d=c(u);return d||un(),d}const a={register:u=>{e.draggables[u.descriptor.id]=u,i({type:"ADDITION",value:u})},update:(u,d)=>{const h=e.draggables[d.descriptor.id];h&&h.uniqueId===u.uniqueId&&(delete e.draggables[d.descriptor.id],e.draggables[u.descriptor.id]=u)},unregister:u=>{const d=u.descriptor.id,h=c(d);h&&u.uniqueId===h.uniqueId&&(delete e.draggables[d],e.droppables[u.descriptor.droppableId]&&i({type:"REMOVAL",value:u}))},getById:o,findById:c,exists:u=>!!c(u),getAllByType:u=>Object.values(e.draggables).filter(d=>d.descriptor.type===u)};function n(u){return e.droppables[u]||null}function l(u){const d=n(u);return d||un(),d}const f={register:u=>{e.droppables[u.descriptor.id]=u},unregister:u=>{const d=n(u.descriptor.id);d&&u.uniqueId===d.uniqueId&&delete e.droppables[u.descriptor.id]},getById:l,findById:n,exists:u=>!!n(u),getAllByType:u=>Object.values(e.droppables).filter(d=>d.descriptor.type===u)};function s(){e.draggables={},e.droppables={},t.length=0}return{draggable:a,droppable:f,subscribe:r,clean:s}}function gH(){const e=Xn(pH,[]);return $e.useEffect(()=>function(){et.version.startsWith("16")||et.version.startsWith("17")?requestAnimationFrame(e.clean):e.clean()},[e]),e}var _1=et.createContext(null),Hf=()=>{const e=document.body;return e||un(),e};const mH={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};var vH=mH;const yH=e=>`rfd-announcement-${e}`;function bH(e){const t=Xn(()=>yH(e),[e]),r=$e.useRef(null);return $e.useEffect(function(){const o=document.createElement("div");return r.current=o,o.id=t,o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true"),Gt(o.style,vH),Hf().appendChild(o),function(){setTimeout(function(){const l=Hf();l.contains(o)&&l.removeChild(o),o===r.current&&(r.current=null)})}},[t]),Sn(c=>{const o=r.current;if(o){o.textContent=c;return}},[])}let G6=0;const X6={separator:"::"};function xH(){G6=0}function wH(e,t){return t===void 0&&(t=X6),Xn(()=>`${e}${t.separator}${G6++}`,[t.separator,e])}function _H(e,t){t===void 0&&(t=X6);const r=et.useId();return Xn(()=>`${e}${t.separator}${r}`,[t.separator,e,r])}var T1="useId"in et?_H:wH;function TH(e){let{contextId:t,uniqueId:r}=e;return`rfd-hidden-text-${t}-${r}`}function kH(e){let{contextId:t,text:r}=e;const i=T1("hidden-text",{separator:"-"}),c=Xn(()=>TH({contextId:t,uniqueId:i}),[i,t]);return $e.useEffect(function(){const a=document.createElement("div");return a.id=c,a.textContent=r,a.style.display="none",Hf().appendChild(a),function(){const l=Hf();l.contains(a)&&l.removeChild(a)}},[c,r]),c}var Zd=et.createContext(null);function Z6(e){const t=$e.useRef(e);return $e.useEffect(()=>{t.current=e}),t}function MH(){let e=null;function t(){return!!e}function r(a){return a===e}function i(a){e&&un();const n={abandon:a};return e=n,n}function c(){e||un(),e=null}function o(){e&&(e.abandon(),c())}return{isClaimed:t,isActive:r,claim:i,release:c,tryAbandon:o}}function ju(e){return e.phase==="IDLE"||e.phase==="DROP_ANIMATING"?!1:e.isDragging}const SH=9,CH=13,k1=27,K6=32,OH=33,AH=34,PH=35,DH=36,EH=37,RH=38,LH=39,IH=40,FH={[CH]:!0,[SH]:!0};var J6=e=>{FH[e.keyCode]&&e.preventDefault()};const NH=(()=>{const e="visibilitychange";return typeof document>"u"?e:[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find(i=>`on${i}`in document)||e})();var Kd=NH;const Q6=0,v3=5;function jH(e,t){return Math.abs(t.x-e.x)>=v3||Math.abs(t.y-e.y)>=v3}const y3={type:"IDLE"};function $H(e){let{cancel:t,completed:r,getPhase:i,setPhase:c}=e;return[{eventName:"mousemove",fn:o=>{const{button:a,clientX:n,clientY:l}=o;if(a!==Q6)return;const f={x:n,y:l},s=i();if(s.type==="DRAGGING"){o.preventDefault(),s.actions.move(f);return}s.type!=="PENDING"&&un();const u=s.point;if(!jH(u,f))return;o.preventDefault();const d=s.actions.fluidLift(f);c({type:"DRAGGING",actions:d})}},{eventName:"mouseup",fn:o=>{const a=i();if(a.type!=="DRAGGING"){t();return}o.preventDefault(),a.actions.drop({shouldBlockNextClick:!0}),r()}},{eventName:"mousedown",fn:o=>{i().type==="DRAGGING"&&o.preventDefault(),t()}},{eventName:"keydown",fn:o=>{if(i().type==="PENDING"){t();return}if(o.keyCode===k1){o.preventDefault(),t();return}J6(o)}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{i().type==="PENDING"&&t()}},{eventName:"webkitmouseforcedown",fn:o=>{const a=i();if(a.type==="IDLE"&&un(),a.actions.shouldRespectForcePress()){t();return}o.preventDefault()}},{eventName:Kd,fn:t}]}function eC(e){const t=$e.useRef(y3),r=$e.useRef(Xi),i=Xn(()=>({eventName:"mousedown",fn:function(u){if(u.defaultPrevented||u.button!==Q6||u.ctrlKey||u.metaKey||u.shiftKey||u.altKey)return;const d=e.findClosestDraggableId(u);if(!d)return;const h=e.tryGetLock(d,a,{sourceEvent:u});if(!h)return;u.preventDefault();const p={x:u.clientX,y:u.clientY};r.current(),f(h,p)}}),[e]),c=Xn(()=>({eventName:"webkitmouseforcewillbegin",fn:s=>{if(s.defaultPrevented)return;const u=e.findClosestDraggableId(s);if(!u)return;const d=e.findOptionsForDraggable(u);d&&(d.shouldRespectForcePress||e.canGetLock(u)&&s.preventDefault())}}),[e]),o=Sn(function(){const u={passive:!1,capture:!0};r.current=Wa(window,[c,i],u)},[c,i]),a=Sn(()=>{t.current.type!=="IDLE"&&(t.current=y3,r.current(),o())},[o]),n=Sn(()=>{const s=t.current;a(),s.type==="DRAGGING"&&s.actions.cancel({shouldBlockNextClick:!0}),s.type==="PENDING"&&s.actions.abort()},[a]),l=Sn(function(){const u={capture:!0,passive:!1},d=$H({cancel:n,completed:a,getPhase:()=>t.current,setPhase:h=>{t.current=h}});r.current=Wa(window,d,u)},[n,a]),f=Sn(function(u,d){t.current.type!=="IDLE"&&un(),t.current={type:"PENDING",point:d,actions:u},l()},[l]);Fa(function(){return o(),function(){r.current()}},[o])}function BH(){}const zH={[AH]:!0,[OH]:!0,[DH]:!0,[PH]:!0};function qH(e,t){function r(){t(),e.cancel()}function i(){t(),e.drop()}return[{eventName:"keydown",fn:c=>{if(c.keyCode===k1){c.preventDefault(),r();return}if(c.keyCode===K6){c.preventDefault(),i();return}if(c.keyCode===IH){c.preventDefault(),e.moveDown();return}if(c.keyCode===RH){c.preventDefault(),e.moveUp();return}if(c.keyCode===LH){c.preventDefault(),e.moveRight();return}if(c.keyCode===EH){c.preventDefault(),e.moveLeft();return}if(zH[c.keyCode]){c.preventDefault();return}J6(c)}},{eventName:"mousedown",fn:r},{eventName:"mouseup",fn:r},{eventName:"click",fn:r},{eventName:"touchstart",fn:r},{eventName:"resize",fn:r},{eventName:"wheel",fn:r,options:{passive:!0}},{eventName:Kd,fn:r}]}function tC(e){const t=$e.useRef(BH),r=Xn(()=>({eventName:"keydown",fn:function(o){if(o.defaultPrevented||o.keyCode!==K6)return;const a=e.findClosestDraggableId(o);if(!a)return;const n=e.tryGetLock(a,s,{sourceEvent:o});if(!n)return;o.preventDefault();let l=!0;const f=n.snapLift();t.current();function s(){l||un(),l=!1,t.current(),i()}t.current=Wa(window,qH(f,s),{capture:!0,passive:!1})}}),[e]),i=Sn(function(){const o={passive:!1,capture:!0};t.current=Wa(window,[r],o)},[r]);Fa(function(){return i(),function(){t.current()}},[i])}const Sm={type:"IDLE"},WH=120,UH=.15;function HH(e){let{cancel:t,getPhase:r}=e;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:i=>{i.preventDefault()}},{eventName:"keydown",fn:i=>{if(r().type!=="DRAGGING"){t();return}i.keyCode===k1&&i.preventDefault(),t()}},{eventName:Kd,fn:t}]}function VH(e){let{cancel:t,completed:r,getPhase:i}=e;return[{eventName:"touchmove",options:{capture:!1},fn:c=>{const o=i();if(o.type!=="DRAGGING"){t();return}o.hasMoved=!0;const{clientX:a,clientY:n}=c.touches[0],l={x:a,y:n};c.preventDefault(),o.actions.move(l)}},{eventName:"touchend",fn:c=>{const o=i();if(o.type!=="DRAGGING"){t();return}c.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),r()}},{eventName:"touchcancel",fn:c=>{if(i().type!=="DRAGGING"){t();return}c.preventDefault(),t()}},{eventName:"touchforcechange",fn:c=>{const o=i();o.type==="IDLE"&&un();const a=c.touches[0];if(!a||!(a.force>=UH))return;const l=o.actions.shouldRespectForcePress();if(o.type==="PENDING"){l&&t();return}if(l){if(o.hasMoved){c.preventDefault();return}t();return}c.preventDefault()}},{eventName:Kd,fn:t}]}function nC(e){const t=$e.useRef(Sm),r=$e.useRef(Xi),i=Sn(function(){return t.current},[]),c=Sn(function(h){t.current=h},[]),o=Xn(()=>({eventName:"touchstart",fn:function(h){if(h.defaultPrevented)return;const p=e.findClosestDraggableId(h);if(!p)return;const g=e.tryGetLock(p,n,{sourceEvent:h});if(!g)return;const y=h.touches[0],{clientX:v,clientY:m}=y,b={x:v,y:m};r.current(),u(g,b)}}),[e]),a=Sn(function(){const h={capture:!0,passive:!1};r.current=Wa(window,[o],h)},[o]),n=Sn(()=>{const d=t.current;d.type!=="IDLE"&&(d.type==="PENDING"&&clearTimeout(d.longPressTimerId),c(Sm),r.current(),a())},[a,c]),l=Sn(()=>{const d=t.current;n(),d.type==="DRAGGING"&&d.actions.cancel({shouldBlockNextClick:!0}),d.type==="PENDING"&&d.actions.abort()},[n]),f=Sn(function(){const h={capture:!0,passive:!1},p={cancel:l,completed:n,getPhase:i},g=Wa(window,VH(p),h),y=Wa(window,HH(p),h);r.current=function(){g(),y()}},[l,i,n]),s=Sn(function(){const h=i();h.type!=="PENDING"&&un();const p=h.actions.fluidLift(h.point);c({type:"DRAGGING",actions:p,hasMoved:!1})},[i,c]),u=Sn(function(h,p){i().type!=="IDLE"&&un();const g=setTimeout(s,WH);c({type:"PENDING",point:p,actions:h,longPressTimerId:g}),f()},[f,i,c,s]);Fa(function(){return a(),function(){r.current();const p=i();p.type==="PENDING"&&(clearTimeout(p.longPressTimerId),c(Sm))}},[i,a,c]),Fa(function(){return Wa(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}const YH=["input","button","textarea","select","option","optgroup","video","audio"];function rC(e,t){if(t==null)return!1;if(YH.includes(t.tagName.toLowerCase()))return!0;const i=t.getAttribute("contenteditable");return i==="true"||i===""?!0:t===e?!1:rC(e,t.parentElement)}function GH(e,t){const r=t.target;return Xd(r)?rC(e,r):!1}var XH=e=>Qa(e.getBoundingClientRect()).center;function ZH(e){return e instanceof Y6(e).Element}const KH=(()=>{const e="matches";return typeof document>"u"?e:[e,"msMatchesSelector","webkitMatchesSelector"].find(i=>i in Element.prototype)||e})();function aC(e,t){return e==null?null:e[KH](t)?e:aC(e.parentElement,t)}function JH(e,t){return e.closest?e.closest(t):aC(e,t)}function QH(e){return`[${Al.contextId}="${e}"]`}function eV(e,t){const r=t.target;if(!ZH(r))return null;const i=QH(e),c=JH(r,i);return!c||!Xd(c)?null:c}function tV(e,t){const r=eV(e,t);return r?r.getAttribute(Al.draggableId):null}function nV(e,t){const r=`[${W0.contextId}="${e}"]`,c=V6(document,r).find(o=>o.getAttribute(W0.id)===t);return!c||!Xd(c)?null:c}function rV(e){e.preventDefault()}function Zc(e){let{expected:t,phase:r,isLockActive:i,shouldWarn:c}=e;return!(!i()||t!==r)}function iC(e){let{lockAPI:t,store:r,registry:i,draggableId:c}=e;if(t.isClaimed())return!1;const o=i.draggable.findById(c);return!(!o||!o.options.isEnabled||!q6(r.getState(),c))}function aV(e){let{lockAPI:t,contextId:r,store:i,registry:c,draggableId:o,forceSensorStop:a,sourceEvent:n}=e;if(!iC({lockAPI:t,store:i,registry:c,draggableId:o}))return null;const f=c.draggable.getById(o),s=nV(r,f.descriptor.id);if(!s||n&&!f.options.canDragInteractiveElements&&GH(s,n))return null;const u=t.claim(a||Xi);let d="PRE_DRAG";function h(){return f.options.shouldRespectForcePress}function p(){return t.isActive(u)}function g(w,k){Zc({expected:w,phase:d,isLockActive:p,shouldWarn:!0})&&i.dispatch(k())}const y=g.bind(null,"DRAGGING");function v(w){function k(){t.release(),d="COMPLETED"}d!=="PRE_DRAG"&&(k(),un()),i.dispatch(HW(w.liftActionArgs)),d="DRAGGING";function T(M,S){if(S===void 0&&(S={shouldBlockNextClick:!1}),w.cleanup(),S.shouldBlockNextClick){const C=Wa(window,[{eventName:"click",fn:rV,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(C)}k(),i.dispatch(L6({reason:M}))}return{isActive:()=>Zc({expected:"DRAGGING",phase:d,isLockActive:p,shouldWarn:!1}),shouldRespectForcePress:h,drop:M=>T("DROP",M),cancel:M=>T("CANCEL",M),...w.actions}}function m(w){const k=Eu(M=>{y(()=>R6({client:M}))});return{...v({liftActionArgs:{id:o,clientSelection:w,movementMode:"FLUID"},cleanup:()=>k.cancel(),actions:{move:k}}),move:k}}function b(){const w={moveUp:()=>y(eU),moveRight:()=>y(nU),moveDown:()=>y(tU),moveLeft:()=>y(rU)};return v({liftActionArgs:{id:o,clientSelection:XH(s),movementMode:"SNAP"},cleanup:Xi,actions:w})}function x(){Zc({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!0})&&t.release()}return{isActive:()=>Zc({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!1}),shouldRespectForcePress:h,fluidLift:m,snapLift:b,abort:x}}const iV=[eC,tC,nC];function oV(e){let{contextId:t,store:r,registry:i,customSensors:c,enableDefaultSensors:o}=e;const a=[...o?iV:[],...c||[]],n=$e.useState(()=>MH())[0],l=Sn(function(v,m){ju(v)&&!ju(m)&&n.tryAbandon()},[n]);Fa(function(){let v=r.getState();return r.subscribe(()=>{const b=r.getState();l(v,b),v=b})},[n,r,l]),Fa(()=>n.tryAbandon,[n.tryAbandon]);const f=Sn(y=>iC({lockAPI:n,registry:i,store:r,draggableId:y}),[n,i,r]),s=Sn((y,v,m)=>aV({lockAPI:n,registry:i,contextId:t,store:r,draggableId:y,forceSensorStop:v||null,sourceEvent:m&&m.sourceEvent?m.sourceEvent:null}),[t,n,i,r]),u=Sn(y=>tV(t,y),[t]),d=Sn(y=>{const v=i.draggable.findById(y);return v?v.options:null},[i.draggable]),h=Sn(function(){n.isClaimed()&&(n.tryAbandon(),r.getState().phase!=="IDLE"&&r.dispatch(g1()))},[n,r]),p=Sn(()=>n.isClaimed(),[n]),g=Xn(()=>({canGetLock:f,tryGetLock:s,findClosestDraggableId:u,findOptionsForDraggable:d,tryReleaseLock:h,isLockClaimed:p}),[f,s,u,d,h,p]);for(let y=0;y({onBeforeCapture:t=>{const r=()=>{e.onBeforeCapture&&e.onBeforeCapture(t)};et.version.startsWith("16")||et.version.startsWith("17")?r():yy.flushSync(r)},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}),sV=e=>({...Nu,...e.autoScrollerOptions,durationDampening:{...Nu.durationDampening,...e.autoScrollerOptions}});function $s(e){return e.current||un(),e.current}function uV(e){const{contextId:t,setCallbacks:r,sensors:i,nonce:c,dragHandleUsageInstructions:o}=e,a=$e.useRef(null),n=Z6(e),l=Sn(()=>lV(n.current),[n]),f=Sn(()=>sV(n.current),[n]),s=bH(t),u=kH({contextId:t,text:o}),d=fH(t,c),h=Sn(S=>{$s(a).dispatch(S)},[]),p=Xn(()=>V_({publishWhileDragging:YW,updateDroppableScroll:XW,updateDroppableIsEnabled:ZW,updateDroppableIsCombineEnabled:KW,collectionStarting:GW},h),[h]),g=gH(),y=Xn(()=>qU(g,p),[g,p]),v=Xn(()=>iH({scrollWindow:WU,scrollDroppable:y.scrollDroppable,getAutoScrollerOptions:f,...V_({move:R6},h)}),[y.scrollDroppable,h,f]),m=hH(t),b=Xn(()=>jU({announce:s,autoScroller:v,dimensionMarshal:y,focusMarshal:m,getResponders:l,styleMarshal:d}),[s,v,y,m,l,d]);a.current=b;const x=Sn(()=>{const S=$s(a);S.getState().phase!=="IDLE"&&S.dispatch(g1())},[]),_=Sn(()=>{const S=$s(a).getState();return S.phase==="DROP_ANIMATING"?!0:S.phase==="IDLE"?!1:S.isDragging},[]),w=Xn(()=>({isDragging:_,tryAbort:x}),[_,x]);r(w);const k=Sn(S=>q6($s(a).getState(),S),[]),T=Sn(()=>mo($s(a).getState()),[]),M=Xn(()=>({marshal:y,focus:m,contextId:t,canLift:k,isMovementAllowed:T,dragHandleUsageInstructionsId:u,registry:g}),[t,y,u,m,k,T,g]);return oV({contextId:t,store:b,registry:g,customSensors:i||null,enableDefaultSensors:e.enableDefaultSensors!==!1}),$e.useEffect(()=>x,[x]),et.createElement(Zd.Provider,{value:M},et.createElement(kq,{context:_1,store:b},e.children))}let oC=0;function cV(){oC=0}function fV(){return Xn(()=>`${oC++}`,[])}function dV(){return et.useId()}var hV="useId"in et?dV:fV;function pV(){"useId"in et||(cV(),xH())}function gV(e){const t=hV(),r=e.dragHandleUsageInstructions||gf.dragHandleUsageInstructions;return et.createElement(Rq,null,i=>et.createElement(uV,{nonce:e.nonce,contextId:t,setCallbacks:i,dragHandleUsageInstructions:r,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children))}const b3={dragging:5e3,dropAnimating:4500},mV=(e,t)=>t?Cu.drop(t.duration):e?Cu.snap:Cu.fluid,vV=(e,t)=>{if(e)return t?Fu.opacity.drop:Fu.opacity.combining},yV=e=>e.forceShouldAnimate!=null?e.forceShouldAnimate:e.mode==="SNAP";function bV(e){const r=e.dimension.client,{offset:i,combineWith:c,dropping:o}=e,a=!!c,n=yV(e),l=!!o,f=l?z0.drop(i,a):z0.moveTo(i);return{position:"fixed",top:r.marginBox.top,left:r.marginBox.left,boxSizing:"border-box",width:r.borderBox.width,height:r.borderBox.height,transition:mV(n,o),transform:f,opacity:vV(a,l),zIndex:l?b3.dropAnimating:b3.dragging,pointerEvents:"none"}}function xV(e){return{transform:z0.moveTo(e.offset),transition:e.shouldAnimateDisplacement?void 0:"none"}}function wV(e){return e.type==="DRAGGING"?bV(e):xV(e)}function _V(e,t,r){r===void 0&&(r=ea);const i=window.getComputedStyle(t),c=t.getBoundingClientRect(),o=s6(c,i),a=zf(o,r),n={client:o,tagName:t.tagName.toLowerCase(),display:i.display},l={x:o.marginBox.width,y:o.marginBox.height};return{descriptor:e,placeholder:n,displaceBy:l,client:o,page:a}}function TV(e){const t=T1("draggable"),{descriptor:r,registry:i,getDraggableRef:c,canDragInteractiveElements:o,shouldRespectForcePress:a,isEnabled:n}=e,l=Xn(()=>({canDragInteractiveElements:o,shouldRespectForcePress:a,isEnabled:n}),[o,n,a]),f=Sn(h=>{const p=c();return p||un(),_V(r,p,h)},[r,c]),s=Xn(()=>({uniqueId:t,descriptor:r,options:l,getDimension:f}),[r,f,l,t]),u=$e.useRef(s),d=$e.useRef(!0);Fa(()=>(i.draggable.register(u.current),()=>i.draggable.unregister(u.current)),[i.draggable]),Fa(()=>{if(d.current){d.current=!1;return}const h=u.current;u.current=s,i.draggable.update(s,h)},[s,i.draggable])}var M1=et.createContext(null);function Vf(e){const t=$e.useContext(e);return t||un(),t}function kV(e){e.preventDefault()}const MV=e=>{const t=$e.useRef(null),r=Sn(function(w){w===void 0&&(w=null),t.current=w},[]),i=Sn(()=>t.current,[]),{contextId:c,dragHandleUsageInstructionsId:o,registry:a}=Vf(Zd),{type:n,droppableId:l}=Vf(M1),f=Xn(()=>({id:e.draggableId,index:e.index,type:n,droppableId:l}),[e.draggableId,e.index,n,l]),{children:s,draggableId:u,isEnabled:d,shouldRespectForcePress:h,canDragInteractiveElements:p,isClone:g,mapped:y,dropAnimationFinished:v}=e;if(!g){const w=Xn(()=>({descriptor:f,registry:a,getDraggableRef:i,canDragInteractiveElements:p,shouldRespectForcePress:h,isEnabled:d}),[f,a,i,p,h,d]);TV(w)}const m=Xn(()=>d?{tabIndex:0,role:"button","aria-describedby":o,"data-rfd-drag-handle-draggable-id":u,"data-rfd-drag-handle-context-id":c,draggable:!1,onDragStart:kV}:null,[c,o,u,d]),b=Sn(w=>{y.type==="DRAGGING"&&y.dropping&&w.propertyName==="transform"&&(et.version.startsWith("16")||et.version.startsWith("17")?v():yy.flushSync(v))},[v,y]),x=Xn(()=>{const w=wV(y),k=y.type==="DRAGGING"&&y.dropping?b:void 0;return{innerRef:r,draggableProps:{"data-rfd-draggable-context-id":c,"data-rfd-draggable-id":u,style:w,onTransitionEnd:k},dragHandleProps:m}},[c,m,u,y,b,r]),_=Xn(()=>({draggableId:f.id,type:f.type,source:{index:f.index,droppableId:f.droppableId}}),[f.droppableId,f.id,f.index,f.type]);return et.createElement(et.Fragment,null,s(x,y.snapshot,_))};var SV=MV,lC=(e,t)=>e===t,sC=e=>{const{combine:t,destination:r}=e;return r?r.droppableId:t?t.droppableId:null};const CV=e=>e.combine?e.combine.draggableId:null,OV=e=>e.at&&e.at.type==="COMBINE"?e.at.combine.draggableId:null;function AV(){const e=Qr((c,o)=>({x:c,y:o})),t=Qr(function(c,o,a,n,l){return a===void 0&&(a=null),n===void 0&&(n=null),l===void 0&&(l=null),{isDragging:!0,isClone:o,isDropAnimating:!!l,dropAnimation:l,mode:c,draggingOver:a,combineWith:n,combineTargetFor:null}}),r=Qr(function(c,o,a,n,l,f,s){return l===void 0&&(l=null),f===void 0&&(f=null),s===void 0&&(s=null),{mapped:{type:"DRAGGING",dropping:null,draggingOver:l,combineWith:f,mode:o,offset:c,dimension:a,forceShouldAnimate:s,snapshot:t(o,n,l,f,null)}}});return(c,o)=>{if(ju(c)){if(c.critical.draggable.id!==o.draggableId)return null;const a=c.current.client.offset,n=c.dimensions.draggables[o.draggableId],l=Ia(c.impact),f=OV(c.impact),s=c.forceShouldAnimate;return r(e(a.x,a.y),c.movementMode,n,o.isClone,l,f,s)}if(c.phase==="DROP_ANIMATING"){const a=c.completed;if(a.result.draggableId!==o.draggableId)return null;const n=o.isClone,l=c.dimensions.draggables[o.draggableId],f=a.result,s=f.mode,u=sC(f),d=CV(f),p={duration:c.dropDuration,curve:v1.drop,moveTo:c.newHomeClientOffset,opacity:d?Fu.opacity.drop:null,scale:d?Fu.scale.drop:null};return{mapped:{type:"DRAGGING",offset:c.newHomeClientOffset,dimension:l,dropping:p,draggingOver:u,combineWith:d,mode:s,forceShouldAnimate:null,snapshot:t(s,n,u,d,p)}}}return null}}function uC(e){return e===void 0&&(e=null),{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const PV={mapped:{type:"SECONDARY",offset:ea,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:uC(null)}};function DV(){const e=Qr((a,n)=>({x:a,y:n})),t=Qr(uC),r=Qr(function(a,n,l){return n===void 0&&(n=null),{mapped:{type:"SECONDARY",offset:a,combineTargetFor:n,shouldAnimateDisplacement:l,snapshot:t(n)}}}),i=a=>a?r(ea,a,!0):null,c=(a,n,l,f)=>{const s=l.displaced.visible[a],u=!!(f.inVirtualList&&f.effected[a]),d=Vd(l),h=d&&d.draggableId===a?n:null;if(!s){if(!u)return i(h);if(l.displaced.invisible[a])return null;const y=Wl(f.displacedBy.point),v=e(y.x,y.y);return r(v,h,!0)}if(u)return i(h);const p=l.displacedBy.point,g=e(p.x,p.y);return r(g,h,s.shouldAnimate)};return(a,n)=>{if(ju(a))return a.critical.draggable.id===n.draggableId?null:c(n.draggableId,a.critical.draggable.id,a.impact,a.afterCritical);if(a.phase==="DROP_ANIMATING"){const l=a.completed;return l.result.draggableId===n.draggableId?null:c(n.draggableId,l.result.draggableId,l.impact,l.afterCritical)}return null}}const EV=()=>{const e=AV(),t=DV();return(i,c)=>e(i,c)||t(i,c)||PV},RV={dropAnimationFinished:I6},LV=o6(EV,RV,null,{context:_1,areStatePropsEqual:lC})(SV);var IV=LV;function cC(e){return Vf(M1).isUsingCloneFor===e.draggableId&&!e.isClone?null:et.createElement(IV,e)}function FV(e){const t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,r=!!e.disableInteractiveElementBlocking,i=!!e.shouldRespectForcePress;return et.createElement(cC,Gt({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:i}))}const fC=e=>t=>e===t,NV=fC("scroll"),jV=fC("auto"),x3=(e,t)=>t(e.overflowX)||t(e.overflowY),$V=e=>{const t=window.getComputedStyle(e),r={overflowX:t.overflowX,overflowY:t.overflowY};return x3(r,NV)||x3(r,jV)},BV=()=>!1,dC=e=>e==null?null:e===document.body?BV()?e:null:e===document.documentElement?null:$V(e)?e:dC(e.parentElement);var zV=dC,U0=e=>({x:e.scrollLeft,y:e.scrollTop});const hC=e=>e?window.getComputedStyle(e).position==="fixed"?!0:hC(e.parentElement):!1;var qV=e=>{const t=zV(e),r=hC(e);return{closestScrollable:t,isFixedOnPage:r}},WV=e=>{let{descriptor:t,isEnabled:r,isCombineEnabled:i,isFixedOnPage:c,direction:o,client:a,page:n,closest:l}=e;const f=(()=>{if(!l)return null;const{scrollSize:h,client:p}=l,g=$6({scrollHeight:h.scrollHeight,scrollWidth:h.scrollWidth,height:p.paddingBox.height,width:p.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:p,scrollSize:h,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:g,diff:{value:ea,displacement:ea}}}})(),s=o==="vertical"?c1:y6,u=Cl({page:n,withPlaceholder:null,axis:s,frame:f});return{descriptor:t,isCombineEnabled:i,isFixedOnPage:c,axis:s,isEnabled:r,client:a,page:n,frame:f,subject:u}};const UV=(e,t)=>{const r=u6(e);if(!t||e!==t)return r;const i=r.paddingBox.top-t.scrollTop,c=r.paddingBox.left-t.scrollLeft,o=i+t.scrollHeight,a=c+t.scrollWidth,l=o1({top:i,right:a,bottom:o,left:c},r.border);return l1({borderBox:l,margin:r.margin,border:r.border,padding:r.padding})};var HV=e=>{let{ref:t,descriptor:r,env:i,windowScroll:c,direction:o,isDropDisabled:a,isCombineEnabled:n,shouldClipSubject:l}=e;const f=i.closestScrollable,s=UV(t,f),u=zf(s,c),d=(()=>{if(!f)return null;const p=u6(f),g={scrollHeight:f.scrollHeight,scrollWidth:f.scrollWidth};return{client:p,page:zf(p,c),scroll:U0(f),scrollSize:g,shouldClipSubject:l}})();return WV({descriptor:r,isEnabled:!a,isCombineEnabled:n,isFixedOnPage:i.isFixedOnPage,direction:o,client:s,page:u,closest:d})};const VV={passive:!1},YV={passive:!0};var w3=e=>e.shouldPublishImmediately?VV:YV;const Kc=e=>e&&e.env.closestScrollable||null;function GV(e){const t=$e.useRef(null),r=Vf(Zd),i=T1("droppable"),{registry:c,marshal:o}=r,a=Z6(e),n=Xn(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),l=$e.useRef(n),f=Xn(()=>Qr((x,_)=>{t.current||un();const w={x,y:_};o.updateDroppableScroll(n.id,w)}),[n.id,o]),s=Sn(()=>{const x=t.current;return!x||!x.env.closestScrollable?ea:U0(x.env.closestScrollable)},[]),u=Sn(()=>{const x=s();f(x.x,x.y)},[s,f]),d=Xn(()=>Eu(u),[u]),h=Sn(()=>{const x=t.current,_=Kc(x);if(x&&_||un(),x.scrollOptions.shouldPublishImmediately){u();return}d()},[d,u]),p=Sn((x,_)=>{t.current&&un();const w=a.current,k=w.getDroppableRef();k||un();const T=qV(k),M={ref:k,descriptor:n,env:T,scrollOptions:_};t.current=M;const S=HV({ref:k,descriptor:n,env:T,windowScroll:x,direction:w.direction,isDropDisabled:w.isDropDisabled,isCombineEnabled:w.isCombineEnabled,shouldClipSubject:!w.ignoreContainerClipping}),C=T.closestScrollable;return C&&(C.setAttribute(g3.contextId,r.contextId),C.addEventListener("scroll",h,w3(M.scrollOptions))),S},[r.contextId,n,h,a]),g=Sn(()=>{const x=t.current,_=Kc(x);return x&&_||un(),U0(_)},[]),y=Sn(()=>{const x=t.current;x||un();const _=Kc(x);t.current=null,_&&(d.cancel(),_.removeAttribute(g3.contextId),_.removeEventListener("scroll",h,w3(x.scrollOptions)))},[h,d]),v=Sn(x=>{const _=t.current;_||un();const w=Kc(_);w||un(),w.scrollTop+=x.y,w.scrollLeft+=x.x},[]),m=Xn(()=>({getDimensionAndWatchScroll:p,getScrollWhileDragging:g,dragStopped:y,scroll:v}),[y,p,g,v]),b=Xn(()=>({uniqueId:i,descriptor:n,callbacks:m}),[m,n,i]);Fa(()=>(l.current=b.descriptor,c.droppable.register(b),()=>{t.current&&y(),c.droppable.unregister(b)}),[m,n,y,b,o,c.droppable]),Fa(()=>{t.current&&o.updateDroppableIsEnabled(l.current.id,!e.isDropDisabled)},[e.isDropDisabled,o]),Fa(()=>{t.current&&o.updateDroppableIsCombineEnabled(l.current.id,e.isCombineEnabled)},[e.isCombineEnabled,o])}function Cm(){}const _3={width:0,height:0,margin:Bq},XV=e=>{let{isAnimatingOpenOnMount:t,placeholder:r,animate:i}=e;return t||i==="close"?_3:{height:r.client.borderBox.height,width:r.client.borderBox.width,margin:r.client.margin}},ZV=e=>{let{isAnimatingOpenOnMount:t,placeholder:r,animate:i}=e;const c=XV({isAnimatingOpenOnMount:t,placeholder:r,animate:i});return{display:r.display,boxSizing:"border-box",width:c.width,height:c.height,marginTop:c.margin.top,marginRight:c.margin.right,marginBottom:c.margin.bottom,marginLeft:c.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:i!=="none"?Cu.placeholder:null}},KV=e=>{const t=$e.useRef(null),r=Sn(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]),{animate:i,onTransitionEnd:c,onClose:o,contextId:a}=e,[n,l]=$e.useState(e.animate==="open");$e.useEffect(()=>n?i!=="open"?(r(),l(!1),Cm):t.current?Cm:(t.current=setTimeout(()=>{t.current=null,l(!1)}),r):Cm,[i,n,r]);const f=Sn(u=>{u.propertyName==="height"&&(c(),i==="close"&&o())},[i,o,c]),s=ZV({isAnimatingOpenOnMount:n,animate:e.animate,placeholder:e.placeholder});return et.createElement(e.placeholder.tagName,{style:s,"data-rfd-placeholder-context-id":a,onTransitionEnd:f,ref:e.innerRef})};var JV=et.memo(KV);class QV extends et.PureComponent{constructor(){super(...arguments),this.state={isVisible:!!this.props.on,data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{this.state.animate==="close"&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(t,r){return t.shouldAnimate?t.on?{isVisible:!0,data:t.on,animate:"open"}:r.isVisible?{isVisible:!0,data:r.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!t.on,data:t.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const t={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(t)}}const eY=e=>{const t=$e.useContext(Zd);t||un();const{contextId:r,isMovementAllowed:i}=t,c=$e.useRef(null),o=$e.useRef(null),{children:a,droppableId:n,type:l,mode:f,direction:s,ignoreContainerClipping:u,isDropDisabled:d,isCombineEnabled:h,snapshot:p,useClone:g,updateViewportMaxScroll:y,getContainerForClone:v}=e,m=Sn(()=>c.current,[]),b=Sn(function(C){C===void 0&&(C=null),c.current=C},[]);Sn(()=>o.current,[]);const x=Sn(function(C){C===void 0&&(C=null),o.current=C},[]),_=Sn(()=>{i()&&y({maxScroll:z6()})},[i,y]);GV({droppableId:n,type:l,mode:f,direction:s,isDropDisabled:d,isCombineEnabled:h,ignoreContainerClipping:u,getDroppableRef:m});const w=Xn(()=>et.createElement(QV,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},C=>{let{onClose:P,data:D,animate:O}=C;return et.createElement(JV,{placeholder:D,onClose:P,innerRef:x,animate:O,contextId:r,onTransitionEnd:_})}),[r,_,e.placeholder,e.shouldAnimatePlaceholder,x]),k=Xn(()=>({innerRef:b,placeholder:w,droppableProps:{"data-rfd-droppable-id":n,"data-rfd-droppable-context-id":r}}),[r,n,w,b]),T=g?g.dragging.draggableId:null,M=Xn(()=>({droppableId:n,type:l,isUsingCloneFor:T}),[n,T,l]);function S(){if(!g)return null;const{dragging:C,render:P}=g,D=et.createElement(cC,{draggableId:C.draggableId,index:C.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(O,R)=>P(O,R,C));return Y9.createPortal(D,v())}return et.createElement(M1.Provider,{value:M},a(k,p),S())};var tY=eY;function nY(){return document.body||un(),document.body}const T3={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:nY},pC=e=>{let t={...e},r;for(r in T3)e[r]===void 0&&(t={...t,[r]:T3[r]});return t},Om=(e,t)=>e===t.droppable.type,k3=(e,t)=>t.draggables[e.draggable.id],rY=()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},r=Qr(o=>({draggableId:o.id,type:o.type,source:{index:o.index,droppableId:o.droppableId}})),i=Qr((o,a,n,l,f,s)=>{const u=f.descriptor.id;if(f.descriptor.droppableId===o){const p=s?{render:s,dragging:r(f.descriptor)}:null,g={isDraggingOver:n,draggingOverWith:n?u:null,draggingFromThisWith:u,isUsingPlaceholder:!0};return{placeholder:f.placeholder,shouldAnimatePlaceholder:!1,snapshot:g,useClone:p}}if(!a)return t;if(!l)return e;const h={isDraggingOver:n,draggingOverWith:u,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:f.placeholder,shouldAnimatePlaceholder:!0,snapshot:h,useClone:null}});return(o,a)=>{const n=pC(a),l=n.droppableId,f=n.type,s=!n.isDropDisabled,u=n.renderClone;if(ju(o)){const d=o.critical;if(!Om(f,d))return t;const h=k3(d,o.dimensions),p=Ia(o.impact)===l;return i(l,s,p,p,h,u)}if(o.phase==="DROP_ANIMATING"){const d=o.completed;if(!Om(f,d.critical))return t;const h=k3(d.critical,o.dimensions);return i(l,s,sC(d.result)===l,Ia(d.impact)===l,h,u)}if(o.phase==="IDLE"&&o.completed&&!o.shouldFlush){const d=o.completed;if(!Om(f,d.critical))return t;const h=Ia(d.impact)===l,p=!!(d.impact.at&&d.impact.at.type==="COMBINE"),g=d.critical.droppable.id===l;return h?p?e:t:g?e:t}return t}},aY={updateViewportMaxScroll:QW},iY=o6(rY,aY,(e,t,r)=>({...pC(r),...e,...t}),{context:_1,areStatePropsEqual:lC})(tY);var oY=iY;const lY=Object.freeze(Object.defineProperty({__proto__:null,DragDropContext:gV,Draggable:FV,Droppable:oY,resetServerContext:pV,useKeyboardSensor:tC,useMouseSensor:eC,useTouchSensor:nC},Symbol.toStringTag,{value:"Module"})),S1=qn(lY);var M3;function sY(){return M3||(M3=1,function(e){var t=Rn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(hr()),c=t(zo),o=t(Kr()),a=t(J4),n=t(Jz),l=t(Ud),f=t(Or),s=g($e),u=S1,d=ei(),h=tc();function p(x){if(typeof WeakMap!="function")return null;var _=new WeakMap,w=new WeakMap;return(p=function(T){return T?w:_})(x)}function g(x,_){if(x&&x.__esModule)return x;if(x===null||r(x)!=="object"&&typeof x!="function")return{default:x};var w=p(_);if(w&&w.has(x))return w.get(x);var k={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in x)if(M!=="default"&&Object.prototype.hasOwnProperty.call(x,M)){var S=T?Object.getOwnPropertyDescriptor(x,M):null;S&&(S.get||S.set)?Object.defineProperty(k,M,S):k[M]=x[M]}return k.default=x,w&&w.set(x,k),k}function y(x,_){var w=Object.keys(x);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(x);_&&(k=k.filter(function(T){return Object.getOwnPropertyDescriptor(x,T).enumerable})),w.push.apply(w,k)}return w}function v(x){for(var _=1;_0&&s.default.createElement(l.default,{variant:"caption",sx:{padding:1}},_.groupedBy),x.groupColumns.map(function(P,D){return s.default.createElement(u.Draggable,{key:P.tableData.id.toString(),draggableId:P.tableData.id.toString(),index:D},function(O,R){var F;return s.default.createElement(c.default,(0,i.default)({ref:O.innerRef},O.draggableProps,O.dragHandleProps,{sx:T(R.isDragging,O.draggableProps.style)}),s.default.createElement(n.default,(0,i.default)({},O.dragHandleProps,k.groupChipProps,{onClick:function(){return x.onSortChanged(P)},label:s.default.createElement(c.default,{sx:{display:"flex",alignItems:"center"}},s.default.createElement(c.default,{sx:{float:"left"}},P.title),P.tableData.groupSort&&s.default.createElement(w.SortArrow,{sx:{transition:"300ms ease all",transform:P.tableData.groupSort==="asc"?"rotate(-180deg)":"none",fontSize:18}})),sx:v({boxShadow:"none",textTransform:"none"},(F=k.groupChipProps)!==null&&F!==void 0?F:{}),onDelete:function(){return x.onGroupRemoved(P,D)}})))})}),x.groupColumns.length===0&&s.default.createElement(l.default,{variant:"caption",sx:{padding:1}},_.placeholder),S.placeholder)}))}m.defaultProps={},m.propTypes={forwardedRef:f.default.element,className:f.default.string,onSortChanged:f.default.func,onGroupRemoved:f.default.func,onGroupChange:f.default.func,persistentGroupingsId:f.default.string};var b=s.default.forwardRef(function(_,w){return s.default.createElement(m,(0,i.default)({},_,{forwardedRef:w}))});e.default=b}(vm)),vm}var Am={},S3;function uY(){return S3||(S3=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(hr()),i=t(Kr()),c=t(io()),o=t(zl()),a=t(mi),n=t(Pi),l=t(ql),f=t(qo),s=t(Or),u=t($e),d=ei();function h(v,m){var b=Object.keys(v);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(v);m&&(x=x.filter(function(_){return Object.getOwnPropertyDescriptor(v,_).enumerable})),b.push.apply(b,x)}return b}function p(v){for(var m=1;m0&&_++;var w=v.groups[v.level],k;v.groupData.isExpanded&&(v.groups.length>v.level+1?k=v.groupData.groups.map(function(j,N){return u.default.createElement(v.components.GroupRow,{actions:v.actions,key:j.value||""+N,columns:v.columns,components:v.components,detailPanel:v.detailPanel,getFieldValue:v.getFieldValue,groupData:j,groups:v.groups,level:v.level+1,path:[].concat((0,o.default)(v.path),[N]),onGroupExpandChanged:v.onGroupExpandChanged,onGroupSelected:v.onGroupSelected,onRowSelected:v.onRowSelected,onRowClick:v.onRowClick,onToggleDetailPanel:v.onToggleDetailPanel,onTreeExpandChanged:v.onTreeExpandChanged,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,hasAnyEditingRow:v.hasAnyEditingRow,isTreeData:v.isTreeData,cellEditable:v.cellEditable,onCellEditStarted:v.onCellEditStarted,onCellEditFinished:v.onCellEditFinished,scrollWidth:v.scrollWidth,treeDataMaxLevel:v.treeDataMaxLevel})}):k=v.groupData.data.map(function(j,N){return j.tableData.editing?u.default.createElement(v.components.EditRow,{columns:v.columns,components:v.components,data:j,path:[].concat((0,o.default)(v.path),[j.tableData.uuid]),localization:v.localization,key:N,mode:j.tableData.editing,isTreeData:v.isTreeData,detailPanel:v.detailPanel,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,getFieldValue:v.getFieldValue,onBulkEditRowChanged:v.onBulkEditRowChanged,scrollWidth:v.scrollWidth}):u.default.createElement(v.components.Row,{actions:v.actions,key:N,columns:v.columns,components:v.components,data:j,detailPanel:v.detailPanel,level:(v.level||0)+1,getFieldValue:v.getFieldValue,path:[].concat((0,o.default)(v.path),[j.tableData.uuid]),onRowSelected:v.onRowSelected,onRowClick:v.onRowClick,onToggleDetailPanel:v.onToggleDetailPanel,isTreeData:v.isTreeData,onTreeExpandChanged:v.onTreeExpandChanged,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,hasAnyEditingRow:v.hasAnyEditingRow,cellEditable:v.cellEditable,onCellEditStarted:v.onCellEditStarted,onCellEditFinished:v.onCellEditFinished,scrollWidth:v.scrollWidth,treeDataMaxLevel:v.treeDataMaxLevel})}));for(var T=[],M=0;M0&&A!==z,checked:A===z,onChange:function(N,E){return v.onGroupSelected&&v.onGroupSelected(E,v.groupData.path)},style:{marginRight:8}}),u.default.createElement("b",null,C,P)))),k)}g.defaultProps={columns:[],groups:[],level:0},g.propTypes={actions:s.default.array,columns:s.default.arrayOf(s.default.object),components:s.default.object,cellEditable:s.default.object,detailPanel:s.default.oneOfType([s.default.func,s.default.arrayOf(s.default.object)]),forwardedRef:s.default.element,getFieldValue:s.default.func,groupData:s.default.object,groups:s.default.arrayOf(s.default.object),hasAnyEditingRow:s.default.bool,icons:s.default.object,isTreeData:s.default.bool.isRequired,level:s.default.number,localization:s.default.object,onBulkEditRowChanged:s.default.func,onCellEditFinished:s.default.func,onCellEditStarted:s.default.func,onEditingApproved:s.default.func,onEditingCanceled:s.default.func,onGroupExpandChanged:s.default.func,onRowClick:s.default.func,onGroupSelected:s.default.func,onRowSelected:s.default.func,onToggleDetailPanel:s.default.func.isRequired,onTreeExpandChanged:s.default.func.isRequired,path:s.default.arrayOf(s.default.number),scrollWidth:s.default.number.isRequired,treeDataMaxLevel:s.default.number};var y=u.default.forwardRef(function(m,b){return u.default.createElement(g,(0,r.default)({},m,{forwardedRef:b}))});e.default=y}(Am)),Am}var Pm={};const cY=qn(G9),fY=qn(X9);var C3;function dY(){return C3||(C3=1,function(e){var t=Rn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableHeader=T,e.styles=e.default=void 0;var i=t(zo),c=t(Wo),o=t(hr()),a=t(Kr()),n=t(io()),l=t(Bl()),f=t($e),s=t(Or),u=t(cY),d=t(Pi),h=t(mi),p=t(fY),g=t(qo),y=S1,v=_(Li()),m=ei(),b=["onColumnResized","classes","sx","columns"];function x(O){if(typeof WeakMap!="function")return null;var R=new WeakMap,F=new WeakMap;return(x=function(z){return z?F:R})(O)}function _(O,R){if(O&&O.__esModule)return O;if(O===null||r(O)!=="object"&&typeof O!="function")return{default:O};var F=x(R);if(F&&F.has(O))return F.get(O);var A={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in O)if(B!=="default"&&Object.prototype.hasOwnProperty.call(O,B)){var $=z?Object.getOwnPropertyDescriptor(O,B):null;$&&($.get||$.set)?Object.defineProperty(A,B,$):A[B]=O[B]}return A.default=O,F&&F.set(O,A),A}function w(O,R){var F=Object.keys(O);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(O);R&&(A=A.filter(function(z){return Object.getOwnPropertyDescriptor(O,z).enumerable})),F.push.apply(F,A)}return F}function k(O){for(var R=1;R-1)&&!ce.tableData.hiddden}).sort(function(ce,ye){return ce.tableData.columnOrder-ye.tableData.columnOrder}).map(function(ce,ye,J){var ne=ce.align!==void 0?ce.align:["numeric","currency"].indexOf(ce.type)!==-1?"right":"left",de=ce.title;if(j.draggable&&ce.draggable!==!1?de=f.default.createElement(y.Draggable,{key:ce.tableData.id,draggableId:ce.tableData.id.toString(),index:ye,style:{zIndex:99}},function(ue,ge){return f.default.createElement("div",(0,o.default)({ref:ue.innerRef},ue.draggableProps,ue.dragHandleProps,{style:ge.isDragging?ue.draggableProps.style:{position:"relative",minWidth:0,display:"flex",flexDirection:ne==="right"?"row-reverse":void 0}}),ce.sorting!==!1&&B.sorting&&B.allowSorting?f.default.createElement(S,{columnDef:ce,keepSortDirectionOnColumnSwitch:j.keepSortDirectionOnColumnSwitch,icon:N.SortArrow,thirdSortClick:j.thirdSortClick,onOrderChange:B.onOrderChange,orderByCollection:B.orderByCollection,showColumnSortOrder:j.showColumnSortOrder,sortOrderIndicatorStyle:j.sortOrderIndicatorStyle},ce.title):ce.title)}):ce.sorting!==!1&&B.sorting&&B.allowSorting&&(de=f.default.createElement(S,{columnDef:ce,keepSortDirectionOnColumnSwitch:j.keepSortDirectionOnColumnSwitch,icon:N.SortArrow,thirdSortClick:j.thirdSortClick,onOrderChange:B.onOrderChange,orderByCollection:B.orderByCollection,showColumnSortOrder:j.showColumnSortOrder,sortOrderIndicatorStyle:j.sortOrderIndicatorStyle},ce.title)),ce.tooltip&&(de=f.default.createElement(c.default,{title:ce.tooltip,placement:"bottom"},f.default.createElement("span",null,de))),j.tableLayout==="fixed"&&j.columnResizable&&ce.resizable!==!1&&!(j.tableWidth==="full"&&ye===J.length-1)){var xe=N.Resize?N.Resize:function(ue){return f.default.createElement(i.default,(0,o.default)({},ue,{"data-test-id":"drag_handle"}))};de=f.default.createElement(i.default,{sx:C.headerWrap(ne==="right")},f.default.createElement(i.default,{sx:C.headerContent(ne==="right")},de),f.default.createElement("div",null),f.default.createElement(xe,{sx:C.headerResize((q==null?void 0:q.col)&&q.col.tableData.id===ce.tableData.id),onMouseDown:function(ge){return Y(ge,ce,ye)}}))}return f.default.createElement(h.default,{key:ce.tableData.id,align:ne,sx:C.header,style:le(ce),size:Me,"aria-label":ce.ariaLabel},de)})}function pe(){var Me=v.selectionMaxWidth(k(k({},B),{},{options:j}),B.treeDataMaxLevel);return f.default.createElement(h.default,{padding:"none",key:"key-selection-column",sx:C.header,style:k(k({},j.headerStyle),{},{width:Me})},j.showSelectAllCheckbox&&f.default.createElement(g.default,(0,o.default)({indeterminate:B.selectedCount>0&&B.selectedCount0&&B.selectedCount>=B.dataCount,onChange:function(ye,J){return B.onAllSelected&&B.onAllSelected(J)}},j.headerSelectionProps)))}function Te(){return f.default.createElement(h.default,{padding:"none",key:"key-detail-panel-column",sx:C.header,style:j.headerStyle})}var Se=se();if(j.selection&&Se.splice(0,0,pe()),B.showActionsColumn)if(j.actionsColumnIndex>=0){var Oe=0;j.selection&&(Oe=1),Se.splice(j.actionsColumnIndex+Oe,0,ie())}else j.actionsColumnIndex===-1&&Se.push(ie());return B.hasDetailPanel&&j.showDetailPanelIcon&&(j.detailPanelColumnAlignment==="right"?Se.push(Te()):Se.splice(0,0,Te())),B.isTreeData>0&&Se.splice(0,0,f.default.createElement(h.default,{padding:"none",key:"key-tree-data-header",sx:C.header,style:j.headerStyle})),Q.filter(function(Me){return Me.tableData.groupOrder>-1}).forEach(function(Me){Se.splice(0,0,f.default.createElement(h.default,{padding:"checkbox",key:"key-group-header"+Me.tableData.id,sx:C.header,style:j.headerStyle}))}),f.default.createElement(u.default,{ref:B.forwardedRef,classes:F,sx:A},f.default.createElement(d.default,{sx:C.headerRow},Se))}var M=function(R,F,A,z,B){return A.tableData.id!==R?B&&F||"asc":F==="asc"?"desc":F==="desc"&&z?"":"asc"};function S(O){var R=O.columnDef,F=O.keepSortDirectionOnColumnSwitch,A=O.icon,z=O.thirdSortClick,B=O.onOrderChange,$=O.children,j=O.orderByCollection,N=O.showColumnSortOrder,E=O.sortOrderIndicatorStyle,W=j.find(function(H){var V=H.orderBy;return V===R.tableData.id}),G=(W||F)&&W&&W.orderDirection||"asc",L="none";W&&G==="asc"?L=R.ariaSortAsc||"ascending":W&&G==="desc"&&(L=R.ariaSortDesc||"descending");var q=W&&W.orderBy;return f.default.createElement(f.default.Fragment,null,f.default.createElement(p.default,{role:"columnheader","aria-sort":L,"aria-label":R.ariaLabel,IconComponent:A,active:!!W,"data-testid":"mtableheader-sortlabel",direction:G,onClick:function(){var V=M(q,G,R,z,F);B(R.tableData.id,V,W&&W.sortOrder)}},$),f.default.createElement("span",{style:k(k({},E),{},{width:"1em"}),"data-testid":"material-table-column-sort-order-indicator"},N&&W?W.sortOrder:""))}T.defaultProps={dataCount:0,selectedCount:0,orderByCollection:[],allowSorting:!0},T.propTypes={columns:s.default.array.isRequired,classes:s.default.object,sx:s.default.object,dataCount:s.default.number,hasDetailPanel:s.default.bool.isRequired,selectedCount:s.default.number,onAllSelected:s.default.func,onOrderChange:s.default.func,showActionsColumn:s.default.bool,orderByCollection:s.default.array,showColumnSortOrder:s.default.bool,tooltip:s.default.string,allowSorting:s.default.bool};var C={headerRow:{zIndex:10},header:{top:0},headerWrap:function(R){return{display:"flex",alignItems:"center",position:"relative",left:4}},headerWrapRight:function(R){return{display:"flex",alignItems:"center",pr:R?1:void 0,position:"relative",left:4,justifyContent:"flex-end"}},headerContent:function(R){return{minWidth:0,display:"flex",flex:"1 0 100%",flexDirection:R?"row-reverse":void 0,justifyContent:"flex-start",alignItems:"center",width:"100%",position:"relative"}},headerResize:function(R){return{color:R?"primary.main":"inherit",flex:1,cursor:"col-resize",position:"absolute",height:"100%",width:16,display:"flex",justifyContent:"center",right:-8,zIndex:20}}};e.styles=C;var P=f.default.forwardRef(function(R,F){return f.default.createElement(T,(0,o.default)({},R,{forwardedRef:F}))}),D=f.default.memo(P);e.default=D}(Pm)),Pm}var Dm={};const hY=qn(Z9);var O3;function pY(){return O3||(O3=1,function(e){var t=Rn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(hr()),c=t(ql),o=t(Wo),a=t(zo),n=t(hY),l=t(Or),f=t($e),s=$l,u=p(Li()),d=ei();function h(b){if(typeof WeakMap!="function")return null;var x=new WeakMap,_=new WeakMap;return(h=function(k){return k?_:x})(b)}function p(b,x){if(b&&b.__esModule)return b;if(b===null||r(b)!=="object"&&typeof b!="function")return{default:b};var _=h(x);if(_&&_.has(b))return _.get(b);var w={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in b)if(T!=="default"&&Object.prototype.hasOwnProperty.call(b,T)){var M=k?Object.getOwnPropertyDescriptor(b,T):null;M&&(M.get||M.set)?Object.defineProperty(w,T,M):w[T]=b[T]}return w.default=b,_&&_.set(b,w),w}function g(b){var x=(0,s.useTheme)(),_=(0,d.useLocalizationStore)().pagination,w=(0,d.useIconStore)(),k=function(G){b.onPageChange(G,0)},T=function(G){b.onPageChange(G,b.page-1)},M=function(G){b.onPageChange(G,b.page+1)},S=function(G){return function(L){b.onPageChange(L,G)}},C=function(G){b.onPageChange(G,Math.max(0,Math.ceil(b.count/b.rowsPerPage)-1))};function P(W,G,L,q){var H=[];q=Math.max(1,Math.min(10,q));for(var V=Math.max(W-q+1,0);V<=Math.min(G+q-1,L);V++){var te=V===b.page?"contained":"text";H.push(f.default.createElement(n.default,{size:"small",style:{boxShadow:"none",maxWidth:"30px",maxHeight:"30px",minWidth:"30px",minHeight:"30px"},disabled:V===b.page,variant:te,onClick:S(V),key:V},V+1))}return f.default.createElement("span",null,H)}var D=b.count,O=b.page,R=b.rowsPerPage,F=b.showFirstLastPageButtons,A=b.numberOfPagesAround,z=Math.ceil(D/R)-1,B=Math.max(O-1,0),$=Math.min(z,O+1),j=u.parseFirstLastPageButtons(F,x.direction==="rtl"),N=j.first,E=j.last;return f.default.createElement(a.default,{sx:{flexShrink:0,color:"text.secondary",marginLeft:2.5,display:"flex",alignItems:"center"},ref:b.forwardedRef},N&&f.default.createElement(o.default,{title:_.firstTooltip},f.default.createElement("span",null,f.default.createElement(c.default,{onClick:k,disabled:O===0,"aria-label":_.firstAriaLabel,size:"large"},x.direction==="rtl"?f.default.createElement(w.LastPage,null):f.default.createElement(w.FirstPage,null)))),f.default.createElement(o.default,{title:_.previousTooltip},f.default.createElement("span",null,f.default.createElement(c.default,{onClick:T,disabled:O===0,"aria-label":_.previousAriaLabel},f.default.createElement(w.PreviousPage,null)))),f.default.createElement(a.default,{sx:{display:{xs:"false",sm:"false",md:"block"}}},P(B,$,z,A)),f.default.createElement(o.default,{title:_.nextTooltip},f.default.createElement("span",null,f.default.createElement(c.default,{onClick:M,disabled:O>=z,"aria-label":_.nextAriaLabel,size:"large"},x.direction==="rtl"?f.default.createElement(w.PreviousPage,null):f.default.createElement(w.NextPage,null)))),E&&f.default.createElement(o.default,{title:_.lastTooltip},f.default.createElement("span",null,f.default.createElement(c.default,{onClick:C,disabled:O>=Math.ceil(D/R)-1,"aria-label":_.lastAriaLabel,size:"large"},x.direction==="rtl"?f.default.createElement(w.FirstPage,null):f.default.createElement(w.LastPage,null)))))}g.propTypes={onPageChange:l.default.func,page:l.default.number,forwardedRef:l.default.func,count:l.default.number,rowsPerPage:l.default.number,numberOfPagesAround:l.default.number,classes:l.default.object,theme:l.default.any,showFirstLastPageButtons:l.default.oneOfType([l.default.object,l.default.bool])},g.defaultProps={showFirstLastPageButtons:!0};var y=f.default.forwardRef(function(x,_){return f.default.createElement(g,(0,i.default)({},x,{forwardedRef:_}))}),v=y,m=v;e.default=m}(Dm)),Dm}var Em={},A3;function gY(){return A3||(A3=1,function(e){var t=Rn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(hr()),c=t(zo),o=t(ql),a=t(Wo),n=t(Ud),l=t(Or),f=t($e),s=$l,u=p(Li()),d=tc();function h(b){if(typeof WeakMap!="function")return null;var x=new WeakMap,_=new WeakMap;return(h=function(k){return k?_:x})(b)}function p(b,x){if(b&&b.__esModule)return b;if(b===null||r(b)!=="object"&&typeof b!="function")return{default:b};var _=h(x);if(_&&_.has(b))return _.get(b);var w={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in b)if(T!=="default"&&Object.prototype.hasOwnProperty.call(b,T)){var M=k?Object.getOwnPropertyDescriptor(b,T):null;M&&(M.get||M.set)?Object.defineProperty(w,T,M):w[T]=b[T]}return w.default=b,_&&_.set(b,w),w}function g(b){var x=(0,s.useTheme)(),_=(0,d.useIconStore)(),w=(0,d.useLocalizationStore)().pagination,k=function(B){b.onPageChange(B,0)},T=function(B){b.onPageChange(B,b.page-1)},M=function(B){b.onPageChange(B,b.page+1)},S=function(B){b.onPageChange(B,Math.max(0,Math.ceil(b.count/b.rowsPerPage)-1))},C=b.count,P=b.page,D=b.rowsPerPage,O=b.showFirstLastPageButtons,R=u.parseFirstLastPageButtons(O,x.direction==="rtl"),F=R.first,A=R.last;return f.default.createElement(c.default,{sx:{flexShrink:0,color:"text.secondary",display:"flex",alignItems:"center"},ref:b.forwardedRef},F&&f.default.createElement(a.default,{title:w.firstTooltip},f.default.createElement("span",null,f.default.createElement(o.default,{onClick:k,disabled:P===0,"aria-label":w.firstAriaLabel,size:"large"},x.direction==="rtl"?f.default.createElement(_.LastPage,null):f.default.createElement(_.FirstPage,null)))),f.default.createElement(a.default,{title:w.previousTooltip},f.default.createElement("span",null,f.default.createElement(o.default,{onClick:T,disabled:P===0,"aria-label":w.previousAriaLabel},x.direction==="rtl"?f.default.createElement(_.NextPage,null):f.default.createElement(_.PreviousPage,null)))),f.default.createElement(n.default,{variant:"caption",style:{flex:1,textAlign:"center",alignSelf:"center",flexBasis:"inherit"}},w.labelDisplayedRows.replace("{from}",b.count===0?0:b.page*b.rowsPerPage+1).replace("{to}",Math.min((b.page+1)*b.rowsPerPage,b.count)).replace("{count}",b.count)),f.default.createElement(a.default,{title:w.nextTooltip},f.default.createElement("span",null,f.default.createElement(o.default,{onClick:M,disabled:P>=Math.ceil(C/D)-1,"aria-label":w.nextAriaLabel},x.direction==="rtl"?f.default.createElement(_.PreviousPage,null):f.default.createElement(_.NextPage,null)))),A&&f.default.createElement(a.default,{title:w.lastTooltip},f.default.createElement("span",null,f.default.createElement(o.default,{onClick:S,disabled:P>=Math.ceil(C/D)-1,"aria-label":w.lastAriaLabel,size:"large"},x.direction==="rtl"?f.default.createElement(_.FirstPage,null):f.default.createElement(_.LastPage,null)))))}g.propTypes={onPageChange:l.default.func,page:l.default.number,count:l.default.number,rowsPerPage:l.default.number,classes:l.default.object,localization:l.default.object,showFirstLastPageButtons:l.default.oneOfType([l.default.object,l.default.bool]),forwardedRef:l.default.func},g.defaultProps={showFirstLastPageButtons:!0};var y=f.default.forwardRef(function(x,_){return f.default.createElement(g,(0,i.default)({},x,{forwardedRef:_}))}),v=y,m=v;e.default=m}(Em)),Em}var Rm={},P3;function mY(){return P3||(P3=1,function(e){var t=Rn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableSummaryRow=v,e.default=void 0;var i=t(Pi),c=t(Ur()),o=t(zl()),a=t(mi),n=t(Kr()),l=p($e),f=Wd(),s=p(Li()),u=ei(),d=t(Or);function h(b){if(typeof WeakMap!="function")return null;var x=new WeakMap,_=new WeakMap;return(h=function(k){return k?_:x})(b)}function p(b,x){if(b&&b.__esModule)return b;if(b===null||r(b)!=="object"&&typeof b!="function")return{default:b};var _=h(x);if(_&&_.has(b))return _.get(b);var w={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in b)if(T!=="default"&&Object.prototype.hasOwnProperty.call(b,T)){var M=k?Object.getOwnPropertyDescriptor(b,T):null;M&&(M.get||M.set)?Object.defineProperty(w,T,M):w[T]=b[T]}return w.default=b,_&&_.set(b,w),w}function g(b,x){var _=Object.keys(b);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(b);x&&(w=w.filter(function(k){return Object.getOwnPropertyDescriptor(b,k).enumerable})),_.push.apply(_,w)}return _}function y(b){for(var x=1;x1&&arguments[1]!==void 0?arguments[1]:1,R=s.elementSize(y(y({},_),{},{options:k})),F=O*s.baseIconSize(y(y({},_),{},{options:k}));return l.createElement(a.default,{key:"placeholder.".concat(D),size:R,padding:"none",style:{width:F,padding:"0px 5px",boxSizing:"border-box"}})}var M=[],S=[],C=0;if(k.selection&&M.push(T(C++)),_.actions&&_.actions.filter(function(D){return D.position==="row"||typeof D=="function"}).length>0){var P=s.rowActions(_).length;k.actionsColumnIndex===-1?S.push(T(C++,P)):k.actionsColumnIndex>=0&&M.push(T(C++,P))}return _.detailPanel&&k.showDetailPanelIcon&&(k.detailPanelColumnAlignment==="right"?S.push(T(C++)):M.push(T(C++))),_.isTreeData&&M.push(T(C++)),l.createElement(i.default,null,M,(0,o.default)(x).sort(function(D,O){return D.tableData.columnOrder-O.tableData.columnOrder}).map(function(D,O){var R=w({index:D.tableData.columnOrder,column:D,columns:x}),F=D.align!==void 0?D.align:["numeric","currency"].indexOf(D.type)!==-1?"right":"left",A="",z=(0,f.getStyle)({columnDef:D,scrollWidth:0});return(0,c.default)(R)==="object"&&R!==null?(A=R.value,z=R.style):A=R,l.createElement(a.default,{key:O,style:z,align:F},A)}),S)}v.propTypes={columns:d.default.array,renderSummaryRow:d.default.func};var m=v;e.default=m}(Rm)),Rm}var Lm={};const vY=qn(K9);var D3;function yY(){return D3||(D3=1,function(e){var t=Rn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableToolbar=M,e.default=void 0;var i=t(hr()),c=t(Kr()),o=t(zo),a=t(io()),n=t(qo),l=t(Z4),f=t(ql),s=t(vY),u=t(Oy),d=t(Ld),h=t(J4),p=t(Wo),g=t(Ud),y=$l,v=t(Or),m=_($e),b=ei();function x(O){if(typeof WeakMap!="function")return null;var R=new WeakMap,F=new WeakMap;return(x=function(z){return z?F:R})(O)}function _(O,R){if(O&&O.__esModule)return O;if(O===null||r(O)!=="object"&&typeof O!="function")return{default:O};var F=x(R);if(F&&F.has(O))return F.get(O);var A={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in O)if(B!=="default"&&Object.prototype.hasOwnProperty.call(O,B)){var $=z?Object.getOwnPropertyDescriptor(O,B):null;$&&($.get||$.set)?Object.defineProperty(A,B,$):A[B]=O[B]}return A.default=O,F&&F.set(O,A),A}function w(O,R){var F=Object.keys(O);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(O);R&&(A=A.filter(function(z){return Object.getOwnPropertyDescriptor(O,z).enumerable})),F.push.apply(F,A)}return F}function k(O){for(var R=1;ROe.tableData.columnOrder?1:-1}),pe=P(O.data()),Te=pe.map(function(Se){return se.reduce(function(Oe,Me){var ce;return typeof Me.customExport=="function"?ce=Me.customExport(Se):ce=O.getFieldValue(Se,Me),Oe[Me.field]=ce,Oe},{})});return[se,Te]};function Y(){return te.search?m.default.createElement(d.default,{autoFocus:te.searchAutoFocus,sx:te.searchFieldAlignment==="left"&&te.showTitle===!1?void 0:S.searchField,value:B,onChange:function(se){return U(se.target.value)},placeholder:F.searchPlaceholder,variant:te.searchFieldVariant,InputProps:{startAdornment:m.default.createElement(l.default,{position:"start"},m.default.createElement(p.default,{title:F.searchTooltip},m.default.createElement(V.Search,{fontSize:"small"}))),endAdornment:m.default.createElement(l.default,{position:"end"},m.default.createElement(f.default,{disabled:!B,onClick:function(){return U("")},"aria-label":F.clearSearchAriaLabel},m.default.createElement(V.ResetSearch,{fontSize:"small","aria-label":"clear"}))),style:te.searchFieldStyle,inputProps:{"aria-label":F.searchAriaLabel}}}):null}function Z(le){var se=le?"toolbarOnSelect":"toolbar";return m.default.createElement("div",{style:{display:"flex"}},te.columnsButton&&!le&&m.default.createElement("span",null,m.default.createElement(p.default,{title:F.showColumnsTitle},m.default.createElement(f.default,{color:"inherit",onClick:function(Te){return H(Te.currentTarget)},"aria-label":F.showColumnsAriaLabel},m.default.createElement(V.ViewColumn,null))),m.default.createElement(s.default,{anchorEl:q,open:!!q,onClose:function(){return H(null)}},m.default.createElement(u.default,{key:"text",disabled:!0,style:{opacity:1,fontWeight:600,fontSize:12}},F.addRemoveColumns),O.columns.map(function(pe){var Te=pe.hiddenByColumnsButton!==void 0?pe.hiddenByColumnsButton:O.columnsHiddenInColumnsButton;return Te?null:m.default.createElement("li",{key:pe.tableData.id},m.default.createElement(u.default,{sx:S.formControlLabel,component:"label",htmlFor:"column-toggle-".concat(pe.tableData.id),disabled:pe.removable===!1},m.default.createElement(n.default,{checked:!pe.hidden,id:"column-toggle-".concat(pe.tableData.id),onChange:function(){return O.onColumnsChanged(pe,!pe.hidden)}}),m.default.createElement("span",null,pe.title)))}))),te.exportMenu.length>0&&m.default.createElement("span",null,m.default.createElement(p.default,{title:F.exportTitle},m.default.createElement(f.default,{color:"inherit",onClick:function(Te){return W(Te.currentTarget)},"aria-label":F.exportAriaLabel},m.default.createElement(V.Export,null))),m.default.createElement(s.default,{anchorEl:E,open:!!E,onClose:function(){return W(null)}},te.exportMenu.map(function(pe,Te){var Se=Q(),Oe=(0,a.default)(Se,2),Me=Oe[0],ce=Oe[1];return m.default.createElement(u.default,{key:"".concat(pe.label).concat(Te),onClick:function(){pe.exportFunc(Me,ce,{searchedData:O.dataManager.searchedData,filteredData:O.dataManager.filteredData,groupedData:O.dataManager.groupedData,selectedData:ee}),W(null)}},pe.label)}))),m.default.createElement("span",null,m.default.createElement(O.components.Actions,{actions:O.actions&&O.actions.filter(function(pe){return pe.position===se}),data:le?ee:void 0,components:O.components})))}function X(){return m.default.createElement(o.default,{sx:S.actions},m.default.createElement("div",null,Z(ee.length>0)))}function re(le){var se=typeof le=="string"?m.default.createElement(g.default,{variant:"h6",style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},le):le;return m.default.createElement(o.default,{sx:S.title},se)}var ie=te.showTextRowsSelected&&ee.length>0?typeof F.nRowsSelected=="function"?F.nRowsSelected(ee.length):F.nRowsSelected.replace("{0}",ee.length):te.showTitle?O.title:null;return m.default.createElement(h.default,{ref:O.forwardedRef,className:O.className,sx:k(k({},S.root),te.showTextRowsSelected&&ee.length>0?S.highlight(R):{})},ie&&re(ie),te.searchFieldAlignment==="left"&&Y(),te.toolbarButtonAlignment==="left"&&X(),m.default.createElement(o.default,{sx:S.spacer}),te.searchFieldAlignment==="right"&&Y(),te.toolbarButtonAlignment==="right"&&X())}M.defaultProps={actions:[],columns:[],columnsHiddenInColumnsButton:!1,searchText:"",originalData:[],title:"No Title!"},M.propTypes={actions:v.default.array,className:v.default.string,columns:v.default.array,components:v.default.object.isRequired,getFieldValue:v.default.func.isRequired,onColumnsChanged:v.default.func.isRequired,dataManager:v.default.object.isRequired,searchText:v.default.string,onSearchChanged:v.default.func.isRequired,originalData:v.default.array,title:v.default.oneOfType([v.default.element,v.default.string]),renderData:v.default.array,data:v.default.oneOfType([v.default.array,v.default.func]),exportAllData:v.default.bool,exportMenu:v.default.arrayOf(v.default.shape({name:v.default.string,handler:v.default.func})),searchAutoFocus:v.default.bool,classes:v.default.object};var S={root:{paddingRight:1,paddingLeft:2},highlight:function(R){return R.palette.mode==="light"?{color:R.palette.secondary.main,backgroundColor:(0,y.lighten)(R.palette.secondary.light,.85)}:{color:R.palette.text.primary,backgroundColor:R.palette.secondary.dark}},spacer:{flex:"1 1 10%"},actions:{color:"text.secondary"},title:{overflow:"hidden"},searchField:{minWidth:150,paddingLeft:2},formControlLabel:{px:1}},C=m.default.forwardRef(function(R,F){return m.default.createElement(M,(0,i.default)({},R,{forwardedRef:F}))});function P(O){for(var R=O;Array.isArray((F=R)===null||F===void 0||(A=F[0])===null||A===void 0?void 0:A.data);){var F,A;R=R.map(function(z){return z.groups.length!==0?z.groups:z.data}).flat()}return R}var D=m.default.memo(C);e.default=D}(Lm)),Lm}var E3;function Jd(){return E3||(E3=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Container",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"MTableAction",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"MTableActions",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"MTableBody",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"MTableBodyRow",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"MTableCell",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"MTableCustomIcon",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"MTableEditCell",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"MTableEditField",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"MTableEditRow",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"MTableFilterRow",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"MTableGroupRow",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"MTableGroupbar",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"MTableHeader",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"MTablePagination",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"MTableScrollbar",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"MTableSteppedPagination",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"MTableSummaryRow",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"MTableToolbar",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"OverlayError",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"OverlayLoading",{enumerable:!0,get:function(){return r.default}});var r=t(vE()),i=t(sR()),c=t(fR()),o=t(hR()),a=t(yR()),n=t(Az()),l=t(Pz()),f=t(Lz()),s=t(Iz()),u=t($z()),d=t(qz()),h=t(Wz()),p=t(Uz()),g=t(K4()),y=t(sY()),v=t(uY()),m=t(dY()),b=t(pY()),x=t(gY()),_=t(mY()),w=t(yY())}(fg)),fg}var R3;function gC(){return R3||(R3=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(mE),i=Jd(),c={Action:i.MTableAction,Actions:i.MTableActions,Body:i.MTableBody,Cell:i.MTableCell,Container:i.Container,EditCell:i.MTableEditCell,EditField:i.MTableEditField,EditRow:i.MTableEditRow,FilterRow:i.MTableFilterRow,Groupbar:i.MTableGroupbar,GroupRow:i.MTableGroupRow,Header:i.MTableHeader,OverlayLoading:i.OverlayLoading,OverlayError:i.OverlayError,Pagination:r.default,Row:i.MTableBodyRow,SummaryRow:i.MTableSummaryRow,Toolbar:i.MTableToolbar};e.default=c}(cg)),cg}var L3;function bY(){if(L3)return vs;L3=1;var e=Rn;Object.defineProperty(vs,"__esModule",{value:!0}),vs.defaultProps=void 0;var t=e(gC()),r=e(DS()),i=e(AS()),c=e(PS()),o={actions:[],classes:{},columns:[],components:t.default,data:[],icons:r.default,isLoading:!1,title:"Table Title",options:c.default,localization:i.default,style:{}};return vs.defaultProps=o,vs}var Bs={},zs={},I3;function C1(){if(I3)return zs;I3=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.ALL_COLUMNS=void 0;var e="all_columns";return zs.ALL_COLUMNS=e,zs}var F3;function xY(){if(F3)return Bs;F3=1;var e=Rn;Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.propTypes=void 0;var t=e(Or),r=C1(),i=t.default.shape({current:t.default.element}),c=t.default.shape({classes:t.default.object,innerRef:i}),o={actions:t.default.arrayOf(t.default.oneOfType([t.default.func,t.default.shape({icon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,i]).isRequired,isFreeAction:t.default.bool,position:t.default.oneOf(["auto","toolbar","toolbarOnSelect","row"]),tooltip:t.default.string,onClick:t.default.func.isRequired,onMouseEnter:t.default.func,onMouseLeave:t.default.func,iconProps:t.default.object,disabled:t.default.bool,hidden:t.default.bool}),t.default.shape({action:t.default.func,position:t.default.oneOf(["auto","toolbar","toolbarOnSelect","row"])})])),renderSummaryRow:t.default.func,columns:t.default.arrayOf(t.default.shape({cellStyle:t.default.oneOfType([t.default.object,t.default.func]),currencySetting:t.default.shape({locale:t.default.string,currencyCode:t.default.string,minimumFractionDigits:t.default.number,maximumFractionDigits:t.default.number}),ariaLabel:t.default.string,ariaSortAsc:t.default.oneOf(["ascending","descending","none","other"]),ariaSortDesc:t.default.oneOf(["ascending","descending","none","other"]),draggable:t.default.bool,customFilterAndSearch:t.default.func,customSort:t.default.func,customExport:t.default.func,defaultFilter:t.default.any,defaultSort:t.default.oneOf(["asc","desc"]),editComponent:t.default.oneOfType([t.default.element,t.default.func]),emptyValue:t.default.oneOfType([t.default.string,t.default.node,t.default.func]),export:t.default.bool,field:t.default.oneOfType([t.default.string,t.default.arrayOf(t.default.string)]),filtering:t.default.bool,filterCellStyle:t.default.object,filterPlaceholder:t.default.string,filterComponent:t.default.oneOfType([t.default.element,t.default.func]),grouping:t.default.bool,headerStyle:t.default.object,hidden:t.default.bool,hideFilterIcon:t.default.bool,initialEditValue:t.default.any,lookup:t.default.object,editable:t.default.oneOfType([t.default.func,t.default.oneOf(["always","onUpdate","onAdd","never"])]),removable:t.default.bool,render:t.default.func,searchable:t.default.bool,sorting:t.default.bool,title:t.default.oneOfType([t.default.element,t.default.string]),type:t.default.oneOf(["string","boolean","numeric","date","datetime","time","currency"])})).isRequired,components:t.default.shape({Action:t.default.oneOfType([t.default.element,t.default.func,c]),Actions:t.default.oneOfType([t.default.element,t.default.func,c]),Body:t.default.oneOfType([t.default.element,t.default.func,c]),Cell:t.default.oneOfType([t.default.element,t.default.func,c]),Container:t.default.oneOfType([t.default.element,t.default.func,c]),EditField:t.default.oneOfType([t.default.element,t.default.func,c]),EditRow:t.default.oneOfType([t.default.element,t.default.func,c]),FilterRow:t.default.oneOfType([t.default.element,t.default.func,c]),Groupbar:t.default.oneOfType([t.default.element,t.default.func,c]),GroupRow:t.default.oneOfType([t.default.element,t.default.func,c]),Header:t.default.oneOfType([t.default.element,t.default.func,c]),OverlayLoading:t.default.oneOfType([t.default.element,t.default.func,c]),OverlayError:t.default.oneOfType([t.default.element,t.default.func,c]),Pagination:t.default.oneOfType([t.default.element,t.default.func,c]),Row:t.default.oneOfType([t.default.element,t.default.func,c]),Toolbar:t.default.oneOfType([t.default.element,t.default.func,c])}),data:t.default.oneOfType([t.default.arrayOf(t.default.object),t.default.func]).isRequired,editable:t.default.shape({isEditable:t.default.func,isBulkEditable:t.default.func,isDeletable:t.default.func,onRowAdd:t.default.func,onRowUpdate:t.default.func,onRowDelete:t.default.func,onRowAddCancelled:t.default.func,onRowUpdateCancelled:t.default.func,isEditHidden:t.default.func,isDeleteHidden:t.default.func}),detailPanel:t.default.oneOfType([t.default.func,t.default.arrayOf(t.default.oneOfType([t.default.func,t.default.shape({disabled:t.default.bool,icon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,i]),openIcon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,i]),tooltip:t.default.string,render:t.default.func.isRequired})]))]),icons:t.default.shape({Add:t.default.oneOfType([t.default.element,t.default.func,i]),Check:t.default.oneOfType([t.default.element,t.default.func,i]),Clear:t.default.oneOfType([t.default.element,t.default.func,i]),Delete:t.default.oneOfType([t.default.element,t.default.func,i]),DetailPanel:t.default.oneOfType([t.default.element,t.default.func,i]),Edit:t.default.oneOfType([t.default.element,t.default.func,i]),Export:t.default.oneOfType([t.default.element,t.default.func,i]),Filter:t.default.oneOfType([t.default.element,t.default.func,i]),FirstPage:t.default.oneOfType([t.default.element,t.default.func,i]),LastPage:t.default.oneOfType([t.default.element,t.default.func,i]),NextPage:t.default.oneOfType([t.default.element,t.default.func,i]),PreviousPage:t.default.oneOfType([t.default.element,t.default.func,i]),Refresh:t.default.oneOfType([t.default.element,t.default.func,i]),ResetSearch:t.default.oneOfType([t.default.element,t.default.func,i]),Search:t.default.oneOfType([t.default.element,t.default.func,i]),SortArrow:t.default.oneOfType([t.default.element,t.default.func,i]),ThirdStateCheck:t.default.oneOfType([t.default.element,t.default.func,i]),ViewColumn:t.default.oneOfType([t.default.element,t.default.func,i])}),isLoading:t.default.bool,title:t.default.oneOfType([t.default.element,t.default.string]),options:t.default.shape({actionsCellStyle:t.default.object,editCellStyle:t.default.object,idSynonym:t.default.string,detailPanelColumnStyle:t.default.object,actionsColumnIndex:t.default.number,addRowPosition:t.default.oneOf(["first","last"]),columnsButton:t.default.bool,defaultExpanded:t.default.oneOfType([t.default.bool,t.default.func]),debounceInterval:t.default.number,detailPanelType:t.default.oneOf(["single","multiple"]),doubleHorizontalScroll:t.default.bool,emptyRowsWhenPaging:t.default.bool,exportAllData:t.default.bool,exportMenu:t.default.arrayOf(t.default.shape({label:t.default.string,exportFunc:t.default.func})),filtering:t.default.bool,filterCellStyle:t.default.object,filterRowStyle:t.default.object,header:t.default.bool,headerSelectionProps:t.default.object,headerStyle:t.default.object,hideFilterIcons:t.default.bool,initialPage:t.default.number,maxBodyHeight:t.default.oneOfType([t.default.number,t.default.string]),minBodyHeight:t.default.oneOfType([t.default.number,t.default.string]),loadingType:t.default.oneOf(["overlay","linear"]),overflowY:t.default.oneOf(["visible","hidden","scroll","auto","initial","inherit","overlay"]),padding:t.default.oneOf(["normal","dense"]),paging:t.default.bool,pageSize:t.default.number,pageSizeOptions:t.default.arrayOf(t.default.number),paginationType:t.default.oneOf(["normal","stepped"]),paginationPosition:t.default.oneOf(["bottom","top","both"]),persistentGroupingsId:t.default.string,rowStyle:t.default.oneOfType([t.default.object,t.default.func]),search:t.default.bool,searchText:t.default.string,searchDebounceDelay:t.default.number,toolbarButtonAlignment:t.default.oneOf(["left","right"]),searchFieldAlignment:t.default.oneOf(["left","right"]),searchFieldStyle:t.default.object,searchAutoFocus:t.default.bool,searchFieldVariant:t.default.oneOf(["standard","filled","outlined"]),selection:t.default.bool,selectionProps:t.default.oneOfType([t.default.object,t.default.func]),showEmptyDataSourceMessage:t.default.bool,showFirstLastPageButtons:t.default.oneOfType([t.default.object,t.default.bool]),showSelectAllCheckbox:t.default.bool,showSelectGroupCheckbox:t.default.bool,showTitle:t.default.bool,showTextRowsSelected:t.default.bool,sorting:t.default.bool,defaultOrderByCollection:t.default.arrayOf(t.default.shape({orderBy:t.default.number,orderDirection:t.default.string,sortOrder:t.default.number,orderIndex:t.default.number})),maxColumnSort:t.default.oneOf([0,1,2,3,4,5,6,7,8,9,10,r.ALL_COLUMNS]),showColumnSortOrder:t.default.bool,sortOrderIndicatorStyle:t.default.object,keepSortDirectionOnColumnSwitch:t.default.bool,clientSorting:t.default.bool,toolbar:t.default.bool,thirdSortClick:t.default.bool,numberOfPagesAround:t.default.oneOf([1,2,3,4,5,6,7,8,9,10])}),localization:t.default.shape({grouping:t.default.shape({groupedBy:t.default.string,placeholder:t.default.string}),pagination:t.default.object,toolbar:t.default.object,header:t.default.object,body:t.default.object}),initialFormData:t.default.object,onSearchChange:t.default.func,onFilterChange:t.default.func,onColumnDragged:t.default.func,onColumnResized:t.default.func,onGroupRemoved:t.default.func,onGroupChange:t.default.func,onSelectionChange:t.default.func,onRowsPerPageChange:t.default.func,onPageChange:t.default.func,onChangeColumnHidden:t.default.func,onOrderChange:t.default.func,onOrderCollectionChange:t.default.func,onRowClick:t.default.func,onRowDoubleClick:t.default.func,onTreeExpandChange:t.default.func,onQueryChange:t.default.func,onBulkEditOpen:t.default.func,tableRef:t.default.any,style:t.default.object,page:t.default.number,totalCount:t.default.number};return Bs.propTypes=o,Bs}var Im={};const wY=qn(J9),_Y=qn(Q9),TY=qn(eE);var Fm,N3;function kY(){if(N3)return Fm;N3=1;function e(t,r,i){var c,o,a,n,l;r==null&&(r=100);function f(){var u=Date.now()-n;u=0?c=setTimeout(f,r-u):(c=null,i||(l=t.apply(a,o),a=o=null))}var s=function(){a=this,o=arguments,n=Date.now();var u=i&&!c;return c||(c=setTimeout(f,r)),u&&(l=t.apply(a,o),a=o=null),l};return s.clear=function(){c&&(clearTimeout(c),c=null)},s.flush=function(){c&&(l=t.apply(a,o),a=o=null,clearTimeout(c),c=null)},s}return e.debounce=e,Fm=e,Fm}var Nm={};const MY=qn(jL);var jm={},qs={},Jc={},j3;function mC(){if(j3)return Jc;j3=1,Object.defineProperty(Jc,"__esModule",{value:!0}),Jc.default=r;let e;const t=new Uint8Array(16);function r(){if(!e&&(e=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!e))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(t)}return Jc}var ll={},Ws={},Us={},$3;function SY(){if($3)return Us;$3=1,Object.defineProperty(Us,"__esModule",{value:!0}),Us.default=void 0;var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return Us.default=e,Us}var B3;function Qd(){if(B3)return Ws;B3=1,Object.defineProperty(Ws,"__esModule",{value:!0}),Ws.default=void 0;var e=t(SY());function t(c){return c&&c.__esModule?c:{default:c}}function r(c){return typeof c=="string"&&e.default.test(c)}var i=r;return Ws.default=i,Ws}var z3;function eh(){if(z3)return ll;z3=1,Object.defineProperty(ll,"__esModule",{value:!0}),ll.default=void 0,ll.unsafeStringify=i;var e=t(Qd());function t(a){return a&&a.__esModule?a:{default:a}}const r=[];for(let a=0;a<256;++a)r.push((a+256).toString(16).slice(1));function i(a,n=0){return r[a[n+0]]+r[a[n+1]]+r[a[n+2]]+r[a[n+3]]+"-"+r[a[n+4]]+r[a[n+5]]+"-"+r[a[n+6]]+r[a[n+7]]+"-"+r[a[n+8]]+r[a[n+9]]+"-"+r[a[n+10]]+r[a[n+11]]+r[a[n+12]]+r[a[n+13]]+r[a[n+14]]+r[a[n+15]]}function c(a,n=0){const l=i(a,n);if(!(0,e.default)(l))throw TypeError("Stringified UUID is invalid");return l}var o=c;return ll.default=o,ll}var q3;function CY(){if(q3)return qs;q3=1,Object.defineProperty(qs,"__esModule",{value:!0}),qs.default=void 0;var e=r(mC()),t=eh();function r(f){return f&&f.__esModule?f:{default:f}}let i,c,o=0,a=0;function n(f,s,u){let d=s&&u||0;const h=s||new Array(16);f=f||{};let p=f.node||i,g=f.clockseq!==void 0?f.clockseq:c;if(p==null||g==null){const _=f.random||(f.rng||e.default)();p==null&&(p=i=[_[0]|1,_[1],_[2],_[3],_[4],_[5]]),g==null&&(g=c=(_[6]<<8|_[7])&16383)}let y=f.msecs!==void 0?f.msecs:Date.now(),v=f.nsecs!==void 0?f.nsecs:a+1;const m=y-o+(v-a)/1e4;if(m<0&&f.clockseq===void 0&&(g=g+1&16383),(m<0||y>o)&&f.nsecs===void 0&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");o=y,a=v,c=g,y+=122192928e5;const b=((y&268435455)*1e4+v)%4294967296;h[d++]=b>>>24&255,h[d++]=b>>>16&255,h[d++]=b>>>8&255,h[d++]=b&255;const x=y/4294967296*1e4&268435455;h[d++]=x>>>8&255,h[d++]=x&255,h[d++]=x>>>24&15|16,h[d++]=x>>>16&255,h[d++]=g>>>8|128,h[d++]=g&255;for(let _=0;_<6;++_)h[d+_]=p[_];return s||(0,t.unsafeStringify)(h)}var l=n;return qs.default=l,qs}var Hs={},Ui={},Vs={},W3;function vC(){if(W3)return Vs;W3=1,Object.defineProperty(Vs,"__esModule",{value:!0}),Vs.default=void 0;var e=t(Qd());function t(c){return c&&c.__esModule?c:{default:c}}function r(c){if(!(0,e.default)(c))throw TypeError("Invalid UUID");let o;const a=new Uint8Array(16);return a[0]=(o=parseInt(c.slice(0,8),16))>>>24,a[1]=o>>>16&255,a[2]=o>>>8&255,a[3]=o&255,a[4]=(o=parseInt(c.slice(9,13),16))>>>8,a[5]=o&255,a[6]=(o=parseInt(c.slice(14,18),16))>>>8,a[7]=o&255,a[8]=(o=parseInt(c.slice(19,23),16))>>>8,a[9]=o&255,a[10]=(o=parseInt(c.slice(24,36),16))/1099511627776&255,a[11]=o/4294967296&255,a[12]=o>>>24&255,a[13]=o>>>16&255,a[14]=o>>>8&255,a[15]=o&255,a}var i=r;return Vs.default=i,Vs}var U3;function yC(){if(U3)return Ui;U3=1,Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.URL=Ui.DNS=void 0,Ui.default=a;var e=eh(),t=r(vC());function r(n){return n&&n.__esModule?n:{default:n}}function i(n){n=unescape(encodeURIComponent(n));const l=[];for(let f=0;f>5]>>>v%32&255,b=parseInt(y.charAt(m>>>4&15)+y.charAt(m&15),16);p.push(b)}return p}function r(h){return(h+64>>>9<<4)+14+1}function i(h,p){h[p>>5]|=128<>5]|=(h[y/8]&255)<>16)+(p>>16)+(g>>16)<<16|g&65535}function a(h,p){return h<>>32-p}function n(h,p,g,y,v,m){return o(a(o(o(p,h),o(y,m)),v),g)}function l(h,p,g,y,v,m,b){return n(p&g|~p&y,h,p,v,m,b)}function f(h,p,g,y,v,m,b){return n(p&y|g&~y,h,p,v,m,b)}function s(h,p,g,y,v,m,b){return n(p^g^y,h,p,v,m,b)}function u(h,p,g,y,v,m,b){return n(g^(p|~y),h,p,v,m,b)}var d=e;return Ys.default=d,Ys}var V3;function AY(){if(V3)return Hs;V3=1,Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.default=void 0;var e=r(yC()),t=r(OY());function r(o){return o&&o.__esModule?o:{default:o}}var c=(0,e.default)("v3",48,t.default);return Hs.default=c,Hs}var Gs={},Xs={},Y3;function PY(){if(Y3)return Xs;Y3=1,Object.defineProperty(Xs,"__esModule",{value:!0}),Xs.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return Xs.default=t,Xs}var G3;function DY(){if(G3)return Gs;G3=1,Object.defineProperty(Gs,"__esModule",{value:!0}),Gs.default=void 0;var e=i(PY()),t=i(mC()),r=eh();function i(a){return a&&a.__esModule?a:{default:a}}function c(a,n,l){if(e.default.randomUUID&&!n&&!a)return e.default.randomUUID();a=a||{};const f=a.random||(a.rng||t.default)();if(f[6]=f[6]&15|64,f[8]=f[8]&63|128,n){l=l||0;for(let s=0;s<16;++s)n[l+s]=f[s];return n}return(0,r.unsafeStringify)(f)}var o=c;return Gs.default=o,Gs}var Zs={},Ks={},X3;function EY(){if(X3)return Ks;X3=1,Object.defineProperty(Ks,"__esModule",{value:!0}),Ks.default=void 0;function e(c,o,a,n){switch(c){case 0:return o&a^~o&n;case 1:return o^a^n;case 2:return o&a^o&n^a&n;case 3:return o^a^n}}function t(c,o){return c<>>32-o}function r(c){const o=[1518500249,1859775393,2400959708,3395469782],a=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof c=="string"){const s=unescape(encodeURIComponent(c));c=[];for(let u=0;u>>0;y=g,g=p,p=t(h,30)>>>0,h=d,d=b}a[0]=a[0]+d>>>0,a[1]=a[1]+h>>>0,a[2]=a[2]+p>>>0,a[3]=a[3]+g>>>0,a[4]=a[4]+y>>>0}return[a[0]>>24&255,a[0]>>16&255,a[0]>>8&255,a[0]&255,a[1]>>24&255,a[1]>>16&255,a[1]>>8&255,a[1]&255,a[2]>>24&255,a[2]>>16&255,a[2]>>8&255,a[2]&255,a[3]>>24&255,a[3]>>16&255,a[3]>>8&255,a[3]&255,a[4]>>24&255,a[4]>>16&255,a[4]>>8&255,a[4]&255]}var i=r;return Ks.default=i,Ks}var Z3;function RY(){if(Z3)return Zs;Z3=1,Object.defineProperty(Zs,"__esModule",{value:!0}),Zs.default=void 0;var e=r(yC()),t=r(EY());function r(o){return o&&o.__esModule?o:{default:o}}var c=(0,e.default)("v5",80,t.default);return Zs.default=c,Zs}var Js={},K3;function LY(){if(K3)return Js;K3=1,Object.defineProperty(Js,"__esModule",{value:!0}),Js.default=void 0;var e="00000000-0000-0000-0000-000000000000";return Js.default=e,Js}var Qs={},J3;function IY(){if(J3)return Qs;J3=1,Object.defineProperty(Qs,"__esModule",{value:!0}),Qs.default=void 0;var e=t(Qd());function t(c){return c&&c.__esModule?c:{default:c}}function r(c){if(!(0,e.default)(c))throw TypeError("Invalid UUID");return parseInt(c.slice(14,15),16)}var i=r;return Qs.default=i,Qs}var Q3;function FY(){return Q3||(Q3=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return a.default}});var t=s(CY()),r=s(AY()),i=s(DY()),c=s(RY()),o=s(LY()),a=s(IY()),n=s(Qd()),l=s(eh()),f=s(vC());function s(u){return u&&u.__esModule?u:{default:u}}}(jm)),jm}var eT;function NY(){return eT||(eT=1,function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(zl()),i=t(Ed()),c=t(Rd()),o=t(Kr()),a=t(MY),n=FY(),l=Wd(),f=Li(),s=C1();function u(v,m){var b=Object.keys(v);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(v);m&&(x=x.filter(function(_){return Object.getOwnPropertyDescriptor(v,_).enumerable})),b.push.apply(b,x)}return b}function d(v){for(var m=1;m=v.length?{done:!0}:{done:!1,value:v[x++]}},e:function(S){throw S},f:_}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w=!0,k=!1,T;return{s:function(){b=b.call(v)},n:function(){var S=b.next();return w=S.done,S},e:function(S){k=!0,T=S},f:function(){try{!w&&b.return!=null&&b.return()}finally{if(k)throw T}}}}function p(v,m){if(v){if(typeof v=="string")return g(v,m);var b=Object.prototype.toString.call(v).slice(8,-1);if(b==="Object"&&v.constructor&&(b=v.constructor.name),b==="Map"||b==="Set")return Array.from(v);if(b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b))return g(v,m)}}function g(v,m){(m==null||m>v.length)&&(m=v.length);for(var b=0,x=new Array(m);b0?T(S.groups):S.data.forEach(function(C){C.tableData.checked!==b&&(C.tableData.checked=C.tableData.disabled?!1:b,m.selectedCount=m.selectedCount+(b?1:-1))})})};k([_])}),(0,o.default)(this,"getOrderByCollection",function(){return m.orderByCollection.filter(function(b){return b.sortOrder})}),(0,o.default)(this,"sortOrderCollection",function(b){return b.sort(function(x,_){return x.sortOrder?_.sortOrder?x.sortOrder-_.sortOrder:-1:1})}),(0,o.default)(this,"startCellEditable",function(b,x){b.tableData.editCellList=[].concat((0,r.default)(b.tableData.editCellList||[]),[x])}),(0,o.default)(this,"finishCellEditable",function(b,x){if(b.tableData.editCellList){var _=b.tableData.editCellList.findIndex(function(w){return w.tableData.id.toString()===x.tableData.id.toString()});_!==-1&&b.tableData.editCellList.splice(_,1)}}),(0,o.default)(this,"clearBulkEditChangedRows",function(){m.bulkEditChangedRows={}}),(0,o.default)(this,"onBulkEditRowChanged",function(b,x){m.bulkEditChangedRows[b.tableData.id]={oldData:b,newData:x}}),(0,o.default)(this,"expandTreeForNodes",function(b){b.forEach(function(x){for(var _=x;m.parentFunc(_,m.data);){var w=m.parentFunc(_,m.data);w&&(w.tableData.isTreeExpanded=!0),_=w}})}),(0,o.default)(this,"findDataByPath",function(b,x){if(m.isDataType("tree")){var _=x.reduce(function(T,M){return T&&T.tableData&&T.tableData.childRows&&T.tableData.childRows.find(function(S){return S&&S.tableData.uuid===M})},{tableData:{childRows:b}});return _}else{var w={groups:b},k=x.reduce(function(T,M){return T.groups.length>0?T.groups[M]:T.data?T.data[M]||T.data.find(function(S){var C;return((C=S.tableData)===null||C===void 0?void 0:C.uuid)===M}):void 0},w);return k}}),(0,o.default)(this,"getFieldValue",function(b,x){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,w=typeof b[x.field]<"u"?b[x.field]:(0,l.selectFromObject)(b,x.field);return x.lookup&&_&&(w=x.lookup[w]),w}),(0,o.default)(this,"getRenderState",function(){return m.filtered===!1&&m.filterData(),m.searched===!1&&m.searchData(),m.grouped===!1&&m.isDataType("group")&&m.groupData(),m.treefied===!1&&m.isDataType("tree")&&m.treefyData(),m.sorted===!1&&m.sortData(),m.paged===!1&&m.pageData(),{columns:m.columns,currentPage:m.currentPage,data:m.sortedData,lastEditingRow:m.lastEditingRow,orderByCollection:m.orderByCollection,maxColumnSort:m.maxColumnSort,originalData:(0,r.default)(m.data),pageSize:m.pageSize,renderData:m.pagedData,searchText:m.searchText,selectedCount:m.selectedCount,treefiedDataLength:m.treefiedDataLength,treeDataMaxLevel:m.treeDataMaxLevel,groupedDataLength:m.groupedDataLength,tableStyleWidth:m.tableStyleWidth}}),(0,o.default)(this,"filterData",function(){m.searched=m.grouped=m.treefied=m.sorted=m.paged=!1,m.filteredData=(0,r.default)(m.data),m.applyFilters&&m.columns.filter(function(b){return b.tableData.filterValue!==void 0}).forEach(function(b){var x=b.lookup,_=b.type,w=b.tableData;b.customFilterAndSearch?m.filteredData=m.filteredData.filter(function(k){return!!b.customFilterAndSearch(w.filterValue,k,b)}):x?m.filteredData=m.filteredData.filter(function(k){var T=m.getFieldValue(k,b,!1);return!w.filterValue||w.filterValue.length===0||w.filterValue.indexOf(T!=null&&T.toString())>-1}):_==="numeric"?m.filteredData=m.filteredData.filter(function(k){var T=m.getFieldValue(k,b);return T+""===w.filterValue}):_==="boolean"&&w.filterValue?m.filteredData=m.filteredData.filter(function(k){var T=m.getFieldValue(k,b);return T&&w.filterValue==="checked"||!T&&w.filterValue==="unchecked"}):["date","datetime"].includes(_)?m.filteredData=m.filteredData.filter(function(k){var T=m.getFieldValue(k,b),M=T?new Date(T):null;if(M&&M.toString()!=="Invalid Date"){var S=w.filterValue,C="",P="";return _==="date"?(C=(0,a.default)(M,"MM/dd/yyyy"),P=(0,a.default)(S,"MM/dd/yyyy")):_==="datetime"&&(C=(0,a.default)(M,"MM/dd/yyyy - HH:mm"),P=(0,a.default)(S,"MM/dd/yyyy - HH:mm")),C===P}return!0}):_==="time"?m.filteredData=m.filteredData.filter(function(k){var T=m.getFieldValue(k,b),M=T||null;if(M){var S=w.filterValue,C=(0,a.default)(S,"HH:mm");return M===C}return!0}):m.filteredData=m.filteredData.filter(function(k){var T=m.getFieldValue(k,b);return T!=null&&T.toString().toUpperCase().includes(w.filterValue.toUpperCase())})}),m.filtered=!0}),(0,o.default)(this,"searchData",function(){if(m.grouped=m.treefied=m.sorted=m.paged=!1,m.searchedData=(0,r.default)(m.filteredData),m.searchText&&m.applySearch){var b=m.searchText.trim();m.searchedData=m.searchedData.filter(function(x){return m.columns.filter(function(_){return _.searchable===void 0?!_.hidden:_.searchable}).some(function(_){if(_.customFilterAndSearch)return!!_.customFilterAndSearch(b,x,_);if(_.field){var w=m.getFieldValue(x,_);if(w)return w.toString().toUpperCase().includes(b.toUpperCase())}return!1})})}m.searched=!0}),(0,o.default)(this,"clearCriteria",function(){m.changeOrder(-1,""),m.changeSearchText("");var b=h(m.columns),x;try{for(b.s();!(x=b.n()).done;){var _=x.value;m.changeFilterValue(_.tableData.id,"")}}catch(w){b.e(w)}finally{b.f()}m.changeSearchText(""),m.changePaging(0)})}return(0,c.default)(v,[{key:"setData",value:function(b,x){var _=this;this.selectedCount=0;var w={};this.data.length!==0&&this.data[0][x]!==void 0&&(w=this.data.reduce(function(k,T){return k[T.tableData.id]=T.tableData,k},{})),this.data=b.map(function(k,T){var M=w[k[x]]||{},S=d(d({index:T,id:k[x]||T,uuid:k.uuid||(0,n.v4)()},M),k.tableData);S.checked&&_.selectedCount++;var C=d(d({},k),{},{tableData:S});return _.lastDetailPanelRow&&_.lastDetailPanelRow.tableData===M&&(_.lastDetailPanelRow=C),_.lastEditingRow&&_.lastEditingRow.tableData===M&&(_.lastEditingRow=C),C}),this.filtered=!1}},{key:"setTableWidth",value:function(b){this.tableWidth=b}},{key:"setColumns",value:function(b){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},w=0,k=[];this.columns=b.map(function(S,C){var P,D=(0,f.widthToNumber)(S.width),O=typeof S.width=="number"?S.width+"px":S.width;O&&(isNaN(D)?k.push(O):w+=D);var R=x.find(function(z){var B=z.id;return B===C}),F=(P=_[S.field])!==null&&P!==void 0?P:{},A=d(d(d(d({columnOrder:C,filterValue:S.defaultFilter,groupOrder:S.defaultGroupOrder,groupSort:S.defaultGroupSort||"asc",width:O,initialWidth:O,widthPx:isNaN(D)?void 0:D,additionalWidth:0},F),R?R.tableData:{}),S.tableData),{},{id:C});return S.tableData=A,S});var T=this.columns.filter(function(S){return S.hidden||S.columnDef&&S.columnDef.tableData&&S.columnDef.tableData.width?!1:S.width===void 0}),M=(w!==0?"".concat(w,"px"):"0px")+(k.length>0?" - "+k.join(" - "):"");T.forEach(function(S){S.tableData.width=S.tableData.initialWidth="calc((100% - ".concat(M,") / ").concat(T.length,")")}),this.tableStyleWidth=this.tableWidth==="full"||T.length>0||k.length>0?"100%":w}},{key:"setDefaultExpanded",value:function(b){this.defaultExpanded=b}},{key:"setClientSorting",value:function(b){this.clientSorting=!!b}},{key:"setMaxColumnSort",value:function(b){var x=this.columns.filter(function(_){return _.sorting!==!1}).length;b===s.ALL_COLUMNS?this.maxColumnSort=x:this.maxColumnSort=Math.min(b,x)}},{key:"setOrderByCollection",value:function(){var b=this.getOrderByCollection(),x=this.columns.map(function(_){var w=_.tableData.id,k=b.find(function(T){return T.orderBy===w});return k?d({},k):{orderBy:_.tableData.id,sortOrder:void 0,orderDirection:""}});x=this.sortOrderCollection(x),this.orderByCollection=(0,r.default)(x)}},{key:"setDefaultOrderByCollection",value:function(b){this.defaultOrderByCollection=(0,r.default)(b)}},{key:"getDefaultOrderByCollection",value:function(){return this.defaultOrderByCollection}},{key:"changeApplySearch",value:function(b){this.applySearch=b,this.searched=!1}},{key:"changeApplyFilters",value:function(b){this.applyFilters=b,this.filtered=!1}},{key:"changeApplySort",value:function(b){this.applySort=b,this.sorted=!1}},{key:"changePaging",value:function(b){this.paging=b,this.paged=!1}},{key:"changeCurrentPage",value:function(b){this.currentPage=b,this.paged=!1}},{key:"changePageSize",value:function(b){this.pageSize=b,this.paged=!1}},{key:"changeParentFunc",value:function(b){this.parentFunc=b}},{key:"changeFilterValue",value:function(b,x){var _=this.columns.find(function(w){return w.tableData.id===b});_.tableData.filterValue=x,this.filtered=!1}},{key:"changeRowSelected",value:function(b,x){var _=this,w=this.findDataByPath(this.sortedData,x);w.tableData.checked=b,this.selectedCount=this.selectedCount+(b?1:-1);var k=function T(M){M.tableData.childRows&&M.tableData.childRows.forEach(function(S){S.tableData.checked!==b&&(S.tableData.checked=b,_.selectedCount=_.selectedCount+(b?1:-1)),T(S)})};k(w),this.filtered=!1}},{key:"changeDetailPanelVisibility",value:function(b,x){var _=this.findDataByPath(this.sortedData,b);(_.tableData.showDetailPanel||"").toString()===x.toString()?_.tableData.showDetailPanel=void 0:_.tableData.showDetailPanel=x,this.detailPanelType==="single"&&this.lastDetailPanelRow&&this.lastDetailPanelRow!==_&&(this.lastDetailPanelRow.tableData.showDetailPanel=void 0),this.lastDetailPanelRow=_}},{key:"changeGroupExpand",value:function(b){var x=this.findDataByPath(this.sortedData,b);x.isExpanded=!x.isExpanded}},{key:"changeSearchText",value:function(b){this.searchText=b,this.searched=!1,this.currentPage=0}},{key:"changeSearchDebounce",value:function(b){this.searchDebounceDelay=b}},{key:"changeRowEditing",value:function(b,x){b?(b.tableData.editing=x,this.lastEditingRow&&this.lastEditingRow!==b&&(this.lastEditingRow.tableData.editing=void 0),x?this.lastEditingRow=b:this.lastEditingRow=void 0):this.lastEditingRow&&(this.lastEditingRow.tableData.editing=void 0,this.lastEditingRow=void 0)}},{key:"changeBulkEditOpen",value:function(b){this.bulkEditOpen=b}},{key:"changeAllSelected",value:function(b,x){var _=0,w=function(S){var C=x instanceof Function?x(S):{disabled:!1};return S.tableData.disabled||C.disabled?!1:b};if(this.isDataType("group")){var k=function M(S){S.forEach(function(C){C.groups.length>0?M(C.groups):C.data.forEach(function(P){P.tableData.checked=w(P),_++})})};k(this.groupedData)}else{var T=function M(S){S.tableData.childRows&&S.tableData.childRows.forEach(function(C){C.tableData.checked=w(S),M(C)})};this.searchedData.forEach(function(M){M.tableData.checked=w(M),T(M)}),_=this.searchedData.length}this.selectedCount=b?_:0}},{key:"changeColumnOrder",value:function(b,x,_){var w=[],k=this.getOrderByCollection();k.length===this.maxColumnSort&&!_?(this.orderByCollection[0].orderDirection="",this.orderByCollection[0].sortOrder=void 0,w=this.orderByCollection.map(function(T){return T.sortOrder?T.sortOrder-=1:T.orderBy===b&&x&&(T.sortOrder=k.length,T.orderDirection=x),T})):w=this.orderByCollection.map(function(T){return T.orderBy===b&&x?(T.orderDirection=x,T.sortOrder=_||k.length+1):!x&&T.orderBy===b?(T.orderDirection=x,T.sortOrder=void 0):!x&&_-1}).sort(function(W,G){return W.tableData.groupOrder-G.tableData.groupOrder});if(b.destination.droppableId==="groups"&&b.source.droppableId==="groups"){x=Math.min(b.destination.index,b.source.index);var w=Math.max(b.destination.index,b.source.index);if(_=_.slice(x,w+1),b.destination.index-1})&&(x="group"),b===x}},{key:"sort",value:function(b,x,_){if(_==="numeric")return b-x;if(b!==x){if(!b)return-1;if(!x)return 1}return bx?1:0}},{key:"sortList",value:function(b){if(!this.clientSorting)return b;var x=this.orderByCollection.map(function(M){return M.orderBy}),_=new Map;this.columns.forEach(function(M){var S=M.tableData.id;x.includes(S)&&_.set(S,M)});var w=this.sort,k=this.getFieldValue,T=this.orderByCollection;return b.sort(function M(S,C){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_,D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:T,O=D[0],R=O.orderBy,F=O.orderDirection,A=P.get(R),z=0;A.customSort?F==="desc"?z=A.customSort(C,S,"row",F):z=A.customSort(S,C,"row",F):(z=w(k(S,A),k(C,A),A.type),z=F.toLowerCase()==="desc"?z*-1:z);var B=z===0&&D.filter(function($){return $.sortOrder!==void 0}).length!==1;return B?M(S,C,P,D.slice(1)):z})}},{key:"groupData",value:function(){var b=this;this.sorted=this.paged=!1,this.groupedDataLength=0;var x=(0,r.default)(this.searchedData),_=this.columns.filter(function(k){return k.tableData.groupOrder>-1}).sort(function(k,T){return k.tableData.groupOrder-T.tableData.groupOrder}),w=x.reduce(function(k,T){var M=k;return M=_.reduce(function(S,C){var P=T[C.field]||(0,l.selectFromObject)(T,C.field),D;if(S.groupsIndex[P]!==void 0&&(D=S.groups[S.groupsIndex[P]]),!D){var O=[].concat((0,r.default)(S.path||[]),[P]),R=b.findGroupByGroupPath(b.groupedData,O)||{isExpanded:typeof b.defaultExpanded=="boolean"?b.defaultExpanded:!1};D={value:P,groups:[],groupsIndex:{},data:[],isExpanded:R.isExpanded,path:O},S.groups.push(D),S.groupsIndex[P]=S.groups.length-1}return D},M),M.data.push(T),b.groupedDataLength++,k},{groups:[],groupsIndex:{}});this.groupedData=w.groups,this.grouped=!0,this.rootGroupsIndex=w.groupsIndex}},{key:"treefyData",value:function(){var b=this;this.sorted=this.paged=!1,this.data.forEach(function(T){return T.tableData.childRows=null}),this.treefiedData=[],this.treefiedDataLength=0,this.treeDataMaxLevel=0,(this.searchText||this.columns.some(function(T){return T.tableData.filterValue}))&&(this.data.forEach(function(T){T.tableData.isTreeExpanded=!1}),this.expandTreeForNodes(this.searchedData));var x=function T(M){M.tableData.markedForTreeRemove=!1;var S=b.parentFunc(M,b.data);S?(S.tableData.childRows=S.tableData.childRows||[],S.tableData.childRows.includes(M)||(S.tableData.childRows.push(M),b.treefiedDataLength++),T(S),M.tableData.path=[].concat((0,r.default)(S.tableData.path),[M.tableData.uuid]),b.treeDataMaxLevel=Math.max(b.treeDataMaxLevel,M.tableData.path.length)):b.treefiedData.includes(M)||(b.treefiedData.push(M),b.treefiedDataLength++,M.tableData.path=[M.tableData.uuid])};this.data.forEach(function(T){x(T)});var _=function(M){var S=b.treefiedData;M.tableData.path.forEach(function(C){S.tableData&&S.tableData.childRows&&(S=S.tableData.childRows),Array.isArray(S)&&(S=S.find(function(P){return P.tableData.uuid===C}))}),S.tableData.markedForTreeRemove=!0},w=function T(M){M.tableData.childRows&&M.tableData.childRows.forEach(function(S){T(S)}),M.tableData.markedForTreeRemove=!1};this.data.forEach(function(T){if(!b.searchText&&!b.columns.some(function(C){return C.tableData.filterValue})&&T.tableData.isTreeExpanded===void 0){var M=typeof b.defaultExpanded=="boolean"?b.defaultExpanded:b.defaultExpanded(T);T.tableData.isTreeExpanded=M}var S=T.tableData.isTreeExpanded;!S&&b.searchedData.indexOf(T)<0&&_(T)}),this.data.forEach(function(T){b.searchedData.indexOf(T)>-1&&w(T)});var k=function T(M){for(var S=M.length-1;S>=0;S--){var C=M[S];C.tableData.childRows&&T(C.tableData.childRows),C.tableData.markedForTreeRemove&&M.splice(S,1)}};k(this.treefiedData),this.treefiedDataLength=this.treefiedData.length,this.treefied=!0}},{key:"sortData",value:function(){var b=this;if(this.paged=!1,this.isDataType("group")){this.sortedData=(0,r.default)(this.groupedData);var x=this.columns.filter(function(M){return M.tableData.groupOrder>-1}).sort(function(M,S){return M.tableData.groupOrder-S.tableData.groupOrder}),_=function(S,C){return C.customSort?S.sort(C.tableData.groupSort==="desc"?function(P,D){return C.customSort(D.value,P.value,"group",C.tableData.groupSort)}:function(P,D){return C.customSort(P.value,D.value,"group",C.tableData.groupSort)}):S.sort(C.tableData.groupSort==="desc"?function(P,D){return b.sort(D.value,P.value,C.type)}:function(P,D){return b.sort(P.value,D.value,C.type)})};this.sortedData=_(this.sortedData,x[0]);var w=function(S){return S.reduce(function(C,P){return C[P.value]=S.findIndex(function(D){return D.value===P.value}),C},{})},k=function M(S,C){S.forEach(function(P){if(P.groups.length>0){var D=x[C];P.groups=_(P.groups,D),P.groupsIndex=w(P.groups),M(P.groups,C+1)}else b.maxColumnSort>0&&b.getOrderByCollection().length>0?P.data=b.sortList(P.data):b.maxColumnSort>0&&(P.data=P.data.sort(function(O,R){return b.data.findIndex(function(F){return F.tableData.id===O.tableData.id})-b.data.findIndex(function(F){return F.tableData.id===R.tableData.id})}))})};k(this.sortedData,1)}else if(this.isDataType("tree")){if(this.sortedData=(0,r.default)(this.treefiedData),this.maxColumnSort>0&&this.getOrderByCollection().length>0){this.sortedData=this.sortList(this.sortedData);var T=function M(S){S.forEach(function(C){C.tableData.childRows&&(C.tableData.childRows=b.sortList(C.tableData.childRows),M(C.tableData.childRows))})};T(this.sortedData)}}else this.isDataType("normal")&&(this.sortedData=(0,r.default)(this.searchedData),this.maxColumnSort>0&&this.getOrderByCollection().length>0&&this.applySort&&(this.sortedData=this.sortList(this.sortedData)));this.sorted=!0}},{key:"pageData",value:function(){if(this.pagedData=(0,r.default)(this.sortedData),this.paging){var b=this.currentPage*this.pageSize,x=b+this.pageSize;this.pagedData=this.pagedData.slice(b,x)}this.paged=!0}}]),v}();e.default=y}(Nm)),Nm}var tT;function jY(){return tT||(tT=1,function(e){var t=Rn,r=Ur();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(wY),c=t(_Y),o=t(Pi),a=t(hr()),n=t(zo),l=t(zl()),f=t(TY),s=t(Ur()),u=t(io()),d=t(Ed()),h=t(Rd()),p=t(My()),g=t(ky()),y=t(Sy()),v=t(Cy()),m=t(Kr()),b=t($e),x=kY(),_=t(OS()),w=C(Li()),k=S1,T=t(NY()),M=Jd();function S(B){if(typeof WeakMap!="function")return null;var $=new WeakMap,j=new WeakMap;return(S=function(E){return E?j:$})(B)}function C(B,$){if(B&&B.__esModule)return B;if(B===null||r(B)!=="object"&&typeof B!="function")return{default:B};var j=S($);if(j&&j.has(B))return j.get(B);var N={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var W in B)if(W!=="default"&&Object.prototype.hasOwnProperty.call(B,W)){var G=E?Object.getOwnPropertyDescriptor(B,W):null;G&&(G.get||G.set)?Object.defineProperty(N,W,G):N[W]=B[W]}return N.default=B,j&&j.set(B,N),N}function P(B,$){var j=Object.keys(B);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(B);$&&(N=N.filter(function(E){return Object.getOwnPropertyDescriptor(B,E).enumerable})),j.push.apply(j,N)}return j}function D(B){for(var $=1;$"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var F=function(B){(0,g.default)(j,B);var $=O(j);function j(N){var E;(0,d.default)(this,j),E=$.call(this,N),(0,m.default)((0,p.default)(E),"dataManager",new T.default),(0,m.default)((0,p.default)(E),"checkedForFunctions",!1),(0,m.default)((0,p.default)(E),"clearCriteria",function(){E.dataManager.clearCriteria(),E.setState(E.dataManager.getRenderState())}),(0,m.default)((0,p.default)(E),"isRemoteData",function(L){return!Array.isArray((L||E.props).data)}),(0,m.default)((0,p.default)(E),"onAllSelected",function(L){E.dataManager.changeAllSelected(L,E.props.options.selectionProps),E.setState(E.dataManager.getRenderState(),function(){return E.onSelectionChange()})}),(0,m.default)((0,p.default)(E),"onGroupSelected",function(L,q){E.dataManager.changeGroupSelected(L,q),E.setState(E.dataManager.getRenderState(),function(){return E.onSelectionChange()})}),(0,m.default)((0,p.default)(E),"onChangeColumnHidden",function(L,q){E.dataManager.changeColumnHidden(L,q),E.setState(E.dataManager.getRenderState(),function(){E.props.onChangeColumnHidden&&E.props.onChangeColumnHidden(L,q)})}),(0,m.default)((0,p.default)(E),"onChangeGroupOrder",function(L){E.dataManager.changeGroupOrder(L.tableData.id),E.setState(E.dataManager.getRenderState())}),(0,m.default)((0,p.default)(E),"onChangeOrder",function(L,q,H){E.dataManager.changeColumnOrder(L,q,H);var V=E.dataManager.getOrderByCollection();if(E.isRemoteData()){var te=D({},E.state.query);te.page=0,te.orderBy=E.state.columns.find(function(ee){return ee.tableData.id===L}),te.orderDirection=q,console.warn("Properties orderBy and orderDirection had been deprecated when remote data, please start using orderByCollection instead"),te.orderByCollection=V,E.onQueryChange(te,function(){E.props.onOrderChange&&E.props.onOrderChange(L,q),E.props.onOrderCollectionChange&&E.props.onOrderCollectionChange(V)})}else E.setState(E.dataManager.getRenderState(),function(){E.props.onOrderChange&&E.props.onOrderChange(L,q),E.props.onOrderCollectionChange&&E.props.onOrderCollectionChange(V)})}),(0,m.default)((0,p.default)(E),"onPageChange",function(L,q){if(E.isRemoteData()){var H=D({},E.state.query);H.page=q,E.onQueryChange(H,function(){E.props.onPageChange&&E.props.onPageChange(q,H.pageSize)})}else E.dataManager.changeCurrentPage(q),E.setState(E.dataManager.getRenderState(),function(){E.props.onPageChange&&E.props.onPageChange(q,E.state.pageSize)})}),(0,m.default)((0,p.default)(E),"onRowsPerPageChange",function(L){var q=L.target.value;E.dataManager.changePageSize(q);var H=function(){E.props.onPageChange&&E.props.onPageChange(0,q),E.props.onRowsPerPageChange&&E.props.onRowsPerPageChange(q)};if(E.isRemoteData()){var V=D({},E.state.query);V.pageSize=L.target.value,V.page=0,E.onQueryChange(V,H)}else E.dataManager.changeCurrentPage(0),E.setState(E.dataManager.getRenderState(),H)}),(0,m.default)((0,p.default)(E),"onDragEnd",function(L){!L||!L.source||!L.destination||(E.dataManager.changeByDrag(L),E.setState(E.dataManager.getRenderState(),function(){E.props.onColumnDragged&&L.destination.droppableId==="headers"&&L.source.droppableId==="headers"&&E.props.onColumnDragged(L.source.index,L.destination.index)}))}),(0,m.default)((0,p.default)(E),"onGroupExpandChanged",function(L){E.dataManager.changeGroupExpand(L),E.setState(E.dataManager.getRenderState())}),(0,m.default)((0,p.default)(E),"onGroupRemoved",function(L,q){var H={combine:null,destination:{droppableId:"headers",index:0},draggableId:L.tableData.id,mode:"FLUID",reason:"DROP",source:{index:q,droppableId:"groups"},type:"DEFAULT"};E.dataManager.changeByDrag(H),E.setState(E.dataManager.getRenderState(),function(){E.props.onGroupRemoved&&E.props.onGroupRemoved(L,q)})}),(0,m.default)((0,p.default)(E),"onEditingApproved",function(L,q,H){L==="add"&&E.props.editable&&E.props.editable.onRowAdd?E.setState({isLoading:!0},function(){E.props.editable.onRowAdd(q).then(function(V){E.setState({isLoading:!1,showAddRow:!1},function(){E.isRemoteData()&&E.onQueryChange(E.state.query)})}).catch(function(V){var te={message:V,errorCause:"add"};E.setState({isLoading:!1,errorState:te})})}):L==="update"&&E.props.editable&&E.props.editable.onRowUpdate?E.setState({isLoading:!0},function(){E.props.editable.onRowUpdate(q,H).then(function(V){E.dataManager.changeRowEditing(H),E.setState(D({isLoading:!1},E.dataManager.getRenderState()),function(){E.isRemoteData()&&E.onQueryChange(E.state.query)})}).catch(function(V){var te={message:V,errorCause:"update"};E.setState({isLoading:!1,errorState:te})})}):L==="delete"&&E.props.editable&&E.props.editable.onRowDelete?E.setState({isLoading:!0},function(){E.props.editable.onRowDelete(Object.entries(H).reduce(function(V,te){var ee=(0,u.default)(te,2),U=ee[0],Q=ee[1];return U!=="tableData"&&(V[U]=Q),V},{})).then(function(V){E.dataManager.changeRowEditing(H),E.setState(D({isLoading:!1},E.dataManager.getRenderState()),function(){E.isRemoteData()&&E.onQueryChange(E.state.query)})}).catch(function(V){var te={message:V,errorCause:"delete"};E.setState({isLoading:!1,errorState:te})})}):L==="bulk"&&E.props.editable&&E.props.editable.onBulkUpdate&&E.setState({isLoading:!0},function(){E.props.editable.onBulkUpdate(E.dataManager.bulkEditChangedRows).then(function(V){E.dataManager.changeBulkEditOpen(!1),E.props.onBulkEditOpen&&E.props.onBulkEditOpen(!1),E.dataManager.clearBulkEditChangedRows(),E.setState(D({isLoading:!1},E.dataManager.getRenderState()),function(){E.isRemoteData()&&E.onQueryChange(E.state.query)})}).catch(function(V){var te={message:V,errorCause:"bulk edit"};E.setState({isLoading:!1,errorState:te})})})}),(0,m.default)((0,p.default)(E),"onEditingCanceled",function(L,q){L==="add"?(E.props.editable.onRowAddCancelled&&E.props.editable.onRowAddCancelled(),E.setState({showAddRow:!1})):L==="update"?(E.props.editable.onRowUpdateCancelled&&E.props.editable.onRowUpdateCancelled(),E.dataManager.changeRowEditing(q),E.setState(E.dataManager.getRenderState())):L==="delete"&&(E.dataManager.changeRowEditing(q),E.setState(E.dataManager.getRenderState()))}),(0,m.default)((0,p.default)(E),"retry",function(){E.onQueryChange(E.state.query)}),(0,m.default)((0,p.default)(E),"onQueryChange",function(L,q){L=D(D(D({},E.state.query),L),{},{error:E.state.errorState}),E.setState({isLoading:!0,errorState:void 0},function(){E.props.data(L).then(function(H){L.totalCount=H.totalCount,L.page=H.page;var V=D(D({},L),{},{totalCount:H.totalCount,page:H.page});E.dataManager.setData(H.data,E.props.options.idSynonym),E.setState(D(D({isLoading:!1,errorState:!1},E.dataManager.getRenderState()),{},{query:V}),function(){q&&q()})}).catch(function(H){var V={message:(0,s.default)(H)==="object"?H.message:H!==void 0?H:E.props.localization.error,errorCause:"query"};E.setState(D({isLoading:!1,errorState:V},E.dataManager.getRenderState()))})})}),(0,m.default)((0,p.default)(E),"onRowSelected",function(L,q,H){E.dataManager.changeRowSelected(L.target.checked,q),E.setState(E.dataManager.getRenderState(),function(){return E.onSelectionChange(H)})}),(0,m.default)((0,p.default)(E),"onSelectionChange",function(L){if(E.props.onSelectionChange){var q=[],H=function(te){te.forEach(function(ee){ee.tableData.checked&&q.push(ee)})};H(E.state.originalData),E.props.onSelectionChange(q,L)}}),(0,m.default)((0,p.default)(E),"onSearchChangeDebounce",(0,x.debounce)(function(L){if(E.isRemoteData()){var q=D({},E.state.query);q.page=0,q.search=L,E.onQueryChange(q,function(){E.props.onSearchChange&&E.props.onSearchChange(L)})}else E.setState(E.dataManager.getRenderState(),function(){E.props.onSearchChange&&E.props.onSearchChange(L)})},E.props.options.debounceInterval)),(0,m.default)((0,p.default)(E),"onFilterChange",function(L,q){E.dataManager.changeFilterValue(L,q),E.setState({},E.onFilterChangeDebounce)}),(0,m.default)((0,p.default)(E),"onFilterChangeDebounce",(0,x.debounce)(function(){if(E.isRemoteData()){var L=D({},E.state.query);L.page=0,L.filters=E.state.columns.filter(function(q){return q.tableData.filterValue}).map(function(q){return{column:q,operator:"=",value:q.tableData.filterValue}}),E.onQueryChange(L,function(){E.props.onFilterChange&&E.props.onFilterChange(L.filters)})}else E.setState(E.dataManager.getRenderState(),function(){if(E.props.onFilterChange){var q=E.state.columns.filter(function(H){return H.tableData.filterValue}).map(function(H){return{column:H,operator:"=",value:H.tableData.filterValue}});E.props.onFilterChange(q)}})},E.props.options.debounceInterval)),(0,m.default)((0,p.default)(E),"onTreeExpandChanged",function(L,q){E.dataManager.changeTreeExpand(L),E.setState(E.dataManager.getRenderState(),function(){E.props.onTreeExpandChange&&E.props.onTreeExpandChange(q,q.tableData.isTreeExpanded)})}),(0,m.default)((0,p.default)(E),"onToggleDetailPanel",function(L,q){E.dataManager.changeDetailPanelVisibility(L,q),E.setState(E.dataManager.getRenderState())}),(0,m.default)((0,p.default)(E),"onCellEditStarted",function(L,q){E.dataManager.startCellEditable(L,q),E.setState(E.dataManager.getRenderState())}),(0,m.default)((0,p.default)(E),"onCellEditFinished",function(L,q){E.dataManager.finishCellEditable(L,q),E.setState(E.dataManager.getRenderState())}),(0,m.default)((0,p.default)(E),"onEditRowDataChanged",function(L,q){E.dataManager.setEditRowData(L,q),E.setState(E.dataManager.getRenderState())}),(0,m.default)((0,p.default)(E),"onColumnResized",function(L,q,H,V){var te=function(Q){return D(D(D({field:Q.field,width:Q.tableData.width,widthPx:Q.tableData.widthPx},Q.id&&{id:Q.id}),Q.minWidth&&{minWidth:Q.minWidth}),Q.maxWidth&&{maxWidth:Q.maxWidth})},ee=E.dataManager.onColumnResized(L,q,H,V);E.setState(E.dataManager.getRenderState(),function(){q===0&&E.props.onColumnResized&&ee.length>0&&E.props.onColumnResized(ee.map(function(U){return te(U)}),E.state.columns.map(function(U){return te(U)}))})}),(0,m.default)((0,p.default)(E),"renderTable",function(L){var q;return b.default.createElement(f.default,{sx:L.sx,style:D(D({},L.options.tableWidth==="variable"&&{width:E.state.tableStyleWidth}),{},{tableLayout:L.options.fixedColumns&&(L.options.fixedColumns.left||L.options.fixedColumns.right)?"fixed":L.options.tableLayout})},L.options.header&&b.default.createElement(L.components.Header,{actions:E.state.actions,columns:E.state.columns,selectedCount:E.state.selectedCount,dataCount:L.parentChildData?E.dataManager.searchedData.length:E.state.columns.some(function(H){return H.tableData.groupOrder>-1})?E.state.groupedDataLength:E.state.data.length,hasDetailPanel:!!L.detailPanel,showActionsColumn:!E.dataManager.bulkEditOpen&&E.state.actions&&E.state.actions.some(function(H){return H.position==="row"||typeof H=="function"}),onAllSelected:E.onAllSelected,onOrderChange:E.onChangeOrder,isTreeData:E.props.parentChildData!==void 0,treeDataMaxLevel:E.state.treeDataMaxLevel,onColumnResized:E.onColumnResized,scrollWidth:E.state.width,sorting:L.options.sorting||E.dataManager.maxColumnSort!==0,allowSorting:E.dataManager.maxColumnSort!==0,orderByCollection:E.dataManager.getOrderByCollection(),tableWidth:(q=L.options.tableWidth)!==null&&q!==void 0?q:"full"}),b.default.createElement(L.components.Body,{actions:E.state.actions,components:E.props.components,renderData:E.state.renderData,data:E.state.data,renderSummaryRow:E.props.renderSummaryRow,currentPage:E.isRemoteData()?0:E.state.currentPage,initialFormData:L.initialFormData,pageSize:E.state.pageSize,columns:E.state.columns,errorState:E.state.errorState,detailPanel:L.detailPanel,options:L.options,getFieldValue:E.dataManager.getFieldValue,isTreeData:E.props.parentChildData!==void 0,onFilterChanged:E.onFilterChange,onRowSelected:E.onRowSelected,onGroupSelected:E.onGroupSelected,onToggleDetailPanel:E.onToggleDetailPanel,onGroupExpandChanged:E.onGroupExpandChanged,onTreeExpandChanged:E.onTreeExpandChanged,onEditingCanceled:E.onEditingCanceled,onEditingApproved:E.onEditingApproved,onRowClick:E.props.onRowClick,onRowDoubleClick:E.props.onRowDoubleClick,showAddRow:E.state.showAddRow,hasAnyEditingRow:!!(E.state.lastEditingRow||E.state.showAddRow),hasDetailPanel:!!L.detailPanel,treeDataMaxLevel:E.state.treeDataMaxLevel,cellEditable:L.cellEditable,onCellEditStarted:E.onCellEditStarted,onCellEditFinished:E.onCellEditFinished,onRowEditStarted:E.onRowEditStarted,bulkEditOpen:E.dataManager.bulkEditOpen,bulkEditChangedRows:E.dataManager.bulkEditChangedRows,onBulkEditRowChanged:E.dataManager.onBulkEditRowChanged,scrollWidth:E.state.width}))}),(0,m.default)((0,p.default)(E),"onRowEditStarted",function(L){var q;(q=E.props.editable)!==null&&q!==void 0&&q.onRowUpdate&&(E.dataManager.changeRowEditing(L,"update"),E.setState(D(D({},E.dataManager.getRenderState()),{},{showAddRow:!1})))}),(0,m.default)((0,p.default)(E),"getColumnsWidth",function(L,q){var H=[],V=w.actionsColumnWidth(L);if(V>0&&(q>0&&L.options.actionsColumnIndex>=0&&L.options.actionsColumnIndex=q)&&H.push(V+"px"),L.options.selection&&q>0){var te=w.selectionMaxWidth(L,E.state.treeDataMaxLevel);H.push(te+"px")}for(var ee=0;ee=0?ee:E.state.columns.length-1-ee];U.tableData&&(typeof U.tableData.width=="number"?H.push(U.tableData.width+"px"):H.push(U.tableData.width))}return"calc("+H.join(" + ")+")"}),(0,m.default)((0,p.default)(E),"getRenderData",function(){return E.props.options.exportAllData?E.state.data:E.state.renderData});var W=E.getProps(N);E.setDataManagerFields(W,!0);var G=E.dataManager.getRenderState();return E.state=D(D({data:[],errorState:void 0},G),{},{query:{filters:G.columns.filter(function(L){return L.tableData.filterValue}).map(function(L){return{column:L,operator:"=",value:L.tableData.filterValue}}),orderBy:G.columns.find(function(L){return L.tableData.id===G.orderBy}),orderDirection:G.orderDirection,orderByCollection:G.orderByCollection,page:0,pageSize:W.options.pageSize,search:G.searchText,totalCount:0},showAddRow:!1,bulkEditOpen:!1,width:0,tableInitialWidthPx:void 0,tableStyleWidth:"100%",actions:W.actions}),E.tableContainerDiv=b.default.createRef(),E}return(0,h.default)(j,[{key:"componentDidMount",value:function(){var E=this;this.setState(D(D({},this.dataManager.getRenderState()),{},{width:this.tableContainerDiv.current.scrollWidth}),function(){E.isRemoteData()&&E.onQueryChange(D(D({},E.state.query),{},{page:E.props.options.initialPage||0})),E.props.onDoubleRowClick!==void 0&&console.warn("Property `onDoubleRowClick` has been renamed to `onRowDoubleClick`"),E.props.options.sorting!==void 0&&console.warn("Property `sorting` has been deprecated, please start using `maxColumnSort` instead. https://github.com/material-table-core/core/pull/619")})}},{key:"setDataManagerFields",value:function(E,W,G){var L,q=this,H={};if(E.options.persistentGroupingsId&&localStorage){var V=localStorage.getItem("material-table-groupings");V&&(V=JSON.parse(V),V[E.options.persistentGroupingsId]&&V[E.options.persistentGroupingsId].forEach(function(Te){H[Te.field]={groupOrder:Te.groupOrder,groupSort:Te.groupSort,columnOrder:Te.columnOrder}}))}this.dataManager.setTableWidth((L=E.options.tableWidth)!==null&&L!==void 0?L:"full"),this.dataManager.setColumns(E.columns,G,H),this.dataManager.setDefaultExpanded(E.options.defaultExpanded),this.dataManager.changeRowEditing();var te=E.options,ee=te.clientSorting,U=te.grouping,Q=te.maxColumnSort;this.dataManager.setClientSorting(ee),this.dataManager.setMaxColumnSort(U?1:Q),this.dataManager.setOrderByCollection(),this.isRemoteData(E)?(this.dataManager.changeApplySearch(!1),this.dataManager.changeApplyFilters(!1),this.dataManager.changeApplySort(!1)):(this.dataManager.changeApplySearch(!0),this.dataManager.changeApplyFilters(!0),this.dataManager.changeApplySort(!0),this.dataManager.setData(E.data,E.options.idSynonym));var Y=this.dataManager.getDefaultOrderByCollection(),Z=E.options.defaultOrderByCollection,X=[],re="",ie="";if(Z&&Z.length>0)X=(0,l.default)(Z).slice(0,Q),X=this.dataManager.sortOrderCollection(X),re=JSON.stringify(X),ie=JSON.stringify(Y),re!==ie&&this.dataManager.setDefaultOrderByCollection(X);else{var le=A(E.columns,G,this.dataManager.maxColumnSort);X=(0,l.default)(le[0]),re=JSON.stringify(X),ie=JSON.stringify((0,l.default)(le[1]))}var se=JSON.stringify(this.dataManager.orderByCollection),pe=W||!this.isRemoteData()&&X.length&&re!==ie&&re!==se;pe&&X.length>0&&Q>0&&X.forEach(function(Te){var Se=Te.orderBy,Oe=Te.orderDirection,Me=Te.sortOrder;return q.dataManager.changeColumnOrder(Se,Oe,Me)}),W&&this.dataManager.changeSearchText(E.options.searchText||""),W&&this.dataManager.changeSearchDebounce(E.options.searchDebounceDelay),W&&this.dataManager.changeCurrentPage(E.options.initialPage?E.options.initialPage:0),W&&this.dataManager.changePageSize(E.options.pageSize),this.dataManager.changePaging(this.isRemoteData()?!1:E.options.paging),W&&this.dataManager.changeParentFunc(E.parentChildData),this.dataManager.changeDetailPanelType(E.options.detailPanelType)}},{key:"cleanColumns",value:function(E){return E.map(function(W){var G=D({},W);return delete G.tableData,G})}},{key:"componentDidUpdate",value:function(E){var W=this.cleanColumns(E.columns),G=this.cleanColumns(this.props.columns),L=!(0,_.default)(W,G),q=L||!(0,_.default)(E.options,this.props.options);if(this.isRemoteData()||(q=q||!(0,_.default)(E.data,this.props.data)),E.options.pageSize!==this.props.options.pageSize&&this.dataManager.changePageSize(this.props.options.pageSize),q){var H=this.getProps(this.props);this.setDataManagerFields(H,!1,E.columns),this.setState(D(D({},this.dataManager.getRenderState()),{},{actions:H.actions}))}var V=this.isRemoteData()?this.state.query.totalCount:this.state.data.length,te=this.isRemoteData()?this.state.query.page:this.state.currentPage,ee=this.isRemoteData()?this.state.query.pageSize:this.state.pageSize;V<=ee*te&&te!==0&&!this.state.isLoading&&this.onPageChange(null,Math.max(0,Math.ceil(V/ee)-1))}},{key:"getProps",value:function(E){var W=this,G=D({},E||this.props),L=this.props.localization.body;if(G.options.selection?G.actions=G.actions.filter(function(H){return H}).map(function(H){return H.position==="auto"||H.isFreeAction===!1||H.position===void 0&&H.isFreeAction===void 0?typeof H=="function"?{action:H,position:"toolbarOnSelect"}:D(D({},H),{},{position:"toolbarOnSelect"}):H.isFreeAction?typeof H=="function"?{action:H,position:"toolbar"}:D(D({},H),{},{position:"toolbar"}):H}):G.actions=G.actions.filter(function(H){return H}).map(function(H){return H.position==="auto"||H.isFreeAction===!1||H.position===void 0&&H.isFreeAction===void 0?typeof H=="function"?{action:H,position:"row"}:D(D({},H),{},{position:"row"}):H.isFreeAction?typeof H=="function"?{action:H,position:"toolbar"}:D(D({},H),{},{position:"toolbar"}):H}),G.editable){var q;G.editable.onRowAdd&&G.actions.push({icon:G.icons.Add,tooltip:L.addTooltip,position:"toolbar",disabled:!!this.dataManager.lastEditingRow,onClick:function(){W.dataManager.changeRowEditing(),W.state.showAddRow&&W.props.editable.onRowAddCancelled&&W.props.editable.onRowAddCancelled(),W.setState(D(D({},W.dataManager.getRenderState()),{},{showAddRow:!W.state.showAddRow}))}}),G.editable.onRowUpdate&&G.actions.push(function(H){return{icon:G.icons.Edit,tooltip:G.editable.editTooltip?G.editable.editTooltip(H):L.editTooltip,disabled:G.editable.isEditable&&!G.editable.isEditable(H),hidden:G.editable.isEditHidden&&G.editable.isEditHidden(H),onClick:function(te,ee){W.onRowEditStarted(ee)}}}),G.editable.onRowDelete&&G.actions.push(function(H){return{icon:G.icons.Delete,tooltip:G.editable.deleteTooltip?G.editable.deleteTooltip(H):L.deleteTooltip,disabled:G.editable.isDeletable&&!G.editable.isDeletable(H),hidden:G.editable.isDeleteHidden&&G.editable.isDeleteHidden(H),onClick:function(te,ee){W.dataManager.changeRowEditing(ee,"delete"),W.setState(D(D({},W.dataManager.getRenderState()),{},{showAddRow:!1}))}}}),G.editable.onBulkUpdate&&(G.actions.push({icon:G.icons.Edit,tooltip:L.bulkEditTooltip,position:"toolbar",hidden:this.dataManager.bulkEditOpen,disabled:G.isBulkEditable&&G.isBulkEditable(),onClick:function(){W.dataManager.changeBulkEditOpen(!0),W.props.onBulkEditOpen&&W.props.onBulkEditOpen(!0),W.setState(W.dataManager.getRenderState())}}),G.actions.push({icon:G.icons.Check,tooltip:L.bulkEditApprove,position:"toolbar",hidden:!this.dataManager.bulkEditOpen,onClick:function(){return W.onEditingApproved("bulk")}}),G.actions.push({icon:G.icons.Clear,tooltip:L.bulkEditCancel,position:"toolbar",hidden:!this.dataManager.bulkEditOpen,onClick:function(){W.dataManager.changeBulkEditOpen(!1),W.props.onBulkEditOpen&&W.props.onBulkEditOpen(!1),W.dataManager.clearBulkEditChangedRows(),W.setState(W.dataManager.getRenderState())}})),(q=this.state)!==null&&q!==void 0&&q.showAddRow&&G.editable.onRowAdd&&G.actions.filter(function(H){return H.position==="row"}).length===0&&G.actions.push({icon:void 0,position:"row",onClick:function(){},disabled:!0})}return G}},{key:"renderFooter",value:function(){var E=this.getProps();if(E.options.paging){var W=this.isRemoteData()?Math.min(E.page,Math.floor(E.totalCount/this.state.pageSize)):this.state.currentPage,G=this.isRemoteData()?E.totalCount:this.state.data.length;return b.default.createElement(f.default,null,b.default.createElement(c.default,{style:{display:"grid"}},b.default.createElement(o.default,{style:{display:"grid"}},b.default.createElement(E.components.Pagination,{sx:{display:"flex",justifyContent:E.options.paginationAlignment?E.options.paginationAlignment:"flex-end",overflowX:"auto","& .MuiTablePagination-displayedRows":{display:"none"}},colSpan:3,count:this.isRemoteData()?this.state.query.totalCount:G,rowsPerPage:this.state.pageSize,rowsPerPageOptions:E.options.pageSizeOptions,SelectProps:{renderValue:function(q){return b.default.createElement(n.default,{sx:{padding:"0px 5px"}},q+" "+E.localization.pagination.labelRows+" ")}},page:this.isRemoteData()?this.state.query.page:W,onPageChange:this.onPageChange,onRowsPerPageChange:this.onRowsPerPageChange,ActionsComponent:function(q){return E.options.paginationType==="normal"?b.default.createElement(M.MTablePagination,(0,a.default)({},q,{showFirstLastPageButtons:E.options.showFirstLastPageButtons})):b.default.createElement(M.MTableSteppedPagination,(0,a.default)({},q,{showFirstLastPageButtons:E.options.showFirstLastPageButtons,numberOfPagesAround:E.options.numberOfPagesAround}))},labelRowsPerPage:E.localization.pagination.labelRowsPerPage}))))}}},{key:"render",value:function(){var E=this,W=this.getProps();return b.default.createElement(k.DragDropContext,{onDragEnd:this.onDragEnd,nonce:W.options.cspNonce},b.default.createElement(this.props.components.Container,{style:D({position:"relative"},W.style)},W.options.paginationPosition==="top"||W.options.paginationPosition==="both"?this.renderFooter():null,W.options.toolbar&&b.default.createElement(this.props.components.Toolbar,{actions:W.actions,components:this.props.components,originalData:this.state.originalData,columns:this.state.columns,selectedCount:this.state.selectedCount,getFieldValue:this.dataManager.getFieldValue,data:this.getRenderData,title:W.title,searchText:this.dataManager.searchText,searchDebounceDelay:this.dataManager.searchDebounceDelay,onSearchChanged:this.onSearchChangeDebounce,isRemoteData:this.isRemoteData(),dataManager:this.dataManager,onColumnsChanged:this.onChangeColumnHidden}),W.options.grouping&&b.default.createElement(this.props.components.Groupbar,{groupColumns:this.state.columns.filter(function(G){return G.tableData.groupOrder>-1}).sort(function(G,L){return G.tableData.groupOrder-L.tableData.groupOrder}),onSortChanged:this.onChangeGroupOrder,onGroupRemoved:this.onGroupRemoved,onGroupChange:this.props.onGroupChange,persistentGroupingsId:W.options.persistentGroupingsId}),b.default.createElement(M.MTableScrollbar,{double:W.options.doubleHorizontalScroll},b.default.createElement(k.Droppable,{droppableId:"headers",direction:"horizontal"},function(G,L){var q=E.renderTable(W);return b.default.createElement("div",{ref:G.innerRef},b.default.createElement("div",{ref:E.tableContainerDiv,style:{maxHeight:W.options.maxBodyHeight,minHeight:W.options.minBodyHeight,overflowY:W.options.overflowY}},E.state.width&&W.options.fixedColumns&&W.options.fixedColumns.right?b.default.createElement("div",{style:{width:E.getColumnsWidth(W,-1*W.options.fixedColumns.right),position:"absolute",top:0,right:0,boxShadow:"-2px 0px 15px rgba(125,147,178,.25)",overflowX:"clip",zIndex:11}},b.default.createElement("div",{style:{width:E.state.width,background:"white",transform:"translateX(calc(".concat(E.getColumnsWidth(W,-1*W.options.fixedColumns.right)," - 100%))")}},q)):null,b.default.createElement("div",null,q),E.state.width&&W.options.fixedColumns&&W.options.fixedColumns.left?b.default.createElement("div",{style:{width:E.getColumnsWidth(W,W.options.fixedColumns.left),position:"absolute",top:0,left:0,boxShadow:"2px 0px 15px rgba(125,147,178,.25)",overflowX:"clip",zIndex:11}},b.default.createElement("div",{style:{width:E.state.width,background:"white"},onKeyDown:function(V){V.key==="Tab"&&V.preventDefault()}},q)):null),G.placeholder)})),(this.state.isLoading||W.isLoading)&&W.options.loadingType==="linear"&&b.default.createElement("div",{style:{position:"relative",width:"100%"}},b.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%"}},b.default.createElement(i.default,null))),W.options.paginationPosition==="bottom"||W.options.paginationPosition==="both"?this.renderFooter():null,(this.state.isLoading||W.isLoading)&&W.options.loadingType==="overlay"&&b.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%",zIndex:11}},b.default.createElement(this.props.components.OverlayLoading,{theme:W.theme})),this.state.errorState&&this.state.errorState.errorCause==="query"&&b.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%",zIndex:11}},b.default.createElement(this.props.components.OverlayError,{error:this.state.errorState,retry:this.retry,theme:W.theme}))))}}]),j}(b.default.Component);e.default=F;function A(B,$,j){var N=[],E=[];return j>0&&(N=z(B,j)),$&&(E=z($,j)),[N,E]}function z(B,$){var j=B.filter(function(N){return N.defaultSort&&N.sorting!==!1});return j.slice(0,$).map(function(N,E){return{orderBy:N.tableData?N.tableData.id:B.findIndex(function(W){return W.field===N.field}),orderDirection:N.defaultSort,sortOrder:E+1}})}}(Im)),Im}(function(e){var t=Rn;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ALL_COLUMNS",{enumerable:!0,get:function(){return s.ALL_COLUMNS}}),Object.defineProperty(e,"MTableAction",{enumerable:!0,get:function(){return f.MTableAction}}),Object.defineProperty(e,"MTableActions",{enumerable:!0,get:function(){return f.MTableActions}}),Object.defineProperty(e,"MTableBody",{enumerable:!0,get:function(){return f.MTableBody}}),Object.defineProperty(e,"MTableBodyRow",{enumerable:!0,get:function(){return f.MTableBodyRow}}),Object.defineProperty(e,"MTableCell",{enumerable:!0,get:function(){return f.MTableCell}}),Object.defineProperty(e,"MTableEditCell",{enumerable:!0,get:function(){return f.MTableEditCell}}),Object.defineProperty(e,"MTableEditField",{enumerable:!0,get:function(){return f.MTableEditField}}),Object.defineProperty(e,"MTableEditRow",{enumerable:!0,get:function(){return f.MTableEditRow}}),Object.defineProperty(e,"MTableFilterRow",{enumerable:!0,get:function(){return f.MTableFilterRow}}),Object.defineProperty(e,"MTableGroupRow",{enumerable:!0,get:function(){return f.MTableGroupRow}}),Object.defineProperty(e,"MTableGroupbar",{enumerable:!0,get:function(){return f.MTableGroupbar}}),Object.defineProperty(e,"MTableHeader",{enumerable:!0,get:function(){return f.MTableHeader}}),Object.defineProperty(e,"MTablePagination",{enumerable:!0,get:function(){return f.MTablePagination}}),Object.defineProperty(e,"MTableSteppedPagination",{enumerable:!0,get:function(){return f.MTableSteppedPagination}}),Object.defineProperty(e,"MTableToolbar",{enumerable:!0,get:function(){return f.MTableToolbar}}),e.default=void 0,Object.defineProperty(e,"useLocalizationStore",{enumerable:!0,get:function(){return l.useLocalizationStore}});var r=t(hr()),i=t($e),c=bY(),o=xY(),a=t(jY()),n=$l,l=tc(),f=Jd(),s=C1();a.default.defaultProps=c.defaultProps,a.default.propTypes=o.propTypes;var u=(0,l.withContext)(function(d){var h=(0,n.useTheme)(),p=(0,l.useMergeProps)(d),g=p.localization,y=p.options,v=p.components;return i.default.createElement(a.default,(0,r.default)({},d,{theme:h,options:y,components:v,localization:g,ref:d.tableRef}))});e.default=u})(mS);const $Y=ir(mS);class BY{constructor(t){Nc(this,"cachedGraphs");Nc(this,"cachedWidgets");Nc(this,"inner");this.inner=t,this.cachedGraphs=new Map,this.cachedWidgets=new Map}async getAdditionGraphData(t){let r=this.cachedGraphs.get(t);return r!==void 0||(r=await this.inner.getAdditionGraphData(t),this.cachedGraphs.set(t,r)),r}async getAdditionWidgetData(t){let r=this.cachedWidgets.get(t);return r!==void 0||(r=await this.inner.getAdditionWidgetData(t),this.cachedWidgets.set(t,r)),r}}const bC=et.createContext({getAdditionGraphData:()=>new Promise((e,t)=>t("default context doesn't contain methods to get data")),getAdditionWidgetData:()=>new Promise((e,t)=>t("default context doesn't contain methods to get data"))});function G5e(e){return new BY(e)}const zY=e=>{const t=e.activeTab===-1?0:e.activeTab;return je.jsxs("div",{children:[je.jsx(aS,{value:t,onChange:e.onNewTabSelected,indicatorColor:"primary",textColor:"primary",children:e.tabs.map(r=>je.jsx(A0,{disabled:r.disabled??!1,label:je.jsx(Jr,{className:e.tabStyle,children:je.jsxs(Jr,{display:"flex",sx:{fontSize:"0.875rem"},children:[je.jsx("span",{children:r.icon}),r.title]})})}))}),je.jsx(Jr,{children:e.tabs.map((r,i)=>je.jsx("div",{hidden:(e.activeTab===-1?0:e.activeTab)!==i,children:(e.activeTab===-1?0:e.activeTab)!==i?je.jsx("div",{}):r.tab}))})]})},O1=e=>{const[t,r]=$e.useState({activeTab:0});return je.jsx(et.Fragment,{children:je.jsx(zY,{activeTab:t.activeTab,onNewTabSelected:(i,c)=>r(o=>({...o,activeTab:c})),tabs:e.tabs})})},H0=({func:e,children:t})=>{const[r,i]=$e.useState(()=>({status:0,func:e}));return r.status===0&&i(c=>({...c,status:1})),r.status===1&&(i(c=>({...c,status:2})),r.func().then(c=>i(o=>({...o,status:3,result:c}))).catch(()=>i(c=>({...c,status:4})))),je.jsx(je.Fragment,{children:r.status===3?t&&r.result&&t(r.result):r.status===4?je.jsx(Cr,{align:"center",children:"Failed"}):r.status===2?je.jsx(Jr,{textAlign:"center",children:je.jsx(tE,{})}):null})},xC=e=>je.jsxs(wy,{severity:e.data.severity,children:[je.jsx(by,{children:e.data.title}),e.data.text]}),wC=()=>je.jsx("div",{children:"Not implemented"}),qY=e=>e.type??"graph",nT=(e,t,r)=>{switch(qY(t)){case"graph":{const i=()=>e.getAdditionGraphData(t.id),c=o=>je.jsx(Pd,{...o,widgetSize:r});return je.jsx(H0,{func:i,children:c})}case"widget":{const i=()=>e.getAdditionWidgetData(t.id),c=o=>Tc(t.id,o);return je.jsx(H0,{func:i,children:c})}default:return je.jsx(wC,{})}},A1=e=>je.jsx(bC.Consumer,{children:t=>je.jsxs(Jr,{children:[e.details.parts.length>1?je.jsx(O1,{tabs:e.details.parts.map(r=>({title:r.title,tab:nT(t,r,e.widgetSize)}))}):nT(t,e.details.parts[0],e.widgetSize),e.details.insights===void 0?je.jsx(je.Fragment,{}):e.details.insights.map(r=>je.jsx(xC,{data:r},r.text+r.title+r.severity))]})}),WY=e=>je.jsx(bC.Consumer,{children:t=>je.jsx(H0,{func:()=>t.getAdditionGraphData(e.graphId),children:r=>je.jsx(Pd,{...r,widgetSize:e.widgetSize})})});var V0={exports:{}},Y0={exports:{}};(function(e,t){t.__esModule=!0,t.default=r;function r(i){var c={};for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(c[o]=0);return c}e.exports=t.default})(Y0,Y0.exports);var P1=Y0.exports,G0={exports:{}};(function(e,t){t.__esModule=!0,t.default=r;function r(i){var c={};for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(c[o]=typeof i[o]=="number"?i[o]:i[o].val);return c}e.exports=t.default})(G0,G0.exports);var th=G0.exports,X0={exports:{}};(function(e,t){t.__esModule=!0,t.default=i;var r=[0,0];function i(c,o,a,n,l,f,s){var u=-l*(o-n),d=-f*a,h=u+d,p=a+h*c,g=o+p*c;return Math.abs(p)"u"?Sa:window,Qc=["moz","webkit"],yl="AnimationFrame",Pl=Mi["request"+yl],$u=Mi["cancel"+yl]||Mi["cancelRequest"+yl];for(var eu=0;!Pl&&euk*10&&(P.accumulatedTime=0),P.accumulatedTime===0){P.animationID=null,P.startAnimationIfNecessary();return}var A=(P.accumulatedTime-Math.floor(P.accumulatedTime/k)*k)/k,z=Math.floor(P.accumulatedTime/k),B={},$={},j={},N={};for(var E in O)if(Object.prototype.hasOwnProperty.call(O,E)){var W=O[E];if(typeof W=="number")j[E]=W,N[E]=0,B[E]=W,$[E]=0;else{for(var G=P.state.lastIdealStyle[E],L=P.state.lastIdealVelocity[E],q=0;qk*10&&(D.accumulatedTime=0),D.accumulatedTime===0){D.animationID=null,D.startAnimationIfNecessary();return}for(var z=(D.accumulatedTime-Math.floor(D.accumulatedTime/k)*k)/k,B=Math.floor(D.accumulatedTime/k),$=[],j=[],N=[],E=[],W=0;Wa[m])return-1;if(h>l[m]&&ya[m])return 1;if(p>l[m]&&gM*10&&(A.accumulatedTime=0),A.accumulatedTime===0){A.animationID=null,A.startAnimationIfNecessary();return}for(var E=(A.accumulatedTime-Math.floor(A.accumulatedTime/M)*M)/M,W=Math.floor(A.accumulatedTime/M),G=P(A.props.willEnter,A.props.willLeave,A.props.didLeave,A.state.mergedPropsStyles,$,A.state.currentStyles,A.state.currentVelocities,A.state.lastIdealStyles,A.state.lastIdealVelocities),L=G[0],q=G[1],H=G[2],V=G[3],te=G[4],ee=0;ee0},e.prototype.connect_=function(){!rv||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),fG?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!rv||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,i=r===void 0?"":r,c=cG.some(function(o){return!!~i.indexOf(o)});c&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),kC=function(e,t){for(var r=0,i=Object.keys(t);r"u"||!(Element instanceof Object))){if(!(t instanceof Dl(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new xG(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Dl(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(i){return new wG(i.target,i.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),SC=typeof WeakMap<"u"?new WeakMap:new TC,CC=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=dG.getInstance(),i=new _G(t,r,this);SC.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach(function(e){CC.prototype[e]=function(){var t;return(t=SC.get(this))[e].apply(t,arguments)}});var TG=function(){return typeof Yf.ResizeObserver<"u"?Yf.ResizeObserver:CC}(),kG=["client","offset","scroll","bounds","margin"];function iT(e){var t=[];return kG.forEach(function(r){e[r]&&t.push(r)}),t}function oT(e,t){var r={};if(t.indexOf("client")>-1&&(r.client={top:e.clientTop,left:e.clientLeft,width:e.clientWidth,height:e.clientHeight}),t.indexOf("offset")>-1&&(r.offset={top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight}),t.indexOf("scroll")>-1&&(r.scroll={top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}),t.indexOf("bounds")>-1){var i=e.getBoundingClientRect();r.bounds={top:i.top,right:i.right,bottom:i.bottom,left:i.left,width:i.width,height:i.height}}if(t.indexOf("margin")>-1){var c=getComputedStyle(e);r.margin={top:c?parseInt(c.marginTop):0,right:c?parseInt(c.marginRight):0,bottom:c?parseInt(c.marginBottom):0,left:c?parseInt(c.marginLeft):0}}return r}function MG(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||window}function SG(e){return function(t){var r,i;return i=r=function(c){nE(o,c);function o(){for(var n,l=arguments.length,f=new Array(l),s=0;s-1}var iX=aX,oX=oh;function lX(e,t){var r=this.__data__,i=oX(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}var sX=lX,uX=HG,cX=QG,fX=nX,dX=iX,hX=sX;function Yl(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=bJ}var W1=xJ,wJ=sh,_J=W1;function TJ(e){return e!=null&&_J(e.length)&&!wJ(e)}var Jl=TJ,kJ=Jl,MJ=Na;function SJ(e){return MJ(e)&&kJ(e)}var zC=SJ,Kf={exports:{}};function CJ(){return!1}var OJ=CJ;Kf.exports;(function(e,t){var r=Oa,i=OJ,c=t&&!t.nodeType&&t,o=c&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===c,n=a?r.Buffer:void 0,l=n?n.isBuffer:void 0,f=l||i;e.exports=f})(Kf,Kf.exports);var gh=Kf.exports,AJ=Ii,PJ=z1,DJ=Na,EJ="[object Object]",RJ=Function.prototype,LJ=Object.prototype,qC=RJ.toString,IJ=LJ.hasOwnProperty,FJ=qC.call(Object);function NJ(e){if(!DJ(e)||AJ(e)!=EJ)return!1;var t=PJ(e);if(t===null)return!0;var r=IJ.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&qC.call(r)==FJ}var U1=NJ;const Wu=ir(U1);var jJ=Ii,$J=W1,BJ=Na,zJ="[object Arguments]",qJ="[object Array]",WJ="[object Boolean]",UJ="[object Date]",HJ="[object Error]",VJ="[object Function]",YJ="[object Map]",GJ="[object Number]",XJ="[object Object]",ZJ="[object RegExp]",KJ="[object Set]",JJ="[object String]",QJ="[object WeakMap]",eQ="[object ArrayBuffer]",tQ="[object DataView]",nQ="[object Float32Array]",rQ="[object Float64Array]",aQ="[object Int8Array]",iQ="[object Int16Array]",oQ="[object Int32Array]",lQ="[object Uint8Array]",sQ="[object Uint8ClampedArray]",uQ="[object Uint16Array]",cQ="[object Uint32Array]",xr={};xr[nQ]=xr[rQ]=xr[aQ]=xr[iQ]=xr[oQ]=xr[lQ]=xr[sQ]=xr[uQ]=xr[cQ]=!0;xr[zJ]=xr[qJ]=xr[eQ]=xr[WJ]=xr[tQ]=xr[UJ]=xr[HJ]=xr[VJ]=xr[YJ]=xr[GJ]=xr[XJ]=xr[ZJ]=xr[KJ]=xr[JJ]=xr[QJ]=!1;function fQ(e){return BJ(e)&&$J(e.length)&&!!xr[jJ(e)]}var dQ=fQ;function hQ(e){return function(t){return e(t)}}var Ql=hQ,Jf={exports:{}};Jf.exports;(function(e,t){var r=AC,i=t&&!t.nodeType&&t,c=i&&!0&&e&&!e.nodeType&&e,o=c&&c.exports===i,a=o&&r.process,n=function(){try{var l=c&&c.require&&c.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=n})(Jf,Jf.exports);var mh=Jf.exports,pQ=dQ,gQ=Ql,xT=mh,wT=xT&&xT.isTypedArray,mQ=wT?gQ(wT):pQ,H1=mQ;function vQ(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var WC=vQ,yQ=$1,bQ=cc,xQ=Object.prototype,wQ=xQ.hasOwnProperty;function _Q(e,t,r){var i=e[t];(!(wQ.call(e,t)&&bQ(i,r))||r===void 0&&!(t in e))&&yQ(e,t,r)}var V1=_Q,TQ=V1,kQ=$1;function MQ(e,t,r,i){var c=!r;r||(r={});for(var o=-1,a=t.length;++o-1&&e%1==0&&e0){if(++t>=Lee)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var YC=Nee,jee=Ree,$ee=YC,Bee=$ee(jee),G1=Bee,zee=Yo,qee=VC,Wee=G1;function Uee(e,t){return Wee(qee(e,t,zee),e+"")}var vh=Uee,Hee=cc,Vee=Jl,Yee=fc,Gee=Ya;function Xee(e,t,r){if(!Gee(r))return!1;var i=typeof t;return(i=="number"?Vee(r)&&Yee(t,r.length):i=="string"&&t in r)?Hee(r[t],e):!1}var X1=Xee,Zee=vh,Kee=X1;function Jee(e){return Zee(function(t,r){var i=-1,c=r.length,o=c>1?r[c-1]:void 0,a=c>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(c--,o):void 0,a&&Kee(r[0],r[1],a)&&(o=c<3?void 0:o,c=1),t=Object(t);++it?1:e>=t?0:NaN}function J1(e){let t=e,r=e;e.length===1&&(t=(a,n)=>e(a)-n,r=une(e));function i(a,n,l,f){for(l==null&&(l=0),f==null&&(f=a.length);l>>1;r(a[s],n)<0?l=s+1:f=s}return l}function c(a,n,l,f){for(l==null&&(l=0),f==null&&(f=a.length);l>>1;r(a[s],n)>0?f=s:l=s+1}return l}function o(a,n,l,f){l==null&&(l=0),f==null&&(f=a.length);const s=i(a,n,l,f-1);return s>l&&t(a[s-1],n)>-t(a[s],n)?s-1:s}return{left:i,center:o,right:c}}function une(e){return(t,r)=>QC(e(t),r)}function cne(e){return e===null?NaN:+e}const fne=J1(QC),dne=fne.right;J1(cne).center;var av=Math.sqrt(50),iv=Math.sqrt(10),ov=Math.sqrt(2);function lv(e,t,r){var i,c=-1,o,a,n;if(t=+t,e=+e,r=+r,e===t&&r>0)return[e];if((i=t0){let l=Math.round(e/n),f=Math.round(t/n);for(l*nt&&--f,a=new Array(o=f-l+1);++ct&&--f,a=new Array(o=f-l+1);++c=0?(o>=av?10:o>=iv?5:o>=ov?2:1)*Math.pow(10,c):-Math.pow(10,-c)/(o>=av?10:o>=iv?5:o>=ov?2:1)}function sv(e,t,r){var i=Math.abs(t-e)/Math.max(0,r),c=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/c;return o>=av?c*=10:o>=iv?c*=5:o>=ov&&(c*=2),t>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?tf(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?tf(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=mne.exec(e))?new Ra(t[1],t[2],t[3],1):(t=vne.exec(e))?new Ra(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=yne.exec(e))?tf(t[1],t[2],t[3],t[4]):(t=bne.exec(e))?tf(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=xne.exec(e))?$T(t[1],t[2]/100,t[3]/100,1):(t=wne.exec(e))?$T(t[1],t[2]/100,t[3]/100,t[4]):RT.hasOwnProperty(e)?FT(RT[e]):e==="transparent"?new Ra(NaN,NaN,NaN,0):null}function FT(e){return new Ra(e>>16&255,e>>8&255,e&255,1)}function tf(e,t,r,i){return i<=0&&(e=t=r=NaN),new Ra(e,t,r,i)}function Tne(e){return e instanceof pc||(e=Po(e)),e?(e=e.rgb(),new Ra(e.r,e.g,e.b,e.opacity)):new Ra}function Do(e,t,r,i){return arguments.length===1?Tne(e):new Ra(e,t,r,i??1)}function Ra(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}eb(Ra,Do,n8(pc,{brighter:function(e){return e=e==null?Qf:Math.pow(Qf,e),new Ra(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?Uu:Math.pow(Uu,e),new Ra(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:NT,formatHex:NT,formatRgb:jT,toString:jT}));function NT(){return"#"+zm(this.r)+zm(this.g)+zm(this.b)}function jT(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function zm(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function $T(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new fi(e,t,r,i)}function r8(e){if(e instanceof fi)return new fi(e.h,e.s,e.l,e.opacity);if(e instanceof pc||(e=Po(e)),!e)return new fi;if(e instanceof fi)return e;e=e.rgb();var t=e.r/255,r=e.g/255,i=e.b/255,c=Math.min(t,r,i),o=Math.max(t,r,i),a=NaN,n=o-c,l=(o+c)/2;return n?(t===o?a=(r-i)/n+(r0&&l<1?0:a,new fi(a,n,l,e.opacity)}function kne(e,t,r,i){return arguments.length===1?r8(e):new fi(e,t,r,i??1)}function fi(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}eb(fi,kne,n8(pc,{brighter:function(e){return e=e==null?Qf:Math.pow(Qf,e),new fi(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Uu:Math.pow(Uu,e),new fi(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*t,c=2*r-i;return new Ra(qm(e>=240?e-240:e+120,c,i),qm(e,c,i),qm(e<120?e+240:e-120,c,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function qm(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const tb=e=>()=>e;function Mne(e,t){return function(r){return e+r*t}}function Sne(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(i){return Math.pow(e+i*t,r)}}function Cne(e){return(e=+e)==1?a8:function(t,r){return r-t?Sne(t,r,e):tb(isNaN(t)?r:t)}}function a8(e,t){var r=t-e;return r?Mne(e,r):tb(isNaN(e)?t:e)}const BT=function e(t){var r=Cne(t);function i(c,o){var a=r((c=Do(c)).r,(o=Do(o)).r),n=r(c.g,o.g),l=r(c.b,o.b),f=a8(c.opacity,o.opacity);return function(s){return c.r=a(s),c.g=n(s),c.b=l(s),c.opacity=f(s),c+""}}return i.gamma=e,i}(1);function One(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,i=t.slice(),c;return function(o){for(c=0;cr&&(o=t.slice(r,o),n[a]?n[a]+=o:n[++a]=o),(i=i[0])===(c=c[0])?n[a]?n[a]+=c:n[++a]=c:(n[++a]=null,l.push({i:a,x:ed(i,c)})),r=Wm.lastIndex;return rt&&(r=e,e=t,t=r),function(i){return Math.max(e,Math.min(t,i))}}function Bne(e,t,r){var i=e[0],c=e[1],o=t[0],a=t[1];return c2?zne:Bne,l=f=null,u}function u(d){return d==null||isNaN(d=+d)?o:(l||(l=n(e.map(i),t,r)))(i(a(d)))}return u.invert=function(d){return a(c((f||(f=n(t,e.map(i),ed)))(d)))},u.domain=function(d){return arguments.length?(e=Array.from(d,jne),s()):e.slice()},u.range=function(d){return arguments.length?(t=Array.from(d),s()):t.slice()},u.rangeRound=function(d){return t=Array.from(d),r=Fne,s()},u.clamp=function(d){return arguments.length?(a=d?!0:pl,s()):a!==pl},u.interpolate=function(d){return arguments.length?(r=d,s()):r},u.unknown=function(d){return arguments.length?(o=d,u):o},function(d,h){return i=d,c=h,s()}}function o8(){return i8()(pl,pl)}function qne(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function td(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,i=e.slice(0,r);return[i.length>1?i[0]+i.slice(2):i,+e.slice(r+1)]}function El(e){return e=td(Math.abs(e)),e?e[1]:NaN}function Wne(e,t){return function(r,i){for(var c=r.length,o=[],a=0,n=e[0],l=0;c>0&&n>0&&(l+n+1>i&&(n=Math.max(1,i-l)),o.push(r.substring(c-=n,c+n)),!((l+=n+1)>i));)n=e[a=(a+1)%e.length];return o.reverse().join(t)}}function Une(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var Hne=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function nd(e){if(!(t=Hne.exec(e)))throw new Error("invalid format: "+e);var t;return new ab({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}nd.prototype=ab.prototype;function ab(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}ab.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Vne(e){e:for(var t=e.length,r=1,i=-1,c;r0&&(i=0);break}return i>0?e.slice(0,i)+e.slice(c+1):e}var l8;function Yne(e,t){var r=td(e,t);if(!r)return e+"";var i=r[0],c=r[1],o=c-(l8=Math.max(-8,Math.min(8,Math.floor(c/3)))*3)+1,a=i.length;return o===a?i:o>a?i+new Array(o-a+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+td(e,Math.max(0,t+o-1))[0]}function qT(e,t){var r=td(e,t);if(!r)return e+"";var i=r[0],c=r[1];return c<0?"0."+new Array(-c).join("0")+i:i.length>c+1?i.slice(0,c+1)+"."+i.slice(c+1):i+new Array(c-i.length+2).join("0")}const WT={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:qne,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return qT(e*100,t)},r:qT,s:Yne,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function UT(e){return e}var HT=Array.prototype.map,VT=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Gne(e){var t=e.grouping===void 0||e.thousands===void 0?UT:Wne(HT.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",i=e.currency===void 0?"":e.currency[1]+"",c=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?UT:Une(HT.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",n=e.minus===void 0?"-":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function f(u){u=nd(u);var d=u.fill,h=u.align,p=u.sign,g=u.symbol,y=u.zero,v=u.width,m=u.comma,b=u.precision,x=u.trim,_=u.type;_==="n"?(m=!0,_="g"):WT[_]||(b===void 0&&(b=12),x=!0,_="g"),(y||d==="0"&&h==="=")&&(y=!0,d="0",h="=");var w=g==="$"?r:g==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",k=g==="$"?i:/[%p]/.test(_)?a:"",T=WT[_],M=/[defgprs%]/.test(_);b=b===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function S(C){var P=w,D=k,O,R,F;if(_==="c")D=T(C)+D,C="";else{C=+C;var A=C<0||1/C<0;if(C=isNaN(C)?l:T(Math.abs(C),b),x&&(C=Vne(C)),A&&+C==0&&p!=="+"&&(A=!1),P=(A?p==="("?p:n:p==="-"||p==="("?"":p)+P,D=(_==="s"?VT[8+l8/3]:"")+D+(A&&p==="("?")":""),M){for(O=-1,R=C.length;++OF||F>57){D=(F===46?c+C.slice(O+1):C.slice(O))+D,C=C.slice(0,O);break}}}m&&!y&&(C=t(C,1/0));var z=P.length+C.length+D.length,B=z>1)+P+C+D+B.slice(z);break;default:C=B+P+C+D;break}return o(C)}return S.toString=function(){return u+""},S}function s(u,d){var h=f((u=nd(u),u.type="f",u)),p=Math.max(-8,Math.min(8,Math.floor(El(d)/3)))*3,g=Math.pow(10,-p),y=VT[8+p/3];return function(v){return h(g*v)+y}}return{format:f,formatPrefix:s}}var nf,is,s8;Xne({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function Xne(e){return nf=Gne(e),is=nf.format,s8=nf.formatPrefix,nf}function Zne(e){return Math.max(0,-El(Math.abs(e)))}function Kne(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(El(t)/3)))*3-El(Math.abs(e)))}function Jne(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,El(t)-El(e))+1}function Qne(e,t,r,i){var c=sv(e,t,r),o;switch(i=nd(i??",f"),i.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return i.precision==null&&!isNaN(o=Kne(c,a))&&(i.precision=o),s8(i,a)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(o=Jne(c,Math.max(Math.abs(e),Math.abs(t))))&&(i.precision=o-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(o=Zne(c))&&(i.precision=o-(i.type==="%")*2);break}}return is(i)}function ere(e){var t=e.domain;return e.ticks=function(r){var i=t();return lv(i[0],i[i.length-1],r??10)},e.tickFormat=function(r,i){var c=t();return Qne(c[0],c[c.length-1],r??10,i)},e.nice=function(r){r==null&&(r=10);var i=t(),c=0,o=i.length-1,a=i[c],n=i[o],l,f,s=10;for(n0;){if(f=e8(a,n,r),f===l)return i[c]=a,i[o]=n,t(i);if(f>0)a=Math.floor(a/f)*f,n=Math.ceil(n/f)*f;else if(f<0)a=Math.ceil(a*f)/f,n=Math.floor(n*f)/f;else break;l=f}return e},e}function Eo(){var e=o8();return e.copy=function(){return rb(e,Eo())},as.apply(e,arguments),ere(e)}function u8(e,t){e=e.slice();var r=0,i=e.length-1,c=e[r],o=e[i],a;return o0){for(;d<=h;++d)for(g=1,p=o(d);gs)break;m.push(y)}}else for(;d<=h;++d)for(g=i-1,p=o(d);g>=1;--g)if(y=p*g,!(ys)break;m.push(y)}m.length*20))return l;do l.push(f=new Date(+o)),t(o,n),e(o);while(f=a)for(;e(a),!o(a);)a.setTime(a-1)},function(a,n){if(a>=a)if(n<0)for(;++n<=0;)for(;t(a,-1),!o(a););else for(;--n>=0;)for(;t(a,1),!o(a););})},r&&(c.count=function(o,a){return Um.setTime(+o),Hm.setTime(+a),e(Um),e(Hm),Math.floor(r(Um,Hm))},c.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?c.filter(i?function(a){return i(a)%o===0}:function(a){return c.count(0,a)%o===0}):c}),c}var rd=ta(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});rd.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ta(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):rd};rd.range;const Ti=1e3,Ua=Ti*60,ki=Ua*60,Ro=ki*24,ib=Ro*7,ZT=Ro*30,Vm=Ro*365;var Mo=ta(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Ti)},function(e,t){return(t-e)/Ti},function(e){return e.getUTCSeconds()});Mo.range;var ob=ta(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ti)},function(e,t){e.setTime(+e+t*Ua)},function(e,t){return(t-e)/Ua},function(e){return e.getMinutes()});ob.range;var lb=ta(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ti-e.getMinutes()*Ua)},function(e,t){e.setTime(+e+t*ki)},function(e,t){return(t-e)/ki},function(e){return e.getHours()});lb.range;var gc=ta(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ua)/Ro,e=>e.getDate()-1);gc.range;function Go(e){return ta(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,r){t.setDate(t.getDate()+r*7)},function(t,r){return(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Ua)/ib})}var bh=Go(0),ad=Go(1),lre=Go(2),sre=Go(3),Rl=Go(4),ure=Go(5),cre=Go(6);bh.range;ad.range;lre.range;sre.range;Rl.range;ure.range;cre.range;var sb=ta(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});sb.range;var Oi=ta(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});Oi.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ta(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)})};Oi.range;var ub=ta(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Ua)},function(e,t){return(t-e)/Ua},function(e){return e.getUTCMinutes()});ub.range;var cb=ta(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*ki)},function(e,t){return(t-e)/ki},function(e){return e.getUTCHours()});cb.range;var mc=ta(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/Ro},function(e){return e.getUTCDate()-1});mc.range;function Xo(e){return ta(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCDate(t.getUTCDate()+r*7)},function(t,r){return(r-t)/ib})}var xh=Xo(0),id=Xo(1),fre=Xo(2),dre=Xo(3),Ll=Xo(4),hre=Xo(5),pre=Xo(6);xh.range;id.range;fre.range;dre.range;Ll.range;hre.range;pre.range;var fb=ta(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});fb.range;var Ai=ta(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});Ai.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ta(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})};Ai.range;function f8(e,t,r,i,c,o){const a=[[Mo,1,Ti],[Mo,5,5*Ti],[Mo,15,15*Ti],[Mo,30,30*Ti],[o,1,Ua],[o,5,5*Ua],[o,15,15*Ua],[o,30,30*Ua],[c,1,ki],[c,3,3*ki],[c,6,6*ki],[c,12,12*ki],[i,1,Ro],[i,2,2*Ro],[r,1,ib],[t,1,ZT],[t,3,3*ZT],[e,1,Vm]];function n(f,s,u){const d=sy).right(a,d);if(h===a.length)return e.every(sv(f/Vm,s/Vm,u));if(h===0)return rd.every(Math.max(sv(f,s,u),1));const[p,g]=a[d/a[h-1][2]53)return null;"w"in U||(U.w=1),"Z"in U?(Y=Gm(nu(U.y,0,1)),Z=Y.getUTCDay(),Y=Z>4||Z===0?id.ceil(Y):id(Y),Y=mc.offset(Y,(U.V-1)*7),U.y=Y.getUTCFullYear(),U.m=Y.getUTCMonth(),U.d=Y.getUTCDate()+(U.w+6)%7):(Y=Ym(nu(U.y,0,1)),Z=Y.getDay(),Y=Z>4||Z===0?ad.ceil(Y):ad(Y),Y=gc.offset(Y,(U.V-1)*7),U.y=Y.getFullYear(),U.m=Y.getMonth(),U.d=Y.getDate()+(U.w+6)%7)}else("W"in U||"U"in U)&&("w"in U||(U.w="u"in U?U.u%7:"W"in U?1:0),Z="Z"in U?Gm(nu(U.y,0,1)).getUTCDay():Ym(nu(U.y,0,1)).getDay(),U.m=0,U.d="W"in U?(U.w+6)%7+U.W*7-(Z+5)%7:U.w+U.U*7-(Z+6)%7);return"Z"in U?(U.H+=U.Z/100|0,U.M+=U.Z%100,Gm(U)):Ym(U)}}function T(V,te,ee,U){for(var Q=0,Y=te.length,Z=ee.length,X,re;Q=Z)return-1;if(X=te.charCodeAt(Q++),X===37){if(X=te.charAt(Q++),re=_[X in KT?te.charAt(Q++):X],!re||(U=re(V,ee,U))<0)return-1}else if(X!=ee.charCodeAt(U++))return-1}return U}function M(V,te,ee){var U=f.exec(te.slice(ee));return U?(V.p=s.get(U[0].toLowerCase()),ee+U[0].length):-1}function S(V,te,ee){var U=h.exec(te.slice(ee));return U?(V.w=p.get(U[0].toLowerCase()),ee+U[0].length):-1}function C(V,te,ee){var U=u.exec(te.slice(ee));return U?(V.w=d.get(U[0].toLowerCase()),ee+U[0].length):-1}function P(V,te,ee){var U=v.exec(te.slice(ee));return U?(V.m=m.get(U[0].toLowerCase()),ee+U[0].length):-1}function D(V,te,ee){var U=g.exec(te.slice(ee));return U?(V.m=y.get(U[0].toLowerCase()),ee+U[0].length):-1}function O(V,te,ee){return T(V,t,te,ee)}function R(V,te,ee){return T(V,r,te,ee)}function F(V,te,ee){return T(V,i,te,ee)}function A(V){return a[V.getDay()]}function z(V){return o[V.getDay()]}function B(V){return l[V.getMonth()]}function $(V){return n[V.getMonth()]}function j(V){return c[+(V.getHours()>=12)]}function N(V){return 1+~~(V.getMonth()/3)}function E(V){return a[V.getUTCDay()]}function W(V){return o[V.getUTCDay()]}function G(V){return l[V.getUTCMonth()]}function L(V){return n[V.getUTCMonth()]}function q(V){return c[+(V.getUTCHours()>=12)]}function H(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var te=w(V+="",b);return te.toString=function(){return V},te},parse:function(V){var te=k(V+="",!1);return te.toString=function(){return V},te},utcFormat:function(V){var te=w(V+="",x);return te.toString=function(){return V},te},utcParse:function(V){var te=k(V+="",!0);return te.toString=function(){return V},te}}}var KT={"-":"",_:" ",0:"0"},na=/^\s*\d+/,xre=/^%/,wre=/[\\^$*+?|[\]().{}]/g;function nr(e,t,r){var i=e<0?"-":"",c=(i?-e:e)+"",o=c.length;return i+(o[t.toLowerCase(),r]))}function Tre(e,t,r){var i=na.exec(t.slice(r,r+1));return i?(e.w=+i[0],r+i[0].length):-1}function kre(e,t,r){var i=na.exec(t.slice(r,r+1));return i?(e.u=+i[0],r+i[0].length):-1}function Mre(e,t,r){var i=na.exec(t.slice(r,r+2));return i?(e.U=+i[0],r+i[0].length):-1}function Sre(e,t,r){var i=na.exec(t.slice(r,r+2));return i?(e.V=+i[0],r+i[0].length):-1}function Cre(e,t,r){var i=na.exec(t.slice(r,r+2));return i?(e.W=+i[0],r+i[0].length):-1}function JT(e,t,r){var i=na.exec(t.slice(r,r+4));return i?(e.y=+i[0],r+i[0].length):-1}function QT(e,t,r){var i=na.exec(t.slice(r,r+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),r+i[0].length):-1}function Ore(e,t,r){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),r+i[0].length):-1}function Are(e,t,r){var i=na.exec(t.slice(r,r+1));return i?(e.q=i[0]*3-3,r+i[0].length):-1}function Pre(e,t,r){var i=na.exec(t.slice(r,r+2));return i?(e.m=i[0]-1,r+i[0].length):-1}function ek(e,t,r){var i=na.exec(t.slice(r,r+2));return i?(e.d=+i[0],r+i[0].length):-1}function Dre(e,t,r){var i=na.exec(t.slice(r,r+3));return i?(e.m=0,e.d=+i[0],r+i[0].length):-1}function tk(e,t,r){var i=na.exec(t.slice(r,r+2));return i?(e.H=+i[0],r+i[0].length):-1}function Ere(e,t,r){var i=na.exec(t.slice(r,r+2));return i?(e.M=+i[0],r+i[0].length):-1}function Rre(e,t,r){var i=na.exec(t.slice(r,r+2));return i?(e.S=+i[0],r+i[0].length):-1}function Lre(e,t,r){var i=na.exec(t.slice(r,r+3));return i?(e.L=+i[0],r+i[0].length):-1}function Ire(e,t,r){var i=na.exec(t.slice(r,r+6));return i?(e.L=Math.floor(i[0]/1e3),r+i[0].length):-1}function Fre(e,t,r){var i=xre.exec(t.slice(r,r+1));return i?r+i[0].length:-1}function Nre(e,t,r){var i=na.exec(t.slice(r));return i?(e.Q=+i[0],r+i[0].length):-1}function jre(e,t,r){var i=na.exec(t.slice(r));return i?(e.s=+i[0],r+i[0].length):-1}function nk(e,t){return nr(e.getDate(),t,2)}function $re(e,t){return nr(e.getHours(),t,2)}function Bre(e,t){return nr(e.getHours()%12||12,t,2)}function zre(e,t){return nr(1+gc.count(Oi(e),e),t,3)}function d8(e,t){return nr(e.getMilliseconds(),t,3)}function qre(e,t){return d8(e,t)+"000"}function Wre(e,t){return nr(e.getMonth()+1,t,2)}function Ure(e,t){return nr(e.getMinutes(),t,2)}function Hre(e,t){return nr(e.getSeconds(),t,2)}function Vre(e){var t=e.getDay();return t===0?7:t}function Yre(e,t){return nr(bh.count(Oi(e)-1,e),t,2)}function h8(e){var t=e.getDay();return t>=4||t===0?Rl(e):Rl.ceil(e)}function Gre(e,t){return e=h8(e),nr(Rl.count(Oi(e),e)+(Oi(e).getDay()===4),t,2)}function Xre(e){return e.getDay()}function Zre(e,t){return nr(ad.count(Oi(e)-1,e),t,2)}function Kre(e,t){return nr(e.getFullYear()%100,t,2)}function Jre(e,t){return e=h8(e),nr(e.getFullYear()%100,t,2)}function Qre(e,t){return nr(e.getFullYear()%1e4,t,4)}function eae(e,t){var r=e.getDay();return e=r>=4||r===0?Rl(e):Rl.ceil(e),nr(e.getFullYear()%1e4,t,4)}function tae(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+nr(t/60|0,"0",2)+nr(t%60,"0",2)}function rk(e,t){return nr(e.getUTCDate(),t,2)}function nae(e,t){return nr(e.getUTCHours(),t,2)}function rae(e,t){return nr(e.getUTCHours()%12||12,t,2)}function aae(e,t){return nr(1+mc.count(Ai(e),e),t,3)}function p8(e,t){return nr(e.getUTCMilliseconds(),t,3)}function iae(e,t){return p8(e,t)+"000"}function oae(e,t){return nr(e.getUTCMonth()+1,t,2)}function lae(e,t){return nr(e.getUTCMinutes(),t,2)}function sae(e,t){return nr(e.getUTCSeconds(),t,2)}function uae(e){var t=e.getUTCDay();return t===0?7:t}function cae(e,t){return nr(xh.count(Ai(e)-1,e),t,2)}function g8(e){var t=e.getUTCDay();return t>=4||t===0?Ll(e):Ll.ceil(e)}function fae(e,t){return e=g8(e),nr(Ll.count(Ai(e),e)+(Ai(e).getUTCDay()===4),t,2)}function dae(e){return e.getUTCDay()}function hae(e,t){return nr(id.count(Ai(e)-1,e),t,2)}function pae(e,t){return nr(e.getUTCFullYear()%100,t,2)}function gae(e,t){return e=g8(e),nr(e.getUTCFullYear()%100,t,2)}function mae(e,t){return nr(e.getUTCFullYear()%1e4,t,4)}function vae(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Ll(e):Ll.ceil(e),nr(e.getUTCFullYear()%1e4,t,4)}function yae(){return"+0000"}function ak(){return"%"}function ik(e){return+e}function ok(e){return Math.floor(+e/1e3)}var sl,m8,v8;bae({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function bae(e){return sl=bre(e),m8=sl.format,sl.parse,v8=sl.utcFormat,sl.utcParse,sl}function xae(e){return new Date(e)}function wae(e){return e instanceof Date?+e:+new Date(+e)}function db(e,t,r,i,c,o,a,n,l,f){var s=o8(),u=s.invert,d=s.domain,h=f(".%L"),p=f(":%S"),g=f("%I:%M"),y=f("%I %p"),v=f("%a %d"),m=f("%b %d"),b=f("%B"),x=f("%Y");function _(w){return(l(w)=1?(r=1,t-1):Math.floor(r*t),c=e[i],o=e[i+1],a=i>0?e[i-1]:2*c-o,n=ir&&(o=t.slice(r,o),n[a]?n[a]+=o:n[++a]=o),(i=i[0])===(c=c[0])?n[a]?n[a]+=c:n[++a]=c:(n[++a]=null,l.push({i:a,x:fv(i,c)})),r=Xm.lastIndex;return r-1}var vb=iie;function oie(e,t,r){for(var i=-1,c=e==null?0:e.length;++i=pie&&(o=hie,a=!1,t=new sie(t));e:for(;++cvo)if(!(Math.abs(s*n-l*f)>vo)||!c)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var d=r-o,h=i-a,p=n*n+l*l,g=d*d+h*h,y=Math.sqrt(p),v=Math.sqrt(u),m=c*Math.tan((hv-Math.acos((p+u-g)/(2*y*v)))/2),b=m/v,x=m/y;Math.abs(b-1)>vo&&(this._+="L"+(e+b*f)+","+(t+b*s)),this._+="A"+c+","+c+",0,0,"+ +(s*d>f*h)+","+(this._x1=e+x*n)+","+(this._y1=t+x*l)}},arc:function(e,t,r,i,c,o){e=+e,t=+t,r=+r,o=!!o;var a=r*Math.cos(i),n=r*Math.sin(i),l=e+a,f=t+n,s=1^o,u=o?i-c:c-i;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+l+","+f:(Math.abs(this._x1-l)>vo||Math.abs(this._y1-f)>vo)&&(this._+="L"+l+","+f),r&&(u<0&&(u=u%pv+pv),u>_ie?this._+="A"+r+","+r+",0,1,"+s+","+(e-a)+","+(t-n)+"A"+r+","+r+",0,1,"+s+","+(this._x1=l)+","+(this._y1=f):u>vo&&(this._+="A"+r+","+r+",0,"+ +(u>=hv)+","+s+","+(this._x1=e+r*Math.cos(c))+","+(this._y1=t+r*Math.sin(c))))},rect:function(e,t,r,i){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +r+"v"+ +i+"h"+-r+"Z"},toString:function(){return this._}};function ua(e){return function(){return e}}var sk=1e-12;function A8(e){this._context=e}A8.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function xb(e){return new A8(e)}function P8(e){return e[0]}function D8(e){return e[1]}function E8(){var e=P8,t=D8,r=ua(!0),i=null,c=xb,o=null;function a(n){var l,f=n.length,s,u=!1,d;for(i==null&&(o=c(d=bb())),l=0;l<=f;++l)!(l=d;--h)n.point(m[h],b[h]);n.lineEnd(),n.areaEnd()}y&&(m[u]=+e(g,u,s),b[u]=+r(g,u,s),n.point(t?+t(g,u,s):m[u],i?+i(g,u,s):b[u]))}if(v)return n=null,v+""||null}function f(){return E8().defined(c).curve(a).context(o)}return l.x=function(s){return arguments.length?(e=typeof s=="function"?s:ua(+s),t=null,l):e},l.x0=function(s){return arguments.length?(e=typeof s=="function"?s:ua(+s),l):e},l.x1=function(s){return arguments.length?(t=s==null?null:typeof s=="function"?s:ua(+s),l):t},l.y=function(s){return arguments.length?(r=typeof s=="function"?s:ua(+s),i=null,l):r},l.y0=function(s){return arguments.length?(r=typeof s=="function"?s:ua(+s),l):r},l.y1=function(s){return arguments.length?(i=s==null?null:typeof s=="function"?s:ua(+s),l):i},l.lineX0=l.lineY0=function(){return f().x(e).y(r)},l.lineY1=function(){return f().x(e).y(i)},l.lineX1=function(){return f().x(t).y(r)},l.defined=function(s){return arguments.length?(c=typeof s=="function"?s:ua(!!s),l):c},l.curve=function(s){return arguments.length?(a=s,o!=null&&(n=a(o)),l):a},l.context=function(s){return arguments.length?(s==null?o=n=null:n=a(o=s),l):o},l}var uk=Array.prototype.slice;function eo(){}function ld(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Gh(e){this._context=e}Gh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ld(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ld(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function kie(e){return new Gh(e)}function R8(e){this._context=e}R8.prototype={areaStart:eo,areaEnd:eo,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:ld(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Mie(e){return new R8(e)}function L8(e){this._context=e}L8.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:ld(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Sie(e){return new L8(e)}function I8(e,t){this._basis=new Gh(e),this._beta=t}I8.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var i=e[0],c=t[0],o=e[r]-i,a=t[r]-c,n=-1,l;++n<=r;)l=n/r,this._basis.point(this._beta*e[n]+(1-this._beta)*(i+l*o),this._beta*t[n]+(1-this._beta)*(c+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const Cie=function e(t){function r(i){return t===1?new Gh(i):new I8(i,t)}return r.beta=function(i){return e(+i)},r}(.85);function sd(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function wb(e,t){this._context=e,this._k=(1-t)/6}wb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:sd(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:sd(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Oie=function e(t){function r(i){return new wb(i,t)}return r.tension=function(i){return e(+i)},r}(0);function _b(e,t){this._context=e,this._k=(1-t)/6}_b.prototype={areaStart:eo,areaEnd:eo,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:sd(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Aie=function e(t){function r(i){return new _b(i,t)}return r.tension=function(i){return e(+i)},r}(0);function Tb(e,t){this._context=e,this._k=(1-t)/6}Tb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:sd(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Pie=function e(t){function r(i){return new Tb(i,t)}return r.tension=function(i){return e(+i)},r}(0);function kb(e,t,r){var i=e._x1,c=e._y1,o=e._x2,a=e._y2;if(e._l01_a>sk){var n=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*n-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,c=(c*n-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>sk){var f=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,s=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*f+e._x1*e._l23_2a-t*e._l12_2a)/s,a=(a*f+e._y1*e._l23_2a-r*e._l12_2a)/s}e._context.bezierCurveTo(i,c,o,a,e._x2,e._y2)}function F8(e,t){this._context=e,this._alpha=t}F8.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:kb(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Die=function e(t){function r(i){return t?new F8(i,t):new wb(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function N8(e,t){this._context=e,this._alpha=t}N8.prototype={areaStart:eo,areaEnd:eo,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:kb(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Eie=function e(t){function r(i){return t?new N8(i,t):new _b(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function j8(e,t){this._context=e,this._alpha=t}j8.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:kb(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Rie=function e(t){function r(i){return t?new j8(i,t):new Tb(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function $8(e){this._context=e}$8.prototype={areaStart:eo,areaEnd:eo,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Lie(e){return new $8(e)}function ck(e){return e<0?-1:1}function fk(e,t,r){var i=e._x1-e._x0,c=t-e._x1,o=(e._y1-e._y0)/(i||c<0&&-0),a=(r-e._y1)/(c||i<0&&-0),n=(o*c+a*i)/(i+c);return(ck(o)+ck(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(n))||0}function dk(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Zm(e,t,r){var i=e._x0,c=e._y0,o=e._x1,a=e._y1,n=(o-i)/3;e._context.bezierCurveTo(i+n,c+n*t,o-n,a-n*r,o,a)}function ud(e){this._context=e}ud.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Zm(this,this._t0,dk(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Zm(this,dk(this,r=fk(this,e,t)),r);break;default:Zm(this,this._t0,r=fk(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function B8(e){this._context=new z8(e)}(B8.prototype=Object.create(ud.prototype)).point=function(e,t){ud.prototype.point.call(this,t,e)};function z8(e){this._context=e}z8.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,i,c,o){this._context.bezierCurveTo(t,e,i,r,o,c)}};function Iie(e){return new ud(e)}function Fie(e){return new B8(e)}function q8(e){this._context=e}q8.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var i=hk(e),c=hk(t),o=0,a=1;a=0;--t)c[t]=(a[t]-c[t+1])/o[t];for(o[r-1]=(e[r]+c[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function jie(e){return new Xh(e,.5)}function $ie(e){return new Xh(e,0)}function Bie(e){return new Xh(e,1)}function Il(e,t){if((a=e.length)>1)for(var r=1,i,c,o=e[t[0]],a,n=o.length;r=0;)r[t]=t;return r}function zie(e,t){return e[t]}function W8(){var e=ua([]),t=Fl,r=Il,i=zie;function c(o){var a=e.apply(this,arguments),n,l=o.length,f=a.length,s=new Array(f),u;for(n=0;n0){for(var r,i,c=0,o=e[0].length,a;c0)for(var r,i=0,c,o,a,n,l,f=e[t[0]].length;i0?(c[0]=a,c[1]=a+=o):o<0?(c[1]=n,c[0]=n+=o):(c[0]=0,c[1]=o)}function Wie(e,t){if((c=e.length)>0){for(var r=0,i=e[t[0]],c,o=i.length;r0)||!((o=(c=e[t[0]]).length)>0))){for(var r=0,i=1,c,o,a;io&&(o=c,r=t);return r}function U8(e){var t=e.map(H8);return Fl(e).sort(function(r,i){return t[r]-t[i]})}function H8(e){for(var t=0,r=-1,i=e.length,c;++rm&&(m=f),w=y*y*_,b=Math.max(m/w,w/v),b>x){y-=f;break}x=b}a.push(l={value:y,dice:h1?i:1)},r}(V8);function Kie(e,t,r,i,c){var o=e.children,a,n=o.length,l,f=new Array(n+1);for(f[0]=l=a=0;a=d-1){var m=o[u];m.x0=p,m.y0=g,m.x1=y,m.y1=v;return}for(var b=f[u],x=h/2+b,_=u+1,w=d-1;_>>1;f[k]v-g){var S=(p*M+y*T)/h;s(u,_,T,p,g,S,v),s(_,d,M,S,g,y,v)}else{var C=(g*M+v*T)/h;s(u,_,T,p,g,y,C),s(_,d,M,p,C,y,v)}}}function Jie(e,t,r,i,c){(e.depth&1?Kh:Zh)(e,t,r,i,c)}const Qie=function e(t){function r(i,c,o,a,n){if((l=i._squarify)&&l.ratio===t)for(var l,f,s,u,d=-1,h,p=l.length,g=i.value;++d1?i:1)},r}(V8);var Km=new Date,Jm=new Date;function ra(e,t,r,i){function c(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return c.floor=function(o){return e(o=new Date(+o)),o},c.ceil=function(o){return e(o=new Date(o-1)),t(o,1),e(o),o},c.round=function(o){var a=c(o),n=c.ceil(o);return o-a0))return l;do l.push(f=new Date(+o)),t(o,n),e(o);while(f=a)for(;e(a),!o(a);)a.setTime(a-1)},function(a,n){if(a>=a)if(n<0)for(;++n<=0;)for(;t(a,-1),!o(a););else for(;--n>=0;)for(;t(a,1),!o(a););})},r&&(c.count=function(o,a){return Km.setTime(+o),Jm.setTime(+a),e(Km),e(Jm),Math.floor(r(Km,Jm))},c.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?c.filter(i?function(a){return i(a)%o===0}:function(a){return c.count(0,a)%o===0}):c}),c}var Vu=ra(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Vu.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ra(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):Vu};Vu.range;var cd=1e3,Lo=6e4,fd=36e5,G8=864e5,X8=6048e5,mv=ra(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*cd)},function(e,t){return(t-e)/cd},function(e){return e.getUTCSeconds()});mv.range;var Z8=ra(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*cd)},function(e,t){e.setTime(+e+t*Lo)},function(e,t){return(t-e)/Lo},function(e){return e.getMinutes()});Z8.range;var K8=ra(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*cd-e.getMinutes()*Lo)},function(e,t){e.setTime(+e+t*fd)},function(e,t){return(t-e)/fd},function(e){return e.getHours()});K8.range;var Jh=ra(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Lo)/G8},function(e){return e.getDate()-1});Jh.range;function Zo(e){return ra(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,r){t.setDate(t.getDate()+r*7)},function(t,r){return(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Lo)/X8})}var dd=Zo(0),Yu=Zo(1),J8=Zo(2),Q8=Zo(3),Io=Zo(4),e7=Zo(5),t7=Zo(6);dd.range;Yu.range;J8.range;Q8.range;Io.range;e7.range;t7.range;var n7=ra(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});n7.range;var to=ra(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});to.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ra(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)})};to.range;var r7=ra(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Lo)},function(e,t){return(t-e)/Lo},function(e){return e.getUTCMinutes()});r7.range;var a7=ra(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*fd)},function(e,t){return(t-e)/fd},function(e){return e.getUTCHours()});a7.range;var Qh=ra(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/G8},function(e){return e.getUTCDate()-1});Qh.range;function Ko(e){return ra(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCDate(t.getUTCDate()+r*7)},function(t,r){return(r-t)/X8})}var hd=Ko(0),Gu=Ko(1),i7=Ko(2),o7=Ko(3),Fo=Ko(4),l7=Ko(5),s7=Ko(6);hd.range;Gu.range;i7.range;o7.range;Fo.range;l7.range;s7.range;var u7=ra(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});u7.range;var no=ra(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});no.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ra(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})};no.range;function Qm(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function e0(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function iu(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function eoe(e){var t=e.dateTime,r=e.date,i=e.time,c=e.periods,o=e.days,a=e.shortDays,n=e.months,l=e.shortMonths,f=ou(c),s=lu(c),u=ou(o),d=lu(o),h=ou(a),p=lu(a),g=ou(n),y=lu(n),v=ou(l),m=lu(l),b={a:A,A:z,b:B,B:$,c:null,d:bk,e:bk,f:Toe,g:Roe,G:Ioe,H:xoe,I:woe,j:_oe,L:c7,m:koe,M:Moe,p:j,q:N,Q:_k,s:Tk,S:Soe,u:Coe,U:Ooe,V:Aoe,w:Poe,W:Doe,x:null,X:null,y:Eoe,Y:Loe,Z:Foe,"%":wk},x={a:E,A:W,b:G,B:L,c:null,d:xk,e:xk,f:Boe,g:Zoe,G:Joe,H:Noe,I:joe,j:$oe,L:d7,m:zoe,M:qoe,p:q,q:H,Q:_k,s:Tk,S:Woe,u:Uoe,U:Hoe,V:Voe,w:Yoe,W:Goe,x:null,X:null,y:Xoe,Y:Koe,Z:Qoe,"%":wk},_={a:S,A:C,b:P,B:D,c:O,d:vk,e:vk,f:moe,g:mk,G:gk,H:yk,I:yk,j:doe,L:goe,m:foe,M:hoe,p:M,q:coe,Q:yoe,s:boe,S:poe,u:ioe,U:ooe,V:loe,w:aoe,W:soe,x:R,X:F,y:mk,Y:gk,Z:uoe,"%":voe};b.x=w(r,b),b.X=w(i,b),b.c=w(t,b),x.x=w(r,x),x.X=w(i,x),x.c=w(t,x);function w(V,te){return function(ee){var U=[],Q=-1,Y=0,Z=V.length,X,re,ie;for(ee instanceof Date||(ee=new Date(+ee));++Q53)return null;"w"in U||(U.w=1),"Z"in U?(Y=e0(iu(U.y,0,1)),Z=Y.getUTCDay(),Y=Z>4||Z===0?Gu.ceil(Y):Gu(Y),Y=Qh.offset(Y,(U.V-1)*7),U.y=Y.getUTCFullYear(),U.m=Y.getUTCMonth(),U.d=Y.getUTCDate()+(U.w+6)%7):(Y=Qm(iu(U.y,0,1)),Z=Y.getDay(),Y=Z>4||Z===0?Yu.ceil(Y):Yu(Y),Y=Jh.offset(Y,(U.V-1)*7),U.y=Y.getFullYear(),U.m=Y.getMonth(),U.d=Y.getDate()+(U.w+6)%7)}else("W"in U||"U"in U)&&("w"in U||(U.w="u"in U?U.u%7:"W"in U?1:0),Z="Z"in U?e0(iu(U.y,0,1)).getUTCDay():Qm(iu(U.y,0,1)).getDay(),U.m=0,U.d="W"in U?(U.w+6)%7+U.W*7-(Z+5)%7:U.w+U.U*7-(Z+6)%7);return"Z"in U?(U.H+=U.Z/100|0,U.M+=U.Z%100,e0(U)):Qm(U)}}function T(V,te,ee,U){for(var Q=0,Y=te.length,Z=ee.length,X,re;Q=Z)return-1;if(X=te.charCodeAt(Q++),X===37){if(X=te.charAt(Q++),re=_[X in pk?te.charAt(Q++):X],!re||(U=re(V,ee,U))<0)return-1}else if(X!=ee.charCodeAt(U++))return-1}return U}function M(V,te,ee){var U=f.exec(te.slice(ee));return U?(V.p=s[U[0].toLowerCase()],ee+U[0].length):-1}function S(V,te,ee){var U=h.exec(te.slice(ee));return U?(V.w=p[U[0].toLowerCase()],ee+U[0].length):-1}function C(V,te,ee){var U=u.exec(te.slice(ee));return U?(V.w=d[U[0].toLowerCase()],ee+U[0].length):-1}function P(V,te,ee){var U=v.exec(te.slice(ee));return U?(V.m=m[U[0].toLowerCase()],ee+U[0].length):-1}function D(V,te,ee){var U=g.exec(te.slice(ee));return U?(V.m=y[U[0].toLowerCase()],ee+U[0].length):-1}function O(V,te,ee){return T(V,t,te,ee)}function R(V,te,ee){return T(V,r,te,ee)}function F(V,te,ee){return T(V,i,te,ee)}function A(V){return a[V.getDay()]}function z(V){return o[V.getDay()]}function B(V){return l[V.getMonth()]}function $(V){return n[V.getMonth()]}function j(V){return c[+(V.getHours()>=12)]}function N(V){return 1+~~(V.getMonth()/3)}function E(V){return a[V.getUTCDay()]}function W(V){return o[V.getUTCDay()]}function G(V){return l[V.getUTCMonth()]}function L(V){return n[V.getUTCMonth()]}function q(V){return c[+(V.getUTCHours()>=12)]}function H(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var te=w(V+="",b);return te.toString=function(){return V},te},parse:function(V){var te=k(V+="",!1);return te.toString=function(){return V},te},utcFormat:function(V){var te=w(V+="",x);return te.toString=function(){return V},te},utcParse:function(V){var te=k(V+="",!0);return te.toString=function(){return V},te}}}var pk={"-":"",_:" ",0:"0"},aa=/^\s*\d+/,toe=/^%/,noe=/[\\^$*+?|[\]().{}]/g;function rr(e,t,r){var i=e<0?"-":"",c=(i?-e:e)+"",o=c.length;return i+(o68?1900:2e3),r+i[0].length):-1}function uoe(e,t,r){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),r+i[0].length):-1}function coe(e,t,r){var i=aa.exec(t.slice(r,r+1));return i?(e.q=i[0]*3-3,r+i[0].length):-1}function foe(e,t,r){var i=aa.exec(t.slice(r,r+2));return i?(e.m=i[0]-1,r+i[0].length):-1}function vk(e,t,r){var i=aa.exec(t.slice(r,r+2));return i?(e.d=+i[0],r+i[0].length):-1}function doe(e,t,r){var i=aa.exec(t.slice(r,r+3));return i?(e.m=0,e.d=+i[0],r+i[0].length):-1}function yk(e,t,r){var i=aa.exec(t.slice(r,r+2));return i?(e.H=+i[0],r+i[0].length):-1}function hoe(e,t,r){var i=aa.exec(t.slice(r,r+2));return i?(e.M=+i[0],r+i[0].length):-1}function poe(e,t,r){var i=aa.exec(t.slice(r,r+2));return i?(e.S=+i[0],r+i[0].length):-1}function goe(e,t,r){var i=aa.exec(t.slice(r,r+3));return i?(e.L=+i[0],r+i[0].length):-1}function moe(e,t,r){var i=aa.exec(t.slice(r,r+6));return i?(e.L=Math.floor(i[0]/1e3),r+i[0].length):-1}function voe(e,t,r){var i=toe.exec(t.slice(r,r+1));return i?r+i[0].length:-1}function yoe(e,t,r){var i=aa.exec(t.slice(r));return i?(e.Q=+i[0],r+i[0].length):-1}function boe(e,t,r){var i=aa.exec(t.slice(r));return i?(e.s=+i[0],r+i[0].length):-1}function bk(e,t){return rr(e.getDate(),t,2)}function xoe(e,t){return rr(e.getHours(),t,2)}function woe(e,t){return rr(e.getHours()%12||12,t,2)}function _oe(e,t){return rr(1+Jh.count(to(e),e),t,3)}function c7(e,t){return rr(e.getMilliseconds(),t,3)}function Toe(e,t){return c7(e,t)+"000"}function koe(e,t){return rr(e.getMonth()+1,t,2)}function Moe(e,t){return rr(e.getMinutes(),t,2)}function Soe(e,t){return rr(e.getSeconds(),t,2)}function Coe(e){var t=e.getDay();return t===0?7:t}function Ooe(e,t){return rr(dd.count(to(e)-1,e),t,2)}function f7(e){var t=e.getDay();return t>=4||t===0?Io(e):Io.ceil(e)}function Aoe(e,t){return e=f7(e),rr(Io.count(to(e),e)+(to(e).getDay()===4),t,2)}function Poe(e){return e.getDay()}function Doe(e,t){return rr(Yu.count(to(e)-1,e),t,2)}function Eoe(e,t){return rr(e.getFullYear()%100,t,2)}function Roe(e,t){return e=f7(e),rr(e.getFullYear()%100,t,2)}function Loe(e,t){return rr(e.getFullYear()%1e4,t,4)}function Ioe(e,t){var r=e.getDay();return e=r>=4||r===0?Io(e):Io.ceil(e),rr(e.getFullYear()%1e4,t,4)}function Foe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+rr(t/60|0,"0",2)+rr(t%60,"0",2)}function xk(e,t){return rr(e.getUTCDate(),t,2)}function Noe(e,t){return rr(e.getUTCHours(),t,2)}function joe(e,t){return rr(e.getUTCHours()%12||12,t,2)}function $oe(e,t){return rr(1+Qh.count(no(e),e),t,3)}function d7(e,t){return rr(e.getUTCMilliseconds(),t,3)}function Boe(e,t){return d7(e,t)+"000"}function zoe(e,t){return rr(e.getUTCMonth()+1,t,2)}function qoe(e,t){return rr(e.getUTCMinutes(),t,2)}function Woe(e,t){return rr(e.getUTCSeconds(),t,2)}function Uoe(e){var t=e.getUTCDay();return t===0?7:t}function Hoe(e,t){return rr(hd.count(no(e)-1,e),t,2)}function h7(e){var t=e.getUTCDay();return t>=4||t===0?Fo(e):Fo.ceil(e)}function Voe(e,t){return e=h7(e),rr(Fo.count(no(e),e)+(no(e).getUTCDay()===4),t,2)}function Yoe(e){return e.getUTCDay()}function Goe(e,t){return rr(Gu.count(no(e)-1,e),t,2)}function Xoe(e,t){return rr(e.getUTCFullYear()%100,t,2)}function Zoe(e,t){return e=h7(e),rr(e.getUTCFullYear()%100,t,2)}function Koe(e,t){return rr(e.getUTCFullYear()%1e4,t,4)}function Joe(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Fo(e):Fo.ceil(e),rr(e.getUTCFullYear()%1e4,t,4)}function Qoe(){return"+0000"}function wk(){return"%"}function _k(e){return+e}function Tk(e){return Math.floor(+e/1e3)}var ul,Sb,p7,g7;ele({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function ele(e){return ul=eoe(e),Sb=ul.format,p7=ul.parse,ul.utcFormat,g7=ul.utcParse,ul}var su={},uu={},kk;function tle(){if(kk)return uu;kk=1,uu.__esModule=!0,uu.default=void 0;var e=function(i){if(typeof i=="string")return i;if(i)return i.displayName||i.name||"Component"},t=e;return uu.default=t,uu}var Mk;function os(){if(Mk)return su;Mk=1;var e=Rn;su.__esModule=!0,su.default=void 0;var t=e(tle()),r=function(o,a){return a+"("+(0,t.default)(o)+")"},i=r;return su.default=i,su}var Fi={},cu={},Sk;function m7(){if(Sk)return cu;Sk=1,cu.__esModule=!0,cu.default=void 0;var e=function(i,c){return function(o){return o[i]=c,o}},t=e;return cu.default=t,cu}var nle=Rn;Fi.__esModule=!0;var Cb=Fi.default=void 0,rle=nle(m7()),ale=function(t){return(0,rle.default)("displayName",t)},ile=ale;Cb=Fi.default=ile;var fu={},Ck;function ole(){if(Ck)return fu;Ck=1;var e=Rn;fu.__esModule=!0,fu.default=void 0;var t=$e;e(Fi),e(os());var r=function(o){return function(a){var n=(0,t.createFactory)(a),l=function(s){return n(o(s))};return l}},i=r;return fu.default=i,fu}var ep=Rn;ep(hr());ep(os());ep(Fi);ep(ole());function lle(e,t){for(var r=-1,i=e==null?0:e.length;++rn))return!1;var f=o.get(e),s=o.get(t);if(f&&s)return f==t&&s==e;var u=-1,d=!0,h=r&hle?new ule:void 0;for(o.set(e,t),o.set(t,e);++u1?"& ":"")+t[i],t=t.join(r>2?", ":" "),e.replace(fce,`{ +https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=A7,t.componentWillReceiveProps=P7),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=D7;var n=t.componentDidUpdate;t.componentDidUpdate=function(f,s,u){var d=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:u;n.call(this,f,s,d)}}return e}const aue=Object.freeze(Object.defineProperty({__proto__:null,polyfill:rue},Symbol.toStringTag,{value:"Module"})),iue=qn(aue);var du={},Vk;function oue(){if(Vk)return du;Vk=1,du.__esModule=!0,du.default=void 0;var e=function(i,c){for(var o={},a=0;a1?"& ":"")+t[i],t=t.join(r>2?", ":" "),e.replace(yce,`{ /* [wrapped with `+t+`] */ -`)}var hce=dce;function pce(e,t){for(var r=-1,i=e==null?0:e.length;++r1&&g.reverse(),s&&l0&&r(n)?t>1?U8(n,t-1,r,i,u):Wde(u,n):i||(u[u.length]=n)}return u}var Db=U8,Hde=Db;function Vde(e){var t=e==null?0:e.length;return t?Hde(e,1):[]}var Yde=Vde,Gde=Yde,Xde=z6,Zde=W1;function Kde(e){return Zde(Xde(e,void 0,Gde),e+"")}var H8=Kde,Jde=jde,Qde=H8,ehe=Qde(function(e,t){return e==null?{}:Jde(e,t)}),the=ehe;const nhe=ir(the);var Mo=function(){};function Fo(e){for(var t=1;t2&&arguments[2]!==void 0?arguments[2]:{};return $e.useMemo(function(){var u=Ahe({},xv,i);return{margin:u,innerWidth:t-u.left-u.right,innerHeight:r-u.top-u.bottom,outerWidth:t,outerHeight:r}},[t,r,i.top,i.right,i.bottom,i.left])},Dhe=function(t){return $e.useMemo(function(){return G8(Y8,t)},[t])},Ehe=function(t){return typeof t=="function"?t:typeof t=="string"?t.indexOf("time:")===0?wb(t.slice("5")):rs(t):function(r){return r}},Vu=function(t){return $e.useMemo(function(){return Ehe(t)},[t])},Rb=$e.createContext(),Rhe={},K8=function(t){var r=t.theme,i=r===void 0?Rhe:r,u=t.children,o=Dhe(i);return et.createElement(Rb.Provider,{value:o},u)};K8.propTypes={children:oe.node.isRequired,theme:oe.object};var Hr=function(){return $e.useContext(Rb)};function hf(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?hf=function(r){return typeof r}:hf=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},hf(e)}function wv(){return wv=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function Fhe(e,t){if(e==null)return{};var r={},i=Object.keys(e),u,o;for(o=0;o=0)&&(r[u]=e[u]);return r}function Nhe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jhe(e,t){for(var r=0;r"u"||l[f].value!==this.newInters[f].value)&&(this.newInters[f]=l[f],this.stepValues[f]=this.currentStepValues[f]+1,this.stepInterpolators[f]=this.newInters[f].interpolator(this.oldValues[f],this.newInters[f].value)),l[f]=Pn(this.stepValues[f],this.newInters[f].config));return et.createElement(Si,wv({},n,{style:l}),function(s){var c={};for(var d in s)if(i.stepValues[d]){i.currentStepValues[d]=s[d];var h=i.currentStepValues[d]-i.stepValues[d]+1;i.oldValues[d]=c[d]=i.stepInterpolators[d](h)}return a(Lhe({},s,c))})}}]),t}($e.PureComponent);bo(op,"propTypes",{children:oe.func.isRequired,style:oe.func.isRequired});var J8=$e.createContext(),lp=function(t){var r=t.children,i=t.animate,u=t.stiffness,o=t.damping,a=$e.useMemo(function(){return{animate:i,springConfig:{stiffness:u,damping:o}}},[i,u,o]);return et.createElement(J8.Provider,{value:a},r)};lp.propTypes={children:oe.node.isRequired,animate:oe.bool.isRequired,stiffness:oe.number.isRequired,damping:oe.number.isRequired};lp.defaultProps={animate:!0,stiffness:90,damping:15};var Oa=function(){return $e.useContext(J8)};function Whe(e){for(var t=1;t0&&a>0;return et.createElement(Nu,{bounds:!0,onResize:function(f){i.setState({dimensions:f.bounds})}},function(l){var f=l.measureRef;return et.createElement("div",{ref:f,style:{width:"100%",height:"100%"}},n&&i.props.children({width:o,height:a}))})}}]),t}($e.Component);eA(up,"propTypes",{children:oe.func.isRequired});var tA=function(t){var r=t.id,i=t.colors;return et.createElement("linearGradient",{id:r,x1:0,x2:0,y1:0,y2:1},i.map(function(u){var o=u.offset,a=u.color,n=u.opacity;return et.createElement("stop",{key:o,offset:"".concat(o,"%"),stopColor:a,stopOpacity:n!==void 0?n:1})}))};tA.propTypes={id:oe.string.isRequired,colors:oe.arrayOf(oe.shape({offset:oe.number.isRequired,color:oe.string.isRequired})).isRequired};var nA={linearGradient:tA},cp=$e.memo(function(e){var t=e.id,r=e.background,i=e.color,u=e.size,o=e.padding,a=e.stagger,n=u+o,l=u/2,f=o/2;return a===!0&&(n=u*2+o*2),et.createElement("pattern",{id:t,width:n,height:n,patternUnits:"userSpaceOnUse"},et.createElement("rect",{width:n,height:n,fill:r}),et.createElement("circle",{cx:f+l,cy:f+l,r:l,fill:i}),a&&et.createElement("circle",{cx:o*1.5+u+l,cy:o*1.5+u+l,r:l,fill:i}))});cp.displayName="PatternDots";cp.propTypes={id:oe.string.isRequired,color:oe.string.isRequired,background:oe.string.isRequired,size:oe.number.isRequired,padding:oe.number.isRequired,stagger:oe.bool.isRequired};cp.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var Sv=function(t){return t*Math.PI/180},npe=function(t){return 180*t/Math.PI},rpe=function(t,r){return{x:Math.cos(t)*r,y:Math.sin(t)*r}},ape=function(t){var r=t%360;return r<0&&(r+=360),r},ipe={svg:{align:{left:"start",center:"middle",right:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},fp=$e.memo(function(e){var t=e.id,r=e.spacing,i=e.rotation,u=e.background,o=e.color,a=e.lineWidth,n=Math.round(i)%360,l=Math.abs(r);n>180?n=n-360:n>90?n=n-180:n<-180?n=n+360:n<-90&&(n=n+180);var f=l,s=l,c;return n===0?c=` +`)}var xce=bce;function wce(e,t){for(var r=-1,i=e==null?0:e.length;++r1&&m.reverse(),s&&l0&&r(n)?t>1?X7(n,t-1,r,i,c):Zde(c,n):i||(c[c.length]=n)}return c}var Fb=X7,Jde=Fb;function Qde(e){var t=e==null?0:e.length;return t?Jde(e,1):[]}var ehe=Qde,the=ehe,nhe=VC,rhe=G1;function ahe(e){return rhe(nhe(e,void 0,the),e+"")}var Z7=ahe,ihe=Hde,ohe=Z7,lhe=ohe(function(e,t){return e==null?{}:ihe(e,t)}),she=lhe;const uhe=ir(she);var So=function(){};function No(e){for(var t=1;t2&&arguments[2]!==void 0?arguments[2]:{};return $e.useMemo(function(){var c=Fhe({},Tv,i);return{margin:c,innerWidth:t-c.left-c.right,innerHeight:r-c.top-c.bottom,outerWidth:t,outerHeight:r}},[t,r,i.top,i.right,i.bottom,i.left])},jhe=function(t){return $e.useMemo(function(){return Q7(J7,t)},[t])},$he=function(t){return typeof t=="function"?t:typeof t=="string"?t.indexOf("time:")===0?Sb(t.slice("5")):is(t):function(r){return r}},Xu=function(t){return $e.useMemo(function(){return $he(t)},[t])},jb=$e.createContext(),Bhe={},nO=function(t){var r=t.theme,i=r===void 0?Bhe:r,c=t.children,o=jhe(i);return et.createElement(jb.Provider,{value:o},c)};nO.propTypes={children:oe.node.isRequired,theme:oe.object};var Hr=function(){return $e.useContext(jb)};function mf(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?mf=function(r){return typeof r}:mf=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},mf(e)}function kv(){return kv=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function Whe(e,t){if(e==null)return{};var r={},i=Object.keys(e),c,o;for(o=0;o=0)&&(r[c]=e[c]);return r}function Uhe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hhe(e,t){for(var r=0;r"u"||l[f].value!==this.newInters[f].value)&&(this.newInters[f]=l[f],this.stepValues[f]=this.currentStepValues[f]+1,this.stepInterpolators[f]=this.newInters[f].interpolator(this.oldValues[f],this.newInters[f].value)),l[f]=An(this.stepValues[f],this.newInters[f].config));return et.createElement(Ci,kv({},n,{style:l}),function(s){var u={};for(var d in s)if(i.stepValues[d]){i.currentStepValues[d]=s[d];var h=i.currentStepValues[d]-i.stepValues[d]+1;i.oldValues[d]=u[d]=i.stepInterpolators[d](h)}return a(zhe({},s,u))})}}]),t}($e.PureComponent);xo(lp,"propTypes",{children:oe.func.isRequired,style:oe.func.isRequired});var rO=$e.createContext(),sp=function(t){var r=t.children,i=t.animate,c=t.stiffness,o=t.damping,a=$e.useMemo(function(){return{animate:i,springConfig:{stiffness:c,damping:o}}},[i,c,o]);return et.createElement(rO.Provider,{value:a},r)};sp.propTypes={children:oe.node.isRequired,animate:oe.bool.isRequired,stiffness:oe.number.isRequired,damping:oe.number.isRequired};sp.defaultProps={animate:!0,stiffness:90,damping:15};var Aa=function(){return $e.useContext(rO)};function Zhe(e){for(var t=1;t0&&a>0;return et.createElement(Bu,{bounds:!0,onResize:function(f){i.setState({dimensions:f.bounds})}},function(l){var f=l.measureRef;return et.createElement("div",{ref:f,style:{width:"100%",height:"100%"}},n&&i.props.children({width:o,height:a}))})}}]),t}($e.Component);iO(cp,"propTypes",{children:oe.func.isRequired});var oO=function(t){var r=t.id,i=t.colors;return et.createElement("linearGradient",{id:r,x1:0,x2:0,y1:0,y2:1},i.map(function(c){var o=c.offset,a=c.color,n=c.opacity;return et.createElement("stop",{key:o,offset:"".concat(o,"%"),stopColor:a,stopOpacity:n!==void 0?n:1})}))};oO.propTypes={id:oe.string.isRequired,colors:oe.arrayOf(oe.shape({offset:oe.number.isRequired,color:oe.string.isRequired})).isRequired};var lO={linearGradient:oO},fp=$e.memo(function(e){var t=e.id,r=e.background,i=e.color,c=e.size,o=e.padding,a=e.stagger,n=c+o,l=c/2,f=o/2;return a===!0&&(n=c*2+o*2),et.createElement("pattern",{id:t,width:n,height:n,patternUnits:"userSpaceOnUse"},et.createElement("rect",{width:n,height:n,fill:r}),et.createElement("circle",{cx:f+l,cy:f+l,r:l,fill:i}),a&&et.createElement("circle",{cx:o*1.5+c+l,cy:o*1.5+c+l,r:l,fill:i}))});fp.displayName="PatternDots";fp.propTypes={id:oe.string.isRequired,color:oe.string.isRequired,background:oe.string.isRequired,size:oe.number.isRequired,padding:oe.number.isRequired,stagger:oe.bool.isRequired};fp.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var Av=function(t){return t*Math.PI/180},upe=function(t){return 180*t/Math.PI},cpe=function(t,r){return{x:Math.cos(t)*r,y:Math.sin(t)*r}},fpe=function(t){var r=t%360;return r<0&&(r+=360),r},dpe={svg:{align:{left:"start",center:"middle",right:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},dp=$e.memo(function(e){var t=e.id,r=e.spacing,i=e.rotation,c=e.background,o=e.color,a=e.lineWidth,n=Math.round(i)%360,l=Math.abs(r);n>180?n=n-360:n>90?n=n-180:n<-180?n=n+360:n<-90&&(n=n+180);var f=l,s=l,u;return n===0?u=` M 0 0 L `.concat(f,` 0 M 0 `).concat(s," L ").concat(f," ").concat(s,` - `):n===90?c=` + `):n===90?u=` M 0 0 L 0 `.concat(s,` M `).concat(f," 0 L ").concat(f," ").concat(s,` - `):(f=Math.abs(l/Math.sin(Sv(n))),s=l/Math.sin(Sv(90-n)),n>0?c=` + `):(f=Math.abs(l/Math.sin(Av(n))),s=l/Math.sin(Av(90-n)),n>0?u=` M 0 `.concat(-s," L ").concat(f*2," ").concat(s,` M `).concat(-f," ").concat(-s," L ").concat(f," ").concat(s,` M `).concat(-f," 0 L ").concat(f," ").concat(s*2,` - `):c=` + `):u=` M `.concat(-f," ").concat(s," L ").concat(f," ").concat(-s,` M `).concat(-f," ").concat(s*2," L ").concat(f*2," ").concat(-s,` M 0 `).concat(s*2," L ").concat(f*2,` 0 - `)),et.createElement("pattern",{id:t,width:f,height:s,patternUnits:"userSpaceOnUse"},et.createElement("rect",{width:f,height:s,fill:u,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),et.createElement("path",{d:c,strokeWidth:a,stroke:o,strokeLinecap:"square"}))});fp.displayName="PatternLines";fp.propTypes={id:oe.string.isRequired,spacing:oe.number.isRequired,rotation:oe.number.isRequired,background:oe.string.isRequired,color:oe.string.isRequired,lineWidth:oe.number.isRequired};fp.defaultProps={spacing:5,rotation:0,color:"#000000",background:"#ffffff",lineWidth:2};var dp=$e.memo(function(e){var t=e.id,r=e.background,i=e.color,u=e.size,o=e.padding,a=e.stagger,n=u+o,l=o/2;return a===!0&&(n=u*2+o*2),et.createElement("pattern",{id:t,width:n,height:n,patternUnits:"userSpaceOnUse"},et.createElement("rect",{width:n,height:n,fill:r}),et.createElement("rect",{x:l,y:l,width:u,height:u,fill:i}),a&&et.createElement("rect",{x:o*1.5+u,y:o*1.5+u,width:u,height:u,fill:i}))});dp.displayName="PatternSquares";dp.propTypes={id:oe.string.isRequired,color:oe.string.isRequired,background:oe.string.isRequired,size:oe.number.isRequired,padding:oe.number.isRequired,stagger:oe.bool.isRequired};dp.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var rA={patternDots:cp,patternLines:fp,patternSquares:dp};function ope(e,t){if(e==null)return{};var r=lpe(e,t),i,u;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(u=0;u=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function lpe(e,t){if(e==null)return{};var r={},i=Object.keys(e),u,o;for(o=0;o=0)&&(r[u]=e[u]);return r}function aA(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{},t=e.srcKey,r=t===void 0?"theme":t,i=e.destKey,u=i===void 0?"theme":i;return Ko(tp(mM({},r,oe.object)),pa([r],function(o){return mM({},u,G8(Y8,o[r]))}))};function gf(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?gf=function(r){return typeof r}:gf=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},gf(e)}function mpe(e,t){if(e==null)return{};var r=vpe(e,t),i,u;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(u=0;u=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function vpe(e,t){if(e==null)return{};var r={},i=Object.keys(e),u,o;for(o=0;o=0)&&(r[u]=e[u]);return r}function ype(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bpe(e,t){for(var r=0;r3&&arguments[3]!==void 0?arguments[3]:{},o=u.dataKey,a=u.colorKey,n=a===void 0?"color":a,l=u.targetKey,f=l===void 0?"fill":l,s=[],c={};return t.length&&r.length&&(s=Spe(t),r.forEach(function(d){for(var h=function(v){var g=i[v],b=g.id,x=g.match;if(Epe(x,d,o)){var _=t.find(function(O){var R=O.id;return R===b});if(_){if(Dpe.includes(_.type))if(_.background==="inherit"||_.color==="inherit"){var w=Zi(d,n),k=_.background,T=_.color,M=b;_.background==="inherit"&&(M="".concat(M,".bg.").concat(w),k=w),_.color==="inherit"&&(M="".concat(M,".fg.").concat(w),T=w),_o(d,f,"url(#".concat(M,")")),c[M]||(s.push(o0({},_,{id:M,background:k,color:T})),c[M]=1)}else _o(d,f,"url(#".concat(b,")"));else if(Ppe.includes(_.type)){var S=_.colors.map(function(O){var R=O.color;return R});if(S.includes("inherit")){var C=Zi(d,n),P=b,D=o0({},_,{colors:_.colors.map(function(O,R){return O.color!=="inherit"?O:(P="".concat(P,".").concat(R,".").concat(C),o0({},O,{color:O.color==="inherit"?C:O.color}))})});D.id=P,_o(d,f,"url(#".concat(P,")")),c[P]||(s.push(D),c[P]=1)}else _o(d,f,"url(#".concat(b,")"))}}return"break"}},p=0;p0?(v=d.align.right,g=d.baseline.center):(u==="after"&&l>0||u==="before"&&l<0)&&(v=d.align.left,g=d.baseline.center)):(y=function(_){return{x:0,y:h(_)}},p.lineX=a*(u==="after"?1:-1),m.textX=(a+n)*(u==="after"?1:-1),u==="after"?v=d.align.left:v=d.align.right);var b=c.map(function(x){return jpe({key:x,value:x},y(x),p,m)});return{ticks:b,textAlign:v,textBaseline:g}},vA=function(t,r){if(!t||typeof t=="function")return t;if(r.type==="time"){var i=wb(t);return function(u){return i(new Date(u))}}return rs(t)},Dv=function(t){var r=t.width,i=t.height,u=t.scale,o=t.axis,a=t.values,n=Array.isArray(a)?a:void 0,l=pp(a)?a:void 0,f=n||gA(u,l),s=u.bandwidth?hA(u):u,c;return o==="x"?c=f.map(function(d){return{key:"".concat(d),x1:s(d),x2:s(d),y1:0,y2:i}}):o==="y"&&(c=f.map(function(d){return{key:"".concat(d),x1:0,x2:r,y1:s(d),y2:s(d)}})),c},yA={ticksPosition:oe.oneOf(["before","after"]),tickValues:oe.oneOfType([oe.number,oe.arrayOf(oe.oneOfType([oe.number,oe.string,oe.instanceOf(Date)])),oe.string]),tickSize:oe.number,tickPadding:oe.number,tickRotation:oe.number,format:oe.oneOfType([oe.func,oe.string]),renderTick:oe.func,legend:oe.node,legendPosition:oe.oneOf(["start","middle","end"]),legendOffset:oe.number},ga=oe.shape(yA);function Ev(){return Ev=Object.assign||function(e){for(var t=1;t0&&(t.lineWidth=T.axis.domain.line.strokeWidth,t.lineCap="square",t.strokeStyle=T.axis.domain.line.stroke,t.beginPath(),t.moveTo(0,0),t.lineTo(i==="x"?f:0,i==="x"?0:f),t.stroke()),S.forEach(function(A){T.axis.ticks.line.strokeWidth>0&&(t.lineWidth=T.axis.ticks.line.strokeWidth,t.lineCap="square",t.strokeStyle=T.axis.ticks.line.stroke,t.beginPath(),t.moveTo(A.x,A.y),t.lineTo(A.x+A.lineX,A.y+A.lineY),t.stroke());var z=g!==void 0?g(A.value):A.value;t.save(),t.translate(A.x+A.textX,A.y+A.textY),t.rotate(bM(v)),t.fillStyle=T.axis.ticks.text.fill,t.fillText(z,0,0),t.restore()}),b!==void 0){var D=0,O=0,R=0,F;i==="y"?(R=-90,D=k,_==="start"?(F="start",O=f):_==="middle"?(F="center",O=f/2):_==="end"&&(F="end")):(O=k,_==="start"?F="start":_==="middle"?(F="center",D=f/2):_==="end"&&(F="end",D=f)),t.translate(D,O),t.rotate(bM(R)),t.font="".concat(T.axis.legend.text.fontWeight?"".concat(T.axis.legend.text.fontWeight," "):"").concat(T.axis.legend.text.fontSize,"px ").concat(T.axis.legend.text.fontFamily),t.fillStyle=T.axis.legend.text.fill,t.textAlign=F,t.textBaseline="middle",t.fillText(b,0,0)}t.restore()},Jpe=["top","right","bottom","left"],Wb=function(t,r){var i=r.xScale,u=r.yScale,o=r.width,a=r.height,n=r.top,l=r.right,f=r.bottom,s=r.left,c=r.theme,d={top:n,right:l,bottom:f,left:s};Jpe.forEach(function(h){var p=d[h];if(!p)return null;var m=h==="top"||h==="bottom",y=h==="top"||h==="left"?"before":"after",v=m?i:u,g=vA(p.format,v);Kpe(t,Xpe({},p,{axis:m?"x":"y",x:h==="right"?o:0,y:h==="bottom"?a:0,scale:v,format:g,length:m?o:a,ticksPosition:y,theme:c}))})},Il=function(t,r){var i=r.width,u=r.height,o=r.scale,a=r.axis,n=r.values,l=Dv({width:i,height:u,scale:o,axis:a,values:n});l.forEach(function(f){t.beginPath(),t.moveTo(f.x1,f.y1),t.lineTo(f.x2,f.y2),t.stroke()})},gp="row",mp="column",Ub="top",Hb="top-right",Vb="right",Yb="bottom-right",Gb="bottom",Xb="bottom-left",Zb="left",_A="top-left",Kb="center",vp="left-to-right",yp="right-to-left",bp="top-to-bottom",xp="bottom-to-top";function Qpe(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function ppe(e,t){if(e==null)return{};var r={},i=Object.keys(e),c,o;for(o=0;o=0)&&(r[c]=e[c]);return r}function uO(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{},t=e.srcKey,r=t===void 0?"theme":t,i=e.destKey,c=i===void 0?"theme":i;return Jo(np(xM({},r,oe.object)),ha([r],function(o){return xM({},c,Q7(J7,o[r]))}))};function yf(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?yf=function(r){return typeof r}:yf=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},yf(e)}function Tpe(e,t){if(e==null)return{};var r=kpe(e,t),i,c;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(c=0;c=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function kpe(e,t){if(e==null)return{};var r={},i=Object.keys(e),c,o;for(o=0;o=0)&&(r[c]=e[c]);return r}function Mpe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Spe(e,t){for(var r=0;r3&&arguments[3]!==void 0?arguments[3]:{},o=c.dataKey,a=c.colorKey,n=a===void 0?"color":a,l=c.targetKey,f=l===void 0?"fill":l,s=[],u={};return t.length&&r.length&&(s=Rpe(t),r.forEach(function(d){for(var h=function(v){var m=i[v],b=m.id,x=m.match;if($pe(x,d,o)){var _=t.find(function(O){var R=O.id;return R===b});if(_){if(jpe.includes(_.type))if(_.background==="inherit"||_.color==="inherit"){var w=Ki(d,n),k=_.background,T=_.color,M=b;_.background==="inherit"&&(M="".concat(M,".bg.").concat(w),k=w),_.color==="inherit"&&(M="".concat(M,".fg.").concat(w),T=w),To(d,f,"url(#".concat(M,")")),u[M]||(s.push(u0({},_,{id:M,background:k,color:T})),u[M]=1)}else To(d,f,"url(#".concat(b,")"));else if(Npe.includes(_.type)){var S=_.colors.map(function(O){var R=O.color;return R});if(S.includes("inherit")){var C=Ki(d,n),P=b,D=u0({},_,{colors:_.colors.map(function(O,R){return O.color!=="inherit"?O:(P="".concat(P,".").concat(R,".").concat(C),u0({},O,{color:O.color==="inherit"?C:O.color}))})});D.id=P,To(d,f,"url(#".concat(P,")")),u[P]||(s.push(D),u[P]=1)}else To(d,f,"url(#".concat(b,")"))}}return"break"}},p=0;p0?(v=d.align.right,m=d.baseline.center):(c==="after"&&l>0||c==="before"&&l<0)&&(v=d.align.left,m=d.baseline.center)):(y=function(_){return{x:0,y:h(_)}},p.lineX=a*(c==="after"?1:-1),g.textX=(a+n)*(c==="after"?1:-1),c==="after"?v=d.align.left:v=d.align.right);var b=u.map(function(x){return Hpe({key:x,value:x},y(x),p,g)});return{ticks:b,textAlign:v,textBaseline:m}},_O=function(t,r){if(!t||typeof t=="function")return t;if(r.type==="time"){var i=Sb(t);return function(c){return i(new Date(c))}}return is(t)},Lv=function(t){var r=t.width,i=t.height,c=t.scale,o=t.axis,a=t.values,n=Array.isArray(a)?a:void 0,l=gp(a)?a:void 0,f=n||xO(c,l),s=c.bandwidth?yO(c):c,u;return o==="x"?u=f.map(function(d){return{key:"".concat(d),x1:s(d),x2:s(d),y1:0,y2:i}}):o==="y"&&(u=f.map(function(d){return{key:"".concat(d),x1:0,x2:r,y1:s(d),y2:s(d)}})),u},TO={ticksPosition:oe.oneOf(["before","after"]),tickValues:oe.oneOfType([oe.number,oe.arrayOf(oe.oneOfType([oe.number,oe.string,oe.instanceOf(Date)])),oe.string]),tickSize:oe.number,tickPadding:oe.number,tickRotation:oe.number,format:oe.oneOfType([oe.func,oe.string]),renderTick:oe.func,legend:oe.node,legendPosition:oe.oneOf(["start","middle","end"]),legendOffset:oe.number},pa=oe.shape(TO);function Iv(){return Iv=Object.assign||function(e){for(var t=1;t0&&(t.lineWidth=T.axis.domain.line.strokeWidth,t.lineCap="square",t.strokeStyle=T.axis.domain.line.stroke,t.beginPath(),t.moveTo(0,0),t.lineTo(i==="x"?f:0,i==="x"?0:f),t.stroke()),S.forEach(function(A){T.axis.ticks.line.strokeWidth>0&&(t.lineWidth=T.axis.ticks.line.strokeWidth,t.lineCap="square",t.strokeStyle=T.axis.ticks.line.stroke,t.beginPath(),t.moveTo(A.x,A.y),t.lineTo(A.x+A.lineX,A.y+A.lineY),t.stroke());var z=m!==void 0?m(A.value):A.value;t.save(),t.translate(A.x+A.textX,A.y+A.textY),t.rotate(TM(v)),t.fillStyle=T.axis.ticks.text.fill,t.fillText(z,0,0),t.restore()}),b!==void 0){var D=0,O=0,R=0,F;i==="y"?(R=-90,D=k,_==="start"?(F="start",O=f):_==="middle"?(F="center",O=f/2):_==="end"&&(F="end")):(O=k,_==="start"?F="start":_==="middle"?(F="center",D=f/2):_==="end"&&(F="end",D=f)),t.translate(D,O),t.rotate(TM(R)),t.font="".concat(T.axis.legend.text.fontWeight?"".concat(T.axis.legend.text.fontWeight," "):"").concat(T.axis.legend.text.fontSize,"px ").concat(T.axis.legend.text.fontFamily),t.fillStyle=T.axis.legend.text.fill,t.textAlign=F,t.textBaseline="middle",t.fillText(b,0,0)}t.restore()},ige=["top","right","bottom","left"],Gb=function(t,r){var i=r.xScale,c=r.yScale,o=r.width,a=r.height,n=r.top,l=r.right,f=r.bottom,s=r.left,u=r.theme,d={top:n,right:l,bottom:f,left:s};ige.forEach(function(h){var p=d[h];if(!p)return null;var g=h==="top"||h==="bottom",y=h==="top"||h==="left"?"before":"after",v=g?i:c,m=_O(p.format,v);age(t,nge({},p,{axis:g?"x":"y",x:h==="right"?o:0,y:h==="bottom"?a:0,scale:v,format:m,length:g?o:a,ticksPosition:y,theme:u}))})},Nl=function(t,r){var i=r.width,c=r.height,o=r.scale,a=r.axis,n=r.values,l=Lv({width:i,height:c,scale:o,axis:a,values:n});l.forEach(function(f){t.beginPath(),t.moveTo(f.x1,f.y1),t.lineTo(f.x2,f.y2),t.stroke()})},mp="row",vp="column",Xb="top",Zb="top-right",Kb="right",Jb="bottom-right",Qb="bottom",ex="bottom-left",tx="left",CO="top-left",nx="center",yp="left-to-right",bp="right-to-left",xp="top-to-bottom",wp="bottom-to-top";function oge(e){for(var t=1;t0){var E=x.filter(function(G){var L=G.on;return L==="hover"}),W=E.reduce(function(G,L){return xf({},G,L.style)},{});T(W)}g!==void 0&&g(a,N)},[g,a,x]),P=$e.useCallback(function(){if(x.length>0){var N=x.filter(function(W){var G=W.on;return G!=="hover"}),E=N.reduce(function(W,G){return xf({},W,G.style)},{});T(E)}b!==void 0&&b(a,event)},[b,a,x]),D=kA({direction:n,justify:l,symbolSize:k.symbolSize||h,symbolSpacing:p,width:u,height:o}),O=D.symbolX,R=D.symbolY,F=D.labelX,A=D.labelY,z=D.labelAnchor,B=D.labelAlignment,$=[v,g,b].some(function(N){return N!==void 0}),j;return $u(d)?j=d:j=Lge[d],et.createElement("g",{transform:"translate(".concat(r,",").concat(i,")"),style:{opacity:k.itemOpacity!==void 0?k.itemOpacity:c}},et.createElement("rect",{width:u,height:o,fill:k.itemBackground||s,style:{cursor:$?"pointer":"auto"},onClick:S,onMouseEnter:C,onMouseLeave:P}),et.createElement(j,{id:a.id,x:O,y:R,size:k.symbolSize||h,fill:a.fill||a.color,borderWidth:k.symbolBorderWidth!==void 0?k.symbolBorderWidth:m,borderColor:k.symbolBorderColor||y}),et.createElement("text",{textAnchor:z,style:xf({},M.legends.text,{fill:k.itemTextColor||f,dominantBaseline:B,pointerEvents:"none",userSelect:"none"}),x:F,y:A},a.label))};Vi.displayName="LegendSvgItem";Vi.propTypes=xf({data:Tp.isRequired,x:oe.number.isRequired,y:oe.number.isRequired,width:oe.number.isRequired,height:oe.number.isRequired,textColor:oe.string,background:oe.string,opacity:oe.number,direction:oe.oneOf(["left-to-right","right-to-left","top-to-bottom","bottom-to-top"]).isRequired,justify:oe.bool.isRequired},wp,_p);Vi.defaultProps={direction:"left-to-right",justify:!1,textColor:"black",background:"transparent",opacity:1,symbolShape:"square",symbolSize:16,symbolSpacing:8,symbolBorderWidth:0,symbolBorderColor:"transparent",effects:[]};function Ige(e){for(var t=1;tt}var Xge=Gge,Zge=AA,Kge=Xge,Jge=Vo;function Qge(e){return e&&e.length?Zge(e,Jge,Kge):void 0}var eme=Qge;const DA=ir(eme);var tme=Math.ceil,nme=Math.max;function rme(e,t,r,i){for(var u=-1,o=nme(tme((t-e)/(r||1)),0),a=Array(o);o--;)a[i?o:++u]=e,e+=r;return a}var ame=rme,ime=ame,ome=U1,s0=z8;function lme(e){return function(t,r,i){return i&&typeof i!="number"&&ome(t,r,i)&&(r=i=void 0),t=s0(t),r===void 0?(r=t,t=0):r=s0(r),i=i===void 0?t=x0e){var f=t?null:y0e(e);if(f)return b0e(f);a=!1,u=v0e,l=new p0e}else l=t?[]:n;e:for(;++i-1}function ove(e,t){var r=this.__data__,i=Op(r,e);return i<0?r.push([e,t]):r[i][1]=t,this}ls.prototype.clear=nve;ls.prototype.delete=rve;ls.prototype.get=ave;ls.prototype.has=ive;ls.prototype.set=ove;function Qo(e){var t=-1,r=e?e.length:0;for(this.clear();++t11))throw new Error("Invalid size '".concat(t.size,"' for diverging color scheme '").concat(t.scheme,"', must be between 3~11"));var l=To(wf[t.scheme][t.size||11]),f=function(h){return l(i(h))};return f.scale=l,f}if(Vve(t.scheme)){if(t.size!==void 0&&(t.size<3||t.size>9))throw new Error("Invalid size '".concat(t.size,"' for sequential color scheme '").concat(t.scheme,"', must be between 3~9"));var s=To(wf[t.scheme][t.size||9]),c=function(h){return s(i(h))};return c.scale=s,c}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return t}},KA=function(t,r){return $e.useMemo(function(){return ZA(t,r)},[t,r])};function Gve(e,t){return Kve(e)||Zve(e,t)||Xve()}function Xve(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function Zve(e,t){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]"){var r=[],i=!0,u=!1,o=void 0;try{for(var a=e[Symbol.iterator](),n;!(i=(n=a.next()).done)&&(r.push(n.value),!(t&&r.length===t));i=!0);}catch(l){u=!0,o=l}finally{try{!i&&a.return!=null&&a.return()}finally{if(u)throw o}}return r}}function Kve(e){if(Array.isArray(e))return e}var _f=function(t,r){if(typeof t=="function")return function(d){return t(d)};if(VA(t)){if(t.theme!==void 0){if(r===void 0)throw new Error("Unable to use color from theme as no theme was provided");var i=gd(r,t.theme);if(i===void 0)throw new Error("Color from theme is undefined at path: '".concat(t.theme,"'"));return function(){return i}}if(t.from!==void 0){var u=function(h){return gd(h,t.from)};if(Array.isArray(t.modifiers)){var o=[],a=!0,n=!1,l=void 0;try{for(var f=function(){var h=c.value,p=Gve(h,2),m=p[0],y=p[1];if(m==="brighter")o.push(function(v){return v.brighter(y)});else if(m==="darker")o.push(function(v){return v.darker(y)});else if(m==="opacity")o.push(function(v){return v.opacity=y,v});else throw new Error("Invalid color modifier: '".concat(m,"', must be one of: 'brighter', 'darker', 'opacity'"))},s=t.modifiers[Symbol.iterator](),c;!(a=(c=s.next()).done);a=!0)f()}catch(d){n=!0,l=d}finally{try{!a&&s.return!=null&&s.return()}finally{if(n)throw l}}return o.length===0?u:function(d){return o.reduce(function(h,p){return p(h)},Po(u(d))).toString()}}return u}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return t}},md=function(t,r){return $e.useMemo(function(){return _f(t,r)},[t,r])},px=oe.oneOfType([oe.func,oe.arrayOf(oe.string),oe.shape({scheme:oe.oneOf(Yve).isRequired,size:oe.number}),oe.shape({datum:oe.string.isRequired}),oe.string]),Jve=oe.oneOfType([oe.func,oe.string]),f0=oe.oneOfType([oe.string,oe.func,oe.shape({theme:oe.string.isRequired}),oe.shape({from:oe.string.isRequired,modifiers:oe.arrayOf(oe.array)})]),Qve=A6,eye=pc;function tye(e,t){return e&&Qve(e,t,eye)}var nye=tye,rye=Zl;function aye(e,t){return function(r,i){if(r==null)return r;if(!rye(r))return e(r,i);for(var u=r.length,o=t?u:-1,a=Object(r);(t?o--:++ou?0:u+t),r=r>u?u:r,r<0&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(u);++i1),o}),lxe(e,cxe(e),r),i&&(r=axe(r,fxe|dxe|hxe,sxe));for(var u=t.length;u--;)ixe(r,t[u]);return r}),gxe=pxe;const a7=ir(gxe);var mxe=oe.shape({match:oe.oneOfType([oe.func,oe.object]).isRequired,type:oe.oneOf(["circle","rect","dot"]).isRequired,noteX:oe.oneOfType([oe.number,oe.shape({abs:oe.number.isRequired})]).isRequired,noteY:oe.oneOfType([oe.number,oe.shape({abs:oe.number.isRequired})]).isRequired,noteWidth:oe.number,noteTextOffset:oe.number,note:oe.oneOfType([oe.node,oe.func]).isRequired,offset:oe.number}),vd={noteWidth:120,noteTextOffset:8,animate:!0,motionStiffness:90,motionDamping:13};function vxe(e){for(var t=1;t180?(_-=c,k-=c):k+=c,{points:[[y,v],[p,m],[k,T]],text:[_,w],angle:g+90}},i7=function(t){var r=t.items,i=t.annotations,u=t.getPosition,o=t.getDimensions;return $e.useMemo(function(){return xxe({items:r,annotations:i,getPosition:u,getDimensions:o})},[r,i,u,o])},Txe=function(t){var r=t.type,i=t.containerWidth,u=t.containerHeight,o=t.x,a=t.y,n=t.size,l=t.width,f=t.height,s=t.noteX,c=t.noteY,d=t.noteWidth,h=t.noteTextOffset;return $e.useMemo(function(){return _xe({type:r,containerWidth:i,containerHeight:u,x:o,y:a,size:n,width:l,height:f,noteX:s,noteY:c,noteWidth:d,noteTextOffset:h})},[r,i,u,o,a,n,l,f,s,c,d,h])};function kxe(e){for(var t=1;t0&&et.createElement("text",{x:r,y:i,style:kxe({},o.annotations.text,{strokeLinejoin:"round",strokeWidth:o.annotations.text.outlineWidth*2,stroke:o.annotations.text.outlineColor})},u),et.createElement("text",{x:r,y:i,style:a7(o.annotations.text,["outlineWidth","outlineColor"])},u))});Zu.displayName="AnnotationNote";Zu.propTypes={datum:oe.object.isRequired,x:oe.number.isRequired,y:oe.number.isRequired,note:oe.oneOfType([oe.node,oe.func]).isRequired};Zu.defaultProps={};function Sxe(e){for(var t=1;t0&&et.createElement("circle",{cx:l.x,cy:l.y,r:l.size/2,style:RM({},u.annotations.outline,{fill:"none",strokeWidth:u.annotations.outline.strokeWidth+u.annotations.outline.outlineWidth*2,stroke:u.annotations.outline.outlineColor})}),et.createElement("circle",{cx:l.x,cy:l.y,r:l.size/2,style:u.annotations.outline}))}):et.createElement(et.Fragment,null,u.annotations.outline.outlineWidth>0&&et.createElement("circle",{cx:t,cy:r,r:i/2,style:RM({},u.annotations.outline,{fill:"none",strokeWidth:u.annotations.outline.strokeWidth+u.annotations.outline.outlineWidth*2,stroke:u.annotations.outline.outlineColor})}),et.createElement("circle",{cx:t,cy:r,r:i/2,style:u.annotations.outline}))});gx.displayName="CircleAnnotationOutline";gx.propTypes={x:oe.number.isRequired,y:oe.number.isRequired,size:oe.number.isRequired};function LM(e){for(var t=1;t0&&et.createElement("circle",{cx:l.x,cy:l.y,r:l.size/2,style:LM({},u.annotations.outline,{fill:"none",strokeWidth:u.annotations.outline.outlineWidth*2,stroke:u.annotations.outline.outlineColor})}),et.createElement("circle",{cx:l.x,cy:l.y,r:l.size/2,style:u.annotations.symbol}))}):et.createElement(et.Fragment,null,u.annotations.outline.outlineWidth>0&&et.createElement("circle",{cx:t,cy:r,r:i/2,style:LM({},u.annotations.outline,{fill:"none",strokeWidth:u.annotations.outline.outlineWidth*2,stroke:u.annotations.outline.outlineColor})}),et.createElement("circle",{cx:t,cy:r,r:i/2,style:u.annotations.symbol}))});Pp.displayName="DotAnnotationOutline";Pp.propTypes={x:oe.number.isRequired,y:oe.number.isRequired,size:oe.number.isRequired};Pp.defaultProps={size:4};function IM(e){for(var t=1;t0&&et.createElement("rect",{x:f.x,y:f.y,width:f.width,height:f.height,style:IM({},o.annotations.outline,{fill:"none",strokeWidth:o.annotations.outline.strokeWidth+o.annotations.outline.outlineWidth*2,stroke:o.annotations.outline.outlineColor})}),et.createElement("rect",{x:f.x,y:f.y,width:f.width,height:f.height,style:o.annotations.outline}))}):et.createElement(et.Fragment,null,o.annotations.outline.outlineWidth>0&&et.createElement("rect",{x:t-i/2,y:r-u/2,width:i,height:u,style:IM({},o.annotations.outline,{fill:"none",strokeWidth:o.annotations.outline.strokeWidth+o.annotations.outline.outlineWidth*2,stroke:o.annotations.outline.outlineColor})}),et.createElement("rect",{x:t-i/2,y:r-u/2,width:i,height:u,style:o.annotations.outline}))});mx.displayName="RectAnnotationOutline";mx.propTypes={x:oe.number.isRequired,y:oe.number.isRequired,width:oe.number.isRequired,height:oe.number.isRequired};var vc=$e.memo(function(e){var t=e.datum,r=e.type,i=e.containerWidth,u=e.containerHeight,o=e.x,a=e.y,n=e.size,l=e.width,f=e.height,s=e.noteX,c=e.noteY,d=e.noteWidth,h=e.noteTextOffset,p=e.note,m=Oa(),y=m.animate,v=m.springConfig,g=Txe({type:r,containerWidth:i,containerHeight:u,x:o,y:a,size:n,width:l,height:f,noteX:s,noteY:c,noteWidth:d,noteTextOffset:h});return et.createElement(et.Fragment,null,et.createElement(Ku,{points:g.points,isOutline:!0}),r==="circle"&&et.createElement(gx,{x:o,y:a,size:n}),r==="dot"&&et.createElement(Pp,{x:o,y:a,size:n}),r==="rect"&&et.createElement(mx,{x:o,y:a,width:l,height:f}),et.createElement(Ku,{points:g.points}),!y&&et.createElement(Zu,{x:g.text[0],y:g.text[1],note:p}),y&&et.createElement(Si,{style:{x:Pn(g.text[0],v),y:Pn(g.text[1],v)}},function(b){return et.createElement(Zu,{datum:t,x:b.x,y:b.y,note:p})}))});vc.displayName="Annotation";vc.propTypes={datum:oe.object.isRequired,type:oe.oneOf(["circle","rect","dot"]).isRequired,containerWidth:oe.number.isRequired,containerHeight:oe.number.isRequired,x:oe.number.isRequired,y:oe.number.isRequired,size:oe.number,width:oe.number,height:oe.number,noteX:oe.oneOfType([oe.number,oe.shape({abs:oe.number.isRequired})]).isRequired,noteY:oe.oneOfType([oe.number,oe.shape({abs:oe.number.isRequired})]).isRequired,noteWidth:oe.number.isRequired,noteTextOffset:oe.number.isRequired,note:oe.oneOfType([oe.node,oe.func]).isRequired};vc.defaultProps={noteWidth:vd.noteWidth,noteTextOffset:vd.noteTextOffset};var Dp=function(t,r,i,u){return G1().rangeRound(i).domain(t.map(r)).padding(u)};function FM(e){return Rxe(e)||Exe(e)||Dxe()}function Dxe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Exe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Rxe(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t0&&(l=0)),Do().rangeRound(o).domain([l,n])},Lxe=function(t){var r=t.data,i=t.getIndex,u=t.keys,o=t.minValue,a=t.maxValue,n=t.reverse,l=t.width,f=t.height,s=t.getColor,c=t.padding,d=c===void 0?0:c,h=t.innerPadding,p=h===void 0?0:h,m=Dp(r,i,[0,l],d),y=n?[0,f]:[f,0],v=o7(r,u,o,a,y),g=(m.bandwidth()-p*(u.length-1))/u.length,b=v(0),x=function(T){return T>0?v(T):b},_=function(T,M){return T>0?b-M:v(T)-b};n&&(x=function(T){return T<0?v(T):b},_=function(T,M){return T<0?b-M:v(T)-b});var w=[];return g>0&&u.forEach(function(k,T){EA(m.domain().length).forEach(function(M){var S=m(i(r[M]))+g*T+p*T,C=x(r[M][k]),P=_(r[M][k],C);if(g>0&&P>0){var D={id:k,value:r[M][k],index:M,indexValue:i(r[M]),data:r[M]};w.push({key:"".concat(k,".").concat(D.indexValue),data:D,x:S,y:C,width:g,height:P,color:s(D)})}})}),{xScale:m,yScale:v,bars:w}},Ixe=function(t){var r=t.data,i=t.getIndex,u=t.keys,o=t.minValue,a=t.maxValue,n=t.reverse,l=t.width,f=t.height,s=t.getColor,c=t.padding,d=c===void 0?0:c,h=t.innerPadding,p=h===void 0?0:h,m=n?[l,0]:[0,l],y=o7(r,u,o,a,m),v=Dp(r,i,[f,0],d),g=(v.bandwidth()-p*(u.length-1))/u.length,b=y(0),x=function(T){return T>0?b:y(T)},_=function(T,M){return T>0?y(T)-b:b-M};n&&(x=function(T){return T<0?b:y(T)},_=function(T,M){return T<0?y(T)-b:b-M});var w=[];return g>0&&u.forEach(function(k,T){EA(v.domain().length).forEach(function(M){var S=x(r[M][k]),C=v(i(r[M]))+g*T+p*T,P=_(r[M][k],S);if(P>0){var D={id:k,value:r[M][k],index:M,indexValue:i(r[M]),data:r[M]};w.push({key:"".concat(k,".").concat(D.indexValue),data:D,x:S,y:C,width:P,height:g,color:s(D)})}})}),{xScale:y,yScale:v,bars:w}},l7=function(t){return t.layout==="vertical"?Lxe(t):Ixe(t)},s7=function(t,r,i,u){var o=mme(t,2),a=r;a==="auto"&&(a=PA(o));var n=i;return n==="auto"&&(n=DA(o)),Do().rangeRound(u).domain([a,n])},Fxe=function(t){var r=t.data,i=t.getIndex,u=t.keys,o=t.minValue,a=t.maxValue,n=t.reverse,l=t.width,f=t.height,s=t.getColor,c=t.padding,d=c===void 0?0:c,h=t.innerPadding,p=h===void 0?0:h,m=jO().keys(u).offset(xb)(r),y=Dp(r,i,[0,l],d),v=n?[0,f]:[f,0],g=s7(m,o,a,v),b=[],x=y.bandwidth(),_=function(T){return g(T[1])},w=function(T,M){return g(T[0])-M};return n&&(_=function(T){return g(T[0])},w=function(T,M){return g(T[1])-M}),x>0&&m.forEach(function(k){y.domain().forEach(function(T,M){var S=k[M],C=y(i(S.data)),P=_(S),D=w(S,P);if(p>0&&(P+=p*.5,D-=p),D>0){var O={id:k.key,value:S.data[k.key],index:M,indexValue:T,data:S.data};b.push({key:"".concat(k.key,".").concat(T),data:O,x:C,y:P,width:x,height:D,color:s(O)})}})}),{xScale:y,yScale:g,bars:b}},Nxe=function(t){var r=t.data,i=t.getIndex,u=t.keys,o=t.minValue,a=t.maxValue,n=t.reverse,l=t.width,f=t.height,s=t.getColor,c=t.padding,d=c===void 0?0:c,h=t.innerPadding,p=h===void 0?0:h,m=jO().keys(u).offset(xb)(r),y=n?[l,0]:[0,l],v=s7(m,o,a,y),g=Dp(r,i,[f,0],d),b=[],x=g.bandwidth(),_=function(T){return v(T[0])},w=function(T,M){return v(T[1])-M};return n&&(_=function(T){return v(T[1])},w=function(T,M){return v(T[0])-M}),x>0&&m.forEach(function(k){g.domain().forEach(function(T,M){var S=k[M],C=g(i(S.data)),P={id:k.key,value:S.data[k.key],index:M,indexValue:T,data:S.data},D=_(S),O=w(S,D);p>0&&(D+=p*.5,O-=p),O>0&&b.push({key:"".concat(k.key,".").concat(T),data:P,x:D,y:C,width:O,height:x,color:s(P)})})}),{xScale:v,yScale:g,bars:b}},u7=function(t){return t.layout==="vertical"?Fxe(t):Nxe(t)},jxe=function(t,r,i,u,o){var a=Gu(t.map(function(n){return{id:n.data.id,label:n.data.id,color:n.color,fill:n.data.fill}}),function(n){var l=n.id;return l});return(r==="vertical"&&u==="stacked"&&i==="column"&&o!==!0||r==="horizontal"&&u==="stacked"&&o===!0)&&a.reverse(),a},$xe=function(t){return Gu(t.map(function(r){return{id:r.data.indexValue,label:r.data.indexValue,color:r.color,fill:r.data.fill}}),function(r){var i=r.id;return i})},Bxe=function(t){var r=t.from,i=t.bars,u=t.layout,o=t.direction,a=t.groupMode,n=t.reverse;return r==="indexes"?$xe(i):jxe(i,u,o,a,n)};function Wv(e){for(var t=1;t0&&ce0&&ye0&&(this.ctx.lineWidth=M.grid.line.strokeWidth,this.ctx.strokeStyle=M.grid.line.stroke,O&&Il(this.ctx,{width:s,height:c,scale:B.xScale,axis:"x",values:R}),F&&Il(this.ctx,{width:s,height:c,scale:B.yScale,axis:"y",values:A})),this.ctx.strokeStyle="#dddddd";var $=Gu(B.bars.map(function(N){return{id:N.data.id,label:N.data.id,color:N.color,fill:N.data.fill}}).reverse(),function(N){var E=N.id;return E}),j=Gu(B.bars.map(function(N){return{id:N.data.indexValue,label:N.data.indexValue,color:N.color,fill:N.data.fill}}),function(N){var E=N.id;return E});D.forEach(function(N){var E;if(N.dataFrom==="keys"?E=$:N.dataFrom==="indexes"&&(E=j),E===void 0)return null;sx(u.ctx,jM({},N,{data:E,containerWidth:s,containerHeight:c,itemTextColor:"#999",symbolSize:16,theme:M}))}),Wb(this.ctx,{xScale:B.xScale,yScale:B.yScale,width:s,height:c,top:_,right:w,bottom:k,left:T,theme:M}),B.bars.forEach(function(N){var E=N.x,W=N.y,G=N.color,L=N.width,q=N.height;u.ctx.fillStyle=G,C>0&&(u.ctx.strokeStyle=P(N),u.ctx.lineWidth=C),u.ctx.beginPath(),u.ctx.rect(E,W,L,q),u.ctx.fill(),C>0&&u.ctx.stroke()})}},{key:"render",value:function(){var i=this,u=this.props,o=u.outerWidth,a=u.outerHeight,n=u.pixelRatio,l=u.isInteractive,f=u.theme;return et.createElement(sp,{isInteractive:l,theme:f,animate:!1},function(s){var c=s.showTooltip,d=s.hideTooltip;return et.createElement("canvas",{ref:function(p){i.surface=p},width:o*n,height:a*n,style:{width:o,height:a},onMouseEnter:i.handleMouseHover(c,d),onMouseMove:i.handleMouseHover(c,d),onMouseLeave:i.handleMouseLeave(d),onClick:i.handleClick})})}}]),t}($e.Component);g7.propTypes=f7;var i2e=_b("BarCanvas")(d7(g7));function Yv(){return Yv=Object.assign||function(e){for(var t=1;tje.jsx(Qr,{sx:{maxWidth:200,height:50},children:je.jsx(o2e,{data:e.data[e.xField].map((t,r)=>({id:t,x:e.data[e.yField][r]})),margin:{top:3,right:3,bottom:3,left:3},indexBy:"id",keys:["x"],colors:[e.color],axisTop:null,axisRight:null,enableGridX:!1,enableGridY:!1})}),s2e=l2e;var u2e=IA;function c2e(e){return e&&e.length?u2e(e):[]}var f2e=c2e;const zM=ir(f2e);var d2e=JA,h2e=Zl;function p2e(e,t){var r=-1,i=h2e(e)?Array(e.length):[];return d2e(e,function(u,o,a){i[++r]=t(u,o,a)}),i}var g2e=p2e;function m2e(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var v2e=m2e,qM=Ql;function y2e(e,t){if(e!==t){var r=e!==void 0,i=e===null,u=e===e,o=qM(e),a=t!==void 0,n=t===null,l=t===t,f=qM(t);if(!n&&!f&&!o&&e>t||o&&a&&l&&!n&&!f||i&&a&&l||!r&&l||!u)return 1;if(!i&&!o&&!f&&e=n)return l;var f=r[i];return l*(f=="desc"?-1:1)}}return e.index-t.index}var _2e=w2e,d0=vh,T2e=cc,k2e=ux,M2e=g2e,S2e=v2e,C2e=Kl,O2e=_2e,A2e=Vo,P2e=ba;function D2e(e,t,r){t.length?t=d0(t,function(o){return P2e(o)?function(a){return T2e(a,o.length===1?o[0]:o)}:o}):t=[A2e];var i=-1;t=d0(t,C2e(k2e));var u=M2e(e,function(o,a,n){var l=d0(t,function(f){return f(o)});return{criteria:l,index:++i,value:o}});return S2e(u,function(o,a){return O2e(o,a,r)})}var E2e=D2e,R2e=Db,L2e=E2e,I2e=mh,WM=U1,F2e=I2e(function(e,t){if(e==null)return[];var r=t.length;return r>1&&WM(e,t[0],t[1])?t=[]:r>2&&WM(t[0],t[1],t[2])&&(t=[t[0]]),L2e(e,R2e(t,1),[])}),N2e=F2e;const j2e=ir(N2e);var $2e=Li,B2e=Fa,z2e="[object Date]";function q2e(e){return B2e(e)&&$2e(e)==z2e}var W2e=q2e,U2e=W2e,H2e=Kl,UM=gh,HM=UM&&UM.isDate,V2e=HM?H2e(HM):U2e,Y2e=V2e;const G2e=ir(Y2e);var X2e=function(t,r,i,u){var o=t.axis,a=t.min,n=a===void 0?0:a,l=t.max,f=l===void 0?"auto":l,s=t.stacked,c=s===void 0?!1:s,d=t.reverse,h=d===void 0?!1:d,p=r[o],m=o==="x"?i:u,y=n;n==="auto"&&(y=c===!0?p.minStacked:p.min);var v=f;f==="auto"&&(v=c===!0?p.maxStacked:p.max);var g=Do().rangeRound(o==="x"?[0,m]:[m,0]);return h===!0?g.domain([v,y]):g.domain([y,v]),g.type="linear",g.stacked=c,g},Z2e={type:oe.oneOf(["linear"]).isRequired,min:oe.oneOfType([oe.oneOf(["auto"]),oe.number]),max:oe.oneOfType([oe.oneOf(["auto"]),oe.number]),stacked:oe.bool,reverse:oe.bool},K2e=function(t,r,i,u){var o=t.axis,a=t.base,n=a===void 0?10:a,l=t.min,f=l===void 0?"auto":l,s=t.max,c=s===void 0?"auto":s,d=r[o],h=o==="x"?i:u,p=d.all.some(function(x){return x===0}),m,y=!1;if(d.all.forEach(function(x){y!==!0&&(m===void 0?m=Math.sign(x):Math.sign(x)!==m&&(y=!0))}),p||y)throw new Error(["a log scale domain must be strictly-positive or strictly-negative,","and must not include or cross zero."].join(` -`));var v=f;f==="auto"&&(v=d.min);var g=c;c==="auto"&&(g=d.max);var b=iO().domain([v,g]).rangeRound(o==="x"?[0,h]:[h,0]).base(n).nice();return b.type="log",b},J2e={type:oe.oneOf(["log"]).isRequired,base:oe.number,min:oe.oneOfType([oe.oneOf(["auto"]),oe.number]),max:oe.oneOfType([oe.oneOf(["auto"]),oe.number])},Q2e=function(t,r,i,u){var o=t.axis,a=r[o],n=o==="x"?i:u,l=lne().range([0,n]).domain(a.all);return l.type="point",l},ewe={type:oe.oneOf(["point"]).isRequired},xi;function ho(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var vx="millisecond",m7="second",v7="minute",y7="hour",b7="day",x7="month",w7="year",twe=[vx,m7,v7,y7,b7,x7,w7],ul=[function(e){return e.setMilliseconds(0)},function(e){return e.setSeconds(0)},function(e){return e.setMinutes(0)},function(e){return e.setHours(0)},function(e){return e.setDate(1)},function(e){return e.setMonth(0)}],nwe=(xi={},ho(xi,vx,[]),ho(xi,m7,ul.slice(0,1)),ho(xi,v7,ul.slice(0,2)),ho(xi,y7,ul.slice(0,3)),ho(xi,b7,ul.slice(0,4)),ho(xi,x7,ul.slice(0,5)),ho(xi,w7,ul.slice(0,6)),xi),rwe=function(t){return function(r){return nwe[t].forEach(function(i){i(r)}),r}},_7=function(t){var r=t.format,i=r===void 0?"native":r,u=t.precision,o=u===void 0?"millisecond":u,a=t.useUTC,n=a===void 0?!0:a,l=rwe(o);if(i==="native")return function(s){return l(s)};var f=n?c8(i):u8(i);return function(s){return l(f(s))}},awe=function(t,r,i,u){var o=t.axis,a=t.format,n=a===void 0?"native":a,l=t.precision,f=l===void 0?vx:l,s=t.min,c=s===void 0?"auto":s,d=t.max,h=d===void 0?"auto":d,p=t.useUTC,m=p===void 0?!0:p,y=r[o],v=o==="x"?i:u,g=_7({format:n,precision:f,useUTC:m}),b=c;c==="auto"?b=y.min:n!=="native"&&(b=g(c));var x=h;h==="auto"?x=y.max:n!=="native"&&(x=g(h));var _=m?mae():gae();return _.domain([b,x]).range([0,v]),_.type="time",_.useUTC=m,_},iwe={type:oe.oneOf(["time"]).isRequired,format:oe.string,precision:oe.oneOf(twe)};function bd(e){return swe(e)||lwe(e)||owe()}function owe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function lwe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function swe(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t3&&arguments[3]!==void 0?arguments[3]:{},o=u.getValue,a=o===void 0?function(h){return h.data[r]}:o,n=u.setValue,l=n===void 0?function(h,p){h.data[r]=p}:n;if(i.type==="linear")t.forEach(function(h){h.data.forEach(function(p){l(p,a(p)===null?null:parseFloat(a(p)))})});else if(i.type==="time"&&i.format!=="native"){var f=_7(i);t.forEach(function(h){h.data.forEach(function(p){l(p,a(p)===null?null:f(a(p)))})})}var s=[];t.forEach(function(h){h.data.forEach(function(p){s.push(a(p))})});var c,d;return i.type==="linear"?(s=zM(s),s=j2e(s,function(h){return h}),c=Math.min.apply(Math,bd(s)),d=Math.max.apply(Math,bd(s))):i.type==="time"?(s=Gu(s,function(h){return h.getTime()}),s=s.slice(0).sort(function(h,p){return p-h}).reverse(),c=s[0],d=Sn(s)):(s=zM(s),c=s[0],d=Sn(s)),{all:s,min:c,max:d}},k7=function(t,r,i,u){var o=cwe(t),a=[];i[o].all.forEach(function(n){var l=G2e(n)?dwe:fwe,f=[];u.forEach(function(s){var c=s.data.find(function(m){return l(m.data[o],n)}),d=null,h=null;if(c!==void 0){if(d=c.data[t],d!==null){var p=Sn(f);p===void 0?h=d:p!==null&&(h=p+d)}c.data["".concat(t,"Stacked")]=h}f.push(h),a.push(h)})}),a=a.filter(function(n){return n!==null}),i[t].minStacked=Math.min.apply(Math,bd(a)),i[t].maxStacked=Math.max.apply(Math,bd(a))},pwe=function(t,r,i){return k7("x",t,r,i)},gwe=function(t,r,i){return k7("y",t,r,i)},xd=oe.oneOfType([oe.shape(Z2e),oe.shape(ewe),oe.shape(iwe),oe.shape(J2e)]);const GM=Math.pow(2,-52),nf=new Uint32Array(512);class wd{static from(t,r=xwe,i=wwe){const u=t.length,o=new Float64Array(u*2);for(let a=0;a>1;if(r>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const i=Math.max(2*r-5,0);this._triangles=new Uint32Array(i*3),this._halfedges=new Int32Array(i*3),this._hashSize=Math.ceil(Math.sqrt(r)),this._hullPrev=new Uint32Array(r),this._hullNext=new Uint32Array(r),this._hullTri=new Uint32Array(r),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(r),this._dists=new Float64Array(r),this.update()}update(){const{coords:t,_hullPrev:r,_hullNext:i,_hullTri:u,_hullHash:o}=this,a=t.length>>1;let n=1/0,l=1/0,f=-1/0,s=-1/0;for(let S=0;Sf&&(f=C),P>s&&(s=P),this._ids[S]=S}const c=(n+f)/2,d=(l+s)/2;let h=1/0,p,m,y;for(let S=0;S0&&(m=S,h=C)}let b=t[2*m],x=t[2*m+1],_=1/0;for(let S=0;SD&&(S[C++]=O,D=this._dists[O])}this.hull=S.subarray(0,C),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(rf(v,g,b,x,w,k)){const S=m,C=b,P=x;m=y,b=w,x=k,y=S,w=C,k=P}const T=bwe(v,g,b,x,w,k);this._cx=T.x,this._cy=T.y;for(let S=0;S0&&Math.abs(O-C)<=GM&&Math.abs(R-P)<=GM||(C=O,P=R,D===p||D===m||D===y))continue;let F=0;for(let j=0,N=this._hashKey(O,R);j0?3-r:1+r)/4}function h0(e,t,r,i){const u=e-r,o=t-i;return u*u+o*o}function p0(e,t,r,i,u,o){const a=(i-t)*(u-e),n=(r-e)*(o-t);return Math.abs(a-n)>=33306690738754716e-32*Math.abs(a+n)?a-n:0}function rf(e,t,r,i,u,o){return(p0(u,o,e,t,r,i)||p0(e,t,r,i,u,o)||p0(r,i,u,o,e,t))<0}function vwe(e,t,r,i,u,o,a,n){const l=e-a,f=t-n,s=r-a,c=i-n,d=u-a,h=o-n,p=l*l+f*f,m=s*s+c*c,y=d*d+h*h;return l*(c*y-m*h)-f*(s*y-m*d)+p*(s*h-c*d)<0}function ywe(e,t,r,i,u,o){const a=r-e,n=i-t,l=u-e,f=o-t,s=a*a+n*n,c=l*l+f*f,d=.5/(a*f-n*l),h=(f*s-n*c)*d,p=(a*c-l*s)*d;return h*h+p*p}function bwe(e,t,r,i,u,o){const a=r-e,n=i-t,l=u-e,f=o-t,s=a*a+n*n,c=l*l+f*f,d=.5/(a*f-n*l),h=e+(f*s-n*c)*d,p=t+(a*c-l*s)*d;return{x:h,y:p}}function pl(e,t,r,i){if(i-r<=20)for(let u=r+1;u<=i;u++){const o=e[u],a=t[o];let n=u-1;for(;n>=r&&t[e[n]]>a;)e[n+1]=e[n--];e[n+1]=o}else{const u=r+i>>1;let o=r+1,a=i;pu(e,u,o),t[e[r]]>t[e[i]]&&pu(e,r,i),t[e[o]]>t[e[i]]&&pu(e,o,i),t[e[r]]>t[e[o]]&&pu(e,r,o);const n=e[o],l=t[n];for(;;){do o++;while(t[e[o]]l);if(a=a-r?(pl(e,t,o,i),pl(e,t,r,a-1)):(pl(e,t,r,a-1),pl(e,t,o,i))}}function pu(e,t,r){const i=e[t];e[t]=e[r],e[r]=i}function xwe(e){return e[0]}function wwe(e){return e[1]}const XM=1e-6;class So{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,r){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,r){this._+=`L${this._x1=+t},${this._y1=+r}`}arc(t,r,i){t=+t,r=+r,i=+i;const u=t+i,o=r;if(i<0)throw new Error("negative radius");this._x1===null?this._+=`M${u},${o}`:(Math.abs(this._x1-u)>XM||Math.abs(this._y1-o)>XM)&&(this._+="L"+u+","+o),i&&(this._+=`A${i},${i},0,1,1,${t-i},${r}A${i},${i},0,1,1,${this._x1=u},${this._y1=o}`)}rect(t,r,i,u){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${+i}v${+u}h${-i}Z`}value(){return this._||null}}class Gv{constructor(){this._=[]}moveTo(t,r){this._.push([t,r])}closePath(){this._.push(this._[0].slice())}lineTo(t,r){this._.push([t,r])}value(){return this._.length?this._:null}}let _we=class{constructor(t,[r,i,u,o]=[0,0,960,500]){if(!((u=+u)>=(r=+r))||!((o=+o)>=(i=+i)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=u,this.xmin=r,this.ymax=o,this.ymin=i,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:r,triangles:i},vectors:u}=this,o=this.circumcenters=this._circumcenters.subarray(0,i.length/3*2);for(let h=0,p=0,m=i.length,y,v;h1;)o-=2;for(let a=2;a4)for(let a=0;a0){if(r>=this.ymax)return null;(a=(this.ymax-r)/u)0){if(t>=this.xmax)return null;(a=(this.xmax-t)/i)this.xmax?2:0)|(rthis.ymax?8:0)}};const Twe=2*Math.PI,cl=Math.pow;function kwe(e){return e[0]}function Mwe(e){return e[1]}function Swe(e){const{triangles:t,coords:r}=e;for(let i=0;i1e-10)return!1}return!0}function Cwe(e,t,r){return[e+Math.sin(e+t)*r,t+Math.cos(e-t)*r]}class Ep{static from(t,r=kwe,i=Mwe,u){return new Ep("length"in t?Owe(t,r,i,u):Float64Array.from(Awe(t,r,i,u)))}constructor(t){this._delaunator=new wd(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,r=this.points;if(t.hull&&t.hull.length>2&&Swe(t)){this.collinear=Int32Array.from({length:r.length/2},(d,h)=>h).sort((d,h)=>r[2*d]-r[2*h]||r[2*d+1]-r[2*h+1]);const l=this.collinear[0],f=this.collinear[this.collinear.length-1],s=[r[2*l],r[2*l+1],r[2*f],r[2*f+1]],c=1e-8*Math.hypot(s[3]-s[1],s[2]-s[0]);for(let d=0,h=r.length/2;d0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=u[0],this.triangles[1]=u[1],this.triangles[2]=u[1],a[u[0]]=1,u.length===2&&(a[u[1]]=0))}voronoi(t){return new _we(this,t)}*neighbors(t){const{inedges:r,hull:i,_hullIndex:u,halfedges:o,triangles:a,collinear:n}=this;if(n){const c=n.indexOf(t);c>0&&(yield n[c-1]),c=0&&o!==i&&o!==u;)i=o;return o}_step(t,r,i){const{inedges:u,hull:o,_hullIndex:a,halfedges:n,triangles:l,points:f}=this;if(u[t]===-1||!f.length)return(t+1)%(f.length>>1);let s=t,c=cl(r-f[t*2],2)+cl(i-f[t*2+1],2);const d=u[t];let h=d;do{let p=l[h];const m=cl(r-f[p*2],2)+cl(i-f[p*2+1],2);if(m0&&(de.lineWidth=H.grid.line.strokeWidth,de.strokeStyle=H.grid.line.stroke,k&&Il(de,{width:W,height:G,scale:re,axis:"x",values:T}),M&&Il(de,{width:W,height:G,scale:ie,axis:"y",values:S})),xe==="axes"&&Wb(de,{xScale:re,yScale:ie,width:W,height:G,top:C,right:P,bottom:D,left:O,theme:H}),xe==="areas"&&m===!0&&(de.save(),de.globalAlpha=v,Z.context(de),X.forEach(function(ge){de.fillStyle=ge.color,de.beginPath(),Z(ge.data.map(function(be){return be.position})),de.fill()}),de.restore()),xe==="lines"&&(Y.context(de),X.forEach(function(ge){de.strokeStyle=ge.color,de.lineWidth=p,de.beginPath(),Y(ge.data.map(function(be){return be.position})),de.stroke()})),xe==="points"&&g===!0&&b>0&&le.forEach(function(ge){de.fillStyle=ge.color,de.beginPath(),de.arc(ge.x,ge.y,b/2,0,2*Math.PI),de.fill(),_>0&&(de.strokeStyle=ge.borderColor,de.lineWidth=_,de.stroke())}),xe==="mesh"&&A===!0&&(S7(de,Te),ee&&C7(de,Te,ee.index)),xe==="legends"){var ue=X.map(function(ge){return{id:ge.id,label:ge.id,color:ge.color}}).reverse();R.forEach(function(ge){sx(de,h_e({},ge,{data:ge.data||ue,containerWidth:W,containerHeight:G,theme:H}))})}})},[j,L,q,d,H,Y,X,re,ie,k,T,M,S,C,P,D,O,R,le,g,b,ee]);var Se=$e.useCallback(function(de){var xe=Yu(j.current,de),ue=e5(xe,2),ge=ue[0],be=ue[1];if(!Nb(E.left,E.top,W,G,ge,be))return null;var we=pe.find(ge-E.left,be-E.top);return le[we]},[j,E,W,G,pe]),Oe=Ul(),Me=Oe.showTooltipFromEvent,ce=Oe.hideTooltip,ye=$e.useCallback(function(de){var xe=Se(de);U(xe),xe?Me(et.createElement($,{point:xe}),de):ce()},[Se,U,Me,ce,$]),J=$e.useCallback(function(de){ce(),U(null),ee&&z&&z(ee,de)},[ce,U,z]),ne=$e.useCallback(function(de){if(B){var xe=Se(de);xe&&B(xe,de)}},[Se,B]);return et.createElement("canvas",{ref:j,width:L*o,height:q*o,style:{width:L,height:q,cursor:F?"auto":"normal"},onMouseEnter:F?ye:void 0,onMouseMove:F?ye:void 0,onMouseLeave:F?J:void 0,onClick:F?ne:void 0})};wx.propTypes=qwe;wx.defaultProps=Wwe;var y_e=hp(wx);function Kv(){return Kv=Object.assign||function(e){for(var t=1;tje.jsx(Qr,{sx:{maxWidth:200,height:50},children:je.jsx(b_e,{data:[{id:"1",data:e.data[e.xField].map((t,r)=>({x:t,y:e.data[e.yField][r]}))}],margin:{top:0,right:0,bottom:0,left:0},xScale:{type:"linear",min:0,max:25},axisTop:null,colors:[e.color],axisRight:null,enableGridX:!1,enableGridY:!1})}),w_e=x_e;function __e(e){for(var t=1;tje.jsx(Qr,{sx:{maxWidth:200,height:50},children:je.jsx(V_e,{data:[{id:"1",data:e.data[e.xField].map((t,r)=>({x:t,y:e.data[e.yField][r]}))}],margin:{top:3,right:3,bottom:3,left:3},xScale:{type:"linear",min:0,max:1e3},nodeSize:4,colors:[e.color],useMesh:!1,axisTop:null,axisRight:null,enableGridX:!1,enableGridY:!1})}),J_e=K_e,Q_e=new Map([["line",(e,t)=>t[e.field]?je.jsx(w_e,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):je.jsx("div",{})],["scatter",(e,t)=>t[e.field]?je.jsx(J_e,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):je.jsx("div",{})],["histogram",(e,t)=>t[e.field]?je.jsx(s2e,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):je.jsx("div",{})]]),r5=e=>e.map(t=>({def:t,gen:Q_e.get(t.type??"string")})).map(({def:t,gen:r})=>r?{...t,type:void 0,render:i=>r(t,i)}:{...t,sorting:!0,defaultSort:t.sort,type:"string"}),e3e=e=>{const[t,r]=$e.useState({open:!1,anchorEl:void 0});return je.jsxs(Qr,{sx:{width:50},onClick:i=>r(u=>({open:!u.open,anchorEl:i.currentTarget})),children:[je.jsx(h6,{}),je.jsx(tS,{open:t.open,anchorEl:t.anchorEl,anchorOrigin:{horizontal:"left",vertical:"bottom"},children:je.jsx(Cr,{p:1,children:e.longText})})]})},t3e=e=>{const{columns:t,data:r}=e,i={search:!0,showTitle:!1,pageSize:e.rowsPerPage??5,detailPanelColumnStyle:{minWidth:42},emptyRowsWhenPaging:!1};return je.jsx(et.Fragment,{children:je.jsx(OY,{columns:e.showInfoColumn??!1?[...r5(t),{title:"Info",render:u=>{var o,a,n;return je.jsx(et.Fragment,{children:(o=u.details)!=null&&o.insights?je.jsx(e3e,{longText:`${(a=u.details)==null?void 0:a.insights[0].title}: ${(n=u.details)==null?void 0:n.insights[0].text}`}):je.jsx("div",{})})},width:50}]:[...r5(t)],data:r,detailPanel:({rowData:u})=>u.graphId?je.jsx(FY,{graphId:u.graphId,widgetSize:e.widgetSize}):u.details?je.jsx(k1,{details:u.details,widgetSize:e.widgetSize}):null,options:i})})},a5=e=>je.jsxs("div",{children:[je.jsx(Cr,{align:"center",fontWeight:500,sx:{fontSize:36},children:e.value}),je.jsx(Cr,{align:"center",variant:"h5",fontWeight:500,children:e.label})]}),n3e=e=>je.jsx(et.Fragment,{children:e.counters.length===1?je.jsx(a5,{...e.counters[0]}):je.jsx(Jn,{container:!0,spacing:1,direction:"row",alignItems:"center",children:e.counters.map(t=>je.jsx(Jn,{item:!0,xs:!0,component:Qr,height:"100%",children:je.jsx(Qr,{children:je.jsx(a5,{...t})})},t.label+t.value))})}),r3e=e=>je.jsxs("div",{children:[je.jsxs(Qr,{display:"flex",alignItems:"center",children:[je.jsx(Qr,{width:"100%",mr:1,children:je.jsx(J9,{variant:"determinate",value:e.value/e.maxValue*100})}),je.jsx(Qr,{minWidth:35,children:je.jsx(Cr,{variant:"body2",color:"textSecondary",children:`${Math.round(e.value/e.maxValue*100)}%`})})]}),je.jsx(Qr,{width:"100%",children:je.jsx(Cr,{variant:"body2",color:"textSecondary",children:e.details??""})})]});var kx={},a3e=vn;Object.defineProperty(kx,"__esModule",{value:!0});var J7=kx.default=void 0,i3e=a3e(Xr()),o3e=je,l3e=(0,i3e.default)((0,o3e.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14l-6-6z"}),"ExpandLessSharp");J7=kx.default=l3e;var Mx={},s3e=vn;Object.defineProperty(Mx,"__esModule",{value:!0});var Q7=Mx.default=void 0,u3e=s3e(Xr()),c3e=je,f3e=(0,u3e.default)((0,c3e.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"}),"ExpandMoreSharp");Q7=Mx.default=f3e;const d3e=e=>{var n,l;const[t,r]=$e.useState(!1),i=lS(),u=(n=e.graph)==null?void 0:n.data.some(({type:f})=>f==="histogram"),a=(i==null?void 0:i.isXaxisAsCategorical)&&!u?{type:"category",categoryorder:"category ascending"}:{};return je.jsx(et.Fragment,{children:je.jsxs(Jn,{container:!0,spacing:2,justifyContent:"center",alignItems:"center",children:[je.jsxs(Jn,{item:!0,xs:2,children:[je.jsx(Cr,{variant:"h5",children:e.header}),je.jsx(Cr,{variant:"subtitle1",children:e.description})]}),je.jsx(Jn,{item:!0,xs:e.graph===void 0?10:5,children:je.jsxs(nS,{children:[je.jsx(rS,{children:je.jsxs(Pf,{children:[je.jsx(Hi,{}),e.metricsValuesHeaders.map(f=>je.jsx(Hi,{children:f}))]})}),je.jsx(aS,{children:e.metrics.map(f=>je.jsxs(Pf,{children:[je.jsx(Hi,{children:f.label}),f.values.map(s=>je.jsx(Hi,{children:s}))]}))})]})}),e.graph===void 0?je.jsx(je.Fragment,{}):je.jsx(Jn,{item:!0,xs:5,children:je.jsx(cS,{data:e.graph.data,layout:{...e.graph.layout,title:void 0,xaxis:{...(l=e.graph.layout)==null?void 0:l.xaxis,...a}},config:{responsive:!0},style:{width:"100%",minHeight:150+100*(1+e.widgetSize/2),maxHeight:250}})}),e.details===void 0||e.details.parts.length===0?je.jsx(je.Fragment,{}):je.jsxs(je.Fragment,{children:[je.jsx(Jn,{item:!0,xs:12,children:je.jsx(di,{variant:"outlined",startIcon:t?je.jsx(J7,{}):je.jsx(Q7,{}),onClick:()=>r(f=>!f),children:"Details"})}),je.jsx(Jn,{item:!0,xs:12,children:je.jsx(my,{in:t,mountOnEnter:!0,unmountOnExit:!0,children:je.jsx(k1,{details:e.details,widgetSize:e.widgetSize})})})]})]})})},h3e=e=>je.jsx(T1,{tabs:e.graphs.map(t=>({title:t.title,tab:je.jsx(Ad,{widgetSize:e.widgetSize,data:t.graph.data,layout:t.graph.layout})}))}),p3e=e=>je.jsx(T1,{tabs:e.tabs.map(t=>({title:t.title,tab:xc(`${e.id}1`,t.widget)}))}),g3e=e=>je.jsx(Q9,{children:je.jsxs(nS,{sx:{minWidth:650},size:"small","aria-label":"a dense table",children:[je.jsx(rS,{children:je.jsxs(Pf,{children:[je.jsx(Hi,{children:e.header[0]},-1),e.header.slice(1).map(t=>je.jsx(Hi,{align:"right",children:t},t))]})}),je.jsx(aS,{children:e.data.map(t=>je.jsxs(Pf,{children:[je.jsx(Hi,{component:"th",scope:"row",children:t[0]},-1),t.slice(1).map(r=>je.jsx(Hi,{align:"right",children:r},r))]},t[0]))})]})});function m3e(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const v3e=/[ \t\n\f\r]/g;function y3e(e){return typeof e=="object"?e.type==="text"?i5(e.value):!1:i5(e)}function i5(e){return e.replace(v3e,"")===""}class yc{constructor(t,r,i){this.property=t,this.normal=r,i&&(this.space=i)}}yc.prototype.property={};yc.prototype.normal={};yc.prototype.space=null;function eP(e,t){const r={},i={};let u=-1;for(;++u4&&r.slice(0,4)==="data"&&T3e.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(l5,C3e);i="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!l5.test(o)){let a=o.replace(k3e,S3e);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}u=Sx}return new u(i,t)}function S3e(e){return"-"+e.toLowerCase()}function C3e(e){return e.charAt(1).toUpperCase()}const O3e={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},A3e=eP([rP,nP,oP,lP,w3e],"html"),sP=eP([rP,nP,oP,lP,_3e],"svg");function P3e(e){return e.join(" ").trim()}var Cx={exports:{}},s5=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,D3e=/\n/g,E3e=/^\s*/,R3e=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,L3e=/^:\s*/,I3e=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,F3e=/^[;\s]*/,N3e=/^\s+|\s+$/g,j3e=` -`,u5="/",c5="*",xo="",$3e="comment",B3e="declaration",z3e=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,i=1;function u(p){var m=p.match(D3e);m&&(r+=m.length);var y=p.lastIndexOf(j3e);i=~y?p.length-y:i+p.length}function o(){var p={line:r,column:i};return function(m){return m.position=new a(p),f(),m}}function a(p){this.start=p,this.end={line:r,column:i},this.source=t.source}a.prototype.content=e;function n(p){var m=new Error(t.source+":"+r+":"+i+": "+p);if(m.reason=p,m.filename=t.source,m.line=r,m.column=i,m.source=e,!t.silent)throw m}function l(p){var m=p.exec(e);if(m){var y=m[0];return u(y),e=e.slice(y.length),m}}function f(){l(E3e)}function s(p){var m;for(p=p||[];m=c();)m!==!1&&p.push(m);return p}function c(){var p=o();if(!(u5!=e.charAt(0)||c5!=e.charAt(1))){for(var m=2;xo!=e.charAt(m)&&(c5!=e.charAt(m)||u5!=e.charAt(m+1));)++m;if(m+=2,xo===e.charAt(m-1))return n("End of comment missing");var y=e.slice(2,m-2);return i+=2,u(y),e=e.slice(m),i+=2,p({type:$3e,comment:y})}}function d(){var p=o(),m=l(R3e);if(m){if(c(),!l(L3e))return n("property missing ':'");var y=l(I3e),v=p({type:B3e,property:f5(m[0].replace(s5,xo)),value:y?f5(y[0].replace(s5,xo)):xo});return l(F3e),v}}function h(){var p=[];s(p);for(var m;m=d();)m!==!1&&(p.push(m),s(p));return p}return f(),h()};function f5(e){return e?e.replace(N3e,xo):xo}var q3e=z3e;function uP(e,t){var r=null;if(!e||typeof e!="string")return r;for(var i,u=q3e(e),o=typeof t=="function",a,n,l=0,f=u.length;l0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function H3e(e){const t=Ox(e),r=cP(e);if(t&&r)return{start:t,end:r}}function Mu(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?d5(e.position):"start"in e||"end"in e?d5(e):"line"in e||"column"in e?ay(e):""}function ay(e){return h5(e&&e.line)+":"+h5(e&&e.column)}function d5(e){return ay(e&&e.start)+"-"+ay(e&&e.end)}function h5(e){return e&&typeof e=="number"?e:1}class xa extends Error{constructor(t,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let u="",o={},a=!1;if(r&&("line"in r&&"column"in r?o={place:r}:"start"in r&&"end"in r?o={place:r}:"type"in r?o={ancestors:[r],place:r.position}:o={...r}),typeof t=="string"?u=t:!o.cause&&t&&(a=!0,u=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof i=="string"){const l=i.indexOf(":");l===-1?o.ruleId=i:(o.source=i.slice(0,l),o.ruleId=i.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const n=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=n?n.column:void 0,this.fatal=void 0,this.file,this.message=u,this.line=n?n.line:void 0,this.name=Mu(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}xa.prototype.file="";xa.prototype.name="";xa.prototype.reason="";xa.prototype.message="";xa.prototype.stack="";xa.prototype.column=void 0;xa.prototype.line=void 0;xa.prototype.ancestors=void 0;xa.prototype.cause=void 0;xa.prototype.fatal=void 0;xa.prototype.place=void 0;xa.prototype.ruleId=void 0;xa.prototype.source=void 0;const Ax={}.hasOwnProperty,V3e=new Map,Y3e=/[A-Z]/g,G3e=/-([a-z])/g,X3e=new Set(["table","tbody","thead","tfoot","tr"]),Z3e=new Set(["td","th"]);function K3e(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=Q3e(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=J3e(r,t.jsx,t.jsxs)}const u={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?sP:A3e,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=dP(u,e,void 0);return o&&typeof o!="string"?o:u.create(e,u.Fragment,{children:o||void 0},void 0)}function dP(e,t,r){if(t.type==="element"||t.type==="root"){const i=e.schema;let u=i;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(u=sP,e.schema=u),e.ancestors.push(t);let o=eTe(e,t);const a=tTe(e,e.ancestors);let n=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(o&&X3e.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!y3e(l):!0})),Ax.call(e.components,t.tagName)){const l=t.tagName;n=e.components[l],typeof n!="string"&&n!==e.Fragment&&e.passNode&&(a.node=t)}else n=t.tagName;if(o.length>0){const l=o.length>1?o:o[0];l&&(a.children=l)}return e.schema=i,e.create(t,n,a,r)}if(t.type==="text")return t.value}function J3e(e,t,r){return i;function i(u,o,a,n){const f=Array.isArray(a.children)?r:t;return n?f(o,a,n):f(o,a)}}function Q3e(e,t){return r;function r(i,u,o,a){const n=Array.isArray(o.children),l=Ox(i);return t(u,o,a,n,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function eTe(e,t){const r=[];let i=-1;const u=e.passKeys?new Map:V3e;for(;++i-1&&e.test(String.fromCharCode(r))}}const hTe={'"':"quot","&":"amp","<":"lt",">":"gt"};function pTe(e){return e.replace(/["&<>]/g,t);function t(r){return"&"+hTe[r]+";"}}function gTe(e,t){const r=pTe(tl(e||""));if(!t)return r;const i=r.indexOf(":"),u=r.indexOf("?"),o=r.indexOf("#"),a=r.indexOf("/");return i<0||a>-1&&i>a||u>-1&&i>u||o>-1&&i>o||t.test(r.slice(0,i))?r:""}function tl(e){const t=[];let r=-1,i=0,u=0;for(;++r55295&&o<57344){const n=e.charCodeAt(r+1);o<56320&&n>56319&&n<57344?(a=String.fromCharCode(o,n),u=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(i,r),encodeURIComponent(a)),i=r+u+1,a=""),u&&(r+=u,u=0)}return t.join("")+e.slice(i)}const mTe={};function vTe(e,t){const r=mTe,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,u=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return pP(e,i,u)}function pP(e,t,r){if(yTe(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return p5(e.children,t,r)}return Array.isArray(e)?p5(e,t,r):""}function p5(e,t,r){const i=[];let u=-1;for(;++uu?0:u+t:t=t>u?u:t,r=r>0?r:0,i.length<1e4)a=Array.from(i),a.unshift(t,r),e.splice(...a);else for(r&&e.splice(t,r);o0?(pi(e,e.length,0,t),e):t}const m5={}.hasOwnProperty;function bTe(e){const t={};let r=-1;for(;++r13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCharCode(r)}function bl(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function vr(e,t,r,i){const u=i?i-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return ar(l)?(e.enter(r),n(l)):t(l)}function n(l){return ar(l)&&o++a))return;const k=t.events.length;let T=k,M,S;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){if(M){S=t.events[T][1].end;break}M=!0}for(v(i),w=k;wb;){const _=r[x];t.containerState=_[1],_[0].exit.call(t,e)}r.length=b}function g(){u.write([null]),o=void 0,u=void 0,t.containerState._closeFlow=void 0}}function STe(e,t,r){return vr(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function y5(e){if(e===null||Sa(e)||dTe(e))return 1;if(fTe(e))return 2}function Dx(e,t,r){const i=[];let u=-1;for(;++u1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const c=Object.assign({},e[i][1].end),d=Object.assign({},e[r][1].start);b5(c,-l),b5(d,l),a={type:l>1?"strongSequence":"emphasisSequence",start:c,end:Object.assign({},e[i][1].end)},n={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[r][1].start),end:d},o={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[i][1].end),end:Object.assign({},e[r][1].start)},u={type:l>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},n.end)},e[i][1].end=Object.assign({},a.start),e[r][1].start=Object.assign({},n.end),f=[],e[i][1].end.offset-e[i][1].start.offset&&(f=za(f,[["enter",e[i][1],t],["exit",e[i][1],t]])),f=za(f,[["enter",u,t],["enter",a,t],["exit",a,t],["enter",o,t]]),f=za(f,Dx(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),f=za(f,[["exit",o,t],["enter",n,t],["exit",n,t],["exit",u,t]]),e[r][1].end.offset-e[r][1].start.offset?(s=2,f=za(f,[["enter",e[r][1],t],["exit",e[r][1],t]])):s=0,pi(e,i-1,r-i+3,f),r=i+f.length-s-2;break}}for(r=-1;++r0&&ar(w)?vr(e,g,"linePrefix",o+1)(w):g(w)}function g(w){return w===null||Fn(w)?e.check(x5,m,x)(w):(e.enter("codeFlowValue"),b(w))}function b(w){return w===null||Fn(w)?(e.exit("codeFlowValue"),g(w)):(e.consume(w),b)}function x(w){return e.exit("codeFenced"),t(w)}function _(w,k,T){let M=0;return S;function S(R){return w.enter("lineEnding"),w.consume(R),w.exit("lineEnding"),C}function C(R){return w.enter("codeFencedFence"),ar(R)?vr(w,P,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):P(R)}function P(R){return R===n?(w.enter("codeFencedFenceSequence"),D(R)):T(R)}function D(R){return R===n?(M++,w.consume(R),D):M>=a?(w.exit("codeFencedFenceSequence"),ar(R)?vr(w,O,"whitespace")(R):O(R)):T(R)}function O(R){return R===null||Fn(R)?(w.exit("codeFencedFence"),k(R)):T(R)}}}function jTe(e,t,r){const i=this;return u;function u(a){return a===null?r(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return i.parser.lazy[i.now().line]?r(a):t(a)}}const v0={name:"codeIndented",tokenize:BTe},$Te={tokenize:zTe,partial:!0};function BTe(e,t,r){const i=this;return u;function u(f){return e.enter("codeIndented"),vr(e,o,"linePrefix",5)(f)}function o(f){const s=i.events[i.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?a(f):r(f)}function a(f){return f===null?l(f):Fn(f)?e.attempt($Te,a,l)(f):(e.enter("codeFlowValue"),n(f))}function n(f){return f===null||Fn(f)?(e.exit("codeFlowValue"),a(f)):(e.consume(f),n)}function l(f){return e.exit("codeIndented"),t(f)}}function zTe(e,t,r){const i=this;return u;function u(a){return i.parser.lazy[i.now().line]?r(a):Fn(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),u):vr(e,o,"linePrefix",5)(a)}function o(a){const n=i.events[i.events.length-1];return n&&n[1].type==="linePrefix"&&n[2].sliceSerialize(n[1],!0).length>=4?t(a):Fn(a)?u(a):r(a)}}const qTe={name:"codeText",tokenize:HTe,resolve:WTe,previous:UTe};function WTe(e){let t=e.length-4,r=3,i,u;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=r;++i=4?t(a):e.interrupt(i.parser.constructs.flow,r,t)(a)}}function xP(e,t,r,i,u,o,a,n,l){const f=l||Number.POSITIVE_INFINITY;let s=0;return c;function c(v){return v===60?(e.enter(i),e.enter(u),e.enter(o),e.consume(v),e.exit(o),d):v===null||v===32||v===41||iy(v)?r(v):(e.enter(i),e.enter(a),e.enter(n),e.enter("chunkString",{contentType:"string"}),m(v))}function d(v){return v===62?(e.enter(o),e.consume(v),e.exit(o),e.exit(u),e.exit(i),t):(e.enter(n),e.enter("chunkString",{contentType:"string"}),h(v))}function h(v){return v===62?(e.exit("chunkString"),e.exit(n),d(v)):v===null||v===60||Fn(v)?r(v):(e.consume(v),v===92?p:h)}function p(v){return v===60||v===62||v===92?(e.consume(v),h):h(v)}function m(v){return!s&&(v===null||v===41||Sa(v))?(e.exit("chunkString"),e.exit(n),e.exit(a),e.exit(i),t(v)):s999||h===null||h===91||h===93&&!l||h===94&&!n&&"_hiddenFootnoteSupport"in a.parser.constructs?r(h):h===93?(e.exit(o),e.enter(u),e.consume(h),e.exit(u),e.exit(i),t):Fn(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===null||h===91||h===93||Fn(h)||n++>999?(e.exit("chunkString"),s(h)):(e.consume(h),l||(l=!ar(h)),h===92?d:c)}function d(h){return h===91||h===92||h===93?(e.consume(h),n++,c):c(h)}}function _P(e,t,r,i,u,o){let a;return n;function n(d){return d===34||d===39||d===40?(e.enter(i),e.enter(u),e.consume(d),e.exit(u),a=d===40?41:d,l):r(d)}function l(d){return d===a?(e.enter(u),e.consume(d),e.exit(u),e.exit(i),t):(e.enter(o),f(d))}function f(d){return d===a?(e.exit(o),l(a)):d===null?r(d):Fn(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),vr(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(d))}function s(d){return d===a||d===null||Fn(d)?(e.exit("chunkString"),f(d)):(e.consume(d),d===92?c:s)}function c(d){return d===a||d===92?(e.consume(d),s):s(d)}}function Su(e,t){let r;return i;function i(u){return Fn(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),r=!0,i):ar(u)?vr(e,i,r?"linePrefix":"lineSuffix")(u):t(u)}}const JTe={name:"definition",tokenize:eke},QTe={tokenize:tke,partial:!0};function eke(e,t,r){const i=this;let u;return o;function o(h){return e.enter("definition"),a(h)}function a(h){return wP.call(i,e,n,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function n(h){return u=bl(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):r(h)}function l(h){return Sa(h)?Su(e,f)(h):f(h)}function f(h){return xP(e,s,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function s(h){return e.attempt(QTe,c,c)(h)}function c(h){return ar(h)?vr(e,d,"whitespace")(h):d(h)}function d(h){return h===null||Fn(h)?(e.exit("definition"),i.parser.defined.push(u),t(h)):r(h)}}function tke(e,t,r){return i;function i(n){return Sa(n)?Su(e,u)(n):r(n)}function u(n){return _P(e,o,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(n)}function o(n){return ar(n)?vr(e,a,"whitespace")(n):a(n)}function a(n){return n===null||Fn(n)?t(n):r(n)}}const nke={name:"hardBreakEscape",tokenize:rke};function rke(e,t,r){return i;function i(o){return e.enter("hardBreakEscape"),e.consume(o),u}function u(o){return Fn(o)?(e.exit("hardBreakEscape"),t(o)):r(o)}}const ake={name:"headingAtx",tokenize:oke,resolve:ike};function ike(e,t){let r=e.length-2,i=3,u,o;return e[i][1].type==="whitespace"&&(i+=2),r-2>i&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&e[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(u={type:"atxHeadingText",start:e[i][1].start,end:e[r][1].end},o={type:"chunkText",start:e[i][1].start,end:e[r][1].end,contentType:"text"},pi(e,i,r-i+1,[["enter",u,t],["enter",o,t],["exit",o,t],["exit",u,t]])),e}function oke(e,t,r){let i=0;return u;function u(s){return e.enter("atxHeading"),o(s)}function o(s){return e.enter("atxHeadingSequence"),a(s)}function a(s){return s===35&&i++<6?(e.consume(s),a):s===null||Sa(s)?(e.exit("atxHeadingSequence"),n(s)):r(s)}function n(s){return s===35?(e.enter("atxHeadingSequence"),l(s)):s===null||Fn(s)?(e.exit("atxHeading"),t(s)):ar(s)?vr(e,n,"whitespace")(s):(e.enter("atxHeadingText"),f(s))}function l(s){return s===35?(e.consume(s),l):(e.exit("atxHeadingSequence"),n(s))}function f(s){return s===null||s===35||Sa(s)?(e.exit("atxHeadingText"),n(s)):(e.consume(s),f)}}const lke=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],_5=["pre","script","style","textarea"],ske={name:"htmlFlow",tokenize:dke,resolveTo:fke,concrete:!0},uke={tokenize:pke,partial:!0},cke={tokenize:hke,partial:!0};function fke(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function dke(e,t,r){const i=this;let u,o,a,n,l;return f;function f(E){return s(E)}function s(E){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(E),c}function c(E){return E===33?(e.consume(E),d):E===47?(e.consume(E),o=!0,m):E===63?(e.consume(E),u=3,i.interrupt?t:$):fi(E)?(e.consume(E),a=String.fromCharCode(E),y):r(E)}function d(E){return E===45?(e.consume(E),u=2,h):E===91?(e.consume(E),u=5,n=0,p):fi(E)?(e.consume(E),u=4,i.interrupt?t:$):r(E)}function h(E){return E===45?(e.consume(E),i.interrupt?t:$):r(E)}function p(E){const W="CDATA[";return E===W.charCodeAt(n++)?(e.consume(E),n===W.length?i.interrupt?t:P:p):r(E)}function m(E){return fi(E)?(e.consume(E),a=String.fromCharCode(E),y):r(E)}function y(E){if(E===null||E===47||E===62||Sa(E)){const W=E===47,G=a.toLowerCase();return!W&&!o&&_5.includes(G)?(u=1,i.interrupt?t(E):P(E)):lke.includes(a.toLowerCase())?(u=6,W?(e.consume(E),v):i.interrupt?t(E):P(E)):(u=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(E):o?g(E):b(E))}return E===45||Ra(E)?(e.consume(E),a+=String.fromCharCode(E),y):r(E)}function v(E){return E===62?(e.consume(E),i.interrupt?t:P):r(E)}function g(E){return ar(E)?(e.consume(E),g):S(E)}function b(E){return E===47?(e.consume(E),S):E===58||E===95||fi(E)?(e.consume(E),x):ar(E)?(e.consume(E),b):S(E)}function x(E){return E===45||E===46||E===58||E===95||Ra(E)?(e.consume(E),x):_(E)}function _(E){return E===61?(e.consume(E),w):ar(E)?(e.consume(E),_):b(E)}function w(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(e.consume(E),l=E,k):ar(E)?(e.consume(E),w):T(E)}function k(E){return E===l?(e.consume(E),l=null,M):E===null||Fn(E)?r(E):(e.consume(E),k)}function T(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||Sa(E)?_(E):(e.consume(E),T)}function M(E){return E===47||E===62||ar(E)?b(E):r(E)}function S(E){return E===62?(e.consume(E),C):r(E)}function C(E){return E===null||Fn(E)?P(E):ar(E)?(e.consume(E),C):r(E)}function P(E){return E===45&&u===2?(e.consume(E),F):E===60&&u===1?(e.consume(E),A):E===62&&u===4?(e.consume(E),j):E===63&&u===3?(e.consume(E),$):E===93&&u===5?(e.consume(E),B):Fn(E)&&(u===6||u===7)?(e.exit("htmlFlowData"),e.check(uke,N,D)(E)):E===null||Fn(E)?(e.exit("htmlFlowData"),D(E)):(e.consume(E),P)}function D(E){return e.check(cke,O,N)(E)}function O(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),R}function R(E){return E===null||Fn(E)?D(E):(e.enter("htmlFlowData"),P(E))}function F(E){return E===45?(e.consume(E),$):P(E)}function A(E){return E===47?(e.consume(E),a="",z):P(E)}function z(E){if(E===62){const W=a.toLowerCase();return _5.includes(W)?(e.consume(E),j):P(E)}return fi(E)&&a.length<8?(e.consume(E),a+=String.fromCharCode(E),z):P(E)}function B(E){return E===93?(e.consume(E),$):P(E)}function $(E){return E===62?(e.consume(E),j):E===45&&u===2?(e.consume(E),$):P(E)}function j(E){return E===null||Fn(E)?(e.exit("htmlFlowData"),N(E)):(e.consume(E),j)}function N(E){return e.exit("htmlFlow"),t(E)}}function hke(e,t,r){const i=this;return u;function u(a){return Fn(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):r(a)}function o(a){return i.parser.lazy[i.now().line]?r(a):t(a)}}function pke(e,t,r){return i;function i(u){return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),e.attempt(Np,t,r)}}const gke={name:"htmlText",tokenize:mke};function mke(e,t,r){const i=this;let u,o,a;return n;function n($){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume($),l}function l($){return $===33?(e.consume($),f):$===47?(e.consume($),_):$===63?(e.consume($),b):fi($)?(e.consume($),T):r($)}function f($){return $===45?(e.consume($),s):$===91?(e.consume($),o=0,p):fi($)?(e.consume($),g):r($)}function s($){return $===45?(e.consume($),h):r($)}function c($){return $===null?r($):$===45?(e.consume($),d):Fn($)?(a=c,A($)):(e.consume($),c)}function d($){return $===45?(e.consume($),h):c($)}function h($){return $===62?F($):$===45?d($):c($)}function p($){const j="CDATA[";return $===j.charCodeAt(o++)?(e.consume($),o===j.length?m:p):r($)}function m($){return $===null?r($):$===93?(e.consume($),y):Fn($)?(a=m,A($)):(e.consume($),m)}function y($){return $===93?(e.consume($),v):m($)}function v($){return $===62?F($):$===93?(e.consume($),v):m($)}function g($){return $===null||$===62?F($):Fn($)?(a=g,A($)):(e.consume($),g)}function b($){return $===null?r($):$===63?(e.consume($),x):Fn($)?(a=b,A($)):(e.consume($),b)}function x($){return $===62?F($):b($)}function _($){return fi($)?(e.consume($),w):r($)}function w($){return $===45||Ra($)?(e.consume($),w):k($)}function k($){return Fn($)?(a=k,A($)):ar($)?(e.consume($),k):F($)}function T($){return $===45||Ra($)?(e.consume($),T):$===47||$===62||Sa($)?M($):r($)}function M($){return $===47?(e.consume($),F):$===58||$===95||fi($)?(e.consume($),S):Fn($)?(a=M,A($)):ar($)?(e.consume($),M):F($)}function S($){return $===45||$===46||$===58||$===95||Ra($)?(e.consume($),S):C($)}function C($){return $===61?(e.consume($),P):Fn($)?(a=C,A($)):ar($)?(e.consume($),C):M($)}function P($){return $===null||$===60||$===61||$===62||$===96?r($):$===34||$===39?(e.consume($),u=$,D):Fn($)?(a=P,A($)):ar($)?(e.consume($),P):(e.consume($),O)}function D($){return $===u?(e.consume($),u=void 0,R):$===null?r($):Fn($)?(a=D,A($)):(e.consume($),D)}function O($){return $===null||$===34||$===39||$===60||$===61||$===96?r($):$===47||$===62||Sa($)?M($):(e.consume($),O)}function R($){return $===47||$===62||Sa($)?M($):r($)}function F($){return $===62?(e.consume($),e.exit("htmlTextData"),e.exit("htmlText"),t):r($)}function A($){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume($),e.exit("lineEnding"),z}function z($){return ar($)?vr(e,B,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):B($)}function B($){return e.enter("htmlTextData"),a($)}}const Ex={name:"labelEnd",tokenize:_ke,resolveTo:wke,resolveAll:xke},vke={tokenize:Tke},yke={tokenize:kke},bke={tokenize:Mke};function xke(e){let t=-1;for(;++t=3&&(f===null||Fn(f))?(e.exit("thematicBreak"),t(f)):r(f)}function l(f){return f===u?(e.consume(f),i++,l):(e.exit("thematicBreakSequence"),ar(f)?vr(e,n,"whitespace")(f):n(f))}}const Ta={name:"list",tokenize:Lke,continuation:{tokenize:Ike},exit:Nke},Eke={tokenize:jke,partial:!0},Rke={tokenize:Fke,partial:!0};function Lke(e,t,r){const i=this,u=i.events[i.events.length-1];let o=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,a=0;return n;function n(h){const p=i.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!i.containerState.marker||h===i.containerState.marker:oy(h)){if(i.containerState.type||(i.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Cf,r,f)(h):f(h);if(!i.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return r(h)}function l(h){return oy(h)&&++a<10?(e.consume(h),l):(!i.interrupt||a<2)&&(i.containerState.marker?h===i.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),f(h)):r(h)}function f(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||h,e.check(Np,i.interrupt?r:s,e.attempt(Eke,d,c))}function s(h){return i.containerState.initialBlankLine=!0,o++,d(h)}function c(h){return ar(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),d):r(h)}function d(h){return i.containerState.size=o+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function Ike(e,t,r){const i=this;return i.containerState._closeFlow=void 0,e.check(Np,u,o);function u(n){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,vr(e,t,"listItemIndent",i.containerState.size+1)(n)}function o(n){return i.containerState.furtherBlankLines||!ar(n)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,a(n)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(Rke,t,a)(n))}function a(n){return i.containerState._closeFlow=!0,i.interrupt=void 0,vr(e,e.attempt(Ta,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(n)}}function Fke(e,t,r){const i=this;return vr(e,u,"listItemIndent",i.containerState.size+1);function u(o){const a=i.events[i.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===i.containerState.size?t(o):r(o)}}function Nke(e){e.exit(this.containerState.type)}function jke(e,t,r){const i=this;return vr(e,u,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(o){const a=i.events[i.events.length-1];return!ar(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):r(o)}}const T5={name:"setextUnderline",tokenize:Bke,resolveTo:$ke};function $ke(e,t){let r=e.length,i,u,o;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(u=r)}else e[r][1].type==="content"&&e.splice(r,1),!o&&e[r][1].type==="definition"&&(o=r);const a={type:"setextHeading",start:Object.assign({},e[u][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[u][1].type="setextHeadingText",o?(e.splice(u,0,["enter",a,t]),e.splice(o+1,0,["exit",e[i][1],t]),e[i][1].end=Object.assign({},e[o][1].end)):e[i][1]=a,e.push(["exit",a,t]),e}function Bke(e,t,r){const i=this;let u;return o;function o(f){let s=i.events.length,c;for(;s--;)if(i.events[s][1].type!=="lineEnding"&&i.events[s][1].type!=="linePrefix"&&i.events[s][1].type!=="content"){c=i.events[s][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||c)?(e.enter("setextHeadingLine"),u=f,a(f)):r(f)}function a(f){return e.enter("setextHeadingLineSequence"),n(f)}function n(f){return f===u?(e.consume(f),n):(e.exit("setextHeadingLineSequence"),ar(f)?vr(e,l,"lineSuffix")(f):l(f))}function l(f){return f===null||Fn(f)?(e.exit("setextHeadingLine"),t(f)):r(f)}}const zke={tokenize:qke};function qke(e){const t=this,r=e.attempt(Np,i,e.attempt(this.parser.constructs.flowInitial,u,vr(e,e.attempt(this.parser.constructs.flow,u,e.attempt(YTe,u)),"linePrefix")));return r;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function u(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const Wke={resolveAll:kP()},Uke=TP("string"),Hke=TP("text");function TP(e){return{tokenize:t,resolveAll:kP(e==="text"?Vke:void 0)};function t(r){const i=this,u=this.parser.constructs[e],o=r.attempt(u,a,n);return a;function a(s){return f(s)?o(s):n(s)}function n(s){if(s===null){r.consume(s);return}return r.enter("data"),r.consume(s),l}function l(s){return f(s)?(r.exit("data"),o(s)):(r.consume(s),l)}function f(s){if(s===null)return!0;const c=u[s];let d=-1;if(c)for(;++d-1){const n=a[0];typeof n=="string"?a[0]=n.slice(i):a.shift()}o>0&&a.push(e[u].slice(0,o))}return a}function Xke(e,t){let r=-1;const i=[];let u;for(;++r0){var E=x.filter(function(G){var L=G.on;return L==="hover"}),W=E.reduce(function(G,L){return Tf({},G,L.style)},{});T(W)}m!==void 0&&m(a,N)},[m,a,x]),P=$e.useCallback(function(){if(x.length>0){var N=x.filter(function(W){var G=W.on;return G!=="hover"}),E=N.reduce(function(W,G){return Tf({},W,G.style)},{});T(E)}b!==void 0&&b(a,event)},[b,a,x]),D=AO({direction:n,justify:l,symbolSize:k.symbolSize||h,symbolSpacing:p,width:c,height:o}),O=D.symbolX,R=D.symbolY,F=D.labelX,A=D.labelY,z=D.labelAnchor,B=D.labelAlignment,$=[v,m,b].some(function(N){return N!==void 0}),j;return qu(d)?j=d:j=zge[d],et.createElement("g",{transform:"translate(".concat(r,",").concat(i,")"),style:{opacity:k.itemOpacity!==void 0?k.itemOpacity:u}},et.createElement("rect",{width:c,height:o,fill:k.itemBackground||s,style:{cursor:$?"pointer":"auto"},onClick:S,onMouseEnter:C,onMouseLeave:P}),et.createElement(j,{id:a.id,x:O,y:R,size:k.symbolSize||h,fill:a.fill||a.color,borderWidth:k.symbolBorderWidth!==void 0?k.symbolBorderWidth:g,borderColor:k.symbolBorderColor||y}),et.createElement("text",{textAnchor:z,style:Tf({},M.legends.text,{fill:k.itemTextColor||f,dominantBaseline:B,pointerEvents:"none",userSelect:"none"}),x:F,y:A},a.label))};Yi.displayName="LegendSvgItem";Yi.propTypes=Tf({data:kp.isRequired,x:oe.number.isRequired,y:oe.number.isRequired,width:oe.number.isRequired,height:oe.number.isRequired,textColor:oe.string,background:oe.string,opacity:oe.number,direction:oe.oneOf(["left-to-right","right-to-left","top-to-bottom","bottom-to-top"]).isRequired,justify:oe.bool.isRequired},_p,Tp);Yi.defaultProps={direction:"left-to-right",justify:!1,textColor:"black",background:"transparent",opacity:1,symbolShape:"square",symbolSize:16,symbolSpacing:8,symbolBorderWidth:0,symbolBorderColor:"transparent",effects:[]};function qge(e){for(var t=1;tt}var nme=tme,rme=LO,ame=nme,ime=Yo;function ome(e){return e&&e.length?rme(e,ime,ame):void 0}var lme=ome;const FO=ir(lme);var sme=Math.ceil,ume=Math.max;function cme(e,t,r,i){for(var c=-1,o=ume(sme((t-e)/(r||1)),0),a=Array(o);o--;)a[i?o:++c]=e,e+=r;return a}var fme=cme,dme=fme,hme=X1,f0=V7;function pme(e){return function(t,r,i){return i&&typeof i!="number"&&hme(t,r,i)&&(r=i=void 0),t=f0(t),r===void 0?(r=t,t=0):r=f0(r),i=i===void 0?t=C0e){var f=t?null:M0e(e);if(f)return S0e(f);a=!1,c=k0e,l=new w0e}else l=t?[]:n;e:for(;++i-1}function hve(e,t){var r=this.__data__,i=Ap(r,e);return i<0?r.push([e,t]):r[i][1]=t,this}us.prototype.clear=uve;us.prototype.delete=cve;us.prototype.get=fve;us.prototype.has=dve;us.prototype.set=hve;function el(e){var t=-1,r=e?e.length:0;for(this.clear();++t11))throw new Error("Invalid size '".concat(t.size,"' for diverging color scheme '").concat(t.scheme,"', must be between 3~11"));var l=ko(kf[t.scheme][t.size||11]),f=function(h){return l(i(h))};return f.scale=l,f}if(Qve(t.scheme)){if(t.size!==void 0&&(t.size<3||t.size>9))throw new Error("Invalid size '".concat(t.size,"' for sequential color scheme '").concat(t.scheme,"', must be between 3~9"));var s=ko(kf[t.scheme][t.size||9]),u=function(h){return s(i(h))};return u.scale=s,u}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return t}},nA=function(t,r){return $e.useMemo(function(){return tA(t,r)},[t,r])};function tye(e,t){return aye(e)||rye(e,t)||nye()}function nye(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function rye(e,t){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]"){var r=[],i=!0,c=!1,o=void 0;try{for(var a=e[Symbol.iterator](),n;!(i=(n=a.next()).done)&&(r.push(n.value),!(t&&r.length===t));i=!0);}catch(l){c=!0,o=l}finally{try{!i&&a.return!=null&&a.return()}finally{if(c)throw o}}return r}}function aye(e){if(Array.isArray(e))return e}var Mf=function(t,r){if(typeof t=="function")return function(d){return t(d)};if(KO(t)){if(t.theme!==void 0){if(r===void 0)throw new Error("Unable to use color from theme as no theme was provided");var i=yd(r,t.theme);if(i===void 0)throw new Error("Color from theme is undefined at path: '".concat(t.theme,"'"));return function(){return i}}if(t.from!==void 0){var c=function(h){return yd(h,t.from)};if(Array.isArray(t.modifiers)){var o=[],a=!0,n=!1,l=void 0;try{for(var f=function(){var h=u.value,p=tye(h,2),g=p[0],y=p[1];if(g==="brighter")o.push(function(v){return v.brighter(y)});else if(g==="darker")o.push(function(v){return v.darker(y)});else if(g==="opacity")o.push(function(v){return v.opacity=y,v});else throw new Error("Invalid color modifier: '".concat(g,"', must be one of: 'brighter', 'darker', 'opacity'"))},s=t.modifiers[Symbol.iterator](),u;!(a=(u=s.next()).done);a=!0)f()}catch(d){n=!0,l=d}finally{try{!a&&s.return!=null&&s.return()}finally{if(n)throw l}}return o.length===0?c:function(d){return o.reduce(function(h,p){return p(h)},Do(c(d))).toString()}}return c}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return t}},bd=function(t,r){return $e.useMemo(function(){return Mf(t,r)},[t,r])},bx=oe.oneOfType([oe.func,oe.arrayOf(oe.string),oe.shape({scheme:oe.oneOf(eye).isRequired,size:oe.number}),oe.shape({datum:oe.string.isRequired}),oe.string]),iye=oe.oneOfType([oe.func,oe.string]),p0=oe.oneOfType([oe.string,oe.func,oe.shape({theme:oe.string.isRequired}),oe.shape({from:oe.string.isRequired,modifiers:oe.arrayOf(oe.array)})]),oye=LC,lye=vc;function sye(e,t){return e&&oye(e,t,lye)}var uye=sye,cye=Jl;function fye(e,t){return function(r,i){if(r==null)return r;if(!cye(r))return e(r,i);for(var c=r.length,o=t?c:-1,a=Object(r);(t?o--:++oc?0:c+t),r=r>c?c:r,r<0&&(r+=c),c=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(c);++i1),o}),pxe(e,vxe(e),r),i&&(r=fxe(r,yxe|bxe|xxe,gxe));for(var c=t.length;c--;)dxe(r,t[c]);return r}),_xe=wxe;const uA=ir(_xe);var Txe=oe.shape({match:oe.oneOfType([oe.func,oe.object]).isRequired,type:oe.oneOf(["circle","rect","dot"]).isRequired,noteX:oe.oneOfType([oe.number,oe.shape({abs:oe.number.isRequired})]).isRequired,noteY:oe.oneOfType([oe.number,oe.shape({abs:oe.number.isRequired})]).isRequired,noteWidth:oe.number,noteTextOffset:oe.number,note:oe.oneOfType([oe.node,oe.func]).isRequired,offset:oe.number}),xd={noteWidth:120,noteTextOffset:8,animate:!0,motionStiffness:90,motionDamping:13};function kxe(e){for(var t=1;t180?(_-=u,k-=u):k+=u,{points:[[y,v],[p,g],[k,T]],text:[_,w],angle:m+90}},cA=function(t){var r=t.items,i=t.annotations,c=t.getPosition,o=t.getDimensions;return $e.useMemo(function(){return Cxe({items:r,annotations:i,getPosition:c,getDimensions:o})},[r,i,c,o])},Pxe=function(t){var r=t.type,i=t.containerWidth,c=t.containerHeight,o=t.x,a=t.y,n=t.size,l=t.width,f=t.height,s=t.noteX,u=t.noteY,d=t.noteWidth,h=t.noteTextOffset;return $e.useMemo(function(){return Axe({type:r,containerWidth:i,containerHeight:c,x:o,y:a,size:n,width:l,height:f,noteX:s,noteY:u,noteWidth:d,noteTextOffset:h})},[r,i,c,o,a,n,l,f,s,u,d,h])};function Dxe(e){for(var t=1;t0&&et.createElement("text",{x:r,y:i,style:Dxe({},o.annotations.text,{strokeLinejoin:"round",strokeWidth:o.annotations.text.outlineWidth*2,stroke:o.annotations.text.outlineColor})},c),et.createElement("text",{x:r,y:i,style:uA(o.annotations.text,["outlineWidth","outlineColor"])},c))});Qu.displayName="AnnotationNote";Qu.propTypes={datum:oe.object.isRequired,x:oe.number.isRequired,y:oe.number.isRequired,note:oe.oneOfType([oe.node,oe.func]).isRequired};Qu.defaultProps={};function Rxe(e){for(var t=1;t0&&et.createElement("circle",{cx:l.x,cy:l.y,r:l.size/2,style:NM({},c.annotations.outline,{fill:"none",strokeWidth:c.annotations.outline.strokeWidth+c.annotations.outline.outlineWidth*2,stroke:c.annotations.outline.outlineColor})}),et.createElement("circle",{cx:l.x,cy:l.y,r:l.size/2,style:c.annotations.outline}))}):et.createElement(et.Fragment,null,c.annotations.outline.outlineWidth>0&&et.createElement("circle",{cx:t,cy:r,r:i/2,style:NM({},c.annotations.outline,{fill:"none",strokeWidth:c.annotations.outline.strokeWidth+c.annotations.outline.outlineWidth*2,stroke:c.annotations.outline.outlineColor})}),et.createElement("circle",{cx:t,cy:r,r:i/2,style:c.annotations.outline}))});xx.displayName="CircleAnnotationOutline";xx.propTypes={x:oe.number.isRequired,y:oe.number.isRequired,size:oe.number.isRequired};function jM(e){for(var t=1;t0&&et.createElement("circle",{cx:l.x,cy:l.y,r:l.size/2,style:jM({},c.annotations.outline,{fill:"none",strokeWidth:c.annotations.outline.outlineWidth*2,stroke:c.annotations.outline.outlineColor})}),et.createElement("circle",{cx:l.x,cy:l.y,r:l.size/2,style:c.annotations.symbol}))}):et.createElement(et.Fragment,null,c.annotations.outline.outlineWidth>0&&et.createElement("circle",{cx:t,cy:r,r:i/2,style:jM({},c.annotations.outline,{fill:"none",strokeWidth:c.annotations.outline.outlineWidth*2,stroke:c.annotations.outline.outlineColor})}),et.createElement("circle",{cx:t,cy:r,r:i/2,style:c.annotations.symbol}))});Dp.displayName="DotAnnotationOutline";Dp.propTypes={x:oe.number.isRequired,y:oe.number.isRequired,size:oe.number.isRequired};Dp.defaultProps={size:4};function $M(e){for(var t=1;t0&&et.createElement("rect",{x:f.x,y:f.y,width:f.width,height:f.height,style:$M({},o.annotations.outline,{fill:"none",strokeWidth:o.annotations.outline.strokeWidth+o.annotations.outline.outlineWidth*2,stroke:o.annotations.outline.outlineColor})}),et.createElement("rect",{x:f.x,y:f.y,width:f.width,height:f.height,style:o.annotations.outline}))}):et.createElement(et.Fragment,null,o.annotations.outline.outlineWidth>0&&et.createElement("rect",{x:t-i/2,y:r-c/2,width:i,height:c,style:$M({},o.annotations.outline,{fill:"none",strokeWidth:o.annotations.outline.strokeWidth+o.annotations.outline.outlineWidth*2,stroke:o.annotations.outline.outlineColor})}),et.createElement("rect",{x:t-i/2,y:r-c/2,width:i,height:c,style:o.annotations.outline}))});wx.displayName="RectAnnotationOutline";wx.propTypes={x:oe.number.isRequired,y:oe.number.isRequired,width:oe.number.isRequired,height:oe.number.isRequired};var xc=$e.memo(function(e){var t=e.datum,r=e.type,i=e.containerWidth,c=e.containerHeight,o=e.x,a=e.y,n=e.size,l=e.width,f=e.height,s=e.noteX,u=e.noteY,d=e.noteWidth,h=e.noteTextOffset,p=e.note,g=Aa(),y=g.animate,v=g.springConfig,m=Pxe({type:r,containerWidth:i,containerHeight:c,x:o,y:a,size:n,width:l,height:f,noteX:s,noteY:u,noteWidth:d,noteTextOffset:h});return et.createElement(et.Fragment,null,et.createElement(ec,{points:m.points,isOutline:!0}),r==="circle"&&et.createElement(xx,{x:o,y:a,size:n}),r==="dot"&&et.createElement(Dp,{x:o,y:a,size:n}),r==="rect"&&et.createElement(wx,{x:o,y:a,width:l,height:f}),et.createElement(ec,{points:m.points}),!y&&et.createElement(Qu,{x:m.text[0],y:m.text[1],note:p}),y&&et.createElement(Ci,{style:{x:An(m.text[0],v),y:An(m.text[1],v)}},function(b){return et.createElement(Qu,{datum:t,x:b.x,y:b.y,note:p})}))});xc.displayName="Annotation";xc.propTypes={datum:oe.object.isRequired,type:oe.oneOf(["circle","rect","dot"]).isRequired,containerWidth:oe.number.isRequired,containerHeight:oe.number.isRequired,x:oe.number.isRequired,y:oe.number.isRequired,size:oe.number,width:oe.number,height:oe.number,noteX:oe.oneOfType([oe.number,oe.shape({abs:oe.number.isRequired})]).isRequired,noteY:oe.oneOfType([oe.number,oe.shape({abs:oe.number.isRequired})]).isRequired,noteWidth:oe.number.isRequired,noteTextOffset:oe.number.isRequired,note:oe.oneOfType([oe.node,oe.func]).isRequired};xc.defaultProps={noteWidth:xd.noteWidth,noteTextOffset:xd.noteTextOffset};var Ep=function(t,r,i,c){return Q1().rangeRound(i).domain(t.map(r)).padding(c)};function BM(e){return Bxe(e)||$xe(e)||jxe()}function jxe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function $xe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Bxe(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t0&&(l=0)),Eo().rangeRound(o).domain([l,n])},zxe=function(t){var r=t.data,i=t.getIndex,c=t.keys,o=t.minValue,a=t.maxValue,n=t.reverse,l=t.width,f=t.height,s=t.getColor,u=t.padding,d=u===void 0?0:u,h=t.innerPadding,p=h===void 0?0:h,g=Ep(r,i,[0,l],d),y=n?[0,f]:[f,0],v=fA(r,c,o,a,y),m=(g.bandwidth()-p*(c.length-1))/c.length,b=v(0),x=function(T){return T>0?v(T):b},_=function(T,M){return T>0?b-M:v(T)-b};n&&(x=function(T){return T<0?v(T):b},_=function(T,M){return T<0?b-M:v(T)-b});var w=[];return m>0&&c.forEach(function(k,T){NO(g.domain().length).forEach(function(M){var S=g(i(r[M]))+m*T+p*T,C=x(r[M][k]),P=_(r[M][k],C);if(m>0&&P>0){var D={id:k,value:r[M][k],index:M,indexValue:i(r[M]),data:r[M]};w.push({key:"".concat(k,".").concat(D.indexValue),data:D,x:S,y:C,width:m,height:P,color:s(D)})}})}),{xScale:g,yScale:v,bars:w}},qxe=function(t){var r=t.data,i=t.getIndex,c=t.keys,o=t.minValue,a=t.maxValue,n=t.reverse,l=t.width,f=t.height,s=t.getColor,u=t.padding,d=u===void 0?0:u,h=t.innerPadding,p=h===void 0?0:h,g=n?[l,0]:[0,l],y=fA(r,c,o,a,g),v=Ep(r,i,[f,0],d),m=(v.bandwidth()-p*(c.length-1))/c.length,b=y(0),x=function(T){return T>0?b:y(T)},_=function(T,M){return T>0?y(T)-b:b-M};n&&(x=function(T){return T<0?b:y(T)},_=function(T,M){return T<0?y(T)-b:b-M});var w=[];return m>0&&c.forEach(function(k,T){NO(v.domain().length).forEach(function(M){var S=x(r[M][k]),C=v(i(r[M]))+m*T+p*T,P=_(r[M][k],S);if(P>0){var D={id:k,value:r[M][k],index:M,indexValue:i(r[M]),data:r[M]};w.push({key:"".concat(k,".").concat(D.indexValue),data:D,x:S,y:C,width:P,height:m,color:s(D)})}})}),{xScale:y,yScale:v,bars:w}},dA=function(t){return t.layout==="vertical"?zxe(t):qxe(t)},hA=function(t,r,i,c){var o=Tme(t,2),a=r;a==="auto"&&(a=IO(o));var n=i;return n==="auto"&&(n=FO(o)),Eo().rangeRound(c).domain([a,n])},Wxe=function(t){var r=t.data,i=t.getIndex,c=t.keys,o=t.minValue,a=t.maxValue,n=t.reverse,l=t.width,f=t.height,s=t.getColor,u=t.padding,d=u===void 0?0:u,h=t.innerPadding,p=h===void 0?0:h,g=W8().keys(c).offset(Mb)(r),y=Ep(r,i,[0,l],d),v=n?[0,f]:[f,0],m=hA(g,o,a,v),b=[],x=y.bandwidth(),_=function(T){return m(T[1])},w=function(T,M){return m(T[0])-M};return n&&(_=function(T){return m(T[0])},w=function(T,M){return m(T[1])-M}),x>0&&g.forEach(function(k){y.domain().forEach(function(T,M){var S=k[M],C=y(i(S.data)),P=_(S),D=w(S,P);if(p>0&&(P+=p*.5,D-=p),D>0){var O={id:k.key,value:S.data[k.key],index:M,indexValue:T,data:S.data};b.push({key:"".concat(k.key,".").concat(T),data:O,x:C,y:P,width:x,height:D,color:s(O)})}})}),{xScale:y,yScale:m,bars:b}},Uxe=function(t){var r=t.data,i=t.getIndex,c=t.keys,o=t.minValue,a=t.maxValue,n=t.reverse,l=t.width,f=t.height,s=t.getColor,u=t.padding,d=u===void 0?0:u,h=t.innerPadding,p=h===void 0?0:h,g=W8().keys(c).offset(Mb)(r),y=n?[l,0]:[0,l],v=hA(g,o,a,y),m=Ep(r,i,[f,0],d),b=[],x=m.bandwidth(),_=function(T){return v(T[0])},w=function(T,M){return v(T[1])-M};return n&&(_=function(T){return v(T[1])},w=function(T,M){return v(T[0])-M}),x>0&&g.forEach(function(k){m.domain().forEach(function(T,M){var S=k[M],C=m(i(S.data)),P={id:k.key,value:S.data[k.key],index:M,indexValue:T,data:S.data},D=_(S),O=w(S,D);p>0&&(D+=p*.5,O-=p),O>0&&b.push({key:"".concat(k.key,".").concat(T),data:P,x:D,y:C,width:O,height:x,color:s(P)})})}),{xScale:v,yScale:m,bars:b}},pA=function(t){return t.layout==="vertical"?Wxe(t):Uxe(t)},Hxe=function(t,r,i,c,o){var a=Ku(t.map(function(n){return{id:n.data.id,label:n.data.id,color:n.color,fill:n.data.fill}}),function(n){var l=n.id;return l});return(r==="vertical"&&c==="stacked"&&i==="column"&&o!==!0||r==="horizontal"&&c==="stacked"&&o===!0)&&a.reverse(),a},Vxe=function(t){return Ku(t.map(function(r){return{id:r.data.indexValue,label:r.data.indexValue,color:r.color,fill:r.data.fill}}),function(r){var i=r.id;return i})},Yxe=function(t){var r=t.from,i=t.bars,c=t.layout,o=t.direction,a=t.groupMode,n=t.reverse;return r==="indexes"?Vxe(i):Hxe(i,c,o,a,n)};function Vv(e){for(var t=1;t0&&ce0&&ye0&&(this.ctx.lineWidth=M.grid.line.strokeWidth,this.ctx.strokeStyle=M.grid.line.stroke,O&&Nl(this.ctx,{width:s,height:u,scale:B.xScale,axis:"x",values:R}),F&&Nl(this.ctx,{width:s,height:u,scale:B.yScale,axis:"y",values:A})),this.ctx.strokeStyle="#dddddd";var $=Ku(B.bars.map(function(N){return{id:N.data.id,label:N.data.id,color:N.color,fill:N.data.fill}}).reverse(),function(N){var E=N.id;return E}),j=Ku(B.bars.map(function(N){return{id:N.data.indexValue,label:N.data.indexValue,color:N.color,fill:N.data.fill}}),function(N){var E=N.id;return E});D.forEach(function(N){var E;if(N.dataFrom==="keys"?E=$:N.dataFrom==="indexes"&&(E=j),E===void 0)return null;hx(c.ctx,qM({},N,{data:E,containerWidth:s,containerHeight:u,itemTextColor:"#999",symbolSize:16,theme:M}))}),Gb(this.ctx,{xScale:B.xScale,yScale:B.yScale,width:s,height:u,top:_,right:w,bottom:k,left:T,theme:M}),B.bars.forEach(function(N){var E=N.x,W=N.y,G=N.color,L=N.width,q=N.height;c.ctx.fillStyle=G,C>0&&(c.ctx.strokeStyle=P(N),c.ctx.lineWidth=C),c.ctx.beginPath(),c.ctx.rect(E,W,L,q),c.ctx.fill(),C>0&&c.ctx.stroke()})}},{key:"render",value:function(){var i=this,c=this.props,o=c.outerWidth,a=c.outerHeight,n=c.pixelRatio,l=c.isInteractive,f=c.theme;return et.createElement(up,{isInteractive:l,theme:f,animate:!1},function(s){var u=s.showTooltip,d=s.hideTooltip;return et.createElement("canvas",{ref:function(p){i.surface=p},width:o*n,height:a*n,style:{width:o,height:a},onMouseEnter:i.handleMouseHover(u,d),onMouseMove:i.handleMouseHover(u,d),onMouseLeave:i.handleMouseLeave(d),onClick:i.handleClick})})}}]),t}($e.Component);xA.propTypes=mA;var d2e=Cb("BarCanvas")(vA(xA));function Zv(){return Zv=Object.assign||function(e){for(var t=1;t{const t=_y();return je.jsx(Jr,{sx:{maxWidth:200,height:50},children:je.jsx(h2e,{data:e.data[e.xField].map((r,i)=>({id:r,x:e.data[e.yField][i]})),theme:t,margin:{top:3,right:3,bottom:3,left:3},indexBy:"id",keys:["x"],colors:[e.color],axisTop:null,axisRight:null,enableGridX:!1,enableGridY:!1})})},g2e=p2e;var m2e=BO;function v2e(e){return e&&e.length?m2e(e):[]}var y2e=v2e;const HM=ir(y2e);var b2e=rA,x2e=Jl;function w2e(e,t){var r=-1,i=x2e(e)?Array(e.length):[];return b2e(e,function(c,o,a){i[++r]=t(c,o,a)}),i}var _2e=w2e;function T2e(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var k2e=T2e,VM=ts;function M2e(e,t){if(e!==t){var r=e!==void 0,i=e===null,c=e===e,o=VM(e),a=t!==void 0,n=t===null,l=t===t,f=VM(t);if(!n&&!f&&!o&&e>t||o&&a&&l&&!n&&!f||i&&a&&l||!r&&l||!c)return 1;if(!i&&!o&&!f&&e=n)return l;var f=r[i];return l*(f=="desc"?-1:1)}}return e.index-t.index}var A2e=O2e,g0=yh,P2e=hc,D2e=px,E2e=_2e,R2e=k2e,L2e=Ql,I2e=A2e,F2e=Yo,N2e=xa;function j2e(e,t,r){t.length?t=g0(t,function(o){return N2e(o)?function(a){return P2e(a,o.length===1?o[0]:o)}:o}):t=[F2e];var i=-1;t=g0(t,L2e(D2e));var c=E2e(e,function(o,a,n){var l=g0(t,function(f){return f(o)});return{criteria:l,index:++i,value:o}});return R2e(c,function(o,a){return I2e(o,a,r)})}var $2e=j2e,B2e=Fb,z2e=$2e,q2e=vh,YM=X1,W2e=q2e(function(e,t){if(e==null)return[];var r=t.length;return r>1&&YM(e,t[0],t[1])?t=[]:r>2&&YM(t[0],t[1],t[2])&&(t=[t[0]]),z2e(e,B2e(t,1),[])}),U2e=W2e;const H2e=ir(U2e);var V2e=Ii,Y2e=Na,G2e="[object Date]";function X2e(e){return Y2e(e)&&V2e(e)==G2e}var Z2e=X2e,K2e=Z2e,J2e=Ql,GM=mh,XM=GM&&GM.isDate,Q2e=XM?J2e(XM):K2e,ewe=Q2e;const twe=ir(ewe);var nwe=function(t,r,i,c){var o=t.axis,a=t.min,n=a===void 0?0:a,l=t.max,f=l===void 0?"auto":l,s=t.stacked,u=s===void 0?!1:s,d=t.reverse,h=d===void 0?!1:d,p=r[o],g=o==="x"?i:c,y=n;n==="auto"&&(y=u===!0?p.minStacked:p.min);var v=f;f==="auto"&&(v=u===!0?p.maxStacked:p.max);var m=Eo().rangeRound(o==="x"?[0,g]:[g,0]);return h===!0?m.domain([v,y]):m.domain([y,v]),m.type="linear",m.stacked=u,m},rwe={type:oe.oneOf(["linear"]).isRequired,min:oe.oneOfType([oe.oneOf(["auto"]),oe.number]),max:oe.oneOfType([oe.oneOf(["auto"]),oe.number]),stacked:oe.bool,reverse:oe.bool},awe=function(t,r,i,c){var o=t.axis,a=t.base,n=a===void 0?10:a,l=t.min,f=l===void 0?"auto":l,s=t.max,u=s===void 0?"auto":s,d=r[o],h=o==="x"?i:c,p=d.all.some(function(x){return x===0}),g,y=!1;if(d.all.forEach(function(x){y!==!0&&(g===void 0?g=Math.sign(x):Math.sign(x)!==g&&(y=!0))}),p||y)throw new Error(["a log scale domain must be strictly-positive or strictly-negative,","and must not include or cross zero."].join(` +`));var v=f;f==="auto"&&(v=d.min);var m=u;u==="auto"&&(m=d.max);var b=c8().domain([v,m]).rangeRound(o==="x"?[0,h]:[h,0]).base(n).nice();return b.type="log",b},iwe={type:oe.oneOf(["log"]).isRequired,base:oe.number,min:oe.oneOfType([oe.oneOf(["auto"]),oe.number]),max:oe.oneOfType([oe.oneOf(["auto"]),oe.number])},owe=function(t,r,i,c){var o=t.axis,a=r[o],n=o==="x"?i:c,l=pne().range([0,n]).domain(a.all);return l.type="point",l},lwe={type:oe.oneOf(["point"]).isRequired},wi;function po(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _x="millisecond",wA="second",_A="minute",TA="hour",kA="day",MA="month",SA="year",swe=[_x,wA,_A,TA,kA,MA,SA],cl=[function(e){return e.setMilliseconds(0)},function(e){return e.setSeconds(0)},function(e){return e.setMinutes(0)},function(e){return e.setHours(0)},function(e){return e.setDate(1)},function(e){return e.setMonth(0)}],uwe=(wi={},po(wi,_x,[]),po(wi,wA,cl.slice(0,1)),po(wi,_A,cl.slice(0,2)),po(wi,TA,cl.slice(0,3)),po(wi,kA,cl.slice(0,4)),po(wi,MA,cl.slice(0,5)),po(wi,SA,cl.slice(0,6)),wi),cwe=function(t){return function(r){return uwe[t].forEach(function(i){i(r)}),r}},CA=function(t){var r=t.format,i=r===void 0?"native":r,c=t.precision,o=c===void 0?"millisecond":c,a=t.useUTC,n=a===void 0?!0:a,l=cwe(o);if(i==="native")return function(s){return l(s)};var f=n?g7(i):p7(i);return function(s){return l(f(s))}},fwe=function(t,r,i,c){var o=t.axis,a=t.format,n=a===void 0?"native":a,l=t.precision,f=l===void 0?_x:l,s=t.min,u=s===void 0?"auto":s,d=t.max,h=d===void 0?"auto":d,p=t.useUTC,g=p===void 0?!0:p,y=r[o],v=o==="x"?i:c,m=CA({format:n,precision:f,useUTC:g}),b=u;u==="auto"?b=y.min:n!=="native"&&(b=m(u));var x=h;h==="auto"?x=y.max:n!=="native"&&(x=m(h));var _=g?Tae():_ae();return _.domain([b,x]).range([0,v]),_.type="time",_.useUTC=g,_},dwe={type:oe.oneOf(["time"]).isRequired,format:oe.string,precision:oe.oneOf(swe)};function _d(e){return gwe(e)||pwe(e)||hwe()}function hwe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function pwe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function gwe(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t3&&arguments[3]!==void 0?arguments[3]:{},o=c.getValue,a=o===void 0?function(h){return h.data[r]}:o,n=c.setValue,l=n===void 0?function(h,p){h.data[r]=p}:n;if(i.type==="linear")t.forEach(function(h){h.data.forEach(function(p){l(p,a(p)===null?null:parseFloat(a(p)))})});else if(i.type==="time"&&i.format!=="native"){var f=CA(i);t.forEach(function(h){h.data.forEach(function(p){l(p,a(p)===null?null:f(a(p)))})})}var s=[];t.forEach(function(h){h.data.forEach(function(p){s.push(a(p))})});var u,d;return i.type==="linear"?(s=HM(s),s=H2e(s,function(h){return h}),u=Math.min.apply(Math,_d(s)),d=Math.max.apply(Math,_d(s))):i.type==="time"?(s=Ku(s,function(h){return h.getTime()}),s=s.slice(0).sort(function(h,p){return p-h}).reverse(),u=s[0],d=Mn(s)):(s=HM(s),u=s[0],d=Mn(s)),{all:s,min:u,max:d}},AA=function(t,r,i,c){var o=vwe(t),a=[];i[o].all.forEach(function(n){var l=twe(n)?bwe:ywe,f=[];c.forEach(function(s){var u=s.data.find(function(g){return l(g.data[o],n)}),d=null,h=null;if(u!==void 0){if(d=u.data[t],d!==null){var p=Mn(f);p===void 0?h=d:p!==null&&(h=p+d)}u.data["".concat(t,"Stacked")]=h}f.push(h),a.push(h)})}),a=a.filter(function(n){return n!==null}),i[t].minStacked=Math.min.apply(Math,_d(a)),i[t].maxStacked=Math.max.apply(Math,_d(a))},wwe=function(t,r,i){return AA("x",t,r,i)},_we=function(t,r,i){return AA("y",t,r,i)},Td=oe.oneOfType([oe.shape(rwe),oe.shape(lwe),oe.shape(dwe),oe.shape(iwe)]);const JM=Math.pow(2,-52),of=new Uint32Array(512);class kd{static from(t,r=Cwe,i=Owe){const c=t.length,o=new Float64Array(c*2);for(let a=0;a>1;if(r>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const i=Math.max(2*r-5,0);this._triangles=new Uint32Array(i*3),this._halfedges=new Int32Array(i*3),this._hashSize=Math.ceil(Math.sqrt(r)),this._hullPrev=new Uint32Array(r),this._hullNext=new Uint32Array(r),this._hullTri=new Uint32Array(r),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(r),this._dists=new Float64Array(r),this.update()}update(){const{coords:t,_hullPrev:r,_hullNext:i,_hullTri:c,_hullHash:o}=this,a=t.length>>1;let n=1/0,l=1/0,f=-1/0,s=-1/0;for(let S=0;Sf&&(f=C),P>s&&(s=P),this._ids[S]=S}const u=(n+f)/2,d=(l+s)/2;let h=1/0,p,g,y;for(let S=0;S0&&(g=S,h=C)}let b=t[2*g],x=t[2*g+1],_=1/0;for(let S=0;SD&&(S[C++]=O,D=this._dists[O])}this.hull=S.subarray(0,C),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(lf(v,m,b,x,w,k)){const S=g,C=b,P=x;g=y,b=w,x=k,y=S,w=C,k=P}const T=Swe(v,m,b,x,w,k);this._cx=T.x,this._cy=T.y;for(let S=0;S0&&Math.abs(O-C)<=JM&&Math.abs(R-P)<=JM||(C=O,P=R,D===p||D===g||D===y))continue;let F=0;for(let j=0,N=this._hashKey(O,R);j0?3-r:1+r)/4}function m0(e,t,r,i){const c=e-r,o=t-i;return c*c+o*o}function v0(e,t,r,i,c,o){const a=(i-t)*(c-e),n=(r-e)*(o-t);return Math.abs(a-n)>=33306690738754716e-32*Math.abs(a+n)?a-n:0}function lf(e,t,r,i,c,o){return(v0(c,o,e,t,r,i)||v0(e,t,r,i,c,o)||v0(r,i,c,o,e,t))<0}function kwe(e,t,r,i,c,o,a,n){const l=e-a,f=t-n,s=r-a,u=i-n,d=c-a,h=o-n,p=l*l+f*f,g=s*s+u*u,y=d*d+h*h;return l*(u*y-g*h)-f*(s*y-g*d)+p*(s*h-u*d)<0}function Mwe(e,t,r,i,c,o){const a=r-e,n=i-t,l=c-e,f=o-t,s=a*a+n*n,u=l*l+f*f,d=.5/(a*f-n*l),h=(f*s-n*u)*d,p=(a*u-l*s)*d;return h*h+p*p}function Swe(e,t,r,i,c,o){const a=r-e,n=i-t,l=c-e,f=o-t,s=a*a+n*n,u=l*l+f*f,d=.5/(a*f-n*l),h=e+(f*s-n*u)*d,p=t+(a*u-l*s)*d;return{x:h,y:p}}function gl(e,t,r,i){if(i-r<=20)for(let c=r+1;c<=i;c++){const o=e[c],a=t[o];let n=c-1;for(;n>=r&&t[e[n]]>a;)e[n+1]=e[n--];e[n+1]=o}else{const c=r+i>>1;let o=r+1,a=i;vu(e,c,o),t[e[r]]>t[e[i]]&&vu(e,r,i),t[e[o]]>t[e[i]]&&vu(e,o,i),t[e[r]]>t[e[o]]&&vu(e,r,o);const n=e[o],l=t[n];for(;;){do o++;while(t[e[o]]l);if(a=a-r?(gl(e,t,o,i),gl(e,t,r,a-1)):(gl(e,t,r,a-1),gl(e,t,o,i))}}function vu(e,t,r){const i=e[t];e[t]=e[r],e[r]=i}function Cwe(e){return e[0]}function Owe(e){return e[1]}const QM=1e-6;class Co{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,r){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,r){this._+=`L${this._x1=+t},${this._y1=+r}`}arc(t,r,i){t=+t,r=+r,i=+i;const c=t+i,o=r;if(i<0)throw new Error("negative radius");this._x1===null?this._+=`M${c},${o}`:(Math.abs(this._x1-c)>QM||Math.abs(this._y1-o)>QM)&&(this._+="L"+c+","+o),i&&(this._+=`A${i},${i},0,1,1,${t-i},${r}A${i},${i},0,1,1,${this._x1=c},${this._y1=o}`)}rect(t,r,i,c){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${+i}v${+c}h${-i}Z`}value(){return this._||null}}class Kv{constructor(){this._=[]}moveTo(t,r){this._.push([t,r])}closePath(){this._.push(this._[0].slice())}lineTo(t,r){this._.push([t,r])}value(){return this._.length?this._:null}}let Awe=class{constructor(t,[r,i,c,o]=[0,0,960,500]){if(!((c=+c)>=(r=+r))||!((o=+o)>=(i=+i)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=c,this.xmin=r,this.ymax=o,this.ymin=i,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:r,triangles:i},vectors:c}=this,o=this.circumcenters=this._circumcenters.subarray(0,i.length/3*2);for(let h=0,p=0,g=i.length,y,v;h1;)o-=2;for(let a=2;a4)for(let a=0;a0){if(r>=this.ymax)return null;(a=(this.ymax-r)/c)0){if(t>=this.xmax)return null;(a=(this.xmax-t)/i)this.xmax?2:0)|(rthis.ymax?8:0)}};const Pwe=2*Math.PI,fl=Math.pow;function Dwe(e){return e[0]}function Ewe(e){return e[1]}function Rwe(e){const{triangles:t,coords:r}=e;for(let i=0;i1e-10)return!1}return!0}function Lwe(e,t,r){return[e+Math.sin(e+t)*r,t+Math.cos(e-t)*r]}class Rp{static from(t,r=Dwe,i=Ewe,c){return new Rp("length"in t?Iwe(t,r,i,c):Float64Array.from(Fwe(t,r,i,c)))}constructor(t){this._delaunator=new kd(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,r=this.points;if(t.hull&&t.hull.length>2&&Rwe(t)){this.collinear=Int32Array.from({length:r.length/2},(d,h)=>h).sort((d,h)=>r[2*d]-r[2*h]||r[2*d+1]-r[2*h+1]);const l=this.collinear[0],f=this.collinear[this.collinear.length-1],s=[r[2*l],r[2*l+1],r[2*f],r[2*f+1]],u=1e-8*Math.hypot(s[3]-s[1],s[2]-s[0]);for(let d=0,h=r.length/2;d0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=c[0],this.triangles[1]=c[1],this.triangles[2]=c[1],a[c[0]]=1,c.length===2&&(a[c[1]]=0))}voronoi(t){return new Awe(this,t)}*neighbors(t){const{inedges:r,hull:i,_hullIndex:c,halfedges:o,triangles:a,collinear:n}=this;if(n){const u=n.indexOf(t);u>0&&(yield n[u-1]),u=0&&o!==i&&o!==c;)i=o;return o}_step(t,r,i){const{inedges:c,hull:o,_hullIndex:a,halfedges:n,triangles:l,points:f}=this;if(c[t]===-1||!f.length)return(t+1)%(f.length>>1);let s=t,u=fl(r-f[t*2],2)+fl(i-f[t*2+1],2);const d=c[t];let h=d;do{let p=l[h];const g=fl(r-f[p*2],2)+fl(i-f[p*2+1],2);if(g0&&(de.lineWidth=H.grid.line.strokeWidth,de.strokeStyle=H.grid.line.stroke,k&&Nl(de,{width:W,height:G,scale:re,axis:"x",values:T}),M&&Nl(de,{width:W,height:G,scale:ie,axis:"y",values:S})),xe==="axes"&&Gb(de,{xScale:re,yScale:ie,width:W,height:G,top:C,right:P,bottom:D,left:O,theme:H}),xe==="areas"&&g===!0&&(de.save(),de.globalAlpha=v,Z.context(de),X.forEach(function(ge){de.fillStyle=ge.color,de.beginPath(),Z(ge.data.map(function(be){return be.position})),de.fill()}),de.restore()),xe==="lines"&&(Y.context(de),X.forEach(function(ge){de.strokeStyle=ge.color,de.lineWidth=p,de.beginPath(),Y(ge.data.map(function(be){return be.position})),de.stroke()})),xe==="points"&&m===!0&&b>0&&le.forEach(function(ge){de.fillStyle=ge.color,de.beginPath(),de.arc(ge.x,ge.y,b/2,0,2*Math.PI),de.fill(),_>0&&(de.strokeStyle=ge.borderColor,de.lineWidth=_,de.stroke())}),xe==="mesh"&&A===!0&&(DA(de,Te),ee&&EA(de,Te,ee.index)),xe==="legends"){var ue=X.map(function(ge){return{id:ge.id,label:ge.id,color:ge.color}}).reverse();R.forEach(function(ge){hx(de,x_e({},ge,{data:ge.data||ue,containerWidth:W,containerHeight:G,theme:H}))})}})},[j,L,q,d,H,Y,X,re,ie,k,T,M,S,C,P,D,O,R,le,m,b,ee]);var Se=$e.useCallback(function(de){var xe=Zu(j.current,de),ue=a5(xe,2),ge=ue[0],be=ue[1];if(!qb(E.left,E.top,W,G,ge,be))return null;var we=pe.find(ge-E.left,be-E.top);return le[we]},[j,E,W,G,pe]),Oe=Vl(),Me=Oe.showTooltipFromEvent,ce=Oe.hideTooltip,ye=$e.useCallback(function(de){var xe=Se(de);U(xe),xe?Me(et.createElement($,{point:xe}),de):ce()},[Se,U,Me,ce,$]),J=$e.useCallback(function(de){ce(),U(null),ee&&z&&z(ee,de)},[ce,U,z]),ne=$e.useCallback(function(de){if(B){var xe=Se(de);xe&&B(xe,de)}},[Se,B]);return et.createElement("canvas",{ref:j,width:L*o,height:q*o,style:{width:L,height:q,cursor:F?"auto":"normal"},onMouseEnter:F?ye:void 0,onMouseMove:F?ye:void 0,onMouseLeave:F?J:void 0,onClick:F?ne:void 0})};Sx.propTypes=Xwe;Sx.defaultProps=Zwe;var M_e=pp(Sx);function ey(){return ey=Object.assign||function(e){for(var t=1;t{const t=_y();return je.jsx(Jr,{sx:{maxWidth:200,height:50},children:je.jsx(S_e,{data:[{id:"1",data:e.data[e.xField].map((r,i)=>({x:r,y:e.data[e.yField][i]}))}],theme:t,margin:{top:0,right:0,bottom:0,left:0},xScale:{type:"linear",min:0,max:25},axisTop:null,colors:[e.color],axisRight:null,enableGridX:!1,enableGridY:!1})})},O_e=C_e;function A_e(e){for(var t=1;t{const t=_y();return je.jsx(Jr,{sx:{maxWidth:200,height:50},children:je.jsx(Q_e,{data:[{id:"1",data:e.data[e.xField].map((r,i)=>({x:r,y:e.data[e.yField][i]}))}],theme:t,margin:{top:3,right:3,bottom:3,left:3},xScale:{type:"linear",min:0,max:1e3},nodeSize:4,colors:[e.color],useMesh:!1,axisTop:null,axisRight:null,enableGridX:!1,enableGridY:!1})})},i3e=a3e,o3e=new Map([["line",(e,t)=>t[e.field]?je.jsx(O_e,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):je.jsx("div",{})],["scatter",(e,t)=>t[e.field]?je.jsx(i3e,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):je.jsx("div",{})],["histogram",(e,t)=>t[e.field]?je.jsx(g2e,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):je.jsx("div",{})]]),l5=e=>e.map(t=>({def:t,gen:o3e.get(t.type??"string")})).map(({def:t,gen:r})=>r?{...t,type:void 0,render:i=>r(t,i)}:{...t,sorting:!0,defaultSort:t.sort,type:"string"}),l3e=e=>{const[t,r]=$e.useState({open:!1,anchorEl:void 0});return je.jsxs(Jr,{sx:{width:50},onClick:i=>r(c=>({open:!c.open,anchorEl:i.currentTarget})),children:[je.jsx(rE,{}),je.jsx(iS,{open:t.open,anchorEl:t.anchorEl,anchorOrigin:{horizontal:"left",vertical:"bottom"},children:je.jsx(Cr,{p:1,children:e.longText})})]})},s3e=e=>{const{columns:t,data:r}=e,i={search:!0,showTitle:!1,pageSize:e.rowsPerPage??5,detailPanelColumnStyle:{minWidth:42},emptyRowsWhenPaging:!1};return je.jsx(et.Fragment,{children:je.jsx($Y,{columns:e.showInfoColumn??!1?[...l5(t),{title:"Info",render:c=>{var o,a,n;return je.jsx(et.Fragment,{children:(o=c.details)!=null&&o.insights?je.jsx(l3e,{longText:`${(a=c.details)==null?void 0:a.insights[0].title}: ${(n=c.details)==null?void 0:n.insights[0].text}`}):je.jsx("div",{})})},width:50}]:[...l5(t)],data:r,detailPanel:({rowData:c})=>c.graphId?je.jsx(WY,{graphId:c.graphId,widgetSize:e.widgetSize}):c.details?je.jsx(A1,{details:c.details,widgetSize:e.widgetSize}):null,options:i})})},s5=e=>je.jsxs("div",{children:[je.jsx(Cr,{align:"center",fontWeight:500,sx:{fontSize:36},children:e.value}),je.jsx(Cr,{align:"center",variant:"h5",fontWeight:500,children:e.label})]}),u3e=e=>je.jsx(et.Fragment,{children:e.counters.length===1?je.jsx(s5,{...e.counters[0]}):je.jsx(Jn,{container:!0,spacing:1,direction:"row",alignItems:"center",children:e.counters.map(t=>je.jsx(Jn,{item:!0,xs:!0,component:Jr,height:"100%",children:je.jsx(Jr,{children:je.jsx(s5,{...t})})},t.label+t.value))})}),c3e=e=>je.jsxs("div",{children:[je.jsxs(Jr,{display:"flex",alignItems:"center",children:[je.jsx(Jr,{width:"100%",mr:1,children:je.jsx(aE,{variant:"determinate",value:e.value/e.maxValue*100})}),je.jsx(Jr,{minWidth:35,children:je.jsx(Cr,{variant:"body2",color:"textSecondary",children:`${Math.round(e.value/e.maxValue*100)}%`})})]}),je.jsx(Jr,{width:"100%",children:je.jsx(Cr,{variant:"body2",color:"textSecondary",children:e.details??""})})]}),f3e=e=>{var f,s,u,d,h,p;const[t,r]=$e.useState(!1),i=fS(),c=dS(),o=(f=e.graph)==null?void 0:f.data.some(({type:g})=>g==="histogram"),a=(i==null?void 0:i.isXaxisAsCategorical)&&!o,n=c==="dark"?{template:{...ml,layout:{...ml.layout,colorway:((d=(u=(s=e.graph)==null?void 0:s.layout.template)==null?void 0:u.layout)==null?void 0:d.colorway)||((h=ml.layout)==null?void 0:h.colorway)}}}:void 0,l=a?{type:"category",categoryorder:"category ascending"}:void 0;return je.jsx(et.Fragment,{children:je.jsxs(Jn,{container:!0,spacing:2,justifyContent:"center",alignItems:"center",children:[je.jsxs(Jn,{item:!0,xs:2,children:[je.jsx(Cr,{variant:"h5",children:e.header}),je.jsx(Cr,{variant:"subtitle1",children:e.description})]}),je.jsx(Jn,{item:!0,xs:e.graph===void 0?10:5,children:je.jsxs(oS,{children:[je.jsx(lS,{children:je.jsxs(Rf,{children:[je.jsx(Vi,{}),e.metricsValuesHeaders.map(g=>je.jsx(Vi,{children:g}))]})}),je.jsx(sS,{children:e.metrics.map(g=>je.jsxs(Rf,{children:[je.jsx(Vi,{children:g.label}),g.values.map(y=>je.jsx(Vi,{children:y}))]}))})]})}),e.graph===void 0?je.jsx(je.Fragment,{}):je.jsx(Jn,{item:!0,xs:5,children:je.jsx(gS,{data:e.graph.data,layout:{...e.graph.layout,...n,title:void 0,xaxis:{...(p=e.graph.layout)==null?void 0:p.xaxis,...l}},config:{responsive:!0},style:{width:"100%",minHeight:150+100*(1+e.widgetSize/2),maxHeight:250}})}),e.details===void 0||e.details.parts.length===0?je.jsx(je.Fragment,{}):je.jsxs(je.Fragment,{children:[je.jsx(Jn,{item:!0,xs:12,children:je.jsx(hi,{variant:"outlined",startIcon:t?je.jsx(iE,{}):je.jsx(oE,{}),onClick:()=>r(g=>!g),children:"Details"})}),je.jsx(Jn,{item:!0,xs:12,children:je.jsx(xy,{in:t,mountOnEnter:!0,unmountOnExit:!0,children:je.jsx(A1,{details:e.details,widgetSize:e.widgetSize})})})]})]})})},d3e=e=>je.jsx(O1,{tabs:e.graphs.map(t=>({title:t.title,tab:je.jsx(Pd,{widgetSize:e.widgetSize,data:t.graph.data,layout:t.graph.layout})}))}),h3e=e=>je.jsx(O1,{tabs:e.tabs.map(t=>({title:t.title,tab:Tc(`${e.id}1`,t.widget)}))}),p3e=e=>je.jsx(lE,{children:je.jsxs(oS,{sx:{minWidth:650},size:"small","aria-label":"a dense table",children:[je.jsx(lS,{children:je.jsxs(Rf,{children:[je.jsx(Vi,{children:e.header[0]},-1),e.header.slice(1).map(t=>je.jsx(Vi,{align:"right",children:t},t))]})}),je.jsx(sS,{children:e.data.map(t=>je.jsxs(Rf,{children:[je.jsx(Vi,{component:"th",scope:"row",children:t[0]},-1),t.slice(1).map(r=>je.jsx(Vi,{align:"right",children:r},r))]},t[0]))})]})});function g3e(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const m3e=/[ \t\n\f\r]/g;function v3e(e){return typeof e=="object"?e.type==="text"?u5(e.value):!1:u5(e)}function u5(e){return e.replace(m3e,"")===""}class wc{constructor(t,r,i){this.property=t,this.normal=r,i&&(this.space=i)}}wc.prototype.property={};wc.prototype.normal={};wc.prototype.space=null;function rP(e,t){const r={},i={};let c=-1;for(;++c4&&r.slice(0,4)==="data"&&_3e.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(f5,S3e);i="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!f5.test(o)){let a=o.replace(T3e,M3e);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}c=Ax}return new c(i,t)}function M3e(e){return"-"+e.toLowerCase()}function S3e(e){return e.charAt(1).toUpperCase()}const C3e={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},O3e=rP([oP,iP,uP,cP,x3e],"html"),fP=rP([oP,iP,uP,cP,w3e],"svg");function A3e(e){return e.join(" ").trim()}var Px={exports:{}},d5=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,P3e=/\n/g,D3e=/^\s*/,E3e=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,R3e=/^:\s*/,L3e=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,I3e=/^[;\s]*/,F3e=/^\s+|\s+$/g,N3e=` +`,h5="/",p5="*",wo="",j3e="comment",$3e="declaration",B3e=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,i=1;function c(p){var g=p.match(P3e);g&&(r+=g.length);var y=p.lastIndexOf(N3e);i=~y?p.length-y:i+p.length}function o(){var p={line:r,column:i};return function(g){return g.position=new a(p),f(),g}}function a(p){this.start=p,this.end={line:r,column:i},this.source=t.source}a.prototype.content=e;function n(p){var g=new Error(t.source+":"+r+":"+i+": "+p);if(g.reason=p,g.filename=t.source,g.line=r,g.column=i,g.source=e,!t.silent)throw g}function l(p){var g=p.exec(e);if(g){var y=g[0];return c(y),e=e.slice(y.length),g}}function f(){l(D3e)}function s(p){var g;for(p=p||[];g=u();)g!==!1&&p.push(g);return p}function u(){var p=o();if(!(h5!=e.charAt(0)||p5!=e.charAt(1))){for(var g=2;wo!=e.charAt(g)&&(p5!=e.charAt(g)||h5!=e.charAt(g+1));)++g;if(g+=2,wo===e.charAt(g-1))return n("End of comment missing");var y=e.slice(2,g-2);return i+=2,c(y),e=e.slice(g),i+=2,p({type:j3e,comment:y})}}function d(){var p=o(),g=l(E3e);if(g){if(u(),!l(R3e))return n("property missing ':'");var y=l(L3e),v=p({type:$3e,property:g5(g[0].replace(d5,wo)),value:y?g5(y[0].replace(d5,wo)):wo});return l(I3e),v}}function h(){var p=[];s(p);for(var g;g=d();)g!==!1&&(p.push(g),s(p));return p}return f(),h()};function g5(e){return e?e.replace(F3e,wo):wo}var z3e=B3e;function dP(e,t){var r=null;if(!e||typeof e!="string")return r;for(var i,c=z3e(e),o=typeof t=="function",a,n,l=0,f=c.length;l0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function U3e(e){const t=Dx(e),r=hP(e);if(t&&r)return{start:t,end:r}}function Ou(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?m5(e.position):"start"in e||"end"in e?m5(e):"line"in e||"column"in e?ly(e):""}function ly(e){return v5(e&&e.line)+":"+v5(e&&e.column)}function m5(e){return ly(e&&e.start)+"-"+ly(e&&e.end)}function v5(e){return e&&typeof e=="number"?e:1}class wa extends Error{constructor(t,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let c="",o={},a=!1;if(r&&("line"in r&&"column"in r?o={place:r}:"start"in r&&"end"in r?o={place:r}:"type"in r?o={ancestors:[r],place:r.position}:o={...r}),typeof t=="string"?c=t:!o.cause&&t&&(a=!0,c=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof i=="string"){const l=i.indexOf(":");l===-1?o.ruleId=i:(o.source=i.slice(0,l),o.ruleId=i.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const n=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=n?n.column:void 0,this.fatal=void 0,this.file,this.message=c,this.line=n?n.line:void 0,this.name=Ou(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}wa.prototype.file="";wa.prototype.name="";wa.prototype.reason="";wa.prototype.message="";wa.prototype.stack="";wa.prototype.column=void 0;wa.prototype.line=void 0;wa.prototype.ancestors=void 0;wa.prototype.cause=void 0;wa.prototype.fatal=void 0;wa.prototype.place=void 0;wa.prototype.ruleId=void 0;wa.prototype.source=void 0;const Ex={}.hasOwnProperty,H3e=new Map,V3e=/[A-Z]/g,Y3e=/-([a-z])/g,G3e=new Set(["table","tbody","thead","tfoot","tr"]),X3e=new Set(["td","th"]);function Z3e(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=J3e(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=K3e(r,t.jsx,t.jsxs)}const c={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?fP:O3e,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=gP(c,e,void 0);return o&&typeof o!="string"?o:c.create(e,c.Fragment,{children:o||void 0},void 0)}function gP(e,t,r){if(t.type==="element"||t.type==="root"){const i=e.schema;let c=i;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(c=fP,e.schema=c),e.ancestors.push(t);let o=Q3e(e,t);const a=eTe(e,e.ancestors);let n=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(o&&G3e.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!v3e(l):!0})),Ex.call(e.components,t.tagName)){const l=t.tagName;n=e.components[l],typeof n!="string"&&n!==e.Fragment&&e.passNode&&(a.node=t)}else n=t.tagName;if(o.length>0){const l=o.length>1?o:o[0];l&&(a.children=l)}return e.schema=i,e.create(t,n,a,r)}if(t.type==="text")return t.value}function K3e(e,t,r){return i;function i(c,o,a,n){const f=Array.isArray(a.children)?r:t;return n?f(o,a,n):f(o,a)}}function J3e(e,t){return r;function r(i,c,o,a){const n=Array.isArray(o.children),l=Dx(i);return t(c,o,a,n,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function Q3e(e,t){const r=[];let i=-1;const c=e.passKeys?new Map:H3e;for(;++i-1&&e.test(String.fromCharCode(r))}}const dTe={'"':"quot","&":"amp","<":"lt",">":"gt"};function hTe(e){return e.replace(/["&<>]/g,t);function t(r){return"&"+dTe[r]+";"}}function pTe(e,t){const r=hTe(nl(e||""));if(!t)return r;const i=r.indexOf(":"),c=r.indexOf("?"),o=r.indexOf("#"),a=r.indexOf("/");return i<0||a>-1&&i>a||c>-1&&i>c||o>-1&&i>o||t.test(r.slice(0,i))?r:""}function nl(e){const t=[];let r=-1,i=0,c=0;for(;++r55295&&o<57344){const n=e.charCodeAt(r+1);o<56320&&n>56319&&n<57344?(a=String.fromCharCode(o,n),c=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(i,r),encodeURIComponent(a)),i=r+c+1,a=""),c&&(r+=c,c=0)}return t.join("")+e.slice(i)}const gTe={};function mTe(e,t){const r=gTe,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,c=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return vP(e,i,c)}function vP(e,t,r){if(vTe(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return y5(e.children,t,r)}return Array.isArray(e)?y5(e,t,r):""}function y5(e,t,r){const i=[];let c=-1;for(;++cc?0:c+t:t=t>c?c:t,r=r>0?r:0,i.length<1e4)a=Array.from(i),a.unshift(t,r),e.splice(...a);else for(r&&e.splice(t,r);o0?(gi(e,e.length,0,t),e):t}const x5={}.hasOwnProperty;function yTe(e){const t={};let r=-1;for(;++r13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCharCode(r)}function wl(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function vr(e,t,r,i){const c=i?i-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return ar(l)?(e.enter(r),n(l)):t(l)}function n(l){return ar(l)&&o++a))return;const k=t.events.length;let T=k,M,S;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){if(M){S=t.events[T][1].end;break}M=!0}for(v(i),w=k;wb;){const _=r[x];t.containerState=_[1],_[0].exit.call(t,e)}r.length=b}function m(){c.write([null]),o=void 0,c=void 0,t.containerState._closeFlow=void 0}}function MTe(e,t,r){return vr(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function _5(e){if(e===null||Ca(e)||fTe(e))return 1;if(cTe(e))return 2}function Lx(e,t,r){const i=[];let c=-1;for(;++c1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const u=Object.assign({},e[i][1].end),d=Object.assign({},e[r][1].start);T5(u,-l),T5(d,l),a={type:l>1?"strongSequence":"emphasisSequence",start:u,end:Object.assign({},e[i][1].end)},n={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[r][1].start),end:d},o={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[i][1].end),end:Object.assign({},e[r][1].start)},c={type:l>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},n.end)},e[i][1].end=Object.assign({},a.start),e[r][1].start=Object.assign({},n.end),f=[],e[i][1].end.offset-e[i][1].start.offset&&(f=qa(f,[["enter",e[i][1],t],["exit",e[i][1],t]])),f=qa(f,[["enter",c,t],["enter",a,t],["exit",a,t],["enter",o,t]]),f=qa(f,Lx(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),f=qa(f,[["exit",o,t],["enter",n,t],["exit",n,t],["exit",c,t]]),e[r][1].end.offset-e[r][1].start.offset?(s=2,f=qa(f,[["enter",e[r][1],t],["exit",e[r][1],t]])):s=0,gi(e,i-1,r-i+3,f),r=i+f.length-s-2;break}}for(r=-1;++r0&&ar(w)?vr(e,m,"linePrefix",o+1)(w):m(w)}function m(w){return w===null||Fn(w)?e.check(k5,g,x)(w):(e.enter("codeFlowValue"),b(w))}function b(w){return w===null||Fn(w)?(e.exit("codeFlowValue"),m(w)):(e.consume(w),b)}function x(w){return e.exit("codeFenced"),t(w)}function _(w,k,T){let M=0;return S;function S(R){return w.enter("lineEnding"),w.consume(R),w.exit("lineEnding"),C}function C(R){return w.enter("codeFencedFence"),ar(R)?vr(w,P,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):P(R)}function P(R){return R===n?(w.enter("codeFencedFenceSequence"),D(R)):T(R)}function D(R){return R===n?(M++,w.consume(R),D):M>=a?(w.exit("codeFencedFenceSequence"),ar(R)?vr(w,O,"whitespace")(R):O(R)):T(R)}function O(R){return R===null||Fn(R)?(w.exit("codeFencedFence"),k(R)):T(R)}}}function NTe(e,t,r){const i=this;return c;function c(a){return a===null?r(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return i.parser.lazy[i.now().line]?r(a):t(a)}}const x0={name:"codeIndented",tokenize:$Te},jTe={tokenize:BTe,partial:!0};function $Te(e,t,r){const i=this;return c;function c(f){return e.enter("codeIndented"),vr(e,o,"linePrefix",5)(f)}function o(f){const s=i.events[i.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?a(f):r(f)}function a(f){return f===null?l(f):Fn(f)?e.attempt(jTe,a,l)(f):(e.enter("codeFlowValue"),n(f))}function n(f){return f===null||Fn(f)?(e.exit("codeFlowValue"),a(f)):(e.consume(f),n)}function l(f){return e.exit("codeIndented"),t(f)}}function BTe(e,t,r){const i=this;return c;function c(a){return i.parser.lazy[i.now().line]?r(a):Fn(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),c):vr(e,o,"linePrefix",5)(a)}function o(a){const n=i.events[i.events.length-1];return n&&n[1].type==="linePrefix"&&n[2].sliceSerialize(n[1],!0).length>=4?t(a):Fn(a)?c(a):r(a)}}const zTe={name:"codeText",tokenize:UTe,resolve:qTe,previous:WTe};function qTe(e){let t=e.length-4,r=3,i,c;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=r;++i=4?t(a):e.interrupt(i.parser.constructs.flow,r,t)(a)}}function TP(e,t,r,i,c,o,a,n,l){const f=l||Number.POSITIVE_INFINITY;let s=0;return u;function u(v){return v===60?(e.enter(i),e.enter(c),e.enter(o),e.consume(v),e.exit(o),d):v===null||v===32||v===41||sy(v)?r(v):(e.enter(i),e.enter(a),e.enter(n),e.enter("chunkString",{contentType:"string"}),g(v))}function d(v){return v===62?(e.enter(o),e.consume(v),e.exit(o),e.exit(c),e.exit(i),t):(e.enter(n),e.enter("chunkString",{contentType:"string"}),h(v))}function h(v){return v===62?(e.exit("chunkString"),e.exit(n),d(v)):v===null||v===60||Fn(v)?r(v):(e.consume(v),v===92?p:h)}function p(v){return v===60||v===62||v===92?(e.consume(v),h):h(v)}function g(v){return!s&&(v===null||v===41||Ca(v))?(e.exit("chunkString"),e.exit(n),e.exit(a),e.exit(i),t(v)):s999||h===null||h===91||h===93&&!l||h===94&&!n&&"_hiddenFootnoteSupport"in a.parser.constructs?r(h):h===93?(e.exit(o),e.enter(c),e.consume(h),e.exit(c),e.exit(i),t):Fn(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),u(h))}function u(h){return h===null||h===91||h===93||Fn(h)||n++>999?(e.exit("chunkString"),s(h)):(e.consume(h),l||(l=!ar(h)),h===92?d:u)}function d(h){return h===91||h===92||h===93?(e.consume(h),n++,u):u(h)}}function MP(e,t,r,i,c,o){let a;return n;function n(d){return d===34||d===39||d===40?(e.enter(i),e.enter(c),e.consume(d),e.exit(c),a=d===40?41:d,l):r(d)}function l(d){return d===a?(e.enter(c),e.consume(d),e.exit(c),e.exit(i),t):(e.enter(o),f(d))}function f(d){return d===a?(e.exit(o),l(a)):d===null?r(d):Fn(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),vr(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(d))}function s(d){return d===a||d===null||Fn(d)?(e.exit("chunkString"),f(d)):(e.consume(d),d===92?u:s)}function u(d){return d===a||d===92?(e.consume(d),s):s(d)}}function Au(e,t){let r;return i;function i(c){return Fn(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),r=!0,i):ar(c)?vr(e,i,r?"linePrefix":"lineSuffix")(c):t(c)}}const KTe={name:"definition",tokenize:QTe},JTe={tokenize:eke,partial:!0};function QTe(e,t,r){const i=this;let c;return o;function o(h){return e.enter("definition"),a(h)}function a(h){return kP.call(i,e,n,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function n(h){return c=wl(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):r(h)}function l(h){return Ca(h)?Au(e,f)(h):f(h)}function f(h){return TP(e,s,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function s(h){return e.attempt(JTe,u,u)(h)}function u(h){return ar(h)?vr(e,d,"whitespace")(h):d(h)}function d(h){return h===null||Fn(h)?(e.exit("definition"),i.parser.defined.push(c),t(h)):r(h)}}function eke(e,t,r){return i;function i(n){return Ca(n)?Au(e,c)(n):r(n)}function c(n){return MP(e,o,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(n)}function o(n){return ar(n)?vr(e,a,"whitespace")(n):a(n)}function a(n){return n===null||Fn(n)?t(n):r(n)}}const tke={name:"hardBreakEscape",tokenize:nke};function nke(e,t,r){return i;function i(o){return e.enter("hardBreakEscape"),e.consume(o),c}function c(o){return Fn(o)?(e.exit("hardBreakEscape"),t(o)):r(o)}}const rke={name:"headingAtx",tokenize:ike,resolve:ake};function ake(e,t){let r=e.length-2,i=3,c,o;return e[i][1].type==="whitespace"&&(i+=2),r-2>i&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&e[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(c={type:"atxHeadingText",start:e[i][1].start,end:e[r][1].end},o={type:"chunkText",start:e[i][1].start,end:e[r][1].end,contentType:"text"},gi(e,i,r-i+1,[["enter",c,t],["enter",o,t],["exit",o,t],["exit",c,t]])),e}function ike(e,t,r){let i=0;return c;function c(s){return e.enter("atxHeading"),o(s)}function o(s){return e.enter("atxHeadingSequence"),a(s)}function a(s){return s===35&&i++<6?(e.consume(s),a):s===null||Ca(s)?(e.exit("atxHeadingSequence"),n(s)):r(s)}function n(s){return s===35?(e.enter("atxHeadingSequence"),l(s)):s===null||Fn(s)?(e.exit("atxHeading"),t(s)):ar(s)?vr(e,n,"whitespace")(s):(e.enter("atxHeadingText"),f(s))}function l(s){return s===35?(e.consume(s),l):(e.exit("atxHeadingSequence"),n(s))}function f(s){return s===null||s===35||Ca(s)?(e.exit("atxHeadingText"),n(s)):(e.consume(s),f)}}const oke=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],S5=["pre","script","style","textarea"],lke={name:"htmlFlow",tokenize:fke,resolveTo:cke,concrete:!0},ske={tokenize:hke,partial:!0},uke={tokenize:dke,partial:!0};function cke(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function fke(e,t,r){const i=this;let c,o,a,n,l;return f;function f(E){return s(E)}function s(E){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(E),u}function u(E){return E===33?(e.consume(E),d):E===47?(e.consume(E),o=!0,g):E===63?(e.consume(E),c=3,i.interrupt?t:$):di(E)?(e.consume(E),a=String.fromCharCode(E),y):r(E)}function d(E){return E===45?(e.consume(E),c=2,h):E===91?(e.consume(E),c=5,n=0,p):di(E)?(e.consume(E),c=4,i.interrupt?t:$):r(E)}function h(E){return E===45?(e.consume(E),i.interrupt?t:$):r(E)}function p(E){const W="CDATA[";return E===W.charCodeAt(n++)?(e.consume(E),n===W.length?i.interrupt?t:P:p):r(E)}function g(E){return di(E)?(e.consume(E),a=String.fromCharCode(E),y):r(E)}function y(E){if(E===null||E===47||E===62||Ca(E)){const W=E===47,G=a.toLowerCase();return!W&&!o&&S5.includes(G)?(c=1,i.interrupt?t(E):P(E)):oke.includes(a.toLowerCase())?(c=6,W?(e.consume(E),v):i.interrupt?t(E):P(E)):(c=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(E):o?m(E):b(E))}return E===45||La(E)?(e.consume(E),a+=String.fromCharCode(E),y):r(E)}function v(E){return E===62?(e.consume(E),i.interrupt?t:P):r(E)}function m(E){return ar(E)?(e.consume(E),m):S(E)}function b(E){return E===47?(e.consume(E),S):E===58||E===95||di(E)?(e.consume(E),x):ar(E)?(e.consume(E),b):S(E)}function x(E){return E===45||E===46||E===58||E===95||La(E)?(e.consume(E),x):_(E)}function _(E){return E===61?(e.consume(E),w):ar(E)?(e.consume(E),_):b(E)}function w(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(e.consume(E),l=E,k):ar(E)?(e.consume(E),w):T(E)}function k(E){return E===l?(e.consume(E),l=null,M):E===null||Fn(E)?r(E):(e.consume(E),k)}function T(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||Ca(E)?_(E):(e.consume(E),T)}function M(E){return E===47||E===62||ar(E)?b(E):r(E)}function S(E){return E===62?(e.consume(E),C):r(E)}function C(E){return E===null||Fn(E)?P(E):ar(E)?(e.consume(E),C):r(E)}function P(E){return E===45&&c===2?(e.consume(E),F):E===60&&c===1?(e.consume(E),A):E===62&&c===4?(e.consume(E),j):E===63&&c===3?(e.consume(E),$):E===93&&c===5?(e.consume(E),B):Fn(E)&&(c===6||c===7)?(e.exit("htmlFlowData"),e.check(ske,N,D)(E)):E===null||Fn(E)?(e.exit("htmlFlowData"),D(E)):(e.consume(E),P)}function D(E){return e.check(uke,O,N)(E)}function O(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),R}function R(E){return E===null||Fn(E)?D(E):(e.enter("htmlFlowData"),P(E))}function F(E){return E===45?(e.consume(E),$):P(E)}function A(E){return E===47?(e.consume(E),a="",z):P(E)}function z(E){if(E===62){const W=a.toLowerCase();return S5.includes(W)?(e.consume(E),j):P(E)}return di(E)&&a.length<8?(e.consume(E),a+=String.fromCharCode(E),z):P(E)}function B(E){return E===93?(e.consume(E),$):P(E)}function $(E){return E===62?(e.consume(E),j):E===45&&c===2?(e.consume(E),$):P(E)}function j(E){return E===null||Fn(E)?(e.exit("htmlFlowData"),N(E)):(e.consume(E),j)}function N(E){return e.exit("htmlFlow"),t(E)}}function dke(e,t,r){const i=this;return c;function c(a){return Fn(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):r(a)}function o(a){return i.parser.lazy[i.now().line]?r(a):t(a)}}function hke(e,t,r){return i;function i(c){return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),e.attempt(jp,t,r)}}const pke={name:"htmlText",tokenize:gke};function gke(e,t,r){const i=this;let c,o,a;return n;function n($){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume($),l}function l($){return $===33?(e.consume($),f):$===47?(e.consume($),_):$===63?(e.consume($),b):di($)?(e.consume($),T):r($)}function f($){return $===45?(e.consume($),s):$===91?(e.consume($),o=0,p):di($)?(e.consume($),m):r($)}function s($){return $===45?(e.consume($),h):r($)}function u($){return $===null?r($):$===45?(e.consume($),d):Fn($)?(a=u,A($)):(e.consume($),u)}function d($){return $===45?(e.consume($),h):u($)}function h($){return $===62?F($):$===45?d($):u($)}function p($){const j="CDATA[";return $===j.charCodeAt(o++)?(e.consume($),o===j.length?g:p):r($)}function g($){return $===null?r($):$===93?(e.consume($),y):Fn($)?(a=g,A($)):(e.consume($),g)}function y($){return $===93?(e.consume($),v):g($)}function v($){return $===62?F($):$===93?(e.consume($),v):g($)}function m($){return $===null||$===62?F($):Fn($)?(a=m,A($)):(e.consume($),m)}function b($){return $===null?r($):$===63?(e.consume($),x):Fn($)?(a=b,A($)):(e.consume($),b)}function x($){return $===62?F($):b($)}function _($){return di($)?(e.consume($),w):r($)}function w($){return $===45||La($)?(e.consume($),w):k($)}function k($){return Fn($)?(a=k,A($)):ar($)?(e.consume($),k):F($)}function T($){return $===45||La($)?(e.consume($),T):$===47||$===62||Ca($)?M($):r($)}function M($){return $===47?(e.consume($),F):$===58||$===95||di($)?(e.consume($),S):Fn($)?(a=M,A($)):ar($)?(e.consume($),M):F($)}function S($){return $===45||$===46||$===58||$===95||La($)?(e.consume($),S):C($)}function C($){return $===61?(e.consume($),P):Fn($)?(a=C,A($)):ar($)?(e.consume($),C):M($)}function P($){return $===null||$===60||$===61||$===62||$===96?r($):$===34||$===39?(e.consume($),c=$,D):Fn($)?(a=P,A($)):ar($)?(e.consume($),P):(e.consume($),O)}function D($){return $===c?(e.consume($),c=void 0,R):$===null?r($):Fn($)?(a=D,A($)):(e.consume($),D)}function O($){return $===null||$===34||$===39||$===60||$===61||$===96?r($):$===47||$===62||Ca($)?M($):(e.consume($),O)}function R($){return $===47||$===62||Ca($)?M($):r($)}function F($){return $===62?(e.consume($),e.exit("htmlTextData"),e.exit("htmlText"),t):r($)}function A($){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume($),e.exit("lineEnding"),z}function z($){return ar($)?vr(e,B,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):B($)}function B($){return e.enter("htmlTextData"),a($)}}const Ix={name:"labelEnd",tokenize:wke,resolveTo:xke,resolveAll:bke},mke={tokenize:_ke},vke={tokenize:Tke},yke={tokenize:kke};function bke(e){let t=-1;for(;++t=3&&(f===null||Fn(f))?(e.exit("thematicBreak"),t(f)):r(f)}function l(f){return f===c?(e.consume(f),i++,l):(e.exit("thematicBreakSequence"),ar(f)?vr(e,n,"whitespace")(f):n(f))}}const ka={name:"list",tokenize:Rke,continuation:{tokenize:Lke},exit:Fke},Dke={tokenize:Nke,partial:!0},Eke={tokenize:Ike,partial:!0};function Rke(e,t,r){const i=this,c=i.events[i.events.length-1];let o=c&&c[1].type==="linePrefix"?c[2].sliceSerialize(c[1],!0).length:0,a=0;return n;function n(h){const p=i.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!i.containerState.marker||h===i.containerState.marker:uy(h)){if(i.containerState.type||(i.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Pf,r,f)(h):f(h);if(!i.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return r(h)}function l(h){return uy(h)&&++a<10?(e.consume(h),l):(!i.interrupt||a<2)&&(i.containerState.marker?h===i.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),f(h)):r(h)}function f(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||h,e.check(jp,i.interrupt?r:s,e.attempt(Dke,d,u))}function s(h){return i.containerState.initialBlankLine=!0,o++,d(h)}function u(h){return ar(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),d):r(h)}function d(h){return i.containerState.size=o+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function Lke(e,t,r){const i=this;return i.containerState._closeFlow=void 0,e.check(jp,c,o);function c(n){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,vr(e,t,"listItemIndent",i.containerState.size+1)(n)}function o(n){return i.containerState.furtherBlankLines||!ar(n)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,a(n)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(Eke,t,a)(n))}function a(n){return i.containerState._closeFlow=!0,i.interrupt=void 0,vr(e,e.attempt(ka,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(n)}}function Ike(e,t,r){const i=this;return vr(e,c,"listItemIndent",i.containerState.size+1);function c(o){const a=i.events[i.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===i.containerState.size?t(o):r(o)}}function Fke(e){e.exit(this.containerState.type)}function Nke(e,t,r){const i=this;return vr(e,c,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function c(o){const a=i.events[i.events.length-1];return!ar(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):r(o)}}const C5={name:"setextUnderline",tokenize:$ke,resolveTo:jke};function jke(e,t){let r=e.length,i,c,o;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(c=r)}else e[r][1].type==="content"&&e.splice(r,1),!o&&e[r][1].type==="definition"&&(o=r);const a={type:"setextHeading",start:Object.assign({},e[c][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[c][1].type="setextHeadingText",o?(e.splice(c,0,["enter",a,t]),e.splice(o+1,0,["exit",e[i][1],t]),e[i][1].end=Object.assign({},e[o][1].end)):e[i][1]=a,e.push(["exit",a,t]),e}function $ke(e,t,r){const i=this;let c;return o;function o(f){let s=i.events.length,u;for(;s--;)if(i.events[s][1].type!=="lineEnding"&&i.events[s][1].type!=="linePrefix"&&i.events[s][1].type!=="content"){u=i.events[s][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||u)?(e.enter("setextHeadingLine"),c=f,a(f)):r(f)}function a(f){return e.enter("setextHeadingLineSequence"),n(f)}function n(f){return f===c?(e.consume(f),n):(e.exit("setextHeadingLineSequence"),ar(f)?vr(e,l,"lineSuffix")(f):l(f))}function l(f){return f===null||Fn(f)?(e.exit("setextHeadingLine"),t(f)):r(f)}}const Bke={tokenize:zke};function zke(e){const t=this,r=e.attempt(jp,i,e.attempt(this.parser.constructs.flowInitial,c,vr(e,e.attempt(this.parser.constructs.flow,c,e.attempt(VTe,c)),"linePrefix")));return r;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function c(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const qke={resolveAll:CP()},Wke=SP("string"),Uke=SP("text");function SP(e){return{tokenize:t,resolveAll:CP(e==="text"?Hke:void 0)};function t(r){const i=this,c=this.parser.constructs[e],o=r.attempt(c,a,n);return a;function a(s){return f(s)?o(s):n(s)}function n(s){if(s===null){r.consume(s);return}return r.enter("data"),r.consume(s),l}function l(s){return f(s)?(r.exit("data"),o(s)):(r.consume(s),l)}function f(s){if(s===null)return!0;const u=c[s];let d=-1;if(u)for(;++d-1){const n=a[0];typeof n=="string"?a[0]=n.slice(i):a.shift()}o>0&&a.push(e[c].slice(0,o))}return a}function Gke(e,t){let r=-1;const i=[];let c;for(;++r0){const de=ye.tokenStack[ye.tokenStack.length-1];(de[1]||M5).call(ye,void 0,de[0])}for(ce.position={start:Ui(Me.length>0?Me[0][1].start:{line:1,column:1,offset:0}),end:Ui(Me.length>0?Me[Me.length-2][1].end:{line:1,column:1,offset:0})},ne=-1;++ne1?"-"+n:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const f={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,f),e.applyData(t,f)}function _Me(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function TMe(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function CP(e,t){const r=t.referenceType;let i="]";if(r==="collapsed"?i+="[]":r==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const u=e.all(t),o=u[0];o&&o.type==="text"?o.value="["+o.value:u.unshift({type:"text",value:"["});const a=u[u.length-1];return a&&a.type==="text"?a.value+=i:u.push({type:"text",value:i}),u}function kMe(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return CP(e,t);const u={src:tl(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(u.title=i.title);const o={type:"element",tagName:"img",properties:u,children:[]};return e.patch(t,o),e.applyData(t,o)}function MMe(e,t){const r={src:tl(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function SMe(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const i={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,i),e.applyData(t,i)}function CMe(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return CP(e,t);const u={href:tl(i.url||"")};i.title!==null&&i.title!==void 0&&(u.title=i.title);const o={type:"element",tagName:"a",properties:u,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function OMe(e,t){const r={href:tl(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function AMe(e,t,r){const i=e.all(t),u=r?PMe(r):OP(t),o={},a=[];if(typeof t.checked=="boolean"){const s=i[0];let c;s&&s.type==="element"&&s.tagName==="p"?c=s:(c={type:"element",tagName:"p",properties:{},children:[]},i.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let n=-1;for(;++n1}function DMe(e,t){const r={},i=e.all(t);let u=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++u0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},n=Ox(t.children[1]),l=cP(t.children[t.children.length-1]);n&&l&&(a.position={start:n,end:l}),u.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(u,!0)};return e.patch(t,o),e.applyData(t,o)}function FMe(e,t,r){const i=r?r.children:void 0,o=(i?i.indexOf(t):1)===0?"th":"td",a=r&&r.type==="table"?r.align:void 0,n=a?a.length:t.children.length;let l=-1;const f=[];for(;++l0,!0),i[0]),u=i.index+i[0].length,i=r.exec(t);return o.push(O5(t.slice(u),u>0,!1)),o.join("")}function O5(e,t,r){let i=0,u=e.length;if(t){let o=e.codePointAt(i);for(;o===S5||o===C5;)i++,o=e.codePointAt(i)}if(r){let o=e.codePointAt(u-1);for(;o===S5||o===C5;)u--,o=e.codePointAt(u-1)}return u>i?e.slice(i,u):""}function $Me(e,t){const r={type:"text",value:jMe(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function BMe(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const zMe={blockquote:mMe,break:vMe,code:yMe,delete:bMe,emphasis:xMe,footnoteReference:wMe,heading:_Me,html:TMe,imageReference:kMe,image:MMe,inlineCode:SMe,linkReference:CMe,link:OMe,listItem:AMe,list:DMe,paragraph:EMe,root:RMe,strong:LMe,table:IMe,tableCell:NMe,tableRow:FMe,text:$Me,thematicBreak:BMe,toml:af,yaml:af,definition:af,footnoteDefinition:af};function af(){}const AP=-1,jp=0,_d=1,Td=2,Rx=3,Lx=4,Ix=5,Fx=6,PP=7,DP=8,A5=typeof self=="object"?self:globalThis,qMe=(e,t)=>{const r=(u,o)=>(e.set(o,u),u),i=u=>{if(e.has(u))return e.get(u);const[o,a]=t[u];switch(o){case jp:case AP:return r(a,u);case _d:{const n=r([],u);for(const l of a)n.push(i(l));return n}case Td:{const n=r({},u);for(const[l,f]of a)n[i(l)]=i(f);return n}case Rx:return r(new Date(a),u);case Lx:{const{source:n,flags:l}=a;return r(new RegExp(n,l),u)}case Ix:{const n=r(new Map,u);for(const[l,f]of a)n.set(i(l),i(f));return n}case Fx:{const n=r(new Set,u);for(const l of a)n.add(i(l));return n}case PP:{const{name:n,message:l}=a;return r(new A5[n](l),u)}case DP:return r(BigInt(a),u);case"BigInt":return r(Object(BigInt(a)),u)}return r(new A5[o](a),u)};return i},P5=e=>qMe(new Map,e)(0),fl="",{toString:WMe}={},{keys:UMe}=Object,mu=e=>{const t=typeof e;if(t!=="object"||!e)return[jp,t];const r=WMe.call(e).slice(8,-1);switch(r){case"Array":return[_d,fl];case"Object":return[Td,fl];case"Date":return[Rx,fl];case"RegExp":return[Lx,fl];case"Map":return[Ix,fl];case"Set":return[Fx,fl]}return r.includes("Array")?[_d,r]:r.includes("Error")?[PP,r]:[Td,r]},of=([e,t])=>e===jp&&(t==="function"||t==="symbol"),HMe=(e,t,r,i)=>{const u=(a,n)=>{const l=i.push(a)-1;return r.set(n,l),l},o=a=>{if(r.has(a))return r.get(a);let[n,l]=mu(a);switch(n){case jp:{let s=a;switch(l){case"bigint":n=DP,s=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);s=null;break;case"undefined":return u([AP],a)}return u([n,s],a)}case _d:{if(l)return u([l,[...a]],a);const s=[],c=u([n,s],a);for(const d of a)s.push(o(d));return c}case Td:{if(l)switch(l){case"BigInt":return u([l,a.toString()],a);case"Boolean":case"Number":case"String":return u([l,a.valueOf()],a)}if(t&&"toJSON"in a)return o(a.toJSON());const s=[],c=u([n,s],a);for(const d of UMe(a))(e||!of(mu(a[d])))&&s.push([o(d),o(a[d])]);return c}case Rx:return u([n,a.toISOString()],a);case Lx:{const{source:s,flags:c}=a;return u([n,{source:s,flags:c}],a)}case Ix:{const s=[],c=u([n,s],a);for(const[d,h]of a)(e||!(of(mu(d))||of(mu(h))))&&s.push([o(d),o(h)]);return c}case Fx:{const s=[],c=u([n,s],a);for(const d of a)(e||!of(mu(d)))&&s.push(o(d));return c}}const{message:f}=a;return u([n,{name:l,message:f}],a)};return o},D5=(e,{json:t,lossy:r}={})=>{const i=[];return HMe(!(t||r),!!t,new Map,i)(e),i},kd=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?P5(D5(e,t)):structuredClone(e):(e,t)=>P5(D5(e,t));function VMe(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function YMe(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function GMe(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||VMe,i=e.options.footnoteBackLabel||YMe,u=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},n=[];let l=-1;for(;++l0&&p.push({type:"text",value:" "});let g=typeof r=="string"?r:r(l,h);typeof g=="string"&&(g={type:"text",value:g}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(l,h),className:["data-footnote-backref"]},children:Array.isArray(g)?g:[g]})}const y=s[s.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const g=y.children[y.children.length-1];g&&g.type==="text"?g.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...p)}else s.push(...p);const v={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(s,!0)};e.patch(f,v),n.push(v)}if(n.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...kd(a),id:"footnote-label"},children:[{type:"text",value:u}]},{type:"text",value:` +`;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&c)continue;a=" ";break}default:a=String.fromCharCode(o)}c=o===-2,i.push(a)}return i.join("")}const Xke={42:ka,43:ka,45:ka,48:ka,49:ka,50:ka,51:ka,52:ka,53:ka,54:ka,55:ka,56:ka,57:ka,62:bP},Zke={91:KTe},Kke={[-2]:x0,[-1]:x0,32:x0},Jke={35:rke,42:Pf,45:[C5,Pf],60:lke,61:C5,95:Pf,96:M5,126:M5},Qke={38:wP,92:xP},eMe={[-5]:w0,[-4]:w0,[-3]:w0,33:Mke,38:wP,42:cy,60:[OTe,pke],91:Cke,92:[tke,xP],93:Ix,95:cy,96:zTe},tMe={null:[cy,qke]},nMe={null:[42,95]},rMe={null:[]},aMe=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:nMe,contentInitial:Zke,disable:rMe,document:Xke,flow:Jke,flowInitial:Kke,insideSpan:tMe,string:Qke,text:eMe},Symbol.toStringTag,{value:"Module"}));function iMe(e){const r=yTe([aMe,...(e||{}).extensions||[]]),i={defined:[],lazy:{},constructs:r,content:c(wTe),document:c(TTe),flow:c(Bke),string:c(Wke),text:c(Uke)};return i;function c(o){return a;function a(n){return Vke(i,o,n)}}}function oMe(e){for(;!_P(e););return e}const O5=/[\0\t\n\r]/g;function lMe(){let e=1,t="",r=!0,i;return c;function c(o,a,n){const l=[];let f,s,u,d,h;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(a||void 0).decode(o)),u=0,t="",r&&(o.charCodeAt(0)===65279&&u++,r=void 0);u0){const de=ye.tokenStack[ye.tokenStack.length-1];(de[1]||A5).call(ye,void 0,de[0])}for(ce.position={start:Hi(Me.length>0?Me[0][1].start:{line:1,column:1,offset:0}),end:Hi(Me.length>0?Me[Me.length-2][1].end:{line:1,column:1,offset:0})},ne=-1;++ne1?"-"+n:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const f={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,f),e.applyData(t,f)}function wMe(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function _Me(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function PP(e,t){const r=t.referenceType;let i="]";if(r==="collapsed"?i+="[]":r==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const c=e.all(t),o=c[0];o&&o.type==="text"?o.value="["+o.value:c.unshift({type:"text",value:"["});const a=c[c.length-1];return a&&a.type==="text"?a.value+=i:c.push({type:"text",value:i}),c}function TMe(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return PP(e,t);const c={src:nl(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(c.title=i.title);const o={type:"element",tagName:"img",properties:c,children:[]};return e.patch(t,o),e.applyData(t,o)}function kMe(e,t){const r={src:nl(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function MMe(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const i={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,i),e.applyData(t,i)}function SMe(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return PP(e,t);const c={href:nl(i.url||"")};i.title!==null&&i.title!==void 0&&(c.title=i.title);const o={type:"element",tagName:"a",properties:c,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function CMe(e,t){const r={href:nl(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function OMe(e,t,r){const i=e.all(t),c=r?AMe(r):DP(t),o={},a=[];if(typeof t.checked=="boolean"){const s=i[0];let u;s&&s.type==="element"&&s.tagName==="p"?u=s:(u={type:"element",tagName:"p",properties:{},children:[]},i.unshift(u)),u.children.length>0&&u.children.unshift({type:"text",value:" "}),u.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let n=-1;for(;++n1}function PMe(e,t){const r={},i=e.all(t);let c=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++c0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},n=Dx(t.children[1]),l=hP(t.children[t.children.length-1]);n&&l&&(a.position={start:n,end:l}),c.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(c,!0)};return e.patch(t,o),e.applyData(t,o)}function IMe(e,t,r){const i=r?r.children:void 0,o=(i?i.indexOf(t):1)===0?"th":"td",a=r&&r.type==="table"?r.align:void 0,n=a?a.length:t.children.length;let l=-1;const f=[];for(;++l0,!0),i[0]),c=i.index+i[0].length,i=r.exec(t);return o.push(E5(t.slice(c),c>0,!1)),o.join("")}function E5(e,t,r){let i=0,c=e.length;if(t){let o=e.codePointAt(i);for(;o===P5||o===D5;)i++,o=e.codePointAt(i)}if(r){let o=e.codePointAt(c-1);for(;o===P5||o===D5;)c--,o=e.codePointAt(c-1)}return c>i?e.slice(i,c):""}function jMe(e,t){const r={type:"text",value:NMe(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function $Me(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const BMe={blockquote:gMe,break:mMe,code:vMe,delete:yMe,emphasis:bMe,footnoteReference:xMe,heading:wMe,html:_Me,imageReference:TMe,image:kMe,inlineCode:MMe,linkReference:SMe,link:CMe,listItem:OMe,list:PMe,paragraph:DMe,root:EMe,strong:RMe,table:LMe,tableCell:FMe,tableRow:IMe,text:jMe,thematicBreak:$Me,toml:sf,yaml:sf,definition:sf,footnoteDefinition:sf};function sf(){}const EP=-1,$p=0,Md=1,Sd=2,Fx=3,Nx=4,jx=5,$x=6,RP=7,LP=8,R5=typeof self=="object"?self:globalThis,zMe=(e,t)=>{const r=(c,o)=>(e.set(o,c),c),i=c=>{if(e.has(c))return e.get(c);const[o,a]=t[c];switch(o){case $p:case EP:return r(a,c);case Md:{const n=r([],c);for(const l of a)n.push(i(l));return n}case Sd:{const n=r({},c);for(const[l,f]of a)n[i(l)]=i(f);return n}case Fx:return r(new Date(a),c);case Nx:{const{source:n,flags:l}=a;return r(new RegExp(n,l),c)}case jx:{const n=r(new Map,c);for(const[l,f]of a)n.set(i(l),i(f));return n}case $x:{const n=r(new Set,c);for(const l of a)n.add(i(l));return n}case RP:{const{name:n,message:l}=a;return r(new R5[n](l),c)}case LP:return r(BigInt(a),c);case"BigInt":return r(Object(BigInt(a)),c)}return r(new R5[o](a),c)};return i},L5=e=>zMe(new Map,e)(0),dl="",{toString:qMe}={},{keys:WMe}=Object,bu=e=>{const t=typeof e;if(t!=="object"||!e)return[$p,t];const r=qMe.call(e).slice(8,-1);switch(r){case"Array":return[Md,dl];case"Object":return[Sd,dl];case"Date":return[Fx,dl];case"RegExp":return[Nx,dl];case"Map":return[jx,dl];case"Set":return[$x,dl]}return r.includes("Array")?[Md,r]:r.includes("Error")?[RP,r]:[Sd,r]},uf=([e,t])=>e===$p&&(t==="function"||t==="symbol"),UMe=(e,t,r,i)=>{const c=(a,n)=>{const l=i.push(a)-1;return r.set(n,l),l},o=a=>{if(r.has(a))return r.get(a);let[n,l]=bu(a);switch(n){case $p:{let s=a;switch(l){case"bigint":n=LP,s=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);s=null;break;case"undefined":return c([EP],a)}return c([n,s],a)}case Md:{if(l)return c([l,[...a]],a);const s=[],u=c([n,s],a);for(const d of a)s.push(o(d));return u}case Sd:{if(l)switch(l){case"BigInt":return c([l,a.toString()],a);case"Boolean":case"Number":case"String":return c([l,a.valueOf()],a)}if(t&&"toJSON"in a)return o(a.toJSON());const s=[],u=c([n,s],a);for(const d of WMe(a))(e||!uf(bu(a[d])))&&s.push([o(d),o(a[d])]);return u}case Fx:return c([n,a.toISOString()],a);case Nx:{const{source:s,flags:u}=a;return c([n,{source:s,flags:u}],a)}case jx:{const s=[],u=c([n,s],a);for(const[d,h]of a)(e||!(uf(bu(d))||uf(bu(h))))&&s.push([o(d),o(h)]);return u}case $x:{const s=[],u=c([n,s],a);for(const d of a)(e||!uf(bu(d)))&&s.push(o(d));return u}}const{message:f}=a;return c([n,{name:l,message:f}],a)};return o},I5=(e,{json:t,lossy:r}={})=>{const i=[];return UMe(!(t||r),!!t,new Map,i)(e),i},Cd=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?L5(I5(e,t)):structuredClone(e):(e,t)=>L5(I5(e,t));function HMe(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function VMe(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function YMe(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||HMe,i=e.options.footnoteBackLabel||VMe,c=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},n=[];let l=-1;for(;++l0&&p.push({type:"text",value:" "});let m=typeof r=="string"?r:r(l,h);typeof m=="string"&&(m={type:"text",value:m}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(l,h),className:["data-footnote-backref"]},children:Array.isArray(m)?m:[m]})}const y=s[s.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const m=y.children[y.children.length-1];m&&m.type==="text"?m.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...p)}else s.push(...p);const v={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(s,!0)};e.patch(f,v),n.push(v)}if(n.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Cd(a),id:"footnote-label"},children:[{type:"text",value:c}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(n,!0)},{type:"text",value:` -`}]}}const EP=function(e){if(e==null)return JMe;if(typeof e=="function")return $p(e);if(typeof e=="object")return Array.isArray(e)?XMe(e):ZMe(e);if(typeof e=="string")return KMe(e);throw new Error("Expected function, string, or object as test")};function XMe(e){const t=[];let r=-1;for(;++r":""))+")"})}return d;function d(){let h=RP,p,m,y;if((!t||o(l,f,s[s.length-1]||void 0))&&(h=r5e(r(l,s)),h[0]===E5))return h;if("children"in l&&l.children){const v=l;if(v.children&&h[0]!==t5e)for(m=(i?v.children.length:-1)+a,y=s.concat(v);m>-1&&m":""))+")"})}return d;function d(){let h=FP,p,g,y;if((!t||o(l,f,s[s.length-1]||void 0))&&(h=n5e(r(l,s)),h[0]===F5))return h;if("children"in l&&l.children){const v=l;if(v.children&&h[0]!==e5e)for(g=(i?v.children.length:-1)+a,y=s.concat(v);g>-1&&g0&&r.push({type:"text",value:` -`}),r}function R5(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function L5(e,t){const r=i5e(e,t),i=r.one(e,void 0),u=GMe(r),o=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return u&&o.children.push({type:"text",value:` -`},u),o}function c5e(e,t){return e&&"run"in e?async function(r,i){const u=L5(r,t);await e.run(u,i)}:function(r){return L5(r,t||e)}}function I5(e){if(e)throw e}var Of=Object.prototype.hasOwnProperty,IP=Object.prototype.toString,F5=Object.defineProperty,N5=Object.getOwnPropertyDescriptor,j5=function(t){return typeof Array.isArray=="function"?Array.isArray(t):IP.call(t)==="[object Array]"},$5=function(t){if(!t||IP.call(t)!=="[object Object]")return!1;var r=Of.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&Of.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!i)return!1;var u;for(u in t);return typeof u>"u"||Of.call(t,u)},B5=function(t,r){F5&&r.name==="__proto__"?F5(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},z5=function(t,r){if(r==="__proto__")if(Of.call(t,r)){if(N5)return N5(t,r).value}else return;return t[r]},f5e=function e(){var t,r,i,u,o,a,n=arguments[0],l=1,f=arguments.length,s=!1;for(typeof n=="boolean"&&(s=n,n=arguments[1]||{},l=2),(n==null||typeof n!="object"&&typeof n!="function")&&(n={});la.length;let l;n&&a.push(u);try{l=e.apply(this,a)}catch(f){const s=f;if(n&&r)throw s;return u(s)}n||(l instanceof Promise?l.then(o,u):l instanceof Error?u(l):o(l))}function u(a,...n){r||(r=!0,t(a,...n))}function o(a){u(null,a)}}const oi={basename:p5e,dirname:g5e,extname:m5e,join:v5e,sep:"/"};function p5e(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');bc(e);let r=0,i=-1,u=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;u--;)if(e.codePointAt(u)===47){if(o){r=u+1;break}}else i<0&&(o=!0,i=u+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let a=-1,n=t.length-1;for(;u--;)if(e.codePointAt(u)===47){if(o){r=u+1;break}}else a<0&&(o=!0,a=u+1),n>-1&&(e.codePointAt(u)===t.codePointAt(n--)?n<0&&(i=u):(n=-1,i=a));return r===i?i=a:i<0&&(i=e.length),e.slice(r,i)}function g5e(e){if(bc(e),e.length===0)return".";let t=-1,r=e.length,i;for(;--r;)if(e.codePointAt(r)===47){if(i){t=r;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function m5e(e){bc(e);let t=e.length,r=-1,i=0,u=-1,o=0,a;for(;t--;){const n=e.codePointAt(t);if(n===47){if(a){i=t+1;break}continue}r<0&&(a=!0,r=t+1),n===46?u<0?u=t:o!==1&&(o=1):u>-1&&(o=-1)}return u<0||r<0||o===0||o===1&&u===r-1&&u===i+1?"":e.slice(u,r)}function v5e(...e){let t=-1,r;for(;++t0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function b5e(e,t){let r="",i=0,u=-1,o=0,a=-1,n,l;for(;++a<=e.length;){if(a2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",i=0):(r=r.slice(0,l),i=r.length-1-r.lastIndexOf("/")),u=a,o=0;continue}}else if(r.length>0){r="",i=0,u=a,o=0;continue}}t&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+e.slice(u+1,a):r=e.slice(u+1,a),i=a-u-1;u=a,o=0}else n===46&&o>-1?o++:o=-1}return r}function bc(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const x5e={cwd:w5e};function w5e(){return"/"}function cy(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function _5e(e){if(typeof e=="string")e=new URL(e);else if(!cy(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return T5e(e)}function T5e(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let r=-1;for(;++r0){let[h,...p]=s;const m=i[d][1];uy(m)&&uy(h)&&(h=b0(!0,m,h)),i[d]=[f,h,...p]}}}}const C5e=new Nx().freeze();function T0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function k0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function M0(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function W5(e){if(!uy(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function U5(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function lf(e){return O5e(e)?e:new FP(e)}function O5e(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function A5e(e){return typeof e=="string"||P5e(e)}function P5e(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const H5={}.hasOwnProperty,D5e="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",V5=[],Y5={allowDangerousHtml:!0},E5e=/^(https?|ircs?|mailto|xmpp)$/i,R5e=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function NP(e){const t=e.allowedElements,r=e.allowElement,i=e.children||"",u=e.className,o=e.components,a=e.disallowedElements,n=e.rehypePlugins||V5,l=e.remarkPlugins||V5,f=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Y5}:Y5,s=e.skipHtml,c=e.unwrapDisallowed,d=e.urlTransform||L5e,h=C5e().use(gMe).use(l).use(c5e,f).use(n),p=new FP;typeof i=="string"&&(p.value=i);for(const g of R5e)Object.hasOwn(e,g.from)&&(""+g.from+(g.to?"use `"+g.to+"` instead":"remove it")+D5e+g.id,void 0);const m=h.parse(p);let y=h.runSync(m,p);return u&&(y={type:"element",tagName:"div",properties:{className:u},children:y.type==="root"?y.children:[y]}),LP(y,v),K3e(y,{Fragment:je.Fragment,components:o,ignoreInvalidStyle:!0,jsx:je.jsx,jsxs:je.jsxs,passKeys:!0,passNode:!0});function v(g,b,x){if(g.type==="raw"&&x&&typeof b=="number")return s?x.children.splice(b,1):x.children[b]={type:"text",value:g.value},b;if(g.type==="element"){let _;for(_ in m0)if(H5.call(m0,_)&&H5.call(g.properties,_)){const w=g.properties[_],k=m0[_];(k===null||k.includes(g.tagName))&&(g.properties[_]=d(String(w||""),_,g))}}if(g.type==="element"){let _=t?!t.includes(g.tagName):a?a.includes(g.tagName):!1;if(!_&&r&&typeof b=="number"&&(_=!r(g,b,x)),_&&x&&typeof b=="number")return c&&g.children?x.children.splice(b,1,...g.children):x.children.splice(b,1),b}}}function L5e(e){return gTe(e,E5e)}const G5=["unknown","success","warning","fail"],jP=e=>{switch(e){case"error":case"unknown":return"info";case"success":return"success";case"warning":return"warning";case"fail":return"error"}},$P=({title:e,description:t,state:r,details:i})=>{const[u,o]=$e.useState({active:!1}),a=i!=null&&i.parts.length>0;return G5.includes(r)||(console.error(`unexpected state: ${r} (expected one of [${G5.join(", ")}])`),r="unknown"),je.jsx(je.Fragment,{children:je.jsxs(Qr,{children:[je.jsxs(py,{severity:jP(r),action:a?je.jsx(di,{onClick:()=>o(n=>({active:!n.active})),color:"inherit",size:"small",children:"Details"}):null,children:[je.jsx(gy,{children:e}),je.jsx(NP,{children:t})]}),a?je.jsx(my,{in:u.active,mountOnEnter:!0,unmountOnExit:!0,children:je.jsx(Qr,{style:{padding:"2px"},children:je.jsx(k1,{details:i,widgetSize:2})})}):je.jsx(je.Fragment,{})]})})},I5e=({type:e,availableTypes:t,onChange:r})=>je.jsx(je.Fragment,{children:je.jsx(eE,{variant:"standard",value:e,onChange:i=>r(i.target.value),native:!0,children:t.map(i=>je.jsx("option",{value:i.id,children:i.title},i.id))})}),F5e=({groupInfo:e,tests:t})=>{const[r,i]=$e.useState({active:!1});return je.jsx(je.Fragment,{children:je.jsxs(Qr,{mt:2,px:2,children:[je.jsxs(py,{severity:jP(e.severity??"unknown"),icon:!1,action:je.jsx(di,{onClick:()=>i(u=>({active:!u.active})),color:"inherit",size:"small",children:r.active?"Hide":"Show"}),children:[je.jsx(gy,{children:e.title}),e.description]}),je.jsx(my,{in:r.active,mountOnEnter:!0,unmountOnExit:!0,children:je.jsx(Jn,{container:!0,spacing:2,style:{padding:10,paddingTop:20},children:t.map(u=>je.jsx(Jn,{item:!0,xs:12,children:je.jsx($P,{...u})}))})})]})})},N5e=({type:e,groupsInfo:t,tests:r})=>{function i(n){if(n==="status")return[t.find(s=>s.id===n).values,s=>s.state];const l=t.find(s=>s.id===n);if(l===void 0)throw"unexpected type";return[l.values.find(s=>s.id==="no group")!==void 0?l.values:[...l.values,{id:"no group",title:"No Group",sortIndex:-1,description:"No group of this type was provided"}],s=>s.groups[n]??"no group"]}const[u,o]=i(e),a=r.reduce((n,l)=>(n.set(o(l),[...n.get(o(l))??[],l]),n),new Map);return je.jsx(je.Fragment,{children:je.jsx(Jn,{container:!0,spacing:2,children:Array.from(a.entries()).map(([n,l])=>[u.find(f=>f.id===n)??{id:n,title:n},l]).sort((n,l)=>(n[0].sortIndex??0)-(l[0].sortIndex??0)).map(([n,l])=>je.jsx(Jn,{item:!0,xs:12,children:je.jsx(F5e,{groupInfo:n,tests:l})}))})})},j5e=[{id:"none",title:"All tests",values:[]},{id:"status",title:"By test status",values:[{id:"success",title:"Passed tests",sortIndex:3,description:"",severity:"success"},{id:"fail",title:"Failed tests",sortIndex:1,description:"",severity:"fail"},{id:"warning",title:"Failed non-critical tests",sortIndex:2,description:"",severity:"warning"},{id:"error",title:"Tests with execution errors",sortIndex:2,description:"",severity:"error"}]}],$5e=({tests:e,testGroupTypes:t})=>{const[r,i]=et.useState({group_type:"none"}),u=[];for(let a=0;as===f)===-1&&u.push(f)}const o=[...j5e,...(t??[]).filter(a=>u.findIndex(n=>n===a.id)!==-1)];return je.jsx(je.Fragment,{children:je.jsxs(Jn,{container:!0,spacing:2,children:[je.jsx(Jn,{item:!0,xs:12,children:je.jsx(I5e,{type:r.group_type,availableTypes:o,onChange:a=>i({group_type:a})})}),je.jsx(Jn,{item:!0,xs:12,children:je.jsx(Jn,{container:!0,spacing:2,children:r.group_type==="none"?e.map(a=>je.jsx(Jn,{item:!0,xs:12,children:je.jsx($P,{...a})},a.title+a.description)):je.jsx(N5e,{type:r.group_type,groupsInfo:o,tests:e})})})]})})},B5e=e=>je.jsx(je.Fragment,{children:je.jsx(NP,{children:e.text})});function sf(e){return e.palette.mode==="dark"?iS:oS}function uf(e){return e.palette.mode==="light"?oS:iS}const fy=e=>{const[t,r]=$e.useState({open:!1});return je.jsxs(Q5,{elevation:0,onClick:i=>r(u=>({open:!u.open,anchorEl:i.currentTarget})),sx:[{color:i=>uf(i)(i.palette.info.main,.6),backgroundColor:i=>sf(i)(i.palette.info.main,.9)},e.data.state==="success"&&{color:i=>uf(i)(i.palette.success.main,.6),backgroundColor:i=>sf(i)(i.palette.success.main,.9)},e.data.state==="warning"&&{color:i=>uf(i)(i.palette.warning.main,.6),backgroundColor:i=>sf(i)(i.palette.warning.main,.9)},e.data.state==="error"&&{color:i=>uf(i)(i.palette.error.main,.6),backgroundColor:i=>sf(i)(i.palette.error.main,.9)}],children:[je.jsx(Cr,{align:"center",variant:"h6",component:"div",children:e.data.value}),je.jsx(Cr,{align:"center",variant:"body1",component:"div",children:e.data.text}),je.jsx(tS,{open:t.open,anchorEl:t.anchorEl,anchorOrigin:{horizontal:"left",vertical:"bottom"},children:e.customPopup??je.jsx(Cr,{padding:1,children:e.data.longText})})]})},X5=e=>{const{alertStats:t}=e;return je.jsx(fy,{data:{value:`${t.triggered.last_24h}`,state:"info",text:"alerts in the last 24 hours",longText:"alerts triggered in the period / alerts triggered in 24 hours / alerts active "},customPopup:je.jsx(Cr,{sx:{pr:1},children:je.jsxs("ul",{children:[je.jsxs("li",{children:[t.triggered.period," alerts triggered in the period"]}),je.jsxs("li",{children:[t.triggered.last_24h," alerts triggered in 24 hours"]}),je.jsxs("li",{children:[t.active," total active alerts"]})]})})})};function z5e(e){return e===12?{xs:12,sm:12,md:12,lg:12}:e===6?{xs:12,sm:12,md:6,lg:6}:e===3?{xs:12,sm:6,md:3,lg:3}:{xs:6,sm:3,md:1,lg:1}}const q5e=e=>{const{size:t,ItemWrapper:r}=e,i=e.children.alertsPosition??"row",{id:u,title:o,details:a,content:n,alerts:l,alertStats:f,insights:s}=e.children,c=l===void 0?!1:l.length>0,d=s===void 0?!1:s.length>0,h=je.jsx(tE,{sx:{border:"1px solid",borderColor:"#d6d6d6",borderRadius:"4px"},elevation:0,children:je.jsx(nE,{children:je.jsxs(Jn,{container:!0,spacing:1,direction:"column",children:[i==="row"?je.jsxs(Jn,{container:!0,spacing:1,item:!0,children:[je.jsxs(Jn,{item:!0,xs:c&&i==="row"?9:12,children:[o?je.jsx(Cr,{fontWeight:500,variant:"h5",children:o}):je.jsx("div",{}),je.jsx("div",{children:n}),a?je.jsx(Cr,{variant:"subtitle1",children:a}):je.jsx("div",{})]}),c?je.jsx(Jn,{container:!0,spacing:1,direction:"column",justifyContent:"center",item:!0,xs:3,children:l?je.jsxs(et.Fragment,{children:[f?je.jsx(Jn,{item:!0,children:je.jsx(X5,{alertStats:f})}):je.jsx("div",{}),l.map(p=>je.jsx(Jn,{item:!0,children:je.jsx(fy,{data:p})}))]}):je.jsx("div",{})}):je.jsx("div",{})]}):je.jsxs(et.Fragment,{children:[je.jsxs(Jn,{item:!0,children:[o?je.jsx(Cr,{variant:"h5",children:o}):je.jsx("div",{}),je.jsx("div",{children:n}),a?je.jsx(Cr,{variant:"subtitle1",children:a}):je.jsx("div",{})]}),c?je.jsx(Jn,{item:!0,xs:!0,children:je.jsx(Jn,{container:!0,direction:"row",spacing:1,children:l?je.jsxs(et.Fragment,{children:[f?je.jsx(Jn,{item:!0,xs:!0,children:je.jsx(X5,{alertStats:f})}):je.jsx("div",{}),l.map(p=>je.jsx(Jn,{item:!0,xs:!0,children:je.jsx(fy,{data:p})}))]}):je.jsx("div",{})})}):je.jsx("div",{})]}),d?s==null?void 0:s.map(p=>je.jsx(Jn,{item:!0,xs:!0,sm:!0,md:!0,children:je.jsx(g6,{data:p})})):je.jsx("div",{})]})})});return je.jsx(Jn,{item:!0,...z5e(t),children:r?r({id:u,children:h}):h})};class BP extends et.Component{render(){return je.jsx(Jn,{container:!0,alignItems:"stretch",spacing:1,direction:"row",mt:1,children:this.props.children})}}var jx={},W5e=vn;Object.defineProperty(jx,"__esModule",{value:!0});var zP=jx.default=void 0,U5e=W5e(Xr()),H5e=je,V5e=(0,U5e.default)((0,H5e.jsx)("path",{d:"m14 7-5 5 5 5V7z"}),"ArrowLeft");zP=jx.default=V5e;var $x={},Y5e=vn;Object.defineProperty($x,"__esModule",{value:!0});var qP=$x.default=void 0,G5e=Y5e(Xr()),X5e=je,Z5e=(0,G5e.default)((0,X5e.jsx)("path",{d:"m10 17 5-5-5-5v10z"}),"ArrowRight");qP=$x.default=Z5e;const K5e=e=>{const[t,r]=et.useState({page:0}),i=e.widgets.slice(t.page*e.pageSize,(t.page+1)*e.pageSize);return je.jsxs(BP,{children:[i.map((u,o)=>xc(`wi_${o}`,u)),je.jsxs(Jn,{item:!0,xs:12,children:[je.jsx(di,{startIcon:je.jsx(zP,{}),disabled:t.page===0,onClick:()=>r(u=>({page:u.page-1})),children:"Previous"}),je.jsxs("span",{children:[t.page+1," / ",Math.round(e.widgets.length/e.pageSize)]}),je.jsx(di,{endIcon:je.jsx(qP,{}),disabled:t.page>=e.widgets.length/e.pageSize-1,onClick:()=>r(u=>({page:u.page+1})),children:"Next"})]})]})};function J5e(e){return e===cf.Small?3:e===cf.Medium?6:(e===cf.Big,12)}function xc(e,t,r){let i=je.jsx(m6,{});if(t.type==="counter")i=je.jsx(n3e,{...t.params});else if(t.type==="percent")i=je.jsx(r3e,{...t.params});else if(t.type==="big_graph")i=je.jsx(Ad,{...t.params,widgetSize:t.size});else if(t.type==="tabbed_graph")i=je.jsx(h3e,{...t.params,widgetSize:t.size});else if(t.type==="tabs")i=je.jsx(p3e,{...t,widgetSize:t.size,id:"twc_"});else if(t.type==="table")i=je.jsx(g3e,{...t.params});else if(t.type==="big_table")i=je.jsx(t3e,{...t.params,widgetSize:t.size});else if(t.type==="group")i=je.jsx(BP,{children:t.widgets.map((u,o)=>xc(`wi_${o}`,u))});else if(t.type==="rich_data")i=je.jsx(d3e,{...t.params,widgetSize:t.size});else if(t.type==="list"){const u=t;i=je.jsx(K5e,{widgets:u.widgets,pageSize:u.pageSize,widgetSize:t.size})}else t.type==="text"?i=je.jsx(B5e,{...t.params}):t.type==="test_suite"&&(i=je.jsx($5e,{...t.params}));return je.jsx(q5e,{size:J5e(t.size),ItemWrapper:r,children:{...t,content:i}},e)}const oSe=({widgets:e,ItemWrapper:t})=>je.jsx(je.Fragment,{children:e.length>0&&e.map((r,i)=>je.jsx(et.Fragment,{children:xc(`wi_${i}`,r,t)},r.id))});export{aSe as C,oSe as D,p6 as a}; +`}),r}function N5(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function j5(e,t){const r=a5e(e,t),i=r.one(e,void 0),c=YMe(r),o=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return c&&o.children.push({type:"text",value:` +`},c),o}function u5e(e,t){return e&&"run"in e?async function(r,i){const c=j5(r,t);await e.run(c,i)}:function(r){return j5(r,t||e)}}function $5(e){if(e)throw e}var Df=Object.prototype.hasOwnProperty,jP=Object.prototype.toString,B5=Object.defineProperty,z5=Object.getOwnPropertyDescriptor,q5=function(t){return typeof Array.isArray=="function"?Array.isArray(t):jP.call(t)==="[object Array]"},W5=function(t){if(!t||jP.call(t)!=="[object Object]")return!1;var r=Df.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&Df.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!i)return!1;var c;for(c in t);return typeof c>"u"||Df.call(t,c)},U5=function(t,r){B5&&r.name==="__proto__"?B5(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},H5=function(t,r){if(r==="__proto__")if(Df.call(t,r)){if(z5)return z5(t,r).value}else return;return t[r]},c5e=function e(){var t,r,i,c,o,a,n=arguments[0],l=1,f=arguments.length,s=!1;for(typeof n=="boolean"&&(s=n,n=arguments[1]||{},l=2),(n==null||typeof n!="object"&&typeof n!="function")&&(n={});la.length;let l;n&&a.push(c);try{l=e.apply(this,a)}catch(f){const s=f;if(n&&r)throw s;return c(s)}n||(l instanceof Promise?l.then(o,c):l instanceof Error?c(l):o(l))}function c(a,...n){r||(r=!0,t(a,...n))}function o(a){c(null,a)}}const li={basename:h5e,dirname:p5e,extname:g5e,join:m5e,sep:"/"};function h5e(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');_c(e);let r=0,i=-1,c=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;c--;)if(e.codePointAt(c)===47){if(o){r=c+1;break}}else i<0&&(o=!0,i=c+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let a=-1,n=t.length-1;for(;c--;)if(e.codePointAt(c)===47){if(o){r=c+1;break}}else a<0&&(o=!0,a=c+1),n>-1&&(e.codePointAt(c)===t.codePointAt(n--)?n<0&&(i=c):(n=-1,i=a));return r===i?i=a:i<0&&(i=e.length),e.slice(r,i)}function p5e(e){if(_c(e),e.length===0)return".";let t=-1,r=e.length,i;for(;--r;)if(e.codePointAt(r)===47){if(i){t=r;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function g5e(e){_c(e);let t=e.length,r=-1,i=0,c=-1,o=0,a;for(;t--;){const n=e.codePointAt(t);if(n===47){if(a){i=t+1;break}continue}r<0&&(a=!0,r=t+1),n===46?c<0?c=t:o!==1&&(o=1):c>-1&&(o=-1)}return c<0||r<0||o===0||o===1&&c===r-1&&c===i+1?"":e.slice(c,r)}function m5e(...e){let t=-1,r;for(;++t0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function y5e(e,t){let r="",i=0,c=-1,o=0,a=-1,n,l;for(;++a<=e.length;){if(a2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",i=0):(r=r.slice(0,l),i=r.length-1-r.lastIndexOf("/")),c=a,o=0;continue}}else if(r.length>0){r="",i=0,c=a,o=0;continue}}t&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+e.slice(c+1,a):r=e.slice(c+1,a),i=a-c-1;c=a,o=0}else n===46&&o>-1?o++:o=-1}return r}function _c(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const b5e={cwd:x5e};function x5e(){return"/"}function hy(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function w5e(e){if(typeof e=="string")e=new URL(e);else if(!hy(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return _5e(e)}function _5e(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let r=-1;for(;++r0){let[h,...p]=s;const g=i[d][1];dy(g)&&dy(h)&&(h=_0(!0,g,h)),i[d]=[f,h,...p]}}}}const S5e=new Bx().freeze();function S0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function C0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function O0(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Y5(e){if(!dy(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function G5(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function cf(e){return C5e(e)?e:new $P(e)}function C5e(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function O5e(e){return typeof e=="string"||A5e(e)}function A5e(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const X5={}.hasOwnProperty,P5e="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Z5=[],K5={allowDangerousHtml:!0},D5e=/^(https?|ircs?|mailto|xmpp)$/i,E5e=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function BP(e){const t=e.allowedElements,r=e.allowElement,i=e.children||"",c=e.className,o=e.components,a=e.disallowedElements,n=e.rehypePlugins||Z5,l=e.remarkPlugins||Z5,f=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...K5}:K5,s=e.skipHtml,u=e.unwrapDisallowed,d=e.urlTransform||R5e,h=S5e().use(pMe).use(l).use(u5e,f).use(n),p=new $P;typeof i=="string"&&(p.value=i);for(const m of E5e)Object.hasOwn(e,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+P5e+m.id,void 0);const g=h.parse(p);let y=h.runSync(g,p);return c&&(y={type:"element",tagName:"div",properties:{className:c},children:y.type==="root"?y.children:[y]}),NP(y,v),Z3e(y,{Fragment:je.Fragment,components:o,ignoreInvalidStyle:!0,jsx:je.jsx,jsxs:je.jsxs,passKeys:!0,passNode:!0});function v(m,b,x){if(m.type==="raw"&&x&&typeof b=="number")return s?x.children.splice(b,1):x.children[b]={type:"text",value:m.value},b;if(m.type==="element"){let _;for(_ in b0)if(X5.call(b0,_)&&X5.call(m.properties,_)){const w=m.properties[_],k=b0[_];(k===null||k.includes(m.tagName))&&(m.properties[_]=d(String(w||""),_,m))}}if(m.type==="element"){let _=t?!t.includes(m.tagName):a?a.includes(m.tagName):!1;if(!_&&r&&typeof b=="number"&&(_=!r(m,b,x)),_&&x&&typeof b=="number")return u&&m.children?x.children.splice(b,1,...m.children):x.children.splice(b,1),b}}}function R5e(e){return pTe(e,D5e)}const J5=["unknown","success","warning","fail"],zP=e=>{switch(e){case"error":case"unknown":return"info";case"success":return"success";case"warning":return"warning";case"fail":return"error"}},qP=({title:e,description:t,state:r,details:i})=>{const[c,o]=$e.useState({active:!1}),a=i!=null&&i.parts.length>0;return J5.includes(r)||(console.error(`unexpected state: ${r} (expected one of [${J5.join(", ")}])`),r="unknown"),je.jsx(je.Fragment,{children:je.jsxs(Jr,{children:[je.jsxs(wy,{severity:zP(r),action:a?je.jsx(hi,{onClick:()=>o(n=>({active:!n.active})),color:"inherit",size:"small",children:"Details"}):null,children:[je.jsx(by,{children:e}),je.jsx(BP,{children:t})]}),a?je.jsx(xy,{in:c.active,mountOnEnter:!0,unmountOnExit:!0,children:je.jsx(Jr,{style:{padding:"2px"},children:je.jsx(A1,{details:i,widgetSize:2})})}):je.jsx(je.Fragment,{})]})})},L5e=({type:e,availableTypes:t,onChange:r})=>je.jsx(je.Fragment,{children:je.jsx(sE,{variant:"standard",value:e,onChange:i=>r(i.target.value),native:!0,children:t.map(i=>je.jsx("option",{value:i.id,children:i.title},i.id))})}),I5e=({groupInfo:e,tests:t})=>{const[r,i]=$e.useState({active:!1});return je.jsx(je.Fragment,{children:je.jsxs(Jr,{mt:2,px:2,children:[je.jsxs(wy,{severity:zP(e.severity??"unknown"),icon:!1,action:je.jsx(hi,{onClick:()=>i(c=>({active:!c.active})),color:"inherit",size:"small",children:r.active?"Hide":"Show"}),children:[je.jsx(by,{children:e.title}),e.description]}),je.jsx(xy,{in:r.active,mountOnEnter:!0,unmountOnExit:!0,children:je.jsx(Jn,{container:!0,spacing:2,style:{padding:10,paddingTop:20},children:t.map(c=>je.jsx(Jn,{item:!0,xs:12,children:je.jsx(qP,{...c})}))})})]})})},F5e=({type:e,groupsInfo:t,tests:r})=>{function i(n){if(n==="status")return[t.find(s=>s.id===n).values,s=>s.state];const l=t.find(s=>s.id===n);if(l===void 0)throw"unexpected type";return[l.values.find(s=>s.id==="no group")!==void 0?l.values:[...l.values,{id:"no group",title:"No Group",sortIndex:-1,description:"No group of this type was provided"}],s=>s.groups[n]??"no group"]}const[c,o]=i(e),a=r.reduce((n,l)=>(n.set(o(l),[...n.get(o(l))??[],l]),n),new Map);return je.jsx(je.Fragment,{children:je.jsx(Jn,{container:!0,spacing:2,children:Array.from(a.entries()).map(([n,l])=>[c.find(f=>f.id===n)??{id:n,title:n},l]).sort((n,l)=>(n[0].sortIndex??0)-(l[0].sortIndex??0)).map(([n,l])=>je.jsx(Jn,{item:!0,xs:12,children:je.jsx(I5e,{groupInfo:n,tests:l})}))})})},N5e=[{id:"none",title:"All tests",values:[]},{id:"status",title:"By test status",values:[{id:"success",title:"Passed tests",sortIndex:3,description:"",severity:"success"},{id:"fail",title:"Failed tests",sortIndex:1,description:"",severity:"fail"},{id:"warning",title:"Failed non-critical tests",sortIndex:2,description:"",severity:"warning"},{id:"error",title:"Tests with execution errors",sortIndex:2,description:"",severity:"error"}]}],j5e=({tests:e,testGroupTypes:t})=>{const[r,i]=et.useState({group_type:"none"}),c=[];for(let a=0;as===f)===-1&&c.push(f)}const o=[...N5e,...(t??[]).filter(a=>c.findIndex(n=>n===a.id)!==-1)];return je.jsx(je.Fragment,{children:je.jsxs(Jn,{container:!0,spacing:2,children:[je.jsx(Jn,{item:!0,xs:12,children:je.jsx(L5e,{type:r.group_type,availableTypes:o,onChange:a=>i({group_type:a})})}),je.jsx(Jn,{item:!0,xs:12,children:je.jsx(Jn,{container:!0,spacing:2,children:r.group_type==="none"?e.map(a=>je.jsx(Jn,{item:!0,xs:12,children:je.jsx(qP,{...a})},a.title+a.description)):je.jsx(F5e,{type:r.group_type,groupsInfo:o,tests:e})})})]})})},$5e=e=>je.jsx(je.Fragment,{children:je.jsx(BP,{children:e.text})});function ff(e){return e.palette.mode==="dark"?uS:cS}function df(e){return e.palette.mode==="light"?cS:uS}const py=e=>{const[t,r]=$e.useState({open:!1});return je.jsxs(rS,{elevation:0,onClick:i=>r(c=>({open:!c.open,anchorEl:i.currentTarget})),sx:[{border:"1px solid",borderColor:i=>i.palette.divider},{color:i=>df(i)(i.palette.info.main,.6),backgroundColor:i=>ff(i)(i.palette.info.main,.9)},e.data.state==="success"&&{color:i=>df(i)(i.palette.success.main,.6),backgroundColor:i=>ff(i)(i.palette.success.main,.9)},e.data.state==="warning"&&{color:i=>df(i)(i.palette.warning.main,.6),backgroundColor:i=>ff(i)(i.palette.warning.main,.9)},e.data.state==="error"&&{color:i=>df(i)(i.palette.error.main,.6),backgroundColor:i=>ff(i)(i.palette.error.main,.9)}],children:[je.jsx(Cr,{align:"center",variant:"h6",component:"div",children:e.data.value}),je.jsx(Cr,{align:"center",variant:"body1",component:"div",children:e.data.text}),je.jsx(iS,{open:t.open,anchorEl:t.anchorEl,anchorOrigin:{horizontal:"left",vertical:"bottom"},children:e.customPopup??je.jsx(Cr,{padding:1,children:e.data.longText})})]})},Q5=e=>{const{alertStats:t}=e;return je.jsx(py,{data:{value:`${t.triggered.last_24h}`,state:"info",text:"alerts in the last 24 hours",longText:"alerts triggered in the period / alerts triggered in 24 hours / alerts active "},customPopup:je.jsx(Cr,{sx:{pr:1},children:je.jsxs("ul",{children:[je.jsxs("li",{children:[t.triggered.period," alerts triggered in the period"]}),je.jsxs("li",{children:[t.triggered.last_24h," alerts triggered in 24 hours"]}),je.jsxs("li",{children:[t.active," total active alerts"]})]})})})};function B5e(e){return e===12?{xs:12,sm:12,md:12,lg:12}:e===6?{xs:12,sm:12,md:6,lg:6}:e===3?{xs:12,sm:6,md:3,lg:3}:{xs:6,sm:3,md:1,lg:1}}const z5e=e=>{const{size:t,ItemWrapper:r}=e,i=e.children.alertsPosition??"row",{id:c,title:o,details:a,content:n,alerts:l,alertStats:f,insights:s}=e.children,u=l===void 0?!1:l.length>0,d=s===void 0?!1:s.length>0,h=je.jsx(uE,{elevation:0,children:je.jsx(cE,{children:je.jsxs(Jn,{container:!0,spacing:1,direction:"column",children:[i==="row"?je.jsxs(Jn,{container:!0,spacing:1,item:!0,children:[je.jsxs(Jn,{item:!0,xs:u&&i==="row"?9:12,children:[o?je.jsx(Cr,{fontWeight:500,variant:"h5",children:o}):je.jsx("div",{}),je.jsx("div",{children:n}),a?je.jsx(Cr,{variant:"subtitle1",children:a}):je.jsx("div",{})]}),u?je.jsx(Jn,{container:!0,spacing:1,direction:"column",justifyContent:"center",item:!0,xs:3,children:l?je.jsxs(et.Fragment,{children:[f?je.jsx(Jn,{item:!0,children:je.jsx(Q5,{alertStats:f})}):je.jsx("div",{}),l.map(p=>je.jsx(Jn,{item:!0,children:je.jsx(py,{data:p})}))]}):je.jsx("div",{})}):je.jsx("div",{})]}):je.jsxs(et.Fragment,{children:[je.jsxs(Jn,{item:!0,children:[o?je.jsx(Cr,{variant:"h5",children:o}):je.jsx("div",{}),je.jsx("div",{children:n}),a?je.jsx(Cr,{variant:"subtitle1",children:a}):je.jsx("div",{})]}),u?je.jsx(Jn,{item:!0,xs:!0,children:je.jsx(Jn,{container:!0,direction:"row",spacing:1,children:l?je.jsxs(et.Fragment,{children:[f?je.jsx(Jn,{item:!0,xs:!0,children:je.jsx(Q5,{alertStats:f})}):je.jsx("div",{}),l.map(p=>je.jsx(Jn,{item:!0,xs:!0,children:je.jsx(py,{data:p})}))]}):je.jsx("div",{})})}):je.jsx("div",{})]}),d?s==null?void 0:s.map(p=>je.jsx(Jn,{item:!0,xs:!0,sm:!0,md:!0,children:je.jsx(xC,{data:p})})):je.jsx("div",{})]})})});return je.jsx(Jn,{item:!0,...B5e(t),children:r?r({id:c,children:h}):h})};class WP extends et.Component{render(){return je.jsx(Jn,{container:!0,alignItems:"stretch",spacing:1,direction:"row",mt:1,children:this.props.children})}}const q5e=e=>{const[t,r]=et.useState({page:0}),i=e.widgets.slice(t.page*e.pageSize,(t.page+1)*e.pageSize);return je.jsxs(WP,{children:[i.map((c,o)=>Tc(`wi_${o}`,c)),je.jsxs(Jn,{item:!0,xs:12,children:[je.jsx(hi,{startIcon:je.jsx(fE,{}),disabled:t.page===0,onClick:()=>r(c=>({page:c.page-1})),children:"Previous"}),je.jsxs("span",{children:[t.page+1," / ",Math.round(e.widgets.length/e.pageSize)]}),je.jsx(hi,{endIcon:je.jsx(dE,{}),disabled:t.page>=e.widgets.length/e.pageSize-1,onClick:()=>r(c=>({page:c.page+1})),children:"Next"})]})]})};function W5e(e){return e===hf.Small?3:e===hf.Medium?6:(e===hf.Big,12)}function Tc(e,t,r){let i=je.jsx(wC,{});if(t.type==="counter")i=je.jsx(u3e,{...t.params});else if(t.type==="percent")i=je.jsx(c3e,{...t.params});else if(t.type==="big_graph")i=je.jsx(Pd,{...t.params,widgetSize:t.size});else if(t.type==="tabbed_graph")i=je.jsx(d3e,{...t.params,widgetSize:t.size});else if(t.type==="tabs")i=je.jsx(h3e,{...t,widgetSize:t.size,id:"twc_"});else if(t.type==="table")i=je.jsx(p3e,{...t.params});else if(t.type==="big_table")i=je.jsx(s3e,{...t.params,widgetSize:t.size});else if(t.type==="group")i=je.jsx(WP,{children:t.widgets.map((c,o)=>Tc(`wi_${o}`,c))});else if(t.type==="rich_data")i=je.jsx(f3e,{...t.params,widgetSize:t.size});else if(t.type==="list"){const c=t;i=je.jsx(q5e,{widgets:c.widgets,pageSize:c.pageSize,widgetSize:t.size})}else t.type==="text"?i=je.jsx($5e,{...t.params}):t.type==="test_suite"&&(i=je.jsx(j5e,{...t.params}));return je.jsx(z5e,{size:W5e(t.size),ItemWrapper:r,children:{...t,content:i}},e)}const Z5e=({widgets:e,ItemWrapper:t})=>je.jsx(je.Fragment,{children:e.length>0&&e.map((r,i)=>je.jsx(et.Fragment,{children:Tc(`wi_${i}`,r,t)},r.id))});export{G5e as C,Z5e as D,bC as a}; diff --git a/src/evidently/ui/assets/static/js/DashboardViewParams-VueHZ5oJ.js b/src/evidently/ui/assets/static/js/DashboardViewParams-VueHZ5oJ.js deleted file mode 100644 index bd23894a74..0000000000 --- a/src/evidently/ui/assets/static/js/DashboardViewParams-VueHZ5oJ.js +++ /dev/null @@ -1 +0,0 @@ -import{R as a,r as t}from"./vendor-D9wnXojU.js";const s=a.createContext(null),o=()=>t.useContext(s);export{s as D,o as u}; diff --git a/src/evidently/ui/assets/static/js/DashboardViewParams-mNv_VOpq.js b/src/evidently/ui/assets/static/js/DashboardViewParams-mNv_VOpq.js new file mode 100644 index 0000000000..cc429268fd --- /dev/null +++ b/src/evidently/ui/assets/static/js/DashboardViewParams-mNv_VOpq.js @@ -0,0 +1 @@ +import{R as a,r as t}from"./vendor-DoRIiF9A.js";const s=a.createContext(null),o=()=>t.useContext(s);export{s as D,o as u}; diff --git a/src/evidently/ui/assets/static/js/DashboardWidgets-BBBcbYTW.js b/src/evidently/ui/assets/static/js/DashboardWidgets-BBBcbYTW.js deleted file mode 100644 index 0d53028df8..0000000000 --- a/src/evidently/ui/assets/static/js/DashboardWidgets-BBBcbYTW.js +++ /dev/null @@ -1 +0,0 @@ -import{j as r,T as e,G as i}from"./vendor-D9wnXojU.js";import{D as n}from"./DashboardContent-BF_kxHXz.js";import"./DashboardViewParams-VueHZ5oJ.js";import"./createSvgIcon-BFOkCGLU.js";import"./Edit-BcFhWXpJ.js";const h=({widgets:t,ItemWrapper:a})=>t.length===0?r.jsx(e,{my:3,align:"center",variant:"h4",children:"This dashboard is currently empty. Please add a monitoring panel to start."}):r.jsx(r.Fragment,{children:r.jsx(i,{container:!0,spacing:3,direction:"row",alignItems:"stretch",children:r.jsx(n,{widgets:t,ItemWrapper:a})})});export{h as DashboardWidgets}; diff --git a/src/evidently/ui/assets/static/js/DashboardWidgets-c1VLgBQN.js b/src/evidently/ui/assets/static/js/DashboardWidgets-c1VLgBQN.js new file mode 100644 index 0000000000..ef6da3899e --- /dev/null +++ b/src/evidently/ui/assets/static/js/DashboardWidgets-c1VLgBQN.js @@ -0,0 +1 @@ +import{j as r,T as e,G as n}from"./vendor-DoRIiF9A.js";import{D as i}from"./DashboardContent-CtUoNzcD.js";import"./DashboardViewParams-mNv_VOpq.js";import"./index-BqCr-mCb.js";const h=({widgets:t,ItemWrapper:a})=>t.length===0?r.jsx(e,{my:3,align:"center",variant:"h4",children:"This dashboard is currently empty. Please add a monitoring panel to start."}):r.jsx(r.Fragment,{children:r.jsx(n,{container:!0,spacing:3,direction:"row",alignItems:"stretch",children:r.jsx(i,{widgets:t,ItemWrapper:a})})});export{h as DashboardWidgets}; diff --git a/src/evidently/ui/assets/static/js/Edit-BcFhWXpJ.js b/src/evidently/ui/assets/static/js/Edit-BcFhWXpJ.js deleted file mode 100644 index 79bea08a0c..0000000000 --- a/src/evidently/ui/assets/static/js/Edit-BcFhWXpJ.js +++ /dev/null @@ -1 +0,0 @@ -import{r,i as t}from"./createSvgIcon-BFOkCGLU.js";import{j as a}from"./vendor-D9wnXojU.js";var e={},u=t;Object.defineProperty(e,"__esModule",{value:!0});var i=e.default=void 0,o=u(r()),d=a,l=(0,o.default)((0,d.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");i=e.default=l;export{e as E,i as d}; diff --git a/src/evidently/ui/assets/static/js/createSvgIcon-BFOkCGLU.js b/src/evidently/ui/assets/static/js/createSvgIcon-BFOkCGLU.js deleted file mode 100644 index d8779a2ee9..0000000000 --- a/src/evidently/ui/assets/static/js/createSvgIcon-BFOkCGLU.js +++ /dev/null @@ -1 +0,0 @@ -import{aq as i,bG as o}from"./vendor-D9wnXojU.js";var a={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(a);var f=a.exports,u={};const s=i(o);var n;function p(){return n||(n=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=s}(u)),u}export{f as i,p as r}; diff --git a/src/evidently/ui/assets/static/js/index-8XPeT5JI.js b/src/evidently/ui/assets/static/js/index-8XPeT5JI.js new file mode 100644 index 0000000000..9ffa995dfa --- /dev/null +++ b/src/evidently/ui/assets/static/js/index-8XPeT5JI.js @@ -0,0 +1 @@ +import{R as oe,j as r,a2 as z,al as Ea,am as Da,aa as Ma,an as Ia,ao as $a,M as Aa,r as y,B as $,ap as Q,I as G,aq as Fa,a6 as _a,ag as Ka,aj as Oa,a3 as Pa,O as Ua,a9 as Qa,V as Wa,m as Za,x as za,ak as Ha,a5 as qa,T as de,ar as Ga,as as Ya,at as W,au as I,av as Xa,aw as er,y as ar,U as rr,ae as tr,ab as nr,G as Z,ax as sr,ai as ce,F as lr,q as ir}from"./vendor-DoRIiF9A.js";import{u as or}from"./index-BqCr-mCb.js";const dr=[{title:"Download HTML",format:"html"},{title:"Download JSON",format:"json"}];function cr(a){const[e,t]=oe.useState(!1),n=oe.useRef(null),c=(s,d)=>{window.open(`${s}?report_format=${d}`,"_blank"),t(!1)},o=()=>{t(s=>!s)},i=s=>{var d;(d=n.current)!=null&&d.contains(s.target)||t(!1)};return r.jsxs(r.Fragment,{children:[r.jsx(z,{disabled:a.disabled,variant:a.variant,ref:n,color:"primary","aria-controls":e?"split-button-menu":void 0,"aria-expanded":e?"true":void 0,"aria-label":"select merge strategy","aria-haspopup":"menu",onClick:o,children:"Download"}),r.jsx(Ea,{open:e,anchorEl:n.current,transition:!0,children:({TransitionProps:s,placement:d})=>r.jsx(Da,{...s,style:{transformOrigin:d==="bottom"?"center top":"center bottom"},children:r.jsx(Ma,{children:r.jsx(Ia,{onClickAway:i,children:r.jsx($a,{id:"split-button-menu",children:dr.map(v=>r.jsx(Aa,{onClick:()=>c(a.downloadLink,v.format),children:v.title},v.format))})})})})})]})}const vr=({onClick:a,tags:e,limitTags:t=2})=>{const[n,c]=y.useState(!1);return r.jsxs($,{display:"flex",alignContent:"center",flexWrap:"wrap",children:[e.slice(0,t).map(o=>r.jsx(Q,{onClick:()=>a(o),label:o,style:{margin:3}},o)),n&&e.slice(t).map(o=>r.jsx(Q,{onClick:()=>a(o),label:o,style:{margin:3}},o)),!n&&e.length>t&&r.jsx(Q,{variant:"outlined",label:`+${e.length-t}`,style:{margin:3,borderColor:"grey"},onClick:()=>c(!0)},"+N"),e.length>0&&n&&r.jsx(G,{style:{margin:3},onClick:()=>c(!1),children:r.jsx(Fa,{fontSize:"small"})})]})},ur=({showText:a,copyText:e})=>r.jsxs($,{children:[a,r.jsx(G,{size:"small",style:{marginLeft:10},onClick:()=>navigator.clipboard.writeText(e),children:r.jsx(_a,{fontSize:"small"})})]});function l(){return l=Object.assign?Object.assign.bind():function(a){for(var e=1;el({},a,e),yr=()=>y.useContext(pe),Y=y.createContext(()=>{});Y.displayName="JVR.DispatchShowTools";function mr(){return y.useReducer(pr,ue)}function ye(){return y.useContext(Y)}var me=a=>{var{initial:e,dispatch:t,children:n}=a;return r.jsx(pe.Provider,{value:e,children:r.jsx(Y.Provider,{value:t,children:n})})};me.displayName="JVR.ShowTools";var fe={},he=y.createContext(fe),fr=(a,e)=>l({},a,e),U=()=>y.useContext(he),X=y.createContext(()=>{});X.displayName="JVR.DispatchExpands";function hr(){return y.useReducer(fr,fe)}function jr(){return y.useContext(X)}var je=a=>{var{initial:e,dispatch:t,children:n}=a;return r.jsx(he.Provider,{value:e,children:r.jsx(X.Provider,{value:t,children:n})})};je.displayName="JVR.Expands";var xe={Str:{as:"span","data-type":"string",style:{color:"var(--w-rjv-type-string-color, #cb4b16)"},className:"w-rjv-type",children:"string"},Url:{as:"a",style:{color:"var(--w-rjv-type-url-color, #0969da)"},"data-type":"url",className:"w-rjv-type",children:"url"},Undefined:{style:{color:"var(--w-rjv-type-undefined-color, #586e75)"},as:"span","data-type":"undefined",className:"w-rjv-type",children:"undefined"},Null:{style:{color:"var(--w-rjv-type-null-color, #d33682)"},as:"span","data-type":"null",className:"w-rjv-type",children:"null"},Map:{style:{color:"var(--w-rjv-type-map-color, #268bd2)",marginRight:3},as:"span","data-type":"map",className:"w-rjv-type",children:"Map"},Nan:{style:{color:"var(--w-rjv-type-nan-color, #859900)"},as:"span","data-type":"nan",className:"w-rjv-type",children:"NaN"},Bigint:{style:{color:"var(--w-rjv-type-bigint-color, #268bd2)"},as:"span","data-type":"bigint",className:"w-rjv-type",children:"bigint"},Int:{style:{color:"var(--w-rjv-type-int-color, #268bd2)"},as:"span","data-type":"int",className:"w-rjv-type",children:"int"},Set:{style:{color:"var(--w-rjv-type-set-color, #268bd2)",marginRight:3},as:"span","data-type":"set",className:"w-rjv-type",children:"Set"},Float:{style:{color:"var(--w-rjv-type-float-color, #859900)"},as:"span","data-type":"float",className:"w-rjv-type",children:"float"},True:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},False:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},Date:{style:{color:"var(--w-rjv-type-date-color, #268bd2)"},as:"span","data-type":"date",className:"w-rjv-type",children:"date"}},Ne=y.createContext(xe),xr=(a,e)=>l({},a,e),b=()=>y.useContext(Ne),ee=y.createContext(()=>{});ee.displayName="JVR.DispatchTypes";function Nr(){return y.useReducer(xr,xe)}function wr(){return y.useContext(ee)}function we(a){var{initial:e,dispatch:t,children:n}=a;return r.jsx(Ne.Provider,{value:e,children:r.jsx(ee.Provider,{value:t,children:n})})}we.displayName="JVR.Types";var Cr=["style"];function Ce(a){var{style:e}=a,t=j(a,Cr),n=l({cursor:"pointer",height:"1em",width:"1em",userSelect:"none",display:"inline-flex"},e);return r.jsx("svg",l({viewBox:"0 0 24 24",fill:"var(--w-rjv-arrow-color, currentColor)",style:n},t,{children:r.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})}))}Ce.displayName="JVR.TriangleArrow";var ge={Arrow:{as:"span",className:"w-rjv-arrow",style:{transform:"rotate(0deg)",transition:"all 0.3s"},children:r.jsx(Ce,{})},Colon:{as:"span",style:{color:"var(--w-rjv-colon-color, var(--w-rjv-color))",marginLeft:0,marginRight:2},className:"w-rjv-colon",children:":"},Quote:{as:"span",style:{color:"var(--w-rjv-quotes-color, #236a7c)"},className:"w-rjv-quotes",children:'"'},ValueQuote:{as:"span",style:{color:"var(--w-rjv-quotes-string-color, #cb4b16)"},className:"w-rjv-quotes",children:'"'},BracketsLeft:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-start",children:"["},BracketsRight:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-end",children:"]"},BraceLeft:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-start",children:"{"},BraceRight:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-end",children:"}"}},be=y.createContext(ge),gr=(a,e)=>l({},a,e),V=()=>y.useContext(be),ae=y.createContext(()=>{});ae.displayName="JVR.DispatchSymbols";function br(){return y.useReducer(gr,ge)}function kr(){return y.useContext(ae)}var ke=a=>{var{initial:e,dispatch:t,children:n}=a;return r.jsx(be.Provider,{value:e,children:r.jsx(ae.Provider,{value:t,children:n})})};ke.displayName="JVR.Symbols";var Re={Copied:{className:"w-rjv-copied",style:{height:"1em",width:"1em",cursor:"pointer",verticalAlign:"middle",marginLeft:5}},CountInfo:{as:"span",className:"w-rjv-object-size",style:{color:"var(--w-rjv-info-color, #0000004d)",paddingLeft:8,fontStyle:"italic"}},CountInfoExtra:{as:"span",className:"w-rjv-object-extra",style:{paddingLeft:8}},Ellipsis:{as:"span",style:{cursor:"pointer",color:"var(--w-rjv-ellipsis-color, #cb4b16)",userSelect:"none"},className:"w-rjv-ellipsis",children:"..."},Row:{as:"div",className:"w-rjv-line"},KeyName:{as:"span",className:"w-rjv-object-key"}},Se=y.createContext(Re),Rr=(a,e)=>l({},a,e),B=()=>y.useContext(Se),re=y.createContext(()=>{});re.displayName="JVR.DispatchSection";function Sr(){return y.useReducer(Rr,Re)}function Vr(){return y.useContext(re)}var Ve=a=>{var{initial:e,dispatch:t,children:n}=a;return r.jsx(Se.Provider,{value:e,children:r.jsx(re.Provider,{value:t,children:n})})};Ve.displayName="JVR.Section";var Le={objectSortKeys:!1,indentWidth:15},te=y.createContext(Le);te.displayName="JVR.Context";var Te=y.createContext(()=>{});Te.displayName="JVR.DispatchContext";function Lr(a,e){return l({},a,e)}var K=()=>y.useContext(te),Je=a=>{var{children:e,initialState:t,initialTypes:n}=a,[c,o]=y.useReducer(Lr,Object.assign({},Le,t)),[i,s]=mr(),[d,v]=hr(),[u,p]=Nr(),[m,f]=br(),[x,N]=Sr();return y.useEffect(()=>o(l({},t)),[t]),r.jsx(te.Provider,{value:c,children:r.jsx(Te.Provider,{value:o,children:r.jsx(me,{initial:i,dispatch:s,children:r.jsx(je,{initial:d,dispatch:v,children:r.jsx(we,{initial:l({},u,n),dispatch:p,children:r.jsx(ke,{initial:m,dispatch:f,children:r.jsx(Ve,{initial:x,dispatch:N,children:e})})})})})})})};Je.displayName="JVR.Provider";function Tr(a){if(a==null)throw new TypeError("Cannot destructure "+a)}var Jr=["isNumber","value","parentValue","keyName","keys"],Br=["as","render"],Er=["as","render"],Dr=["as","render"],Mr=["as","style","render"],Ir=["as","render"],$r=["as","render"],Ar=["as","render"],Fr=["as","render"],H=a=>{var{Quote:e={}}=V(),{isNumber:t,value:n,parentValue:c,keyName:o,keys:i}=a,s=j(a,Jr);if(t)return null;var{as:d,render:v}=e,u=j(e,Br),p=d||"span",m=l({},s,u),f={value:n,parentValue:c,keyName:o,keys:i||(o?[o]:[])},x=v&&typeof v=="function"&&v(m,f);return x||r.jsx(p,l({},m))};H.displayName="JVR.Quote";var P=a=>{var{ValueQuote:e={}}=V(),t=l({},(Tr(a),a)),{as:n,render:c}=e,o=j(e,Er),i=n||"span",s=l({},t,o),d=c&&typeof c=="function"&&c(s,{});return d||r.jsx(i,l({},s))};P.displayName="JVR.ValueQuote";var Be=a=>{var{value:e,parentValue:t,keyName:n,keys:c}=a,{Colon:o={}}=V(),{as:i,render:s}=o,d=j(o,Dr),v=i||"span",u=s&&typeof s=="function"&&s(d,{value:e,parentValue:t,keyName:n,keys:c||(n?[n]:[])});return u||r.jsx(v,l({},d))};Be.displayName="JVR.Colon";var Ee=a=>{var{Arrow:e={}}=V(),t=U(),{expandKey:n,style:c,value:o,parentValue:i,keyName:s,keys:d}=a,v=!!t[n],{as:u,style:p,render:m}=e,f=j(e,Mr),x=u||"span",N=m&&typeof m=="function",w=l({},f,{"data-expanded":v,style:l({},p,c)}),k={value:o,parentValue:i,keyName:s,keys:d||(s?[s]:[])},C=N&&m(w,k);return C||r.jsx(x,l({},f,{style:l({},p,c)}))};Ee.displayName="JVR.Arrow";var De=a=>{var{isBrackets:e,value:t,parentValue:n,keyName:c,keys:o}=a,{BracketsLeft:i={},BraceLeft:s={}}=V(),d={value:t,parentValue:n,keyName:c,keys:o||(c?[c]:[])};if(e){var{as:v,render:u}=i,p=j(i,Ir),m=v||"span",f=u&&typeof u=="function"&&u(p,d);return f||r.jsx(m,l({},p))}var{as:x,render:N}=s,w=j(s,$r),k=x||"span",C=N&&typeof N=="function"&&N(w,d);return C||r.jsx(k,l({},w))};De.displayName="JVR.BracketsOpen";var ne=a=>{var{isBrackets:e,isVisiable:t,value:n,parentValue:c,keyName:o,keys:i}=a,s={value:n,parentValue:c,keyName:o,keys:i||(o?[o]:[])};if(!t)return null;var{BracketsRight:d={},BraceRight:v={}}=V();if(e){var{as:u,render:p}=d,m=j(d,Ar),f=u||"span",x=p&&typeof p=="function"&&p(m,s);return x||r.jsx(f,l({},m))}var{as:N,render:w}=v,k=j(v,Fr),C=N||"span",S=w&&typeof w=="function"&&w(k,s);return S||r.jsx(C,l({},k))};ne.displayName="JVR.BracketsClose";var Me=a=>{var e,{value:t,expandKey:n,level:c,keys:o=[]}=a,i=U(),s=Array.isArray(t),{collapsed:d,shouldExpandNodeInitially:v}=K(),u=t instanceof Set,p=typeof d=="boolean"?d:typeof d=="number"?c>d:!1,m=(e=i[n])!=null?e:p,f=Object.keys(t).length;if(i[n]===void 0&&v&&v(m,{value:t,keys:o,level:c})||m||f===0)return null;var x={paddingLeft:4};return r.jsx("div",{style:x,children:r.jsx(ne,{isBrackets:s||u,isVisiable:!0})})};Me.displayName="JVR.NestedClose";var _r=["as","render"],Kr=["as","render"],Or=["as","render"],Pr=["as","render"],Ur=["as","render"],Qr=["as","render"],Wr=["as","render"],Zr=["as","render"],zr=["as","render"],Hr=["as","render"],qr=["as","render"],Gr=["as","render"],Yr=["as","render"],q=a=>{if(a===void 0)return"0n";if(typeof a=="string")try{a=BigInt(a)}catch{return"0n"}return a?a.toString()+"n":"0n"},Ie=a=>{var{value:e,keyName:t}=a,{Set:n={},displayDataTypes:c}=b(),o=e instanceof Set;if(!o||!c)return null;var{as:i,render:s}=n,d=j(n,_r),v=s&&typeof s=="function",u=v&&s(d,{type:"type",value:e,keyName:t});if(u)return u;var p=i||"span";return r.jsx(p,l({},d))};Ie.displayName="JVR.SetComp";var $e=a=>{var{value:e,keyName:t}=a,{Map:n={},displayDataTypes:c}=b(),o=e instanceof Map;if(!o||!c)return null;var{as:i,render:s}=n,d=j(n,Kr),v=s&&typeof s=="function",u=v&&s(d,{type:"type",value:e,keyName:t});if(u)return u;var p=i||"span";return r.jsx(p,l({},d))};$e.displayName="JVR.MapComp";var D={opacity:.75,paddingRight:4},Ae=a=>{var{children:e="",keyName:t}=a,{Str:n={},displayDataTypes:c}=b(),{shortenTextAfterLength:o=30}=K(),{as:i,render:s}=n,d=j(n,Or),v=e,[u,p]=y.useState(o&&v.length>o);y.useEffect(()=>p(o&&v.length>o),[o]);var m=i||"span",f=l({},D,n.style||{});o>0&&(d.style=l({},d.style,{cursor:v.length<=o?"initial":"pointer"}),v.length>o&&(d.onClick=()=>{p(!u)}));var x=u?v.slice(0,o)+"...":v,N=s&&typeof s=="function",w=N&&s(l({},d,{style:f}),{type:"type",value:e,keyName:t}),k=N&&s(l({},d,{children:x,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(w||r.jsx(m,l({},d,{style:f}))),k||r.jsxs(y.Fragment,{children:[r.jsx(P,{}),r.jsx(m,l({},d,{className:"w-rjv-value",children:x})),r.jsx(P,{})]})]})};Ae.displayName="JVR.TypeString";var Fe=a=>{var{children:e,keyName:t}=a,{True:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Pr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m||r.jsx(d,l({},s,{className:"w-rjv-value",children:e==null?void 0:e.toString()}))]})};Fe.displayName="JVR.TypeTrue";var _e=a=>{var{children:e,keyName:t}=a,{False:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Ur),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m||r.jsx(d,l({},s,{className:"w-rjv-value",children:e==null?void 0:e.toString()}))]})};_e.displayName="JVR.TypeFalse";var Ke=a=>{var{children:e,keyName:t}=a,{Float:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Qr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m||r.jsx(d,l({},s,{className:"w-rjv-value",children:e==null?void 0:e.toString()}))]})};Ke.displayName="JVR.TypeFloat";var Oe=a=>{var{children:e,keyName:t}=a,{Int:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Wr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m||r.jsx(d,l({},s,{className:"w-rjv-value",children:e==null?void 0:e.toString()}))]})};Oe.displayName="JVR.TypeInt";var Pe=a=>{var{children:e,keyName:t}=a,{Bigint:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Zr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m||r.jsx(d,l({},s,{className:"w-rjv-value",children:q(e==null?void 0:e.toString())}))]})};Pe.displayName="JVR.TypeFloat";var Ue=a=>{var{children:e,keyName:t}=a,{Url:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,zr),d=o||"span",v=l({},D,n.style),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e==null?void 0:e.href,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m||r.jsxs("a",l({href:e==null?void 0:e.href,target:"_blank"},s,{className:"w-rjv-value",children:[r.jsx(P,{}),e==null?void 0:e.href,r.jsx(P,{})]}))]})};Ue.displayName="JVR.TypeUrl";var Qe=a=>{var{children:e,keyName:t}=a,{Date:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Hr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=e instanceof Date?e.toLocaleString():e,f=u&&i(l({},s,{children:m,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),f||r.jsx(d,l({},s,{className:"w-rjv-value",children:m}))]})};Qe.displayName="JVR.TypeDate";var We=a=>{var{children:e,keyName:t}=a,{Undefined:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,qr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m]})};We.displayName="JVR.TypeUndefined";var Ze=a=>{var{children:e,keyName:t}=a,{Null:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Gr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e,className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m]})};Ze.displayName="JVR.TypeNull";var ze=a=>{var{children:e,keyName:t}=a,{Nan:n={},displayDataTypes:c}=b(),{as:o,render:i}=n,s=j(n,Yr),d=o||"span",v=l({},D,n.style||{}),u=i&&typeof i=="function",p=u&&i(l({},s,{style:v}),{type:"type",value:e,keyName:t}),m=u&&i(l({},s,{children:e==null?void 0:e.toString(),className:"w-rjv-value"}),{type:"value",value:e,keyName:t});return r.jsxs(y.Fragment,{children:[c&&(p||r.jsx(d,l({},s,{style:v}))),m]})};ze.displayName="JVR.TypeNan";var Xr=a=>Number(a)===a&&a%1!==0||isNaN(a),He=a=>{var{value:e,keyName:t}=a,n={keyName:t};return e instanceof URL?r.jsx(Ue,l({},n,{children:e})):typeof e=="string"?r.jsx(Ae,l({},n,{children:e})):e===!0?r.jsx(Fe,l({},n,{children:e})):e===!1?r.jsx(_e,l({},n,{children:e})):e===null?r.jsx(Ze,l({},n,{children:e})):e===void 0?r.jsx(We,l({},n,{children:e})):e instanceof Date?r.jsx(Qe,l({},n,{children:e})):typeof e=="number"&&isNaN(e)?r.jsx(ze,l({},n,{children:e})):typeof e=="number"&&Xr(e)?r.jsx(Ke,l({},n,{children:e})):typeof e=="bigint"?r.jsx(Pe,l({},n,{children:e})):typeof e=="number"?r.jsx(Oe,l({},n,{children:e})):null};He.displayName="JVR.Value";function F(a,e,t){var n=kr(),c=[a.className,e.className].filter(Boolean).join(" "),o=l({},a,e,{className:c,style:l({},a.style,e.style),children:e.children||a.children});y.useEffect(()=>n({[t]:o}),[e])}function T(a,e,t){var n=wr(),c=[a.className,e.className].filter(Boolean).join(" "),o=l({},a,e,{className:c,style:l({},a.style,e.style),children:e.children||a.children});y.useEffect(()=>n({[t]:o}),[e])}function O(a,e,t){var n=Vr(),c=[a.className,e.className].filter(Boolean).join(" "),o=l({},a,e,{className:c,style:l({},a.style,e.style),children:e.children||a.children});y.useEffect(()=>n({[t]:o}),[e])}var et=["as","render"],qe=a=>{var{KeyName:e={}}=B();return O(e,a,"KeyName"),null};qe.displayName="JVR.KeyName";var Ge=a=>{var{children:e,value:t,parentValue:n,keyName:c,keys:o}=a,i=typeof e=="number",s={color:i?"var(--w-rjv-key-number, #268bd2)":"var(--w-rjv-key-string, #002b36)"},{KeyName:d={}}=B(),{as:v,render:u}=d,p=j(d,et);p.style=l({},p.style,s);var m=v||"span",f=u&&typeof u=="function"&&u(l({},p,{children:e}),{value:t,parentValue:n,keyName:c,keys:o||(c?[c]:[])});return f||r.jsx(m,l({},p,{children:e}))};Ge.displayName="JVR.KeyNameComp";var at=["children","value","parentValue","keyName","keys"],rt=["as","render","children"],Ye=a=>{var{Row:e={}}=B();return O(e,a,"Row"),null};Ye.displayName="JVR.Row";var Xe=a=>{var{children:e,value:t,parentValue:n,keyName:c,keys:o}=a,i=j(a,at),{Row:s={}}=B(),{as:d,render:v}=s,u=j(s,rt),p=d||"div",m=v&&typeof v=="function"&&v(l({},i,u,{children:e}),{value:t,keyName:c,parentValue:n,keys:o});return m||r.jsx(p,l({},i,u,{children:e}))};Xe.displayName="JVR.RowComp";function tt(a){var e=y.useRef();return y.useEffect(()=>{e.current=a}),e.current}function nt(a){var{value:e,highlightUpdates:t,highlightContainer:n}=a,c=tt(e),o=y.useMemo(()=>{if(!t||c===void 0)return!1;if(typeof e!=typeof c)return!0;if(typeof e=="number")return isNaN(e)&&isNaN(c)?!1:e!==c;if(Array.isArray(e)!==Array.isArray(c))return!0;if(typeof e=="object"||typeof e=="function")return!1;if(e!==c)return!0},[t,e]);y.useEffect(()=>{n&&n.current&&o&&"animate"in n.current&&n.current.animate([{backgroundColor:"var(--w-rjv-update-color, #ebcb8b)"},{backgroundColor:""}],{duration:1e3,easing:"ease-in"})},[o,e,n])}var st=["keyName","value","parentValue","expandKey","keys"],lt=["as","render"],se=a=>{var{keyName:e,value:t,parentValue:n,expandKey:c,keys:o}=a,i=j(a,st),{onCopied:s,enableClipboard:d}=K(),v=yr(),u=v[c],[p,m]=y.useState(!1),{Copied:f={}}=B();if(d===!1||!u)return null;var x=_=>{_.stopPropagation();var J="";typeof t=="number"&&t===1/0?J="Infinity":typeof t=="number"&&isNaN(t)?J="NaN":typeof t=="bigint"?J=q(t):t instanceof Date?J=t.toLocaleString():J=JSON.stringify(t,(R,M)=>typeof M=="bigint"?q(M):M,2),s&&s(J,t),m(!0);var h=navigator.clipboard||{writeText(R){return new Promise((M,A)=>{var L=document.createElement("textarea");L.style.position="absolute",L.style.opacity="0",L.style.left="-99999999px",L.value=R,document.body.appendChild(L),L.select(),document.execCommand("copy")?M():A(),L.remove()})}};h.writeText(J).then(()=>{var R=setTimeout(()=>{m(!1),clearTimeout(R)},3e3)}).catch(R=>{})},N={style:{display:"inline-flex"},fill:p?"var(--w-rjv-copied-success-color, #28a745)":"var(--w-rjv-copied-color, currentColor)",onClick:x},{render:w}=f,k=j(f,lt),C=l({},k,i,N,{style:l({},k.style,i.style,N.style)}),S=w&&typeof w=="function",E=S&&w(l({},C,{"data-copied":p}),{value:t,keyName:e,keys:o,parentValue:n});return E||(p?r.jsx("svg",l({viewBox:"0 0 32 36"},C,{children:r.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})):r.jsx("svg",l({viewBox:"0 0 32 36"},C,{children:r.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})))};se.displayName="JVR.Copied";function ea(){var a=y.useRef(null);return a.current===null&&(a.current="custom-id-"+Math.random().toString(36).substr(2,9)),a.current}var aa=a=>{var e,{value:t,expandKey:n="",level:c,keys:o=[]}=a,i=U(),{objectSortKeys:s,indentWidth:d,collapsed:v,shouldExpandNodeInitially:u}=K(),p=Array.isArray(t),m=typeof v=="boolean"?v:typeof v=="number"?c>v:!1,f=(e=i[n])!=null?e:m;if(i[n]===void 0&&u&&u(f,{value:t,keys:o,level:c})||f)return null;var x=p?Object.entries(t).map(w=>[Number(w[0]),w[1]]):Object.entries(t);s&&(x=s===!0?x.sort((w,k)=>{var[C]=w,[S]=k;return typeof C=="string"&&typeof S=="string"?C.localeCompare(S):0}):x.sort((w,k)=>{var[C,S]=w,[E,_]=k;return typeof C=="string"&&typeof E=="string"?s(C,E,S,_):0}));var N={borderLeft:"var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",paddingLeft:d,marginLeft:6};return r.jsx("div",{className:"w-rjv-wrap",style:N,children:x.map((w,k)=>{var[C,S]=w;return r.jsx(ra,{parentValue:t,keyName:C,keys:[...o,C],value:S,level:c},k)})})};aa.displayName="JVR.KeyValues";var le=a=>{var{keyName:e,parentValue:t,keys:n,value:c}=a,{highlightUpdates:o}=K(),i=typeof e=="number",s=y.useRef(null);nt({value:c,highlightUpdates:o,highlightContainer:s});var d={keyName:e,value:c,keys:n,parentValue:t};return r.jsxs(y.Fragment,{children:[r.jsxs("span",{ref:s,children:[r.jsx(H,l({isNumber:i,"data-placement":"left"},d)),r.jsx(Ge,l({},d,{children:e})),r.jsx(H,l({isNumber:i,"data-placement":"right"},d))]}),r.jsx(Be,l({},d))]})};le.displayName="JVR.KayName";var ra=a=>{var{keyName:e,value:t,parentValue:n,level:c=0,keys:o=[]}=a,i=ye(),s=ea(),d=Array.isArray(t),v=t instanceof Set,u=t instanceof Map,p=t instanceof Date,m=t instanceof URL,f=t&&typeof t=="object"&&!d&&!v&&!u&&!p&&!m,x=f||d||v||u;if(x){var N=v?Array.from(t):u?Object.fromEntries(t):t;return r.jsx(ie,{keyName:e,value:N,parentValue:n,initialValue:t,keys:o,level:c+1})}var w={onMouseEnter:()=>i({[s]:!0}),onMouseLeave:()=>i({[s]:!1})};return r.jsxs(Xe,l({className:"w-rjv-line",value:t,keyName:e,keys:o,parentValue:n},w,{children:[r.jsx(le,{keyName:e,value:t,keys:o,parentValue:n}),r.jsx(He,{keyName:e,value:t}),r.jsx(se,{keyName:e,value:t,keys:o,parentValue:n,expandKey:s})]}))};ra.displayName="JVR.KeyValuesItem";var it=["value","keyName"],ot=["as","render"],ta=a=>{var{CountInfoExtra:e={}}=B();return O(e,a,"CountInfoExtra"),null};ta.displayName="JVR.CountInfoExtra";var na=a=>{var{value:e={},keyName:t}=a,n=j(a,it),{CountInfoExtra:c={}}=B(),{as:o,render:i}=c,s=j(c,ot);if(!i&&!s.children)return null;var d=o||"span",v=i&&typeof i=="function",u=l({},s,n),p=v&&i(u,{value:e,keyName:t});return p||r.jsx(d,l({},u))};na.displayName="JVR.CountInfoExtraComps";var dt=["value","keyName"],ct=["as","render"],sa=a=>{var{CountInfo:e={}}=B();return O(e,a,"CountInfo"),null};sa.displayName="JVR.CountInfo";var la=a=>{var{value:e={},keyName:t}=a,n=j(a,dt),{displayObjectSize:c}=K(),{CountInfo:o={}}=B();if(!c)return null;var{as:i,render:s}=o,d=j(o,ct),v=i||"span";d.style=l({},d.style,a.style);var u=Object.keys(e).length;d.children||(d.children=u+" item"+(u===1?"":"s"));var p=l({},d,n),m=s&&typeof s=="function",f=m&&s(l({},p,{"data-length":u}),{value:e,keyName:t});return f||r.jsx(v,l({},p))};la.displayName="JVR.CountInfoComp";var vt=["as","render"],ia=a=>{var{Ellipsis:e={}}=B();return O(e,a,"Ellipsis"),null};ia.displayName="JVR.Ellipsis";var oa=a=>{var{isExpanded:e,value:t,keyName:n}=a,{Ellipsis:c={}}=B(),{as:o,render:i}=c,s=j(c,vt),d=o||"span",v=i&&typeof i=="function"&&i(l({},s,{"data-expanded":e}),{value:t,keyName:n});return v||(!e||typeof t=="object"&&Object.keys(t).length==0?null:r.jsx(d,l({},s)))};oa.displayName="JVR.EllipsisComp";var da=a=>{var e,{keyName:t,expandKey:n,keys:c=[],initialValue:o,value:i,parentValue:s,level:d}=a,v=U(),u=jr(),{onExpand:p,collapsed:m,shouldExpandNodeInitially:f}=K(),x=Array.isArray(i),N=i instanceof Set,w=typeof m=="boolean"?m:typeof m=="number"?d>m:!1,k=typeof i=="object",C=(e=v[n])!=null?e:w,S=f&&f(C,{value:i,keys:c,level:d});v[n]===void 0&&S!==void 0&&(C=S);var E=()=>{var L={expand:!C,value:i,keyid:n,keyName:t};p&&p(L),u({[n]:L.expand})},_={display:"inline-flex",alignItems:"center"},J={transform:"rotate("+(C?"-90":"0")+"deg)",transition:"all 0.3s"},h=Object.keys(i).length,R=h!==0&&(x||N||k),M={style:_};R&&(M.onClick=E);var A={keyName:t,value:i,keys:c,parentValue:s};return r.jsxs("span",l({},M,{children:[R&&r.jsx(Ee,l({style:J,expandKey:n},A)),(t||typeof t=="number")&&r.jsx(le,l({},A)),r.jsx(Ie,{value:o,keyName:t}),r.jsx($e,{value:o,keyName:t}),r.jsx(De,l({isBrackets:x||N},A)),r.jsx(oa,{keyName:t,value:i,isExpanded:C}),r.jsx(ne,l({isVisiable:C||!R,isBrackets:x||N},A)),r.jsx(la,{value:i,keyName:t}),r.jsx(na,{value:i,keyName:t}),r.jsx(se,{keyName:t,value:i,expandKey:n,parentValue:s,keys:c})]}))};da.displayName="JVR.NestedOpen";var ut=["className","children","parentValue","keyid","level","value","initialValue","keys","keyName"],ie=y.forwardRef((a,e)=>{var{className:t="",parentValue:n,level:c=1,value:o,initialValue:i,keys:s,keyName:d}=a,v=j(a,ut),u=ye(),p=ea(),m=[t,"w-rjv-inner"].filter(Boolean).join(" "),f={onMouseEnter:()=>u({[p]:!0}),onMouseLeave:()=>u({[p]:!1})};return r.jsxs("div",l({className:m,ref:e},v,f,{children:[r.jsx(da,{expandKey:p,value:o,level:c,keys:s,parentValue:n,keyName:d,initialValue:i}),r.jsx(aa,{expandKey:p,value:o,level:c,keys:s,parentValue:n,keyName:d}),r.jsx(Me,{expandKey:p,value:o,level:c,keys:s})]}))});ie.displayName="JVR.Container";var ca=a=>{var{BraceLeft:e={}}=V();return F(e,a,"BraceLeft"),null};ca.displayName="JVR.BraceLeft";var va=a=>{var{BraceRight:e={}}=V();return F(e,a,"BraceRight"),null};va.displayName="JVR.BraceRight";var ua=a=>{var{BracketsLeft:e={}}=V();return F(e,a,"BracketsLeft"),null};ua.displayName="JVR.BracketsLeft";var pa=a=>{var{BracketsRight:e={}}=V();return F(e,a,"BracketsRight"),null};pa.displayName="JVR.BracketsRight";var ya=a=>{var{Arrow:e={}}=V();return F(e,a,"Arrow"),null};ya.displayName="JVR.Arrow";var ma=a=>{var{Colon:e={}}=V();return F(e,a,"Colon"),null};ma.displayName="JVR.Colon";var fa=a=>{var{Quote:e={}}=V();return F(e,a,"Quote"),null};fa.displayName="JVR.Quote";var ha=a=>{var{ValueQuote:e={}}=V();return F(e,a,"ValueQuote"),null};ha.displayName="JVR.ValueQuote";var ja=a=>{var{Bigint:e={}}=b();return T(e,a,"Bigint"),null};ja.displayName="JVR.Bigint";var xa=a=>{var{Date:e={}}=b();return T(e,a,"Date"),null};xa.displayName="JVR.Date";var Na=a=>{var{False:e={}}=b();return T(e,a,"False"),null};Na.displayName="JVR.False";var wa=a=>{var{Float:e={}}=b();return T(e,a,"Float"),null};wa.displayName="JVR.Float";var Ca=a=>{var{Int:e={}}=b();return T(e,a,"Int"),null};Ca.displayName="JVR.Int";var ga=a=>{var{Map:e={}}=b();return T(e,a,"Map"),null};ga.displayName="JVR.Map";var ba=a=>{var{Nan:e={}}=b();return T(e,a,"Nan"),null};ba.displayName="JVR.Nan";var ka=a=>{var{Null:e={}}=b();return T(e,a,"Null"),null};ka.displayName="JVR.Null";var Ra=a=>{var{Set:e={}}=b();return T(e,a,"Set"),null};Ra.displayName="JVR.Set";var Sa=a=>{var{Str:e={}}=b();return T(e,a,"Str"),null};Sa.displayName="JVR.StringText";var Va=a=>{var{True:e={}}=b();return T(e,a,"True"),null};Va.displayName="JVR.True";var La=a=>{var{Undefined:e={}}=b();return T(e,a,"Undefined"),null};La.displayName="JVR.Undefined";var Ta=a=>{var{Url:e={}}=b();return T(e,a,"Url"),null};Ta.displayName="JVR.Url";var Ja=a=>{var{Copied:e={}}=B();return O(e,a,"Copied"),null};Ja.displayName="JVR.Copied";var pt=["className","style","value","children","collapsed","shouldExpandNodeInitially","indentWidth","displayObjectSize","shortenTextAfterLength","highlightUpdates","enableClipboard","displayDataTypes","objectSortKeys","onExpand","onCopied"],g=y.forwardRef((a,e)=>{var{className:t="",style:n,value:c,children:o,collapsed:i,shouldExpandNodeInitially:s,indentWidth:d=15,displayObjectSize:v=!0,shortenTextAfterLength:u=30,highlightUpdates:p=!0,enableClipboard:m=!0,displayDataTypes:f=!0,objectSortKeys:x=!1,onExpand:N,onCopied:w}=a,k=j(a,pt),C=l({lineHeight:1.4,fontFamily:"var(--w-rjv-font-family, Menlo, monospace)",color:"var(--w-rjv-color, #002b36)",backgroundColor:"var(--w-rjv-background-color, #00000000)",fontSize:13},n),S=["w-json-view-container","w-rjv",t].filter(Boolean).join(" ");return r.jsxs(Je,{initialState:{value:c,objectSortKeys:x,indentWidth:d,shouldExpandNodeInitially:s,displayObjectSize:v,collapsed:i,enableClipboard:m,shortenTextAfterLength:u,highlightUpdates:p,onCopied:w,onExpand:N},initialTypes:{displayDataTypes:f},children:[r.jsx(ie,l({value:c},k,{ref:e,className:S,style:C})),o]})});g.Bigint=ja;g.Date=xa;g.False=Na;g.Float=wa;g.Int=Ca;g.Map=ga;g.Nan=ba;g.Null=ka;g.Set=Ra;g.String=Sa;g.True=Va;g.Undefined=La;g.Url=Ta;g.ValueQuote=ha;g.Arrow=ya;g.Colon=ma;g.Quote=fa;g.Ellipsis=ia;g.BraceLeft=ca;g.BraceRight=va;g.BracketsLeft=ua;g.BracketsRight=pa;g.Copied=Ja;g.CountInfo=sa;g.CountInfoExtra=ta;g.KeyName=qe;g.Row=Ye;g.displayName="JVR.JsonView";var yt={"--w-rjv-font-family":"monospace","--w-rjv-color":"#79c0ff","--w-rjv-key-string":"#79c0ff","--w-rjv-background-color":"#0d1117","--w-rjv-line-color":"#94949480","--w-rjv-arrow-color":"#ccc","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#7b7b7b","--w-rjv-update-color":"#ebcb8b","--w-rjv-copied-color":"#79c0ff","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#8b949e","--w-rjv-colon-color":"#c9d1d9","--w-rjv-brackets-color":"#8b949e","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#a5d6ff","--w-rjv-type-int-color":"#79c0ff","--w-rjv-type-float-color":"#79c0ff","--w-rjv-type-bigint-color":"#79c0ff","--w-rjv-type-boolean-color":"#ffab70","--w-rjv-type-date-color":"#79c0ff","--w-rjv-type-url-color":"#4facff","--w-rjv-type-null-color":"#ff7b72","--w-rjv-type-nan-color":"#859900","--w-rjv-type-undefined-color":"#79c0ff"},mt={"--w-rjv-font-family":"monospace","--w-rjv-color":"#6f42c1","--w-rjv-key-string":"#6f42c1","--w-rjv-background-color":"#ffffff","--w-rjv-line-color":"#ddd","--w-rjv-arrow-color":"#6e7781","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#0000004d","--w-rjv-update-color":"#ebcb8b","--w-rjv-copied-color":"#002b36","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#6a737d","--w-rjv-colon-color":"#24292e","--w-rjv-brackets-color":"#6a737d","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#032f62","--w-rjv-type-int-color":"#005cc5","--w-rjv-type-float-color":"#005cc5","--w-rjv-type-bigint-color":"#005cc5","--w-rjv-type-boolean-color":"#d73a49","--w-rjv-type-date-color":"#005cc5","--w-rjv-type-url-color":"#0969da","--w-rjv-type-null-color":"#d73a49","--w-rjv-type-nan-color":"#859900","--w-rjv-type-undefined-color":"#005cc5"};const ft=({...a})=>{const e=or(),{palette:{primary:{main:t}}}=Ka(),n=y.useMemo(()=>({...e==="light"?mt:yt,"--w-rjv-background-color":"transparent","--w-rjv-ellipsis-color":t}),[e,t]);return r.jsx(g,{...a,style:n,displayObjectSize:!1,displayDataTypes:!1})};function ve(a,e){y.useEffect(()=>{const t=new URLSearchParams(window.location.search),n=t.get(a)??"";if(e===n)return;e?t.set(a,e):t.delete(a);const c=[window.location.pathname,t.toString()].filter(Boolean).join("?");window.history.replaceState(null,"",c)},[a,e])}const xt=()=>!0,Nt={crumb:(a,{pathname:e})=>({to:e,linkText:e.split("/").reverse()[0]==="reports"?"Reports":"Test Suites"})},Ba=a=>Object.values(a).map(e=>Array.isArray(e)?e.join(" "):typeof e=="object"?Ba(e):e).join(" "),wt=({type:a,slots:e})=>{const{projectId:t}=Oa(),n=Pa(),c=Ua(),o=Qa(),s=Wa().state!=="idle";Za(t);const[d]=za(),[v,u]=y.useState("desc"),[p,m]=Ha("show-full-json-metadata",!1),[f,x]=y.useState(()=>{var h;return((h=d.get("tags"))==null?void 0:h.split(","))||[]}),[N,w]=y.useState(()=>d.get("metadata-query")||"");ve("tags",f.join(",")),ve("metadata-query",String(N));const k=c.find(({handle:h})=>{var R;return((R=h==null?void 0:h.hide)==null?void 0:R.snapshotList)===!0}),C=y.useMemo(()=>Array.from(new Set(n.flatMap(({tags:h})=>h))),[n]),S=y.useMemo(()=>n.filter(({tags:h})=>f.every(R=>h.includes(R))),[n,f]),E=y.useMemo(()=>S.filter(({metadata:h})=>N===""?!0:Ba(h).includes(N)),[S,N]),_=y.useMemo(()=>v===void 0?E:E.sort((h,R)=>{const[M,A]=[Date.parse(h.timestamp),Date.parse(R.timestamp)],L=M-A;return v==="desc"?-L:v==="asc"?L:0}),[E,v]);if(k)return r.jsx(qa,{});const J=r.jsx($,{sx:{padding:2},children:r.jsxs(Z,{container:!0,gap:2,alignItems:"flex-end",justifyContent:"space-around",children:[r.jsx(Z,{item:!0,xs:12,md:4,children:r.jsx(sr,{multiple:!0,limitTags:2,value:f,onChange:(h,R)=>x(R),options:C,renderInput:h=>r.jsx(ce,{...h,variant:"standard",label:"Filter by Tags"})})}),r.jsx(Z,{item:!0,xs:12,md:7,children:r.jsxs($,{display:"flex",alignItems:"flex-end",gap:2,children:[r.jsx(ce,{fullWidth:!0,value:N,onChange:h=>w(h.target.value),variant:"standard",label:"Search in Metadata"}),r.jsx($,{minWidth:220,display:"flex",justifyContent:"center",children:r.jsx(lr,{control:r.jsx(ir,{checked:p,onChange:h=>m(h.target.checked)}),label:"Hide Metadata"})}),r.jsx($,{display:"flex",justifyContent:"flex-end",children:r.jsxs(z,{sx:{minWidth:160},variant:"outlined",onClick:()=>o({action:"reload-snapshots"},{method:"post",replace:!0,encType:"application/json"}),color:"primary",disabled:s,children:["refresh ",a]})})]})})]})});return n.length===0?r.jsxs(r.Fragment,{children:[J,r.jsxs(de,{my:3,variant:"h4",align:"center",children:["You don't have any ",a," yet."]})]}):r.jsxs(r.Fragment,{children:[J,r.jsxs(Ga,{children:[r.jsxs(Ya,{children:[r.jsxs(W,{children:[r.jsx(I,{children:a==="reports"?"Report ID":a==="test suites"?"Test Suite ID":"indefined"}),r.jsx(I,{children:"Tags"}),r.jsx(I,{children:"Metadata"}),r.jsx(I,{children:r.jsx(Xa,{active:!!v,direction:v,onClick:()=>{u(h=>{if(h===void 0)return"desc";if(h==="desc")return"asc"})},children:"Timestamp"})}),r.jsx(I,{align:"center",children:"Actions"})]}),r.jsx(W,{})]}),r.jsx(er,{children:_.map(h=>r.jsxs(W,{children:[r.jsx(I,{children:r.jsx(ur,{showText:h.id,copyText:h.id})}),r.jsx(I,{children:r.jsx($,{maxWidth:250,children:r.jsx(vr,{onClick:R=>{f.includes(R)||x([...f,R])},tags:h.tags})})}),r.jsx(I,{children:r.jsx(ft,{collapsed:p,value:h.metadata,enableClipboard:!1})}),r.jsx(I,{children:r.jsx(de,{variant:"body2",children:ar(h.timestamp).locale("en-gb").format("llll")})}),r.jsx(I,{children:r.jsxs($,{display:"flex",justifyContent:"center",gap:1,children:[e!=null&&e.ViewButton?r.jsx(e.ViewButton,{snapshotId:h.id,projectId:t}):r.jsx(z,{disabled:s,component:rr,to:`${h.id}`,children:"View"}),r.jsx(cr,{variant:(e==null?void 0:e.donwloadButtonVariant)||"outlined",disabled:s,downloadLink:`/api/projects/${t}/${h.id}/download`}),(e==null?void 0:e.additionalSnapshotActions)&&r.jsx(e.additionalSnapshotActions,{snapshotId:h.id,projectId:t}),r.jsx($,{children:r.jsx(tr,{title:"delete snapshot",placement:"top",children:r.jsx(G,{onClick:()=>{confirm("Are you sure?")===!0&&o({action:"delete-snapshot",snapshotId:h.id},{method:"post",replace:!0,encType:"application/json"})},color:"primary",disabled:s,children:r.jsx(nr,{})})})})]})})]},`r-${h.id}`))})]})]})};export{wt as SnapshotsListTemplate,Nt as handle,xt as shouldRevalidate}; diff --git a/src/evidently/ui/assets/static/js/index-BXIEK-ok.js b/src/evidently/ui/assets/static/js/index-BXIEK-ok.js deleted file mode 100644 index 3e9ebb7290..0000000000 --- a/src/evidently/ui/assets/static/js/index-BXIEK-ok.js +++ /dev/null @@ -1 +0,0 @@ -import{a9 as d,h as D,Y as l,v as e,aa as p,j as s}from"./vendor-D9wnXojU.js";import{D as x}from"./index-DxyKdhm1.js";import{D as c}from"./DashboardViewParams-VueHZ5oJ.js";const b=({Dashboard:o})=>{const{projectId:r}=d();D(r);const a=l(),m=a.min_timestamp!==null&&a.max_timestamp!==null,i={minDate:e(a.min_timestamp),maxDate:e(a.max_timestamp)},[t,n]=p("dashboard-hide-dates",!1);return s.jsxs(s.Fragment,{children:[s.jsx(x,{dataRanges:i,isShowDateFilter:m,isDashboardHideDates:t,setIsDashboardHideDates:n}),s.jsx(c.Provider,{value:{isXaxisAsCategorical:t},children:s.jsx(o,{data:a})})]})};export{b as DashboardComponentTemplate}; diff --git a/src/evidently/ui/assets/static/js/index-BdVpjpKq.js b/src/evidently/ui/assets/static/js/index-BdVpjpKq.js new file mode 100644 index 0000000000..0dbf680942 --- /dev/null +++ b/src/evidently/ui/assets/static/js/index-BdVpjpKq.js @@ -0,0 +1 @@ +import{O as c,a3 as d,j as e,B as x,G as a,T as p,I as j,a6 as m,a7 as u,Q as h,U as b,a8 as T,a5 as f}from"./vendor-DoRIiF9A.js";const C={crumb:(s,{pathname:n})=>({to:n,linkText:(s==null?void 0:s.name)||"undefined"})},o=({tabsConfig:s=[]})=>{const n=c(),i=d(),r=s.findIndex(t=>n.find(({id:l})=>l===t.id));return e.jsxs(x,{mt:2,children:[e.jsx(a,{container:!0,spacing:2,direction:"row",justifyContent:"flex-start",alignItems:"flex-end",children:e.jsx(a,{item:!0,xs:12,children:e.jsxs(p,{sx:{color:"#aaa"},variant:"body2",children:[`project id: ${i.id}`,e.jsx(j,{size:"small",style:{marginLeft:10},onClick:()=>{navigator.clipboard.writeText(i.id)},children:e.jsx(m,{fontSize:"small"})})]})})}),s.length>0&&e.jsx(u,{value:r,"aria-label":"simple tabs example",indicatorColor:"primary",children:s.map(t=>e.jsx(h,{component:b,to:t.link,children:e.jsx(T,{label:t.label||t.id,value:t.id})},t.id))}),e.jsx(f,{})]})},k=[{id:"dashboard",link:".",label:"Dashboard"},{id:"reports",link:"reports",label:"Reports"},{id:"test_suites",link:"test-suites",label:"Test suites"}],I=()=>e.jsx(o,{tabsConfig:k}),g=()=>e.jsx(o,{});export{I as Component,o as ProjectTemplate,g as ProjectWithoutTabs,C as handle}; diff --git a/src/evidently/ui/assets/static/js/index-BnuGDDzE.js b/src/evidently/ui/assets/static/js/index-BnuGDDzE.js deleted file mode 100644 index c0d068d153..0000000000 --- a/src/evidently/ui/assets/static/js/index-BnuGDDzE.js +++ /dev/null @@ -1 +0,0 @@ -import{H as h,j as s,B as a,J as p,K as o,N as l,O as j,d as u,P as m,Q as g,U as v,V as f,W as b,T as y,X as c,Y as B,Z as T,_ as k}from"./vendor-D9wnXojU.js";const z=t=>{var n;return typeof((n=t==null?void 0:t.handle)==null?void 0:n.crumb)=="function"},C=()=>{const n=h().filter(z).map(({handle:e,data:i,id:r,pathname:x,params:d})=>e.crumb(i,{id:r,pathname:x,params:d}));return s.jsx(a,{children:s.jsx(p,{"aria-label":"breadcrumb",children:n.map(e=>s.jsx(o,{component:l,color:"inherit",to:e.to,children:e.linkText},e.to))})})},N=()=>{const t=j(),n=u(),{state:e}=m();return t.state!=="idle"||n.some(({state:r})=>r!=="idle")||e!=="idle"?s.jsx(a,{width:1,sx:{position:"fixed",top:0,left:0,zIndex:1e3},children:s.jsx(g,{sx:{height:"3px"}})}):null},S=()=>s.jsx(v,{children:s.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028 14.09 14.09 0 0 0 1.226-1.994.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z"})})});function H({version:t,authComponent:n,logoSrc:e}){return s.jsx(s.Fragment,{children:s.jsx(f,{position:"static",sx:{borderTop:"none"},color:"transparent",children:s.jsxs(b,{sx:{gap:1},children:[s.jsxs(y,{variant:"h6",sx:{flexGrow:1},children:[s.jsx(l,{to:"/",children:s.jsx("img",{src:e,height:"55px",alt:"evidently logo"})}),s.jsx("span",{style:{verticalAlign:"super",fontSize:"0.75rem"},children:t})]}),n,s.jsx(c,{component:o,startIcon:s.jsx(S,{}),href:"https://discord.gg/EJxU68uynY",target:"_blank",children:"Support"}),s.jsx(c,{component:o,href:"https://docs.evidentlyai.com",target:"_blank",children:"Docs"})]})})})}const L=({logoSrc:t,authComponent:n})=>{const{version:e}=B();return s.jsxs(s.Fragment,{children:[s.jsx(H,{authComponent:n,version:e,logoSrc:t}),s.jsx(N,{}),s.jsx(T,{}),s.jsxs(a,{p:3,children:[s.jsx(C,{}),s.jsx(k,{})]})]})},w={crumb:()=>({to:"/",linkText:"Home"})};export{L as HomeComponentTemplate,w as handle}; diff --git a/src/evidently/ui/assets/static/js/index-BqCr-mCb.js b/src/evidently/ui/assets/static/js/index-BqCr-mCb.js new file mode 100644 index 0000000000..dbb9d24105 --- /dev/null +++ b/src/evidently/ui/assets/static/js/index-BqCr-mCb.js @@ -0,0 +1,3 @@ +const __vite__fileDeps=["static/js/index-CP21mErs.js","static/js/vendor-DoRIiF9A.js","static/js/index-DQXtchPZ.js","static/js/DashboardViewParams-mNv_VOpq.js","static/js/DashboardWidgets-c1VLgBQN.js","static/js/DashboardContent-CtUoNzcD.js","static/js/index-Cfoxrigu.js","static/js/index-8XPeT5JI.js","static/js/index-BdVpjpKq.js","static/js/index-CMKyMjTx.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +var ee=Object.defineProperty;var te=(e,t,s)=>t in e?ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var I=(e,t,s)=>(te(e,typeof t!="symbol"?t+"":t,s),s);import{c as G,g as R,u as re,a as se,r as O,j as r,A as oe,b as ne,d as F,i as ie,T as b,e as ae,R as M,S as ce,B as L,I as he,C as le,f as de,h as ue,k as pe,l as fe,m as C,n as me,o as je,L as xe,p as Le,G as T,F as ye,q as _e,s as ge,t as ve,v as Ee,M as p,D as V,w as Ce,x as Se,y as A,z as u,E as be,H as Ie,J as Te,K as ke,N as we}from"./vendor-DoRIiF9A.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))o(i);new MutationObserver(i=>{for(const n of i)if(n.type==="childList")for(const a of n.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&o(a)}).observe(document,{childList:!0,subtree:!0});function s(i){const n={};return i.integrity&&(n.integrity=i.integrity),i.referrerPolicy&&(n.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?n.credentials="include":i.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function o(i){if(i.ep)return;i.ep=!0;const n=s(i);fetch(i.href,n)}})();const{transitions:S}=G(),k="#ed0500",Pe=G({cssVariables:{colorSchemeSelector:"class"},colorSchemes:{light:{palette:{text:{primary:"#09090b"},primary:{main:"#09090b",light:R[200]},secondary:{main:k,dark:"#c10400",light:R[200]}}},dark:{palette:{text:{primary:"#fafafa"},primary:{main:"#fafafa",light:R[900]},secondary:{main:k}}}},shape:{borderRadius:5},components:{MuiInputBase:{styleOverrides:{input:{"&:-webkit-autofill":{transitionDelay:"9999s",transitionProperty:"background-color, box-shadow, color"}}}},MuiLink:{styleOverrides:{root:{transition:S.create("color",{duration:S.duration.enteringScreen}),"&:hover":{color:k}}}},MuiTabs:{styleOverrides:{flexContainer:{gap:"10px"},indicator:{backgroundColor:k}}},MuiTab:{defaultProps:{color:"secondary"},styleOverrides:{root:{fontSize:"1rem",borderRadius:"5px"}}},MuiIconButton:{styleOverrides:{root:{transition:S.create("color",{duration:S.duration.enteringScreen}),color:"inherit","&:hover":{color:k}}}},MuiSwitch:{defaultProps:{color:"secondary"}},MuiToggleButton:{defaultProps:{color:"secondary"},styleOverrides:{root:{transition:S.create("color",{duration:S.duration.enteringScreen}),color:"inherit","&.Mui-disabled":{border:"unset"}}}},MuiLinearProgress:{defaultProps:{color:"secondary"}},MuiPaper:{defaultProps:{sx:{border:"1px solid",borderColor:e=>e.palette.divider}},styleOverrides:{root:{boxShadow:"unset"}}}},typography:{fontFamily:["-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),button:{fontWeight:"bold",textTransform:"none"}}}),W=()=>{const{mode:e}=re(),t=se("(prefers-color-scheme: dark)");return!e||e==="system"?t?"dark":"light":e},gt=()=>{const e=W();return O.useMemo(()=>e==="dark"?{tooltip:{container:{background:"#000",color:"#fff"}}}:void 0,[e])},N=({forseFilled:e,sx:t,...s})=>{const o=W();return r.jsx(oe,{sx:[i=>i.applyStyles("light",{border:"none"}),...Array.isArray(t)?t:[t]],variant:o==="dark"?e?"filled":"outlined":void 0,...s})},g=()=>{var t;const e=ne();return r.jsxs(N,{severity:"error",children:[r.jsx(F,{children:"Something went wrong"}),ie(e)&&r.jsxs(r.Fragment,{children:[r.jsx(b,{fontWeight:"bold",children:[`Status: ${e.status}`,typeof((t=e.data)==null?void 0:t.detail)=="string"&&e.data.detail].filter(Boolean).join(", ")}),typeof e.data=="string"&&r.jsx(b,{children:e.data})]}),typeof e=="string"&&r.jsx(b,{fontWeight:"bold",children:e})]})},J=({data:e})=>{const[t,s]=M.useState(!1),o=M.useRef(null);return O.useEffect(()=>{e!=null&&e.error&&(o.current=e.error,s(!0))},[e]),r.jsx(ce,{open:t,onClose:(i,n)=>{n!=="clickaway"&&s(!1)},children:r.jsx(L,{children:r.jsx(N,{severity:"error",forseFilled:!0,children:r.jsxs(L,{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:2,children:[r.jsxs(L,{children:[r.jsx(F,{children:"Something went wrong"}),o.current&&r.jsx(b,{fontWeight:"bold",children:[typeof o.current.status_code=="number"&&`Status: ${o.current.status_code}`,typeof o.current.detail=="string"&&o.current.detail].filter(Boolean).join(", ")})]}),r.jsx(L,{children:r.jsx(he,{size:"small","aria-label":"close",color:"inherit",onClick:()=>{s(!1)},children:r.jsx(le,{})})})]})})})})},B=()=>{const e=ae();return r.jsx(J,{data:e})},Oe=()=>{var s;const t=(s=de().find(o=>{var i;return!!((i=o.data)!=null&&i.error)}))==null?void 0:s.data;return r.jsx(J,{data:t})},Ae={path:"*",Component:()=>r.jsx(L,{display:"flex",justifyContent:"center",children:r.jsx(b,{variant:"h4",children:"Page Not Found"})})},De="modulepreload",Re=function(e){return"/"+e},z={},_=function(t,s,o){let i=Promise.resolve();if(s&&s.length>0){document.getElementsByTagName("link");const n=document.querySelector("meta[property=csp-nonce]"),a=(n==null?void 0:n.nonce)||(n==null?void 0:n.getAttribute("nonce"));i=Promise.all(s.map(c=>{if(c=Re(c),c in z)return;z[c]=!0;const f=c.endsWith(".css"),h=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${h}`))return;const l=document.createElement("link");if(l.rel=f?"stylesheet":De,f||(l.as="script",l.crossOrigin=""),l.href=c,a&&l.setAttribute("nonce",a),document.head.appendChild(l),f)return new Promise((j,D)=>{l.addEventListener("load",j),l.addEventListener("error",()=>D(new Error(`Unable to preload CSS for ${c}`)))})}))}return i.then(()=>t()).catch(n=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=n,window.dispatchEvent(a),!a.defaultPrevented)throw n})},Me=()=>r.jsx(ue,{fontSize:"large",sx:{width:180},children:r.jsxs("svg",{"aria-hidden":"true",width:"734",height:"219",viewBox:"0 70 734 90",version:"1.1",children:[r.jsx("path",{d:"M 180 113 L 180 141 201.500 141 L 223 141 223 136.500 L 223 132 207 132 L 191 132 191 124.500 L 191 117 204.500 117 L 218 117 218 112.500 L 218 108 204.500 108 L 191 108 191 101 L 191 94 206 94 L 221 94 221 89.500 L 221 85 200.500 85 L 180 85 180 113 M 221.989 87.250 C 221.983 88.487, 227.010 101.088, 233.160 115.250 L 244.342 141 249.931 141 L 255.521 141 266.865 114.959 C 273.104 100.636, 278.439 88.036, 278.721 86.959 C 279.183 85.191, 278.709 85.002, 273.867 85.024 L 268.500 85.049 259.393 106.080 L 250.285 127.111 243.204 110.806 C 239.309 101.838, 235.210 92.362, 234.096 89.750 L 232.071 85 227.036 85 C 222.483 85, 221.999 85.216, 221.989 87.250 M 280 113 L 280 141 285.500 141 L 291 141 291 113 L 291 85 285.500 85 L 280 85 280 113 M 301 113 L 301 141 316.818 141 C 327.946 141, 334.130 140.557, 337.672 139.505 C 340.601 138.635, 344.617 136.329, 347.270 133.993 C 349.779 131.785, 352.871 127.845, 354.141 125.239 C 355.926 121.575, 356.450 118.799, 356.450 113 C 356.450 107.201, 355.926 104.425, 354.141 100.761 C 352.871 98.155, 349.779 94.215, 347.270 92.007 C 344.617 89.671, 340.601 87.365, 337.672 86.495 C 334.130 85.443, 327.946 85, 316.818 85 L 301 85 301 113 M 362 113 L 362 141 383.500 141 L 405 141 405 136.500 L 405 132 389 132 L 373 132 373 124.500 L 373 117 386.500 117 L 400 117 400 112.500 L 400 108 386.500 108 L 373 108 373 101 L 373 94 388.500 94 L 404 94 404 89.500 L 404 85 383 85 L 362 85 362 113 M 411 113 L 411 141 416.500 141 L 422 141 422 122.426 L 422 103.851 437.126 122.426 L 452.253 141 457.126 141 L 462 141 462 113 L 462 85 456.522 85 L 451.044 85 450.772 103.414 L 450.500 121.828 435.550 103.414 L 420.600 85 415.800 85 L 411 85 411 113 M 464 89.500 L 464 94 473.500 94 L 483 94 483 117.500 L 483 141 488.500 141 L 494 141 494 117.500 L 494 94 503 94 L 512 94 512 89.500 L 512 85 488 85 L 464 85 464 89.500 M 514 113 L 514 141 534.500 141 L 555 141 555 136.500 L 555 132 540.500 132 L 526 132 526 108.500 L 526 85 520 85 L 514 85 514 113 M 544 85.624 C 544 85.967, 548.725 94.001, 554.500 103.477 L 565 120.707 565 130.853 L 565 141 571 141 L 577 141 577 130.825 L 577 120.649 587.500 103.291 C 593.275 93.743, 598 85.722, 598 85.466 C 598 85.210, 595.577 85, 592.615 85 L 587.230 85 579.505 97.991 C 575.257 105.136, 571.435 110.769, 571.012 110.507 C 570.589 110.246, 566.926 104.410, 562.872 97.538 L 555.500 85.043 549.750 85.021 C 546.587 85.010, 544 85.281, 544 85.624 M 312 113 L 312 132 320.250 131.994 C 324.788 131.991, 330.174 131.524, 332.219 130.956 C 334.264 130.388, 337.363 128.724, 339.105 127.258 C 340.847 125.793, 342.886 123.124, 343.636 121.329 C 344.386 119.533, 345 115.785, 345 113 C 345 110.215, 344.386 106.467, 343.636 104.671 C 342.886 102.876, 340.847 100.207, 339.105 98.742 C 337.363 97.276, 334.264 95.612, 332.219 95.044 C 330.174 94.476, 324.788 94.009, 320.250 94.006 L 312 94 312 113",fill:"currentColor",fillRule:"evenodd"}),r.jsx("path",{d:"M 121 112 L 121 169 133.500 169 L 146 169 146 112 L 146 55 133.500 55 L 121 55 121 112 M 77 126 L 77 169 90 169 L 103 169 103 126 L 103 83 90 83 L 77 83 77 126 M 633.540 88.199 C 632.771 90.015, 627.159 102.517, 621.070 115.982 C 614.982 129.447, 610 140.832, 610 141.282 C 610 141.732, 612.528 141.965, 615.617 141.800 L 621.235 141.500 623.794 135.250 L 626.353 129 640.218 129 L 654.084 129 657 135.500 L 659.916 142 665.526 142 C 670.413 142, 671.063 141.775, 670.577 140.250 C 670.271 139.287, 664.639 126.575, 658.064 112 L 646.108 85.500 640.524 85.199 C 635.051 84.904, 634.913 84.964, 633.540 88.199 M 673 113.500 L 673 142 678.500 142 L 684 142 684 113.500 L 684 85 678.500 85 L 673 85 673 113.500 M 635.630 107.723 C 633.074 113.650, 630.986 118.838, 630.991 119.250 C 630.996 119.662, 635.275 120, 640.500 120 C 645.725 120, 650 119.819, 650 119.598 C 650 119.377, 647.923 114.315, 645.385 108.348 C 642.847 102.382, 640.659 97.375, 640.524 97.223 C 640.389 97.070, 638.187 101.795, 635.630 107.723 M 34 140.500 L 34 169 47 169 L 60 169 60 140.500 L 60 112 47 112 L 34 112 34 140.500",fill:"#ed0500",fillRule:"evenodd"})]})});function d(e){return e!=null&&e.notThrowExc?Ne:Fe}const Fe=e=>{const{data:t,error:s,response:o}=e;if(s)throw pe(s,{status:o.status});return t},Ne=e=>{const{data:t,error:s,response:o}=e;return s?{error:{...s,status_code:o.status}}:t},Be=({api:e})=>({loader:()=>e.GET("/api/version").then(d())}),$e=fe,v=$e({baseUrl:"/"}),{loader:Ve}=Be({api:v}),ze={path:"/",lazy:async()=>{const{HomeComponentTemplate:e,...t}=await _(()=>import("./index-CP21mErs.js"),__vite__mapDeps([0,1]));return{Component:()=>r.jsxs(r.Fragment,{children:[r.jsx(Oe,{}),r.jsx(e,{LogoSvg:Me})]}),...t}},loader:Ve,ErrorBoundary:g},q=e=>{if(e.id)return{...e,id:e.id};throw`"id" is missing in object: ${JSON.stringify(e)}`},Y=e=>{if(e.headers.get("Content-type")!=="application/json")throw new Response("Unsupported Media Type",{status:415})},He=({api:e})=>({loader:({params:t})=>{const{projectId:s}=t;return C(s),e.GET("/api/projects/{project_id}/info",{params:{path:{project_id:s}}}).then(d()).then(q)}});function H(e){return`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}T${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}`}const y={FROM:"date_from",TO:"date_to"},Ue=e=>{const t=e.get(y.FROM),s=e.get(y.TO);return{date_from:t,date_to:s}},Ge=({dataRanges:e})=>{const[t,s]=Se(),{date_from:o,date_to:i}=Ue(t),n=A(o||e.minDate),a=A(i||e.maxDate);return{isCorrectTimeInterval:n.isValid()&&a.isValid()&&(n.isSame(a)||n.isBefore(a)),date_from:n,date_to:a,setSearchParams:s}},vt=({dataRanges:e,isDashboardHideDates:t,setIsDashboardHideDates:s,isShowDateFilter:o})=>{const i=me(),{isCorrectTimeInterval:n,date_from:a,date_to:c,setSearchParams:f}=Ge({dataRanges:e}),[h,l]=O.useState({date_from:a,date_to:c}),j=je(h,300),D=n?"":"incorrect time interval";return O.useEffect(()=>{var w,P;if(i)return;const m=(w=j==null?void 0:j.date_to)==null?void 0:w.toDate(),x=(P=j==null?void 0:j.date_from)==null?void 0:P.toDate();f(E=>(E.delete(y.FROM),E.delete(y.TO),x&&E.append(y.FROM,H(x)),m&&E.append(y.TO,H(m)),E),{preventScrollReset:!0,replace:!0})},[j]),r.jsx(xe,{dateAdapter:Le,adapterLocale:"en-gb",children:r.jsxs(T,{container:!0,padding:1,zIndex:1,gap:2,justifyContent:"flex-end",alignItems:"flex-end",children:[r.jsx(T,{item:!0,children:r.jsx(L,{minWidth:180,display:"flex",justifyContent:"center",children:r.jsx(ye,{control:r.jsx(_e,{checked:t,onChange:m=>s(m.target.checked)}),label:"Show in order"})})}),o&&r.jsxs(r.Fragment,{children:[r.jsx(T,{item:!0,xs:12,md:2,children:r.jsxs(ge,{fullWidth:!0,children:[r.jsx(ve,{children:"Period"}),r.jsxs(Ee,{variant:"standard",defaultValue:"",onChange:m=>{const[x,w]=m.target.value.split(",");if(x===""){l({date_from:null,date_to:null});return}const[P,E]=[Number(x),w],$=e.maxDate.subtract(P,E);l({date_from:$.isBefore(e.minDate)?e.minDate:$,date_to:e.maxDate})},children:[r.jsx(p,{value:"",children:r.jsx("em",{children:"None"})}),r.jsx(p,{value:"10,minutes",children:"Last 10 Minutes"}),r.jsx(p,{value:"30,minutes",children:"Last 30 Minutes"}),r.jsx(p,{value:"1,hours",children:"Last 1 Hours"}),r.jsx(p,{value:"2,hours",children:"Last 2 Hours"}),r.jsx(p,{value:"8,hours",children:"Last 8 Hours"}),r.jsx(p,{value:"24,hours",children:"Last 24 Hours"}),r.jsx(p,{value:"7,days",children:"Last 7 Days"}),r.jsx(p,{value:"14,days",children:"Last 14 Days"}),r.jsx(p,{value:"28,days",children:"Last 28 Days"}),r.jsx(p,{value:"60,days",children:"Last 60 Days"})]})]})}),r.jsx(T,{item:!0,children:r.jsxs(L,{display:"flex",alignItems:"center",gap:2,children:[r.jsx(V,{minDate:e.minDate,maxDate:e.maxDate&&c,slotProps:{textField:{variant:"standard"}},label:"From",value:h.date_from,onChange:m=>l(x=>({...x,date_from:m}))}),r.jsx(L,{height:1,display:"flex",alignItems:"center",children:r.jsx(b,{children:" - "})}),r.jsx(V,{minDate:e.minDate&&a,maxDate:e.maxDate,slotProps:{textField:{variant:"standard"}},label:"To",value:h.date_to,onChange:m=>l(x=>({...x,date_to:m}))})]})}),r.jsx(T,{item:!0,xs:12,children:r.jsx(Ce,{unmountOnExit:!0,in:!n,children:r.jsxs(N,{severity:"error",children:[r.jsx(F,{children:"Error"}),D]})})})]})]})})};class We{constructor(){I(this,"at",0);I(this,"ch","");I(this,"text","");I(this,"escapee",{'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:` +`,r:"\r",t:" "})}error(t){throw{name:"SyntaxError",message:t,at:this.at,text:this.text}}next(){return this.ch=this.text.charAt(this.at++)}check(t){t!==this.ch&&this.error(`Expected '${t}' instead of '${this.ch}'`),this.ch=this.text.charAt(this.at++)}number(){var t="";if(this.ch==="-"&&(t="-",this.check("-")),this.ch==="I")return this.check("I"),this.check("n"),this.check("f"),this.check("i"),this.check("n"),this.check("i"),this.check("t"),this.check("y"),Number.NEGATIVE_INFINITY;for(;this.ch>="0"&&this.ch<="9";)t+=this.ch,this.next();if(this.ch===".")for(t+=".";this.next()&&this.ch>="0"&&this.ch<="9";)t+=this.ch;if(this.ch==="e"||this.ch==="E")for(t+=this.ch,this.next(),(this.ch==="-"||this.ch==="+")&&(t+=this.ch,this.next());this.ch>="0"&&this.ch<="9";)t+=this.ch,this.next();return+t}string(){var t,s,o="",i;if(this.ch==='"')for(;this.next();){if(this.ch==='"')return this.next(),o;if(this.ch==="\\")if(this.next(),this.ch==="u"){for(i=0,s=0;s<4&&(t=Number.parseInt(this.next(),16),!!isFinite(t));s++)i=i*16+t;o+=String.fromCharCode(i)}else if(this.escapee[this.ch])o+=this.escapee[this.ch];else break;else o+=this.ch}this.error("Bad string")}white(){for(;this.ch&&this.ch<=" ";)this.next()}word(){switch(this.ch){case"t":return this.check("t"),this.check("r"),this.check("u"),this.check("e"),!0;case"f":return this.check("f"),this.check("a"),this.check("l"),this.check("s"),this.check("e"),!1;case"n":return this.check("n"),this.check("u"),this.check("l"),this.check("l"),null;case"N":return this.check("N"),this.check("a"),this.check("N"),Number.NaN;case"I":return this.check("I"),this.check("n"),this.check("f"),this.check("i"),this.check("n"),this.check("i"),this.check("t"),this.check("y"),Number.POSITIVE_INFINITY}this.error("Unexpected '"+this.ch+"'")}array(){var t=[];if(this.ch==="["){if(this.check("["),this.white(),this.ch==="]")return this.check("]"),t;for(;this.ch;){if(t.push(this.value()),this.white(),this.ch==="]")return this.check("]"),t;this.check(","),this.white()}}this.error("Bad array")}object(){var t,s={};if(this.ch==="{"){if(this.check("{"),this.white(),this.ch==="}")return this.check("}"),s;for(;this.ch;){if(t=this.string(),this.white(),this.check(":"),Object.hasOwnProperty.call(s,t)&&this.error('Duplicate key "'+t+'"'),s[t]=this.value(),this.white(),this.ch==="}")return this.check("}"),s;this.check(","),this.white()}}this.error("Bad object")}value(){switch(this.white(),this.ch){case"{":return this.object();case"[":return this.array();case'"':return this.string();case"-":return this.number();default:return this.ch>="0"&&this.ch<="9"?this.number():this.word()}}parse(t,s){let o;return this.text=t,this.at=0,this.ch=" ",o=this.value(),this.white(),this.ch&&this.error("Syntax error"),s!==void 0?function i(n,a){var c,f,h=n[a];if(h&&typeof h=="object")for(c in h)Object.prototype.hasOwnProperty.call(h,c)&&(f=i(h,c),f!==void 0?h[c]=f:delete h[c]);return s.call(n,a,h)}({"":o},""):o}}const Q=e=>new We().parse(e),Je=({api:e})=>({loader:({params:t,request:s})=>{C(t.projectId);const{searchParams:o}=new URL(s.url);let i=o.get(y.FROM),n=o.get(y.TO);return i&&!A(i).isValid()&&(i=null),n&&!A(n).isValid()&&(n=null),e.GET("/api/projects/{project_id}/dashboard",{params:{path:{project_id:t.projectId},query:{timestamp_start:i,timestamp_end:n}},parseAs:"text"}).then(d()).then(Q)}}),{loader:qe}=Je({api:v}),Ye={index:!0,id:"dashboard",lazy:async()=>{const[{DashboardComponentTemplate:e},{DashboardWidgets:t}]=await Promise.all([_(()=>import("./index-DQXtchPZ.js"),__vite__mapDeps([2,1,3])),_(()=>import("./DashboardWidgets-c1VLgBQN.js"),__vite__mapDeps([4,1,5,3]))]);return{Component:()=>r.jsx(e,{Dashboard:({data:{widgets:s}})=>r.jsx(t,{widgets:s})})}},loader:qe,ErrorBoundary:g},K={RELOAD_SNAPSHOTS:"reload-snapshots",DELETE_SNAPSHOT:"delete-snapshot"},Qe=u.object({action:u.literal(K.RELOAD_SNAPSHOTS)}),Ke=u.object({action:u.literal(K.DELETE_SNAPSHOT),snapshotId:u.string().uuid()}),X=e=>async({request:t,params:s})=>{C(s.projectId),Y(t);const o=await t.json();if(Qe.safeParse(o).success)return e.GET("/api/projects/{project_id}/reload",{params:{path:{project_id:s.projectId}}}).then(d({notThrowExc:!0}));const n=Ke.safeParse(o);return n.success?e.DELETE("/api/projects/{project_id}/{snapshot_id}",{params:{path:{project_id:s.projectId,snapshot_id:n.data.snapshotId}}}).then(d({notThrowExc:!0})):{error:{status_code:!1,detail:"Unknown action"}}},Xe=({api:e})=>({loader:({params:t})=>(C(t.projectId),t.snapshotId?Promise.resolve([]):e.GET("/api/projects/{project_id}/reports",{params:{path:{project_id:t.projectId}}}).then(d())),action:X(e)}),Ze=({api:e})=>({loader:({params:t})=>(C(t.projectId),t.snapshotId?Promise.resolve([]):e.GET("/api/projects/{project_id}/test_suites",{params:{path:{project_id:t.projectId}}}).then(d())),action:X(e)}),et=({api:e})=>({loader:({params:t})=>{const{projectId:s,snapshotId:o}=t;return C(s),C(o),e.GET("/api/projects/{project_id}/{snapshot_id}/data",{params:{path:{project_id:s,snapshot_id:o}},parseAs:"text"}).then(d()).then(Q)}}),{loader:tt}=et({api:v}),Z={path:":snapshotId",lazy:async()=>{const{SnapshotTemplate:e,...t}=await _(()=>import("./index-Cfoxrigu.js"),__vite__mapDeps([6,1,5,3]));return{Component:()=>r.jsx(e,{api:v}),...t}},loader:tt,ErrorBoundary:g},{loader:rt,action:st}=Xe({api:v}),ot={id:"reports",path:"reports",lazy:async()=>{const{SnapshotsListTemplate:e,...t}=await _(()=>import("./index-8XPeT5JI.js"),__vite__mapDeps([7,1]));return{...t,Component:()=>r.jsxs(r.Fragment,{children:[r.jsx(B,{}),r.jsx(e,{type:"reports"})]})}},loader:rt,action:st,ErrorBoundary:g,children:[Z]},{loader:nt,action:it}=Ze({api:v}),at={id:"test_suites",path:"test-suites",lazy:async()=>{const{SnapshotsListTemplate:e,...t}=await _(()=>import("./index-8XPeT5JI.js"),__vite__mapDeps([7,1]));return{...t,Component:()=>r.jsxs(r.Fragment,{children:[r.jsx(B,{}),r.jsx(e,{type:"test suites"})]})}},loader:nt,action:it,ErrorBoundary:g,children:[Z]},{loader:ct}=He({api:v}),ht={path:"projects/:projectId",lazy:()=>_(()=>import("./index-BdVpjpKq.js"),__vite__mapDeps([8,1])),loader:ct,ErrorBoundary:g,children:[Ye,ot,at]},lt=u.object({action:u.literal("edit-project")}),dt=u.object({action:u.literal("create-new-project")}),ut=u.object({action:u.literal("delete-project"),projectId:u.string().uuid()}),pt=({api:e})=>({loader:()=>e.GET("/api/projects").then(d()).then(t=>t.map(q)),action:async({request:t})=>{Y(t);const s=await t.json();if(dt.safeParse(s).success)return e.POST("/api/projects",{body:s}).then(d({notThrowExc:!0}));const o=ut.safeParse(s);if(o.success)return e.DELETE("/api/projects/{project_id}",{params:{path:{project_id:o.data.projectId}}}).then(d({notThrowExc:!0}));if(lt.safeParse(s).success)return e.POST("/api/projects/{project_id}/info",{params:{path:{project_id:s.id}},body:s}).then(d({notThrowExc:!0}));throw"Undefined action"}}),{loader:ft,action:mt}=pt({api:v}),jt={index:!0,lazy:()=>_(()=>import("./index-CMKyMjTx.js"),__vite__mapDeps([9,1])).then(e=>({...e,Component:()=>r.jsxs(r.Fragment,{children:[r.jsx(B,{}),r.jsx(e.Component,{})]})})),loader:ft,action:mt,ErrorBoundary:g},xt={...ze,children:[jt,ht,Ae],ErrorBoundary:g},Lt=be([xt]),U=document.getElementById("root");U&&Ie.createRoot(U).render(r.jsx(M.StrictMode,{children:r.jsxs(Te,{theme:Pe,children:[r.jsx(ke,{}),r.jsx(we,{router:Lt})]})}));export{N as A,vt as D,Q as J,gt as a,d as r,W as u}; diff --git a/src/evidently/ui/assets/static/js/index-C0PQxKG0.js b/src/evidently/ui/assets/static/js/index-C0PQxKG0.js deleted file mode 100644 index 6306b444e4..0000000000 --- a/src/evidently/ui/assets/static/js/index-C0PQxKG0.js +++ /dev/null @@ -1 +0,0 @@ -import{R as React,j as jsxRuntimeExports,X as Button,ab as Popper,ac as Grow,a2 as Paper,ad as ClickAwayListener,ae as MenuList,M as MenuItem,r as reactExports,B as Box,af as Chip,I as IconButton,a9 as useParams,Y as useLoaderData,H as useMatches,a1 as useSubmit,O as useNavigation,h as invariant,t as useSearchParams,aa as useLocalStorage,_ as Outlet,T as Typography,ag as Table,ah as TableHead,ai as TableRow,aj as TableCell,ak as TableSortLabel,al as TableBody,v as dayjs,N as Link,a4 as Tooltip,am as DeleteIcon,G as Grid,an as Autocomplete,a8 as TextField,F as FormControlLabel,n as Switch}from"./vendor-D9wnXojU.js";import{r as requireCreateSvgIcon,i as interopRequireDefaultExports}from"./createSvgIcon-BFOkCGLU.js";import{d as default_1$1}from"./ContentCopy-Dg3beyqW.js";const options=[{title:"Download HTML",format:"html"},{title:"Download JSON",format:"json"}];function DownloadButton(e){const[t,n]=React.useState(!1),s=React.useRef(null),i=(l,d)=>{window.open(`${l}?report_format=${d}`,"_blank"),n(!1)},a=()=>{n(l=>!l)},m=l=>{var d;(d=s.current)!=null&&d.contains(l.target)||n(!1)};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Button,{disabled:e.disabled,variant:e.variant,ref:s,color:"primary","aria-controls":t?"split-button-menu":void 0,"aria-expanded":t?"true":void 0,"aria-label":"select merge strategy","aria-haspopup":"menu",onClick:a,children:"Download"}),jsxRuntimeExports.jsx(Popper,{open:t,anchorEl:s.current,transition:!0,children:({TransitionProps:l,placement:d})=>jsxRuntimeExports.jsx(Grow,{...l,style:{transformOrigin:d==="bottom"?"center top":"center bottom"},children:jsxRuntimeExports.jsx(Paper,{children:jsxRuntimeExports.jsx(ClickAwayListener,{onClickAway:m,children:jsxRuntimeExports.jsx(MenuList,{id:"split-button-menu",children:options.map(x=>jsxRuntimeExports.jsx(MenuItem,{onClick:()=>i(e.downloadLink,x.format),children:x.title},x.format))})})})})})]})}var CloseRounded={},_interopRequireDefault=interopRequireDefaultExports;Object.defineProperty(CloseRounded,"__esModule",{value:!0});var default_1=CloseRounded.default=void 0,_createSvgIcon=_interopRequireDefault(requireCreateSvgIcon()),_jsxRuntime=jsxRuntimeExports,_default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M18.3 5.71a.9959.9959 0 0 0-1.41 0L12 10.59 7.11 5.7a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"}),"CloseRounded");default_1=CloseRounded.default=_default;const HidedTags=({onClick:e,tags:t,limitTags:n=2})=>{const[s,i]=reactExports.useState(!1);return jsxRuntimeExports.jsxs(Box,{display:"flex",alignContent:"center",flexWrap:"wrap",children:[t.slice(0,n).map(a=>jsxRuntimeExports.jsx(Chip,{onClick:()=>e(a),label:a,style:{margin:3}},a)),s&&t.slice(n).map(a=>jsxRuntimeExports.jsx(Chip,{onClick:()=>e(a),label:a,style:{margin:3}},a)),!s&&t.length>n&&jsxRuntimeExports.jsx(Chip,{variant:"outlined",label:`+${t.length-n}`,style:{margin:3,borderColor:"grey"},onClick:()=>i(!0)},"+N"),t.length>0&&s&&jsxRuntimeExports.jsx(IconButton,{style:{margin:3},onClick:()=>i(!1),children:jsxRuntimeExports.jsx(default_1,{fontSize:"small"})})]})},TextWithCopyIcon=({showText:e,copyText:t})=>jsxRuntimeExports.jsxs(Box,{children:[e,jsxRuntimeExports.jsx(IconButton,{size:"small",style:{marginLeft:10},onClick:()=>navigator.clipboard.writeText(t),children:jsxRuntimeExports.jsx(default_1$1,{fontSize:"small"})})]});function isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}function objectSize(e){return Array.isArray(e)?e.length:isObject(e)?Object.keys(e).length:0}function stringifyForCopying(e,t){if(typeof e=="string")return e;try{return JSON.stringify(e,(n,s)=>{switch(typeof s){case"bigint":return String(s)+"n";case"number":case"boolean":case"object":case"string":return s;default:return String(s)}},t)}catch(n){return`${n.name}: ${n.message}`||"JSON.stringify failed"}}function isCollapsed(e,t,n,s,i,a){if(a&&a.collapsed!==void 0)return!!a.collapsed;if(typeof s=="boolean")return s;if(typeof s=="number"&&t>s)return!0;const m=objectSize(e);if(typeof s=="function"){const l=safeCall(s,[{node:e,depth:t,indexOrName:n,size:m}]);if(typeof l=="boolean")return l}return!!(Array.isArray(e)&&m>i||isObject(e)&&m>i)}function ifDisplay(e,t,n){return typeof e=="boolean"?e:!!(typeof e=="number"&&t>e||e==="collapsed"&&n||e==="expanded"&&!n)}function safeCall(e,t){try{return e(...t)}catch(n){reportError(n)}}function editableAdd(e){if(e===!0||isObject(e)&&e.add===!0)return!0}function editableEdit(e){if(e===!0||isObject(e)&&e.edit===!0)return!0}function editableDelete(e){if(e===!0||isObject(e)&&e.delete===!0)return!0}function isReactComponent(e){return typeof e=="function"}function customAdd(e){return!e||e.add===void 0||!!e.add}function customEdit(e){return!e||e.edit===void 0||!!e.edit}function customDelete(e){return!e||e.delete===void 0||!!e.delete}function customCopy(e){return!e||e.enableClipboard===void 0||!!e.enableClipboard}function resolveEvalFailedNewValue(e,t){return e==="string"?t.trim().replace(/^\"([\s\S]+?)\"$/,"$1"):t}var _path$7;function _extends$7(){return _extends$7=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const i=stringifyForCopying(e);s.stopPropagation(),navigator.clipboard.writeText(i),n(!0),setTimeout(()=>n(!1),3e3)},className:"json-view--copy"})}function NameValue({indexOrName:e,value:t,depth:n,parent:s,deleteHandle:i,editHandle:a}){return jsxRuntimeExports.jsxs("div",Object.assign({className:"json-view--pair"},{children:[jsxRuntimeExports.jsx("span",Object.assign({className:typeof e=="number"?"json-view--index":"json-view--property"},{children:e})),":"," ",jsxRuntimeExports.jsx(JsonNode,{node:t,depth:n+1,deleteHandle:i,editHandle:a,parent:s,indexOrName:e})]}))}var _path$4,_path2$3;function _extends$4(){return _extends$4=Object.assign?Object.assign.bind():function(e){for(var t=1;t{b(isCollapsed(e,t,n,a,l,i))},[a,l]);const O=reactExports.useCallback((o,p,k)=>{Array.isArray(e)?e[+o]=p:e&&(e[o]=p),h&&h({newValue:p,oldValue:k,depth:t,src:u,indexOrName:o,parentType:E?"object":"array"}),c&&c({type:"edit",depth:t,src:u,indexOrName:o,parentType:E?"object":"array"}),R()},[e,h,c,R]),C=o=>{Array.isArray(e)?e.splice(+o,1):e&&delete e[o],R()},[N,w]=reactExports.useState(!1),r=()=>{w(!1),s&&s(n),x&&x({value:e,depth:t,src:u,indexOrName:n,parentType:E?"object":"array"}),c&&c({type:"delete",depth:t,src:u,indexOrName:n,parentType:E?"object":"array"})},[f,T]=reactExports.useState(!1),y=reactExports.useRef(null),S=()=>{var o;if(E){const p=(o=y.current)===null||o===void 0?void 0:o.value;p&&(e[p]=null,y.current&&(y.current.value=""),T(!1),g&&g({indexOrName:p,depth:t,src:u,parentType:"object"}),c&&c({type:"add",indexOrName:p,depth:t,src:u,parentType:"object"}))}else if(Array.isArray(e)){const p=e;p.push(null),g&&g({indexOrName:p.length-1,depth:t,src:u,parentType:"array"}),c&&c({type:"add",indexOrName:p.length-1,depth:t,src:u,parentType:"array"})}R()},D=o=>{o.key==="Enter"?(o.preventDefault(),S()):o.key==="Escape"&&A()},_=N||f,A=()=>{w(!1),T(!1)},$=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!j&&!_&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>b(!0)},{children:[ifDisplay(v,t,j)&&jsxRuntimeExports.jsxs("span",Object.assign({className:"jv-size"},{children:[objectSize(e)," Items"]})),jsxRuntimeExports.jsx(SvgAngleDown,{className:"jv-chevron"})]})),f&&E&&jsxRuntimeExports.jsx("input",{className:"json-view--input",placeholder:"property",ref:y,onKeyDown:D}),_&&jsxRuntimeExports.jsx(SvgDone,{className:"json-view--edit",style:{display:"inline-block"},onClick:f?S:r}),_&&jsxRuntimeExports.jsx(SvgCancel,{className:"json-view--edit",style:{display:"inline-block"},onClick:A}),!j&&!_&&m&&customCopy(i)&&jsxRuntimeExports.jsx(CopyButton,{node:e}),!j&&!_&&editableAdd(d)&&customAdd(i)&&jsxRuntimeExports.jsx(SvgAddSquare,{className:"json-view--edit",onClick:()=>{E?(T(!0),setTimeout(()=>{var o;return(o=y.current)===null||o===void 0?void 0:o.focus()})):S()}}),!j&&!_&&editableDelete(d)&&customDelete(i)&&s&&jsxRuntimeExports.jsx(SvgTrash,{className:"json-view--edit",onClick:()=>w(!0)})]});return Array.isArray(e)?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:"["}),$,j?jsxRuntimeExports.jsx("button",Object.assign({onClick:()=>b(!1),className:"jv-button"},{children:"..."})):jsxRuntimeExports.jsx("div",Object.assign({className:"jv-indent"},{children:e.map((o,p)=>jsxRuntimeExports.jsx(NameValue,{indexOrName:p,value:o,depth:t,parent:e,deleteHandle:C,editHandle:O},String(n)+String(p)))})),jsxRuntimeExports.jsx("span",{children:"]"}),j&&ifDisplay(v,t,j)&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>b(!1),className:"jv-size"},{children:[objectSize(e)," Items"]}))]}):E?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("span",{children:"{"}),$,j?jsxRuntimeExports.jsx("button",Object.assign({onClick:()=>b(!1),className:"jv-button"},{children:"..."})):jsxRuntimeExports.jsx("div",Object.assign({className:"jv-indent"},{children:Object.entries(e).map(([o,p])=>jsxRuntimeExports.jsx(NameValue,{indexOrName:o,value:p,depth:t,parent:e,deleteHandle:C,editHandle:O},String(n)+String(o)))})),jsxRuntimeExports.jsx("span",{children:"}"}),j&&ifDisplay(v,t,j)&&jsxRuntimeExports.jsxs("span",Object.assign({onClick:()=>b(!1),className:"jv-size"},{children:[objectSize(e)," Items"]}))]}):null}const LongString=React.forwardRef(({str:e,className:t,ctrlClick:n},s)=>{let{collapseStringMode:i,collapseStringsAfterLength:a}=reactExports.useContext(JsonViewContext);const[m,l]=reactExports.useState(!0);a=a>0?a:0;const d=e.replace(/\s+/g," "),x=u=>{(u.ctrlKey||u.metaKey)&&n?n(u):l(!m)};if(e.length<=a)return jsxRuntimeExports.jsxs("span",Object.assign({className:t,onClick:n},{children:['"',e,'"']}));if(i==="address")return e.length<=10?jsxRuntimeExports.jsxs("span",Object.assign({className:t,onClick:n},{children:['"',e,'"']})):jsxRuntimeExports.jsxs("span",Object.assign({onClick:x,className:t+" cursor-pointer"},{children:['"',m?d.slice(0,6)+"..."+d.slice(-4):e,'"']}));if(i==="directly")return jsxRuntimeExports.jsxs("span",Object.assign({onClick:x,className:t+" cursor-pointer"},{children:['"',m?d.slice(0,a)+"...":e,'"']}));if(i==="word"){let u=a,g=a+1,h=d,c=1;for(;;){if(/\W/.test(e[u])){h=e.slice(0,u);break}if(/\W/.test(e[g])){h=e.slice(0,g);break}if(c===6){h=e.slice(0,a);break}c++,u--,g++}return jsxRuntimeExports.jsxs("span",Object.assign({onClick:x,className:t+" cursor-pointer"},{children:['"',m?h+"...":e,'"']}))}return jsxRuntimeExports.jsxs("span",Object.assign({className:t},{children:['"',e,'"']}))});var _path;function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t{setEditing(!0),setTimeout(()=>{var e,t;(e=window.getSelection())===null||e===void 0||e.selectAllChildren(valueRef.current),(t=valueRef.current)===null||t===void 0||t.focus()})},done=reactExports.useCallback(()=>{const newValue=valueRef.current.innerText;try{const evalValue=eval(newValue);editHandle&&editHandle(indexOrName,evalValue,node)}catch(e){const t=resolveEvalFailedNewValue(type,newValue);editHandle&&editHandle(indexOrName,t,node)}setEditing(!1)},[editHandle]),cancel=()=>{setEditing(!1),setDeleting(!1)},deleteHandle=()=>{setDeleting(!1),_deleteHandle&&_deleteHandle(indexOrName),onDelete&&onDelete({value:node,depth,src,indexOrName,parentType:Array.isArray(parent)?"array":"object"}),onChange&&onChange({depth,src,indexOrName,parentType:Array.isArray(parent)?"array":"object",type:"delete"})},handleKeyDown=reactExports.useCallback(e=>{e.key==="Enter"?(e.preventDefault(),done()):e.key==="Escape"&&cancel()},[done]),isEditing=editing||deleting,ctrlClick=!isEditing&&editableEdit(editable)&&customEdit(customReturn)&&editHandle?e=>{(e.ctrlKey||e.metaKey)&&edit()}:void 0,Icons=jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[isEditing&&jsxRuntimeExports.jsx(SvgDone,{className:"json-view--edit",style:{display:"inline-block"},onClick:deleting?deleteHandle:done}),isEditing&&jsxRuntimeExports.jsx(SvgCancel,{className:"json-view--edit",style:{display:"inline-block"},onClick:cancel}),!isEditing&&enableClipboard&&customCopy(customReturn)&&jsxRuntimeExports.jsx(CopyButton,{node}),!isEditing&&editableEdit(editable)&&customEdit(customReturn)&&editHandle&&jsxRuntimeExports.jsx(SvgEdit,{className:"json-view--edit",onClick:edit}),!isEditing&&editableDelete(editable)&&customDelete(customReturn)&&_deleteHandle&&jsxRuntimeExports.jsx(SvgTrash,{className:"json-view--edit",onClick:()=>setDeleting(!0)})]});let className="json-view--string";switch(typeof(customReturn==null?void 0:customReturn.className)=="string"&&(className+=" "+customReturn.className),type){case"number":case"bigint":className="json-view--number";break;case"boolean":className="json-view--boolean";break;case"object":className="json-view--null";break}deleting&&(className+=" json-view--deleting");let displayValue=String(node);type==="bigint"&&(displayValue+="n");const EditingElement=reactExports.useMemo(()=>jsxRuntimeExports.jsx("span",{contentEditable:!0,className,dangerouslySetInnerHTML:{__html:type==="string"?`"${displayValue}"`:displayValue},ref:valueRef,onKeyDown:handleKeyDown}),[displayValue,type,handleKeyDown]);return type==="string"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[editing?EditingElement:node.length>collapseStringsAfterLength?jsxRuntimeExports.jsx(LongString,{str:node,ref:valueRef,className,ctrlClick}):jsxRuntimeExports.jsxs("span",Object.assign({className,onClick:ctrlClick},{children:['"',displayValue,'"']})),Icons]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[editing?EditingElement:jsxRuntimeExports.jsx("span",Object.assign({className,onClick:ctrlClick},{children:displayValue})),Icons]})}}const JsonViewContext=reactExports.createContext({src:void 0,collapseStringsAfterLength:99,collapseStringMode:"directly",collapseObjectsAfterLength:20,collapsed:!1,enableClipboard:!0,editable:!1,onEdit:void 0,onDelete:void 0,onAdd:void 0,onChange:void 0,forceUpdate:()=>{},customizeNode:void 0,displaySize:void 0});function JsonView({src:e,collapseStringsAfterLength:t=99,collapseStringMode:n="directly",collapseObjectsAfterLength:s=99,collapsed:i,enableClipboard:a=!0,editable:m=!1,onEdit:l,onDelete:d,onAdd:x,onChange:u,dark:g=!1,theme:h="default",customizeNode:c,displaySize:R}){const[v,E]=reactExports.useState(0),j=reactExports.useCallback(()=>E(b=>++b),[]);return jsxRuntimeExports.jsx(JsonViewContext.Provider,Object.assign({value:{src:e,collapseStringsAfterLength:t,collapseStringMode:n,collapseObjectsAfterLength:s,collapsed:i,enableClipboard:a,editable:m,onEdit:l,onDelete:d,onAdd:x,onChange:u,forceUpdate:j,customizeNode:c,displaySize:R}},{children:jsxRuntimeExports.jsx("code",Object.assign({className:"json-view"+(g?" dark":"")+(h&&h!=="default"?" json-view_"+h:"")},{children:jsxRuntimeExports.jsx(JsonNode,{node:e,depth:1})}))}))}function useUpdateQueryStringValueWithoutNavigation(e,t){reactExports.useEffect(()=>{const n=new URLSearchParams(window.location.search),s=n.get(e)??"";if(t===s)return;t?n.set(e,t):n.delete(e);const i=[window.location.pathname,n.toString()].filter(Boolean).join("?");window.history.replaceState(null,"",i)},[e,t])}const shouldRevalidate=()=>!0,handle={crumb:(e,{pathname:t})=>({to:t,linkText:t.split("/").reverse()[0]==="reports"?"Reports":"Test Suites"})},metadataToOneString=e=>Object.values(e).map(t=>Array.isArray(t)?t.join(" "):typeof t=="object"?metadataToOneString(t):t).join(" "),SnapshotsListTemplate=({type:e,slots:t})=>{const{projectId:n}=useParams(),s=useLoaderData(),i=useMatches(),a=useSubmit(),l=useNavigation().state!=="idle";invariant(n);const[d]=useSearchParams(),[x,u]=reactExports.useState("desc"),[g,h]=useLocalStorage("show-full-json-metadata",!1),[c,R]=reactExports.useState(()=>{var r;return((r=d.get("tags"))==null?void 0:r.split(","))||[]}),[v,E]=reactExports.useState(()=>d.get("metadata-query")||"");useUpdateQueryStringValueWithoutNavigation("tags",c.join(",")),useUpdateQueryStringValueWithoutNavigation("metadata-query",String(v));const j=i.find(({handle:r})=>{var f;return((f=r==null?void 0:r.hide)==null?void 0:f.snapshotList)===!0}),b=reactExports.useMemo(()=>Array.from(new Set(s.flatMap(({tags:r})=>r))),[s]),O=reactExports.useMemo(()=>s.filter(({tags:r})=>c.every(f=>r.includes(f))),[s,c]),C=reactExports.useMemo(()=>O.filter(({metadata:r})=>v===""?!0:metadataToOneString(r).includes(v)),[O,v]),N=reactExports.useMemo(()=>x===void 0?C:C.sort((r,f)=>{const[T,y]=[Date.parse(r.timestamp),Date.parse(f.timestamp)],S=T-y;return x==="desc"?-S:x==="asc"?S:0}),[C,x]);if(j)return jsxRuntimeExports.jsx(Outlet,{});const w=jsxRuntimeExports.jsx(Box,{sx:{padding:2},children:jsxRuntimeExports.jsxs(Grid,{container:!0,gap:2,alignItems:"flex-end",justifyContent:"space-around",children:[jsxRuntimeExports.jsx(Grid,{item:!0,xs:12,md:4,children:jsxRuntimeExports.jsx(Autocomplete,{multiple:!0,limitTags:2,value:c,onChange:(r,f)=>R(f),options:b,renderInput:r=>jsxRuntimeExports.jsx(TextField,{...r,variant:"standard",label:"Filter by Tags"})})}),jsxRuntimeExports.jsx(Grid,{item:!0,xs:12,md:7,children:jsxRuntimeExports.jsxs(Box,{display:"flex",alignItems:"flex-end",gap:2,children:[jsxRuntimeExports.jsx(TextField,{fullWidth:!0,value:v,onChange:r=>E(r.target.value),variant:"standard",label:"Search in Metadata"}),jsxRuntimeExports.jsx(Box,{minWidth:220,display:"flex",justifyContent:"center",children:jsxRuntimeExports.jsx(FormControlLabel,{control:jsxRuntimeExports.jsx(Switch,{checked:g,onChange:r=>h(r.target.checked)}),label:"Hide Metadata"})}),jsxRuntimeExports.jsx(Box,{display:"flex",justifyContent:"flex-end",children:jsxRuntimeExports.jsxs(Button,{sx:{minWidth:160},variant:"outlined",onClick:()=>a({action:"reload-snapshots"},{method:"post",replace:!0,encType:"application/json"}),color:"primary",disabled:l,children:["refresh ",e]})})]})})]})});return s.length===0?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[w,jsxRuntimeExports.jsxs(Typography,{my:3,variant:"h4",align:"center",children:["You don't have any ",e," yet."]})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[w,jsxRuntimeExports.jsxs(Table,{children:[jsxRuntimeExports.jsxs(TableHead,{children:[jsxRuntimeExports.jsxs(TableRow,{children:[jsxRuntimeExports.jsx(TableCell,{children:e==="reports"?"Report ID":e==="test suites"?"Test Suite ID":"indefined"}),jsxRuntimeExports.jsx(TableCell,{children:"Tags"}),jsxRuntimeExports.jsx(TableCell,{children:"Metadata"}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(TableSortLabel,{active:!!x,direction:x,onClick:()=>{u(r=>{if(r===void 0)return"desc";if(r==="desc")return"asc"})},children:"Timestamp"})}),jsxRuntimeExports.jsx(TableCell,{align:"center",children:"Actions"})]}),jsxRuntimeExports.jsx(TableRow,{})]}),jsxRuntimeExports.jsx(TableBody,{children:N.map(r=>jsxRuntimeExports.jsxs(TableRow,{children:[jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(TextWithCopyIcon,{showText:r.id,copyText:r.id})}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(Box,{maxWidth:250,children:jsxRuntimeExports.jsx(HidedTags,{onClick:f=>{c.includes(f)||R([...c,f])},tags:r.tags})})}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(JsonView,{collapsed:g,src:r.metadata,theme:"atom",enableClipboard:!1})}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(Typography,{variant:"body2",children:dayjs(r.timestamp).locale("en-gb").format("llll")})}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsxs(Box,{display:"flex",justifyContent:"center",gap:1,children:[t!=null&&t.ViewButton?jsxRuntimeExports.jsx(t.ViewButton,{snapshotId:r.id,projectId:n}):jsxRuntimeExports.jsx(Button,{disabled:l,component:Link,to:`${r.id}`,children:"View"}),jsxRuntimeExports.jsx(DownloadButton,{variant:(t==null?void 0:t.donwloadButtonVariant)||"outlined",disabled:l,downloadLink:`/api/projects/${n}/${r.id}/download`}),(t==null?void 0:t.additionalSnapshotActions)&&jsxRuntimeExports.jsx(t.additionalSnapshotActions,{snapshotId:r.id,projectId:n}),jsxRuntimeExports.jsx(Box,{children:jsxRuntimeExports.jsx(Tooltip,{title:"delete snapshot",placement:"top",children:jsxRuntimeExports.jsx(IconButton,{onClick:()=>{confirm("Are you sure?")===!0&&a({action:"delete-snapshot",snapshotId:r.id},{method:"post",replace:!0,encType:"application/json"})},color:"primary",disabled:l,children:jsxRuntimeExports.jsx(DeleteIcon,{})})})})]})})]},`r-${r.id}`))})]})]})};export{SnapshotsListTemplate,handle,shouldRevalidate}; diff --git a/src/evidently/ui/assets/static/js/index-CMKyMjTx.js b/src/evidently/ui/assets/static/js/index-CMKyMjTx.js new file mode 100644 index 0000000000..6b5e57199f --- /dev/null +++ b/src/evidently/ui/assets/static/js/index-CMKyMjTx.js @@ -0,0 +1 @@ +import{R as K,z as we,r as ue,V as Oe,a9 as nt,j as b,aa as Ft,B as ee,I as wt,ab as St,ac as at,ad as Dt,ae as Et,af as kt,ag as jt,ah as Tt,ai as Ke,a2 as Ct,Q as Ot,U as Lt,T as Te,a3 as Nt,G as Rt}from"./vendor-DoRIiF9A.js";var ce=e=>e.type==="checkbox",ie=e=>e instanceof Date,C=e=>e==null;const ot=e=>typeof e=="object";var k=e=>!C(e)&&!Array.isArray(e)&&ot(e)&&!ie(e),Pt=e=>k(e)&&e.target?ce(e.target)?e.target.checked:e.target.value:e,Bt=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Ut=(e,i)=>e.has(Bt(i)),It=e=>{const i=e.constructor&&e.constructor.prototype;return k(i)&&i.hasOwnProperty("isPrototypeOf")},Le=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function G(e){let i;const s=Array.isArray(e);if(e instanceof Date)i=new Date(e);else if(e instanceof Set)i=new Set(e);else if(!(Le&&(e instanceof Blob||e instanceof FileList))&&(s||k(e)))if(i=s?[]:{},!s&&!It(e))i=e;else for(const t in e)e.hasOwnProperty(t)&&(i[t]=G(e[t]));else return e;return i}var fe=e=>Array.isArray(e)?e.filter(Boolean):[],E=e=>e===void 0,d=(e,i,s)=>{if(!i||!k(e))return s;const t=fe(i.split(/[,[\].]+?/)).reduce((o,a)=>C(o)?o:o[a],e);return E(t)||t===e?E(e[i])?s:e[i]:t},X=e=>typeof e=="boolean";const Qe={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},B={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},z={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};K.createContext(null);var Mt=(e,i,s,t=!0)=>{const o={defaultValues:i._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const u=a;return i._proxyFormState[u]!==B.all&&(i._proxyFormState[u]=!t||B.all),e[u]}});return o},R=e=>k(e)&&!Object.keys(e).length,qt=(e,i,s,t)=>{s(e);const{name:o,...a}=e;return R(a)||Object.keys(a).length>=Object.keys(i).length||Object.keys(a).find(u=>i[u]===B.all)},Se=e=>Array.isArray(e)?e:[e];function Wt(e){const i=K.useRef(e);i.current=e,K.useEffect(()=>{const s=!e.disabled&&i.current.subject&&i.current.subject.subscribe({next:i.current.next});return()=>{s&&s.unsubscribe()}},[e.disabled])}var W=e=>typeof e=="string",$t=(e,i,s,t,o)=>W(e)?(t&&i.watch.add(e),d(s,e,o)):Array.isArray(e)?e.map(a=>(t&&i.watch.add(a),d(s,a))):(t&&(i.watchAll=!0),s),Ne=e=>/^\w*$/.test(e),lt=e=>fe(e.replace(/["|']|\]/g,"").split(/\.|\[/));function _(e,i,s){let t=-1;const o=Ne(i)?[i]:lt(i),a=o.length,u=a-1;for(;++ti?{...s[e],types:{...s[e]&&s[e].types?s[e].types:{},[t]:o||!0}}:{};const Ce=(e,i,s)=>{for(const t of s||Object.keys(e)){const o=d(e,t);if(o){const{_f:a,...u}=o;if(a&&i(a.name)){if(a.ref.focus){a.ref.focus();break}else if(a.refs&&a.refs[0].focus){a.refs[0].focus();break}}else k(u)&&Ce(u,i)}}};var Ye=e=>({isOnSubmit:!e||e===B.onSubmit,isOnBlur:e===B.onBlur,isOnChange:e===B.onChange,isOnAll:e===B.all,isOnTouch:e===B.onTouched}),Je=(e,i,s)=>!s&&(i.watchAll||i.watch.has(e)||[...i.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),Ht=(e,i,s)=>{const t=fe(d(e,s));return _(t,"root",i[s]),_(e,s,t),e},Re=e=>e.type==="file",Q=e=>typeof e=="function",he=e=>{if(!Le)return!1;const i=e?e.ownerDocument:0;return e instanceof(i&&i.defaultView?i.defaultView.HTMLElement:HTMLElement)},ye=e=>W(e),Pe=e=>e.type==="radio",ge=e=>e instanceof RegExp;const Xe={value:!1,isValid:!1},Ze={value:!0,isValid:!0};var ct=e=>{if(Array.isArray(e)){if(e.length>1){const i=e.filter(s=>s&&s.checked&&!s.disabled).map(s=>s.value);return{value:i,isValid:!!i.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!E(e[0].attributes.value)?E(e[0].value)||e[0].value===""?Ze:{value:e[0].value,isValid:!0}:Ze:Xe}return Xe};const et={isValid:!1,value:null};var ft=e=>Array.isArray(e)?e.reduce((i,s)=>s&&s.checked&&!s.disabled?{isValid:!0,value:s.value}:i,et):et;function tt(e,i,s="validate"){if(ye(e)||Array.isArray(e)&&e.every(ye)||X(e)&&!e)return{type:s,message:ye(e)?e:"",ref:i}}var se=e=>k(e)&&!ge(e)?e:{value:e,message:""},rt=async(e,i,s,t,o)=>{const{ref:a,refs:u,required:g,maxLength:v,minLength:w,min:U,max:A,pattern:m,validate:I,name:O,valueAsNumber:be,mount:de,disabled:me}=e._f,x=d(i,O);if(!de||me)return{};const P=u?u[0]:a,$=V=>{t&&P.reportValidity&&(P.setCustomValidity(X(V)?"":V||""),P.reportValidity())},j={},ne=Pe(a),te=ce(a),pe=ne||te,M=(be||Re(a))&&E(a.value)&&E(x)||he(a)&&a.value===""||x===""||Array.isArray(x)&&!x.length,Y=ut.bind(null,O,s,j),H=(V,p,S,L=z.maxLength,N=z.minLength)=>{const q=V?p:S;j[O]={type:V?L:N,message:q,ref:a,...Y(V?L:N,q)}};if(o?!Array.isArray(x)||!x.length:g&&(!pe&&(M||C(x))||X(x)&&!x||te&&!ct(u).isValid||ne&&!ft(u).isValid)){const{value:V,message:p}=ye(g)?{value:!!g,message:g}:se(g);if(V&&(j[O]={type:z.required,message:p,ref:P,...Y(z.required,p)},!s))return $(p),j}if(!M&&(!C(U)||!C(A))){let V,p;const S=se(A),L=se(U);if(!C(x)&&!isNaN(x)){const N=a.valueAsNumber||x&&+x;C(S.value)||(V=N>S.value),C(L.value)||(p=Nnew Date(new Date().toDateString()+" "+oe),J=a.type=="time",ae=a.type=="week";W(S.value)&&x&&(V=J?q(x)>q(S.value):ae?x>S.value:N>new Date(S.value)),W(L.value)&&x&&(p=J?q(x)+V.value,L=!C(p.value)&&x.length<+p.value;if((S||L)&&(H(S,V.message,p.message),!s))return $(j[O].message),j}if(m&&!M&&W(x)){const{value:V,message:p}=se(m);if(ge(V)&&!x.match(V)&&(j[O]={type:z.pattern,message:p,ref:a,...Y(z.pattern,p)},!s))return $(p),j}if(I){if(Q(I)){const V=await I(x,i),p=tt(V,P);if(p&&(j[O]={...p,...Y(z.validate,p.message)},!s))return $(p.message),j}else if(k(I)){let V={};for(const p in I){if(!R(V)&&!s)break;const S=tt(await I[p](x,i),P,p);S&&(V={...S,...Y(p,S.message)},$(S.message),s&&(j[O]=V))}if(!R(V)&&(j[O]={ref:P,...V},!s))return j}}return $(!0),j};function zt(e,i){const s=i.slice(0,-1).length;let t=0;for(;t{for(const a of e)a.next&&a.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(a=>a!==o)}}),unsubscribe:()=>{e=[]}}}var ve=e=>C(e)||!ot(e);function Z(e,i){if(ve(e)||ve(i))return e===i;if(ie(e)&&ie(i))return e.getTime()===i.getTime();const s=Object.keys(e),t=Object.keys(i);if(s.length!==t.length)return!1;for(const o of s){const a=e[o];if(!t.includes(o))return!1;if(o!=="ref"){const u=i[o];if(ie(a)&&ie(u)||k(a)&&k(u)||Array.isArray(a)&&Array.isArray(u)?!Z(a,u):a!==u)return!1}}return!0}var dt=e=>e.type==="select-multiple",Kt=e=>Pe(e)||ce(e),Ee=e=>he(e)&&e.isConnected,yt=e=>{for(const i in e)if(Q(e[i]))return!0;return!1};function xe(e,i={}){const s=Array.isArray(e);if(k(e)||s)for(const t in e)Array.isArray(e[t])||k(e[t])&&!yt(e[t])?(i[t]=Array.isArray(e[t])?[]:{},xe(e[t],i[t])):C(e[t])||(i[t]=!0);return i}function ht(e,i,s){const t=Array.isArray(e);if(k(e)||t)for(const o in e)Array.isArray(e[o])||k(e[o])&&!yt(e[o])?E(i)||ve(s[o])?s[o]=Array.isArray(e[o])?xe(e[o],[]):{...xe(e[o])}:ht(e[o],C(i)?{}:i[o],s[o]):s[o]=!Z(e[o],i[o]);return s}var ke=(e,i)=>ht(e,i,xe(i)),gt=(e,{valueAsNumber:i,valueAsDate:s,setValueAs:t})=>E(e)?e:i?e===""?NaN:e&&+e:s&&W(e)?new Date(e):t?t(e):e;function je(e){const i=e.ref;if(!(e.refs?e.refs.every(s=>s.disabled):i.disabled))return Re(i)?i.files:Pe(i)?ft(e.refs).value:dt(i)?[...i.selectedOptions].map(({value:s})=>s):ce(i)?ct(e.refs).value:gt(E(i.value)?e.ref.value:i.value,e)}var Qt=(e,i,s,t)=>{const o={};for(const a of e){const u=d(i,a);u&&_(o,a,u._f)}return{criteriaMode:s,names:[...e],fields:o,shouldUseNativeValidation:t}},le=e=>E(e)?e:ge(e)?e.source:k(e)?ge(e.value)?e.value.source:e.value:e,Yt=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function st(e,i,s){const t=d(e,s);if(t||Ne(s))return{error:t,name:s};const o=s.split(".");for(;o.length;){const a=o.join("."),u=d(i,a),g=d(e,a);if(u&&!Array.isArray(u)&&s!==a)return{name:s};if(g&&g.type)return{name:a,error:g};o.pop()}return{name:s}}var Jt=(e,i,s,t,o)=>o.isOnAll?!1:!s&&o.isOnTouch?!(i||e):(s?t.isOnBlur:o.isOnBlur)?!e:(s?t.isOnChange:o.isOnChange)?e:!0,Xt=(e,i)=>!fe(d(e,i)).length&&T(e,i);const Zt={mode:B.onSubmit,reValidateMode:B.onChange,shouldFocusError:!0};function er(e={},i){let s={...Zt,...e},t={submitCount:0,isDirty:!1,isLoading:Q(s.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},o={},a=k(s.defaultValues)||k(s.values)?G(s.defaultValues||s.values)||{}:{},u=s.shouldUnregister?{}:G(a),g={action:!1,mount:!1,watch:!1},v={mount:new Set,unMount:new Set,array:new Set,watch:new Set},w,U=0;const A={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},m={values:De(),array:De(),state:De()},I=e.resetOptions&&e.resetOptions.keepDirtyValues,O=Ye(s.mode),be=Ye(s.reValidateMode),de=s.criteriaMode===B.all,me=r=>n=>{clearTimeout(U),U=setTimeout(r,n)},x=async r=>{if(A.isValid||r){const n=s.resolver?R((await M()).errors):await H(o,!0);n!==t.isValid&&m.state.next({isValid:n})}},P=r=>A.isValidating&&m.state.next({isValidating:r}),$=(r,n=[],l,y,f=!0,c=!0)=>{if(y&&l){if(g.action=!0,c&&Array.isArray(d(o,r))){const h=l(d(o,r),y.argA,y.argB);f&&_(o,r,h)}if(c&&Array.isArray(d(t.errors,r))){const h=l(d(t.errors,r),y.argA,y.argB);f&&_(t.errors,r,h),Xt(t.errors,r)}if(A.touchedFields&&c&&Array.isArray(d(t.touchedFields,r))){const h=l(d(t.touchedFields,r),y.argA,y.argB);f&&_(t.touchedFields,r,h)}A.dirtyFields&&(t.dirtyFields=ke(a,u)),m.state.next({name:r,isDirty:p(r,n),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else _(u,r,n)},j=(r,n)=>{_(t.errors,r,n),m.state.next({errors:t.errors})},ne=(r,n,l,y)=>{const f=d(o,r);if(f){const c=d(u,r,E(l)?d(a,r):l);E(c)||y&&y.defaultChecked||n?_(u,r,n?c:je(f._f)):N(r,c),g.mount&&x()}},te=(r,n,l,y,f)=>{let c=!1,h=!1;const F={name:r};if(!l||y){A.isDirty&&(h=t.isDirty,t.isDirty=F.isDirty=p(),c=h!==F.isDirty);const D=Z(d(a,r),n);h=d(t.dirtyFields,r),D?T(t.dirtyFields,r):_(t.dirtyFields,r,!0),F.dirtyFields=t.dirtyFields,c=c||A.dirtyFields&&h!==!D}if(l){const D=d(t.touchedFields,r);D||(_(t.touchedFields,r,l),F.touchedFields=t.touchedFields,c=c||A.touchedFields&&D!==l)}return c&&f&&m.state.next(F),c?F:{}},pe=(r,n,l,y)=>{const f=d(t.errors,r),c=A.isValid&&X(n)&&t.isValid!==n;if(e.delayError&&l?(w=me(()=>j(r,l)),w(e.delayError)):(clearTimeout(U),w=null,l?_(t.errors,r,l):T(t.errors,r)),(l?!Z(f,l):f)||!R(y)||c){const h={...y,...c&&X(n)?{isValid:n}:{},errors:t.errors,name:r};t={...t,...h},m.state.next(h)}P(!1)},M=async r=>s.resolver(u,s.context,Qt(r||v.mount,o,s.criteriaMode,s.shouldUseNativeValidation)),Y=async r=>{const{errors:n}=await M(r);if(r)for(const l of r){const y=d(n,l);y?_(t.errors,l,y):T(t.errors,l)}else t.errors=n;return n},H=async(r,n,l={valid:!0})=>{for(const y in r){const f=r[y];if(f){const{_f:c,...h}=f;if(c){const F=v.array.has(c.name),D=await rt(f,u,de,s.shouldUseNativeValidation&&!n,F);if(D[c.name]&&(l.valid=!1,n))break;!n&&(d(D,c.name)?F?Ht(t.errors,D,c.name):_(t.errors,c.name,D[c.name]):T(t.errors,c.name))}h&&await H(h,n,l)}}return l.valid},V=()=>{for(const r of v.unMount){const n=d(o,r);n&&(n._f.refs?n._f.refs.every(l=>!Ee(l)):!Ee(n._f.ref))&&Ve(r)}v.unMount=new Set},p=(r,n)=>(r&&n&&_(u,r,n),!Z(Be(),a)),S=(r,n,l)=>$t(r,v,{...g.mount?u:E(n)?a:W(r)?{[r]:n}:n},l,n),L=r=>fe(d(g.mount?u:a,r,e.shouldUnregister?d(a,r,[]):[])),N=(r,n,l={})=>{const y=d(o,r);let f=n;if(y){const c=y._f;c&&(!c.disabled&&_(u,r,gt(n,c)),f=he(c.ref)&&C(n)?"":n,dt(c.ref)?[...c.ref.options].forEach(h=>h.selected=f.includes(h.value)):c.refs?ce(c.ref)?c.refs.length>1?c.refs.forEach(h=>(!h.defaultChecked||!h.disabled)&&(h.checked=Array.isArray(f)?!!f.find(F=>F===h.value):f===h.value)):c.refs[0]&&(c.refs[0].checked=!!f):c.refs.forEach(h=>h.checked=h.value===f):Re(c.ref)?c.ref.value="":(c.ref.value=f,c.ref.type||m.values.next({name:r,values:{...u}})))}(l.shouldDirty||l.shouldTouch)&&te(r,f,l.shouldTouch,l.shouldDirty,!0),l.shouldValidate&&oe(r)},q=(r,n,l)=>{for(const y in n){const f=n[y],c=`${r}.${y}`,h=d(o,c);(v.array.has(r)||!ve(f)||h&&!h._f)&&!ie(f)?q(c,f,l):N(c,f,l)}},J=(r,n,l={})=>{const y=d(o,r),f=v.array.has(r),c=G(n);_(u,r,c),f?(m.array.next({name:r,values:{...u}}),(A.isDirty||A.dirtyFields)&&l.shouldDirty&&m.state.next({name:r,dirtyFields:ke(a,u),isDirty:p(r,c)})):y&&!y._f&&!C(c)?q(r,c,l):N(r,c,l),Je(r,v)&&m.state.next({...t}),m.values.next({name:r,values:{...u}}),!g.mount&&i()},ae=async r=>{const n=r.target;let l=n.name,y=!0;const f=d(o,l),c=()=>n.type?je(f._f):Pt(r);if(f){let h,F;const D=c(),re=r.type===Qe.BLUR||r.type===Qe.FOCUS_OUT,Vt=!Yt(f._f)&&!s.resolver&&!d(t.errors,l)&&!f._f.deps||Jt(re,d(t.touchedFields,l),t.isSubmitted,be,O),Ae=Je(l,v,re);_(u,l,D),re?(f._f.onBlur&&f._f.onBlur(r),w&&w(0)):f._f.onChange&&f._f.onChange(r);const Fe=te(l,D,re,!1),_t=!R(Fe)||Ae;if(!re&&m.values.next({name:l,type:r.type,values:{...u}}),Vt)return A.isValid&&x(),_t&&m.state.next({name:l,...Ae?{}:Fe});if(!re&&Ae&&m.state.next({...t}),P(!0),s.resolver){const{errors:ze}=await M([l]),At=st(t.errors,o,l),Ge=st(ze,o,At.name||l);h=Ge.error,l=Ge.name,F=R(ze)}else h=(await rt(f,u,de,s.shouldUseNativeValidation))[l],y=Number.isNaN(D)||D===d(u,l,D),y&&(h?F=!1:A.isValid&&(F=await H(o,!0)));y&&(f._f.deps&&oe(f._f.deps),pe(l,F,h,Fe))}},oe=async(r,n={})=>{let l,y;const f=Se(r);if(P(!0),s.resolver){const c=await Y(E(r)?r:f);l=R(c),y=r?!f.some(h=>d(c,h)):l}else r?(y=(await Promise.all(f.map(async c=>{const h=d(o,c);return await H(h&&h._f?{[c]:h}:h)}))).every(Boolean),!(!y&&!t.isValid)&&x()):y=l=await H(o);return m.state.next({...!W(r)||A.isValid&&l!==t.isValid?{}:{name:r},...s.resolver||!r?{isValid:l}:{},errors:t.errors,isValidating:!1}),n.shouldFocus&&!y&&Ce(o,c=>c&&d(t.errors,c),r?f:v.mount),y},Be=r=>{const n={...a,...g.mount?u:{}};return E(r)?n:W(r)?d(n,r):r.map(l=>d(n,l))},Ue=(r,n)=>({invalid:!!d((n||t).errors,r),isDirty:!!d((n||t).dirtyFields,r),isTouched:!!d((n||t).touchedFields,r),error:d((n||t).errors,r)}),bt=r=>{r&&Se(r).forEach(n=>T(t.errors,n)),m.state.next({errors:r?t.errors:{}})},Ie=(r,n,l)=>{const y=(d(o,r,{_f:{}})._f||{}).ref;_(t.errors,r,{...n,ref:y}),m.state.next({name:r,errors:t.errors,isValid:!1}),l&&l.shouldFocus&&y&&y.focus&&y.focus()},mt=(r,n)=>Q(r)?m.values.subscribe({next:l=>r(S(void 0,n),l)}):S(r,n,!0),Ve=(r,n={})=>{for(const l of r?Se(r):v.mount)v.mount.delete(l),v.array.delete(l),n.keepValue||(T(o,l),T(u,l)),!n.keepError&&T(t.errors,l),!n.keepDirty&&T(t.dirtyFields,l),!n.keepTouched&&T(t.touchedFields,l),!s.shouldUnregister&&!n.keepDefaultValue&&T(a,l);m.values.next({values:{...u}}),m.state.next({...t,...n.keepDirty?{isDirty:p()}:{}}),!n.keepIsValid&&x()},Me=({disabled:r,name:n,field:l,fields:y})=>{if(X(r)){const f=r?void 0:d(u,n,je(l?l._f:d(y,n)._f));_(u,n,f),te(n,f,!1,!1,!0)}},_e=(r,n={})=>{let l=d(o,r);const y=X(n.disabled);return _(o,r,{...l||{},_f:{...l&&l._f?l._f:{ref:{name:r}},name:r,mount:!0,...n}}),v.mount.add(r),l?Me({field:l,disabled:n.disabled,name:r}):ne(r,!0,n.value),{...y?{disabled:n.disabled}:{},...s.progressive?{required:!!n.required,min:le(n.min),max:le(n.max),minLength:le(n.minLength),maxLength:le(n.maxLength),pattern:le(n.pattern)}:{},name:r,onChange:ae,onBlur:ae,ref:f=>{if(f){_e(r,n),l=d(o,r);const c=E(f.value)&&f.querySelectorAll&&f.querySelectorAll("input,select,textarea")[0]||f,h=Kt(c),F=l._f.refs||[];if(h?F.find(D=>D===c):c===l._f.ref)return;_(o,r,{_f:{...l._f,...h?{refs:[...F.filter(Ee),c,...Array.isArray(d(a,r))?[{}]:[]],ref:{type:c.type,name:r}}:{ref:c}}}),ne(r,!1,void 0,c)}else l=d(o,r,{}),l._f&&(l._f.mount=!1),(s.shouldUnregister||n.shouldUnregister)&&!(Ut(v.array,r)&&g.action)&&v.unMount.add(r)}}},qe=()=>s.shouldFocusError&&Ce(o,r=>r&&d(t.errors,r),v.mount),We=(r,n)=>async l=>{l&&(l.preventDefault&&l.preventDefault(),l.persist&&l.persist());let y=G(u);if(m.state.next({isSubmitting:!0}),s.resolver){const{errors:f,values:c}=await M();t.errors=f,y=c}else await H(o);T(t.errors,"root"),R(t.errors)?(m.state.next({errors:{}}),await r(y,l)):(n&&await n({...t.errors},l),qe(),setTimeout(qe)),m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:R(t.errors),submitCount:t.submitCount+1,errors:t.errors})},pt=(r,n={})=>{d(o,r)&&(E(n.defaultValue)?J(r,d(a,r)):(J(r,n.defaultValue),_(a,r,n.defaultValue)),n.keepTouched||T(t.touchedFields,r),n.keepDirty||(T(t.dirtyFields,r),t.isDirty=n.defaultValue?p(r,d(a,r)):p()),n.keepError||(T(t.errors,r),A.isValid&&x()),m.state.next({...t}))},$e=(r,n={})=>{const l=r?G(r):a,y=G(l),f=r&&!R(r)?y:a;if(n.keepDefaultValues||(a=l),!n.keepValues){if(n.keepDirtyValues||I)for(const c of v.mount)d(t.dirtyFields,c)?_(f,c,d(u,c)):J(c,d(f,c));else{if(Le&&E(r))for(const c of v.mount){const h=d(o,c);if(h&&h._f){const F=Array.isArray(h._f.refs)?h._f.refs[0]:h._f.ref;if(he(F)){const D=F.closest("form");if(D){D.reset();break}}}}o={}}u=e.shouldUnregister?n.keepDefaultValues?G(a):{}:G(f),m.array.next({values:{...f}}),m.values.next({values:{...f}})}v={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!g.mount&&i(),g.mount=!A.isValid||!!n.keepIsValid,g.watch=!!e.shouldUnregister,m.state.next({submitCount:n.keepSubmitCount?t.submitCount:0,isDirty:n.keepDirty?t.isDirty:!!(n.keepDefaultValues&&!Z(r,a)),isSubmitted:n.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:n.keepDirtyValues?t.dirtyFields:n.keepDefaultValues&&r?ke(a,r):{},touchedFields:n.keepTouched?t.touchedFields:{},errors:n.keepErrors?t.errors:{},isSubmitSuccessful:n.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1})},He=(r,n)=>$e(Q(r)?r(u):r,n);return{control:{register:_e,unregister:Ve,getFieldState:Ue,handleSubmit:We,setError:Ie,_executeSchema:M,_getWatch:S,_getDirty:p,_updateValid:x,_removeUnmounted:V,_updateFieldArray:$,_updateDisabledField:Me,_getFieldArray:L,_reset:$e,_resetDefaultValues:()=>Q(s.defaultValues)&&s.defaultValues().then(r=>{He(r,s.resetOptions),m.state.next({isLoading:!1})}),_updateFormState:r=>{t={...t,...r}},_subjects:m,_proxyFormState:A,get _fields(){return o},get _formValues(){return u},get _state(){return g},set _state(r){g=r},get _defaultValues(){return a},get _names(){return v},set _names(r){v=r},get _formState(){return t},set _formState(r){t=r},get _options(){return s},set _options(r){s={...s,...r}}},trigger:oe,register:_e,handleSubmit:We,watch:mt,setValue:J,getValues:Be,reset:He,resetField:pt,clearErrors:bt,unregister:Ve,setError:Ie,setFocus:(r,n={})=>{const l=d(o,r),y=l&&l._f;if(y){const f=y.refs?y.refs[0]:y.ref;f.focus&&(f.focus(),n.shouldSelect&&f.select())}},getFieldState:Ue}}function tr(e={}){const i=K.useRef(),s=K.useRef(),[t,o]=K.useState({isDirty:!1,isValidating:!1,isLoading:Q(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Q(e.defaultValues)?void 0:e.defaultValues});i.current||(i.current={...er(e,()=>o(u=>({...u}))),formState:t});const a=i.current.control;return a._options=e,Wt({subject:a._subjects.state,next:u=>{qt(u,a._proxyFormState,a._updateFormState)&&o({...a._formState})}}),K.useEffect(()=>{e.values&&!Z(e.values,s.current)?(a._reset(e.values,a._options.resetOptions),s.current=e.values):a._resetDefaultValues()},[e.values,a]),K.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),i.current.formState=Mt(t,a),i.current}var it=function(e,i,s){if(e&&"reportValidity"in e){var t=d(s,i);e.setCustomValidity(t&&t.message||""),e.reportValidity()}},vt=function(e,i){var s=function(o){var a=i.fields[o];a&&a.ref&&"reportValidity"in a.ref?it(a.ref,o,e):a.refs&&a.refs.forEach(function(u){return it(u,o,e)})};for(var t in i.fields)s(t)},rr=function(e,i){i.shouldUseNativeValidation&&vt(e,i);var s={};for(var t in e){var o=d(i.fields,t),a=Object.assign(e[t]||{},{ref:o&&o.ref});if(ir(i.names||Object.keys(e),t)){var u=Object.assign({},sr(d(s,t)));_(u,"root",a),_(s,t,u)}else _(s,t,a)}return s},sr=function(e){return Array.isArray(e)?e.filter(Boolean):[]},ir=function(e,i){return e.some(function(s){return s.startsWith(i+".")})},nr=function(e,i){for(var s={};e.length;){var t=e[0],o=t.code,a=t.message,u=t.path.join(".");if(!s[u])if("unionErrors"in t){var g=t.unionErrors[0].errors[0];s[u]={message:g.message,type:g.code}}else s[u]={message:a,type:o};if("unionErrors"in t&&t.unionErrors.forEach(function(U){return U.errors.forEach(function(A){return e.push(A)})}),i){var v=s[u].types,w=v&&v[t.code];s[u]=ut(u,i,s,o,w?[].concat(w,t.message):t.message)}e.shift()}return s},ar=function(e,i,s){return s===void 0&&(s={}),function(t,o,a){try{return Promise.resolve(function(u,g){try{var v=Promise.resolve(e[s.mode==="sync"?"parse":"parseAsync"](t,i)).then(function(w){return a.shouldUseNativeValidation&&vt({},a),{errors:{},values:s.raw?t:w}})}catch(w){return g(w)}return v&&v.then?v.then(void 0,g):v}(0,function(u){if(function(g){return g.errors!=null}(u))return{values:{},errors:rr(nr(u.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw u}))}catch(u){return Promise.reject(u)}}};const or=we.object({name:we.string().min(3),description:we.string()}),xt=({project:e,action:i})=>{var A,m;const t=Oe().state!=="idle",{setFocus:o,register:a,handleSubmit:u,formState:{errors:g,dirtyFields:v}}=tr({resolver:ar(or),defaultValues:{name:e.name||"",description:e.description||""}}),{palette:w}=jt(),U=nt();return ue.useEffect(()=>o("name"),[o]),b.jsx(b.Fragment,{children:b.jsxs(Tt,{onSubmit:u(({name:I,description:O})=>U({...e,name:I,description:O,action:i},{method:"put",replace:!0,encType:"application/json"})),style:{opacity:t?.5:1},children:[b.jsx(Ke,{...a("name"),error:!!g.name,helperText:(A=g.name)==null?void 0:A.message,placeholder:"Name",InputProps:{style:{color:w.primary.main,fontSize:"20px",fontWeight:"500"}},disabled:t,variant:"standard"}),b.jsx(Ke,{...a("description"),error:!!g.description,helperText:(m=g.description)==null?void 0:m.message,placeholder:"Description",disabled:t,fullWidth:!0,variant:"standard"}),b.jsx(ee,{sx:{display:"flex",justifyContent:"right"},children:b.jsx(Ct,{variant:"outlined",disabled:t||Object.keys(v).length===0||Object.keys(g).length>0,style:{marginTop:"10px"},color:"primary",type:"submit",children:"Save"})})]})})},lr=({project:e})=>b.jsxs(b.Fragment,{children:[b.jsx(Ot,{component:Lt,to:`projects/${e.id}`,children:b.jsx(Te,{variant:"h6",children:e.name})}),b.jsx(Te,{style:{whiteSpace:"pre-line"},variant:"body1",children:e.description})]}),ur=({project:e})=>{const[i,s]=ue.useState(!1),o=Oe().state!=="idle",a=nt();return ue.useEffect(()=>s(!1),[e]),b.jsxs(Ft,{sx:{m:1,p:2,border:"1px solid",borderColor:u=>u.palette.divider,position:"relative","&:hover .action-buttons":{opacity:1}},children:[b.jsx(ee,{style:{position:"absolute",top:"5px",right:"5px"},children:b.jsxs(ee,{sx:u=>({opacity:0,transition:u.transitions.create("opacity",{duration:u.transitions.duration.enteringScreen})}),className:"action-buttons",display:"flex",columnGap:1,children:[b.jsx(wt,{disabled:o||i,onClick:()=>{confirm("Are you sure you want to delete this project?")===!0&&a({projectId:e.id,action:"delete-project"},{method:"post",replace:!0,encType:"application/json"})},children:b.jsx(St,{})}),b.jsx(at,{disabled:o,color:"primary",value:"edit-mode",selected:i,size:"small",sx:{border:"none",borderRadius:"50%"},onChange:()=>s(u=>!u),children:b.jsx(Dt,{})})]})}),i?b.jsx(xt,{project:e,action:"edit-project"}):b.jsx(lr,{project:e})]})},cr=()=>{const[e,i]=ue.useState(!1),[s,t]=ue.useState(!1),o=Oe(),a=o.state!=="idle";return!s&&o.state==="submitting"&&t(!0),s&&o.state==="idle"&&(t(!1),i(!1)),b.jsxs(ee,{py:2,children:[b.jsx(ee,{display:"flex",justifyContent:"center",children:b.jsx(Et,{title:"Create new project",children:b.jsx(at,{size:"small",selected:e,disabled:a,color:"primary",value:"check",sx:{border:"none",borderRadius:"50%"},onChange:()=>i(u=>!u),children:b.jsx(kt,{})})})}),e&&b.jsx(ee,{p:3,display:"flex",flexDirection:"column",rowGap:1,children:b.jsx(xt,{project:{name:"",description:""},action:"create-new-project"})})]})},gr=()=>{const e=Nt();return b.jsxs(b.Fragment,{children:[b.jsx(Te,{align:"center",variant:"h5",children:e.length>0?"Project List":"You don't have any projects yet"}),b.jsxs(ee,{m:"auto",mt:2,maxWidth:600,children:[b.jsx(cr,{}),b.jsx(Rt,{container:!0,direction:"column",justifyContent:"center",alignItems:"stretch",children:e.map(i=>b.jsx(K.Fragment,{children:b.jsx(ur,{project:i})},i.id))})]})]})};export{gr as Component}; diff --git a/src/evidently/ui/assets/static/js/index-CP21mErs.js b/src/evidently/ui/assets/static/js/index-CP21mErs.js new file mode 100644 index 0000000000..738b980551 --- /dev/null +++ b/src/evidently/ui/assets/static/js/index-CP21mErs.js @@ -0,0 +1 @@ +import{O as f,j as e,B as p,P as k,Q as x,U as b,V as y,f as C,W as S,X as B,h as I,u as M,r as T,I as h,Y as j,Z as m,_ as z,v as L,M as d,$ as w,a0 as D,a1 as g,a2 as v,a3 as E,a4 as R,a5 as A}from"./vendor-DoRIiF9A.js";import{u as N}from"./index-BqCr-mCb.js";const O=r=>{var t;return typeof((t=r==null?void 0:r.handle)==null?void 0:t.crumb)=="function"},P=()=>{const t=f().filter(O).map(({handle:s,data:o,id:n,pathname:i,params:a})=>s.crumb(o,{id:n,pathname:i,params:a}));return e.jsx(p,{children:e.jsx(k,{"aria-label":"breadcrumb",children:t.map(s=>e.jsx(x,{component:b,color:"inherit",to:s.to,children:s.linkText},s.to))})})},F=()=>{const r=y(),t=C(),{state:s}=S();return r.state!=="idle"||t.some(({state:n})=>n!=="idle")||s!=="idle"?e.jsx(p,{width:1,sx:{position:"fixed",top:0,left:0,zIndex:1e3},children:e.jsx(B,{sx:{height:"3px"}})}):null},H=()=>e.jsx(I,{children:e.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028 14.09 14.09 0 0 0 1.226-1.994.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z"})})}),_=()=>{const{mode:r,setMode:t}=M(),s=N(),[o,n]=T.useState(null),i=l=>n(l.currentTarget),a=()=>n(null),u=!!o,c=u?"simple-popover":void 0;return r?e.jsxs("div",{children:[e.jsx(h,{"aria-describedby":c,onClick:i,children:s==="dark"?e.jsx(j,{}):e.jsx(m,{})}),e.jsx(z,{id:c,open:u,anchorEl:o,onClose:a,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:e.jsxs(L,{size:"small",value:r,onChange:l=>{t(l.target.value),a()},children:[e.jsx(d,{value:"system",children:"System"}),e.jsx(d,{value:"light",children:"Light"}),e.jsx(d,{value:"dark",children:"Dark"})]})})]}):e.jsx(h,{"aria-describedby":c,children:s==="dark"?e.jsx(j,{}):e.jsx(m,{})})};function U({LogoSvg:r,version:t,authComponent:s}){return e.jsx(e.Fragment,{children:e.jsx(w,{position:"static",sx:{borderLeft:"none",borderRight:"none",borderTop:"none",borderBottom:"1px solid",borderColor:o=>o.palette.divider},color:"transparent",children:e.jsxs(D,{sx:{gap:1},children:[e.jsx(g,{flexGrow:1,justifyContent:"flex-start",direction:"row",children:e.jsxs(g,{direction:"row",alignItems:"flex-end",gap:1,children:[e.jsx(h,{component:b,to:"/",sx:o=>({color:"#4d4d4d",...o.applyStyles("dark",{color:o.palette.text.primary}),"&:hover":{borderRadius:"5px",color:o.palette.text.disabled,...o.applyStyles("dark",{color:o.palette.text.secondary})}}),children:e.jsx(r,{})}),e.jsx("span",{style:{verticalAlign:"super",fontSize:"0.75rem"},children:t})]})}),s,e.jsx(v,{component:x,startIcon:e.jsx(H,{}),href:"https://discord.gg/EJxU68uynY",target:"_blank",children:"Support"}),e.jsx(v,{component:x,href:"https://docs.evidentlyai.com",target:"_blank",children:"Docs"}),e.jsx(_,{})]})})})}const G=({LogoSvg:r,authComponent:t})=>{const{version:s}=E();return e.jsxs(e.Fragment,{children:[e.jsx(U,{authComponent:t,version:s,LogoSvg:r}),e.jsx(F,{}),e.jsx(R,{}),e.jsxs(p,{p:3,children:[e.jsx(P,{}),e.jsx(A,{})]})]})},J={crumb:()=>({to:"/",linkText:"Home"})};export{G as HomeComponentTemplate,J as handle}; diff --git a/src/evidently/ui/assets/static/js/index-CWVbMwsv.js b/src/evidently/ui/assets/static/js/index-CWVbMwsv.js deleted file mode 100644 index 1b8288b016..0000000000 --- a/src/evidently/ui/assets/static/js/index-CWVbMwsv.js +++ /dev/null @@ -1 +0,0 @@ -import{H as d,Y as c,j as e,B as x,G as a,T as m,I as p,$ as j,K as u,N as h,a0 as b,_ as T}from"./vendor-D9wnXojU.js";import{d as f}from"./ContentCopy-Dg3beyqW.js";import"./createSvgIcon-BFOkCGLU.js";const v={crumb:(s,{pathname:i})=>({to:i,linkText:(s==null?void 0:s.name)||"undefined"})},o=({tabsConfig:s=[]})=>{const i=d(),n=c(),r=s.findIndex(t=>i.find(({id:l})=>l===t.id));return e.jsxs(x,{mt:2,children:[e.jsx(a,{container:!0,spacing:2,direction:"row",justifyContent:"flex-start",alignItems:"flex-end",children:e.jsx(a,{item:!0,xs:12,children:e.jsxs(m,{sx:{color:"#aaa"},variant:"body2",children:[`project id: ${n.id}`,e.jsx(p,{size:"small",style:{marginLeft:10},onClick:()=>{navigator.clipboard.writeText(n.id)},children:e.jsx(f,{fontSize:"small"})})]})})}),s.length>0&&e.jsx(j,{value:r,"aria-label":"simple tabs example",indicatorColor:"primary",children:s.map(t=>e.jsx(u,{component:h,to:t.link,children:e.jsx(b,{label:t.label||t.id,value:t.id})},t.id))}),e.jsx(T,{})]})},k=[{id:"dashboard",link:".",label:"Dashboard"},{id:"reports",link:"reports",label:"Reports"},{id:"test_suites",link:"test-suites",label:"Test suites"}],B=()=>e.jsx(o,{tabsConfig:k}),C=()=>e.jsx(o,{});export{B as Component,o as ProjectTemplate,C as ProjectWithoutTabs,v as handle}; diff --git a/src/evidently/ui/assets/static/js/index-Cfoxrigu.js b/src/evidently/ui/assets/static/js/index-Cfoxrigu.js new file mode 100644 index 0000000000..4b0b8a3e45 --- /dev/null +++ b/src/evidently/ui/assets/static/js/index-Cfoxrigu.js @@ -0,0 +1 @@ +import{aj as p,m as o,a3 as h,j as e,G as c}from"./vendor-DoRIiF9A.js";import{r as n,J as d}from"./index-BqCr-mCb.js";import{a as m,C as g,D as _}from"./DashboardContent-CtUoNzcD.js";import"./DashboardViewParams-mNv_VOpq.js";const C={crumb:(s,{pathname:t,params:a})=>({to:t,linkText:String(a.snapshotId)}),hide:{snapshotList:!0}},D=({api:s})=>{const{projectId:t,snapshotId:a}=p();o(t),o(a);const i=h();return e.jsx(e.Fragment,{children:e.jsx(m.Provider,{value:g({getAdditionGraphData:r=>s.GET("/api/projects/{project_id}/{snapshot_id}/graphs_data/{graph_id}",{params:{path:{project_id:t,snapshot_id:a,graph_id:encodeURIComponent(r)}},parseAs:"text"}).then(n()).then(d),getAdditionWidgetData:r=>s.GET("/api/projects/{project_id}/{snapshot_id}/graphs_data/{graph_id}",{params:{path:{project_id:t,snapshot_id:a,graph_id:encodeURIComponent(r)}},parseAs:"text"}).then(n()).then(d)}),children:e.jsx(c,{container:!0,spacing:3,direction:"row",alignItems:"stretch",children:e.jsx(_,{widgets:i.widgets})})})})};export{D as SnapshotTemplate,C as handle}; diff --git a/src/evidently/ui/assets/static/js/index-DQXtchPZ.js b/src/evidently/ui/assets/static/js/index-DQXtchPZ.js new file mode 100644 index 0000000000..b66d87a253 --- /dev/null +++ b/src/evidently/ui/assets/static/js/index-DQXtchPZ.js @@ -0,0 +1 @@ +import{aj as d,m as D,a3 as l,y as e,ak as p,j as s}from"./vendor-DoRIiF9A.js";import{D as x}from"./index-BqCr-mCb.js";import{D as c}from"./DashboardViewParams-mNv_VOpq.js";const b=({Dashboard:o})=>{const{projectId:r}=d();D(r);const a=l(),m=a.min_timestamp!==null&&a.max_timestamp!==null,i={minDate:e(a.min_timestamp),maxDate:e(a.max_timestamp)},[t,n]=p("dashboard-hide-dates",!1);return s.jsxs(s.Fragment,{children:[s.jsx(x,{dataRanges:i,isShowDateFilter:m,isDashboardHideDates:t,setIsDashboardHideDates:n}),s.jsx(c.Provider,{value:{isXaxisAsCategorical:t},children:s.jsx(o,{data:a})})]})};export{b as DashboardComponentTemplate}; diff --git a/src/evidently/ui/assets/static/js/index-DxyKdhm1.js b/src/evidently/ui/assets/static/js/index-DxyKdhm1.js deleted file mode 100644 index 60faf6cd48..0000000000 --- a/src/evidently/ui/assets/static/js/index-DxyKdhm1.js +++ /dev/null @@ -1,3 +0,0 @@ -const __vite__fileDeps=["static/js/index-BnuGDDzE.js","static/js/vendor-D9wnXojU.js","static/js/index-BXIEK-ok.js","static/js/DashboardViewParams-VueHZ5oJ.js","static/js/DashboardWidgets-BBBcbYTW.js","static/js/DashboardContent-BF_kxHXz.js","static/js/createSvgIcon-BFOkCGLU.js","static/js/Edit-BcFhWXpJ.js","static/js/index-yz3NKQt-.js","static/js/index-C0PQxKG0.js","static/js/ContentCopy-Dg3beyqW.js","static/css/index-C5isHALn.css","static/js/index-CWVbMwsv.js","static/js/index-sTir578I.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -var Z=Object.defineProperty;var ee=(e,t,s)=>t in e?Z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var w=(e,t,s)=>(ee(e,typeof t!="symbol"?t+"":t,s),s);import{c as H,g as _,u as te,j as r,A as N,a as B,i as re,T as k,b as se,R,r as F,S as oe,B as I,I as ne,C as ie,d as ae,e as ce,f as he,h as T,k as le,l as de,L as ue,m as pe,G as O,F as fe,n as me,o as je,p as xe,q as ye,M as p,D as V,s as _e,t as ge,v as D,z as u,w as Ee,x as ve,y as be,E as Se}from"./vendor-D9wnXojU.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function s(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=s(i);fetch(i.href,o)}})();const{transitions:P}=H(),y="#ed0500",Ie="#ded5d5",Te=H({shape:{borderRadius:5},palette:{primary:{main:_[900],light:_[200]},secondary:{main:y,dark:"#c10400",light:_[200]},background:{default:"#fff",paper:"#fff"}},components:{MuiLink:{styleOverrides:{root:{transition:P.create("color",{duration:P.duration.enteringScreen}),"&:hover":{color:y}}}},MuiTabs:{styleOverrides:{flexContainer:{gap:"10px"},indicator:{backgroundColor:y}}},MuiButton:{styleOverrides:{contained:{"&:hover":{background:_[800]}},outlined:{"&:hover":{color:y,borderColor:y,background:"#fff"}},text:{"&:hover":{color:y,borderColor:y}}}},MuiTab:{defaultProps:{color:"secondary"},styleOverrides:{root:{fontSize:"1rem",borderRadius:"5px","&:hover":{background:_[200]}}}},MuiIconButton:{styleOverrides:{root:{transition:P.create("color",{duration:P.duration.enteringScreen}),color:_[900],"&:hover":{color:y}}}},MuiSwitch:{defaultProps:{color:"secondary"}},MuiToggleButton:{defaultProps:{color:"secondary"},styleOverrides:{root:{transition:P.create("color",{duration:P.duration.enteringScreen}),color:_[900],"&:hover":{color:y},"&.Mui-disabled":{border:"unset",background:_[100]}}}},MuiToggleButtonGroup:{defaultProps:{color:"secondary"}},MuiLinearProgress:{defaultProps:{color:"secondary"}},MuiPaper:{styleOverrides:{root:{boxShadow:"unset",border:"1px solid",borderColor:Ie}}}},typography:{fontFamily:["-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),button:{fontWeight:"bold",textTransform:"none"}}}),v=()=>{var t;const e=te();return r.jsxs(N,{severity:"error",children:[r.jsx(B,{children:"Something went wrong"}),re(e)&&r.jsxs(r.Fragment,{children:[r.jsx(k,{fontWeight:"bold",children:[`Status: ${e.status}`,typeof((t=e.data)==null?void 0:t.detail)=="string"&&e.data.detail].filter(Boolean).join(", ")}),typeof e.data=="string"&&r.jsx(k,{children:e.data})]}),typeof e=="string"&&r.jsx(k,{fontWeight:"bold",children:e})]})},W=({data:e})=>{const[t,s]=R.useState(!1),n=R.useRef(null);return F.useEffect(()=>{e!=null&&e.error&&(n.current=e.error,s(!0))},[e]),r.jsx(oe,{open:t,onClose:(i,o)=>{o!=="clickaway"&&s(!1)},children:r.jsx(N,{severity:"error",children:r.jsxs(I,{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:2,children:[r.jsxs(I,{children:[r.jsx(B,{children:"Something went wrong"}),n.current&&r.jsx(k,{fontWeight:"bold",children:[typeof n.current.status_code=="number"&&`Status: ${n.current.status_code}`,typeof n.current.detail=="string"&&n.current.detail].filter(Boolean).join(", ")})]}),r.jsx(I,{children:r.jsx(ne,{size:"small","aria-label":"close",color:"inherit",onClick:()=>{s(!1)},children:r.jsx(ie,{})})})]})})})},$=()=>{const e=se();return r.jsx(W,{data:e})},Pe=()=>{var s;const t=(s=ae().find(n=>{var i;return!!((i=n.data)!=null&&i.error)}))==null?void 0:s.data;return r.jsx(W,{data:t})},ke={path:"*",Component:()=>r.jsx(I,{display:"flex",justifyContent:"center",children:r.jsx(k,{variant:"h4",children:"Page Not Found"})})},we="modulepreload",Oe=function(e){return"/"+e},G={},E=function(t,s,n){let i=Promise.resolve();if(s&&s.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.all(s.map(c=>{if(c=Oe(c),c in G)return;G[c]=!0;const f=c.endsWith(".css"),h=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${h}`))return;const l=document.createElement("link");if(l.rel=f?"stylesheet":we,f||(l.as="script",l.crossOrigin=""),l.href=c,a&&l.setAttribute("nonce",a),document.head.appendChild(l),f)return new Promise((j,A)=>{l.addEventListener("load",j),l.addEventListener("error",()=>A(new Error(`Unable to preload CSS for ${c}`)))})}))}return i.then(()=>t()).catch(o=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o})};function d(e){return e!=null&&e.notThrowExc?Le:Ce}const Ce=e=>{const{data:t,error:s,response:n}=e;if(s)throw ce(s,{status:n.status});return t},Le=e=>{const{data:t,error:s,response:n}=e;return s?{error:{...s,status_code:n.status}}:t},De=({api:e})=>({loader:()=>e.GET("/api/version").then(d())}),Ae=he,b=Ae({baseUrl:"/"}),Re="/static/img/logo.png",{loader:Fe}=De({api:b}),Ne={path:"/",lazy:async()=>{const{HomeComponentTemplate:e,...t}=await E(()=>import("./index-BnuGDDzE.js"),__vite__mapDeps([0,1]));return{Component:()=>r.jsxs(r.Fragment,{children:[r.jsx(Pe,{}),r.jsx(e,{logoSrc:Re})]}),...t}},loader:Fe,ErrorBoundary:v},J=e=>{if(e.id)return{...e,id:e.id};throw`"id" is missing in object: ${JSON.stringify(e)}`},q=e=>{if(e.headers.get("Content-type")!=="application/json")throw new Response("Unsupported Media Type",{status:415})},Be=({api:e})=>({loader:({params:t})=>{const{projectId:s}=t;return T(s),e.GET("/api/projects/{project_id}/info",{params:{path:{project_id:s}}}).then(d()).then(J)}});function U(e){return`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}T${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}`}const g={FROM:"date_from",TO:"date_to"},$e=e=>{const t=e.get(g.FROM),s=e.get(g.TO);return{date_from:t,date_to:s}},Me=({dataRanges:e})=>{const[t,s]=ge(),{date_from:n,date_to:i}=$e(t),o=D(n||e.minDate),a=D(i||e.maxDate);return{isCorrectTimeInterval:o.isValid()&&a.isValid()&&(o.isSame(a)||o.isBefore(a)),date_from:o,date_to:a,setSearchParams:s}},jt=({dataRanges:e,isDashboardHideDates:t,setIsDashboardHideDates:s,isShowDateFilter:n})=>{const i=le(),{isCorrectTimeInterval:o,date_from:a,date_to:c,setSearchParams:f}=Me({dataRanges:e}),[h,l]=F.useState({date_from:a,date_to:c}),j=de(h,300),A=o?"":"incorrect time interval";return F.useEffect(()=>{var C,L;if(i)return;const m=(C=j==null?void 0:j.date_to)==null?void 0:C.toDate(),x=(L=j==null?void 0:j.date_from)==null?void 0:L.toDate();f(S=>(S.delete(g.FROM),S.delete(g.TO),x&&S.append(g.FROM,U(x)),m&&S.append(g.TO,U(m)),S),{preventScrollReset:!0,replace:!0})},[j]),r.jsx(ue,{dateAdapter:pe,adapterLocale:"en-gb",children:r.jsxs(O,{container:!0,padding:1,zIndex:1,gap:2,justifyContent:"flex-end",alignItems:"flex-end",children:[r.jsx(O,{item:!0,children:r.jsx(I,{minWidth:180,display:"flex",justifyContent:"center",children:r.jsx(fe,{control:r.jsx(me,{checked:t,onChange:m=>s(m.target.checked)}),label:"Show in order"})})}),n&&r.jsxs(r.Fragment,{children:[r.jsx(O,{item:!0,xs:12,md:2,children:r.jsxs(je,{fullWidth:!0,children:[r.jsx(xe,{children:"Period"}),r.jsxs(ye,{variant:"standard",defaultValue:"",onChange:m=>{const[x,C]=m.target.value.split(",");if(x===""){l({date_from:null,date_to:null});return}const[L,S]=[Number(x),C],M=e.maxDate.subtract(L,S);l({date_from:M.isBefore(e.minDate)?e.minDate:M,date_to:e.maxDate})},children:[r.jsx(p,{value:"",children:r.jsx("em",{children:"None"})}),r.jsx(p,{value:"10,minutes",children:"Last 10 Minutes"}),r.jsx(p,{value:"30,minutes",children:"Last 30 Minutes"}),r.jsx(p,{value:"1,hours",children:"Last 1 Hours"}),r.jsx(p,{value:"2,hours",children:"Last 2 Hours"}),r.jsx(p,{value:"8,hours",children:"Last 8 Hours"}),r.jsx(p,{value:"24,hours",children:"Last 24 Hours"}),r.jsx(p,{value:"7,days",children:"Last 7 Days"}),r.jsx(p,{value:"14,days",children:"Last 14 Days"}),r.jsx(p,{value:"28,days",children:"Last 28 Days"}),r.jsx(p,{value:"60,days",children:"Last 60 Days"})]})]})}),r.jsx(O,{item:!0,children:r.jsxs(I,{display:"flex",alignItems:"center",gap:2,children:[r.jsx(V,{minDate:e.minDate,maxDate:e.maxDate&&c,slotProps:{textField:{variant:"standard"}},label:"From",value:h.date_from,onChange:m=>l(x=>({...x,date_from:m}))}),r.jsx(I,{height:1,display:"flex",alignItems:"center",children:r.jsx(k,{children:" - "})}),r.jsx(V,{minDate:e.minDate&&a,maxDate:e.maxDate,slotProps:{textField:{variant:"standard"}},label:"To",value:h.date_to,onChange:m=>l(x=>({...x,date_to:m}))})]})}),r.jsx(O,{item:!0,xs:12,children:r.jsx(_e,{unmountOnExit:!0,in:!o,children:r.jsxs(N,{severity:"error",children:[r.jsx(B,{children:"Error"}),A]})})})]})]})})};class Ve{constructor(){w(this,"at",0);w(this,"ch","");w(this,"text","");w(this,"escapee",{'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:` -`,r:"\r",t:" "})}error(t){throw{name:"SyntaxError",message:t,at:this.at,text:this.text}}next(){return this.ch=this.text.charAt(this.at++)}check(t){t!==this.ch&&this.error(`Expected '${t}' instead of '${this.ch}'`),this.ch=this.text.charAt(this.at++)}number(){var t="";if(this.ch==="-"&&(t="-",this.check("-")),this.ch==="I")return this.check("I"),this.check("n"),this.check("f"),this.check("i"),this.check("n"),this.check("i"),this.check("t"),this.check("y"),Number.NEGATIVE_INFINITY;for(;this.ch>="0"&&this.ch<="9";)t+=this.ch,this.next();if(this.ch===".")for(t+=".";this.next()&&this.ch>="0"&&this.ch<="9";)t+=this.ch;if(this.ch==="e"||this.ch==="E")for(t+=this.ch,this.next(),(this.ch==="-"||this.ch==="+")&&(t+=this.ch,this.next());this.ch>="0"&&this.ch<="9";)t+=this.ch,this.next();return+t}string(){var t,s,n="",i;if(this.ch==='"')for(;this.next();){if(this.ch==='"')return this.next(),n;if(this.ch==="\\")if(this.next(),this.ch==="u"){for(i=0,s=0;s<4&&(t=Number.parseInt(this.next(),16),!!isFinite(t));s++)i=i*16+t;n+=String.fromCharCode(i)}else if(this.escapee[this.ch])n+=this.escapee[this.ch];else break;else n+=this.ch}this.error("Bad string")}white(){for(;this.ch&&this.ch<=" ";)this.next()}word(){switch(this.ch){case"t":return this.check("t"),this.check("r"),this.check("u"),this.check("e"),!0;case"f":return this.check("f"),this.check("a"),this.check("l"),this.check("s"),this.check("e"),!1;case"n":return this.check("n"),this.check("u"),this.check("l"),this.check("l"),null;case"N":return this.check("N"),this.check("a"),this.check("N"),Number.NaN;case"I":return this.check("I"),this.check("n"),this.check("f"),this.check("i"),this.check("n"),this.check("i"),this.check("t"),this.check("y"),Number.POSITIVE_INFINITY}this.error("Unexpected '"+this.ch+"'")}array(){var t=[];if(this.ch==="["){if(this.check("["),this.white(),this.ch==="]")return this.check("]"),t;for(;this.ch;){if(t.push(this.value()),this.white(),this.ch==="]")return this.check("]"),t;this.check(","),this.white()}}this.error("Bad array")}object(){var t,s={};if(this.ch==="{"){if(this.check("{"),this.white(),this.ch==="}")return this.check("}"),s;for(;this.ch;){if(t=this.string(),this.white(),this.check(":"),Object.hasOwnProperty.call(s,t)&&this.error('Duplicate key "'+t+'"'),s[t]=this.value(),this.white(),this.ch==="}")return this.check("}"),s;this.check(","),this.white()}}this.error("Bad object")}value(){switch(this.white(),this.ch){case"{":return this.object();case"[":return this.array();case'"':return this.string();case"-":return this.number();default:return this.ch>="0"&&this.ch<="9"?this.number():this.word()}}parse(t,s){let n;return this.text=t,this.at=0,this.ch=" ",n=this.value(),this.white(),this.ch&&this.error("Syntax error"),s!==void 0?function i(o,a){var c,f,h=o[a];if(h&&typeof h=="object")for(c in h)Object.prototype.hasOwnProperty.call(h,c)&&(f=i(h,c),f!==void 0?h[c]=f:delete h[c]);return s.call(o,a,h)}({"":n},""):n}}const Y=e=>new Ve().parse(e),Ge=({api:e})=>({loader:({params:t,request:s})=>{T(t.projectId);const{searchParams:n}=new URL(s.url);let i=n.get(g.FROM),o=n.get(g.TO);return i&&!D(i).isValid()&&(i=null),o&&!D(o).isValid()&&(o=null),e.GET("/api/projects/{project_id}/dashboard",{params:{path:{project_id:t.projectId},query:{timestamp_start:i,timestamp_end:o}},parseAs:"text"}).then(d()).then(Y)}}),{loader:Ue}=Ge({api:b}),ze={index:!0,id:"dashboard",lazy:async()=>{const[{DashboardComponentTemplate:e},{DashboardWidgets:t}]=await Promise.all([E(()=>import("./index-BXIEK-ok.js"),__vite__mapDeps([2,1,3])),E(()=>import("./DashboardWidgets-BBBcbYTW.js"),__vite__mapDeps([4,1,5,3,6,7]))]);return{Component:()=>r.jsx(e,{Dashboard:({data:{widgets:s}})=>r.jsx(t,{widgets:s})})}},loader:Ue,ErrorBoundary:v},Q={RELOAD_SNAPSHOTS:"reload-snapshots",DELETE_SNAPSHOT:"delete-snapshot"},He=u.object({action:u.literal(Q.RELOAD_SNAPSHOTS)}),We=u.object({action:u.literal(Q.DELETE_SNAPSHOT),snapshotId:u.string().uuid()}),K=e=>async({request:t,params:s})=>{T(s.projectId),q(t);const n=await t.json();if(He.safeParse(n).success)return e.GET("/api/projects/{project_id}/reload",{params:{path:{project_id:s.projectId}}}).then(d({notThrowExc:!0}));const o=We.safeParse(n);return o.success?e.DELETE("/api/projects/{project_id}/{snapshot_id}",{params:{path:{project_id:s.projectId,snapshot_id:o.data.snapshotId}}}).then(d({notThrowExc:!0})):{error:{status_code:!1,detail:"Unknown action"}}},Je=({api:e})=>({loader:({params:t})=>(T(t.projectId),t.snapshotId?Promise.resolve([]):e.GET("/api/projects/{project_id}/reports",{params:{path:{project_id:t.projectId}}}).then(d())),action:K(e)}),qe=({api:e})=>({loader:({params:t})=>(T(t.projectId),t.snapshotId?Promise.resolve([]):e.GET("/api/projects/{project_id}/test_suites",{params:{path:{project_id:t.projectId}}}).then(d())),action:K(e)}),Ye=({api:e})=>({loader:({params:t})=>{const{projectId:s,snapshotId:n}=t;return T(s),T(n),e.GET("/api/projects/{project_id}/{snapshot_id}/data",{params:{path:{project_id:s,snapshot_id:n}},parseAs:"text"}).then(d()).then(Y)}}),{loader:Qe}=Ye({api:b}),X={path:":snapshotId",lazy:async()=>{const{SnapshotTemplate:e,...t}=await E(()=>import("./index-yz3NKQt-.js"),__vite__mapDeps([8,1,5,3,6,7]));return{Component:()=>r.jsx(e,{api:b}),...t}},loader:Qe,ErrorBoundary:v},{loader:Ke,action:Xe}=Je({api:b}),Ze={id:"reports",path:"reports",lazy:async()=>{const{SnapshotsListTemplate:e,...t}=await E(()=>import("./index-C0PQxKG0.js"),__vite__mapDeps([9,1,6,10,11]));return{...t,Component:()=>r.jsxs(r.Fragment,{children:[r.jsx($,{}),r.jsx(e,{type:"reports"})]})}},loader:Ke,action:Xe,ErrorBoundary:v,children:[X]},{loader:et,action:tt}=qe({api:b}),rt={id:"test_suites",path:"test-suites",lazy:async()=>{const{SnapshotsListTemplate:e,...t}=await E(()=>import("./index-C0PQxKG0.js"),__vite__mapDeps([9,1,6,10,11]));return{...t,Component:()=>r.jsxs(r.Fragment,{children:[r.jsx($,{}),r.jsx(e,{type:"test suites"})]})}},loader:et,action:tt,ErrorBoundary:v,children:[X]},{loader:st}=Be({api:b}),ot={path:"projects/:projectId",lazy:()=>E(()=>import("./index-CWVbMwsv.js"),__vite__mapDeps([12,1,10,6])),loader:st,ErrorBoundary:v,children:[ze,Ze,rt]},nt=u.object({action:u.literal("edit-project")}),it=u.object({action:u.literal("create-new-project")}),at=u.object({action:u.literal("delete-project"),projectId:u.string().uuid()}),ct=({api:e})=>({loader:()=>e.GET("/api/projects").then(d()).then(t=>t.map(J)),action:async({request:t})=>{q(t);const s=await t.json();if(it.safeParse(s).success)return e.POST("/api/projects",{body:s}).then(d({notThrowExc:!0}));const n=at.safeParse(s);if(n.success)return e.DELETE("/api/projects/{project_id}",{params:{path:{project_id:n.data.projectId}}}).then(d({notThrowExc:!0}));if(nt.safeParse(s).success)return e.POST("/api/projects/{project_id}/info",{params:{path:{project_id:s.id}},body:s}).then(d({notThrowExc:!0}));throw"Undefined action"}}),{loader:ht,action:lt}=ct({api:b}),dt={index:!0,lazy:()=>E(()=>import("./index-sTir578I.js"),__vite__mapDeps([13,1,6,7])).then(e=>({...e,Component:()=>r.jsxs(r.Fragment,{children:[r.jsx($,{}),r.jsx(e.Component,{})]})})),loader:ht,action:lt,ErrorBoundary:v},ut={...Ne,children:[dt,ot,ke],ErrorBoundary:v},pt=Ee([ut]),z=document.getElementById("root");z&&ve.createRoot(z).render(r.jsx(R.StrictMode,{children:r.jsx(be,{theme:Te,children:r.jsx(Se,{router:pt})})}));export{jt as D,Y as J,d as r}; diff --git a/src/evidently/ui/assets/static/js/index-sTir578I.js b/src/evidently/ui/assets/static/js/index-sTir578I.js deleted file mode 100644 index b19c4a315f..0000000000 --- a/src/evidently/ui/assets/static/js/index-sTir578I.js +++ /dev/null @@ -1 +0,0 @@ -import{R as K,j as x,z as we,r as ue,O as Ce,a1 as at,a2 as Dt,B as ee,I as St,a3 as ot,a4 as Et,a5 as kt,a6 as jt,a7 as Tt,a8 as Ye,X as Ot,K as Ct,N as Lt,T as Te,Y as Rt,G as Nt}from"./vendor-D9wnXojU.js";import{r as Pt,i as Mt}from"./createSvgIcon-BFOkCGLU.js";import{d as Bt}from"./Edit-BcFhWXpJ.js";var ce=e=>e.type==="checkbox",ie=e=>e instanceof Date,O=e=>e==null;const lt=e=>typeof e=="object";var k=e=>!O(e)&&!Array.isArray(e)&<(e)&&!ie(e),Ut=e=>k(e)&&e.target?ce(e.target)?e.target.checked:e.target.value:e,It=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,qt=(e,i)=>e.has(It(i)),Wt=e=>{const i=e.constructor&&e.constructor.prototype;return k(i)&&i.hasOwnProperty("isPrototypeOf")},Le=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function G(e){let i;const s=Array.isArray(e);if(e instanceof Date)i=new Date(e);else if(e instanceof Set)i=new Set(e);else if(!(Le&&(e instanceof Blob||e instanceof FileList))&&(s||k(e)))if(i=s?[]:{},!s&&!Wt(e))i=e;else for(const t in e)e.hasOwnProperty(t)&&(i[t]=G(e[t]));else return e;return i}var fe=e=>Array.isArray(e)?e.filter(Boolean):[],E=e=>e===void 0,d=(e,i,s)=>{if(!i||!k(e))return s;const t=fe(i.split(/[,[\].]+?/)).reduce((o,a)=>O(o)?o:o[a],e);return E(t)||t===e?E(e[i])?s:e[i]:t},Q=e=>typeof e=="boolean";const Xe={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},M={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},z={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};K.createContext(null);var Ht=(e,i,s,t=!0)=>{const o={defaultValues:i._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const u=a;return i._proxyFormState[u]!==M.all&&(i._proxyFormState[u]=!t||M.all),e[u]}});return o},N=e=>k(e)&&!Object.keys(e).length,$t=(e,i,s,t)=>{s(e);const{name:o,...a}=e;return N(a)||Object.keys(a).length>=Object.keys(i).length||Object.keys(a).find(u=>i[u]===M.all)},De=e=>Array.isArray(e)?e:[e];function zt(e){const i=K.useRef(e);i.current=e,K.useEffect(()=>{const s=!e.disabled&&i.current.subject&&i.current.subject.subscribe({next:i.current.next});return()=>{s&&s.unsubscribe()}},[e.disabled])}var W=e=>typeof e=="string",Gt=(e,i,s,t,o)=>W(e)?(t&&i.watch.add(e),d(s,e,o)):Array.isArray(e)?e.map(a=>(t&&i.watch.add(a),d(s,a))):(t&&(i.watchAll=!0),s),Re=e=>/^\w*$/.test(e),ut=e=>fe(e.replace(/["|']|\]/g,"").split(/\.|\[/));function V(e,i,s){let t=-1;const o=Re(i)?[i]:ut(i),a=o.length,u=a-1;for(;++ti?{...s[e],types:{...s[e]&&s[e].types?s[e].types:{},[t]:o||!0}}:{};const Oe=(e,i,s)=>{for(const t of s||Object.keys(e)){const o=d(e,t);if(o){const{_f:a,...u}=o;if(a&&i(a.name)){if(a.ref.focus){a.ref.focus();break}else if(a.refs&&a.refs[0].focus){a.refs[0].focus();break}}else k(u)&&Oe(u,i)}}};var Je=e=>({isOnSubmit:!e||e===M.onSubmit,isOnBlur:e===M.onBlur,isOnChange:e===M.onChange,isOnAll:e===M.all,isOnTouch:e===M.onTouched}),Qe=(e,i,s)=>!s&&(i.watchAll||i.watch.has(e)||[...i.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),Kt=(e,i,s)=>{const t=fe(d(e,s));return V(t,"root",i[s]),V(e,s,t),e},Ne=e=>e.type==="file",Y=e=>typeof e=="function",he=e=>{if(!Le)return!1;const i=e?e.ownerDocument:0;return e instanceof(i&&i.defaultView?i.defaultView.HTMLElement:HTMLElement)},ye=e=>W(e),Pe=e=>e.type==="radio",ge=e=>e instanceof RegExp;const Ze={value:!1,isValid:!1},et={value:!0,isValid:!0};var ft=e=>{if(Array.isArray(e)){if(e.length>1){const i=e.filter(s=>s&&s.checked&&!s.disabled).map(s=>s.value);return{value:i,isValid:!!i.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!E(e[0].attributes.value)?E(e[0].value)||e[0].value===""?et:{value:e[0].value,isValid:!0}:et:Ze}return Ze};const tt={isValid:!1,value:null};var dt=e=>Array.isArray(e)?e.reduce((i,s)=>s&&s.checked&&!s.disabled?{isValid:!0,value:s.value}:i,tt):tt;function rt(e,i,s="validate"){if(ye(e)||Array.isArray(e)&&e.every(ye)||Q(e)&&!e)return{type:s,message:ye(e)?e:"",ref:i}}var se=e=>k(e)&&!ge(e)?e:{value:e,message:""},st=async(e,i,s,t,o)=>{const{ref:a,refs:u,required:g,maxLength:v,minLength:w,min:B,max:A,pattern:p,validate:U,name:C,valueAsNumber:me,mount:de,disabled:pe}=e._f,m=d(i,C);if(!de||pe)return{};const P=u?u[0]:a,H=_=>{t&&P.reportValidity&&(P.setCustomValidity(Q(_)?"":_||""),P.reportValidity())},j={},ne=Pe(a),te=ce(a),be=ne||te,I=(me||Ne(a))&&E(a.value)&&E(m)||he(a)&&a.value===""||m===""||Array.isArray(m)&&!m.length,X=ct.bind(null,C,s,j),$=(_,b,D,L=z.maxLength,R=z.minLength)=>{const q=_?b:D;j[C]={type:_?L:R,message:q,ref:a,...X(_?L:R,q)}};if(o?!Array.isArray(m)||!m.length:g&&(!be&&(I||O(m))||Q(m)&&!m||te&&!ft(u).isValid||ne&&!dt(u).isValid)){const{value:_,message:b}=ye(g)?{value:!!g,message:g}:se(g);if(_&&(j[C]={type:z.required,message:b,ref:P,...X(z.required,b)},!s))return H(b),j}if(!I&&(!O(B)||!O(A))){let _,b;const D=se(A),L=se(B);if(!O(m)&&!isNaN(m)){const R=a.valueAsNumber||m&&+m;O(D.value)||(_=R>D.value),O(L.value)||(b=Rnew Date(new Date().toDateString()+" "+oe),J=a.type=="time",ae=a.type=="week";W(D.value)&&m&&(_=J?q(m)>q(D.value):ae?m>D.value:R>new Date(D.value)),W(L.value)&&m&&(b=J?q(m)+_.value,L=!O(b.value)&&m.length<+b.value;if((D||L)&&($(D,_.message,b.message),!s))return H(j[C].message),j}if(p&&!I&&W(m)){const{value:_,message:b}=se(p);if(ge(_)&&!m.match(_)&&(j[C]={type:z.pattern,message:b,ref:a,...X(z.pattern,b)},!s))return H(b),j}if(U){if(Y(U)){const _=await U(m,i),b=rt(_,P);if(b&&(j[C]={...b,...X(z.validate,b.message)},!s))return H(b.message),j}else if(k(U)){let _={};for(const b in U){if(!N(_)&&!s)break;const D=rt(await U[b](m,i),P,b);D&&(_={...D,...X(b,D.message)},H(D.message),s&&(j[C]=_))}if(!N(_)&&(j[C]={ref:P,..._},!s))return j}}return H(!0),j};function Yt(e,i){const s=i.slice(0,-1).length;let t=0;for(;t{for(const a of e)a.next&&a.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(a=>a!==o)}}),unsubscribe:()=>{e=[]}}}var ve=e=>O(e)||!lt(e);function Z(e,i){if(ve(e)||ve(i))return e===i;if(ie(e)&&ie(i))return e.getTime()===i.getTime();const s=Object.keys(e),t=Object.keys(i);if(s.length!==t.length)return!1;for(const o of s){const a=e[o];if(!t.includes(o))return!1;if(o!=="ref"){const u=i[o];if(ie(a)&&ie(u)||k(a)&&k(u)||Array.isArray(a)&&Array.isArray(u)?!Z(a,u):a!==u)return!1}}return!0}var yt=e=>e.type==="select-multiple",Jt=e=>Pe(e)||ce(e),Ee=e=>he(e)&&e.isConnected,ht=e=>{for(const i in e)if(Y(e[i]))return!0;return!1};function xe(e,i={}){const s=Array.isArray(e);if(k(e)||s)for(const t in e)Array.isArray(e[t])||k(e[t])&&!ht(e[t])?(i[t]=Array.isArray(e[t])?[]:{},xe(e[t],i[t])):O(e[t])||(i[t]=!0);return i}function gt(e,i,s){const t=Array.isArray(e);if(k(e)||t)for(const o in e)Array.isArray(e[o])||k(e[o])&&!ht(e[o])?E(i)||ve(s[o])?s[o]=Array.isArray(e[o])?xe(e[o],[]):{...xe(e[o])}:gt(e[o],O(i)?{}:i[o],s[o]):s[o]=!Z(e[o],i[o]);return s}var ke=(e,i)=>gt(e,i,xe(i)),vt=(e,{valueAsNumber:i,valueAsDate:s,setValueAs:t})=>E(e)?e:i?e===""?NaN:e&&+e:s&&W(e)?new Date(e):t?t(e):e;function je(e){const i=e.ref;if(!(e.refs?e.refs.every(s=>s.disabled):i.disabled))return Ne(i)?i.files:Pe(i)?dt(e.refs).value:yt(i)?[...i.selectedOptions].map(({value:s})=>s):ce(i)?ft(e.refs).value:vt(E(i.value)?e.ref.value:i.value,e)}var Qt=(e,i,s,t)=>{const o={};for(const a of e){const u=d(i,a);u&&V(o,a,u._f)}return{criteriaMode:s,names:[...e],fields:o,shouldUseNativeValidation:t}},le=e=>E(e)?e:ge(e)?e.source:k(e)?ge(e.value)?e.value.source:e.value:e,Zt=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function it(e,i,s){const t=d(e,s);if(t||Re(s))return{error:t,name:s};const o=s.split(".");for(;o.length;){const a=o.join("."),u=d(i,a),g=d(e,a);if(u&&!Array.isArray(u)&&s!==a)return{name:s};if(g&&g.type)return{name:a,error:g};o.pop()}return{name:s}}var er=(e,i,s,t,o)=>o.isOnAll?!1:!s&&o.isOnTouch?!(i||e):(s?t.isOnBlur:o.isOnBlur)?!e:(s?t.isOnChange:o.isOnChange)?e:!0,tr=(e,i)=>!fe(d(e,i)).length&&T(e,i);const rr={mode:M.onSubmit,reValidateMode:M.onChange,shouldFocusError:!0};function sr(e={},i){let s={...rr,...e},t={submitCount:0,isDirty:!1,isLoading:Y(s.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},o={},a=k(s.defaultValues)||k(s.values)?G(s.defaultValues||s.values)||{}:{},u=s.shouldUnregister?{}:G(a),g={action:!1,mount:!1,watch:!1},v={mount:new Set,unMount:new Set,array:new Set,watch:new Set},w,B=0;const A={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={values:Se(),array:Se(),state:Se()},U=e.resetOptions&&e.resetOptions.keepDirtyValues,C=Je(s.mode),me=Je(s.reValidateMode),de=s.criteriaMode===M.all,pe=r=>n=>{clearTimeout(B),B=setTimeout(r,n)},m=async r=>{if(A.isValid||r){const n=s.resolver?N((await I()).errors):await $(o,!0);n!==t.isValid&&p.state.next({isValid:n})}},P=r=>A.isValidating&&p.state.next({isValidating:r}),H=(r,n=[],l,y,f=!0,c=!0)=>{if(y&&l){if(g.action=!0,c&&Array.isArray(d(o,r))){const h=l(d(o,r),y.argA,y.argB);f&&V(o,r,h)}if(c&&Array.isArray(d(t.errors,r))){const h=l(d(t.errors,r),y.argA,y.argB);f&&V(t.errors,r,h),tr(t.errors,r)}if(A.touchedFields&&c&&Array.isArray(d(t.touchedFields,r))){const h=l(d(t.touchedFields,r),y.argA,y.argB);f&&V(t.touchedFields,r,h)}A.dirtyFields&&(t.dirtyFields=ke(a,u)),p.state.next({name:r,isDirty:b(r,n),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else V(u,r,n)},j=(r,n)=>{V(t.errors,r,n),p.state.next({errors:t.errors})},ne=(r,n,l,y)=>{const f=d(o,r);if(f){const c=d(u,r,E(l)?d(a,r):l);E(c)||y&&y.defaultChecked||n?V(u,r,n?c:je(f._f)):R(r,c),g.mount&&m()}},te=(r,n,l,y,f)=>{let c=!1,h=!1;const F={name:r};if(!l||y){A.isDirty&&(h=t.isDirty,t.isDirty=F.isDirty=b(),c=h!==F.isDirty);const S=Z(d(a,r),n);h=d(t.dirtyFields,r),S?T(t.dirtyFields,r):V(t.dirtyFields,r,!0),F.dirtyFields=t.dirtyFields,c=c||A.dirtyFields&&h!==!S}if(l){const S=d(t.touchedFields,r);S||(V(t.touchedFields,r,l),F.touchedFields=t.touchedFields,c=c||A.touchedFields&&S!==l)}return c&&f&&p.state.next(F),c?F:{}},be=(r,n,l,y)=>{const f=d(t.errors,r),c=A.isValid&&Q(n)&&t.isValid!==n;if(e.delayError&&l?(w=pe(()=>j(r,l)),w(e.delayError)):(clearTimeout(B),w=null,l?V(t.errors,r,l):T(t.errors,r)),(l?!Z(f,l):f)||!N(y)||c){const h={...y,...c&&Q(n)?{isValid:n}:{},errors:t.errors,name:r};t={...t,...h},p.state.next(h)}P(!1)},I=async r=>s.resolver(u,s.context,Qt(r||v.mount,o,s.criteriaMode,s.shouldUseNativeValidation)),X=async r=>{const{errors:n}=await I(r);if(r)for(const l of r){const y=d(n,l);y?V(t.errors,l,y):T(t.errors,l)}else t.errors=n;return n},$=async(r,n,l={valid:!0})=>{for(const y in r){const f=r[y];if(f){const{_f:c,...h}=f;if(c){const F=v.array.has(c.name),S=await st(f,u,de,s.shouldUseNativeValidation&&!n,F);if(S[c.name]&&(l.valid=!1,n))break;!n&&(d(S,c.name)?F?Kt(t.errors,S,c.name):V(t.errors,c.name,S[c.name]):T(t.errors,c.name))}h&&await $(h,n,l)}}return l.valid},_=()=>{for(const r of v.unMount){const n=d(o,r);n&&(n._f.refs?n._f.refs.every(l=>!Ee(l)):!Ee(n._f.ref))&&_e(r)}v.unMount=new Set},b=(r,n)=>(r&&n&&V(u,r,n),!Z(Be(),a)),D=(r,n,l)=>Gt(r,v,{...g.mount?u:E(n)?a:W(r)?{[r]:n}:n},l,n),L=r=>fe(d(g.mount?u:a,r,e.shouldUnregister?d(a,r,[]):[])),R=(r,n,l={})=>{const y=d(o,r);let f=n;if(y){const c=y._f;c&&(!c.disabled&&V(u,r,vt(n,c)),f=he(c.ref)&&O(n)?"":n,yt(c.ref)?[...c.ref.options].forEach(h=>h.selected=f.includes(h.value)):c.refs?ce(c.ref)?c.refs.length>1?c.refs.forEach(h=>(!h.defaultChecked||!h.disabled)&&(h.checked=Array.isArray(f)?!!f.find(F=>F===h.value):f===h.value)):c.refs[0]&&(c.refs[0].checked=!!f):c.refs.forEach(h=>h.checked=h.value===f):Ne(c.ref)?c.ref.value="":(c.ref.value=f,c.ref.type||p.values.next({name:r,values:{...u}})))}(l.shouldDirty||l.shouldTouch)&&te(r,f,l.shouldTouch,l.shouldDirty,!0),l.shouldValidate&&oe(r)},q=(r,n,l)=>{for(const y in n){const f=n[y],c=`${r}.${y}`,h=d(o,c);(v.array.has(r)||!ve(f)||h&&!h._f)&&!ie(f)?q(c,f,l):R(c,f,l)}},J=(r,n,l={})=>{const y=d(o,r),f=v.array.has(r),c=G(n);V(u,r,c),f?(p.array.next({name:r,values:{...u}}),(A.isDirty||A.dirtyFields)&&l.shouldDirty&&p.state.next({name:r,dirtyFields:ke(a,u),isDirty:b(r,c)})):y&&!y._f&&!O(c)?q(r,c,l):R(r,c,l),Qe(r,v)&&p.state.next({...t}),p.values.next({name:r,values:{...u}}),!g.mount&&i()},ae=async r=>{const n=r.target;let l=n.name,y=!0;const f=d(o,l),c=()=>n.type?je(f._f):Ut(r);if(f){let h,F;const S=c(),re=r.type===Xe.BLUR||r.type===Xe.FOCUS_OUT,At=!Zt(f._f)&&!s.resolver&&!d(t.errors,l)&&!f._f.deps||er(re,d(t.touchedFields,l),t.isSubmitted,me,C),Ae=Qe(l,v,re);V(u,l,S),re?(f._f.onBlur&&f._f.onBlur(r),w&&w(0)):f._f.onChange&&f._f.onChange(r);const Fe=te(l,S,re,!1),Ft=!N(Fe)||Ae;if(!re&&p.values.next({name:l,type:r.type,values:{...u}}),At)return A.isValid&&m(),Ft&&p.state.next({name:l,...Ae?{}:Fe});if(!re&&Ae&&p.state.next({...t}),P(!0),s.resolver){const{errors:Ge}=await I([l]),wt=it(t.errors,o,l),Ke=it(Ge,o,wt.name||l);h=Ke.error,l=Ke.name,F=N(Ge)}else h=(await st(f,u,de,s.shouldUseNativeValidation))[l],y=Number.isNaN(S)||S===d(u,l,S),y&&(h?F=!1:A.isValid&&(F=await $(o,!0)));y&&(f._f.deps&&oe(f._f.deps),be(l,F,h,Fe))}},oe=async(r,n={})=>{let l,y;const f=De(r);if(P(!0),s.resolver){const c=await X(E(r)?r:f);l=N(c),y=r?!f.some(h=>d(c,h)):l}else r?(y=(await Promise.all(f.map(async c=>{const h=d(o,c);return await $(h&&h._f?{[c]:h}:h)}))).every(Boolean),!(!y&&!t.isValid)&&m()):y=l=await $(o);return p.state.next({...!W(r)||A.isValid&&l!==t.isValid?{}:{name:r},...s.resolver||!r?{isValid:l}:{},errors:t.errors,isValidating:!1}),n.shouldFocus&&!y&&Oe(o,c=>c&&d(t.errors,c),r?f:v.mount),y},Be=r=>{const n={...a,...g.mount?u:{}};return E(r)?n:W(r)?d(n,r):r.map(l=>d(n,l))},Ue=(r,n)=>({invalid:!!d((n||t).errors,r),isDirty:!!d((n||t).dirtyFields,r),isTouched:!!d((n||t).touchedFields,r),error:d((n||t).errors,r)}),bt=r=>{r&&De(r).forEach(n=>T(t.errors,n)),p.state.next({errors:r?t.errors:{}})},Ie=(r,n,l)=>{const y=(d(o,r,{_f:{}})._f||{}).ref;V(t.errors,r,{...n,ref:y}),p.state.next({name:r,errors:t.errors,isValid:!1}),l&&l.shouldFocus&&y&&y.focus&&y.focus()},_t=(r,n)=>Y(r)?p.values.subscribe({next:l=>r(D(void 0,n),l)}):D(r,n,!0),_e=(r,n={})=>{for(const l of r?De(r):v.mount)v.mount.delete(l),v.array.delete(l),n.keepValue||(T(o,l),T(u,l)),!n.keepError&&T(t.errors,l),!n.keepDirty&&T(t.dirtyFields,l),!n.keepTouched&&T(t.touchedFields,l),!s.shouldUnregister&&!n.keepDefaultValue&&T(a,l);p.values.next({values:{...u}}),p.state.next({...t,...n.keepDirty?{isDirty:b()}:{}}),!n.keepIsValid&&m()},qe=({disabled:r,name:n,field:l,fields:y})=>{if(Q(r)){const f=r?void 0:d(u,n,je(l?l._f:d(y,n)._f));V(u,n,f),te(n,f,!1,!1,!0)}},Ve=(r,n={})=>{let l=d(o,r);const y=Q(n.disabled);return V(o,r,{...l||{},_f:{...l&&l._f?l._f:{ref:{name:r}},name:r,mount:!0,...n}}),v.mount.add(r),l?qe({field:l,disabled:n.disabled,name:r}):ne(r,!0,n.value),{...y?{disabled:n.disabled}:{},...s.progressive?{required:!!n.required,min:le(n.min),max:le(n.max),minLength:le(n.minLength),maxLength:le(n.maxLength),pattern:le(n.pattern)}:{},name:r,onChange:ae,onBlur:ae,ref:f=>{if(f){Ve(r,n),l=d(o,r);const c=E(f.value)&&f.querySelectorAll&&f.querySelectorAll("input,select,textarea")[0]||f,h=Jt(c),F=l._f.refs||[];if(h?F.find(S=>S===c):c===l._f.ref)return;V(o,r,{_f:{...l._f,...h?{refs:[...F.filter(Ee),c,...Array.isArray(d(a,r))?[{}]:[]],ref:{type:c.type,name:r}}:{ref:c}}}),ne(r,!1,void 0,c)}else l=d(o,r,{}),l._f&&(l._f.mount=!1),(s.shouldUnregister||n.shouldUnregister)&&!(qt(v.array,r)&&g.action)&&v.unMount.add(r)}}},We=()=>s.shouldFocusError&&Oe(o,r=>r&&d(t.errors,r),v.mount),He=(r,n)=>async l=>{l&&(l.preventDefault&&l.preventDefault(),l.persist&&l.persist());let y=G(u);if(p.state.next({isSubmitting:!0}),s.resolver){const{errors:f,values:c}=await I();t.errors=f,y=c}else await $(o);T(t.errors,"root"),N(t.errors)?(p.state.next({errors:{}}),await r(y,l)):(n&&await n({...t.errors},l),We(),setTimeout(We)),p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:N(t.errors),submitCount:t.submitCount+1,errors:t.errors})},Vt=(r,n={})=>{d(o,r)&&(E(n.defaultValue)?J(r,d(a,r)):(J(r,n.defaultValue),V(a,r,n.defaultValue)),n.keepTouched||T(t.touchedFields,r),n.keepDirty||(T(t.dirtyFields,r),t.isDirty=n.defaultValue?b(r,d(a,r)):b()),n.keepError||(T(t.errors,r),A.isValid&&m()),p.state.next({...t}))},$e=(r,n={})=>{const l=r?G(r):a,y=G(l),f=r&&!N(r)?y:a;if(n.keepDefaultValues||(a=l),!n.keepValues){if(n.keepDirtyValues||U)for(const c of v.mount)d(t.dirtyFields,c)?V(f,c,d(u,c)):J(c,d(f,c));else{if(Le&&E(r))for(const c of v.mount){const h=d(o,c);if(h&&h._f){const F=Array.isArray(h._f.refs)?h._f.refs[0]:h._f.ref;if(he(F)){const S=F.closest("form");if(S){S.reset();break}}}}o={}}u=e.shouldUnregister?n.keepDefaultValues?G(a):{}:G(f),p.array.next({values:{...f}}),p.values.next({values:{...f}})}v={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!g.mount&&i(),g.mount=!A.isValid||!!n.keepIsValid,g.watch=!!e.shouldUnregister,p.state.next({submitCount:n.keepSubmitCount?t.submitCount:0,isDirty:n.keepDirty?t.isDirty:!!(n.keepDefaultValues&&!Z(r,a)),isSubmitted:n.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:n.keepDirtyValues?t.dirtyFields:n.keepDefaultValues&&r?ke(a,r):{},touchedFields:n.keepTouched?t.touchedFields:{},errors:n.keepErrors?t.errors:{},isSubmitSuccessful:n.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1})},ze=(r,n)=>$e(Y(r)?r(u):r,n);return{control:{register:Ve,unregister:_e,getFieldState:Ue,handleSubmit:He,setError:Ie,_executeSchema:I,_getWatch:D,_getDirty:b,_updateValid:m,_removeUnmounted:_,_updateFieldArray:H,_updateDisabledField:qe,_getFieldArray:L,_reset:$e,_resetDefaultValues:()=>Y(s.defaultValues)&&s.defaultValues().then(r=>{ze(r,s.resetOptions),p.state.next({isLoading:!1})}),_updateFormState:r=>{t={...t,...r}},_subjects:p,_proxyFormState:A,get _fields(){return o},get _formValues(){return u},get _state(){return g},set _state(r){g=r},get _defaultValues(){return a},get _names(){return v},set _names(r){v=r},get _formState(){return t},set _formState(r){t=r},get _options(){return s},set _options(r){s={...s,...r}}},trigger:oe,register:Ve,handleSubmit:He,watch:_t,setValue:J,getValues:Be,reset:ze,resetField:Vt,clearErrors:bt,unregister:_e,setError:Ie,setFocus:(r,n={})=>{const l=d(o,r),y=l&&l._f;if(y){const f=y.refs?y.refs[0]:y.ref;f.focus&&(f.focus(),n.shouldSelect&&f.select())}},getFieldState:Ue}}function ir(e={}){const i=K.useRef(),s=K.useRef(),[t,o]=K.useState({isDirty:!1,isValidating:!1,isLoading:Y(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Y(e.defaultValues)?void 0:e.defaultValues});i.current||(i.current={...sr(e,()=>o(u=>({...u}))),formState:t});const a=i.current.control;return a._options=e,zt({subject:a._subjects.state,next:u=>{$t(u,a._proxyFormState,a._updateFormState)&&o({...a._formState})}}),K.useEffect(()=>{e.values&&!Z(e.values,s.current)?(a._reset(e.values,a._options.resetOptions),s.current=e.values):a._resetDefaultValues()},[e.values,a]),K.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),i.current.formState=Ht(t,a),i.current}var nt=function(e,i,s){if(e&&"reportValidity"in e){var t=d(s,i);e.setCustomValidity(t&&t.message||""),e.reportValidity()}},xt=function(e,i){var s=function(o){var a=i.fields[o];a&&a.ref&&"reportValidity"in a.ref?nt(a.ref,o,e):a.refs&&a.refs.forEach(function(u){return nt(u,o,e)})};for(var t in i.fields)s(t)},nr=function(e,i){i.shouldUseNativeValidation&&xt(e,i);var s={};for(var t in e){var o=d(i.fields,t),a=Object.assign(e[t]||{},{ref:o&&o.ref});if(or(i.names||Object.keys(e),t)){var u=Object.assign({},ar(d(s,t)));V(u,"root",a),V(s,t,u)}else V(s,t,a)}return s},ar=function(e){return Array.isArray(e)?e.filter(Boolean):[]},or=function(e,i){return e.some(function(s){return s.startsWith(i+".")})},lr=function(e,i){for(var s={};e.length;){var t=e[0],o=t.code,a=t.message,u=t.path.join(".");if(!s[u])if("unionErrors"in t){var g=t.unionErrors[0].errors[0];s[u]={message:g.message,type:g.code}}else s[u]={message:a,type:o};if("unionErrors"in t&&t.unionErrors.forEach(function(B){return B.errors.forEach(function(A){return e.push(A)})}),i){var v=s[u].types,w=v&&v[t.code];s[u]=ct(u,i,s,o,w?[].concat(w,t.message):t.message)}e.shift()}return s},ur=function(e,i,s){return s===void 0&&(s={}),function(t,o,a){try{return Promise.resolve(function(u,g){try{var v=Promise.resolve(e[s.mode==="sync"?"parse":"parseAsync"](t,i)).then(function(w){return a.shouldUseNativeValidation&&xt({},a),{errors:{},values:s.raw?t:w}})}catch(w){return g(w)}return v&&v.then?v.then(void 0,g):v}(0,function(u){if(function(g){return g.errors!=null}(u))return{values:{},errors:nr(lr(u.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw u}))}catch(u){return Promise.reject(u)}}},Me={},cr=Mt;Object.defineProperty(Me,"__esModule",{value:!0});var mt=Me.default=void 0,fr=cr(Pt()),dr=x,yr=(0,fr.default)((0,dr.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");mt=Me.default=yr;const hr=we.object({name:we.string().min(3),description:we.string()}),pt=({project:e,action:i})=>{var A,p;const t=Ce().state!=="idle",{setFocus:o,register:a,handleSubmit:u,formState:{errors:g,dirtyFields:v}}=ir({resolver:ur(hr),defaultValues:{name:e.name||"",description:e.description||""}}),{palette:w}=jt(),B=at();return ue.useEffect(()=>o("name"),[o]),x.jsx(x.Fragment,{children:x.jsxs(Tt,{onSubmit:u(({name:U,description:C})=>B({...e,name:U,description:C,action:i},{method:"put",replace:!0,encType:"application/json"})),style:{opacity:t?.5:1},children:[x.jsx(Ye,{...a("name"),error:!!g.name,helperText:(A=g.name)==null?void 0:A.message,placeholder:"Name",InputProps:{style:{color:w.primary.main,fontSize:"20px",fontWeight:"500"}},disabled:t,variant:"standard"}),x.jsx(Ye,{...a("description"),error:!!g.description,helperText:(p=g.description)==null?void 0:p.message,placeholder:"Description",disabled:t,fullWidth:!0,variant:"standard"}),x.jsx(ee,{sx:{display:"flex",justifyContent:"right"},children:x.jsx(Ot,{variant:"outlined",disabled:t||Object.keys(v).length===0||Object.keys(g).length>0,style:{marginTop:"10px"},color:"primary",type:"submit",children:"Save"})})]})})},gr=({project:e})=>x.jsxs(x.Fragment,{children:[x.jsx(Ct,{component:Lt,to:`projects/${e.id}`,children:x.jsx(Te,{variant:"h6",children:e.name})}),x.jsx(Te,{style:{whiteSpace:"pre-line"},variant:"body1",children:e.description})]}),vr=({project:e})=>{const[i,s]=ue.useState(!1),o=Ce().state!=="idle",a=at();return ue.useEffect(()=>s(!1),[e]),x.jsxs(Dt,{sx:{m:1,p:2,position:"relative","&:hover .action-buttons":{opacity:1}},children:[x.jsx(ee,{style:{position:"absolute",top:"5px",right:"5px"},children:x.jsxs(ee,{sx:{opacity:0,transition:u=>u.transitions.create("opacity",{duration:u.transitions.duration.enteringScreen})},className:"action-buttons",display:"flex",columnGap:1,children:[x.jsx(St,{disabled:o||i,onClick:()=>{confirm("Are you sure you want to delete this project?")===!0&&a({projectId:e.id,action:"delete-project"},{method:"post",replace:!0,encType:"application/json"})},children:x.jsx(mt,{})}),x.jsx(ot,{disabled:o,color:"primary",value:"edit-mode",selected:i,size:"small",sx:{border:"none",borderRadius:"50%"},onChange:()=>s(u=>!u),children:x.jsx(Bt,{})})]})}),i?x.jsx(pt,{project:e,action:"edit-project"}):x.jsx(gr,{project:e})]})},xr=()=>{const[e,i]=ue.useState(!1),[s,t]=ue.useState(!1),o=Ce(),a=o.state!=="idle";return!s&&o.state==="submitting"&&t(!0),s&&o.state==="idle"&&(t(!1),i(!1)),x.jsxs(ee,{py:2,children:[x.jsx(ee,{display:"flex",justifyContent:"center",children:x.jsx(Et,{title:"Create new project",children:x.jsx(ot,{size:"small",selected:e,disabled:a,color:"primary",value:"check",sx:{border:"none",borderRadius:"50%"},onChange:()=>i(u=>!u),children:x.jsx(kt,{})})})}),e&&x.jsx(ee,{p:3,display:"flex",flexDirection:"column",rowGap:1,children:x.jsx(pt,{project:{name:"",description:""},action:"create-new-project"})})]})},Fr=()=>{const e=Rt();return x.jsxs(x.Fragment,{children:[x.jsx(Te,{align:"center",variant:"h5",children:e.length>0?"Project List":"You don't have any projects yet"}),x.jsxs(ee,{m:"auto",mt:2,maxWidth:600,children:[x.jsx(xr,{}),x.jsx(Nt,{container:!0,direction:"column",justifyContent:"center",alignItems:"stretch",children:e.map(i=>x.jsx(K.Fragment,{children:x.jsx(vr,{project:i})},i.id))})]})]})};export{Fr as Component}; diff --git a/src/evidently/ui/assets/static/js/index-yz3NKQt-.js b/src/evidently/ui/assets/static/js/index-yz3NKQt-.js deleted file mode 100644 index 70f01ad879..0000000000 --- a/src/evidently/ui/assets/static/js/index-yz3NKQt-.js +++ /dev/null @@ -1 +0,0 @@ -import{a9 as p,h as o,Y as h,j as e,G as c}from"./vendor-D9wnXojU.js";import{r as n,J as i}from"./index-DxyKdhm1.js";import{a as m,C as g,D as _}from"./DashboardContent-BF_kxHXz.js";import"./DashboardViewParams-VueHZ5oJ.js";import"./createSvgIcon-BFOkCGLU.js";import"./Edit-BcFhWXpJ.js";const I={crumb:(s,{pathname:t,params:a})=>({to:t,linkText:String(a.snapshotId)}),hide:{snapshotList:!0}},G=({api:s})=>{const{projectId:t,snapshotId:a}=p();o(t),o(a);const d=h();return e.jsx(e.Fragment,{children:e.jsx(m.Provider,{value:g({getAdditionGraphData:r=>s.GET("/api/projects/{project_id}/{snapshot_id}/graphs_data/{graph_id}",{params:{path:{project_id:t,snapshot_id:a,graph_id:encodeURIComponent(r)}},parseAs:"text"}).then(n()).then(i),getAdditionWidgetData:r=>s.GET("/api/projects/{project_id}/{snapshot_id}/graphs_data/{graph_id}",{params:{path:{project_id:t,snapshot_id:a,graph_id:encodeURIComponent(r)}},parseAs:"text"}).then(n()).then(i)}),children:e.jsx(c,{container:!0,spacing:3,direction:"row",alignItems:"stretch",children:e.jsx(_,{widgets:d.widgets})})})})};export{G as SnapshotTemplate,I as handle}; diff --git a/src/evidently/ui/assets/static/js/vendor-D9wnXojU.js b/src/evidently/ui/assets/static/js/vendor-D9wnXojU.js deleted file mode 100644 index c94b341508..0000000000 --- a/src/evidently/ui/assets/static/js/vendor-D9wnXojU.js +++ /dev/null @@ -1,319 +0,0 @@ -function Kk(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Ws=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Eo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function iH(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Jb={exports:{}},yd={},ex={exports:{}},it={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var tc=Symbol.for("react.element"),Gk=Symbol.for("react.portal"),Zk=Symbol.for("react.fragment"),qk=Symbol.for("react.strict_mode"),Qk=Symbol.for("react.profiler"),Xk=Symbol.for("react.provider"),Jk=Symbol.for("react.context"),eT=Symbol.for("react.forward_ref"),tT=Symbol.for("react.suspense"),nT=Symbol.for("react.memo"),rT=Symbol.for("react.lazy"),rv=Symbol.iterator;function oT(e){return e===null||typeof e!="object"?null:(e=rv&&e[rv]||e["@@iterator"],typeof e=="function"?e:null)}var tx={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},nx=Object.assign,rx={};function ci(e,t,n){this.props=e,this.context=t,this.refs=rx,this.updater=n||tx}ci.prototype.isReactComponent={};ci.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ci.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ox(){}ox.prototype=ci.prototype;function om(e,t,n){this.props=e,this.context=t,this.refs=rx,this.updater=n||tx}var sm=om.prototype=new ox;sm.constructor=om;nx(sm,ci.prototype);sm.isPureReactComponent=!0;var ov=Array.isArray,sx=Object.prototype.hasOwnProperty,am={current:null},ax={key:!0,ref:!0,__self:!0,__source:!0};function ix(e,t,n){var r,o={},s=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(s=""+t.key),t)sx.call(t,r)&&!ax.hasOwnProperty(r)&&(o[r]=t[r]);var i=arguments.length-2;if(i===1)o.children=n;else if(1>>1,ie=I[J];if(0>>1;Jo(Q,F))Ko(H,Q)?(I[J]=H,I[K]=F,J=K):(I[J]=Q,I[U]=F,J=U);else if(Ko(H,F))I[J]=H,I[K]=F,J=K;else break e}}return L}function o(I,L){var F=I.sortIndex-L.sortIndex;return F!==0?F:I.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var a=Date,i=a.now();e.unstable_now=function(){return a.now()-i}}var l=[],c=[],u=1,d=null,f=3,b=!1,w=!1,p=!1,S=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(I){for(var L=n(c);L!==null;){if(L.callback===null)r(c);else if(L.startTime<=I)r(c),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(c)}}function x(I){if(p=!1,C(I),!w)if(n(l)!==null)w=!0,O(T);else{var L=n(c);L!==null&&j(x,L.startTime-I)}}function T(I,L){w=!1,p&&(p=!1,h(M),M=-1),b=!0;var F=f;try{for(C(L),d=n(l);d!==null&&(!(d.expirationTime>L)||I&&!E());){var J=d.callback;if(typeof J=="function"){d.callback=null,f=d.priorityLevel;var ie=J(d.expirationTime<=L);L=e.unstable_now(),typeof ie=="function"?d.callback=ie:d===n(l)&&r(l),C(L)}else r(l);d=n(l)}if(d!==null)var ue=!0;else{var U=n(c);U!==null&&j(x,U.startTime-L),ue=!1}return ue}finally{d=null,f=F,b=!1}}var v=!1,k=null,M=-1,$=5,R=-1;function E(){return!(e.unstable_now()-R<$)}function A(){if(k!==null){var I=e.unstable_now();R=I;var L=!0;try{L=k(!0,I)}finally{L?N():(v=!1,k=null)}}else v=!1}var N;if(typeof g=="function")N=function(){g(A)};else if(typeof MessageChannel<"u"){var _=new MessageChannel,D=_.port2;_.port1.onmessage=A,N=function(){D.postMessage(null)}}else N=function(){S(A,0)};function O(I){k=I,v||(v=!0,N())}function j(I,L){M=S(function(){I(e.unstable_now())},L)}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(I){I.callback=null},e.unstable_continueExecution=function(){w||b||(w=!0,O(T))},e.unstable_forceFrameRate=function(I){0>I||125J?(I.sortIndex=F,t(c,I),n(l)===null&&I===n(c)&&(p?(h(M),M=-1):p=!0,j(x,F-J))):(I.sortIndex=ie,t(l,I),w||b||(w=!0,O(T))),I},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(I){var L=f;return function(){var F=f;f=L;try{return I.apply(this,arguments)}finally{f=F}}}})(dx);ux.exports=dx;var mT=ux.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var fx=y,qn=mT;function Te(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ip=Object.prototype.hasOwnProperty,gT=/^[: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]*$/,iv={},lv={};function vT(e){return Ip.call(lv,e)?!0:Ip.call(iv,e)?!1:gT.test(e)?lv[e]=!0:(iv[e]=!0,!1)}function yT(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function bT(e,t,n,r){if(t===null||typeof t>"u"||yT(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Mn(e,t,n,r,o,s,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=a}var fn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){fn[e]=new Mn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];fn[t]=new Mn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){fn[e]=new Mn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){fn[e]=new Mn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){fn[e]=new Mn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){fn[e]=new Mn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){fn[e]=new Mn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){fn[e]=new Mn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){fn[e]=new Mn(e,5,!1,e.toLowerCase(),null,!1,!1)});var lm=/[\-:]([a-z])/g;function cm(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(lm,cm);fn[t]=new Mn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(lm,cm);fn[t]=new Mn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(lm,cm);fn[t]=new Mn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){fn[e]=new Mn(e,1,!1,e.toLowerCase(),null,!1,!1)});fn.xlinkHref=new Mn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){fn[e]=new Mn(e,1,!1,e.toLowerCase(),null,!0,!0)});function um(e,t,n,r){var o=fn.hasOwnProperty(t)?fn[t]:null;(o!==null?o.type!==0:r||!(2i||o[a]!==s[i]){var l=` -`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=i);break}}}finally{zf=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ji(e):""}function xT(e){switch(e.tag){case 5:return ji(e.type);case 16:return ji("Lazy");case 13:return ji("Suspense");case 19:return ji("SuspenseList");case 0:case 2:case 15:return e=Vf(e.type,!1),e;case 11:return e=Vf(e.type.render,!1),e;case 1:return e=Vf(e.type,!0),e;default:return""}}function Np(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case fa:return"Fragment";case da:return"Portal";case Op:return"Profiler";case dm:return"StrictMode";case Lp:return"Suspense";case Ap:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case mx:return(e.displayName||"Context")+".Consumer";case hx:return(e._context.displayName||"Context")+".Provider";case fm:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case pm:return t=e.displayName||null,t!==null?t:Np(e.type)||"Memo";case Fo:t=e._payload,e=e._init;try{return Np(e(t))}catch{}}return null}function CT(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Np(t);case 8:return t===dm?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ns(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wT(e){var t=vx(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,s.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function kc(e){e._valueTracker||(e._valueTracker=wT(e))}function yx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=vx(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Su(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function jp(e,t){var n=t.checked;return Bt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function uv(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ns(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function bx(e,t){t=t.checked,t!=null&&um(e,"checked",t,!1)}function Fp(e,t){bx(e,t);var n=ns(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Bp(e,t.type,n):t.hasOwnProperty("defaultValue")&&Bp(e,t.type,ns(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function dv(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Bp(e,t,n){(t!=="number"||Su(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Fi=Array.isArray;function Ra(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Tc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function hl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Gi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ST=["Webkit","ms","Moz","O"];Object.keys(Gi).forEach(function(e){ST.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Gi[t]=Gi[e]})});function Sx(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Gi.hasOwnProperty(e)&&Gi[e]?(""+t).trim():t+"px"}function kx(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Sx(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var kT=Bt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Up(e,t){if(t){if(kT[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Te(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Te(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Te(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Te(62))}}function Wp(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Hp=null;function hm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yp=null,$a=null,Da=null;function hv(e){if(e=oc(e)){if(typeof Yp!="function")throw Error(Te(280));var t=e.stateNode;t&&(t=Sd(t),Yp(e.stateNode,e.type,t))}}function Tx(e){$a?Da?Da.push(e):Da=[e]:$a=e}function Px(){if($a){var e=$a,t=Da;if(Da=$a=null,hv(e),t)for(e=0;e>>=0,e===0?32:31-(LT(e)/AT|0)|0}var Pc=64,Mc=4194304;function Bi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Mu(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,a=n&268435455;if(a!==0){var i=a&~o;i!==0?r=Bi(i):(s&=a,s!==0&&(r=Bi(s)))}else a=n&~o,a!==0?r=Bi(a):s!==0&&(r=Bi(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function nc(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$r(t),e[t]=n}function BT(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=qi),Sv=" ",kv=!1;function Yx(e,t){switch(e){case"keyup":return hP.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Kx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var pa=!1;function gP(e,t){switch(e){case"compositionend":return Kx(t);case"keypress":return t.which!==32?null:(kv=!0,Sv);case"textInput":return e=t.data,e===Sv&&kv?null:e;default:return null}}function vP(e,t){if(pa)return e==="compositionend"||!wm&&Yx(e,t)?(e=Wx(),nu=bm=Ho=null,pa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Rv(n)}}function Qx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xx(){for(var e=window,t=Su();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Su(e.document)}return t}function Sm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function PP(e){var t=Xx(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Qx(n.ownerDocument.documentElement,n)){if(r!==null&&Sm(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=$v(n,s);var a=$v(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ha=null,Xp=null,Xi=null,Jp=!1;function Dv(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Jp||ha==null||ha!==Su(r)||(r=ha,"selectionStart"in r&&Sm(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}),Xi&&xl(Xi,r)||(Xi=r,r=Du(Xp,"onSelect"),0va||(e.current=sh[va],sh[va]=null,va--)}function Mt(e,t){va++,sh[va]=e.current,e.current=t}var rs={},bn=cs(rs),En=cs(!1),_s=rs;function Wa(e,t){var n=e.type.contextTypes;if(!n)return rs;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function _n(e){return e=e.childContextTypes,e!=null}function _u(){$t(En),$t(bn)}function Nv(e,t,n){if(bn.current!==rs)throw Error(Te(168));Mt(bn,t),Mt(En,n)}function i1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(Te(108,CT(e)||"Unknown",o));return Bt({},n,r)}function Iu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rs,_s=bn.current,Mt(bn,e),Mt(En,En.current),!0}function jv(e,t,n){var r=e.stateNode;if(!r)throw Error(Te(169));n?(e=i1(e,t,_s),r.__reactInternalMemoizedMergedChildContext=e,$t(En),$t(bn),Mt(bn,e)):$t(En),Mt(En,n)}var uo=null,kd=!1,np=!1;function l1(e){uo===null?uo=[e]:uo.push(e)}function jP(e){kd=!0,l1(e)}function us(){if(!np&&uo!==null){np=!0;var e=0,t=bt;try{var n=uo;for(bt=1;e>=a,o-=a,po=1<<32-$r(t)+o|n<M?($=k,k=null):$=k.sibling;var R=f(h,k,C[M],x);if(R===null){k===null&&(k=$);break}e&&k&&R.alternate===null&&t(h,k),g=s(R,g,M),v===null?T=R:v.sibling=R,v=R,k=$}if(M===C.length)return n(h,k),It&&ys(h,M),T;if(k===null){for(;MM?($=k,k=null):$=k.sibling;var E=f(h,k,R.value,x);if(E===null){k===null&&(k=$);break}e&&k&&E.alternate===null&&t(h,k),g=s(E,g,M),v===null?T=E:v.sibling=E,v=E,k=$}if(R.done)return n(h,k),It&&ys(h,M),T;if(k===null){for(;!R.done;M++,R=C.next())R=d(h,R.value,x),R!==null&&(g=s(R,g,M),v===null?T=R:v.sibling=R,v=R);return It&&ys(h,M),T}for(k=r(h,k);!R.done;M++,R=C.next())R=b(k,h,M,R.value,x),R!==null&&(e&&R.alternate!==null&&k.delete(R.key===null?M:R.key),g=s(R,g,M),v===null?T=R:v.sibling=R,v=R);return e&&k.forEach(function(A){return t(h,A)}),It&&ys(h,M),T}function S(h,g,C,x){if(typeof C=="object"&&C!==null&&C.type===fa&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case Sc:e:{for(var T=C.key,v=g;v!==null;){if(v.key===T){if(T=C.type,T===fa){if(v.tag===7){n(h,v.sibling),g=o(v,C.props.children),g.return=h,h=g;break e}}else if(v.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Fo&&Hv(T)===v.type){n(h,v.sibling),g=o(v,C.props),g.ref=Si(h,v,C),g.return=h,h=g;break e}n(h,v);break}else t(h,v);v=v.sibling}C.type===fa?(g=Rs(C.props.children,h.mode,x,C.key),g.return=h,h=g):(x=uu(C.type,C.key,C.props,null,h.mode,x),x.ref=Si(h,g,C),x.return=h,h=x)}return a(h);case da:e:{for(v=C.key;g!==null;){if(g.key===v)if(g.tag===4&&g.stateNode.containerInfo===C.containerInfo&&g.stateNode.implementation===C.implementation){n(h,g.sibling),g=o(g,C.children||[]),g.return=h,h=g;break e}else{n(h,g);break}else t(h,g);g=g.sibling}g=up(C,h.mode,x),g.return=h,h=g}return a(h);case Fo:return v=C._init,S(h,g,v(C._payload),x)}if(Fi(C))return w(h,g,C,x);if(yi(C))return p(h,g,C,x);Oc(h,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,g!==null&&g.tag===6?(n(h,g.sibling),g=o(g,C),g.return=h,h=g):(n(h,g),g=cp(C,h.mode,x),g.return=h,h=g),a(h)):n(h,g)}return S}var Ya=g1(!0),v1=g1(!1),sc={},Xr=cs(sc),kl=cs(sc),Tl=cs(sc);function ks(e){if(e===sc)throw Error(Te(174));return e}function _m(e,t){switch(Mt(Tl,t),Mt(kl,e),Mt(Xr,sc),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Vp(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Vp(t,e)}$t(Xr),Mt(Xr,t)}function Ka(){$t(Xr),$t(kl),$t(Tl)}function y1(e){ks(Tl.current);var t=ks(Xr.current),n=Vp(t,e.type);t!==n&&(Mt(kl,e),Mt(Xr,n))}function Im(e){kl.current===e&&($t(Xr),$t(kl))}var Nt=cs(0);function Fu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var rp=[];function Om(){for(var e=0;en?n:4,e(!0);var r=op.transition;op.transition={};try{e(!1),t()}finally{bt=n,op.transition=r}}function O1(){return mr().memoizedState}function VP(e,t,n){var r=Jo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},L1(e))A1(t,n);else if(n=f1(e,t,n,r),n!==null){var o=kn();Dr(n,e,r,o),N1(n,t,r)}}function UP(e,t,n){var r=Jo(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(L1(e))A1(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var a=t.lastRenderedState,i=s(a,n);if(o.hasEagerState=!0,o.eagerState=i,Ir(i,a)){var l=t.interleaved;l===null?(o.next=o,Dm(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=f1(e,t,o,r),n!==null&&(o=kn(),Dr(n,e,r,o),N1(n,t,r))}}function L1(e){var t=e.alternate;return e===jt||t!==null&&t===jt}function A1(e,t){Ji=Bu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function N1(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,gm(e,n)}}var zu={readContext:hr,useCallback:pn,useContext:pn,useEffect:pn,useImperativeHandle:pn,useInsertionEffect:pn,useLayoutEffect:pn,useMemo:pn,useReducer:pn,useRef:pn,useState:pn,useDebugValue:pn,useDeferredValue:pn,useTransition:pn,useMutableSource:pn,useSyncExternalStore:pn,useId:pn,unstable_isNewReconciler:!1},WP={readContext:hr,useCallback:function(e,t){return Wr().memoizedState=[e,t===void 0?null:t],e},useContext:hr,useEffect:Kv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,au(4194308,4,$1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return au(4194308,4,e,t)},useInsertionEffect:function(e,t){return au(4,2,e,t)},useMemo:function(e,t){var n=Wr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Wr();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=VP.bind(null,jt,e),[r.memoizedState,e]},useRef:function(e){var t=Wr();return e={current:e},t.memoizedState=e},useState:Yv,useDebugValue:Fm,useDeferredValue:function(e){return Wr().memoizedState=e},useTransition:function(){var e=Yv(!1),t=e[0];return e=zP.bind(null,e[1]),Wr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=jt,o=Wr();if(It){if(n===void 0)throw Error(Te(407));n=n()}else{if(n=t(),an===null)throw Error(Te(349));Os&30||C1(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,Kv(S1.bind(null,r,s,e),[e]),r.flags|=2048,Rl(9,w1.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Wr(),t=an.identifierPrefix;if(It){var n=ho,r=po;n=(r&~(1<<32-$r(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Pl++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Gr]=t,e[Sl]=r,Y1(e,t,!1,!1),t.stateNode=e;e:{switch(a=Wp(n,r),n){case"dialog":Rt("cancel",e),Rt("close",e),o=r;break;case"iframe":case"object":case"embed":Rt("load",e),o=r;break;case"video":case"audio":for(o=0;oZa&&(t.flags|=128,r=!0,ki(s,!1),t.lanes=4194304)}else{if(!r)if(e=Fu(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ki(s,!0),s.tail===null&&s.tailMode==="hidden"&&!a.alternate&&!It)return hn(t),null}else 2*Gt()-s.renderingStartTime>Za&&n!==1073741824&&(t.flags|=128,r=!0,ki(s,!1),t.lanes=4194304);s.isBackwards?(a.sibling=t.child,t.child=a):(n=s.last,n!==null?n.sibling=a:t.child=a,s.last=a)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Gt(),t.sibling=null,n=Nt.current,Mt(Nt,r?n&1|2:n&1),t):(hn(t),null);case 22:case 23:return Hm(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Un&1073741824&&(hn(t),t.subtreeFlags&6&&(t.flags|=8192)):hn(t),null;case 24:return null;case 25:return null}throw Error(Te(156,t.tag))}function XP(e,t){switch(Tm(t),t.tag){case 1:return _n(t.type)&&_u(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ka(),$t(En),$t(bn),Om(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Im(t),null;case 13:if($t(Nt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Te(340));Ha()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $t(Nt),null;case 4:return Ka(),null;case 10:return $m(t.type._context),null;case 22:case 23:return Hm(),null;case 24:return null;default:return null}}var Ac=!1,vn=!1,JP=typeof WeakSet=="function"?WeakSet:Set,Ve=null;function Ca(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Wt(e,t,r)}else n.current=null}function vh(e,t,n){try{n()}catch(r){Wt(e,t,r)}}var ny=!1;function eM(e,t){if(eh=Ru,e=Xx(),Sm(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var a=0,i=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var b;d!==n||o!==0&&d.nodeType!==3||(i=a+o),d!==s||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(b=d.firstChild)!==null;)f=d,d=b;for(;;){if(d===e)break t;if(f===n&&++c===o&&(i=a),f===s&&++u===r&&(l=a),(b=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=b}n=i===-1||l===-1?null:{start:i,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(th={focusedElem:e,selectionRange:n},Ru=!1,Ve=t;Ve!==null;)if(t=Ve,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ve=e;else for(;Ve!==null;){t=Ve;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var p=w.memoizedProps,S=w.memoizedState,h=t.stateNode,g=h.getSnapshotBeforeUpdate(t.elementType===t.type?p:Sr(t.type,p),S);h.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Te(163))}}catch(x){Wt(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,Ve=e;break}Ve=t.return}return w=ny,ny=!1,w}function el(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&vh(t,n,s)}o=o.next}while(o!==r)}}function Md(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function yh(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Z1(e){var t=e.alternate;t!==null&&(e.alternate=null,Z1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Gr],delete t[Sl],delete t[oh],delete t[AP],delete t[NP])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function q1(e){return e.tag===5||e.tag===3||e.tag===4}function ry(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||q1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function bh(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Eu));else if(r!==4&&(e=e.child,e!==null))for(bh(e,t,n),e=e.sibling;e!==null;)bh(e,t,n),e=e.sibling}function xh(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(xh(e,t,n),e=e.sibling;e!==null;)xh(e,t,n),e=e.sibling}var cn=null,kr=!1;function Oo(e,t,n){for(n=n.child;n!==null;)Q1(e,t,n),n=n.sibling}function Q1(e,t,n){if(Qr&&typeof Qr.onCommitFiberUnmount=="function")try{Qr.onCommitFiberUnmount(bd,n)}catch{}switch(n.tag){case 5:vn||Ca(n,t);case 6:var r=cn,o=kr;cn=null,Oo(e,t,n),cn=r,kr=o,cn!==null&&(kr?(e=cn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):cn.removeChild(n.stateNode));break;case 18:cn!==null&&(kr?(e=cn,n=n.stateNode,e.nodeType===8?tp(e.parentNode,n):e.nodeType===1&&tp(e,n),yl(e)):tp(cn,n.stateNode));break;case 4:r=cn,o=kr,cn=n.stateNode.containerInfo,kr=!0,Oo(e,t,n),cn=r,kr=o;break;case 0:case 11:case 14:case 15:if(!vn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,a=s.destroy;s=s.tag,a!==void 0&&(s&2||s&4)&&vh(n,t,a),o=o.next}while(o!==r)}Oo(e,t,n);break;case 1:if(!vn&&(Ca(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(i){Wt(n,t,i)}Oo(e,t,n);break;case 21:Oo(e,t,n);break;case 22:n.mode&1?(vn=(r=vn)||n.memoizedState!==null,Oo(e,t,n),vn=r):Oo(e,t,n);break;default:Oo(e,t,n)}}function oy(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new JP),t.forEach(function(r){var o=cM.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function wr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~s}if(r=o,r=Gt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*nM(r/1960))-r,10e?16:e,Yo===null)var r=!1;else{if(e=Yo,Yo=null,Wu=0,ft&6)throw Error(Te(331));var o=ft;for(ft|=4,Ve=e.current;Ve!==null;){var s=Ve,a=s.child;if(Ve.flags&16){var i=s.deletions;if(i!==null){for(var l=0;lGt()-Um?Ms(e,0):Vm|=n),In(e,t)}function sC(e,t){t===0&&(e.mode&1?(t=Mc,Mc<<=1,!(Mc&130023424)&&(Mc=4194304)):t=1);var n=kn();e=Co(e,t),e!==null&&(nc(e,t,n),In(e,n))}function lM(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),sC(e,n)}function cM(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Te(314))}r!==null&&r.delete(t),sC(e,n)}var aC;aC=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||En.current)$n=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return $n=!1,qP(e,t,n);$n=!!(e.flags&131072)}else $n=!1,It&&t.flags&1048576&&c1(t,Lu,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;iu(e,t),e=t.pendingProps;var o=Wa(t,bn.current);_a(t,n),o=Am(null,t,r,e,o,n);var s=Nm();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,_n(r)?(s=!0,Iu(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Em(t),o.updater=Td,t.stateNode=o,o._reactInternals=t,uh(t,r,e,n),t=ph(null,t,r,!0,s,n)):(t.tag=0,It&&s&&km(t),Sn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(iu(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=dM(r),e=Sr(r,e),o){case 0:t=fh(null,t,r,e,n);break e;case 1:t=Jv(null,t,r,e,n);break e;case 11:t=Qv(null,t,r,e,n);break e;case 14:t=Xv(null,t,r,Sr(r.type,e),n);break e}throw Error(Te(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Sr(r,o),fh(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Sr(r,o),Jv(e,t,r,o,n);case 3:e:{if(U1(t),e===null)throw Error(Te(387));r=t.pendingProps,s=t.memoizedState,o=s.element,p1(e,t),ju(t,r,null,n);var a=t.memoizedState;if(r=a.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=Ga(Error(Te(423)),t),t=ey(e,t,r,n,o);break e}else if(r!==o){o=Ga(Error(Te(424)),t),t=ey(e,t,r,n,o);break e}else for(Kn=qo(t.stateNode.containerInfo.firstChild),Gn=t,It=!0,Pr=null,n=v1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ha(),r===o){t=wo(e,t,n);break e}Sn(e,t,r,n)}t=t.child}return t;case 5:return y1(t),e===null&&ih(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,a=o.children,nh(r,o)?a=null:s!==null&&nh(r,s)&&(t.flags|=32),V1(e,t),Sn(e,t,a,n),t.child;case 6:return e===null&&ih(t),null;case 13:return W1(e,t,n);case 4:return _m(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ya(t,null,r,n):Sn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Sr(r,o),Qv(e,t,r,o,n);case 7:return Sn(e,t,t.pendingProps,n),t.child;case 8:return Sn(e,t,t.pendingProps.children,n),t.child;case 12:return Sn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,a=o.value,Mt(Au,r._currentValue),r._currentValue=a,s!==null)if(Ir(s.value,a)){if(s.children===o.children&&!En.current){t=wo(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var i=s.dependencies;if(i!==null){a=s.child;for(var l=i.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=vo(-1,n&-n),l.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),lh(s.return,n,t),i.lanes|=n;break}l=l.next}}else if(s.tag===10)a=s.type===t.type?null:s.child;else if(s.tag===18){if(a=s.return,a===null)throw Error(Te(341));a.lanes|=n,i=a.alternate,i!==null&&(i.lanes|=n),lh(a,n,t),a=s.sibling}else a=s.child;if(a!==null)a.return=s;else for(a=s;a!==null;){if(a===t){a=null;break}if(s=a.sibling,s!==null){s.return=a.return,a=s;break}a=a.return}s=a}Sn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,_a(t,n),o=hr(o),r=r(o),t.flags|=1,Sn(e,t,r,n),t.child;case 14:return r=t.type,o=Sr(r,t.pendingProps),o=Sr(r.type,o),Xv(e,t,r,o,n);case 15:return B1(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Sr(r,o),iu(e,t),t.tag=1,_n(r)?(e=!0,Iu(t)):e=!1,_a(t,n),m1(t,r,o),uh(t,r,o,n),ph(null,t,r,!0,e,n);case 19:return H1(e,t,n);case 22:return z1(e,t,n)}throw Error(Te(156,t.tag))};function iC(e,t){return Ix(e,t)}function uM(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function dr(e,t,n,r){return new uM(e,t,n,r)}function Km(e){return e=e.prototype,!(!e||!e.isReactComponent)}function dM(e){if(typeof e=="function")return Km(e)?1:0;if(e!=null){if(e=e.$$typeof,e===fm)return 11;if(e===pm)return 14}return 2}function es(e,t){var n=e.alternate;return n===null?(n=dr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function uu(e,t,n,r,o,s){var a=2;if(r=e,typeof e=="function")Km(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case fa:return Rs(n.children,o,s,t);case dm:a=8,o|=8;break;case Op:return e=dr(12,n,t,o|2),e.elementType=Op,e.lanes=s,e;case Lp:return e=dr(13,n,t,o),e.elementType=Lp,e.lanes=s,e;case Ap:return e=dr(19,n,t,o),e.elementType=Ap,e.lanes=s,e;case gx:return $d(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case hx:a=10;break e;case mx:a=9;break e;case fm:a=11;break e;case pm:a=14;break e;case Fo:a=16,r=null;break e}throw Error(Te(130,e==null?e:typeof e,""))}return t=dr(a,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function Rs(e,t,n,r){return e=dr(7,e,r,t),e.lanes=n,e}function $d(e,t,n,r){return e=dr(22,e,r,t),e.elementType=gx,e.lanes=n,e.stateNode={isHidden:!1},e}function cp(e,t,n){return e=dr(6,e,null,t),e.lanes=n,e}function up(e,t,n){return t=dr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function fM(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Wf(0),this.expirationTimes=Wf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wf(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Gm(e,t,n,r,o,s,a,i,l){return e=new fM(e,t,n,i,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=dr(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Em(s),e}function pM(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(dC)}catch(e){console.error(e)}}dC(),cx.exports=er;var Od=cx.exports;const Fc=Eo(Od);var fy=Od;av.createRoot=fy.createRoot,av.hydrateRoot=fy.hydrateRoot;const Dl={black:"#000",white:"#fff"},Qs={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Xs={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Js={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},ea={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},ta={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Pi={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},yM={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t[n]=fC(e[n])}),t}function Ht(e,t,n={clone:!0}){const r=n.clone?m({},e):e;return fo(e)&&fo(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(fo(t[o])&&o in e&&fo(e[o])?r[o]=Ht(e[o],t[o],n):n.clone?r[o]=fo(t[o])?fC(t[o]):t[o]:r[o]=t[o])}),r}var pC={exports:{}},bM="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",xM=bM,CM=xM;function hC(){}function mC(){}mC.resetWarningCache=hC;var wM=function(){function e(r,o,s,a,i,l){if(l!==CM){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:mC,resetWarningCache:hC};return n.PropTypes=n,n};pC.exports=wM();var SM=pC.exports;const z=Eo(SM);function An(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;nn==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function ac(e,t=166){let n;function r(...o){const s=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(s,t)}return r.clear=()=>{clearTimeout(n)},r}function PM(e,t){return()=>null}function rl(e,t){var n,r;return y.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Ft(e){return e&&e.ownerDocument||document}function ro(e){return Ft(e).defaultView||window}function MM(e,t){return()=>null}function El(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Zt=typeof window<"u"?y.useLayoutEffect:y.useEffect;let py=0;function RM(e){const[t,n]=y.useState(e),r=e||t;return y.useEffect(()=>{t==null&&(py+=1,n(`mui-${py}`))},[t]),r}const hy=wu.useId;function gr(e){if(hy!==void 0){const t=hy();return e??t}return RM(e)}function $M(e,t,n,r,o){return null}function yn({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=y.useRef(e!==void 0),[s,a]=y.useState(t),i=o?e:s,l=y.useCallback(c=>{o||a(c)},[]);return[i,l]}function Ie(e){const t=y.useRef(e);return Zt(()=>{t.current=e}),y.useCallback((...n)=>(0,t.current)(...n),[])}function ut(...e){return y.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{El(n,t)})},e)}let Hd=!0,Ph=!1,my;const DM={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function EM(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&DM[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function _M(e){e.metaKey||e.altKey||e.ctrlKey||(Hd=!0)}function dp(){Hd=!1}function IM(){this.visibilityState==="hidden"&&Ph&&(Hd=!0)}function OM(e){e.addEventListener("keydown",_M,!0),e.addEventListener("mousedown",dp,!0),e.addEventListener("pointerdown",dp,!0),e.addEventListener("touchstart",dp,!0),e.addEventListener("visibilitychange",IM,!0)}function LM(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Hd||EM(t)}function Yd(){const e=y.useCallback(o=>{o!=null&&OM(o.ownerDocument)},[]),t=y.useRef(!1);function n(){return t.current?(Ph=!0,window.clearTimeout(my),my=window.setTimeout(()=>{Ph=!1},100),t.current=!1,!0):!1}function r(o){return LM(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function bC(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let na;function xC(){if(na)return na;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),na="reverse",e.scrollLeft>0?na="default":(e.scrollLeft=1,e.scrollLeft===0&&(na="negative")),document.body.removeChild(e),na}function AM(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(xC()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const NM=e=>{const t=y.useRef({});return y.useEffect(()=>{t.current=e}),t.current};function eg(e,t){const n=m({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=m({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},s=t[r];n[r]={},!s||!Object.keys(s)?n[r]=o:!o||!Object.keys(o)?n[r]=s:(n[r]=m({},s),Object.keys(o).forEach(a=>{n[r][a]=eg(o[a],s[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function xe(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((s,a)=>{if(a){const i=t(a);i!==""&&s.push(i),n&&n[a]&&s.push(n[a])}return s},[]).join(" ")}),r}const gy=e=>e,jM=()=>{let e=gy;return{configure(t){e=t},generate(t){return e(t)},reset(){e=gy}}},tg=jM(),FM={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ce(e,t,n="Mui"){const r=FM[t];return r?`${n}-${r}`:`${tg.generate(e)}-${t}`}function be(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Ce(e,o,n)}),r}const So="$$material";function q(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s=0)&&(n[o]=e[o]);return n}function CC(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var BM=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,zM=CC(function(e){return BM.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function VM(e){if(e.sheet)return e.sheet;for(var t=0;t0?un(fi,--Nn):0,qa--,qt===10&&(qa=1,Gd--),qt}function Zn(){return qt=Nn2||Il(qt)>3?"":" "}function tR(e,t){for(;--t&&Zn()&&!(qt<48||qt>102||qt>57&&qt<65||qt>70&&qt<97););return ic(e,du()+(t<6&&Jr()==32&&Zn()==32))}function Rh(e){for(;Zn();)switch(qt){case e:return Nn;case 34:case 39:e!==34&&e!==39&&Rh(qt);break;case 40:e===41&&Rh(e);break;case 92:Zn();break}return Nn}function nR(e,t){for(;Zn()&&e+qt!==57;)if(e+qt===84&&Jr()===47)break;return"/*"+ic(t,Nn-1)+"*"+Kd(e===47?e:Zn())}function rR(e){for(;!Il(Jr());)Zn();return ic(e,Nn)}function oR(e){return MC(pu("",null,null,null,[""],e=PC(e),0,[0],e))}function pu(e,t,n,r,o,s,a,i,l){for(var c=0,u=0,d=a,f=0,b=0,w=0,p=1,S=1,h=1,g=0,C="",x=o,T=s,v=r,k=C;S;)switch(w=g,g=Zn()){case 40:if(w!=108&&un(k,d-1)==58){Mh(k+=mt(fu(g),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:k+=fu(g);break;case 9:case 10:case 13:case 32:k+=eR(w);break;case 92:k+=tR(du()-1,7);continue;case 47:switch(Jr()){case 42:case 47:Bc(sR(nR(Zn(),du()),t,n),l);break;default:k+="/"}break;case 123*p:i[c++]=Yr(k)*h;case 125*p:case 59:case 0:switch(g){case 0:case 125:S=0;case 59+u:h==-1&&(k=mt(k,/\f/g,"")),b>0&&Yr(k)-d&&Bc(b>32?yy(k+";",r,n,d-1):yy(mt(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(Bc(v=vy(k,t,n,c,u,o,i,C,x=[],T=[],d),s),g===123)if(u===0)pu(k,t,v,v,x,s,d,i,T);else switch(f===99&&un(k,3)===110?100:f){case 100:case 108:case 109:case 115:pu(e,v,v,r&&Bc(vy(e,v,v,0,0,o,i,C,o,x=[],d),T),o,T,d,i,r?x:T);break;default:pu(k,v,v,v,[""],T,0,i,T)}}c=u=b=0,p=h=1,C=k="",d=a;break;case 58:d=1+Yr(k),b=w;default:if(p<1){if(g==123)--p;else if(g==125&&p++==0&&JM()==125)continue}switch(k+=Kd(g),g*p){case 38:h=u>0?1:(k+="\f",-1);break;case 44:i[c++]=(Yr(k)-1)*h,h=1;break;case 64:Jr()===45&&(k+=fu(Zn())),f=Jr(),u=d=Yr(C=k+=rR(du())),g++;break;case 45:w===45&&Yr(k)==2&&(p=0)}}return s}function vy(e,t,n,r,o,s,a,i,l,c,u){for(var d=o-1,f=o===0?s:[""],b=og(f),w=0,p=0,S=0;w0?f[h]+" "+g:mt(g,/&\f/g,f[h])))&&(l[S++]=C);return Zd(e,t,n,o===0?ng:i,l,c,u)}function sR(e,t,n){return Zd(e,t,n,wC,Kd(XM()),_l(e,2,-2),0)}function yy(e,t,n,r){return Zd(e,t,n,rg,_l(e,0,r),_l(e,r+1,-1),r)}function Oa(e,t){for(var n="",r=og(e),o=0;o6)switch(un(e,t+1)){case 109:if(un(e,t+4)!==45)break;case 102:return mt(e,/(.+:)(.+)-([^]+)/,"$1"+ht+"$2-$3$1"+Ku+(un(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Mh(e,"stretch")?RC(mt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(un(e,t+1)!==115)break;case 6444:switch(un(e,Yr(e)-3-(~Mh(e,"!important")&&10))){case 107:return mt(e,":",":"+ht)+e;case 101:return mt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ht+(un(e,14)===45?"inline-":"")+"box$3$1"+ht+"$2$3$1"+mn+"$2box$3")+e}break;case 5936:switch(un(e,t+11)){case 114:return ht+e+mn+mt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ht+e+mn+mt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ht+e+mn+mt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ht+e+mn+e+e}return e}var hR=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case rg:t.return=RC(t.value,t.length);break;case SC:return Oa([Mi(t,{value:mt(t.value,"@","@"+ht)})],o);case ng:if(t.length)return QM(t.props,function(s){switch(qM(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Oa([Mi(t,{props:[mt(s,/:(read-\w+)/,":"+Ku+"$1")]})],o);case"::placeholder":return Oa([Mi(t,{props:[mt(s,/:(plac\w+)/,":"+ht+"input-$1")]}),Mi(t,{props:[mt(s,/:(plac\w+)/,":"+Ku+"$1")]}),Mi(t,{props:[mt(s,/:(plac\w+)/,mn+"input-$1")]})],o)}return""})}},mR=[hR],$C=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(p){var S=p.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var o=t.stylisPlugins||mR,s={},a,i=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(p){for(var S=p.getAttribute("data-emotion").split(" "),h=1;h=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var IR={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},OR=/[A-Z]|^ms/g,LR=/_EMO_([^_]+?)_([^]*?)_EMO_/g,AC=function(t){return t.charCodeAt(1)===45},Sy=function(t){return t!=null&&typeof t!="boolean"},fp=CC(function(e){return AC(e)?e:e.replace(OR,"-$&").toLowerCase()}),ky=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(LR,function(r,o,s){return Kr={name:o,styles:s,next:Kr},o})}return IR[t]!==1&&!AC(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ol(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Kr={name:n.name,styles:n.styles,next:Kr},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Kr={name:r.name,styles:r.styles,next:Kr},r=r.next;var o=n.styles+";";return o}return AR(e,t,n)}case"function":{if(e!==void 0){var s=Kr,a=n(e);return Kr=s,Ol(e,t,a)}break}}if(t==null)return n;var i=t[n];return i!==void 0?i:n}function AR(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?zR:VR},Ry=function(t,n,r){var o;if(n){var s=n.shouldForwardProp;o=t.__emotion_forwardProp&&s?function(a){return t.__emotion_forwardProp(a)&&s(a)}:s}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},UR=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return OC(n,r,o),jR(function(){return LC(n,r,o)}),null},WR=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,s,a;n!==void 0&&(s=n.label,a=n.target);var i=Ry(t,n,r),l=i||My(o),c=!l("as");return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&d.push("label:"+s+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{d.push(u[0][0]);for(var f=u.length,b=1;bt(KR(o)?n:o):t;return P.jsx(BR,{styles:r})}function BC(e,t){return $h(e,t)}const GR=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},ZR=["values","unit","step"],qR=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>m({},n,{[r.key]:r.val}),{})};function zC(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=q(e,ZR),s=qR(t),a=Object.keys(s);function i(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function c(f,b){const w=a.indexOf(b);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(w!==-1&&typeof t[a[w]]=="number"?t[a[w]]:b)-r/100}${n})`}function u(f){return a.indexOf(f)+1`@media (min-width:${dg[e]}px)`};function jn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||$y;return t.reduce((a,i,l)=>(a[s.up(s.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const s=r.breakpoints||$y;return Object.keys(t).reduce((a,i)=>{if(Object.keys(s.values||dg).indexOf(i)!==-1){const l=s.up(i);a[l]=n(t[i],i)}else{const l=i;a[l]=t[l]}return a},{})}return n(t)}function VC(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const s=e.up(o);return r[s]={},r},{}))||{}}function UC(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function XR(e,...t){const n=VC(e),r=[n,...t].reduce((o,s)=>Ht(o,s),{});return UC(Object.keys(n),r)}function JR(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,s)=>{s{e[o]!=null&&(n[o]=!0)}),n}function $s({values:e,breakpoints:t,base:n}){const r=n||JR(e,t),o=Object.keys(r);if(o.length===0)return e;let s;return o.reduce((a,i,l)=>(Array.isArray(e)?(a[i]=e[l]!=null?e[l]:e[s],s=l):typeof e=="object"?(a[i]=e[i]!=null?e[i]:e[s],s=i):a[i]=e,a),{})}function Qa(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Gu(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Qa(e,n)||r,t&&(o=t(o,r,e)),o}function vt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,s=a=>{if(a[t]==null)return null;const i=a[t],l=a.theme,c=Qa(l,r)||{};return jn(a,i,d=>{let f=Gu(c,o,d);return d===f&&typeof d=="string"&&(f=Gu(c,o,`${t}${d==="default"?"":ne(d)}`,d)),n===!1?f:{[n]:f}})};return s.propTypes={},s.filterProps=[t],s}function e$(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const t$={m:"margin",p:"padding"},n$={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Dy={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},r$=e$(e=>{if(e.length>2)if(Dy[e])e=Dy[e];else return[e];const[t,n]=e.split(""),r=t$[t],o=n$[n]||"";return Array.isArray(o)?o.map(s=>r+s):[r+o]}),fg=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],pg=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...fg,...pg];function lc(e,t,n,r){var o;const s=(o=Qa(e,t,!1))!=null?o:n;return typeof s=="number"?a=>typeof a=="string"?a:s*a:Array.isArray(s)?a=>typeof a=="string"?a:s[a]:typeof s=="function"?s:()=>{}}function hg(e){return lc(e,"spacing",8)}function Ns(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function o$(e,t){return n=>e.reduce((r,o)=>(r[o]=Ns(t,n),r),{})}function s$(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=r$(n),s=o$(o,r),a=e[n];return jn(e,a,s)}function WC(e,t){const n=hg(e.theme);return Object.keys(e).map(r=>s$(e,t,r,n)).reduce(ol,{})}function Vt(e){return WC(e,fg)}Vt.propTypes={};Vt.filterProps=fg;function Ut(e){return WC(e,pg)}Ut.propTypes={};Ut.filterProps=pg;function HC(e=8){if(e.mui)return e;const t=hg({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(s=>{const a=t(s);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function lf(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(s=>{r[s]=o}),r),{}),n=r=>Object.keys(r).reduce((o,s)=>t[s]?ol(o,t[s](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Zr(e){return typeof e!="number"?e:`${e}px solid`}const a$=vt({prop:"border",themeKey:"borders",transform:Zr}),i$=vt({prop:"borderTop",themeKey:"borders",transform:Zr}),l$=vt({prop:"borderRight",themeKey:"borders",transform:Zr}),c$=vt({prop:"borderBottom",themeKey:"borders",transform:Zr}),u$=vt({prop:"borderLeft",themeKey:"borders",transform:Zr}),d$=vt({prop:"borderColor",themeKey:"palette"}),f$=vt({prop:"borderTopColor",themeKey:"palette"}),p$=vt({prop:"borderRightColor",themeKey:"palette"}),h$=vt({prop:"borderBottomColor",themeKey:"palette"}),m$=vt({prop:"borderLeftColor",themeKey:"palette"}),cf=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=lc(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ns(t,r)});return jn(e,e.borderRadius,n)}return null};cf.propTypes={};cf.filterProps=["borderRadius"];lf(a$,i$,l$,c$,u$,d$,f$,p$,h$,m$,cf);const uf=e=>{if(e.gap!==void 0&&e.gap!==null){const t=lc(e.theme,"spacing",8),n=r=>({gap:Ns(t,r)});return jn(e,e.gap,n)}return null};uf.propTypes={};uf.filterProps=["gap"];const df=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=lc(e.theme,"spacing",8),n=r=>({columnGap:Ns(t,r)});return jn(e,e.columnGap,n)}return null};df.propTypes={};df.filterProps=["columnGap"];const ff=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=lc(e.theme,"spacing",8),n=r=>({rowGap:Ns(t,r)});return jn(e,e.rowGap,n)}return null};ff.propTypes={};ff.filterProps=["rowGap"];const g$=vt({prop:"gridColumn"}),v$=vt({prop:"gridRow"}),y$=vt({prop:"gridAutoFlow"}),b$=vt({prop:"gridAutoColumns"}),x$=vt({prop:"gridAutoRows"}),C$=vt({prop:"gridTemplateColumns"}),w$=vt({prop:"gridTemplateRows"}),S$=vt({prop:"gridTemplateAreas"}),k$=vt({prop:"gridArea"});lf(uf,df,ff,g$,v$,y$,b$,x$,C$,w$,S$,k$);function La(e,t){return t==="grey"?t:e}const T$=vt({prop:"color",themeKey:"palette",transform:La}),P$=vt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:La}),M$=vt({prop:"backgroundColor",themeKey:"palette",transform:La});lf(T$,P$,M$);function Yn(e){return e<=1&&e!==0?`${e*100}%`:e}const R$=vt({prop:"width",transform:Yn}),mg=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const s=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||dg[n];return s?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${s}${e.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:Yn(n)}};return jn(e,e.maxWidth,t)}return null};mg.filterProps=["maxWidth"];const $$=vt({prop:"minWidth",transform:Yn}),D$=vt({prop:"height",transform:Yn}),E$=vt({prop:"maxHeight",transform:Yn}),_$=vt({prop:"minHeight",transform:Yn});vt({prop:"size",cssProperty:"width",transform:Yn});vt({prop:"size",cssProperty:"height",transform:Yn});const I$=vt({prop:"boxSizing"});lf(R$,mg,$$,D$,E$,_$,I$);const cc={border:{themeKey:"borders",transform:Zr},borderTop:{themeKey:"borders",transform:Zr},borderRight:{themeKey:"borders",transform:Zr},borderBottom:{themeKey:"borders",transform:Zr},borderLeft:{themeKey:"borders",transform:Zr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:cf},color:{themeKey:"palette",transform:La},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:La},backgroundColor:{themeKey:"palette",transform:La},p:{style:Ut},pt:{style:Ut},pr:{style:Ut},pb:{style:Ut},pl:{style:Ut},px:{style:Ut},py:{style:Ut},padding:{style:Ut},paddingTop:{style:Ut},paddingRight:{style:Ut},paddingBottom:{style:Ut},paddingLeft:{style:Ut},paddingX:{style:Ut},paddingY:{style:Ut},paddingInline:{style:Ut},paddingInlineStart:{style:Ut},paddingInlineEnd:{style:Ut},paddingBlock:{style:Ut},paddingBlockStart:{style:Ut},paddingBlockEnd:{style:Ut},m:{style:Vt},mt:{style:Vt},mr:{style:Vt},mb:{style:Vt},ml:{style:Vt},mx:{style:Vt},my:{style:Vt},margin:{style:Vt},marginTop:{style:Vt},marginRight:{style:Vt},marginBottom:{style:Vt},marginLeft:{style:Vt},marginX:{style:Vt},marginY:{style:Vt},marginInline:{style:Vt},marginInlineStart:{style:Vt},marginInlineEnd:{style:Vt},marginBlock:{style:Vt},marginBlockStart:{style:Vt},marginBlockEnd:{style:Vt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:uf},rowGap:{style:ff},columnGap:{style:df},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Yn},maxWidth:{style:mg},minWidth:{transform:Yn},height:{transform:Yn},maxHeight:{transform:Yn},minHeight:{transform:Yn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function O$(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function L$(e,t){return typeof e=="function"?e(t):e}function A$(){function e(n,r,o,s){const a={[n]:r,theme:o},i=s[n];if(!i)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:d}=i;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const f=Qa(o,c)||{};return d?d(a):jn(a,r,w=>{let p=Gu(f,u,w);return w===p&&typeof w=="string"&&(p=Gu(f,u,`${n}${w==="default"?"":ne(w)}`,w)),l===!1?p:{[l]:p}})}function t(n){var r;const{sx:o,theme:s={}}=n||{};if(!o)return null;const a=(r=s.unstable_sxConfig)!=null?r:cc;function i(l){let c=l;if(typeof l=="function")c=l(s);else if(typeof l!="object")return l;if(!c)return null;const u=VC(s.breakpoints),d=Object.keys(u);let f=u;return Object.keys(c).forEach(b=>{const w=L$(c[b],s);if(w!=null)if(typeof w=="object")if(a[b])f=ol(f,e(b,w,s,a));else{const p=jn({theme:s},w,S=>({[b]:S}));O$(p,w)?f[b]=t({sx:w,theme:s}):f=ol(f,p)}else f=ol(f,e(b,w,s,a))}),UC(d,f)}return Array.isArray(o)?o.map(i):i(o)}return t}const Ks=A$();Ks.filterProps=["sx"];const N$=["breakpoints","palette","spacing","shape"];function pf(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={}}=e,a=q(e,N$),i=zC(n),l=HC(o);let c=Ht({breakpoints:i,direction:"ltr",components:{},palette:m({mode:"light"},r),spacing:l,shape:m({},QR,s)},a);return c=t.reduce((u,d)=>Ht(u,d),c),c.unstable_sxConfig=m({},cc,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(d){return Ks({sx:d,theme:this})},c}function j$(e){return Object.keys(e).length===0}function hf(e=null){const t=y.useContext(af);return!t||j$(t)?e:t}const F$=pf();function pi(e=F$){return hf(e)}function B$({styles:e,themeId:t,defaultTheme:n={}}){const r=pi(n),o=typeof e=="function"?e(t&&r[t]||r):e;return P.jsx(hu,{styles:o})}const z$=["sx"],V$=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:cc;return Object.keys(e).forEach(s=>{o[s]?r.systemProps[s]=e[s]:r.otherProps[s]=e[s]}),r};function mf(e){const{sx:t}=e,n=q(e,z$),{systemProps:r,otherProps:o}=V$(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...a)=>{const i=t(...a);return fo(i)?m({},r,i):r}:s=m({},r,t),m({},o,{sx:s})}function YC(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ti!=="theme"&&i!=="sx"&&i!=="as"})(Ks);return y.forwardRef(function(l,c){const u=pi(n),d=mf(l),{className:f,component:b="div"}=d,w=q(d,U$);return P.jsx(s,m({as:b,ref:c,className:ae(f,o?o(r):r),theme:t&&u[t]||u},w))})}const H$=["variant"];function Ey(e){return e.length===0}function KC(e){const{variant:t}=e,n=q(e,H$);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=Ey(r)?e[o]:ne(e[o]):r+=`${Ey(r)?o:ne(o)}${ne(e[o].toString())}`}),r}const Y$=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function K$(e){return Object.keys(e).length===0}function G$(e){return typeof e=="string"&&e.charCodeAt(0)>96}const Z$=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,Zu=e=>{const t={};return e&&e.forEach(n=>{const r=KC(n.props);t[r]=n.style}),t},q$=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),Zu(n)},qu=(e,t,n)=>{const{ownerState:r={}}=e,o=[];return n&&n.forEach(s=>{let a=!0;Object.keys(s.props).forEach(i=>{r[i]!==s.props[i]&&e[i]!==s.props[i]&&(a=!1)}),a&&o.push(t[KC(s.props)])}),o},Q$=(e,t,n,r)=>{var o;const s=n==null||(o=n.components)==null||(o=o[r])==null?void 0:o.variants;return qu(e,t,s)};function sl(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const X$=pf(),J$=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function mu({defaultTheme:e,theme:t,themeId:n}){return K$(t)?e:t[n]||t}function e2(e){return e?(t,n)=>n[e]:null}const _y=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const o=e(m({},t,{theme:mu(m({},t,{defaultTheme:n,themeId:r}))}));let s;if(o&&o.variants&&(s=o.variants,delete o.variants),s){const a=qu(t,Zu(s),s);return[o,...a]}return o};function GC(e={}){const{themeId:t,defaultTheme:n=X$,rootShouldForwardProp:r=sl,slotShouldForwardProp:o=sl}=e,s=a=>Ks(m({},a,{theme:mu(m({},a,{defaultTheme:n,themeId:t}))}));return s.__mui_systemSx=!0,(a,i={})=>{GR(a,x=>x.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:f=e2(J$(c))}=i,b=q(i,Y$),w=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,p=d||!1;let S,h=sl;c==="Root"||c==="root"?h=r:c?h=o:G$(a)&&(h=void 0);const g=BC(a,m({shouldForwardProp:h,label:S},b)),C=(x,...T)=>{const v=T?T.map(R=>{if(typeof R=="function"&&R.__emotion_real!==R)return E=>_y({styledArg:R,props:E,defaultTheme:n,themeId:t});if(fo(R)){let E=R,A;return R&&R.variants&&(A=R.variants,delete E.variants,E=N=>{let _=R;return qu(N,Zu(A),A).forEach(O=>{_=Ht(_,O)}),_}),E}return R}):[];let k=x;if(fo(x)){let R;x&&x.variants&&(R=x.variants,delete k.variants,k=E=>{let A=x;return qu(E,Zu(R),R).forEach(_=>{A=Ht(A,_)}),A})}else typeof x=="function"&&x.__emotion_real!==x&&(k=R=>_y({styledArg:x,props:R,defaultTheme:n,themeId:t}));l&&f&&v.push(R=>{const E=mu(m({},R,{defaultTheme:n,themeId:t})),A=Z$(l,E);if(A){const N={};return Object.entries(A).forEach(([_,D])=>{N[_]=typeof D=="function"?D(m({},R,{theme:E})):D}),f(R,N)}return null}),l&&!w&&v.push(R=>{const E=mu(m({},R,{defaultTheme:n,themeId:t}));return Q$(R,q$(l,E),E,l)}),p||v.push(s);const M=v.length-T.length;if(Array.isArray(x)&&M>0){const R=new Array(M).fill("");k=[...x,...R],k.raw=[...x.raw,...R]}const $=g(k,...v);return a.muiName&&($.muiName=a.muiName),$};return g.withConfig&&(C.withConfig=g.withConfig),C}}const t2=GC();function ZC(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:eg(t.components[n].defaultProps,r)}function qC({props:e,name:t,defaultTheme:n,themeId:r}){let o=pi(n);return r&&(o=o[r]||o),ZC({theme:o,name:t,props:e})}function gg(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function QC(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function n2(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function oo(e){if(e.type)return e;if(e.charAt(0)==="#")return oo(QC(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(An(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(An(10,o))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:o}}const r2=e=>{const t=oo(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")},Vi=(e,t)=>{try{return r2(e)}catch{return e}};function uc(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,s)=>s<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function o2(e){if(e.indexOf("#")===0)return e;const{values:t}=oo(e);return`#${t.map((n,r)=>n2(r===3?Math.round(255*n):n)).join("")}`}function XC(e){e=oo(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),a=(c,u=(c+n/30)%12)=>o-s*Math.max(Math.min(u-3,9-u,1),-1);let i="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(i+="a",l.push(t[3])),uc({type:i,values:l})}function Qu(e){e=oo(e);let t=e.type==="hsl"||e.type==="hsla"?oo(XC(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function JC(e,t){const n=Qu(e),r=Qu(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function We(e,t){return e=oo(e),t=gg(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,uc(e)}function zc(e,t,n){try{return We(e,t)}catch{return e}}function To(e,t){if(e=oo(e),t=gg(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return uc(e)}function kt(e,t,n){try{return To(e,t)}catch{return e}}function Po(e,t){if(e=oo(e),t=gg(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return uc(e)}function Tt(e,t,n){try{return Po(e,t)}catch{return e}}function Xu(e,t=.15){return Qu(e)>.5?To(e,t):Po(e,t)}function Ui(e,t,n){try{return Ui(e,t)}catch{return e}}const ew=y.createContext(null);function vg(){return y.useContext(ew)}const s2=typeof Symbol=="function"&&Symbol.for,a2=s2?Symbol.for("mui.nested"):"__THEME_NESTED__";function i2(e,t){return typeof t=="function"?t(e):m({},e,t)}function l2(e){const{children:t,theme:n}=e,r=vg(),o=y.useMemo(()=>{const s=r===null?n:i2(r,n);return s!=null&&(s[a2]=r!==null),s},[n,r]);return P.jsx(ew.Provider,{value:o,children:t})}const Iy={};function Oy(e,t,n,r=!1){return y.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const s=n(o),a=e?m({},t,{[e]:s}):s;return r?()=>a:a}return e?m({},t,{[e]:n}):m({},t,n)},[e,t,n,r])}function tw(e){const{children:t,theme:n,themeId:r}=e,o=hf(Iy),s=vg()||Iy,a=Oy(r,o,n),i=Oy(r,s,n,!0);return P.jsx(l2,{theme:i,children:P.jsx(af.Provider,{value:a,children:t})})}const yg="mode",bg="color-scheme",nw="data-color-scheme";function c2(e){const{defaultMode:t="light",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=yg,colorSchemeStorageKey:s=bg,attribute:a=nw,colorSchemeNode:i="document.documentElement"}=e||{};return P.jsx("script",{dangerouslySetInnerHTML:{__html:`(function() { -try { - var mode = localStorage.getItem('${o}') || '${t}'; - var colorScheme = ''; - if (mode === 'system') { - // handle system mode - var mql = window.matchMedia('(prefers-color-scheme: dark)'); - if (mql.matches) { - colorScheme = localStorage.getItem('${s}-dark') || '${r}'; - } else { - colorScheme = localStorage.getItem('${s}-light') || '${n}'; - } - } - if (mode === 'light') { - colorScheme = localStorage.getItem('${s}-light') || '${n}'; - } - if (mode === 'dark') { - colorScheme = localStorage.getItem('${s}-dark') || '${r}'; - } - if (colorScheme) { - ${i}.setAttribute('${a}', colorScheme); - } -} catch(e){}})();`}},"mui-color-scheme-init")}function Ly(e){if(typeof window<"u"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function rw(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function u2(e){return rw(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function pp(e,t){if(typeof window>"u")return;let n;try{n=localStorage.getItem(e)||void 0,n||localStorage.setItem(e,t)}catch{}return n||t}function d2(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:s=yg,colorSchemeStorageKey:a=bg,storageWindow:i=typeof window>"u"?void 0:window}=e,l=o.join(","),[c,u]=y.useState(()=>{const S=pp(s,t),h=pp(`${a}-light`,n),g=pp(`${a}-dark`,r);return{mode:S,systemMode:Ly(S),lightColorScheme:h,darkColorScheme:g}}),d=u2(c),f=y.useCallback(S=>{u(h=>{if(S===h.mode)return h;const g=S||t;try{localStorage.setItem(s,g)}catch{}return m({},h,{mode:g,systemMode:Ly(g)})})},[s,t]),b=y.useCallback(S=>{S?typeof S=="string"?S&&!l.includes(S)?console.error(`\`${S}\` does not exist in \`theme.colorSchemes\`.`):u(h=>{const g=m({},h);return rw(h,C=>{try{localStorage.setItem(`${a}-${C}`,S)}catch{}C==="light"&&(g.lightColorScheme=S),C==="dark"&&(g.darkColorScheme=S)}),g}):u(h=>{const g=m({},h),C=S.light===null?n:S.light,x=S.dark===null?r:S.dark;if(C)if(!l.includes(C))console.error(`\`${C}\` does not exist in \`theme.colorSchemes\`.`);else{g.lightColorScheme=C;try{localStorage.setItem(`${a}-light`,C)}catch{}}if(x)if(!l.includes(x))console.error(`\`${x}\` does not exist in \`theme.colorSchemes\`.`);else{g.darkColorScheme=x;try{localStorage.setItem(`${a}-dark`,x)}catch{}}return g}):u(h=>{try{localStorage.setItem(`${a}-light`,n),localStorage.setItem(`${a}-dark`,r)}catch{}return m({},h,{lightColorScheme:n,darkColorScheme:r})})},[l,a,n,r]),w=y.useCallback(S=>{c.mode==="system"&&u(h=>m({},h,{systemMode:S!=null&&S.matches?"dark":"light"}))},[c.mode]),p=y.useRef(w);return p.current=w,y.useEffect(()=>{const S=(...g)=>p.current(...g),h=window.matchMedia("(prefers-color-scheme: dark)");return h.addListener(S),S(h),()=>h.removeListener(S)},[]),y.useEffect(()=>{const S=h=>{const g=h.newValue;typeof h.key=="string"&&h.key.startsWith(a)&&(!g||l.match(g))&&(h.key.endsWith("light")&&b({light:g}),h.key.endsWith("dark")&&b({dark:g})),h.key===s&&(!g||["light","dark","system"].includes(g))&&f(g||t)};if(i)return i.addEventListener("storage",S),()=>i.removeEventListener("storage",S)},[b,f,s,a,l,t,i]),m({},c,{colorScheme:d,setMode:f,setColorScheme:b})}const f2=["colorSchemes","components","generateCssVars","cssVarPrefix"],p2="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function h2(e){const{themeId:t,theme:n={},attribute:r=nw,modeStorageKey:o=yg,colorSchemeStorageKey:s=bg,defaultMode:a="light",defaultColorScheme:i,disableTransitionOnChange:l=!1,resolveTheme:c,excludeVariablesFromRoot:u}=e;(!n.colorSchemes||typeof i=="string"&&!n.colorSchemes[i]||typeof i=="object"&&!n.colorSchemes[i==null?void 0:i.light]||typeof i=="object"&&!n.colorSchemes[i==null?void 0:i.dark])&&console.error(`MUI: \`${i}\` does not exist in \`theme.colorSchemes\`.`);const d=y.createContext(void 0),f=()=>{const h=y.useContext(d);if(!h)throw new Error(An(19));return h};function b({children:h,theme:g=n,modeStorageKey:C=o,colorSchemeStorageKey:x=s,attribute:T=r,defaultMode:v=a,defaultColorScheme:k=i,disableTransitionOnChange:M=l,storageWindow:$=typeof window>"u"?void 0:window,documentNode:R=typeof document>"u"?void 0:document,colorSchemeNode:E=typeof document>"u"?void 0:document.documentElement,colorSchemeSelector:A=":root",disableNestedContext:N=!1,disableStyleSheetGeneration:_=!1}){const D=y.useRef(!1),O=vg(),j=y.useContext(d),I=!!j&&!N,L=g[t],F=L||g,{colorSchemes:J={},components:ie={},generateCssVars:ue=()=>({vars:{},css:{}}),cssVarPrefix:U}=F,Q=q(F,f2),K=Object.keys(J),H=typeof k=="string"?k:k.light,oe=typeof k=="string"?k:k.dark,{mode:me,setMode:ye,systemMode:ee,lightColorScheme:pe,darkColorScheme:X,colorScheme:he,setColorScheme:se}=d2({supportedColorSchemes:K,defaultLightColorScheme:H,defaultDarkColorScheme:oe,modeStorageKey:C,colorSchemeStorageKey:x,defaultMode:v,storageWindow:$});let Oe=me,Re=he;I&&(Oe=j.mode,Re=j.colorScheme);const ge=Oe||(v==="system"?a:v),$e=Re||(ge==="dark"?oe:H),{css:G,vars:Z}=ue(),te=m({},Q,{components:ie,colorSchemes:J,cssVarPrefix:U,vars:Z,getColorSchemeSelector:we=>`[${T}="${we}"] &`}),De={},Ae={};Object.entries(J).forEach(([we,ke])=>{const{css:qe,vars:yt}=ue(we);te.vars=Ht(te.vars,yt),we===$e&&(Object.keys(ke).forEach(Se=>{ke[Se]&&typeof ke[Se]=="object"?te[Se]=m({},te[Se],ke[Se]):te[Se]=ke[Se]}),te.palette&&(te.palette.colorScheme=we));const wt=typeof k=="string"?k:v==="dark"?k.dark:k.light;if(we===wt){if(u){const Se={};u(U).forEach(W=>{Se[W]=qe[W],delete qe[W]}),De[`[${T}="${we}"]`]=Se}De[`${A}, [${T}="${we}"]`]=qe}else Ae[`${A===":root"?"":A}[${T}="${we}"]`]=qe}),te.vars=Ht(te.vars,Z),y.useEffect(()=>{Re&&E&&E.setAttribute(T,Re)},[Re,T,E]),y.useEffect(()=>{let we;if(M&&D.current&&R){const ke=R.createElement("style");ke.appendChild(R.createTextNode(p2)),R.head.appendChild(ke),window.getComputedStyle(R.body),we=setTimeout(()=>{R.head.removeChild(ke)},1)}return()=>{clearTimeout(we)}},[Re,M,R]),y.useEffect(()=>(D.current=!0,()=>{D.current=!1}),[]);const He=y.useMemo(()=>({mode:Oe,systemMode:ee,setMode:ye,lightColorScheme:pe,darkColorScheme:X,colorScheme:Re,setColorScheme:se,allColorSchemes:K}),[K,Re,X,pe,Oe,se,ye,ee]);let Ue=!0;(_||I&&(O==null?void 0:O.cssVarPrefix)===U)&&(Ue=!1);const Ee=P.jsxs(y.Fragment,{children:[Ue&&P.jsxs(y.Fragment,{children:[P.jsx(hu,{styles:{[A]:G}}),P.jsx(hu,{styles:De}),P.jsx(hu,{styles:Ae})]}),P.jsx(tw,{themeId:L?t:void 0,theme:c?c(te):te,children:h})]});return I?Ee:P.jsx(d.Provider,{value:He,children:Ee})}const w=typeof i=="string"?i:i.light,p=typeof i=="string"?i:i.dark;return{CssVarsProvider:b,useColorScheme:f,getInitColorSchemeScript:h=>c2(m({attribute:r,colorSchemeStorageKey:s,defaultMode:a,defaultLightColorScheme:w,defaultDarkColorScheme:p,modeStorageKey:o},h))}}function m2(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const Ay=(e,t,n,r=[])=>{let o=e;t.forEach((s,a)=>{a===t.length-1?Array.isArray(o)?o[Number(s)]=n:o&&typeof o=="object"&&(o[s]=n):o&&typeof o=="object"&&(o[s]||(o[s]=r.includes(s)?[]:{}),o=o[s])})},g2=(e,t,n)=>{function r(o,s=[],a=[]){Object.entries(o).forEach(([i,l])=>{(!n||n&&!n([...s,i]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...s,i],Array.isArray(l)?[...a,i]:a):t([...s,i],l,a))})}r(e)},v2=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().indexOf("opacity")>=0?t:`${t}px`:t;function hp(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},s={},a={};return g2(e,(i,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(i,l))){const u=`--${n?`${n}-`:""}${i.join("-")}`;Object.assign(o,{[u]:v2(i,l)}),Ay(s,i,`var(${u})`,c),Ay(a,i,`var(${u}, ${l})`,c)}},i=>i[0]==="vars"),{css:o,vars:s,varsWithDefaults:a}}const y2=["colorSchemes","components"],b2=["light"];function x2(e,t){const{colorSchemes:n={}}=e,r=q(e,y2),{vars:o,css:s,varsWithDefaults:a}=hp(r,t);let i=a;const l={},{light:c}=n,u=q(n,b2);if(Object.entries(u||{}).forEach(([f,b])=>{const{vars:w,css:p,varsWithDefaults:S}=hp(b,t);i=Ht(i,S),l[f]={css:p,vars:w}}),c){const{css:f,vars:b,varsWithDefaults:w}=hp(c,t);i=Ht(i,w),l.light={css:f,vars:b}}return{vars:i,generateCssVars:f=>f?{css:m({},l[f].css),vars:l[f].vars}:{css:m({},s),vars:o}}}const C2=["component","direction","spacing","divider","children","className","useFlexGap"],w2=pf(),S2=t2("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function k2(e){return qC({props:e,name:"MuiStack",defaultTheme:w2})}function T2(e,t){const n=y.Children.toArray(e).filter(Boolean);return n.reduce((r,o,s)=>(r.push(o),s({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],M2=({ownerState:e,theme:t})=>{let n=m({display:"flex",flexDirection:"column"},jn({theme:t},$s({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=hg(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),s=$s({values:e.direction,base:o}),a=$s({values:e.spacing,base:o});typeof s=="object"&&Object.keys(s).forEach((l,c,u)=>{if(!s[l]){const f=c>0?s[u[c-1]]:"column";s[l]=f}}),n=Ht(n,jn({theme:t},a,(l,c)=>e.useFlexGap?{gap:Ns(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${P2(c?s[c]:e.direction)}`]:Ns(r,l)}}))}return n=XR(t.breakpoints,n),n};function R2(e={}){const{createStyledComponent:t=S2,useThemeProps:n=k2,componentName:r="MuiStack"}=e,o=()=>xe({root:["root"]},l=>Ce(r,l),{}),s=t(M2);return y.forwardRef(function(l,c){const u=n(l),d=mf(u),{component:f="div",direction:b="column",spacing:w=0,divider:p,children:S,className:h,useFlexGap:g=!1}=d,C=q(d,C2),x={direction:b,spacing:w,useFlexGap:g},T=o();return P.jsx(s,m({as:f,ownerState:x,ref:c,className:ae(T.root,h)},C,{children:p?T2(S,p):S}))})}const $2=["defaultProps","mixins","overrides","palette","props","styleOverrides"],D2=["type","mode"];function E2(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:s={},styleOverrides:a={}}=e,i=q(e,$2),l=m({},i,{components:{}});Object.keys(t).forEach(p=>{const S=l.components[p]||{};S.defaultProps=t[p],l.components[p]=S}),Object.keys(s).forEach(p=>{const S=l.components[p]||{};S.defaultProps=s[p],l.components[p]=S}),Object.keys(a).forEach(p=>{const S=l.components[p]||{};S.styleOverrides=a[p],l.components[p]=S}),Object.keys(r).forEach(p=>{const S=l.components[p]||{};S.styleOverrides=r[p],l.components[p]=S}),l.spacing=HC(e.spacing);const c=zC(e.breakpoints||{}),u=l.spacing;l.mixins=m({gutters:(p={})=>m({paddingLeft:u(2),paddingRight:u(2)},p,{[c.up("sm")]:m({paddingLeft:u(3),paddingRight:u(3)},p[c.up("sm")])})},n);const{type:d,mode:f}=o,b=q(o,D2),w=f||d||"light";return l.palette=m({text:{hint:w==="dark"?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:w,type:w},b),l}function _2(e,t){return m({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const I2=["mode","contrastThreshold","tonalOffset"],Ny={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Dl.white,default:Dl.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},mp={text:{primary:Dl.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Dl.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function jy(e,t,n,r){const o=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Po(e.main,o):t==="dark"&&(e.dark=To(e.main,s)))}function O2(e="light"){return e==="dark"?{main:Js[200],light:Js[50],dark:Js[400]}:{main:Js[700],light:Js[400],dark:Js[800]}}function L2(e="light"){return e==="dark"?{main:Xs[200],light:Xs[50],dark:Xs[400]}:{main:Xs[500],light:Xs[300],dark:Xs[700]}}function A2(e="light"){return e==="dark"?{main:Qs[500],light:Qs[300],dark:Qs[700]}:{main:Qs[700],light:Qs[400],dark:Qs[800]}}function N2(e="light"){return e==="dark"?{main:ea[400],light:ea[300],dark:ea[700]}:{main:ea[700],light:ea[500],dark:ea[900]}}function j2(e="light"){return e==="dark"?{main:ta[400],light:ta[300],dark:ta[700]}:{main:ta[800],light:ta[500],dark:ta[900]}}function F2(e="light"){return e==="dark"?{main:Pi[400],light:Pi[300],dark:Pi[700]}:{main:"#ed6c02",light:Pi[500],dark:Pi[900]}}function B2(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=q(e,I2),s=e.primary||O2(t),a=e.secondary||L2(t),i=e.error||A2(t),l=e.info||N2(t),c=e.success||j2(t),u=e.warning||F2(t);function d(p){return JC(p,mp.text.primary)>=n?mp.text.primary:Ny.text.primary}const f=({color:p,name:S,mainShade:h=500,lightShade:g=300,darkShade:C=700})=>{if(p=m({},p),!p.main&&p[h]&&(p.main=p[h]),!p.hasOwnProperty("main"))throw new Error(An(11,S?` (${S})`:"",h));if(typeof p.main!="string")throw new Error(An(12,S?` (${S})`:"",JSON.stringify(p.main)));return jy(p,"light",g,r),jy(p,"dark",C,r),p.contrastText||(p.contrastText=d(p.main)),p},b={dark:mp,light:Ny};return Ht(m({common:m({},Dl),mode:t,primary:f({color:s,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:i,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:yM,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},b[t]),o)}const z2=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function V2(e){return Math.round(e*1e5)/1e5}const Fy={textTransform:"uppercase"},By='"Roboto", "Helvetica", "Arial", sans-serif';function xg(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=By,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:a=400,fontWeightMedium:i=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,f=q(n,z2),b=o/14,w=d||(h=>`${h/c*b}rem`),p=(h,g,C,x,T)=>m({fontFamily:r,fontWeight:h,fontSize:w(g),lineHeight:C},r===By?{letterSpacing:`${V2(x/g)}em`}:{},T,u),S={h1:p(s,96,1.167,-1.5),h2:p(s,60,1.2,-.5),h3:p(a,48,1.167,0),h4:p(a,34,1.235,.25),h5:p(a,24,1.334,0),h6:p(i,20,1.6,.15),subtitle1:p(a,16,1.75,.15),subtitle2:p(i,14,1.57,.1),body1:p(a,16,1.5,.15),body2:p(a,14,1.43,.15),button:p(i,14,1.75,.4,Fy),caption:p(a,12,1.66,.4),overline:p(a,12,2.66,1,Fy),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ht(m({htmlFontSize:c,pxToRem:w,fontFamily:r,fontSize:o,fontWeightLight:s,fontWeightRegular:a,fontWeightMedium:i,fontWeightBold:l},S),f,{clone:!1})}const U2=.2,W2=.14,H2=.12;function Et(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${U2})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${W2})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${H2})`].join(",")}const Y2=["none",Et(0,2,1,-1,0,1,1,0,0,1,3,0),Et(0,3,1,-2,0,2,2,0,0,1,5,0),Et(0,3,3,-2,0,3,4,0,0,1,8,0),Et(0,2,4,-1,0,4,5,0,0,1,10,0),Et(0,3,5,-1,0,5,8,0,0,1,14,0),Et(0,3,5,-1,0,6,10,0,0,1,18,0),Et(0,4,5,-2,0,7,10,1,0,2,16,1),Et(0,5,5,-3,0,8,10,1,0,3,14,2),Et(0,5,6,-3,0,9,12,1,0,3,16,2),Et(0,6,6,-3,0,10,14,1,0,4,18,3),Et(0,6,7,-4,0,11,15,1,0,4,20,3),Et(0,7,8,-4,0,12,17,2,0,5,22,4),Et(0,7,8,-4,0,13,19,2,0,5,24,4),Et(0,7,9,-4,0,14,21,2,0,5,26,4),Et(0,8,9,-5,0,15,22,2,0,6,28,5),Et(0,8,10,-5,0,16,24,2,0,6,30,5),Et(0,8,11,-5,0,17,26,2,0,6,32,5),Et(0,9,11,-5,0,18,28,2,0,7,34,6),Et(0,9,12,-6,0,19,29,2,0,7,36,6),Et(0,10,13,-6,0,20,31,3,0,8,38,7),Et(0,10,13,-6,0,21,33,3,0,8,40,7),Et(0,10,14,-6,0,22,35,3,0,8,42,7),Et(0,11,14,-7,0,23,36,3,0,9,44,8),Et(0,11,15,-7,0,24,38,3,0,9,46,8)],K2=["duration","easing","delay"],ow={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Cg={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function zy(e){return`${Math.round(e)}ms`}function G2(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Z2(e){const t=m({},ow,e.easing),n=m({},Cg,e.duration);return m({getAutoHeightDuration:G2,create:(o=["all"],s={})=>{const{duration:a=n.standard,easing:i=t.easeInOut,delay:l=0}=s;return q(s,K2),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof a=="string"?a:zy(a)} ${i} ${typeof l=="string"?l:zy(l)}`).join(",")}},e,{easing:t,duration:n})}const q2={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Q2=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function js(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:s={}}=e,a=q(e,Q2);if(e.vars)throw new Error(An(18));const i=B2(r),l=pf(e);let c=Ht(l,{mixins:_2(l.breakpoints,n),palette:i,shadows:Y2.slice(),typography:xg(i,s),transitions:Z2(o),zIndex:m({},q2)});return c=Ht(c,a),c=t.reduce((u,d)=>Ht(u,d),c),c.unstable_sxConfig=m({},cc,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(d){return Ks({sx:d,theme:this})},c}function X2(...e){return js(...e)}function J2(e,...t){return js(Ht({unstable_strictMode:!0},e),...t)}let Vy=!1;function eD(e){return Vy||(console.warn(["MUI: createStyles from @mui/material/styles is deprecated.","Please use @mui/styles/createStyles"].join(` -`)),Vy=!0),e}function Uy(e){return String(parseFloat(e)).length===String(e).length}function wg(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function co(e){return parseFloat(e)}function tD(e){return(t,n)=>{const r=wg(t);if(r===n)return t;let o=co(t);r!=="px"&&(r==="em"||r==="rem")&&(o=co(t)*co(e));let s=o;if(n!=="px")if(n==="em")s=o/co(e);else if(n==="rem")s=o/co(e);else return t;return parseFloat(s.toFixed(5))+n}}function nD({size:e,grid:t}){const n=e-e%t,r=n+t;return e-n{let c=t+i*l;s!==null&&(c=s(c)),a[`@media (min-width:${l}px)`]={[e]:`${Math.round(c*1e4)/1e4}${r}`}}),a}function sD(e,t={}){const{breakpoints:n=["sm","md","lg"],disableAlign:r=!1,factor:o=2,variants:s=["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]}=t,a=m({},e);a.typography=m({},a.typography);const i=a.typography,l=tD(i.htmlFontSize),c=n.map(u=>a.breakpoints.values[u]);return s.forEach(u=>{const d=i[u],f=parseFloat(l(d.fontSize,"rem"));if(f<=1)return;const b=f,w=1+(b-1)/o;let{lineHeight:p}=d;if(!Uy(p)&&!r)throw new Error(An(6));Uy(p)||(p=parseFloat(l(p,"rem"))/parseFloat(f));let S=null;r||(S=h=>nD({size:h,grid:rD({pixels:4,lineHeight:p,htmlFontSize:i.htmlFontSize})})),i[u]=m({},d,oD({cssProperty:"fontSize",min:w,max:b,unit:"rem",breakpoints:c,transform:S}))}),a}const gf=js();function Xt(){const e=pi(gf);return e[So]||e}function ve({props:e,name:t}){return qC({props:e,name:t,defaultTheme:gf,themeId:So})}const Nr=e=>sl(e)&&e!=="classes",aD=sl,V=GC({themeId:So,defaultTheme:gf,rootShouldForwardProp:Nr}),iD=["theme"];function lD(e){let{theme:t}=e,n=q(e,iD);const r=t[So];return P.jsx(tw,m({},n,{themeId:r?So:void 0,theme:r||t}))}function cD(){throw new Error(An(14))}function uD(){throw new Error(An(15))}function dD(){throw new Error(An(16))}function sw(e){var t;return!!e[0].match(/(cssVarPrefix|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const Ju=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},fD=["colorSchemes","cssVarPrefix","shouldSkipGeneratingVar"],pD=["palette"],hD=[...Array(25)].map((e,t)=>{if(t===0)return;const n=Ju(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function mD(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function ce(e,t,n){!e[t]&&n&&(e[t]=n)}function Lo(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Vi(e[t],`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). -To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, e.g. "12 12 12") or undefined if you want to remove the channel token.`))}const Ur=e=>{try{return e()}catch{}},gD=(e="mui")=>m2(e);function aw(e={},...t){var n,r,o,s,a,i;const{colorSchemes:l={},cssVarPrefix:c="mui",shouldSkipGeneratingVar:u=sw}=e,d=q(e,fD),f=gD(c),b=js(m({},d,l.light&&{palette:(n=l.light)==null?void 0:n.palette})),{palette:w}=b,p=q(b,pD),{palette:S}=js({palette:m({mode:"dark"},(r=l.dark)==null?void 0:r.palette)});let h=m({},p,{cssVarPrefix:c,getCssVar:f,colorSchemes:m({},l,{light:m({},l.light,{palette:w,opacity:m({inputPlaceholder:.42,inputUnderline:.42,switchTrackDisabled:.12,switchTrack:.38},(o=l.light)==null?void 0:o.opacity),overlays:((s=l.light)==null?void 0:s.overlays)||[]}),dark:m({},l.dark,{palette:S,opacity:m({inputPlaceholder:.5,inputUnderline:.7,switchTrackDisabled:.2,switchTrack:.3},(a=l.dark)==null?void 0:a.opacity),overlays:((i=l.dark)==null?void 0:i.overlays)||hD})})});Object.keys(h.colorSchemes).forEach(T=>{const v=h.colorSchemes[T].palette,k=M=>{const $=M.split("-"),R=$[1],E=$[2];return f(M,v[R][E])};if(T==="light"?(ce(v.common,"background","#fff"),ce(v.common,"onBackground","#000")):(ce(v.common,"background","#000"),ce(v.common,"onBackground","#fff")),mD(v,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),T==="light"){ce(v.Alert,"errorColor",kt(v.error.light,.6)),ce(v.Alert,"infoColor",kt(v.info.light,.6)),ce(v.Alert,"successColor",kt(v.success.light,.6)),ce(v.Alert,"warningColor",kt(v.warning.light,.6)),ce(v.Alert,"errorFilledBg",k("palette-error-main")),ce(v.Alert,"infoFilledBg",k("palette-info-main")),ce(v.Alert,"successFilledBg",k("palette-success-main")),ce(v.Alert,"warningFilledBg",k("palette-warning-main")),ce(v.Alert,"errorFilledColor",Ur(()=>w.getContrastText(v.error.main))),ce(v.Alert,"infoFilledColor",Ur(()=>w.getContrastText(v.info.main))),ce(v.Alert,"successFilledColor",Ur(()=>w.getContrastText(v.success.main))),ce(v.Alert,"warningFilledColor",Ur(()=>w.getContrastText(v.warning.main))),ce(v.Alert,"errorStandardBg",Tt(v.error.light,.9)),ce(v.Alert,"infoStandardBg",Tt(v.info.light,.9)),ce(v.Alert,"successStandardBg",Tt(v.success.light,.9)),ce(v.Alert,"warningStandardBg",Tt(v.warning.light,.9)),ce(v.Alert,"errorIconColor",k("palette-error-main")),ce(v.Alert,"infoIconColor",k("palette-info-main")),ce(v.Alert,"successIconColor",k("palette-success-main")),ce(v.Alert,"warningIconColor",k("palette-warning-main")),ce(v.AppBar,"defaultBg",k("palette-grey-100")),ce(v.Avatar,"defaultBg",k("palette-grey-400")),ce(v.Button,"inheritContainedBg",k("palette-grey-300")),ce(v.Button,"inheritContainedHoverBg",k("palette-grey-A100")),ce(v.Chip,"defaultBorder",k("palette-grey-400")),ce(v.Chip,"defaultAvatarColor",k("palette-grey-700")),ce(v.Chip,"defaultIconColor",k("palette-grey-700")),ce(v.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ce(v.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ce(v.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ce(v.LinearProgress,"primaryBg",Tt(v.primary.main,.62)),ce(v.LinearProgress,"secondaryBg",Tt(v.secondary.main,.62)),ce(v.LinearProgress,"errorBg",Tt(v.error.main,.62)),ce(v.LinearProgress,"infoBg",Tt(v.info.main,.62)),ce(v.LinearProgress,"successBg",Tt(v.success.main,.62)),ce(v.LinearProgress,"warningBg",Tt(v.warning.main,.62)),ce(v.Skeleton,"bg",`rgba(${k("palette-text-primaryChannel")} / 0.11)`),ce(v.Slider,"primaryTrack",Tt(v.primary.main,.62)),ce(v.Slider,"secondaryTrack",Tt(v.secondary.main,.62)),ce(v.Slider,"errorTrack",Tt(v.error.main,.62)),ce(v.Slider,"infoTrack",Tt(v.info.main,.62)),ce(v.Slider,"successTrack",Tt(v.success.main,.62)),ce(v.Slider,"warningTrack",Tt(v.warning.main,.62));const M=Ui(v.background.default,.8);ce(v.SnackbarContent,"bg",M),ce(v.SnackbarContent,"color",Ur(()=>w.getContrastText(M))),ce(v.SpeedDialAction,"fabHoverBg",Ui(v.background.paper,.15)),ce(v.StepConnector,"border",k("palette-grey-400")),ce(v.StepContent,"border",k("palette-grey-400")),ce(v.Switch,"defaultColor",k("palette-common-white")),ce(v.Switch,"defaultDisabledColor",k("palette-grey-100")),ce(v.Switch,"primaryDisabledColor",Tt(v.primary.main,.62)),ce(v.Switch,"secondaryDisabledColor",Tt(v.secondary.main,.62)),ce(v.Switch,"errorDisabledColor",Tt(v.error.main,.62)),ce(v.Switch,"infoDisabledColor",Tt(v.info.main,.62)),ce(v.Switch,"successDisabledColor",Tt(v.success.main,.62)),ce(v.Switch,"warningDisabledColor",Tt(v.warning.main,.62)),ce(v.TableCell,"border",Tt(zc(v.divider,1),.88)),ce(v.Tooltip,"bg",zc(v.grey[700],.92))}else{ce(v.Alert,"errorColor",Tt(v.error.light,.6)),ce(v.Alert,"infoColor",Tt(v.info.light,.6)),ce(v.Alert,"successColor",Tt(v.success.light,.6)),ce(v.Alert,"warningColor",Tt(v.warning.light,.6)),ce(v.Alert,"errorFilledBg",k("palette-error-dark")),ce(v.Alert,"infoFilledBg",k("palette-info-dark")),ce(v.Alert,"successFilledBg",k("palette-success-dark")),ce(v.Alert,"warningFilledBg",k("palette-warning-dark")),ce(v.Alert,"errorFilledColor",Ur(()=>S.getContrastText(v.error.dark))),ce(v.Alert,"infoFilledColor",Ur(()=>S.getContrastText(v.info.dark))),ce(v.Alert,"successFilledColor",Ur(()=>S.getContrastText(v.success.dark))),ce(v.Alert,"warningFilledColor",Ur(()=>S.getContrastText(v.warning.dark))),ce(v.Alert,"errorStandardBg",kt(v.error.light,.9)),ce(v.Alert,"infoStandardBg",kt(v.info.light,.9)),ce(v.Alert,"successStandardBg",kt(v.success.light,.9)),ce(v.Alert,"warningStandardBg",kt(v.warning.light,.9)),ce(v.Alert,"errorIconColor",k("palette-error-main")),ce(v.Alert,"infoIconColor",k("palette-info-main")),ce(v.Alert,"successIconColor",k("palette-success-main")),ce(v.Alert,"warningIconColor",k("palette-warning-main")),ce(v.AppBar,"defaultBg",k("palette-grey-900")),ce(v.AppBar,"darkBg",k("palette-background-paper")),ce(v.AppBar,"darkColor",k("palette-text-primary")),ce(v.Avatar,"defaultBg",k("palette-grey-600")),ce(v.Button,"inheritContainedBg",k("palette-grey-800")),ce(v.Button,"inheritContainedHoverBg",k("palette-grey-700")),ce(v.Chip,"defaultBorder",k("palette-grey-700")),ce(v.Chip,"defaultAvatarColor",k("palette-grey-300")),ce(v.Chip,"defaultIconColor",k("palette-grey-300")),ce(v.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ce(v.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ce(v.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ce(v.LinearProgress,"primaryBg",kt(v.primary.main,.5)),ce(v.LinearProgress,"secondaryBg",kt(v.secondary.main,.5)),ce(v.LinearProgress,"errorBg",kt(v.error.main,.5)),ce(v.LinearProgress,"infoBg",kt(v.info.main,.5)),ce(v.LinearProgress,"successBg",kt(v.success.main,.5)),ce(v.LinearProgress,"warningBg",kt(v.warning.main,.5)),ce(v.Skeleton,"bg",`rgba(${k("palette-text-primaryChannel")} / 0.13)`),ce(v.Slider,"primaryTrack",kt(v.primary.main,.5)),ce(v.Slider,"secondaryTrack",kt(v.secondary.main,.5)),ce(v.Slider,"errorTrack",kt(v.error.main,.5)),ce(v.Slider,"infoTrack",kt(v.info.main,.5)),ce(v.Slider,"successTrack",kt(v.success.main,.5)),ce(v.Slider,"warningTrack",kt(v.warning.main,.5));const M=Ui(v.background.default,.98);ce(v.SnackbarContent,"bg",M),ce(v.SnackbarContent,"color",Ur(()=>S.getContrastText(M))),ce(v.SpeedDialAction,"fabHoverBg",Ui(v.background.paper,.15)),ce(v.StepConnector,"border",k("palette-grey-600")),ce(v.StepContent,"border",k("palette-grey-600")),ce(v.Switch,"defaultColor",k("palette-grey-300")),ce(v.Switch,"defaultDisabledColor",k("palette-grey-600")),ce(v.Switch,"primaryDisabledColor",kt(v.primary.main,.55)),ce(v.Switch,"secondaryDisabledColor",kt(v.secondary.main,.55)),ce(v.Switch,"errorDisabledColor",kt(v.error.main,.55)),ce(v.Switch,"infoDisabledColor",kt(v.info.main,.55)),ce(v.Switch,"successDisabledColor",kt(v.success.main,.55)),ce(v.Switch,"warningDisabledColor",kt(v.warning.main,.55)),ce(v.TableCell,"border",kt(zc(v.divider,1),.68)),ce(v.Tooltip,"bg",zc(v.grey[700],.92))}Lo(v.background,"default"),Lo(v.common,"background"),Lo(v.common,"onBackground"),Lo(v,"divider"),Object.keys(v).forEach(M=>{const $=v[M];$&&typeof $=="object"&&($.main&&ce(v[M],"mainChannel",Vi($.main)),$.light&&ce(v[M],"lightChannel",Vi($.light)),$.dark&&ce(v[M],"darkChannel",Vi($.dark)),$.contrastText&&ce(v[M],"contrastTextChannel",Vi($.contrastText)),M==="text"&&(Lo(v[M],"primary"),Lo(v[M],"secondary")),M==="action"&&($.active&&Lo(v[M],"active"),$.selected&&Lo(v[M],"selected")))})}),h=t.reduce((T,v)=>Ht(T,v),h);const g={prefix:c,shouldSkipGeneratingVar:u},{vars:C,generateCssVars:x}=x2(h,g);return h.vars=C,h.generateCssVars=x,h.shouldSkipGeneratingVar=u,h.unstable_sxConfig=m({},cc,d==null?void 0:d.unstable_sxConfig),h.unstable_sx=function(v){return Ks({sx:v,theme:this})},h}const vD=e=>[...[...Array(24)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n+1}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],iw=vD,yD=aw(),{CssVarsProvider:bD,useColorScheme:xD,getInitColorSchemeScript:CD}=h2({themeId:So,theme:yD,attribute:"data-mui-color-scheme",modeStorageKey:"mui-mode",colorSchemeStorageKey:"mui-color-scheme",defaultColorScheme:{light:"light",dark:"dark"},resolveTheme:e=>{const t=m({},e,{typography:xg(e.palette,e.typography)});return t.unstable_sx=function(r){return Ks({sx:r,theme:this})},t},excludeVariablesFromRoot:iw});function wD(){throw new Error(An(20))}const uH=Object.freeze(Object.defineProperty({__proto__:null,Experimental_CssVarsProvider:bD,StyledEngineProvider:YR,THEME_ID:So,ThemeProvider:lD,adaptV4Theme:E2,alpha:We,createMuiTheme:X2,createStyles:eD,createTheme:js,css:ko,darken:To,decomposeColor:oo,duration:Cg,easing:ow,emphasize:Xu,experimentalStyled:V,experimental_extendTheme:aw,experimental_sx:wD,getContrastRatio:JC,getInitColorSchemeScript:CD,getLuminance:Qu,getOverlayAlpha:Ju,hexToRgb:QC,hslToRgb:XC,keyframes:Ar,lighten:Po,makeStyles:cD,private_createTypography:xg,private_excludeVariablesFromRoot:iw,recomposeColor:uc,responsiveFontSizes:sD,rgbToHex:o2,shouldSkipGeneratingVar:sw,styled:V,unstable_createMuiStrictModeTheme:J2,unstable_getUnit:wg,unstable_toUnitless:co,useColorScheme:xD,useTheme:Xt,useThemeProps:ve,withStyles:uD,withTheme:dD},Symbol.toStringTag,{value:"Module"}));function SD(e){return Ce("MuiSvgIcon",e)}be("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const kD=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],TD=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ne(t)}`,`fontSize${ne(n)}`]};return xe(o,SD,r)},PD=V("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ne(n.color)}`],t[`fontSize${ne(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,s,a,i,l,c,u,d,f,b,w;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(a=s.pxToRem)==null?void 0:a.call(s,20))||"1.25rem",medium:((i=e.typography)==null||(l=i.pxToRem)==null?void 0:l.call(i,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(d=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?d:{action:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.active,disabled:(w=(e.vars||e).palette)==null||(w=w.action)==null?void 0:w.disabled,inherit:void 0}[t.color]}}),Eh=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:a="inherit",component:i="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24"}=r,b=q(r,kD),w=y.isValidElement(o)&&o.type==="svg",p=m({},r,{color:a,component:i,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:w}),S={};u||(S.viewBox=f);const h=TD(p);return P.jsxs(PD,m({as:i,className:ae(h.root,s),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},S,b,w&&o.props,{ownerState:p,children:[w?o.props.children:o,d?P.jsx("title",{children:d}):null]}))});Eh.muiName="SvgIcon";function St(e,t){function n(r,o){return P.jsx(Eh,m({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=Eh.muiName,y.memo(y.forwardRef(n))}const MD={configure:e=>{tg.configure(e)}},dH=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ne,createChainedFunction:Th,createSvgIcon:St,debounce:ac,deprecatedPropType:PM,isMuiElement:rl,ownerDocument:Ft,ownerWindow:ro,requirePropFactory:MM,setRef:El,unstable_ClassNameGenerator:MD,unstable_useEnhancedEffect:Zt,unstable_useId:gr,unsupportedProp:$M,useControlled:yn,useEventCallback:Ie,useForkRef:ut,useIsFocusVisible:Yd},Symbol.toStringTag,{value:"Module"}));function _h(e,t){return _h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},_h(e,t)}function Sg(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_h(e,t)}function RD(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function $D(e,t){e.classList?e.classList.add(t):RD(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Wy(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function DD(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Wy(e.className,t):e.setAttribute("class",Wy(e.className&&e.className.baseVal||"",t))}const Hy={disabled:!1},ed=ur.createContext(null);var lw=function(t){return t.scrollTop},Wi="unmounted",xs="exited",Cs="entering",sa="entered",Ih="exiting",Cr=function(e){Sg(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var a=o,i=a&&!a.isMounting?r.enter:r.appear,l;return s.appearStatus=null,r.in?i?(l=xs,s.appearStatus=Cs):l=sa:r.unmountOnExit||r.mountOnEnter?l=Wi:l=xs,s.state={status:l},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var a=o.in;return a&&s.status===Wi?{status:xs}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var s=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Cs&&a!==sa&&(s=Cs):(a===Cs||a===sa)&&(s=Ih)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,s,a,i;return s=a=i=o,o!=null&&typeof o!="number"&&(s=o.exit,a=o.enter,i=o.appear!==void 0?o.appear:a),{exit:s,enter:a,appear:i}},n.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===Cs){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Fc.findDOMNode(this);a&&lw(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===xs&&this.setState({status:Wi})},n.performEnter=function(o){var s=this,a=this.props.enter,i=this.context?this.context.isMounting:o,l=this.props.nodeRef?[i]:[Fc.findDOMNode(this),i],c=l[0],u=l[1],d=this.getTimeouts(),f=i?d.appear:d.enter;if(!o&&!a||Hy.disabled){this.safeSetState({status:sa},function(){s.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Cs},function(){s.props.onEntering(c,u),s.onTransitionEnd(f,function(){s.safeSetState({status:sa},function(){s.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,s=this.props.exit,a=this.getTimeouts(),i=this.props.nodeRef?void 0:Fc.findDOMNode(this);if(!s||Hy.disabled){this.safeSetState({status:xs},function(){o.props.onExited(i)});return}this.props.onExit(i),this.safeSetState({status:Ih},function(){o.props.onExiting(i),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:xs},function(){o.props.onExited(i)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},n.setNextCallback=function(o){var s=this,a=!0;return this.nextCallback=function(i){a&&(a=!1,s.nextCallback=null,o(i))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,s){this.setNextCallback(s);var a=this.props.nodeRef?this.props.nodeRef.current:Fc.findDOMNode(this),i=o==null&&!this.props.addEndListener;if(!a||i){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Wi)return null;var s=this.props,a=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var i=q(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ur.createElement(ed.Provider,{value:null},typeof a=="function"?a(o,i):ur.cloneElement(ur.Children.only(a),i))},t}(ur.Component);Cr.contextType=ed;Cr.propTypes={};function ra(){}Cr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ra,onEntering:ra,onEntered:ra,onExit:ra,onExiting:ra,onExited:ra};Cr.UNMOUNTED=Wi;Cr.EXITED=xs;Cr.ENTERING=Cs;Cr.ENTERED=sa;Cr.EXITING=Ih;var ED=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return $D(t,r)})},gp=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return DD(t,r)})},kg=function(e){Sg(t,e);function t(){for(var r,o=arguments.length,s=new Array(o),a=0;ae.scrollTop;function Xa(e,t){var n,r;const{timeout:o,easing:s,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof s=="object"?s[t.mode]:s,delay:a.transitionDelay}}function uw(e){return Ce("MuiCollapse",e)}const jD=be("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]),FD=jD,BD=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],zD=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return xe(r,uw,n)},VD=V("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>m({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&m({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),UD=V("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>m({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),WD=V("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>m({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),dw=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiCollapse"}),{addEndListener:o,children:s,className:a,collapsedSize:i="0px",component:l,easing:c,in:u,onEnter:d,onEntered:f,onEntering:b,onExit:w,onExited:p,onExiting:S,orientation:h="vertical",style:g,timeout:C=Cg.standard,TransitionComponent:x=Cr}=r,T=q(r,BD),v=m({},r,{orientation:h,collapsedSize:i}),k=zD(v),M=Xt(),$=y.useRef(),R=y.useRef(null),E=y.useRef(),A=typeof i=="number"?`${i}px`:i,N=h==="horizontal",_=N?"width":"height";y.useEffect(()=>()=>{clearTimeout($.current)},[]);const D=y.useRef(null),O=ut(n,D),j=K=>H=>{if(K){const oe=D.current;H===void 0?K(oe):K(oe,H)}},I=()=>R.current?R.current[N?"clientWidth":"clientHeight"]:0,L=j((K,H)=>{R.current&&N&&(R.current.style.position="absolute"),K.style[_]=A,d&&d(K,H)}),F=j((K,H)=>{const oe=I();R.current&&N&&(R.current.style.position="");const{duration:me,easing:ye}=Xa({style:g,timeout:C,easing:c},{mode:"enter"});if(C==="auto"){const ee=M.transitions.getAutoHeightDuration(oe);K.style.transitionDuration=`${ee}ms`,E.current=ee}else K.style.transitionDuration=typeof me=="string"?me:`${me}ms`;K.style[_]=`${oe}px`,K.style.transitionTimingFunction=ye,b&&b(K,H)}),J=j((K,H)=>{K.style[_]="auto",f&&f(K,H)}),ie=j(K=>{K.style[_]=`${I()}px`,w&&w(K)}),ue=j(p),U=j(K=>{const H=I(),{duration:oe,easing:me}=Xa({style:g,timeout:C,easing:c},{mode:"exit"});if(C==="auto"){const ye=M.transitions.getAutoHeightDuration(H);K.style.transitionDuration=`${ye}ms`,E.current=ye}else K.style.transitionDuration=typeof oe=="string"?oe:`${oe}ms`;K.style[_]=A,K.style.transitionTimingFunction=me,S&&S(K)}),Q=K=>{C==="auto"&&($.current=setTimeout(K,E.current||0)),o&&o(D.current,K)};return P.jsx(x,m({in:u,onEnter:L,onEntered:J,onEntering:F,onExit:ie,onExited:ue,onExiting:U,addEndListener:Q,nodeRef:D,timeout:C==="auto"?null:C},T,{children:(K,H)=>P.jsx(VD,m({as:l,className:ae(k.root,a,{entered:k.entered,exited:!u&&A==="0px"&&k.hidden}[K]),style:m({[N?"minWidth":"minHeight"]:A},g),ownerState:m({},v,{state:K}),ref:O},H,{children:P.jsx(UD,{ownerState:m({},v,{state:K}),className:k.wrapper,ref:R,children:P.jsx(WD,{ownerState:m({},v,{state:K}),className:k.wrapperInner,children:s})})}))}))});dw.muiSupportAuto=!0;const fH=Object.freeze(Object.defineProperty({__proto__:null,collapseClasses:FD,default:dw,getCollapseUtilityClass:uw},Symbol.toStringTag,{value:"Module"}));function fw(e){return Ce("MuiPaper",e)}const HD=be("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]),YD=HD,KD=["className","component","elevation","square","variant"],GD=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return xe(s,fw,o)},ZD=V("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return m({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&m({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${We("#fff",Ju(t.elevation))}, ${We("#fff",Ju(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),jr=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiPaper"}),{className:o,component:s="div",elevation:a=1,square:i=!1,variant:l="elevation"}=r,c=q(r,KD),u=m({},r,{component:s,elevation:a,square:i,variant:l}),d=GD(u);return P.jsx(ZD,m({as:s,ownerState:u,className:ae(d.root,o),ref:n},c))}),pH=Object.freeze(Object.defineProperty({__proto__:null,default:jr,getPaperUtilityClass:fw,paperClasses:YD},Symbol.toStringTag,{value:"Module"}));function qD(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:s,rippleSize:a,in:i,onExited:l,timeout:c}=e,[u,d]=y.useState(!1),f=ae(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),b={width:a,height:a,top:-(a/2)+s,left:-(a/2)+o},w=ae(n.child,u&&n.childLeaving,r&&n.childPulsate);return!i&&!u&&d(!0),y.useEffect(()=>{if(!i&&l!=null){const p=setTimeout(l,c);return()=>{clearTimeout(p)}}},[l,i,c]),P.jsx("span",{className:f,style:b,children:P.jsx("span",{className:w})})}const ir=be("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),QD=["center","classes","className"];let vf=e=>e,Yy,Ky,Gy,Zy;const Oh=550,XD=80,JD=Ar(Yy||(Yy=vf` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`)),eE=Ar(Ky||(Ky=vf` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`)),tE=Ar(Gy||(Gy=vf` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`)),nE=V("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),rE=V(qD,{name:"MuiTouchRipple",slot:"Ripple"})(Zy||(Zy=vf` - opacity: 0; - position: absolute; - - &.${0} { - opacity: 0.3; - transform: scale(1); - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - &.${0} { - animation-duration: ${0}ms; - } - - & .${0} { - opacity: 1; - display: block; - width: 100%; - height: 100%; - border-radius: 50%; - background-color: currentColor; - } - - & .${0} { - opacity: 0; - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - & .${0} { - position: absolute; - /* @noflip */ - left: 0px; - top: 0; - animation-name: ${0}; - animation-duration: 2500ms; - animation-timing-function: ${0}; - animation-iteration-count: infinite; - animation-delay: 200ms; - } -`),ir.rippleVisible,JD,Oh,({theme:e})=>e.transitions.easing.easeInOut,ir.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ir.child,ir.childLeaving,eE,Oh,({theme:e})=>e.transitions.easing.easeInOut,ir.childPulsate,tE,({theme:e})=>e.transitions.easing.easeInOut),oE=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:a}=r,i=q(r,QD),[l,c]=y.useState([]),u=y.useRef(0),d=y.useRef(null);y.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const f=y.useRef(!1),b=y.useRef(0),w=y.useRef(null),p=y.useRef(null);y.useEffect(()=>()=>{b.current&&clearTimeout(b.current)},[]);const S=y.useCallback(x=>{const{pulsate:T,rippleX:v,rippleY:k,rippleSize:M,cb:$}=x;c(R=>[...R,P.jsx(rE,{classes:{ripple:ae(s.ripple,ir.ripple),rippleVisible:ae(s.rippleVisible,ir.rippleVisible),ripplePulsate:ae(s.ripplePulsate,ir.ripplePulsate),child:ae(s.child,ir.child),childLeaving:ae(s.childLeaving,ir.childLeaving),childPulsate:ae(s.childPulsate,ir.childPulsate)},timeout:Oh,pulsate:T,rippleX:v,rippleY:k,rippleSize:M},u.current)]),u.current+=1,d.current=$},[s]),h=y.useCallback((x={},T={},v=()=>{})=>{const{pulsate:k=!1,center:M=o||T.pulsate,fakeElement:$=!1}=T;if((x==null?void 0:x.type)==="mousedown"&&f.current){f.current=!1;return}(x==null?void 0:x.type)==="touchstart"&&(f.current=!0);const R=$?null:p.current,E=R?R.getBoundingClientRect():{width:0,height:0,left:0,top:0};let A,N,_;if(M||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)A=Math.round(E.width/2),N=Math.round(E.height/2);else{const{clientX:D,clientY:O}=x.touches&&x.touches.length>0?x.touches[0]:x;A=Math.round(D-E.left),N=Math.round(O-E.top)}if(M)_=Math.sqrt((2*E.width**2+E.height**2)/3),_%2===0&&(_+=1);else{const D=Math.max(Math.abs((R?R.clientWidth:0)-A),A)*2+2,O=Math.max(Math.abs((R?R.clientHeight:0)-N),N)*2+2;_=Math.sqrt(D**2+O**2)}x!=null&&x.touches?w.current===null&&(w.current=()=>{S({pulsate:k,rippleX:A,rippleY:N,rippleSize:_,cb:v})},b.current=setTimeout(()=>{w.current&&(w.current(),w.current=null)},XD)):S({pulsate:k,rippleX:A,rippleY:N,rippleSize:_,cb:v})},[o,S]),g=y.useCallback(()=>{h({},{pulsate:!0})},[h]),C=y.useCallback((x,T)=>{if(clearTimeout(b.current),(x==null?void 0:x.type)==="touchend"&&w.current){w.current(),w.current=null,b.current=setTimeout(()=>{C(x,T)});return}w.current=null,c(v=>v.length>0?v.slice(1):v),d.current=T},[]);return y.useImperativeHandle(n,()=>({pulsate:g,start:h,stop:C}),[g,h,C]),P.jsx(nE,m({className:ae(ir.root,s.root,a),ref:p},i,{children:P.jsx(dc,{component:null,exit:!0,children:l})}))});function sE(e){return Ce("MuiButtonBase",e)}const aE=be("MuiButtonBase",["root","disabled","focusVisible"]),iE=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],lE=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=xe({root:["root",t&&"disabled",n&&"focusVisible"]},sE,o);return n&&r&&(a.root+=` ${r}`),a},cE=V("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${aE.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Qn=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:s=!1,children:a,className:i,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:f=!1,LinkComponent:b="a",onBlur:w,onClick:p,onContextMenu:S,onDragLeave:h,onFocus:g,onFocusVisible:C,onKeyDown:x,onKeyUp:T,onMouseDown:v,onMouseLeave:k,onMouseUp:M,onTouchEnd:$,onTouchMove:R,onTouchStart:E,tabIndex:A=0,TouchRippleProps:N,touchRippleRef:_,type:D}=r,O=q(r,iE),j=y.useRef(null),I=y.useRef(null),L=ut(I,_),{isFocusVisibleRef:F,onFocus:J,onBlur:ie,ref:ue}=Yd(),[U,Q]=y.useState(!1);c&&U&&Q(!1),y.useImperativeHandle(o,()=>({focusVisible:()=>{Q(!0),j.current.focus()}}),[]);const[K,H]=y.useState(!1);y.useEffect(()=>{H(!0)},[]);const oe=K&&!u&&!c;y.useEffect(()=>{U&&f&&!u&&K&&I.current.pulsate()},[u,f,U,K]);function me(ke,qe,yt=d){return Ie(wt=>(qe&&qe(wt),!yt&&I.current&&I.current[ke](wt),!0))}const ye=me("start",v),ee=me("stop",S),pe=me("stop",h),X=me("stop",M),he=me("stop",ke=>{U&&ke.preventDefault(),k&&k(ke)}),se=me("start",E),Oe=me("stop",$),Re=me("stop",R),ge=me("stop",ke=>{ie(ke),F.current===!1&&Q(!1),w&&w(ke)},!1),$e=Ie(ke=>{j.current||(j.current=ke.currentTarget),J(ke),F.current===!0&&(Q(!0),C&&C(ke)),g&&g(ke)}),G=()=>{const ke=j.current;return l&&l!=="button"&&!(ke.tagName==="A"&&ke.href)},Z=y.useRef(!1),te=Ie(ke=>{f&&!Z.current&&U&&I.current&&ke.key===" "&&(Z.current=!0,I.current.stop(ke,()=>{I.current.start(ke)})),ke.target===ke.currentTarget&&G()&&ke.key===" "&&ke.preventDefault(),x&&x(ke),ke.target===ke.currentTarget&&G()&&ke.key==="Enter"&&!c&&(ke.preventDefault(),p&&p(ke))}),De=Ie(ke=>{f&&ke.key===" "&&I.current&&U&&!ke.defaultPrevented&&(Z.current=!1,I.current.stop(ke,()=>{I.current.pulsate(ke)})),T&&T(ke),p&&ke.target===ke.currentTarget&&G()&&ke.key===" "&&!ke.defaultPrevented&&p(ke)});let Ae=l;Ae==="button"&&(O.href||O.to)&&(Ae=b);const He={};Ae==="button"?(He.type=D===void 0?"button":D,He.disabled=c):(!O.href&&!O.to&&(He.role="button"),c&&(He["aria-disabled"]=c));const Ue=ut(n,ue,j),Ee=m({},r,{centerRipple:s,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:f,tabIndex:A,focusVisible:U}),we=lE(Ee);return P.jsxs(cE,m({as:Ae,className:ae(we.root,i),ownerState:Ee,onBlur:ge,onClick:p,onContextMenu:ee,onFocus:$e,onKeyDown:te,onKeyUp:De,onMouseDown:ye,onMouseLeave:he,onMouseUp:X,onDragLeave:pe,onTouchEnd:Oe,onTouchMove:Re,onTouchStart:se,ref:Ue,tabIndex:c?-1:A,type:D},He,O,{children:[a,oe?P.jsx(oE,m({ref:L,center:s},N)):null]}))});function uE(e){return Ce("MuiAlert",e)}const qy=be("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function pw(e){return Ce("MuiIconButton",e)}const hw=be("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),dE=["edge","children","className","color","disabled","disableFocusRipple","size"],fE=e=>{const{classes:t,disabled:n,color:r,edge:o,size:s}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${ne(r)}`,o&&`edge${ne(o)}`,`size${ne(s)}`]};return xe(a,pw,t)},pE=V(Qn,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ne(n.color)}`],n.edge&&t[`edge${ne(n.edge)}`],t[`size${ne(n.size)}`]]}})(({theme:e,ownerState:t})=>m({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:We(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return m({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&m({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":m({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:We(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${hw.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Dn=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiIconButton"}),{edge:o=!1,children:s,className:a,color:i="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium"}=r,d=q(r,dE),f=m({},r,{edge:o,color:i,disabled:l,disableFocusRipple:c,size:u}),b=fE(f);return P.jsx(pE,m({className:ae(b.root,a),centerRipple:!0,focusRipple:!c,disabled:l,ref:n,ownerState:f},d,{children:s}))}),hH=Object.freeze(Object.defineProperty({__proto__:null,default:Dn,getIconButtonUtilityClass:pw,iconButtonClasses:hw},Symbol.toStringTag,{value:"Module"})),hE=St(P.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),mE=St(P.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),gE=St(P.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),vE=St(P.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),mw=St(P.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),yE=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],bE=e=>{const{variant:t,color:n,severity:r,classes:o}=e,s={root:["root",`${t}${ne(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return xe(s,uE,o)},xE=V(jr,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ne(n.color||n.severity)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?To:Po,r=e.palette.mode==="light"?Po:To,o=t.color||t.severity;return m({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&t.variant==="standard"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:r(e.palette[o].light,.9),[`& .${qy.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="outlined"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${qy.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="filled"&&m({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}))}),CE=V("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),wE=V("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Qy=V("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Xy={success:P.jsx(hE,{fontSize:"inherit"}),warning:P.jsx(mE,{fontSize:"inherit"}),error:P.jsx(gE,{fontSize:"inherit"}),info:P.jsx(vE,{fontSize:"inherit"})},mH=y.forwardRef(function(t,n){var r,o,s,a,i,l;const c=ve({props:t,name:"MuiAlert"}),{action:u,children:d,className:f,closeText:b="Close",color:w,components:p={},componentsProps:S={},icon:h,iconMapping:g=Xy,onClose:C,role:x="alert",severity:T="success",slotProps:v={},slots:k={},variant:M="standard"}=c,$=q(c,yE),R=m({},c,{color:w,severity:T,variant:M}),E=bE(R),A=(r=(o=k.closeButton)!=null?o:p.CloseButton)!=null?r:Dn,N=(s=(a=k.closeIcon)!=null?a:p.CloseIcon)!=null?s:mw,_=(i=v.closeButton)!=null?i:S.closeButton,D=(l=v.closeIcon)!=null?l:S.closeIcon;return P.jsxs(xE,m({role:x,elevation:0,ownerState:R,className:ae(E.root,f),ref:n},$,{children:[h!==!1?P.jsx(CE,{ownerState:R,className:E.icon,children:h||g[T]||Xy[T]}):null,P.jsx(wE,{ownerState:R,className:E.message,children:d}),u!=null?P.jsx(Qy,{ownerState:R,className:E.action,children:u}):null,u==null&&C?P.jsx(Qy,{ownerState:R,className:E.action,children:P.jsx(A,m({size:"small","aria-label":b,title:b,color:"inherit",onClick:C},_,{children:P.jsx(N,m({fontSize:"small"},D))}))}):null]}))});function gw(e){return Ce("MuiTypography",e)}const SE=be("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),kE=SE,TE=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],PE=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:s,classes:a}=e,i={root:["root",s,e.align!=="inherit"&&`align${ne(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return xe(i,gw,a)},ME=V("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${ne(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>m({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Jy={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},RE={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},$E=e=>RE[e]||e,sn=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiTypography"}),o=$E(r.color),s=mf(m({},r,{color:o})),{align:a="inherit",className:i,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:d=!1,variant:f="body1",variantMapping:b=Jy}=s,w=q(s,TE),p=m({},s,{align:a,color:o,className:i,component:l,gutterBottom:c,noWrap:u,paragraph:d,variant:f,variantMapping:b}),S=l||(d?"p":b[f]||Jy[f])||"span",h=PE(p);return P.jsx(ME,m({as:S,ref:n,ownerState:p,className:ae(h.root,i)},w))}),gH=Object.freeze(Object.defineProperty({__proto__:null,default:sn,getTypographyUtilityClass:gw,typographyClasses:kE},Symbol.toStringTag,{value:"Module"}));function DE(e){return Ce("MuiAlertTitle",e)}be("MuiAlertTitle",["root"]);const EE=["className"],_E=e=>{const{classes:t}=e;return xe({root:["root"]},DE,t)},IE=V(sn,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2})),vH=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiAlertTitle"}),{className:o}=r,s=q(r,EE),a=r,i=_E(a);return P.jsx(IE,m({gutterBottom:!0,component:"div",ownerState:a,ref:n,className:ae(i.root,o)},s))});function OE(e){return Ce("MuiAppBar",e)}be("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const LE=["className","color","enableColorOnDark","position"],AE=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${ne(t)}`,`position${ne(n)}`]};return xe(o,OE,r)},Vc=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,NE=V(jr,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ne(n.position)}`],t[`color${ne(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return m({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&m({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&m({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&m({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Vc(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Vc(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Vc(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Vc(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),yH=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiAppBar"}),{className:o,color:s="primary",enableColorOnDark:a=!1,position:i="fixed"}=r,l=q(r,LE),c=m({},r,{color:s,position:i,enableColorOnDark:a}),u=AE(c);return P.jsx(NE,m({square:!0,component:"header",ownerState:c,elevation:4,className:ae(u.root,o,i==="fixed"&&"mui-fixed"),ref:n},l))});function Fs(e){return typeof e=="string"}function Hi(e,t,n){return e===void 0||Fs(e)?t:m({},t,{ownerState:m({},t.ownerState,n)})}const jE={disableDefaultClasses:!1},FE=y.createContext(jE);function BE(e){const{disableDefaultClasses:t}=y.useContext(FE);return n=>t?"":e(n)}function td(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function yf(e,t,n){return typeof e=="function"?e(t,n):e}function e0(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function zE(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:s}=e;if(!t){const b=ae(o==null?void 0:o.className,r==null?void 0:r.className,s,n==null?void 0:n.className),w=m({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=m({},n,o,r);return b.length>0&&(p.className=b),Object.keys(w).length>0&&(p.style=w),{props:p,internalRef:void 0}}const a=td(m({},o,r)),i=e0(r),l=e0(o),c=t(a),u=ae(c==null?void 0:c.className,n==null?void 0:n.className,s,o==null?void 0:o.className,r==null?void 0:r.className),d=m({},c==null?void 0:c.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=m({},c,n,l,i);return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}const VE=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ct(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:s=!1}=e,a=q(e,VE),i=s?{}:yf(r,o),{props:l,internalRef:c}=zE(m({},a,{externalSlotProps:i})),u=ut(c,i==null?void 0:i.ref,(t=e.additionalProps)==null?void 0:t.ref);return Hi(n,m({},l,{ref:u}),o)}function t0(e){return e.substring(2).toLowerCase()}function UE(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=ut(t.ref,i),d=Ie(w=>{const p=c.current;c.current=!1;const S=Ft(i.current);if(!l.current||!i.current||"clientX"in w&&UE(w,S))return;if(a.current){a.current=!1;return}let h;w.composedPath?h=w.composedPath().indexOf(i.current)>-1:h=!S.documentElement.contains(w.target)||i.current.contains(w.target),!h&&(n||!p)&&o(w)}),f=w=>p=>{c.current=!0;const S=t.props[w];S&&S(p)},b={ref:u};return s!==!1&&(b[s]=f(s)),y.useEffect(()=>{if(s!==!1){const w=t0(s),p=Ft(i.current),S=()=>{a.current=!0};return p.addEventListener(w,d),p.addEventListener("touchmove",S),()=>{p.removeEventListener(w,d),p.removeEventListener("touchmove",S)}}},[d,s]),r!==!1&&(b[r]=f(r)),y.useEffect(()=>{if(r!==!1){const w=t0(r),p=Ft(i.current);return p.addEventListener(w,d),()=>{p.removeEventListener(w,d)}}},[d,r]),P.jsx(y.Fragment,{children:y.cloneElement(t,b)})}const HE=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function YE(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function KE(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function GE(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||KE(e))}function ZE(e){const t=[],n=[];return Array.from(e.querySelectorAll(HE)).forEach((r,o)=>{const s=YE(r);s===-1||!GE(r)||(s===0?t.push(r):n.push({documentOrder:o,tabIndex:s,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function qE(){return!0}function vw(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:s=ZE,isEnabled:a=qE,open:i}=e,l=y.useRef(!1),c=y.useRef(null),u=y.useRef(null),d=y.useRef(null),f=y.useRef(null),b=y.useRef(!1),w=y.useRef(null),p=ut(t.ref,w),S=y.useRef(null);y.useEffect(()=>{!i||!w.current||(b.current=!n)},[n,i]),y.useEffect(()=>{if(!i||!w.current)return;const C=Ft(w.current);return w.current.contains(C.activeElement)||(w.current.hasAttribute("tabIndex")||w.current.setAttribute("tabIndex","-1"),b.current&&w.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[i]),y.useEffect(()=>{if(!i||!w.current)return;const C=Ft(w.current),x=k=>{S.current=k,!(r||!a()||k.key!=="Tab")&&C.activeElement===w.current&&k.shiftKey&&(l.current=!0,u.current&&u.current.focus())},T=()=>{const k=w.current;if(k===null)return;if(!C.hasFocus()||!a()||l.current){l.current=!1;return}if(k.contains(C.activeElement)||r&&C.activeElement!==c.current&&C.activeElement!==u.current)return;if(C.activeElement!==f.current)f.current=null;else if(f.current!==null)return;if(!b.current)return;let M=[];if((C.activeElement===c.current||C.activeElement===u.current)&&(M=s(w.current)),M.length>0){var $,R;const E=!!(($=S.current)!=null&&$.shiftKey&&((R=S.current)==null?void 0:R.key)==="Tab"),A=M[0],N=M[M.length-1];typeof A!="string"&&typeof N!="string"&&(E?N.focus():A.focus())}else k.focus()};C.addEventListener("focusin",T),C.addEventListener("keydown",x,!0);const v=setInterval(()=>{C.activeElement&&C.activeElement.tagName==="BODY"&&T()},50);return()=>{clearInterval(v),C.removeEventListener("focusin",T),C.removeEventListener("keydown",x,!0)}},[n,r,o,a,i,s]);const h=C=>{d.current===null&&(d.current=C.relatedTarget),b.current=!0,f.current=C.target;const x=t.props.onFocus;x&&x(C)},g=C=>{d.current===null&&(d.current=C.relatedTarget),b.current=!0};return P.jsxs(y.Fragment,{children:[P.jsx("div",{tabIndex:i?0:-1,onFocus:g,ref:c,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:p,onFocus:h}),P.jsx("div",{tabIndex:i?0:-1,onFocus:g,ref:u,"data-testid":"sentinelEnd"})]})}var On="top",vr="bottom",yr="right",Ln="left",Pg="auto",fc=[On,vr,yr,Ln],Ja="start",Ll="end",QE="clippingParents",yw="viewport",Ri="popper",XE="reference",n0=fc.reduce(function(e,t){return e.concat([t+"-"+Ja,t+"-"+Ll])},[]),bw=[].concat(fc,[Pg]).reduce(function(e,t){return e.concat([t,t+"-"+Ja,t+"-"+Ll])},[]),JE="beforeRead",e_="read",t_="afterRead",n_="beforeMain",r_="main",o_="afterMain",s_="beforeWrite",a_="write",i_="afterWrite",l_=[JE,e_,t_,n_,r_,o_,s_,a_,i_];function so(e){return e?(e.nodeName||"").toLowerCase():null}function Xn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Bs(e){var t=Xn(e).Element;return e instanceof t||e instanceof Element}function pr(e){var t=Xn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Mg(e){if(typeof ShadowRoot>"u")return!1;var t=Xn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function c_(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!pr(s)||!so(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(a){var i=o[a];i===!1?s.removeAttribute(a):s.setAttribute(a,i===!0?"":i)}))})}function u_(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],s=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),i=a.reduce(function(l,c){return l[c]="",l},{});!pr(o)||!so(o)||(Object.assign(o.style,i),Object.keys(s).forEach(function(l){o.removeAttribute(l)}))})}}const d_={name:"applyStyles",enabled:!0,phase:"write",fn:c_,effect:u_,requires:["computeStyles"]};function eo(e){return e.split("-")[0]}var Ds=Math.max,nd=Math.min,ei=Math.round;function Lh(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function xw(){return!/^((?!chrome|android).)*safari/i.test(Lh())}function ti(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&pr(e)&&(o=e.offsetWidth>0&&ei(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&ei(r.height)/e.offsetHeight||1);var a=Bs(e)?Xn(e):window,i=a.visualViewport,l=!xw()&&n,c=(r.left+(l&&i?i.offsetLeft:0))/o,u=(r.top+(l&&i?i.offsetTop:0))/s,d=r.width/o,f=r.height/s;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function Rg(e){var t=ti(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Cw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Mg(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Mo(e){return Xn(e).getComputedStyle(e)}function f_(e){return["table","td","th"].indexOf(so(e))>=0}function ds(e){return((Bs(e)?e.ownerDocument:e.document)||window.document).documentElement}function bf(e){return so(e)==="html"?e:e.assignedSlot||e.parentNode||(Mg(e)?e.host:null)||ds(e)}function r0(e){return!pr(e)||Mo(e).position==="fixed"?null:e.offsetParent}function p_(e){var t=/firefox/i.test(Lh()),n=/Trident/i.test(Lh());if(n&&pr(e)){var r=Mo(e);if(r.position==="fixed")return null}var o=bf(e);for(Mg(o)&&(o=o.host);pr(o)&&["html","body"].indexOf(so(o))<0;){var s=Mo(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function pc(e){for(var t=Xn(e),n=r0(e);n&&f_(n)&&Mo(n).position==="static";)n=r0(n);return n&&(so(n)==="html"||so(n)==="body"&&Mo(n).position==="static")?t:n||p_(e)||t}function $g(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function al(e,t,n){return Ds(e,nd(t,n))}function h_(e,t,n){var r=al(e,t,n);return r>n?n:r}function ww(){return{top:0,right:0,bottom:0,left:0}}function Sw(e){return Object.assign({},ww(),e)}function kw(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var m_=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Sw(typeof t!="number"?t:kw(t,fc))};function g_(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,i=eo(n.placement),l=$g(i),c=[Ln,yr].indexOf(i)>=0,u=c?"height":"width";if(!(!s||!a)){var d=m_(o.padding,n),f=Rg(s),b=l==="y"?On:Ln,w=l==="y"?vr:yr,p=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],S=a[l]-n.rects.reference[l],h=pc(s),g=h?l==="y"?h.clientHeight||0:h.clientWidth||0:0,C=p/2-S/2,x=d[b],T=g-f[u]-d[w],v=g/2-f[u]/2+C,k=al(x,v,T),M=l;n.modifiersData[r]=(t={},t[M]=k,t.centerOffset=k-v,t)}}function v_(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Cw(t.elements.popper,o)&&(t.elements.arrow=o))}const y_={name:"arrow",enabled:!0,phase:"main",fn:g_,effect:v_,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ni(e){return e.split("-")[1]}var b_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function x_(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:ei(n*o)/o||0,y:ei(r*o)/o||0}}function o0(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,a=e.offsets,i=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,b=f===void 0?0:f,w=a.y,p=w===void 0?0:w,S=typeof u=="function"?u({x:b,y:p}):{x:b,y:p};b=S.x,p=S.y;var h=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),C=Ln,x=On,T=window;if(c){var v=pc(n),k="clientHeight",M="clientWidth";if(v===Xn(n)&&(v=ds(n),Mo(v).position!=="static"&&i==="absolute"&&(k="scrollHeight",M="scrollWidth")),v=v,o===On||(o===Ln||o===yr)&&s===Ll){x=vr;var $=d&&v===T&&T.visualViewport?T.visualViewport.height:v[k];p-=$-r.height,p*=l?1:-1}if(o===Ln||(o===On||o===vr)&&s===Ll){C=yr;var R=d&&v===T&&T.visualViewport?T.visualViewport.width:v[M];b-=R-r.width,b*=l?1:-1}}var E=Object.assign({position:i},c&&b_),A=u===!0?x_({x:b,y:p},Xn(n)):{x:b,y:p};if(b=A.x,p=A.y,l){var N;return Object.assign({},E,(N={},N[x]=g?"0":"",N[C]=h?"0":"",N.transform=(T.devicePixelRatio||1)<=1?"translate("+b+"px, "+p+"px)":"translate3d("+b+"px, "+p+"px, 0)",N))}return Object.assign({},E,(t={},t[x]=g?p+"px":"",t[C]=h?b+"px":"",t.transform="",t))}function C_(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,a=s===void 0?!0:s,i=n.roundOffsets,l=i===void 0?!0:i,c={placement:eo(t.placement),variation:ni(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,o0(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,o0(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const w_={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:C_,data:{}};var Uc={passive:!0};function S_(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,a=r.resize,i=a===void 0?!0:a,l=Xn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(u){u.addEventListener("scroll",n.update,Uc)}),i&&l.addEventListener("resize",n.update,Uc),function(){s&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Uc)}),i&&l.removeEventListener("resize",n.update,Uc)}}const k_={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:S_,data:{}};var T_={left:"right",right:"left",bottom:"top",top:"bottom"};function gu(e){return e.replace(/left|right|bottom|top/g,function(t){return T_[t]})}var P_={start:"end",end:"start"};function s0(e){return e.replace(/start|end/g,function(t){return P_[t]})}function Dg(e){var t=Xn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Eg(e){return ti(ds(e)).left+Dg(e).scrollLeft}function M_(e,t){var n=Xn(e),r=ds(e),o=n.visualViewport,s=r.clientWidth,a=r.clientHeight,i=0,l=0;if(o){s=o.width,a=o.height;var c=xw();(c||!c&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}return{width:s,height:a,x:i+Eg(e),y:l}}function R_(e){var t,n=ds(e),r=Dg(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=Ds(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Ds(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),i=-r.scrollLeft+Eg(e),l=-r.scrollTop;return Mo(o||n).direction==="rtl"&&(i+=Ds(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:a,x:i,y:l}}function _g(e){var t=Mo(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Tw(e){return["html","body","#document"].indexOf(so(e))>=0?e.ownerDocument.body:pr(e)&&_g(e)?e:Tw(bf(e))}function il(e,t){var n;t===void 0&&(t=[]);var r=Tw(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=Xn(r),a=o?[s].concat(s.visualViewport||[],_g(r)?r:[]):r,i=t.concat(a);return o?i:i.concat(il(bf(a)))}function Ah(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function $_(e,t){var n=ti(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function a0(e,t,n){return t===yw?Ah(M_(e,n)):Bs(t)?$_(t,n):Ah(R_(ds(e)))}function D_(e){var t=il(bf(e)),n=["absolute","fixed"].indexOf(Mo(e).position)>=0,r=n&&pr(e)?pc(e):e;return Bs(r)?t.filter(function(o){return Bs(o)&&Cw(o,r)&&so(o)!=="body"}):[]}function E_(e,t,n,r){var o=t==="clippingParents"?D_(e):[].concat(t),s=[].concat(o,[n]),a=s[0],i=s.reduce(function(l,c){var u=a0(e,c,r);return l.top=Ds(u.top,l.top),l.right=nd(u.right,l.right),l.bottom=nd(u.bottom,l.bottom),l.left=Ds(u.left,l.left),l},a0(e,a,r));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Pw(e){var t=e.reference,n=e.element,r=e.placement,o=r?eo(r):null,s=r?ni(r):null,a=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,l;switch(o){case On:l={x:a,y:t.y-n.height};break;case vr:l={x:a,y:t.y+t.height};break;case yr:l={x:t.x+t.width,y:i};break;case Ln:l={x:t.x-n.width,y:i};break;default:l={x:t.x,y:t.y}}var c=o?$g(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(s){case Ja:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Ll:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Al(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.strategy,a=s===void 0?e.strategy:s,i=n.boundary,l=i===void 0?QE:i,c=n.rootBoundary,u=c===void 0?yw:c,d=n.elementContext,f=d===void 0?Ri:d,b=n.altBoundary,w=b===void 0?!1:b,p=n.padding,S=p===void 0?0:p,h=Sw(typeof S!="number"?S:kw(S,fc)),g=f===Ri?XE:Ri,C=e.rects.popper,x=e.elements[w?g:f],T=E_(Bs(x)?x:x.contextElement||ds(e.elements.popper),l,u,a),v=ti(e.elements.reference),k=Pw({reference:v,element:C,strategy:"absolute",placement:o}),M=Ah(Object.assign({},C,k)),$=f===Ri?M:v,R={top:T.top-$.top+h.top,bottom:$.bottom-T.bottom+h.bottom,left:T.left-$.left+h.left,right:$.right-T.right+h.right},E=e.modifiersData.offset;if(f===Ri&&E){var A=E[o];Object.keys(R).forEach(function(N){var _=[yr,vr].indexOf(N)>=0?1:-1,D=[On,vr].indexOf(N)>=0?"y":"x";R[N]+=A[D]*_})}return R}function __(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,a=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?bw:l,u=ni(r),d=u?i?n0:n0.filter(function(w){return ni(w)===u}):fc,f=d.filter(function(w){return c.indexOf(w)>=0});f.length===0&&(f=d);var b=f.reduce(function(w,p){return w[p]=Al(e,{placement:p,boundary:o,rootBoundary:s,padding:a})[eo(p)],w},{});return Object.keys(b).sort(function(w,p){return b[w]-b[p]})}function I_(e){if(eo(e)===Pg)return[];var t=gu(e);return[s0(e),t,s0(t)]}function O_(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,a=n.altAxis,i=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,b=n.flipVariations,w=b===void 0?!0:b,p=n.allowedAutoPlacements,S=t.options.placement,h=eo(S),g=h===S,C=l||(g||!w?[gu(S)]:I_(S)),x=[S].concat(C).reduce(function(U,Q){return U.concat(eo(Q)===Pg?__(t,{placement:Q,boundary:u,rootBoundary:d,padding:c,flipVariations:w,allowedAutoPlacements:p}):Q)},[]),T=t.rects.reference,v=t.rects.popper,k=new Map,M=!0,$=x[0],R=0;R=0,D=_?"width":"height",O=Al(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),j=_?N?yr:Ln:N?vr:On;T[D]>v[D]&&(j=gu(j));var I=gu(j),L=[];if(s&&L.push(O[A]<=0),i&&L.push(O[j]<=0,O[I]<=0),L.every(function(U){return U})){$=E,M=!1;break}k.set(E,L)}if(M)for(var F=w?3:1,J=function(Q){var K=x.find(function(H){var oe=k.get(H);if(oe)return oe.slice(0,Q).every(function(me){return me})});if(K)return $=K,"break"},ie=F;ie>0;ie--){var ue=J(ie);if(ue==="break")break}t.placement!==$&&(t.modifiersData[r]._skip=!0,t.placement=$,t.reset=!0)}}const L_={name:"flip",enabled:!0,phase:"main",fn:O_,requiresIfExists:["offset"],data:{_skip:!1}};function i0(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function l0(e){return[On,yr,vr,Ln].some(function(t){return e[t]>=0})}function A_(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,a=Al(t,{elementContext:"reference"}),i=Al(t,{altBoundary:!0}),l=i0(a,r),c=i0(i,o,s),u=l0(l),d=l0(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const N_={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:A_};function j_(e,t,n){var r=eo(e),o=[Ln,On].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=s[0],i=s[1];return a=a||0,i=(i||0)*o,[Ln,yr].indexOf(r)>=0?{x:i,y:a}:{x:a,y:i}}function F_(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,a=bw.reduce(function(u,d){return u[d]=j_(d,t.rects,s),u},{}),i=a[t.placement],l=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const B_={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:F_};function z_(e){var t=e.state,n=e.name;t.modifiersData[n]=Pw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const V_={name:"popperOffsets",enabled:!0,phase:"read",fn:z_,data:{}};function U_(e){return e==="x"?"y":"x"}function W_(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,a=n.altAxis,i=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,b=f===void 0?!0:f,w=n.tetherOffset,p=w===void 0?0:w,S=Al(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),h=eo(t.placement),g=ni(t.placement),C=!g,x=$g(h),T=U_(x),v=t.modifiersData.popperOffsets,k=t.rects.reference,M=t.rects.popper,$=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,R=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(v){if(s){var N,_=x==="y"?On:Ln,D=x==="y"?vr:yr,O=x==="y"?"height":"width",j=v[x],I=j+S[_],L=j-S[D],F=b?-M[O]/2:0,J=g===Ja?k[O]:M[O],ie=g===Ja?-M[O]:-k[O],ue=t.elements.arrow,U=b&&ue?Rg(ue):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ww(),K=Q[_],H=Q[D],oe=al(0,k[O],U[O]),me=C?k[O]/2-F-oe-K-R.mainAxis:J-oe-K-R.mainAxis,ye=C?-k[O]/2+F+oe+H+R.mainAxis:ie+oe+H+R.mainAxis,ee=t.elements.arrow&&pc(t.elements.arrow),pe=ee?x==="y"?ee.clientTop||0:ee.clientLeft||0:0,X=(N=E==null?void 0:E[x])!=null?N:0,he=j+me-X-pe,se=j+ye-X,Oe=al(b?nd(I,he):I,j,b?Ds(L,se):L);v[x]=Oe,A[x]=Oe-j}if(i){var Re,ge=x==="x"?On:Ln,$e=x==="x"?vr:yr,G=v[T],Z=T==="y"?"height":"width",te=G+S[ge],De=G-S[$e],Ae=[On,Ln].indexOf(h)!==-1,He=(Re=E==null?void 0:E[T])!=null?Re:0,Ue=Ae?te:G-k[Z]-M[Z]-He+R.altAxis,Ee=Ae?G+k[Z]+M[Z]-He-R.altAxis:De,we=b&&Ae?h_(Ue,G,Ee):al(b?Ue:te,G,b?Ee:De);v[T]=we,A[T]=we-G}t.modifiersData[r]=A}}const H_={name:"preventOverflow",enabled:!0,phase:"main",fn:W_,requiresIfExists:["offset"]};function Y_(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function K_(e){return e===Xn(e)||!pr(e)?Dg(e):Y_(e)}function G_(e){var t=e.getBoundingClientRect(),n=ei(t.width)/e.offsetWidth||1,r=ei(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Z_(e,t,n){n===void 0&&(n=!1);var r=pr(t),o=pr(t)&&G_(t),s=ds(t),a=ti(e,o,n),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((so(t)!=="body"||_g(s))&&(i=K_(t)),pr(t)?(l=ti(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=Eg(s))),{x:a.left+i.scrollLeft-l.x,y:a.top+i.scrollTop-l.y,width:a.width,height:a.height}}function q_(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(i){if(!n.has(i)){var l=t.get(i);l&&o(l)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function Q_(e){var t=q_(e);return l_.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function X_(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function J_(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var c0={placement:"bottom",modifiers:[],strategy:"absolute"};function u0(){for(var e=arguments.length,t=new Array(e),n=0;n{s||i(rI(o)||document.body)},[o,s]),Zt(()=>{if(a&&!s)return El(n,a),()=>{El(n,null)}},[n,a,s]),s){if(y.isValidElement(r)){const c={ref:l};return y.cloneElement(r,c)}return P.jsx(y.Fragment,{children:r})}return P.jsx(y.Fragment,{children:a&&Od.createPortal(r,a)})});function oI(e){return Ce("MuiPopper",e)}be("MuiPopper",["root"]);const sI=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],aI=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function iI(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Nh(e){return typeof e=="function"?e():e}function lI(e){return e.nodeType!==void 0}const cI=()=>xe({root:["root"]},BE(oI)),uI={},dI=y.forwardRef(function(t,n){var r;const{anchorEl:o,children:s,direction:a,disablePortal:i,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:f,slotProps:b={},slots:w={},TransitionProps:p}=t,S=q(t,sI),h=y.useRef(null),g=ut(h,n),C=y.useRef(null),x=ut(C,f),T=y.useRef(x);Zt(()=>{T.current=x},[x]),y.useImperativeHandle(f,()=>C.current,[]);const v=iI(u,a),[k,M]=y.useState(v),[$,R]=y.useState(Nh(o));y.useEffect(()=>{C.current&&C.current.forceUpdate()}),y.useEffect(()=>{o&&R(Nh(o))},[o]),Zt(()=>{if(!$||!c)return;const D=I=>{M(I.placement)};let O=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:I})=>{D(I)}}];l!=null&&(O=O.concat(l)),d&&d.modifiers!=null&&(O=O.concat(d.modifiers));const j=nI($,h.current,m({placement:v},d,{modifiers:O}));return T.current(j),()=>{j.destroy(),T.current(null)}},[$,i,l,c,d,v]);const E={placement:k};p!==null&&(E.TransitionProps=p);const A=cI(),N=(r=w.root)!=null?r:"div",_=ct({elementType:N,externalSlotProps:b.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:g},ownerState:t,className:A.root});return P.jsx(N,m({},_,{children:typeof s=="function"?s(E):s}))}),fI=y.forwardRef(function(t,n){const{anchorEl:r,children:o,container:s,direction:a="ltr",disablePortal:i=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:f=uI,popperRef:b,style:w,transition:p=!1,slotProps:S={},slots:h={}}=t,g=q(t,aI),[C,x]=y.useState(!0),T=()=>{x(!1)},v=()=>{x(!0)};if(!l&&!u&&(!p||C))return null;let k;if(s)k=s;else if(r){const R=Nh(r);k=R&&lI(R)?Ft(R).body:Ft(null).body}const M=!u&&l&&(!p||C)?"none":void 0,$=p?{in:u,onEnter:T,onExited:v}:void 0;return P.jsx(Mw,{disablePortal:i,container:k,children:P.jsx(dI,m({anchorEl:r,direction:a,disablePortal:i,modifiers:c,ref:n,open:p?!C:u,placement:d,popperOptions:f,popperRef:b,slotProps:S,slots:h},g,{style:m({position:"fixed",top:0,left:0,display:M},w),TransitionProps:$,children:o}))})});function pI(e){const t=Ft(e);return t.body===e?ro(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ll(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function d0(e){return parseInt(ro(e).getComputedStyle(e).paddingRight,10)||0}function hI(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function f0(e,t,n,r,o){const s=[t,n,...r];[].forEach.call(e.children,a=>{const i=s.indexOf(a)===-1,l=!hI(a);i&&l&&ll(a,o)})}function vp(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function mI(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(pI(r)){const a=bC(Ft(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${d0(r)+a}px`;const i=Ft(r).querySelectorAll(".mui-fixed");[].forEach.call(i,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${d0(l)+a}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=Ft(r).body;else{const a=r.parentElement,i=ro(r);s=(a==null?void 0:a.nodeName)==="HTML"&&i.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:a,property:i})=>{s?a.style.setProperty(i,s):a.style.removeProperty(i)})}}function gI(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class vI{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&ll(t.modalRef,!1);const o=gI(n);f0(n,t.mount,t.modalRef,o,!0);const s=vp(this.containers,a=>a.container===n);return s!==-1?(this.containers[s].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=vp(this.containers,s=>s.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=mI(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=vp(this.containers,a=>a.modals.indexOf(t)!==-1),s=this.containers[o];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&ll(t.modalRef,n),f0(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=s.modals[s.modals.length-1];a.modalRef&&ll(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function yI(e){return typeof e=="function"?e():e}function bI(e){return e?e.props.hasOwnProperty("in"):!1}const xI=new vI;function CI(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=xI,closeAfterTransition:s=!1,onTransitionEnter:a,onTransitionExited:i,children:l,onClose:c,open:u,rootRef:d}=e,f=y.useRef({}),b=y.useRef(null),w=y.useRef(null),p=ut(w,d),[S,h]=y.useState(!u),g=bI(l);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const x=()=>Ft(b.current),T=()=>(f.current.modalRef=w.current,f.current.mount=b.current,f.current),v=()=>{o.mount(T(),{disableScrollLock:r}),w.current&&(w.current.scrollTop=0)},k=Ie(()=>{const O=yI(t)||x().body;o.add(T(),O),w.current&&v()}),M=y.useCallback(()=>o.isTopModal(T()),[o]),$=Ie(O=>{b.current=O,O&&(u&&M()?v():w.current&&ll(w.current,C))}),R=y.useCallback(()=>{o.remove(T(),C)},[C,o]);y.useEffect(()=>()=>{R()},[R]),y.useEffect(()=>{u?k():(!g||!s)&&R()},[u,R,g,s,k]);const E=O=>j=>{var I;(I=O.onKeyDown)==null||I.call(O,j),!(j.key!=="Escape"||!M())&&(n||(j.stopPropagation(),c&&c(j,"escapeKeyDown")))},A=O=>j=>{var I;(I=O.onClick)==null||I.call(O,j),j.target===j.currentTarget&&c&&c(j,"backdropClick")};return{getRootProps:(O={})=>{const j=td(e);delete j.onTransitionEnter,delete j.onTransitionExited;const I=m({},j,O);return m({role:"presentation"},I,{onKeyDown:E(I),ref:p})},getBackdropProps:(O={})=>{const j=O;return m({"aria-hidden":!0},j,{onClick:A(j),open:u})},getTransitionProps:()=>{const O=()=>{h(!1),a&&a()},j=()=>{h(!0),i&&i(),s&&R()};return{onEnter:Th(O,l==null?void 0:l.props.onEnter),onExited:Th(j,l==null?void 0:l.props.onExited)}},rootRef:p,portalRef:$,isTopModal:M,exited:S,hasTransition:g}}function wI(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:s}=e,a=y.useRef();y.useEffect(()=>{if(!o)return;function h(g){g.defaultPrevented||(g.key==="Escape"||g.key==="Esc")&&(r==null||r(g,"escapeKeyDown"))}return document.addEventListener("keydown",h),()=>{document.removeEventListener("keydown",h)}},[o,r]);const i=Ie((h,g)=>{r==null||r(h,g)}),l=Ie(h=>{!r||h==null||(clearTimeout(a.current),a.current=setTimeout(()=>{i(null,"timeout")},h))});y.useEffect(()=>(o&&l(t),()=>{clearTimeout(a.current)}),[o,t,l]);const c=h=>{r==null||r(h,"clickaway")},u=()=>{clearTimeout(a.current)},d=y.useCallback(()=>{t!=null&&l(s??t*.5)},[t,s,l]),f=h=>g=>{const C=h.onBlur;C==null||C(g),d()},b=h=>g=>{const C=h.onFocus;C==null||C(g),u()},w=h=>g=>{const C=h.onMouseEnter;C==null||C(g),u()},p=h=>g=>{const C=h.onMouseLeave;C==null||C(g),d()};return y.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",d),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",u)}},[n,d,o]),{getRootProps:(h={})=>{const g=m({},td(e),td(h));return m({role:"presentation"},h,g,{onBlur:f(g),onFocus:b(g),onMouseEnter:w(g),onMouseLeave:p(g)})},onClickAway:c}}const SI=["onChange","maxRows","minRows","style","value"];function Wc(e){return parseInt(e,10)||0}const kI={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function p0(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const TI=y.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:s=1,style:a,value:i}=t,l=q(t,SI),{current:c}=y.useRef(i!=null),u=y.useRef(null),d=ut(n,u),f=y.useRef(null),b=y.useRef(0),[w,p]=y.useState({outerHeightStyle:0}),S=y.useCallback(()=>{const x=u.current,v=ro(x).getComputedStyle(x);if(v.width==="0px")return{outerHeightStyle:0};const k=f.current;k.style.width=v.width,k.value=x.value||t.placeholder||"x",k.value.slice(-1)===` -`&&(k.value+=" ");const M=v.boxSizing,$=Wc(v.paddingBottom)+Wc(v.paddingTop),R=Wc(v.borderBottomWidth)+Wc(v.borderTopWidth),E=k.scrollHeight;k.value="x";const A=k.scrollHeight;let N=E;s&&(N=Math.max(Number(s)*A,N)),o&&(N=Math.min(Number(o)*A,N)),N=Math.max(N,A);const _=N+(M==="border-box"?$+R:0),D=Math.abs(N-E)<=1;return{outerHeightStyle:_,overflow:D}},[o,s,t.placeholder]),h=(x,T)=>{const{outerHeightStyle:v,overflow:k}=T;return b.current<20&&(v>0&&Math.abs((x.outerHeightStyle||0)-v)>1||x.overflow!==k)?(b.current+=1,{overflow:k,outerHeightStyle:v}):x},g=y.useCallback(()=>{const x=S();p0(x)||p(T=>h(T,x))},[S]);Zt(()=>{const x=()=>{const E=S();p0(E)||Od.flushSync(()=>{p(A=>h(A,E))})},T=()=>{b.current=0,x()};let v;const k=ac(T),M=u.current,$=ro(M);$.addEventListener("resize",k);let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(T),R.observe(M)),()=>{k.clear(),cancelAnimationFrame(v),$.removeEventListener("resize",k),R&&R.disconnect()}},[S]),Zt(()=>{g()}),y.useEffect(()=>{b.current=0},[i]);const C=x=>{b.current=0,c||g(),r&&r(x)};return P.jsxs(y.Fragment,{children:[P.jsx("textarea",m({value:i,onChange:C,ref:d,rows:s,style:m({height:w.outerHeightStyle,overflow:w.overflow?"hidden":void 0},a)},l)),P.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:m({},kI.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function h0(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function PI(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:s,trim:a=!1}=e;return(i,{inputValue:l,getOptionLabel:c})=>{let u=a?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=h0(u));const d=u?i.filter(f=>{let b=(s||c)(f);return n&&(b=b.toLowerCase()),t&&(b=h0(b)),o==="start"?b.indexOf(u)===0:b.indexOf(u)>-1}):i;return typeof r=="number"?d.slice(0,r):d}}function yp(e,t){for(let n=0;n{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function $I(e){const{unstable_isActiveElementInListbox:t=RI,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:s=!1,blurOnSelect:a=!1,clearOnBlur:i=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:u=e.multiple?[]:null,disableClearable:d=!1,disableCloseOnSelect:f=!1,disabled:b,disabledItemsFocusable:w=!1,disableListWrap:p=!1,filterOptions:S=MI,filterSelectedOptions:h=!1,freeSolo:g=!1,getOptionDisabled:C,getOptionLabel:x=le=>{var re;return(re=le.label)!=null?re:le},groupBy:T,handleHomeEndKeys:v=!e.freeSolo,id:k,includeInputInList:M=!1,inputValue:$,isOptionEqualToValue:R=(le,re)=>le===re,multiple:E=!1,onChange:A,onClose:N,onHighlightChange:_,onInputChange:D,onOpen:O,open:j,openOnFocus:I=!1,options:L,readOnly:F=!1,selectOnFocus:J=!e.freeSolo,value:ie}=e,ue=gr(k);let U=x;U=le=>{const re=x(le);return typeof re!="string"?String(re):re};const Q=y.useRef(!1),K=y.useRef(!0),H=y.useRef(null),oe=y.useRef(null),[me,ye]=y.useState(null),[ee,pe]=y.useState(-1),X=o?0:-1,he=y.useRef(X),[se,Oe]=yn({controlled:ie,default:u,name:c}),[Re,ge]=yn({controlled:$,default:"",name:c,state:"inputValue"}),[$e,G]=y.useState(!1),Z=y.useCallback((le,re)=>{if(!(E?se.length!(h&&(E?se:[se]).some(re=>re!==null&&R(le,re)))),{inputValue:Ue&&Ae?"":Re,getOptionLabel:U}):[],ke=NM({filteredOptions:we,value:se,inputValue:Re});y.useEffect(()=>{const le=se!==ke.value;$e&&!le||g&&!le||Z(null,se)},[se,Z,$e,ke.value,g]);const qe=te&&we.length>0&&!F,yt=Ie(le=>{le===-1?H.current.focus():me.querySelector(`[data-tag-index="${le}"]`).focus()});y.useEffect(()=>{E&&ee>se.length-1&&(pe(-1),yt(-1))},[se,E,ee,yt]);function wt(le,re){if(!oe.current||le===-1)return-1;let de=le;for(;;){if(re==="next"&&de===we.length||re==="previous"&&de===-1)return-1;const Le=oe.current.querySelector(`[data-option-index="${de}"]`),tt=w?!1:!Le||Le.disabled||Le.getAttribute("aria-disabled")==="true";if(Le&&!Le.hasAttribute("tabindex")||tt)de+=re==="next"?1:-1;else return de}}const Se=Ie(({event:le,index:re,reason:de="auto"})=>{if(he.current=re,re===-1?H.current.removeAttribute("aria-activedescendant"):H.current.setAttribute("aria-activedescendant",`${ue}-option-${re}`),_&&_(le,re===-1?null:we[re],de),!oe.current)return;const Le=oe.current.querySelector(`[role="option"].${n}-focused`);Le&&(Le.classList.remove(`${n}-focused`),Le.classList.remove(`${n}-focusVisible`));let tt=oe.current;if(oe.current.getAttribute("role")!=="listbox"&&(tt=oe.current.parentElement.querySelector('[role="listbox"]')),!tt)return;if(re===-1){tt.scrollTop=0;return}const Lt=oe.current.querySelector(`[data-option-index="${re}"]`);if(Lt&&(Lt.classList.add(`${n}-focused`),de==="keyboard"&&Lt.classList.add(`${n}-focusVisible`),tt.scrollHeight>tt.clientHeight&&de!=="mouse"&&de!=="touch")){const Yt=Lt,or=tt.clientHeight+tt.scrollTop,ot=Yt.offsetTop+Yt.offsetHeight;ot>or?tt.scrollTop=ot-tt.clientHeight:Yt.offsetTop-Yt.offsetHeight*(T?1.3:0){if(!Ee)return;const Lt=wt((()=>{const Yt=we.length-1;if(re==="reset")return X;if(re==="start")return 0;if(re==="end")return Yt;const or=he.current+re;return or<0?or===-1&&M?-1:p&&he.current!==-1||Math.abs(re)>1?0:Yt:or>Yt?or===Yt+1&&M?-1:p||Math.abs(re)>1?Yt:0:or})(),de);if(Se({index:Lt,reason:Le,event:le}),r&&re!=="reset")if(Lt===-1)H.current.value=Re;else{const Yt=U(we[Lt]);H.current.value=Yt,Yt.toLowerCase().indexOf(Re.toLowerCase())===0&&Re.length>0&&H.current.setSelectionRange(Re.length,Yt.length)}}),B=()=>{const le=(re,de)=>{const Le=re?U(re):"",tt=de?U(de):"";return Le===tt};if(he.current!==-1&&ke.filteredOptions&&ke.filteredOptions.length!==we.length&&ke.inputValue===Re&&(E?se.length===ke.value.length&&ke.value.every((re,de)=>U(se[de])===U(re)):le(ke.value,se))){const re=ke.filteredOptions[he.current];if(re&&we.some(Le=>U(Le)===U(re)))return!0}return!1},Y=y.useCallback(()=>{if(!Ee||B())return;const le=E?se[0]:se;if(we.length===0||le==null){W({diff:"reset"});return}if(oe.current){if(le!=null){const re=we[he.current];if(E&&re&&yp(se,Le=>R(re,Le))!==-1)return;const de=yp(we,Le=>R(Le,le));de===-1?W({diff:"reset"}):Se({index:de});return}if(he.current>=we.length-1){Se({index:we.length-1});return}Se({index:he.current})}},[we.length,E?!1:se,h,W,Se,Ee,Re,E]),fe=Ie(le=>{El(oe,le),le&&Y()});y.useEffect(()=>{Y()},[Y]);const Pe=le=>{te||(De(!0),He(!0),O&&O(le))},_e=(le,re)=>{te&&(De(!1),N&&N(le,re))},Be=(le,re,de,Le)=>{if(E){if(se.length===re.length&&se.every((tt,Lt)=>tt===re[Lt]))return}else if(se===re)return;A&&A(le,re,de,Le),Oe(re)},je=y.useRef(!1),Ne=(le,re,de="selectOption",Le="options")=>{let tt=de,Lt=re;if(E){Lt=Array.isArray(se)?se.slice():[];const Yt=yp(Lt,or=>R(re,or));Yt===-1?Lt.push(re):Le!=="freeSolo"&&(Lt.splice(Yt,1),tt="removeOption")}Z(le,Lt),Be(le,Lt,tt,{option:re}),!f&&(!le||!le.ctrlKey&&!le.metaKey)&&_e(le,tt),(a===!0||a==="touch"&&je.current||a==="mouse"&&!je.current)&&H.current.blur()};function lt(le,re){if(le===-1)return-1;let de=le;for(;;){if(re==="next"&&de===se.length||re==="previous"&&de===-1)return-1;const Le=me.querySelector(`[data-tag-index="${de}"]`);if(!Le||!Le.hasAttribute("tabindex")||Le.disabled||Le.getAttribute("aria-disabled")==="true")de+=re==="next"?1:-1;else return de}}const Ye=(le,re)=>{if(!E)return;Re===""&&_e(le,"toggleInput");let de=ee;ee===-1?Re===""&&re==="previous"&&(de=se.length-1):(de+=re==="next"?1:-1,de<0&&(de=0),de===se.length&&(de=-1)),de=lt(de,re),pe(de),yt(de)},Ge=le=>{Q.current=!0,ge(""),D&&D(le,"","clear"),Be(le,E?[]:null,"clear")},et=le=>re=>{if(le.onKeyDown&&le.onKeyDown(re),!re.defaultMuiPrevented&&(ee!==-1&&["ArrowLeft","ArrowRight"].indexOf(re.key)===-1&&(pe(-1),yt(-1)),re.which!==229))switch(re.key){case"Home":Ee&&v&&(re.preventDefault(),W({diff:"start",direction:"next",reason:"keyboard",event:re}));break;case"End":Ee&&v&&(re.preventDefault(),W({diff:"end",direction:"previous",reason:"keyboard",event:re}));break;case"PageUp":re.preventDefault(),W({diff:-m0,direction:"previous",reason:"keyboard",event:re}),Pe(re);break;case"PageDown":re.preventDefault(),W({diff:m0,direction:"next",reason:"keyboard",event:re}),Pe(re);break;case"ArrowDown":re.preventDefault(),W({diff:1,direction:"next",reason:"keyboard",event:re}),Pe(re);break;case"ArrowUp":re.preventDefault(),W({diff:-1,direction:"previous",reason:"keyboard",event:re}),Pe(re);break;case"ArrowLeft":Ye(re,"previous");break;case"ArrowRight":Ye(re,"next");break;case"Enter":if(he.current!==-1&&Ee){const de=we[he.current],Le=C?C(de):!1;if(re.preventDefault(),Le)return;Ne(re,de,"selectOption"),r&&H.current.setSelectionRange(H.current.value.length,H.current.value.length)}else g&&Re!==""&&Ue===!1&&(E&&re.preventDefault(),Ne(re,Re,"createOption","freeSolo"));break;case"Escape":Ee?(re.preventDefault(),re.stopPropagation(),_e(re,"escape")):l&&(Re!==""||E&&se.length>0)&&(re.preventDefault(),re.stopPropagation(),Ge(re));break;case"Backspace":if(E&&!F&&Re===""&&se.length>0){const de=ee===-1?se.length-1:ee,Le=se.slice();Le.splice(de,1),Be(re,Le,"removeOption",{option:se[de]})}break;case"Delete":if(E&&!F&&Re===""&&se.length>0&&ee!==-1){const de=ee,Le=se.slice();Le.splice(de,1),Be(re,Le,"removeOption",{option:se[de]})}break}},st=le=>{G(!0),I&&!Q.current&&Pe(le)},Fn=le=>{if(t(oe)){H.current.focus();return}G(!1),K.current=!0,Q.current=!1,s&&he.current!==-1&&Ee?Ne(le,we[he.current],"blur"):s&&g&&Re!==""?Ne(le,Re,"blur","freeSolo"):i&&Z(le,se),_e(le,"blur")},Cn=le=>{const re=le.target.value;Re!==re&&(ge(re),He(!1),D&&D(le,re,"input")),re===""?!d&&!E&&Be(le,null,"clear"):Pe(le)},Dt=le=>{const re=Number(le.currentTarget.getAttribute("data-option-index"));he.current!==re&&Se({event:le,index:re,reason:"mouse"})},Pt=le=>{Se({event:le,index:Number(le.currentTarget.getAttribute("data-option-index")),reason:"touch"}),je.current=!0},Ot=le=>{const re=Number(le.currentTarget.getAttribute("data-option-index"));Ne(le,we[re],"selectOption"),je.current=!1},nn=le=>re=>{const de=se.slice();de.splice(le,1),Be(re,de,"removeOption",{option:se[le]})},Bn=le=>{te?_e(le,"toggleInput"):Pe(le)},rn=le=>{le.currentTarget.contains(le.target)&&le.target.getAttribute("id")!==ue&&le.preventDefault()},zn=le=>{le.currentTarget.contains(le.target)&&(H.current.focus(),J&&K.current&&H.current.selectionEnd-H.current.selectionStart===0&&H.current.select(),K.current=!1)},zr=le=>{!b&&(Re===""||!te)&&Bn(le)};let Xe=g&&Re.length>0;Xe=Xe||(E?se.length>0:se!==null);let zt=we;return T&&(zt=we.reduce((le,re,de)=>{const Le=T(re);return le.length>0&&le[le.length-1].group===Le?le[le.length-1].options.push(re):le.push({key:de,index:de,group:Le,options:[re]}),le},[])),b&&$e&&Fn(),{getRootProps:(le={})=>m({"aria-owns":qe?`${ue}-listbox`:null},le,{onKeyDown:et(le),onMouseDown:rn,onClick:zn}),getInputLabelProps:()=>({id:`${ue}-label`,htmlFor:ue}),getInputProps:()=>({id:ue,value:Re,onBlur:Fn,onFocus:st,onChange:Cn,onMouseDown:zr,"aria-activedescendant":Ee?"":null,"aria-autocomplete":r?"both":"list","aria-controls":qe?`${ue}-listbox`:void 0,"aria-expanded":qe,autoComplete:"off",ref:H,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:b}),getClearProps:()=>({tabIndex:-1,onClick:Ge}),getPopupIndicatorProps:()=>({tabIndex:-1,onClick:Bn}),getTagProps:({index:le})=>m({key:le,"data-tag-index":le,tabIndex:-1},!F&&{onDelete:nn(le)}),getListboxProps:()=>({role:"listbox",id:`${ue}-listbox`,"aria-labelledby":`${ue}-label`,ref:fe,onMouseDown:le=>{le.preventDefault()}}),getOptionProps:({index:le,option:re})=>{const de=(E?se:[se]).some(tt=>tt!=null&&R(re,tt)),Le=C?C(re):!1;return{key:U(re),tabIndex:-1,role:"option",id:`${ue}-option-${le}`,onMouseMove:Dt,onClick:Ot,onTouchStart:Pt,"data-option-index":le,"aria-disabled":Le,"aria-selected":de}},id:ue,inputValue:Re,value:se,dirty:Xe,expanded:Ee&&me,popupOpen:Ee,focused:$e||ee!==-1,anchorEl:me,setAnchorEl:ye,focusedTag:ee,groupedOptions:zt}}const DI=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],EI=V(fI,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),hc=y.forwardRef(function(t,n){var r;const o=hf(),s=ve({props:t,name:"MuiPopper"}),{anchorEl:a,component:i,components:l,componentsProps:c,container:u,disablePortal:d,keepMounted:f,modifiers:b,open:w,placement:p,popperOptions:S,popperRef:h,transition:g,slots:C,slotProps:x}=s,T=q(s,DI),v=(r=C==null?void 0:C.root)!=null?r:l==null?void 0:l.Root,k=m({anchorEl:a,container:u,disablePortal:d,keepMounted:f,modifiers:b,open:w,placement:p,popperOptions:S,popperRef:h,transition:g},T);return P.jsx(EI,m({as:i,direction:o==null?void 0:o.direction,slots:{root:v},slotProps:x??c},k,{ref:n}))});function _I(e){return Ce("MuiListSubheader",e)}be("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const II=["className","color","component","disableGutters","disableSticky","inset"],OI=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:s}=e,a={root:["root",n!=="default"&&`color${ne(n)}`,!r&&"gutters",o&&"inset",!s&&"sticky"]};return xe(a,_I,t)},LI=V("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ne(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>m({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),Rw=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiListSubheader"}),{className:o,color:s="default",component:a="li",disableGutters:i=!1,disableSticky:l=!1,inset:c=!1}=r,u=q(r,II),d=m({},r,{color:s,component:a,disableGutters:i,disableSticky:l,inset:c}),f=OI(d);return P.jsx(LI,m({as:a,className:ae(f.root,o),ref:n,ownerState:d},u))});Rw.muiSkipListHighlight=!0;const AI=St(P.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function $w(e){return Ce("MuiChip",e)}const dt=be("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),NI=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],jI=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:s,onDelete:a,clickable:i,variant:l}=e,c={root:["root",l,n&&"disabled",`size${ne(r)}`,`color${ne(o)}`,i&&"clickable",i&&`clickableColor${ne(o)}`,a&&"deletable",a&&`deletableColor${ne(o)}`,`${l}${ne(o)}`],label:["label",`label${ne(r)}`],avatar:["avatar",`avatar${ne(r)}`,`avatarColor${ne(o)}`],icon:["icon",`icon${ne(r)}`,`iconColor${ne(s)}`],deleteIcon:["deleteIcon",`deleteIcon${ne(r)}`,`deleteIconColor${ne(o)}`,`deleteIcon${ne(l)}Color${ne(o)}`]};return xe(c,$w,t)},FI=V("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:s,onDelete:a,size:i,variant:l}=n;return[{[`& .${dt.avatar}`]:t.avatar},{[`& .${dt.avatar}`]:t[`avatar${ne(i)}`]},{[`& .${dt.avatar}`]:t[`avatarColor${ne(r)}`]},{[`& .${dt.icon}`]:t.icon},{[`& .${dt.icon}`]:t[`icon${ne(i)}`]},{[`& .${dt.icon}`]:t[`iconColor${ne(o)}`]},{[`& .${dt.deleteIcon}`]:t.deleteIcon},{[`& .${dt.deleteIcon}`]:t[`deleteIcon${ne(i)}`]},{[`& .${dt.deleteIcon}`]:t[`deleteIconColor${ne(r)}`]},{[`& .${dt.deleteIcon}`]:t[`deleteIcon${ne(l)}Color${ne(r)}`]},t.root,t[`size${ne(i)}`],t[`color${ne(r)}`],s&&t.clickable,s&&r!=="default"&&t[`clickableColor${ne(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${ne(r)}`],t[l],t[`${l}${ne(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return m({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${dt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${dt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${dt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${dt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${dt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${dt.icon}`]:m({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&m({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${dt.deleteIcon}`]:m({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:We(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:We(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:We(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${dt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:We(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${dt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>m({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:We(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${dt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:We(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${dt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>m({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${dt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${dt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${dt.avatar}`]:{marginLeft:4},[`& .${dt.avatarSmall}`]:{marginLeft:2},[`& .${dt.icon}`]:{marginLeft:4},[`& .${dt.iconSmall}`]:{marginLeft:2},[`& .${dt.deleteIcon}`]:{marginRight:5},[`& .${dt.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:We(e.palette[t.color].main,.7)}`,[`&.${dt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:We(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${dt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:We(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${dt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:We(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),BI=V("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ne(r)}`]]}})(({ownerState:e})=>m({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.size==="small"&&{paddingLeft:8,paddingRight:8}));function g0(e){return e.key==="Backspace"||e.key==="Delete"}const Ig=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiChip"}),{avatar:o,className:s,clickable:a,color:i="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:f,onClick:b,onDelete:w,onKeyDown:p,onKeyUp:S,size:h="medium",variant:g="filled",tabIndex:C,skipFocusWhenDisabled:x=!1}=r,T=q(r,NI),v=y.useRef(null),k=ut(v,n),M=L=>{L.stopPropagation(),w&&w(L)},$=L=>{L.currentTarget===L.target&&g0(L)&&L.preventDefault(),p&&p(L)},R=L=>{L.currentTarget===L.target&&(w&&g0(L)?w(L):L.key==="Escape"&&v.current&&v.current.blur()),S&&S(L)},E=a!==!1&&b?!0:a,A=E||w?Qn:l||"div",N=m({},r,{component:A,disabled:u,size:h,color:i,iconColor:y.isValidElement(d)&&d.props.color||i,onDelete:!!w,clickable:E,variant:g}),_=jI(N),D=A===Qn?m({component:l||"div",focusVisibleClassName:_.focusVisible},w&&{disableRipple:!0}):{};let O=null;w&&(O=c&&y.isValidElement(c)?y.cloneElement(c,{className:ae(c.props.className,_.deleteIcon),onClick:M}):P.jsx(AI,{className:ae(_.deleteIcon),onClick:M}));let j=null;o&&y.isValidElement(o)&&(j=y.cloneElement(o,{className:ae(_.avatar,o.props.className)}));let I=null;return d&&y.isValidElement(d)&&(I=y.cloneElement(d,{className:ae(_.icon,d.props.className)})),P.jsxs(FI,m({as:A,className:ae(_.root,s),disabled:E&&u?!0:void 0,onClick:b,onKeyDown:$,onKeyUp:R,ref:k,tabIndex:x&&u?-1:C,ownerState:N},D,T,{children:[j||I,P.jsx(BI,{className:ae(_.label),ownerState:N,children:f}),O]}))}),bH=Object.freeze(Object.defineProperty({__proto__:null,chipClasses:dt,default:Ig,getChipUtilityClass:$w},Symbol.toStringTag,{value:"Module"}));function fs({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const xf=y.createContext(void 0);function Fr(){return y.useContext(xf)}function zI(e){return P.jsx(B$,m({},e,{defaultTheme:gf,themeId:So}))}function v0(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function rd(e,t=!1){return e&&(v0(e.value)&&e.value!==""||t&&v0(e.defaultValue)&&e.defaultValue!=="")}function VI(e){return e.startAdornment}function UI(e){return Ce("MuiInputBase",e)}const Wn=be("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),WI=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Cf=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ne(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},wf=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},HI=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:s,focused:a,formControl:i,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:f,startAdornment:b,type:w}=e,p={root:["root",`color${ne(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",i&&"formControl",f&&f!=="medium"&&`size${ne(f)}`,u&&"multiline",b&&"adornedStart",s&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",w==="search"&&"inputTypeSearch",u&&"inputMultiline",f==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",b&&"inputAdornedStart",s&&"inputAdornedEnd",d&&"readOnly"]};return xe(p,UI,t)},Sf=V("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Cf})(({theme:e,ownerState:t})=>m({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Wn.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&m({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),kf=V("input",{name:"MuiInputBase",slot:"Input",overridesResolver:wf})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=m({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},s=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return m({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Wn.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus:-ms-input-placeholder":s,"&:focus::-ms-input-placeholder":s},[`&.${Wn.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),YI=P.jsx(zI,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),KI=y.forwardRef(function(t,n){var r;const o=ve({props:t,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:a,autoFocus:i,className:l,components:c={},componentsProps:u={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:b,endAdornment:w,fullWidth:p=!1,id:S,inputComponent:h="input",inputProps:g={},inputRef:C,maxRows:x,minRows:T,multiline:v=!1,name:k,onBlur:M,onChange:$,onClick:R,onFocus:E,onKeyDown:A,onKeyUp:N,placeholder:_,readOnly:D,renderSuffix:O,rows:j,slotProps:I={},slots:L={},startAdornment:F,type:J="text",value:ie}=o,ue=q(o,WI),U=g.value!=null?g.value:ie,{current:Q}=y.useRef(U!=null),K=y.useRef(),H=y.useCallback(we=>{},[]),oe=ut(K,C,g.ref,H),[me,ye]=y.useState(!1),ee=Fr(),pe=fs({props:o,muiFormControl:ee,states:["color","disabled","error","hiddenLabel","size","required","filled"]});pe.focused=ee?ee.focused:me,y.useEffect(()=>{!ee&&f&&me&&(ye(!1),M&&M())},[ee,f,me,M]);const X=ee&&ee.onFilled,he=ee&&ee.onEmpty,se=y.useCallback(we=>{rd(we)?X&&X():he&&he()},[X,he]);Zt(()=>{Q&&se({value:U})},[U,se,Q]);const Oe=we=>{if(pe.disabled){we.stopPropagation();return}E&&E(we),g.onFocus&&g.onFocus(we),ee&&ee.onFocus?ee.onFocus(we):ye(!0)},Re=we=>{M&&M(we),g.onBlur&&g.onBlur(we),ee&&ee.onBlur?ee.onBlur(we):ye(!1)},ge=(we,...ke)=>{if(!Q){const qe=we.target||K.current;if(qe==null)throw new Error(An(1));se({value:qe.value})}g.onChange&&g.onChange(we,...ke),$&&$(we,...ke)};y.useEffect(()=>{se(K.current)},[]);const $e=we=>{K.current&&we.currentTarget===we.target&&K.current.focus(),R&&R(we)};let G=h,Z=g;v&&G==="input"&&(j?Z=m({type:void 0,minRows:j,maxRows:j},Z):Z=m({type:void 0,maxRows:x,minRows:T},Z),G=TI);const te=we=>{se(we.animationName==="mui-auto-fill-cancel"?K.current:{value:"x"})};y.useEffect(()=>{ee&&ee.setAdornedStart(!!F)},[ee,F]);const De=m({},o,{color:pe.color||"primary",disabled:pe.disabled,endAdornment:w,error:pe.error,focused:pe.focused,formControl:ee,fullWidth:p,hiddenLabel:pe.hiddenLabel,multiline:v,size:pe.size,startAdornment:F,type:J}),Ae=HI(De),He=L.root||c.Root||Sf,Ue=I.root||u.root||{},Ee=L.input||c.Input||kf;return Z=m({},Z,(r=I.input)!=null?r:u.input),P.jsxs(y.Fragment,{children:[!b&&YI,P.jsxs(He,m({},Ue,!Fs(He)&&{ownerState:m({},De,Ue.ownerState)},{ref:n,onClick:$e},ue,{className:ae(Ae.root,Ue.className,l,D&&"MuiInputBase-readOnly"),children:[F,P.jsx(xf.Provider,{value:null,children:P.jsx(Ee,m({ownerState:De,"aria-invalid":pe.error,"aria-describedby":s,autoComplete:a,autoFocus:i,defaultValue:d,disabled:pe.disabled,id:S,onAnimationStart:te,name:k,placeholder:_,readOnly:D,required:pe.required,rows:j,value:U,onKeyDown:A,onKeyUp:N,type:J},Z,!Fs(Ee)&&{as:G,ownerState:m({},De,Z.ownerState)},{ref:oe,className:ae(Ae.input,Z.className,D&&"MuiInputBase-readOnly"),onBlur:Re,onChange:ge,onFocus:Oe}))}),w,O?O(m({},pe,{startAdornment:F})):null]}))]})}),Tf=KI;function GI(e){return Ce("MuiInput",e)}const Uo=m({},Wn,be("MuiInput",["root","underline","input"]));function ZI(e){return Ce("MuiOutlinedInput",e)}const Hr=m({},Wn,be("MuiOutlinedInput",["root","notchedOutline","input"]));function qI(e){return Ce("MuiFilledInput",e)}const Hn=m({},Wn,be("MuiFilledInput",["root","underline","input"])),Dw=St(P.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function QI(e){return Ce("MuiAutocomplete",e)}const at=be("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var y0,b0;const XI=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],JI=["ref"],eO=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:s,hasClearIcon:a,hasPopupIcon:i,inputFocused:l,popupOpen:c,size:u}=e,d={root:["root",r&&"expanded",o&&"focused",s&&"fullWidth",a&&"hasClearIcon",i&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${ne(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return xe(d,QI,t)},tO=V("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:s,inputFocused:a,size:i}=n;return[{[`& .${at.tag}`]:t.tag},{[`& .${at.tag}`]:t[`tagSize${ne(i)}`]},{[`& .${at.inputRoot}`]:t.inputRoot},{[`& .${at.input}`]:t.input},{[`& .${at.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,s&&t.hasPopupIcon,o&&t.hasClearIcon]}})(({ownerState:e})=>m({[`&.${at.focused} .${at.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${at.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${at.tag}`]:m({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${at.inputRoot}`]:{flexWrap:"wrap",[`.${at.hasPopupIcon}&, .${at.hasClearIcon}&`]:{paddingRight:30},[`.${at.hasPopupIcon}.${at.hasClearIcon}&`]:{paddingRight:56},[`& .${at.input}`]:{width:0,minWidth:30}},[`& .${Uo.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Uo.root}.${Wn.sizeSmall}`]:{[`& .${Uo.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Hr.root}`]:{padding:9,[`.${at.hasPopupIcon}&, .${at.hasClearIcon}&`]:{paddingRight:39},[`.${at.hasPopupIcon}.${at.hasClearIcon}&`]:{paddingRight:65},[`& .${at.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${at.endAdornment}`]:{right:9}},[`& .${Hr.root}.${Wn.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${at.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Hn.root}`]:{paddingTop:19,paddingLeft:8,[`.${at.hasPopupIcon}&, .${at.hasClearIcon}&`]:{paddingRight:39},[`.${at.hasPopupIcon}.${at.hasClearIcon}&`]:{paddingRight:65},[`& .${Hn.input}`]:{padding:"7px 4px"},[`& .${at.endAdornment}`]:{right:9}},[`& .${Hn.root}.${Wn.sizeSmall}`]:{paddingBottom:1,[`& .${Hn.input}`]:{padding:"2.5px 4px"}},[`& .${Wn.hiddenLabel}`]:{paddingTop:8},[`& .${Hn.root}.${Wn.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${at.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Hn.root}.${Wn.hiddenLabel}.${Wn.sizeSmall}`]:{[`& .${at.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${at.input}`]:m({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),nO=V("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),rO=V(Dn,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),oO=V(Dn,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>m({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>m({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),sO=V(hc,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${at.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>m({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),aO=V(jr,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>m({},e.typography.body1,{overflow:"auto"})),iO=V("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),lO=V("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),cO=V("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${at.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${at.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${at.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:We(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${at.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:We(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${at.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:We(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),uO=V(Rw,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),dO=V("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${at.option}`]:{paddingLeft:24}}),xH=y.forwardRef(function(t,n){var r,o,s,a;const i=ve({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:c=!1,autoSelect:u=!1,blurOnSelect:d=!1,ChipProps:f,className:b,clearIcon:w=y0||(y0=P.jsx(mw,{fontSize:"small"})),clearOnBlur:p=!i.freeSolo,clearOnEscape:S=!1,clearText:h="Clear",closeText:g="Close",componentsProps:C={},defaultValue:x=i.multiple?[]:null,disableClearable:T=!1,disableCloseOnSelect:v=!1,disabled:k=!1,disabledItemsFocusable:M=!1,disableListWrap:$=!1,disablePortal:R=!1,filterSelectedOptions:E=!1,forcePopupIcon:A="auto",freeSolo:N=!1,fullWidth:_=!1,getLimitTagsText:D=de=>`+${de}`,getOptionLabel:O,groupBy:j,handleHomeEndKeys:I=!i.freeSolo,includeInputInList:L=!1,limitTags:F=-1,ListboxComponent:J="ul",ListboxProps:ie,loading:ue=!1,loadingText:U="Loading…",multiple:Q=!1,noOptionsText:K="No options",openOnFocus:H=!1,openText:oe="Open",PaperComponent:me=jr,PopperComponent:ye=hc,popupIcon:ee=b0||(b0=P.jsx(Dw,{})),readOnly:pe=!1,renderGroup:X,renderInput:he,renderOption:se,renderTags:Oe,selectOnFocus:Re=!i.freeSolo,size:ge="medium",slotProps:$e={}}=i,G=q(i,XI),{getRootProps:Z,getInputProps:te,getInputLabelProps:De,getPopupIndicatorProps:Ae,getClearProps:He,getTagProps:Ue,getListboxProps:Ee,getOptionProps:we,value:ke,dirty:qe,expanded:yt,id:wt,popupOpen:Se,focused:W,focusedTag:B,anchorEl:Y,setAnchorEl:fe,inputValue:Pe,groupedOptions:_e}=$I(m({},i,{componentName:"Autocomplete"})),Be=!T&&!k&&qe&&!pe,je=(!N||A===!0)&&A!==!1,{onMouseDown:Ne}=te(),{ref:lt}=ie??{},Ye=Ee(),{ref:Ge}=Ye,et=q(Ye,JI),st=ut(Ge,lt),Cn=O||(de=>{var Le;return(Le=de.label)!=null?Le:de}),Dt=m({},i,{disablePortal:R,expanded:yt,focused:W,fullWidth:_,getOptionLabel:Cn,hasClearIcon:Be,hasPopupIcon:je,inputFocused:B===-1,popupOpen:Se,size:ge}),Pt=eO(Dt);let Ot;if(Q&&ke.length>0){const de=Le=>m({className:Pt.tag,disabled:k},Ue(Le));Oe?Ot=Oe(ke,de,Dt):Ot=ke.map((Le,tt)=>P.jsx(Ig,m({label:Cn(Le),size:ge},de({index:tt}),f)))}if(F>-1&&Array.isArray(Ot)){const de=Ot.length-F;!W&&de>0&&(Ot=Ot.splice(0,F),Ot.push(P.jsx("span",{className:Pt.tag,children:D(de)},Ot.length)))}const Bn=X||(de=>P.jsxs("li",{children:[P.jsx(uO,{className:Pt.groupLabel,ownerState:Dt,component:"div",children:de.group}),P.jsx(dO,{className:Pt.groupUl,ownerState:Dt,children:de.children})]},de.key)),zn=se||((de,Le)=>P.jsx("li",m({},de,{children:Cn(Le)}))),zr=(de,Le)=>{const tt=we({option:de,index:Le});return zn(m({},tt,{className:Pt.option}),de,{selected:tt["aria-selected"],index:Le,inputValue:Pe},Dt)},Xe=(r=$e.clearIndicator)!=null?r:C.clearIndicator,zt=(o=$e.paper)!=null?o:C.paper,le=(s=$e.popper)!=null?s:C.popper,re=(a=$e.popupIndicator)!=null?a:C.popupIndicator;return P.jsxs(y.Fragment,{children:[P.jsx(tO,m({ref:n,className:ae(Pt.root,b),ownerState:Dt},Z(G),{children:he({id:wt,disabled:k,fullWidth:!0,size:ge==="small"?"small":void 0,InputLabelProps:De(),InputProps:m({ref:fe,className:Pt.inputRoot,startAdornment:Ot,onClick:de=>{de.target===de.currentTarget&&Ne(de)}},(Be||je)&&{endAdornment:P.jsxs(nO,{className:Pt.endAdornment,ownerState:Dt,children:[Be?P.jsx(rO,m({},He(),{"aria-label":h,title:h,ownerState:Dt},Xe,{className:ae(Pt.clearIndicator,Xe==null?void 0:Xe.className),children:w})):null,je?P.jsx(oO,m({},Ae(),{disabled:k,"aria-label":Se?g:oe,title:Se?g:oe,ownerState:Dt},re,{className:ae(Pt.popupIndicator,re==null?void 0:re.className),children:ee})):null]})}),inputProps:m({className:Pt.input,disabled:k,readOnly:pe},te())})})),Y?P.jsx(sO,m({as:ye,disablePortal:R,style:{width:Y?Y.clientWidth:null},ownerState:Dt,role:"presentation",anchorEl:Y,open:Se},le,{className:ae(Pt.popper,le==null?void 0:le.className),children:P.jsxs(aO,m({ownerState:Dt,as:me},zt,{className:ae(Pt.paper,zt==null?void 0:zt.className),children:[ue&&_e.length===0?P.jsx(iO,{className:Pt.loading,ownerState:Dt,children:U}):null,_e.length===0&&!N&&!ue?P.jsx(lO,{className:Pt.noOptions,ownerState:Dt,role:"presentation",onMouseDown:de=>{de.preventDefault()},children:K}):null,_e.length>0?P.jsx(cO,m({as:J,className:Pt.listbox,ownerState:Dt},et,ie,{ref:st,children:_e.map((de,Le)=>j?Bn({key:de.key,group:de.group,children:de.options.map((tt,Lt)=>zr(tt,de.index+Lt))}):zr(de,Le))})):null]}))})):null]})}),fO=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],pO={entering:{opacity:1},entered:{opacity:1}},hi=y.forwardRef(function(t,n){const r=Xt(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:i,easing:l,in:c,onEnter:u,onEntered:d,onEntering:f,onExit:b,onExited:w,onExiting:p,style:S,timeout:h=o,TransitionComponent:g=Cr}=t,C=q(t,fO),x=y.useRef(null),T=ut(x,i.ref,n),v=_=>D=>{if(_){const O=x.current;D===void 0?_(O):_(O,D)}},k=v(f),M=v((_,D)=>{cw(_);const O=Xa({style:S,timeout:h,easing:l},{mode:"enter"});_.style.webkitTransition=r.transitions.create("opacity",O),_.style.transition=r.transitions.create("opacity",O),u&&u(_,D)}),$=v(d),R=v(p),E=v(_=>{const D=Xa({style:S,timeout:h,easing:l},{mode:"exit"});_.style.webkitTransition=r.transitions.create("opacity",D),_.style.transition=r.transitions.create("opacity",D),b&&b(_)}),A=v(w),N=_=>{s&&s(x.current,_)};return P.jsx(g,m({appear:a,in:c,nodeRef:x,onEnter:M,onEntered:$,onEntering:k,onExit:E,onExited:A,onExiting:R,addEndListener:N,timeout:h},C,{children:(_,D)=>y.cloneElement(i,m({style:m({opacity:0,visibility:_==="exited"&&!c?"hidden":void 0},pO[_],S,i.props.style),ref:T},D))}))});function hO(e){return Ce("MuiBackdrop",e)}be("MuiBackdrop",["root","invisible"]);const mO=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],gO=e=>{const{classes:t,invisible:n}=e;return xe({root:["root",n&&"invisible"]},hO,t)},vO=V("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>m({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Ew=y.forwardRef(function(t,n){var r,o,s;const a=ve({props:t,name:"MuiBackdrop"}),{children:i,className:l,component:c="div",components:u={},componentsProps:d={},invisible:f=!1,open:b,slotProps:w={},slots:p={},TransitionComponent:S=hi,transitionDuration:h}=a,g=q(a,mO),C=m({},a,{component:c,invisible:f}),x=gO(C),T=(r=w.root)!=null?r:d.root;return P.jsx(S,m({in:b,timeout:h},g,{children:P.jsx(vO,m({"aria-hidden":!0},T,{as:(o=(s=p.root)!=null?s:u.Root)!=null?o:c,className:ae(x.root,l,T==null?void 0:T.className),ownerState:m({},C,T==null?void 0:T.ownerState),classes:x,ref:n,children:i}))}))}),yO=js(),bO=W$({themeId:So,defaultTheme:yO,defaultClassName:"MuiBox-root",generateClassName:tg.generate}),CH=Object.freeze(Object.defineProperty({__proto__:null,default:bO},Symbol.toStringTag,{value:"Module"})),xO=St(P.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),CO=["slots","slotProps"],wO=V(Qn)(({theme:e})=>m({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":m({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":m({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:Xu(e.palette.grey[200],.12)}:{backgroundColor:Xu(e.palette.grey[600],.12)})})),SO=V(xO)({width:24,height:16});function kO(e){const{slots:t={},slotProps:n={}}=e,r=q(e,CO),o=e;return P.jsx("li",{children:P.jsx(wO,m({focusRipple:!0},r,{ownerState:o,children:P.jsx(SO,m({as:t.CollapsedIcon,ownerState:o},n.collapsedIcon))}))})}function TO(e){return Ce("MuiBreadcrumbs",e)}const PO=be("MuiBreadcrumbs",["root","ol","li","separator"]),MO=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],RO=e=>{const{classes:t}=e;return xe({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},TO,t)},$O=V(sn,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${PO.li}`]:t.li},t.root]})({}),DO=V("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),EO=V("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function _O(e,t,n,r){return e.reduce((o,s,a)=>(a{const M=()=>{S(!0);const $=x.current.querySelector("a[href],button,[tabindex]");$&&$.focus()};return d+u>=k.length?k:[...k.slice(0,d),P.jsx(kO,{"aria-label":c,slots:{CollapsedIcon:i.CollapsedIcon},slotProps:{collapsedIcon:C},onClick:M},"ellipsis"),...k.slice(k.length-u,k.length)]},v=y.Children.toArray(o).filter(k=>y.isValidElement(k)).map((k,M)=>P.jsx("li",{className:g.li,children:k},`child-${M}`));return P.jsx($O,m({ref:n,component:a,color:"text.secondary",className:ae(g.root,s),ownerState:h},w,{children:P.jsx(DO,{className:g.ol,ref:x,ownerState:h,children:_O(p||f&&v.length<=f?v:T(v),g.separator,b,h)})}))});function _w(e){return Ce("MuiButton",e)}const Yi=be("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),IO=y.createContext({}),OO=y.createContext(void 0),LO=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],AO=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:s,classes:a}=e,i={root:["root",s,`${s}${ne(t)}`,`size${ne(o)}`,`${s}Size${ne(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${ne(o)}`],endIcon:["endIcon",`iconSize${ne(o)}`]},l=xe(i,_w,a);return m({},a,l)},Iw=e=>m({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),NO=V(Qn,{shouldForwardProp:e=>Nr(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ne(n.color)}`],t[`size${ne(n.size)}`],t[`${n.variant}Size${ne(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],s=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return m({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":m({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:We(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:We(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:We(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:s,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":m({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Yi.focusVisible}`]:m({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Yi.disabled}`]:m({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${We(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Yi.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Yi.disabled}`]:{boxShadow:"none"}}),jO=V("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ne(n.size)}`]]}})(({ownerState:e})=>m({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Iw(e))),FO=V("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ne(n.size)}`]]}})(({ownerState:e})=>m({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Iw(e))),Sa=y.forwardRef(function(t,n){const r=y.useContext(IO),o=y.useContext(OO),s=eg(r,t),a=ve({props:s,name:"MuiButton"}),{children:i,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:f=!1,disableFocusRipple:b=!1,endIcon:w,focusVisibleClassName:p,fullWidth:S=!1,size:h="medium",startIcon:g,type:C,variant:x="text"}=a,T=q(a,LO),v=m({},a,{color:l,component:c,disabled:d,disableElevation:f,disableFocusRipple:b,fullWidth:S,size:h,type:C,variant:x}),k=AO(v),M=g&&P.jsx(jO,{className:k.startIcon,ownerState:v,children:g}),$=w&&P.jsx(FO,{className:k.endIcon,ownerState:v,children:w}),R=o||"";return P.jsxs(NO,m({ownerState:v,className:ae(r.className,k.root,u,R),component:c,disabled:d,focusRipple:!b,focusVisibleClassName:ae(k.focusVisible,p),ref:n,type:C},T,{classes:k,children:[M,i,$]}))}),SH=Object.freeze(Object.defineProperty({__proto__:null,buttonClasses:Yi,default:Sa,getButtonUtilityClass:_w},Symbol.toStringTag,{value:"Module"}));function BO(e){return Ce("MuiCard",e)}be("MuiCard",["root"]);const zO=["className","raised"],VO=e=>{const{classes:t}=e;return xe({root:["root"]},BO,t)},UO=V(jr,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),kH=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiCard"}),{className:o,raised:s=!1}=r,a=q(r,zO),i=m({},r,{raised:s}),l=VO(i);return P.jsx(UO,m({className:ae(l.root,o),elevation:s?8:void 0,ref:n,ownerState:i},a))});function WO(e){return Ce("MuiCardContent",e)}be("MuiCardContent",["root"]);const HO=["className","component"],YO=e=>{const{classes:t}=e;return xe({root:["root"]},WO,t)},KO=V("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),TH=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiCardContent"}),{className:o,component:s="div"}=r,a=q(r,HO),i=m({},r,{component:s}),l=YO(i);return P.jsx(KO,m({as:s,className:ae(l.root,o),ownerState:i,ref:n},a))});function GO(e){return Ce("PrivateSwitchBase",e)}be("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const ZO=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],qO=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,s={root:["root",n&&"checked",r&&"disabled",o&&`edge${ne(o)}`],input:["input"]};return xe(s,GO,t)},QO=V(Qn)(({ownerState:e})=>m({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),XO=V("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Ow=y.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:s,className:a,defaultChecked:i,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:f,inputProps:b,inputRef:w,name:p,onBlur:S,onChange:h,onFocus:g,readOnly:C,required:x=!1,tabIndex:T,type:v,value:k}=t,M=q(t,ZO),[$,R]=yn({controlled:o,default:!!i,name:"SwitchBase",state:"checked"}),E=Fr(),A=L=>{g&&g(L),E&&E.onFocus&&E.onFocus(L)},N=L=>{S&&S(L),E&&E.onBlur&&E.onBlur(L)},_=L=>{if(L.nativeEvent.defaultPrevented)return;const F=L.target.checked;R(F),h&&h(L,F)};let D=l;E&&typeof D>"u"&&(D=E.disabled);const O=v==="checkbox"||v==="radio",j=m({},t,{checked:$,disabled:D,disableFocusRipple:c,edge:u}),I=qO(j);return P.jsxs(QO,m({component:"span",className:ae(I.root,a),centerRipple:!0,focusRipple:!c,disabled:D,tabIndex:null,role:void 0,onFocus:A,onBlur:N,ownerState:j,ref:n},M,{children:[P.jsx(XO,m({autoFocus:r,checked:o,defaultChecked:i,className:I.input,disabled:D,id:O?f:void 0,name:p,onChange:_,readOnly:C,ref:w,required:x,ownerState:j,tabIndex:T,type:v},v==="checkbox"&&k===void 0?{}:{value:k},b)),$?s:d]}))}),JO=St(P.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),eL=St(P.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),tL=St(P.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Lw(e){return Ce("MuiCheckbox",e)}const nL=be("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),vu=nL,rL=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],oL=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,s={root:["root",n&&"indeterminate",`color${ne(r)}`,`size${ne(o)}`]},a=xe(s,Lw,t);return m({},t,a)},sL=V(Ow,{shouldForwardProp:e=>Nr(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${ne(n.color)}`]]}})(({theme:e,ownerState:t})=>m({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:We(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${vu.checked}, &.${vu.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${vu.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),aL=P.jsx(eL,{}),iL=P.jsx(JO,{}),lL=P.jsx(tL,{}),cL=y.forwardRef(function(t,n){var r,o;const s=ve({props:t,name:"MuiCheckbox"}),{checkedIcon:a=aL,color:i="primary",icon:l=iL,indeterminate:c=!1,indeterminateIcon:u=lL,inputProps:d,size:f="medium",className:b}=s,w=q(s,rL),p=c?u:l,S=c?u:a,h=m({},s,{color:i,indeterminate:c,size:f}),g=oL(h);return P.jsx(sL,m({type:"checkbox",inputProps:m({"data-indeterminate":c},d),icon:y.cloneElement(p,{fontSize:(r=p.props.fontSize)!=null?r:f}),checkedIcon:y.cloneElement(S,{fontSize:(o=S.props.fontSize)!=null?o:f}),ownerState:h,ref:n,className:ae(g.root,b)},w,{classes:g}))}),uL=cL,PH=Object.freeze(Object.defineProperty({__proto__:null,checkboxClasses:vu,default:uL,getCheckboxUtilityClass:Lw},Symbol.toStringTag,{value:"Module"}));function Aw(e){return Ce("MuiCircularProgress",e)}const dL=be("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]),fL=dL,pL=["className","color","disableShrink","size","style","thickness","value","variant"];let Pf=e=>e,x0,C0,w0,S0;const Ao=44,hL=Ar(x0||(x0=Pf` - 0% { - transform: rotate(0deg); - } - - 100% { - transform: rotate(360deg); - } -`)),mL=Ar(C0||(C0=Pf` - 0% { - stroke-dasharray: 1px, 200px; - stroke-dashoffset: 0; - } - - 50% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -15px; - } - - 100% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -125px; - } -`)),gL=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,s={root:["root",n,`color${ne(r)}`],svg:["svg"],circle:["circle",`circle${ne(n)}`,o&&"circleDisableShrink"]};return xe(s,Aw,t)},vL=V("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ne(n.color)}`]]}})(({ownerState:e,theme:t})=>m({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&ko(w0||(w0=Pf` - animation: ${0} 1.4s linear infinite; - `),hL)),yL=V("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),bL=V("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ne(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>m({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&ko(S0||(S0=Pf` - animation: ${0} 1.4s ease-in-out infinite; - `),mL)),xL=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiCircularProgress"}),{className:o,color:s="primary",disableShrink:a=!1,size:i=40,style:l,thickness:c=3.6,value:u=0,variant:d="indeterminate"}=r,f=q(r,pL),b=m({},r,{color:s,disableShrink:a,size:i,thickness:c,value:u,variant:d}),w=gL(b),p={},S={},h={};if(d==="determinate"){const g=2*Math.PI*((Ao-c)/2);p.strokeDasharray=g.toFixed(3),h["aria-valuenow"]=Math.round(u),p.strokeDashoffset=`${((100-u)/100*g).toFixed(3)}px`,S.transform="rotate(-90deg)"}return P.jsx(vL,m({className:ae(w.root,o),style:m({width:i,height:i},S,l),ownerState:b,ref:n,role:"progressbar"},h,f,{children:P.jsx(yL,{className:w.svg,ownerState:b,viewBox:`${Ao/2} ${Ao/2} ${Ao} ${Ao}`,children:P.jsx(bL,{className:w.circle,style:p,ownerState:b,cx:Ao,cy:Ao,r:(Ao-c)/2,fill:"none",strokeWidth:c})})}))}),CL=xL,MH=Object.freeze(Object.defineProperty({__proto__:null,circularProgressClasses:fL,default:CL,getCircularProgressUtilityClass:Aw},Symbol.toStringTag,{value:"Module"}));function wL(e){return Ce("MuiModal",e)}be("MuiModal",["root","hidden","backdrop"]);const SL=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],kL=e=>{const{open:t,exited:n,classes:r}=e;return xe({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},wL,r)},TL=V("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>m({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),PL=V(Ew,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Nw=y.forwardRef(function(t,n){var r,o,s,a,i,l;const c=ve({name:"MuiModal",props:t}),{BackdropComponent:u=PL,BackdropProps:d,className:f,closeAfterTransition:b=!1,children:w,container:p,component:S,components:h={},componentsProps:g={},disableAutoFocus:C=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:T=!1,disablePortal:v=!1,disableRestoreFocus:k=!1,disableScrollLock:M=!1,hideBackdrop:$=!1,keepMounted:R=!1,onBackdropClick:E,open:A,slotProps:N,slots:_}=c,D=q(c,SL),O=m({},c,{closeAfterTransition:b,disableAutoFocus:C,disableEnforceFocus:x,disableEscapeKeyDown:T,disablePortal:v,disableRestoreFocus:k,disableScrollLock:M,hideBackdrop:$,keepMounted:R}),{getRootProps:j,getBackdropProps:I,getTransitionProps:L,portalRef:F,isTopModal:J,exited:ie,hasTransition:ue}=CI(m({},O,{rootRef:n})),U=m({},O,{exited:ie}),Q=kL(U),K={};if(w.props.tabIndex===void 0&&(K.tabIndex="-1"),ue){const{onEnter:X,onExited:he}=L();K.onEnter=X,K.onExited=he}const H=(r=(o=_==null?void 0:_.root)!=null?o:h.Root)!=null?r:TL,oe=(s=(a=_==null?void 0:_.backdrop)!=null?a:h.Backdrop)!=null?s:u,me=(i=N==null?void 0:N.root)!=null?i:g.root,ye=(l=N==null?void 0:N.backdrop)!=null?l:g.backdrop,ee=ct({elementType:H,externalSlotProps:me,externalForwardedProps:D,getSlotProps:j,additionalProps:{ref:n,as:S},ownerState:U,className:ae(f,me==null?void 0:me.className,Q==null?void 0:Q.root,!U.open&&U.exited&&(Q==null?void 0:Q.hidden))}),pe=ct({elementType:oe,externalSlotProps:ye,additionalProps:d,getSlotProps:X=>I(m({},X,{onClick:he=>{E&&E(he),X!=null&&X.onClick&&X.onClick(he)}})),className:ae(ye==null?void 0:ye.className,d==null?void 0:d.className,Q==null?void 0:Q.backdrop),ownerState:U});return!R&&!A&&(!ue||ie)?null:P.jsx(Mw,{ref:F,container:p,disablePortal:v,children:P.jsxs(H,m({},ee,{children:[!$&&u?P.jsx(oe,m({},pe)):null,P.jsx(vw,{disableEnforceFocus:x,disableAutoFocus:C,disableRestoreFocus:k,isEnabled:J,open:A,children:y.cloneElement(w,K)})]}))})});function ML(e){return Ce("MuiDialog",e)}const cl=be("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),RL=y.createContext({}),$L=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],DL=V(Ew,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),EL=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:s}=e,a={root:["root"],container:["container",`scroll${ne(n)}`],paper:["paper",`paperScroll${ne(n)}`,`paperWidth${ne(String(r))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return xe(a,ML,t)},_L=V(Nw,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),IL=V("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ne(n.scroll)}`]]}})(({ownerState:e})=>m({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),OL=V(jr,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ne(n.scroll)}`],t[`paperWidth${ne(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>m({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${cl.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${cl.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${cl.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),LL=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiDialog"}),o=Xt(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":i,BackdropComponent:l,BackdropProps:c,children:u,className:d,disableEscapeKeyDown:f=!1,fullScreen:b=!1,fullWidth:w=!1,maxWidth:p="sm",onBackdropClick:S,onClose:h,open:g,PaperComponent:C=jr,PaperProps:x={},scroll:T="paper",TransitionComponent:v=hi,transitionDuration:k=s,TransitionProps:M}=r,$=q(r,$L),R=m({},r,{disableEscapeKeyDown:f,fullScreen:b,fullWidth:w,maxWidth:p,scroll:T}),E=EL(R),A=y.useRef(),N=j=>{A.current=j.target===j.currentTarget},_=j=>{A.current&&(A.current=null,S&&S(j),h&&h(j,"backdropClick"))},D=gr(i),O=y.useMemo(()=>({titleId:D}),[D]);return P.jsx(_L,m({className:ae(E.root,d),closeAfterTransition:!0,components:{Backdrop:DL},componentsProps:{backdrop:m({transitionDuration:k,as:l},c)},disableEscapeKeyDown:f,onClose:h,open:g,ref:n,onClick:_,ownerState:R},$,{children:P.jsx(v,m({appear:!0,in:g,timeout:k,role:"presentation"},M,{children:P.jsx(IL,{className:ae(E.container),onMouseDown:N,ownerState:R,children:P.jsx(OL,m({as:C,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":D},x,{className:ae(E.paper,x.className),ownerState:R,children:P.jsx(RL.Provider,{value:O,children:u})}))})}))}))});function AL(e){return Ce("MuiDialogActions",e)}be("MuiDialogActions",["root","spacing"]);const NL=["className","disableSpacing"],jL=e=>{const{classes:t,disableSpacing:n}=e;return xe({root:["root",!n&&"spacing"]},AL,t)},FL=V("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>m({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),BL=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1}=r,a=q(r,NL),i=m({},r,{disableSpacing:s}),l=jL(i);return P.jsx(FL,m({className:ae(l.root,o),ownerState:i,ref:n},a))});function zL(e){return Ce("MuiDialogContent",e)}be("MuiDialogContent",["root","dividers"]);const VL=be("MuiDialogTitle",["root"]),UL=["className","dividers"],WL=e=>{const{classes:t,dividers:n}=e;return xe({root:["root",n&&"dividers"]},zL,t)},HL=V("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>m({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${VL.root} + &`]:{paddingTop:0}})),YL=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1}=r,a=q(r,UL),i=m({},r,{dividers:s}),l=WL(i);return P.jsx(HL,m({className:ae(l.root,o),ownerState:i,ref:n},a))});function KL(e){return Ce("MuiDivider",e)}const k0=be("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),GL=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],ZL=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:s,orientation:a,textAlign:i,variant:l}=e;return xe({root:["root",t&&"absolute",l,s&&"light",a==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",i==="right"&&a!=="vertical"&&"textAlignRight",i==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},KL,r)},qL=V("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>m({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:We(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>m({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>m({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>m({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>m({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),QL=V("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>m({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),jh=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiDivider"}),{absolute:o=!1,children:s,className:a,component:i=s?"div":"hr",flexItem:l=!1,light:c=!1,orientation:u="horizontal",role:d=i!=="hr"?"separator":void 0,textAlign:f="center",variant:b="fullWidth"}=r,w=q(r,GL),p=m({},r,{absolute:o,component:i,flexItem:l,light:c,orientation:u,role:d,textAlign:f,variant:b}),S=ZL(p);return P.jsx(qL,m({as:i,className:ae(S.root,a),role:d,ref:n,ownerState:p},w,{children:s?P.jsx(QL,{className:S.wrapper,ownerState:p,children:s}):null}))});jh.muiSkipListHighlight=!0;const XL=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],JL=e=>{const{classes:t,disableUnderline:n}=e,o=xe({root:["root",!n&&"underline"],input:["input"]},qI,t);return m({},t,o)},eA=V(Sf,{shouldForwardProp:e=>Nr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Cf(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",s=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return m({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s}},[`&.${Hn.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:s},[`&.${Hn.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Hn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Hn.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Hn.disabled}, .${Hn.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Hn.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&m({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),tA=V(kf,{name:"MuiFilledInput",slot:"Input",overridesResolver:wf})(({theme:e,ownerState:t})=>m({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),Og=y.forwardRef(function(t,n){var r,o,s,a;const i=ve({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:d="input",multiline:f=!1,slotProps:b,slots:w={},type:p="text"}=i,S=q(i,XL),h=m({},i,{fullWidth:u,inputComponent:d,multiline:f,type:p}),g=JL(i),C={root:{ownerState:h},input:{ownerState:h}},x=b??c?Ht(b??c,C):C,T=(r=(o=w.root)!=null?o:l.Root)!=null?r:eA,v=(s=(a=w.input)!=null?a:l.Input)!=null?s:tA;return P.jsx(Tf,m({slots:{root:T,input:v},componentsProps:x,fullWidth:u,inputComponent:d,multiline:f,ref:n,type:p},S,{classes:g}))});Og.muiName="Input";function jw(e){return Ce("MuiFormControl",e)}const nA=be("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]),rA=nA,oA=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],sA=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${ne(n)}`,r&&"fullWidth"]};return xe(o,jw,t)},aA=V("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>m({},t.root,t[`margin${ne(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>m({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Fw=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiFormControl"}),{children:o,className:s,color:a="primary",component:i="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:f=!1,margin:b="none",required:w=!1,size:p="medium",variant:S="outlined"}=r,h=q(r,oA),g=m({},r,{color:a,component:i,disabled:l,error:c,fullWidth:d,hiddenLabel:f,margin:b,required:w,size:p,variant:S}),C=sA(g),[x,T]=y.useState(()=>{let N=!1;return o&&y.Children.forEach(o,_=>{if(!rl(_,["Input","Select"]))return;const D=rl(_,["Select"])?_.props.input:_;D&&VI(D.props)&&(N=!0)}),N}),[v,k]=y.useState(()=>{let N=!1;return o&&y.Children.forEach(o,_=>{rl(_,["Input","Select"])&&(rd(_.props,!0)||rd(_.props.inputProps,!0))&&(N=!0)}),N}),[M,$]=y.useState(!1);l&&M&&$(!1);const R=u!==void 0&&!l?u:M;let E;const A=y.useMemo(()=>({adornedStart:x,setAdornedStart:T,color:a,disabled:l,error:c,filled:v,focused:R,fullWidth:d,hiddenLabel:f,size:p,onBlur:()=>{$(!1)},onEmpty:()=>{k(!1)},onFilled:()=>{k(!0)},onFocus:()=>{$(!0)},registerEffect:E,required:w,variant:S}),[x,a,l,c,v,R,d,f,E,w,p,S]);return P.jsx(xf.Provider,{value:A,children:P.jsx(aA,m({as:i,ownerState:g,className:ae(C.root,s),ref:n},h,{children:o}))})}),RH=Object.freeze(Object.defineProperty({__proto__:null,default:Fw,formControlClasses:rA,getFormControlUtilityClasses:jw,useFormControl:Fr},Symbol.toStringTag,{value:"Module"})),iA=R2({createStyledComponent:V("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>ve({props:e,name:"MuiStack"})});function Bw(e){return Ce("MuiFormControlLabel",e)}const ka=be("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),lA=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],cA=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:s}=e,a={root:["root",n&&"disabled",`labelPlacement${ne(r)}`,o&&"error",s&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return xe(a,Bw,t)},uA=V("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ka.label}`]:t.label},t.root,t[`labelPlacement${ne(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>m({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${ka.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${ka.label}`]:{[`&.${ka.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),dA=V("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${ka.error}`]:{color:(e.vars||e).palette.error.main}})),fA=y.forwardRef(function(t,n){var r,o;const s=ve({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:i={},control:l,disabled:c,disableTypography:u,label:d,labelPlacement:f="end",required:b,slotProps:w={}}=s,p=q(s,lA),S=Fr(),h=(r=c??l.props.disabled)!=null?r:S==null?void 0:S.disabled,g=b??l.props.required,C={disabled:h,required:g};["checked","name","onChange","value","inputRef"].forEach($=>{typeof l.props[$]>"u"&&typeof s[$]<"u"&&(C[$]=s[$])});const x=fs({props:s,muiFormControl:S,states:["error"]}),T=m({},s,{disabled:h,labelPlacement:f,required:g,error:x.error}),v=cA(T),k=(o=w.typography)!=null?o:i.typography;let M=d;return M!=null&&M.type!==sn&&!u&&(M=P.jsx(sn,m({component:"span"},k,{className:ae(v.label,k==null?void 0:k.className),children:M}))),P.jsxs(uA,m({className:ae(v.root,a),ownerState:T,ref:n},p,{children:[y.cloneElement(l,C),g?P.jsxs(iA,{direction:"row",alignItems:"center",children:[M,P.jsxs(dA,{ownerState:T,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]}):M]}))}),$H=Object.freeze(Object.defineProperty({__proto__:null,default:fA,formControlLabelClasses:ka,getFormControlLabelUtilityClasses:Bw},Symbol.toStringTag,{value:"Module"}));function zw(e){return Ce("MuiFormGroup",e)}const pA=be("MuiFormGroup",["root","row","error"]),hA=pA,mA=["className","row"],gA=e=>{const{classes:t,row:n,error:r}=e;return xe({root:["root",n&&"row",r&&"error"]},zw,t)},vA=V("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>m({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),yA=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiFormGroup"}),{className:o,row:s=!1}=r,a=q(r,mA),i=Fr(),l=fs({props:r,muiFormControl:i,states:["error"]}),c=m({},r,{row:s,error:l.error}),u=gA(c);return P.jsx(vA,m({className:ae(u.root,o),ownerState:c,ref:n},a))}),bA=yA,DH=Object.freeze(Object.defineProperty({__proto__:null,default:bA,formGroupClasses:hA,getFormGroupUtilityClass:zw},Symbol.toStringTag,{value:"Module"}));function Vw(e){return Ce("MuiFormHelperText",e)}const xA=be("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),Fh=xA;var T0;const CA=["children","className","component","disabled","error","filled","focused","margin","required","variant"],wA=e=>{const{classes:t,contained:n,size:r,disabled:o,error:s,filled:a,focused:i,required:l}=e,c={root:["root",o&&"disabled",s&&"error",r&&`size${ne(r)}`,n&&"contained",i&&"focused",a&&"filled",l&&"required"]};return xe(c,Vw,t)},SA=V("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ne(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>m({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Fh.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Fh.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Uw=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiFormHelperText"}),{children:o,className:s,component:a="p"}=r,i=q(r,CA),l=Fr(),c=fs({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),u=m({},r,{component:a,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),d=wA(u);return P.jsx(SA,m({as:a,ownerState:u,className:ae(d.root,s),ref:n},i,{children:o===" "?T0||(T0=P.jsx("span",{className:"notranslate",children:"​"})):o}))}),EH=Object.freeze(Object.defineProperty({__proto__:null,default:Uw,formHelperTextClasses:Fh,getFormHelperTextUtilityClasses:Vw},Symbol.toStringTag,{value:"Module"}));function kA(e){return Ce("MuiFormLabel",e)}const ul=be("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),TA=["children","className","color","component","disabled","error","filled","focused","required"],PA=e=>{const{classes:t,color:n,focused:r,disabled:o,error:s,filled:a,required:i}=e,l={root:["root",`color${ne(n)}`,o&&"disabled",s&&"error",a&&"filled",r&&"focused",i&&"required"],asterisk:["asterisk",s&&"error"]};return xe(l,kA,t)},MA=V("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>m({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>m({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${ul.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${ul.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ul.error}`]:{color:(e.vars||e).palette.error.main}})),RA=V("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${ul.error}`]:{color:(e.vars||e).palette.error.main}})),$A=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiFormLabel"}),{children:o,className:s,component:a="label"}=r,i=q(r,TA),l=Fr(),c=fs({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),u=m({},r,{color:c.color||"primary",component:a,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),d=PA(u);return P.jsxs(MA,m({as:a,ownerState:u,className:ae(d.root,s),ref:n},i,{children:[o,c.required&&P.jsxs(RA,{ownerState:u,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),P0=y.createContext();function DA(e){return Ce("MuiGrid",e)}const EA=[0,1,2,3,4,5,6,7,8,9,10],_A=["column-reverse","column","row-reverse","row"],IA=["nowrap","wrap-reverse","wrap"],$i=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Nl=be("MuiGrid",["root","container","item","zeroMinWidth",...EA.map(e=>`spacing-xs-${e}`),..._A.map(e=>`direction-xs-${e}`),...IA.map(e=>`wrap-xs-${e}`),...$i.map(e=>`grid-xs-${e}`),...$i.map(e=>`grid-sm-${e}`),...$i.map(e=>`grid-md-${e}`),...$i.map(e=>`grid-lg-${e}`),...$i.map(e=>`grid-xl-${e}`)]),OA=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Aa(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function LA({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let s={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)s={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")s={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=$s({values:t.columns,breakpoints:e.breakpoints.values}),i=typeof a=="object"?a[o]:a;if(i==null)return r;const l=`${Math.round(n/i*1e8)/1e6}%`;let c={};if(t.container&&t.item&&t.columnSpacing!==0){const u=e.spacing(t.columnSpacing);if(u!=="0px"){const d=`calc(${l} + ${Aa(u)})`;c={flexBasis:d,maxWidth:d}}}s=m({flexBasis:l,flexGrow:0,maxWidth:l},c)}return e.breakpoints.values[o]===0?Object.assign(r,s):r[e.breakpoints.up(o)]=s,r},{})}function AA({theme:e,ownerState:t}){const n=$s({values:t.direction,breakpoints:e.breakpoints.values});return jn({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${Nl.item}`]={maxWidth:"none"}),o})}function Ww({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,s)=>e[o]-e[s]);return r.slice(0,r.indexOf(n))}function NA({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const s=$s({values:r,breakpoints:e.breakpoints.values});let a;typeof s=="object"&&(a=Ww({breakpoints:e.breakpoints.values,values:s})),o=jn({theme:e},s,(i,l)=>{var c;const u=e.spacing(i);return u!=="0px"?{marginTop:`-${Aa(u)}`,[`& > .${Nl.item}`]:{paddingTop:Aa(u)}}:(c=a)!=null&&c.includes(l)?{}:{marginTop:0,[`& > .${Nl.item}`]:{paddingTop:0}}})}return o}function jA({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const s=$s({values:r,breakpoints:e.breakpoints.values});let a;typeof s=="object"&&(a=Ww({breakpoints:e.breakpoints.values,values:s})),o=jn({theme:e},s,(i,l)=>{var c;const u=e.spacing(i);return u!=="0px"?{width:`calc(100% + ${Aa(u)})`,marginLeft:`-${Aa(u)}`,[`& > .${Nl.item}`]:{paddingLeft:Aa(u)}}:(c=a)!=null&&c.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${Nl.item}`]:{paddingLeft:0}}})}return o}function FA(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(o=>{const s=e[o];Number(s)>0&&r.push(n[`spacing-${o}-${String(s)}`])}),r}const BA=V("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:s,spacing:a,wrap:i,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=FA(a,c,t));const d=[];return c.forEach(f=>{const b=n[f];b&&d.push(t[`grid-${f}-${String(b)}`])}),[t.root,r&&t.container,s&&t.item,l&&t.zeroMinWidth,...u,o!=="row"&&t[`direction-xs-${String(o)}`],i!=="wrap"&&t[`wrap-xs-${String(i)}`],...d]}})(({ownerState:e})=>m({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),AA,NA,jA,LA);function zA(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const o=e[r];if(Number(o)>0){const s=`spacing-${r}-${String(o)}`;n.push(s)}}),n}const VA=e=>{const{classes:t,container:n,direction:r,item:o,spacing:s,wrap:a,zeroMinWidth:i,breakpoints:l}=e;let c=[];n&&(c=zA(s,l));const u=[];l.forEach(f=>{const b=e[f];b&&u.push(`grid-${f}-${String(b)}`)});const d={root:["root",n&&"container",o&&"item",i&&"zeroMinWidth",...c,r!=="row"&&`direction-xs-${String(r)}`,a!=="wrap"&&`wrap-xs-${String(a)}`,...u]};return xe(d,DA,t)},_H=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiGrid"}),{breakpoints:o}=Xt(),s=mf(r),{className:a,columns:i,columnSpacing:l,component:c="div",container:u=!1,direction:d="row",item:f=!1,rowSpacing:b,spacing:w=0,wrap:p="wrap",zeroMinWidth:S=!1}=s,h=q(s,OA),g=b||w,C=l||w,x=y.useContext(P0),T=u?i||12:x,v={},k=m({},h);o.keys.forEach(R=>{h[R]!=null&&(v[R]=h[R],delete k[R])});const M=m({},s,{columns:T,container:u,direction:d,item:f,rowSpacing:g,columnSpacing:C,wrap:p,zeroMinWidth:S,spacing:w},v,{breakpoints:o.keys}),$=VA(M);return P.jsx(P0.Provider,{value:T,children:P.jsx(BA,m({ownerState:M,className:ae($.root,a),as:c,ref:n},k))})}),UA=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Bh(e){return`scale(${e}, ${e**2})`}const WA={entering:{opacity:1,transform:Bh(1)},entered:{opacity:1,transform:"none"}},bp=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ri=y.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:s,easing:a,in:i,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:f,onExiting:b,style:w,timeout:p="auto",TransitionComponent:S=Cr}=t,h=q(t,UA),g=y.useRef(),C=y.useRef(),x=Xt(),T=y.useRef(null),v=ut(T,s.ref,n),k=D=>O=>{if(D){const j=T.current;O===void 0?D(j):D(j,O)}},M=k(u),$=k((D,O)=>{cw(D);const{duration:j,delay:I,easing:L}=Xa({style:w,timeout:p,easing:a},{mode:"enter"});let F;p==="auto"?(F=x.transitions.getAutoHeightDuration(D.clientHeight),C.current=F):F=j,D.style.transition=[x.transitions.create("opacity",{duration:F,delay:I}),x.transitions.create("transform",{duration:bp?F:F*.666,delay:I,easing:L})].join(","),l&&l(D,O)}),R=k(c),E=k(b),A=k(D=>{const{duration:O,delay:j,easing:I}=Xa({style:w,timeout:p,easing:a},{mode:"exit"});let L;p==="auto"?(L=x.transitions.getAutoHeightDuration(D.clientHeight),C.current=L):L=O,D.style.transition=[x.transitions.create("opacity",{duration:L,delay:j}),x.transitions.create("transform",{duration:bp?L:L*.666,delay:bp?j:j||L*.333,easing:I})].join(","),D.style.opacity=0,D.style.transform=Bh(.75),d&&d(D)}),N=k(f),_=D=>{p==="auto"&&(g.current=setTimeout(D,C.current||0)),r&&r(T.current,D)};return y.useEffect(()=>()=>{clearTimeout(g.current)},[]),P.jsx(S,m({appear:o,in:i,nodeRef:T,onEnter:$,onEntered:R,onEntering:M,onExit:A,onExited:N,onExiting:E,addEndListener:_,timeout:p==="auto"?null:p},h,{children:(D,O)=>y.cloneElement(s,m({style:m({opacity:0,transform:Bh(.75),visibility:D==="exited"&&!i?"hidden":void 0},WA[D],w,s.props.style),ref:v},O))}))});ri.muiSupportAuto=!0;function HA(e,t,n,r,o){const[s,a]=y.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Zt(()=>{let i=!0;if(!n)return;const l=n(e),c=()=>{i&&a(l.matches)};return c(),l.addListener(c),()=>{i=!1,l.removeListener(c)}},[e,n]),s}const Hw=y.useSyncExternalStore;function YA(e,t,n,r,o){const s=y.useCallback(()=>t,[t]),a=y.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return s},[s,e,r,o,n]),[i,l]=y.useMemo(()=>{if(n===null)return[s,()=>()=>{}];const u=n(e);return[()=>u.matches,d=>(u.addListener(d),()=>{u.removeListener(d)})]},[s,n,e]);return Hw(l,i,a)}function Yw(e,t={}){const n=hf(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:s=r?window.matchMedia:null,ssrMatchMedia:a=null,noSsr:i=!1}=ZC({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(Hw!==void 0?YA:HA)(l,o,s,a,i)}function Kw(e){return Ce("MuiIcon",e)}const KA=be("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]),GA=KA,ZA=["baseClassName","className","color","component","fontSize"],qA=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ne(t)}`,`fontSize${ne(n)}`]};return xe(o,Kw,r)},QA=V("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ne(n.color)}`],t[`fontSize${ne(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]})),Gw=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiIcon"}),{baseClassName:o="material-icons",className:s,color:a="inherit",component:i="span",fontSize:l="medium"}=r,c=q(r,ZA),u=m({},r,{baseClassName:o,color:a,component:i,fontSize:l}),d=qA(u);return P.jsx(QA,m({as:i,className:ae(o,"notranslate",d.root,s),ownerState:u,"aria-hidden":!0,ref:n},c))});Gw.muiName="Icon";const XA=Gw,IH=Object.freeze(Object.defineProperty({__proto__:null,default:XA,getIconUtilityClass:Kw,iconClasses:GA},Symbol.toStringTag,{value:"Module"})),JA=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],eN=e=>{const{classes:t,disableUnderline:n}=e,o=xe({root:["root",!n&&"underline"],input:["input"]},GI,t);return m({},t,o)},tN=V(Sf,{shouldForwardProp:e=>Nr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Cf(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),m({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Uo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Uo.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Uo.disabled}, .${Uo.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Uo.disabled}:before`]:{borderBottomStyle:"dotted"}})}),nN=V(kf,{name:"MuiInput",slot:"Input",overridesResolver:wf})({}),Lg=y.forwardRef(function(t,n){var r,o,s,a;const i=ve({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:u,fullWidth:d=!1,inputComponent:f="input",multiline:b=!1,slotProps:w,slots:p={},type:S="text"}=i,h=q(i,JA),g=eN(i),x={root:{ownerState:{disableUnderline:l}}},T=w??u?Ht(w??u,x):x,v=(r=(o=p.root)!=null?o:c.Root)!=null?r:tN,k=(s=(a=p.input)!=null?a:c.Input)!=null?s:nN;return P.jsx(Tf,m({slots:{root:v,input:k},slotProps:T,fullWidth:d,inputComponent:f,multiline:b,ref:n,type:S},h,{classes:g}))});Lg.muiName="Input";function Zw(e){return Ce("MuiInputAdornment",e)}const rN=be("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),zh=rN;var M0;const oN=["children","className","component","disablePointerEvents","disableTypography","position","variant"],sN=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ne(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},aN=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:s,variant:a}=e,i={root:["root",n&&"disablePointerEvents",o&&`position${ne(o)}`,a,r&&"hiddenLabel",s&&`size${ne(s)}`]};return xe(i,Zw,t)},iN=V("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:sN})(({theme:e,ownerState:t})=>m({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${zh.positionStart}&:not(.${zh.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),lN=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiInputAdornment"}),{children:o,className:s,component:a="div",disablePointerEvents:i=!1,disableTypography:l=!1,position:c,variant:u}=r,d=q(r,oN),f=Fr()||{};let b=u;u&&f.variant,f&&!b&&(b=f.variant);const w=m({},r,{hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:i,position:c,variant:b}),p=aN(w);return P.jsx(xf.Provider,{value:null,children:P.jsx(iN,m({as:a,ownerState:w,className:ae(p.root,s),ref:n},d,{children:typeof o=="string"&&!l?P.jsx(sn,{color:"text.secondary",children:o}):P.jsxs(y.Fragment,{children:[c==="start"?M0||(M0=P.jsx("span",{className:"notranslate",children:"​"})):null,o]})}))})}),Ag=lN,OH=Object.freeze(Object.defineProperty({__proto__:null,default:Ag,getInputAdornmentUtilityClass:Zw,inputAdornmentClasses:zh},Symbol.toStringTag,{value:"Module"}));function qw(e){return Ce("MuiInputLabel",e)}const cN=be("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]),uN=cN,dN=["disableAnimation","margin","shrink","variant","className"],fN=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:s,variant:a,required:i}=e,l={root:["root",n&&"formControl",!s&&"animated",o&&"shrink",r&&r!=="normal"&&`size${ne(r)}`,a],asterisk:[i&&"asterisk"]},c=xe(l,qw,t);return m({},t,c)},pN=V($A,{shouldForwardProp:e=>Nr(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ul.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>m({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&m({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&m({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&m({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Qw=y.forwardRef(function(t,n){const r=ve({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:s,className:a}=r,i=q(r,dN),l=Fr();let c=s;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const u=fs({props:r,muiFormControl:l,states:["size","variant","required"]}),d=m({},r,{disableAnimation:o,formControl:l,shrink:c,size:u.size,variant:u.variant,required:u.required}),f=fN(d);return P.jsx(pN,m({"data-shrink":c,ownerState:d,ref:n,className:ae(f.root,a)},i,{classes:f}))}),LH=Object.freeze(Object.defineProperty({__proto__:null,default:Qw,getInputLabelUtilityClasses:qw,inputLabelClasses:uN},Symbol.toStringTag,{value:"Module"}));function Xw(e){return Ce("MuiLinearProgress",e)}const hN=be("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]),mN=hN,gN=["className","color","value","valueBuffer","variant"];let mi=e=>e,R0,$0,D0,E0,_0,I0;const Vh=4,vN=Ar(R0||(R0=mi` - 0% { - left: -35%; - right: 100%; - } - - 60% { - left: 100%; - right: -90%; - } - - 100% { - left: 100%; - right: -90%; - } -`)),yN=Ar($0||($0=mi` - 0% { - left: -200%; - right: 100%; - } - - 60% { - left: 107%; - right: -8%; - } - - 100% { - left: 107%; - right: -8%; - } -`)),bN=Ar(D0||(D0=mi` - 0% { - opacity: 1; - background-position: 0 -23px; - } - - 60% { - opacity: 0; - background-position: 0 -23px; - } - - 100% { - opacity: 1; - background-position: -200px -23px; - } -`)),xN=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${ne(r)}`,n],dashed:["dashed",`dashedColor${ne(r)}`],bar1:["bar",`barColor${ne(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${ne(r)}`,n==="buffer"&&`color${ne(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return xe(o,Xw,t)},Ng=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?Po(e.palette[t].main,.62):To(e.palette[t].main,.5),CN=V("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ne(n.color)}`],t[n.variant]]}})(({ownerState:e,theme:t})=>m({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:Ng(t,e.color)},e.color==="inherit"&&e.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},e.variant==="buffer"&&{backgroundColor:"transparent"},e.variant==="query"&&{transform:"rotate(180deg)"})),wN=V("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${ne(n.color)}`]]}})(({ownerState:e,theme:t})=>{const n=Ng(t,e.color);return m({position:"absolute",marginTop:0,height:"100%",width:"100%"},e.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},ko(E0||(E0=mi` - animation: ${0} 3s infinite linear; - `),bN)),SN=V("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${ne(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>m({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.variant==="determinate"&&{transition:`transform .${Vh}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${Vh}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&ko(_0||(_0=mi` - width: auto; - animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; - `),vN)),kN=V("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${ne(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>m({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:Ng(t,e.color),transition:`transform .${Vh}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&ko(I0||(I0=mi` - width: auto; - animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; - `),yN)),TN=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiLinearProgress"}),{className:o,color:s="primary",value:a,valueBuffer:i,variant:l="indeterminate"}=r,c=q(r,gN),u=m({},r,{color:s,variant:l}),d=xN(u),f=Xt(),b={},w={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&a!==void 0){b["aria-valuenow"]=Math.round(a),b["aria-valuemin"]=0,b["aria-valuemax"]=100;let p=a-100;f.direction==="rtl"&&(p=-p),w.bar1.transform=`translateX(${p}%)`}if(l==="buffer"&&i!==void 0){let p=(i||0)-100;f.direction==="rtl"&&(p=-p),w.bar2.transform=`translateX(${p}%)`}return P.jsxs(CN,m({className:ae(d.root,o),ownerState:u,role:"progressbar"},b,{ref:n},c,{children:[l==="buffer"?P.jsx(wN,{className:d.dashed,ownerState:u}):null,P.jsx(SN,{className:d.bar1,ownerState:u,style:w.bar1}),l==="determinate"?null:P.jsx(kN,{className:d.bar2,ownerState:u,style:w.bar2})]}))}),AH=Object.freeze(Object.defineProperty({__proto__:null,default:TN,getLinearProgressUtilityClass:Xw,linearProgressClasses:mN},Symbol.toStringTag,{value:"Module"}));function PN(e){return Ce("MuiLink",e)}const MN=be("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Jw={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},RN=e=>Jw[e]||e,$N=({theme:e,ownerState:t})=>{const n=RN(t.color),r=Qa(e,`palette.${n}`,!1)||t.color,o=Qa(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:We(r,.4)},DN=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],EN=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,s={root:["root",`underline${ne(o)}`,n==="button"&&"button",r&&"focusVisible"]};return xe(s,PN,t)},_N=V(sn,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ne(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>m({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&m({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:$N({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${MN.focusVisible}`]:{outline:"auto"}})),NH=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiLink"}),{className:o,color:s="primary",component:a="a",onBlur:i,onFocus:l,TypographyClasses:c,underline:u="always",variant:d="inherit",sx:f}=r,b=q(r,DN),{isFocusVisibleRef:w,onBlur:p,onFocus:S,ref:h}=Yd(),[g,C]=y.useState(!1),x=ut(n,h),T=$=>{p($),w.current===!1&&C(!1),i&&i($)},v=$=>{S($),w.current===!0&&C(!0),l&&l($)},k=m({},r,{color:s,component:a,focusVisible:g,underline:u,variant:d}),M=EN(k);return P.jsx(_N,m({color:s,className:ae(M.root,o),classes:c,component:a,onBlur:T,onFocus:v,ref:x,ownerState:k,variant:d,sx:[...Object.keys(Jw).includes(s)?[]:[{color:s}],...Array.isArray(f)?f:[f]]},b))}),ts=y.createContext({});function IN(e){return Ce("MuiList",e)}be("MuiList",["root","padding","dense","subheader"]);const ON=["children","className","component","dense","disablePadding","subheader"],LN=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return xe({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},IN,t)},AN=V("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>m({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),eS=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiList"}),{children:o,className:s,component:a="ul",dense:i=!1,disablePadding:l=!1,subheader:c}=r,u=q(r,ON),d=y.useMemo(()=>({dense:i}),[i]),f=m({},r,{component:a,dense:i,disablePadding:l}),b=LN(f);return P.jsx(ts.Provider,{value:d,children:P.jsxs(AN,m({as:a,className:ae(b.root,s),ref:n,ownerState:f},u,{children:[c,o]}))})});function NN(e){return Ce("MuiListItem",e)}const aa=be("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),jN=be("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function FN(e){return Ce("MuiListItemSecondaryAction",e)}be("MuiListItemSecondaryAction",["root","disableGutters"]);const BN=["className"],zN=e=>{const{disableGutters:t,classes:n}=e;return xe({root:["root",t&&"disableGutters"]},FN,n)},VN=V("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>m({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),tS=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,s=q(r,BN),a=y.useContext(ts),i=m({},r,{disableGutters:a.disableGutters}),l=zN(i);return P.jsx(VN,m({className:ae(l.root,o),ownerState:i,ref:n},s))});tS.muiName="ListItemSecondaryAction";const UN=["className"],WN=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],HN=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},YN=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:s,disableGutters:a,disablePadding:i,divider:l,hasSecondaryAction:c,selected:u}=e;return xe({root:["root",o&&"dense",!a&&"gutters",!i&&"padding",l&&"divider",s&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},NN,r)},KN=V("div",{name:"MuiListItem",slot:"Root",overridesResolver:HN})(({theme:e,ownerState:t})=>m({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&m({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${jN.root}`]:{paddingRight:48}},{[`&.${aa.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${aa.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:We(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${aa.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:We(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${aa.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${aa.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:We(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:We(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),GN=V("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),ZN=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:s=!1,button:a=!1,children:i,className:l,component:c,components:u={},componentsProps:d={},ContainerComponent:f="li",ContainerProps:{className:b}={},dense:w=!1,disabled:p=!1,disableGutters:S=!1,disablePadding:h=!1,divider:g=!1,focusVisibleClassName:C,secondaryAction:x,selected:T=!1,slotProps:v={},slots:k={}}=r,M=q(r.ContainerProps,UN),$=q(r,WN),R=y.useContext(ts),E=y.useMemo(()=>({dense:w||R.dense||!1,alignItems:o,disableGutters:S}),[o,R.dense,w,S]),A=y.useRef(null);Zt(()=>{s&&A.current&&A.current.focus()},[s]);const N=y.Children.toArray(i),_=N.length&&rl(N[N.length-1],["ListItemSecondaryAction"]),D=m({},r,{alignItems:o,autoFocus:s,button:a,dense:E.dense,disabled:p,disableGutters:S,disablePadding:h,divider:g,hasSecondaryAction:_,selected:T}),O=YN(D),j=ut(A,n),I=k.root||u.Root||KN,L=v.root||d.root||{},F=m({className:ae(O.root,L.className,l),disabled:p},$);let J=c||"li";return a&&(F.component=c||"div",F.focusVisibleClassName=ae(aa.focusVisible,C),J=Qn),_?(J=!F.component&&!c?"div":J,f==="li"&&(J==="li"?J="div":F.component==="li"&&(F.component="div")),P.jsx(ts.Provider,{value:E,children:P.jsxs(GN,m({as:f,className:ae(O.container,b),ref:j,ownerState:D},M,{children:[P.jsx(I,m({},L,!Fs(I)&&{as:J,ownerState:m({},D,L.ownerState)},F,{children:N})),N.pop()]}))})):P.jsx(ts.Provider,{value:E,children:P.jsxs(I,m({},L,{as:J,ref:j},!Fs(I)&&{ownerState:m({},D,L.ownerState)},F,{children:[N,x&&P.jsx(tS,{children:x})]}))})}),O0=be("MuiListItemIcon",["root","alignItemsFlexStart"]);function nS(e){return Ce("MuiListItemText",e)}const jl=be("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),qN=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],QN=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:s}=e;return xe({root:["root",n&&"inset",s&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},nS,t)},XN=V("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${jl.primary}`]:t.primary},{[`& .${jl.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>m({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),JN=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiListItemText"}),{children:o,className:s,disableTypography:a=!1,inset:i=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:d}=r,f=q(r,qN),{dense:b}=y.useContext(ts);let w=l??o,p=u;const S=m({},r,{disableTypography:a,inset:i,primary:!!w,secondary:!!p,dense:b}),h=QN(S);return w!=null&&w.type!==sn&&!a&&(w=P.jsx(sn,m({variant:b?"body2":"body1",className:h.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:w}))),p!=null&&p.type!==sn&&!a&&(p=P.jsx(sn,m({variant:"body2",className:h.secondary,color:"text.secondary",display:"block"},d,{children:p}))),P.jsxs(XN,m({className:ae(h.root,s),ownerState:S,ref:n},f,{children:[w,p]}))}),ej=JN,jH=Object.freeze(Object.defineProperty({__proto__:null,default:ej,getListItemTextUtilityClass:nS,listItemTextClasses:jl},Symbol.toStringTag,{value:"Module"})),tj=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function xp(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function L0(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function rS(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function Di(e,t,n,r,o,s){let a=!1,i=o(e,t,t?n:!1);for(;i;){if(i===e.firstChild){if(a)return!1;a=!0}const l=r?!1:i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||!rS(i,s)||l)i=o(e,i,n);else return i.focus(),!0}return!1}const jg=y.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:s=!1,children:a,className:i,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu"}=t,f=q(t,tj),b=y.useRef(null),w=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Zt(()=>{o&&b.current.focus()},[o]),y.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(C,x)=>{const T=!b.current.style.width;if(C.clientHeight{const x=b.current,T=C.key,v=Ft(x).activeElement;if(T==="ArrowDown")C.preventDefault(),Di(x,v,c,l,xp);else if(T==="ArrowUp")C.preventDefault(),Di(x,v,c,l,L0);else if(T==="Home")C.preventDefault(),Di(x,null,c,l,xp);else if(T==="End")C.preventDefault(),Di(x,null,c,l,L0);else if(T.length===1){const k=w.current,M=T.toLowerCase(),$=performance.now();k.keys.length>0&&($-k.lastTime>500?(k.keys=[],k.repeating=!0,k.previousKeyMatched=!0):k.repeating&&M!==k.keys[0]&&(k.repeating=!1)),k.lastTime=$,k.keys.push(M);const R=v&&!k.repeating&&rS(v,k);k.previousKeyMatched&&(R||Di(x,v,!1,l,xp,k))?C.preventDefault():k.previousKeyMatched=!1}u&&u(C)},S=ut(b,n);let h=-1;y.Children.forEach(a,(C,x)=>{if(!y.isValidElement(C)){h===x&&(h+=1,h>=a.length&&(h=-1));return}C.props.disabled||(d==="selectedMenu"&&C.props.selected||h===-1)&&(h=x),h===x&&(C.props.disabled||C.props.muiSkipListHighlight||C.type.muiSkipListHighlight)&&(h+=1,h>=a.length&&(h=-1))});const g=y.Children.map(a,(C,x)=>{if(x===h){const T={};return s&&(T.autoFocus=!0),C.props.tabIndex===void 0&&d==="selectedMenu"&&(T.tabIndex=0),y.cloneElement(C,T)}return C});return P.jsx(eS,m({role:"menu",ref:S,className:i,onKeyDown:p,tabIndex:o?0:-1},f,{children:g}))});function nj(e){return Ce("MuiPopover",e)}be("MuiPopover",["root","paper"]);const rj=["onEntering"],oj=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],sj=["slotProps"];function A0(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function N0(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function j0(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Cp(e){return typeof e=="function"?e():e}const aj=e=>{const{classes:t}=e;return xe({root:["root"],paper:["paper"]},nj,t)},ij=V(Nw,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),oS=V(jr,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),lj=y.forwardRef(function(t,n){var r,o,s;const a=ve({props:t,name:"MuiPopover"}),{action:i,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:d="anchorEl",children:f,className:b,container:w,elevation:p=8,marginThreshold:S=16,open:h,PaperProps:g={},slots:C,slotProps:x,transformOrigin:T={vertical:"top",horizontal:"left"},TransitionComponent:v=ri,transitionDuration:k="auto",TransitionProps:{onEntering:M}={},disableScrollLock:$=!1}=a,R=q(a.TransitionProps,rj),E=q(a,oj),A=(r=x==null?void 0:x.paper)!=null?r:g,N=y.useRef(),_=ut(N,A.ref),D=m({},a,{anchorOrigin:c,anchorReference:d,elevation:p,marginThreshold:S,externalPaperSlotProps:A,transformOrigin:T,TransitionComponent:v,transitionDuration:k,TransitionProps:R}),O=aj(D),j=y.useCallback(()=>{if(d==="anchorPosition")return u;const X=Cp(l),se=(X&&X.nodeType===1?X:Ft(N.current).body).getBoundingClientRect();return{top:se.top+A0(se,c.vertical),left:se.left+N0(se,c.horizontal)}},[l,c.horizontal,c.vertical,u,d]),I=y.useCallback(X=>({vertical:A0(X,T.vertical),horizontal:N0(X,T.horizontal)}),[T.horizontal,T.vertical]),L=y.useCallback(X=>{const he={width:X.offsetWidth,height:X.offsetHeight},se=I(he);if(d==="none")return{top:null,left:null,transformOrigin:j0(se)};const Oe=j();let Re=Oe.top-se.vertical,ge=Oe.left-se.horizontal;const $e=Re+he.height,G=ge+he.width,Z=ro(Cp(l)),te=Z.innerHeight-S,De=Z.innerWidth-S;if(S!==null&&Rete){const Ae=$e-te;Re-=Ae,se.vertical+=Ae}if(S!==null&&geDe){const Ae=G-De;ge-=Ae,se.horizontal+=Ae}return{top:`${Math.round(Re)}px`,left:`${Math.round(ge)}px`,transformOrigin:j0(se)}},[l,d,j,I,S]),[F,J]=y.useState(h),ie=y.useCallback(()=>{const X=N.current;if(!X)return;const he=L(X);he.top!==null&&(X.style.top=he.top),he.left!==null&&(X.style.left=he.left),X.style.transformOrigin=he.transformOrigin,J(!0)},[L]);y.useEffect(()=>($&&window.addEventListener("scroll",ie),()=>window.removeEventListener("scroll",ie)),[l,$,ie]);const ue=(X,he)=>{M&&M(X,he),ie()},U=()=>{J(!1)};y.useEffect(()=>{h&&ie()}),y.useImperativeHandle(i,()=>h?{updatePosition:()=>{ie()}}:null,[h,ie]),y.useEffect(()=>{if(!h)return;const X=ac(()=>{ie()}),he=ro(l);return he.addEventListener("resize",X),()=>{X.clear(),he.removeEventListener("resize",X)}},[l,h,ie]);let Q=k;k==="auto"&&!v.muiSupportAuto&&(Q=void 0);const K=w||(l?Ft(Cp(l)).body:void 0),H=(o=C==null?void 0:C.root)!=null?o:ij,oe=(s=C==null?void 0:C.paper)!=null?s:oS,me=ct({elementType:oe,externalSlotProps:m({},A,{style:F?A.style:m({},A.style,{opacity:0})}),additionalProps:{elevation:p,ref:_},ownerState:D,className:ae(O.paper,A==null?void 0:A.className)}),ye=ct({elementType:H,externalSlotProps:(x==null?void 0:x.root)||{},externalForwardedProps:E,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:K,open:h},ownerState:D,className:ae(O.root,b)}),{slotProps:ee}=ye,pe=q(ye,sj);return P.jsx(H,m({},pe,!Fs(H)&&{slotProps:ee,disableScrollLock:$},{children:P.jsx(v,m({appear:!0,in:h,onEntering:ue,onExited:U,timeout:Q},R,{children:P.jsx(oe,m({},me,{children:f}))}))}))});function sS(e){return Ce("MuiMenu",e)}const cj=be("MuiMenu",["root","paper","list"]),uj=cj,dj=["onEntering"],fj=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],pj={vertical:"top",horizontal:"right"},hj={vertical:"top",horizontal:"left"},mj=e=>{const{classes:t}=e;return xe({root:["root"],paper:["paper"],list:["list"]},sS,t)},gj=V(lj,{shouldForwardProp:e=>Nr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),vj=V(oS,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),yj=V(jg,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),bj=y.forwardRef(function(t,n){var r,o;const s=ve({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:i,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:d,open:f,PaperProps:b={},PopoverClasses:w,transitionDuration:p="auto",TransitionProps:{onEntering:S}={},variant:h="selectedMenu",slots:g={},slotProps:C={}}=s,x=q(s.TransitionProps,dj),T=q(s,fj),v=Xt(),k=v.direction==="rtl",M=m({},s,{autoFocus:a,disableAutoFocusItem:c,MenuListProps:u,onEntering:S,PaperProps:b,transitionDuration:p,TransitionProps:x,variant:h}),$=mj(M),R=a&&!c&&f,E=y.useRef(null),A=(L,F)=>{E.current&&E.current.adjustStyleForScrollbar(L,v),S&&S(L,F)},N=L=>{L.key==="Tab"&&(L.preventDefault(),d&&d(L,"tabKeyDown"))};let _=-1;y.Children.map(i,(L,F)=>{y.isValidElement(L)&&(L.props.disabled||(h==="selectedMenu"&&L.props.selected||_===-1)&&(_=F))});const D=(r=g.paper)!=null?r:vj,O=(o=C.paper)!=null?o:b,j=ct({elementType:g.root,externalSlotProps:C.root,ownerState:M,className:[$.root,l]}),I=ct({elementType:D,externalSlotProps:O,ownerState:M,className:$.paper});return P.jsx(gj,m({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:k?"right":"left"},transformOrigin:k?pj:hj,slots:{paper:D,root:g.root},slotProps:{root:j,paper:I},open:f,ref:n,transitionDuration:p,TransitionProps:m({onEntering:A},x),ownerState:M},T,{classes:w,children:P.jsx(yj,m({onKeyDown:N,actions:E,autoFocus:a&&(_===-1||c),autoFocusItem:R,variant:h},u,{className:ae($.list,u.className),children:i}))}))}),aS=bj,FH=Object.freeze(Object.defineProperty({__proto__:null,default:aS,getMenuUtilityClass:sS,menuClasses:uj},Symbol.toStringTag,{value:"Module"}));function iS(e){return Ce("MuiMenuItem",e)}const ia=be("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),xj=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Cj=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},wj=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:s,classes:a}=e,l=xe({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",s&&"selected"]},iS,a);return m({},a,l)},Sj=V(Qn,{shouldForwardProp:e=>Nr(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Cj})(({theme:e,ownerState:t})=>m({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ia.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:We(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ia.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:We(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ia.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:We(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:We(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ia.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ia.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${k0.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${k0.inset}`]:{marginLeft:52},[`& .${jl.root}`]:{marginTop:0,marginBottom:0},[`& .${jl.inset}`]:{paddingLeft:36},[`& .${O0.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&m({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${O0.root} svg`]:{fontSize:"1.25rem"}}))),Mf=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:s="li",dense:a=!1,divider:i=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:f}=r,b=q(r,xj),w=y.useContext(ts),p=y.useMemo(()=>({dense:a||w.dense||!1,disableGutters:l}),[w.dense,a,l]),S=y.useRef(null);Zt(()=>{o&&S.current&&S.current.focus()},[o]);const h=m({},r,{dense:p.dense,divider:i,disableGutters:l}),g=wj(r),C=ut(S,n);let x;return r.disabled||(x=d!==void 0?d:-1),P.jsx(ts.Provider,{value:p,children:P.jsx(Sj,m({ref:C,role:u,tabIndex:x,component:s,focusVisibleClassName:ae(g.focusVisible,c),className:ae(g.root,f)},b,{ownerState:h,classes:g}))})}),BH=Object.freeze(Object.defineProperty({__proto__:null,default:Mf,getMenuItemUtilityClass:iS,menuItemClasses:ia},Symbol.toStringTag,{value:"Module"}));function kj(e){return Ce("MuiNativeSelect",e)}const Fg=be("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Tj=["className","disabled","error","IconComponent","inputRef","variant"],Pj=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:a}=e,i={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ne(n)}`,s&&"iconOpen",r&&"disabled"]};return xe(i,kj,t)},lS=({ownerState:e,theme:t})=>m({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":m({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Fg.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Mj=V("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Nr,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Fg.multiple}`]:t.multiple}]}})(lS),cS=({ownerState:e,theme:t})=>m({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Fg.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),Rj=V("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ne(n.variant)}`],n.open&&t.iconOpen]}})(cS),$j=y.forwardRef(function(t,n){const{className:r,disabled:o,error:s,IconComponent:a,inputRef:i,variant:l="standard"}=t,c=q(t,Tj),u=m({},t,{disabled:o,variant:l,error:s}),d=Pj(u);return P.jsxs(y.Fragment,{children:[P.jsx(Mj,m({ownerState:u,className:ae(d.select,r),disabled:o,ref:i||n},c)),t.multiple?null:P.jsx(Rj,{as:a,ownerState:u,className:d.icon})]})});var F0;const Dj=["children","classes","className","label","notched"],Ej=V("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),_j=V("legend")(({ownerState:e,theme:t})=>m({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&m({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function Ij(e){const{className:t,label:n,notched:r}=e,o=q(e,Dj),s=n!=null&&n!=="",a=m({},e,{notched:r,withLabel:s});return P.jsx(Ej,m({"aria-hidden":!0,className:t,ownerState:a},o,{children:P.jsx(_j,{ownerState:a,children:s?P.jsx("span",{children:n}):F0||(F0=P.jsx("span",{className:"notranslate",children:"​"}))})}))}const Oj=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Lj=e=>{const{classes:t}=e,r=xe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},ZI,t);return m({},t,r)},Aj=V(Sf,{shouldForwardProp:e=>Nr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Cf})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return m({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Hr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Hr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Hr.focused} .${Hr.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Hr.error} .${Hr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Hr.disabled} .${Hr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&m({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Nj=V(Ij,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),jj=V(kf,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:wf})(({theme:e,ownerState:t})=>m({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),Bg=y.forwardRef(function(t,n){var r,o,s,a,i;const l=ve({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:d="input",label:f,multiline:b=!1,notched:w,slots:p={},type:S="text"}=l,h=q(l,Oj),g=Lj(l),C=Fr(),x=fs({props:l,muiFormControl:C,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),T=m({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:C,fullWidth:u,hiddenLabel:x.hiddenLabel,multiline:b,size:x.size,type:S}),v=(r=(o=p.root)!=null?o:c.Root)!=null?r:Aj,k=(s=(a=p.input)!=null?a:c.Input)!=null?s:jj;return P.jsx(Tf,m({slots:{root:v,input:k},renderSuffix:M=>P.jsx(Nj,{ownerState:T,className:g.notchedOutline,label:f!=null&&f!==""&&x.required?i||(i=P.jsxs(y.Fragment,{children:[f," ","*"]})):f,notched:typeof w<"u"?w:!!(M.startAdornment||M.filled||M.focused)}),fullWidth:u,inputComponent:d,multiline:b,ref:n,type:S},h,{classes:m({},g,{notchedOutline:null})}))});Bg.muiName="Input";const B0=St(P.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),z0=St(P.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function uS(e){return Ce("MuiSelect",e)}const Fj=be("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),la=Fj;var V0;const Bj=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],zj=V("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${la.select}`]:t.select},{[`&.${la.select}`]:t[n.variant]},{[`&.${la.error}`]:t.error},{[`&.${la.multiple}`]:t.multiple}]}})(lS,{[`&.${la.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Vj=V("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ne(n.variant)}`],n.open&&t.iconOpen]}})(cS),Uj=V("input",{shouldForwardProp:e=>aD(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function U0(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Wj(e){return e==null||typeof e=="string"&&!e.trim()}const Hj=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:a}=e,i={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ne(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return xe(i,uS,t)},Yj=y.forwardRef(function(t,n){var r;const{"aria-describedby":o,"aria-label":s,autoFocus:a,autoWidth:i,children:l,className:c,defaultOpen:u,defaultValue:d,disabled:f,displayEmpty:b,error:w=!1,IconComponent:p,inputRef:S,labelId:h,MenuProps:g={},multiple:C,name:x,onBlur:T,onChange:v,onClose:k,onFocus:M,onOpen:$,open:R,readOnly:E,renderValue:A,SelectDisplayProps:N={},tabIndex:_,value:D,variant:O="standard"}=t,j=q(t,Bj),[I,L]=yn({controlled:D,default:d,name:"Select"}),[F,J]=yn({controlled:R,default:u,name:"Select"}),ie=y.useRef(null),ue=y.useRef(null),[U,Q]=y.useState(null),{current:K}=y.useRef(R!=null),[H,oe]=y.useState(),me=ut(n,S),ye=y.useCallback(Se=>{ue.current=Se,Se&&Q(Se)},[]),ee=U==null?void 0:U.parentNode;y.useImperativeHandle(me,()=>({focus:()=>{ue.current.focus()},node:ie.current,value:I}),[I]),y.useEffect(()=>{u&&F&&U&&!K&&(oe(i?null:ee.clientWidth),ue.current.focus())},[U,i]),y.useEffect(()=>{a&&ue.current.focus()},[a]),y.useEffect(()=>{if(!h)return;const Se=Ft(ue.current).getElementById(h);if(Se){const W=()=>{getSelection().isCollapsed&&ue.current.focus()};return Se.addEventListener("click",W),()=>{Se.removeEventListener("click",W)}}},[h]);const pe=(Se,W)=>{Se?$&&$(W):k&&k(W),K||(oe(i?null:ee.clientWidth),J(Se))},X=Se=>{Se.button===0&&(Se.preventDefault(),ue.current.focus(),pe(!0,Se))},he=Se=>{pe(!1,Se)},se=y.Children.toArray(l),Oe=Se=>{const W=se.find(B=>B.props.value===Se.target.value);W!==void 0&&(L(W.props.value),v&&v(Se,W))},Re=Se=>W=>{let B;if(W.currentTarget.hasAttribute("tabindex")){if(C){B=Array.isArray(I)?I.slice():[];const Y=I.indexOf(Se.props.value);Y===-1?B.push(Se.props.value):B.splice(Y,1)}else B=Se.props.value;if(Se.props.onClick&&Se.props.onClick(W),I!==B&&(L(B),v)){const Y=W.nativeEvent||W,fe=new Y.constructor(Y.type,Y);Object.defineProperty(fe,"target",{writable:!0,value:{value:B,name:x}}),v(fe,Se)}C||pe(!1,W)}},ge=Se=>{E||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Se.key)!==-1&&(Se.preventDefault(),pe(!0,Se))},$e=U!==null&&F,G=Se=>{!$e&&T&&(Object.defineProperty(Se,"target",{writable:!0,value:{value:I,name:x}}),T(Se))};delete j["aria-invalid"];let Z,te;const De=[];let Ae=!1;(rd({value:I})||b)&&(A?Z=A(I):Ae=!0);const He=se.map(Se=>{if(!y.isValidElement(Se))return null;let W;if(C){if(!Array.isArray(I))throw new Error(An(2));W=I.some(B=>U0(B,Se.props.value)),W&&Ae&&De.push(Se.props.children)}else W=U0(I,Se.props.value),W&&Ae&&(te=Se.props.children);return y.cloneElement(Se,{"aria-selected":W?"true":"false",onClick:Re(Se),onKeyUp:B=>{B.key===" "&&B.preventDefault(),Se.props.onKeyUp&&Se.props.onKeyUp(B)},role:"option",selected:W,value:void 0,"data-value":Se.props.value})});Ae&&(C?De.length===0?Z=null:Z=De.reduce((Se,W,B)=>(Se.push(W),B{const{classes:t}=e;return t},zg={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Nr(e)&&e!=="variant",slot:"Root"},qj=V(Lg,zg)(""),Qj=V(Bg,zg)(""),Xj=V(Og,zg)(""),Rf=y.forwardRef(function(t,n){const r=ve({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:s,classes:a={},className:i,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=Dw,id:d,input:f,inputProps:b,label:w,labelId:p,MenuProps:S,multiple:h=!1,native:g=!1,onClose:C,onOpen:x,open:T,renderValue:v,SelectDisplayProps:k,variant:M="outlined"}=r,$=q(r,Kj),R=g?$j:Yj,E=Fr(),A=fs({props:r,muiFormControl:E,states:["variant","error"]}),N=A.variant||M,_=m({},r,{variant:N,classes:a}),D=Zj(_),O=q(D,Gj),j=f||{standard:P.jsx(qj,{ownerState:_}),outlined:P.jsx(Qj,{label:w,ownerState:_}),filled:P.jsx(Xj,{ownerState:_})}[N],I=ut(n,j.ref);return P.jsx(y.Fragment,{children:y.cloneElement(j,m({inputComponent:R,inputProps:m({children:s,error:A.error,IconComponent:u,variant:N,type:void 0,multiple:h},g?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:p,MenuProps:S,onClose:C,onOpen:x,open:T,renderValue:v,SelectDisplayProps:m({id:d},k)},b,{classes:b?Ht(O,b.classes):O},f?f.props.inputProps:{})},h&&g&&N==="outlined"?{notched:!0}:{},{ref:I,className:ae(j.props.className,i,D.root)},!f&&{variant:N},$))})});Rf.muiName="Select";const zH=Object.freeze(Object.defineProperty({__proto__:null,default:Rf,getSelectUtilityClasses:uS,selectClasses:la},Symbol.toStringTag,{value:"Module"}));function Jj(e){return Ce("MuiSkeleton",e)}be("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const eF=["animation","className","component","height","style","variant","width"];let od=e=>e,W0,H0,Y0,K0;const tF=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:s,height:a}=e;return xe({root:["root",n,r,o&&"withChildren",o&&!s&&"fitContent",o&&!a&&"heightAuto"]},Jj,t)},nF=Ar(W0||(W0=od` - 0% { - opacity: 1; - } - - 50% { - opacity: 0.4; - } - - 100% { - opacity: 1; - } -`)),rF=Ar(H0||(H0=od` - 0% { - transform: translateX(-100%); - } - - 50% { - /* +0.5s of delay between each loop */ - transform: translateX(100%); - } - - 100% { - transform: translateX(100%); - } -`)),oF=V("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(({theme:e,ownerState:t})=>{const n=wg(e.shape.borderRadius)||"px",r=co(e.shape.borderRadius);return m({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:We(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em"},t.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${n}/${Math.round(r/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},t.variant==="circular"&&{borderRadius:"50%"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:e})=>e.animation==="pulse"&&ko(Y0||(Y0=od` - animation: ${0} 2s ease-in-out 0.5s infinite; - `),nF),({ownerState:e,theme:t})=>e.animation==="wave"&&ko(K0||(K0=od` - position: relative; - overflow: hidden; - - /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */ - -webkit-mask-image: -webkit-radial-gradient(white, black); - - &::after { - animation: ${0} 2s linear 0.5s infinite; - background: linear-gradient( - 90deg, - transparent, - ${0}, - transparent - ); - content: ''; - position: absolute; - transform: translateX(-100%); /* Avoid flash during server-side hydration */ - bottom: 0; - left: 0; - right: 0; - top: 0; - } - `),rF,(t.vars||t).palette.action.hover)),VH=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:s,component:a="span",height:i,style:l,variant:c="text",width:u}=r,d=q(r,eF),f=m({},r,{animation:o,component:a,variant:c,hasChildren:!!d.children}),b=tF(f);return P.jsx(oF,m({as:a,ref:n,className:ae(b.root,s),ownerState:f},d,{style:m({width:u,height:i},l)}))});function sF(e){return Ce("MuiSnackbarContent",e)}be("MuiSnackbarContent",["root","message","action"]);const aF=["action","className","message","role"],iF=e=>{const{classes:t}=e;return xe({root:["root"],action:["action"],message:["message"]},sF,t)},lF=V(jr,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=Xu(e.palette.background.default,t);return m({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),cF=V("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),uF=V("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),dF=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiSnackbarContent"}),{action:o,className:s,message:a,role:i="alert"}=r,l=q(r,aF),c=r,u=iF(c);return P.jsxs(lF,m({role:i,square:!0,elevation:6,className:ae(u.root,s),ownerState:c,ref:n},l,{children:[P.jsx(cF,{className:u.message,ownerState:c,children:a}),o?P.jsx(uF,{className:u.action,ownerState:c,children:o}):null]}))});function fF(e){return Ce("MuiSnackbar",e)}be("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const pF=["onEnter","onExited"],hF=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],mF=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${ne(n.vertical)}${ne(n.horizontal)}`]};return xe(r,fF,t)},G0=V("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${ne(n.anchorOrigin.vertical)}${ne(n.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const n={left:"50%",right:"auto",transform:"translateX(-50%)"};return m({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:m({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&n,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),UH=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiSnackbar"}),o=Xt(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:i,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:d,ClickAwayListenerProps:f,ContentProps:b,disableWindowBlurListener:w=!1,message:p,open:S,TransitionComponent:h=ri,transitionDuration:g=s,TransitionProps:{onEnter:C,onExited:x}={}}=r,T=q(r.TransitionProps,pF),v=q(r,hF),k=m({},r,{anchorOrigin:{vertical:i,horizontal:l},autoHideDuration:c,disableWindowBlurListener:w,TransitionComponent:h,transitionDuration:g}),M=mF(k),{getRootProps:$,onClickAway:R}=wI(m({},k)),[E,A]=y.useState(!0),N=ct({elementType:G0,getSlotProps:$,externalForwardedProps:v,ownerState:k,additionalProps:{ref:n},className:[M.root,d]}),_=O=>{A(!0),x&&x(O)},D=(O,j)=>{A(!1),C&&C(O,j)};return!S&&E?null:P.jsx(WE,m({onClickAway:R},f,{children:P.jsx(G0,m({},N,{children:P.jsx(h,m({appear:!0,in:S,timeout:g,direction:i==="top"?"down":"up",onEnter:D,onExited:_},T,{children:u||P.jsx(dF,m({message:p,action:a},b))}))}))}))});function dS(e){return Ce("MuiTooltip",e)}const mo=be("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),gF=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function vF(e){return Math.round(e*1e5)/1e5}const yF=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:s}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${ne(s.split("-")[0])}`],arrow:["arrow"]};return xe(a,dS,t)},bF=V(hc,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>m({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${mo.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${mo.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${mo.arrow}`]:m({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${mo.arrow}`]:m({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),xF=V("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${ne(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>m({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:We(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${vF(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${mo.popper}[data-popper-placement*="left"] &`]:m({transformOrigin:"right center"},t.isRtl?m({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):m({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${mo.popper}[data-popper-placement*="right"] &`]:m({transformOrigin:"left center"},t.isRtl?m({marginRight:"14px"},t.touch&&{marginRight:"24px"}):m({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${mo.popper}[data-popper-placement*="top"] &`]:m({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${mo.popper}[data-popper-placement*="bottom"] &`]:m({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),CF=V("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:We(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Hc=!1,wp=null,Ei={x:0,y:0};function Yc(e,t){return n=>{t&&t(n),e(n)}}const wF=y.forwardRef(function(t,n){var r,o,s,a,i,l,c,u,d,f,b,w,p,S,h,g,C,x,T;const v=ve({props:t,name:"MuiTooltip"}),{arrow:k=!1,children:M,components:$={},componentsProps:R={},describeChild:E=!1,disableFocusListener:A=!1,disableHoverListener:N=!1,disableInteractive:_=!1,disableTouchListener:D=!1,enterDelay:O=100,enterNextDelay:j=0,enterTouchDelay:I=700,followCursor:L=!1,id:F,leaveDelay:J=0,leaveTouchDelay:ie=1500,onClose:ue,onOpen:U,open:Q,placement:K="bottom",PopperComponent:H,PopperProps:oe={},slotProps:me={},slots:ye={},title:ee,TransitionComponent:pe=ri,TransitionProps:X}=v,he=q(v,gF),se=y.isValidElement(M)?M:P.jsx("span",{children:M}),Oe=Xt(),Re=Oe.direction==="rtl",[ge,$e]=y.useState(),[G,Z]=y.useState(null),te=y.useRef(!1),De=_||L,Ae=y.useRef(),He=y.useRef(),Ue=y.useRef(),Ee=y.useRef(),[we,ke]=yn({controlled:Q,default:!1,name:"Tooltip",state:"open"});let qe=we;const yt=gr(F),wt=y.useRef(),Se=y.useCallback(()=>{wt.current!==void 0&&(document.body.style.WebkitUserSelect=wt.current,wt.current=void 0),clearTimeout(Ee.current)},[]);y.useEffect(()=>()=>{clearTimeout(Ae.current),clearTimeout(He.current),clearTimeout(Ue.current),Se()},[Se]);const W=ot=>{clearTimeout(wp),Hc=!0,ke(!0),U&&!qe&&U(ot)},B=Ie(ot=>{clearTimeout(wp),wp=setTimeout(()=>{Hc=!1},800+J),ke(!1),ue&&qe&&ue(ot),clearTimeout(Ae.current),Ae.current=setTimeout(()=>{te.current=!1},Oe.transitions.duration.shortest)}),Y=ot=>{te.current&&ot.type!=="touchstart"||(ge&&ge.removeAttribute("title"),clearTimeout(He.current),clearTimeout(Ue.current),O||Hc&&j?He.current=setTimeout(()=>{W(ot)},Hc?j:O):W(ot))},fe=ot=>{clearTimeout(He.current),clearTimeout(Ue.current),Ue.current=setTimeout(()=>{B(ot)},J)},{isFocusVisibleRef:Pe,onBlur:_e,onFocus:Be,ref:je}=Yd(),[,Ne]=y.useState(!1),lt=ot=>{_e(ot),Pe.current===!1&&(Ne(!1),fe(ot))},Ye=ot=>{ge||$e(ot.currentTarget),Be(ot),Pe.current===!0&&(Ne(!0),Y(ot))},Ge=ot=>{te.current=!0;const Vn=se.props;Vn.onTouchStart&&Vn.onTouchStart(ot)},et=Y,st=fe,Fn=ot=>{Ge(ot),clearTimeout(Ue.current),clearTimeout(Ae.current),Se(),wt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ee.current=setTimeout(()=>{document.body.style.WebkitUserSelect=wt.current,Y(ot)},I)},Cn=ot=>{se.props.onTouchEnd&&se.props.onTouchEnd(ot),Se(),clearTimeout(Ue.current),Ue.current=setTimeout(()=>{B(ot)},ie)};y.useEffect(()=>{if(!qe)return;function ot(Vn){(Vn.key==="Escape"||Vn.key==="Esc")&&B(Vn)}return document.addEventListener("keydown",ot),()=>{document.removeEventListener("keydown",ot)}},[B,qe]);const Dt=ut(se.ref,je,$e,n);!ee&&ee!==0&&(qe=!1);const Pt=y.useRef(),Ot=ot=>{const Vn=se.props;Vn.onMouseMove&&Vn.onMouseMove(ot),Ei={x:ot.clientX,y:ot.clientY},Pt.current&&Pt.current.update()},nn={},Bn=typeof ee=="string";E?(nn.title=!qe&&Bn&&!N?ee:null,nn["aria-describedby"]=qe?yt:null):(nn["aria-label"]=Bn?ee:null,nn["aria-labelledby"]=qe&&!Bn?yt:null);const rn=m({},nn,he,se.props,{className:ae(he.className,se.props.className),onTouchStart:Ge,ref:Dt},L?{onMouseMove:Ot}:{}),zn={};D||(rn.onTouchStart=Fn,rn.onTouchEnd=Cn),N||(rn.onMouseOver=Yc(et,rn.onMouseOver),rn.onMouseLeave=Yc(st,rn.onMouseLeave),De||(zn.onMouseOver=et,zn.onMouseLeave=st)),A||(rn.onFocus=Yc(Ye,rn.onFocus),rn.onBlur=Yc(lt,rn.onBlur),De||(zn.onFocus=Ye,zn.onBlur=lt));const zr=y.useMemo(()=>{var ot;let Vn=[{name:"arrow",enabled:!!G,options:{element:G,padding:4}}];return(ot=oe.popperOptions)!=null&&ot.modifiers&&(Vn=Vn.concat(oe.popperOptions.modifiers)),m({},oe.popperOptions,{modifiers:Vn})},[G,oe]),Xe=m({},v,{isRtl:Re,arrow:k,disableInteractive:De,placement:K,PopperComponentProp:H,touch:te.current}),zt=yF(Xe),le=(r=(o=ye.popper)!=null?o:$.Popper)!=null?r:bF,re=(s=(a=(i=ye.transition)!=null?i:$.Transition)!=null?a:pe)!=null?s:ri,de=(l=(c=ye.tooltip)!=null?c:$.Tooltip)!=null?l:xF,Le=(u=(d=ye.arrow)!=null?d:$.Arrow)!=null?u:CF,tt=Hi(le,m({},oe,(f=me.popper)!=null?f:R.popper,{className:ae(zt.popper,oe==null?void 0:oe.className,(b=(w=me.popper)!=null?w:R.popper)==null?void 0:b.className)}),Xe),Lt=Hi(re,m({},X,(p=me.transition)!=null?p:R.transition),Xe),Yt=Hi(de,m({},(S=me.tooltip)!=null?S:R.tooltip,{className:ae(zt.tooltip,(h=(g=me.tooltip)!=null?g:R.tooltip)==null?void 0:h.className)}),Xe),or=Hi(Le,m({},(C=me.arrow)!=null?C:R.arrow,{className:ae(zt.arrow,(x=(T=me.arrow)!=null?T:R.arrow)==null?void 0:x.className)}),Xe);return P.jsxs(y.Fragment,{children:[y.cloneElement(se,rn),P.jsx(le,m({as:H??hc,placement:K,anchorEl:L?{getBoundingClientRect:()=>({top:Ei.y,left:Ei.x,right:Ei.x,bottom:Ei.y,width:0,height:0})}:ge,popperRef:Pt,open:ge?qe:!1,id:yt,transition:!0},zn,tt,{popperOptions:zr,children:({TransitionProps:ot})=>P.jsx(re,m({timeout:Oe.transitions.duration.shorter},ot,Lt,{children:P.jsxs(de,m({},Yt,{children:[ee,k?P.jsx(Le,m({},or,{ref:Z})):null]}))}))}))]})}),WH=Object.freeze(Object.defineProperty({__proto__:null,default:wF,getTooltipUtilityClass:dS,tooltipClasses:mo},Symbol.toStringTag,{value:"Module"}));function SF(e){return Ce("MuiSwitch",e)}const wn=be("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),kF=["className","color","edge","size","sx"],TF=e=>{const{classes:t,edge:n,size:r,color:o,checked:s,disabled:a}=e,i={root:["root",n&&`edge${ne(n)}`,`size${ne(r)}`],switchBase:["switchBase",`color${ne(o)}`,s&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=xe(i,SF,t);return m({},t,l)},PF=V("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${ne(n.edge)}`],t[`size${ne(n.size)}`]]}})(({ownerState:e})=>m({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${wn.thumb}`]:{width:16,height:16},[`& .${wn.switchBase}`]:{padding:4,[`&.${wn.checked}`]:{transform:"translateX(16px)"}}})),MF=V(Ow,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${wn.input}`]:t.input},n.color!=="default"&&t[`color${ne(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${wn.checked}`]:{transform:"translateX(20px)"},[`&.${wn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${wn.checked} + .${wn.track}`]:{opacity:.5},[`&.${wn.disabled} + .${wn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${wn.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>m({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:We(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${wn.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:We(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${wn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?Po(e.palette[t.color].main,.62):To(e.palette[t.color].main,.55)}`}},[`&.${wn.checked} + .${wn.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),RF=V("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),$F=V("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),HH=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiSwitch"}),{className:o,color:s="primary",edge:a=!1,size:i="medium",sx:l}=r,c=q(r,kF),u=m({},r,{color:s,edge:a,size:i}),d=TF(u),f=P.jsx($F,{className:d.thumb,ownerState:u});return P.jsxs(PF,{className:ae(d.root,o),sx:l,ownerState:u,children:[P.jsx(MF,m({type:"checkbox",icon:f,checkedIcon:f,ref:n,ownerState:u},c,{classes:m({},d,{root:d.switchBase})})),P.jsx(RF,{className:d.track,ownerState:u})]})});function DF(e){return Ce("MuiTab",e)}const ms=be("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),EF=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],_F=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:s,label:a,selected:i,disabled:l}=e,c={root:["root",s&&a&&"labelIcon",`textColor${ne(n)}`,r&&"fullWidth",o&&"wrapped",i&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return xe(c,DF,t)},IF=V(Qn,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${ne(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>m({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${ms.iconWrapper}`]:m({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${ms.selected}`]:{opacity:1},[`&.${ms.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${ms.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${ms.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${ms.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${ms.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),Z0=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiTab"}),{className:o,disabled:s=!1,disableFocusRipple:a=!1,fullWidth:i,icon:l,iconPosition:c="top",indicator:u,label:d,onChange:f,onClick:b,onFocus:w,selected:p,selectionFollowsFocus:S,textColor:h="inherit",value:g,wrapped:C=!1}=r,x=q(r,EF),T=m({},r,{disabled:s,disableFocusRipple:a,selected:p,icon:!!l,iconPosition:c,label:!!d,fullWidth:i,textColor:h,wrapped:C}),v=_F(T),k=l&&d&&y.isValidElement(l)?y.cloneElement(l,{className:ae(v.iconWrapper,l.props.className)}):l,M=R=>{!p&&f&&f(R,g),b&&b(R)},$=R=>{S&&!p&&f&&f(R,g),w&&w(R)};return P.jsxs(IF,m({focusRipple:!a,className:ae(v.root,o),ref:n,role:"tab","aria-selected":p,disabled:s,onClick:M,onFocus:$,ownerState:T,tabIndex:p?0:-1},x,{children:[c==="top"||c==="start"?P.jsxs(y.Fragment,{children:[k,d]}):P.jsxs(y.Fragment,{children:[d,k]}),u]}))}),fS=y.createContext();function pS(e){return Ce("MuiTable",e)}const OF=be("MuiTable",["root","stickyHeader"]),LF=OF,AF=["className","component","padding","size","stickyHeader"],NF=e=>{const{classes:t,stickyHeader:n}=e;return xe({root:["root",n&&"stickyHeader"]},pS,t)},jF=V("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>m({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":m({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),q0="table",FF=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiTable"}),{className:o,component:s=q0,padding:a="normal",size:i="medium",stickyHeader:l=!1}=r,c=q(r,AF),u=m({},r,{component:s,padding:a,size:i,stickyHeader:l}),d=NF(u),f=y.useMemo(()=>({padding:a,size:i,stickyHeader:l}),[a,i,l]);return P.jsx(fS.Provider,{value:f,children:P.jsx(jF,m({as:s,role:s===q0?null:"table",ref:n,className:ae(d.root,o),ownerState:u},c))})}),YH=Object.freeze(Object.defineProperty({__proto__:null,default:FF,getTableUtilityClass:pS,tableClasses:LF},Symbol.toStringTag,{value:"Module"})),mc=y.createContext();function hS(e){return Ce("MuiTableBody",e)}const BF=be("MuiTableBody",["root"]),zF=BF,VF=["className","component"],UF=e=>{const{classes:t}=e;return xe({root:["root"]},hS,t)},WF=V("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),HF={variant:"body"},Q0="tbody",YF=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiTableBody"}),{className:o,component:s=Q0}=r,a=q(r,VF),i=m({},r,{component:s}),l=UF(i);return P.jsx(mc.Provider,{value:HF,children:P.jsx(WF,m({className:ae(l.root,o),as:s,ref:n,role:s===Q0?null:"rowgroup",ownerState:i},a))})}),KH=Object.freeze(Object.defineProperty({__proto__:null,default:YF,getTableBodyUtilityClass:hS,tableBodyClasses:zF},Symbol.toStringTag,{value:"Module"}));function mS(e){return Ce("MuiTableCell",e)}const gS=be("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),KF=["align","className","component","padding","scope","size","sortDirection","variant"],GF=e=>{const{classes:t,variant:n,align:r,padding:o,size:s,stickyHeader:a}=e,i={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${ne(r)}`,o!=="normal"&&`padding${ne(o)}`,`size${ne(s)}`]};return xe(i,mS,t)},ZF=V("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ne(n.size)}`],n.padding!=="normal"&&t[`padding${ne(n.padding)}`],n.align!=="inherit"&&t[`align${ne(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>m({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?Po(We(e.palette.divider,1),.88):To(We(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${gS.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),sd=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiTableCell"}),{align:o="inherit",className:s,component:a,padding:i,scope:l,size:c,sortDirection:u,variant:d}=r,f=q(r,KF),b=y.useContext(fS),w=y.useContext(mc),p=w&&w.variant==="head";let S;a?S=a:S=p?"th":"td";let h=l;S==="td"?h=void 0:!h&&p&&(h="col");const g=d||w&&w.variant,C=m({},r,{align:o,component:S,padding:i||(b&&b.padding?b.padding:"normal"),size:c||(b&&b.size?b.size:"medium"),sortDirection:u,stickyHeader:g==="head"&&b&&b.stickyHeader,variant:g}),x=GF(C);let T=null;return u&&(T=u==="asc"?"ascending":"descending"),P.jsx(ZF,m({as:S,ref:n,className:ae(x.root,s),"aria-sort":T,scope:h,ownerState:C},f))}),GH=Object.freeze(Object.defineProperty({__proto__:null,default:sd,getTableCellUtilityClass:mS,tableCellClasses:gS},Symbol.toStringTag,{value:"Module"}));function qF(e){return Ce("MuiTableContainer",e)}be("MuiTableContainer",["root"]);const QF=["className","component"],XF=e=>{const{classes:t}=e;return xe({root:["root"]},qF,t)},JF=V("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),ZH=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiTableContainer"}),{className:o,component:s="div"}=r,a=q(r,QF),i=m({},r,{component:s}),l=XF(i);return P.jsx(JF,m({ref:n,as:s,className:ae(l.root,o),ownerState:i},a))});function vS(e){return Ce("MuiTableFooter",e)}const eB=be("MuiTableFooter",["root"]),tB=eB,nB=["className","component"],rB=e=>{const{classes:t}=e;return xe({root:["root"]},vS,t)},oB=V("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),sB={variant:"footer"},X0="tfoot",aB=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiTableFooter"}),{className:o,component:s=X0}=r,a=q(r,nB),i=m({},r,{component:s}),l=rB(i);return P.jsx(mc.Provider,{value:sB,children:P.jsx(oB,m({as:s,className:ae(l.root,o),ref:n,role:s===X0?null:"rowgroup",ownerState:i},a))})}),iB=aB,qH=Object.freeze(Object.defineProperty({__proto__:null,default:iB,getTableFooterUtilityClass:vS,tableFooterClasses:tB},Symbol.toStringTag,{value:"Module"}));function yS(e){return Ce("MuiTableHead",e)}const lB=be("MuiTableHead",["root"]),cB=lB,uB=["className","component"],dB=e=>{const{classes:t}=e;return xe({root:["root"]},yS,t)},fB=V("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),pB={variant:"head"},J0="thead",hB=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiTableHead"}),{className:o,component:s=J0}=r,a=q(r,uB),i=m({},r,{component:s}),l=dB(i);return P.jsx(mc.Provider,{value:pB,children:P.jsx(fB,m({as:s,className:ae(l.root,o),ref:n,role:s===J0?null:"rowgroup",ownerState:i},a))})}),QH=Object.freeze(Object.defineProperty({__proto__:null,default:hB,getTableHeadUtilityClass:yS,tableHeadClasses:cB},Symbol.toStringTag,{value:"Module"}));function bS(e){return Ce("MuiToolbar",e)}const mB=be("MuiToolbar",["root","gutters","regular","dense"]),gB=mB,vB=["className","component","disableGutters","variant"],yB=e=>{const{classes:t,disableGutters:n,variant:r}=e;return xe({root:["root",!n&&"gutters",r]},bS,t)},bB=V("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>m({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),xS=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiToolbar"}),{className:o,component:s="div",disableGutters:a=!1,variant:i="regular"}=r,l=q(r,vB),c=m({},r,{component:s,disableGutters:a,variant:i}),u=yB(c);return P.jsx(bB,m({as:s,className:ae(u.root,o),ref:n,ownerState:c},l))}),XH=Object.freeze(Object.defineProperty({__proto__:null,default:xS,getToolbarUtilityClass:bS,toolbarClasses:gB},Symbol.toStringTag,{value:"Module"})),Uh=St(P.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Wh=St(P.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var eb,tb,nb,rb,ob,sb,ab,ib;const xB=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"],CB=y.forwardRef(function(t,n){const{backIconButtonProps:r,count:o,getItemAriaLabel:s,nextIconButtonProps:a,onPageChange:i,page:l,rowsPerPage:c,showFirstButton:u,showLastButton:d}=t,f=q(t,xB),b=Xt(),w=g=>{i(g,0)},p=g=>{i(g,l-1)},S=g=>{i(g,l+1)},h=g=>{i(g,Math.max(0,Math.ceil(o/c)-1))};return P.jsxs("div",m({ref:n},f,{children:[u&&P.jsx(Dn,{onClick:w,disabled:l===0,"aria-label":s("first",l),title:s("first",l),children:b.direction==="rtl"?eb||(eb=P.jsx(z0,{})):tb||(tb=P.jsx(B0,{}))}),P.jsx(Dn,m({onClick:p,disabled:l===0,color:"inherit","aria-label":s("previous",l),title:s("previous",l)},r,{children:b.direction==="rtl"?nb||(nb=P.jsx(Wh,{})):rb||(rb=P.jsx(Uh,{}))})),P.jsx(Dn,m({onClick:S,disabled:o!==-1?l>=Math.ceil(o/c)-1:!1,color:"inherit","aria-label":s("next",l),title:s("next",l)},a,{children:b.direction==="rtl"?ob||(ob=P.jsx(Uh,{})):sb||(sb=P.jsx(Wh,{}))})),d&&P.jsx(Dn,{onClick:h,disabled:l>=Math.ceil(o/c)-1,"aria-label":s("last",l),title:s("last",l),children:b.direction==="rtl"?ab||(ab=P.jsx(B0,{})):ib||(ib=P.jsx(z0,{}))})]}))});function CS(e){return Ce("MuiTablePagination",e)}const wB=be("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),Na=wB;var lb;const SB=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton"],kB=V(sd,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),TB=V(xS,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>m({[`& .${Na.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Na.actions}`]:{flexShrink:0,marginLeft:20}})),PB=V("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),MB=V("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>m({},e.typography.body2,{flexShrink:0})),RB=V(Rf,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>m({[`& .${Na.selectIcon}`]:t.selectIcon,[`& .${Na.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Na.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),$B=V(Mf,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),DB=V("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>m({},e.typography.body2,{flexShrink:0}));function EB({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function _B(e){return`Go to ${e} page`}const IB=e=>{const{classes:t}=e;return xe({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},CS,t)},OB=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=CB,backIconButtonProps:s,className:a,colSpan:i,component:l=sd,count:c,getItemAriaLabel:u=_B,labelDisplayedRows:d=EB,labelRowsPerPage:f="Rows per page:",nextIconButtonProps:b,onPageChange:w,onRowsPerPageChange:p,page:S,rowsPerPage:h,rowsPerPageOptions:g=[10,25,50,100],SelectProps:C={},showFirstButton:x=!1,showLastButton:T=!1}=r,v=q(r,SB),k=r,M=IB(k),$=C.native?"option":$B;let R;(l===sd||l==="td")&&(R=i||1e3);const E=gr(C.id),A=gr(C.labelId),N=()=>c===-1?(S+1)*h:h===-1?c:Math.min(c,(S+1)*h);return P.jsx(kB,m({colSpan:R,ref:n,as:l,ownerState:k,className:ae(M.root,a)},v,{children:P.jsxs(TB,{className:M.toolbar,children:[P.jsx(PB,{className:M.spacer}),g.length>1&&P.jsx(MB,{className:M.selectLabel,id:A,children:f}),g.length>1&&P.jsx(RB,m({variant:"standard"},!C.variant&&{input:lb||(lb=P.jsx(Tf,{}))},{value:h,onChange:p,id:E,labelId:A},C,{classes:m({},C.classes,{root:ae(M.input,M.selectRoot,(C.classes||{}).root),select:ae(M.select,(C.classes||{}).select),icon:ae(M.selectIcon,(C.classes||{}).icon)}),children:g.map(_=>y.createElement($,m({},!Fs($)&&{ownerState:k},{className:M.menuItem,key:_.label?_.label:_,value:_.value?_.value:_}),_.label?_.label:_))})),P.jsx(DB,{className:M.displayedRows,children:d({from:c===0?0:S*h+1,to:N(),count:c===-1?-1:c,page:S})}),P.jsx(o,{className:M.actions,backIconButtonProps:s,count:c,nextIconButtonProps:b,onPageChange:w,page:S,rowsPerPage:h,showFirstButton:x,showLastButton:T,getItemAriaLabel:u})]})}))}),LB=OB,JH=Object.freeze(Object.defineProperty({__proto__:null,default:LB,getTablePaginationUtilityClass:CS,tablePaginationClasses:Na},Symbol.toStringTag,{value:"Module"}));function wS(e){return Ce("MuiTableRow",e)}const Hh=be("MuiTableRow",["root","selected","hover","head","footer"]),AB=["className","component","hover","selected"],NB=e=>{const{classes:t,selected:n,hover:r,head:o,footer:s}=e;return xe({root:["root",n&&"selected",r&&"hover",o&&"head",s&&"footer"]},wS,t)},jB=V("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Hh.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Hh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:We(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:We(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),cb="tr",FB=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiTableRow"}),{className:o,component:s=cb,hover:a=!1,selected:i=!1}=r,l=q(r,AB),c=y.useContext(mc),u=m({},r,{component:s,hover:a,selected:i,head:c&&c.variant==="head",footer:c&&c.variant==="footer"}),d=NB(u);return P.jsx(jB,m({as:s,ref:n,className:ae(d.root,o),role:s===cb?null:"row",ownerState:u},l))}),e8=Object.freeze(Object.defineProperty({__proto__:null,default:FB,getTableRowUtilityClass:wS,tableRowClasses:Hh},Symbol.toStringTag,{value:"Module"})),BB=St(P.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function SS(e){return Ce("MuiTableSortLabel",e)}const yu=be("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),zB=["active","children","className","direction","hideSortIcon","IconComponent"],VB=e=>{const{classes:t,direction:n,active:r}=e,o={root:["root",r&&"active"],icon:["icon",`iconDirection${ne(n)}`]};return xe(o,SS,t)},UB=V(Qn,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${yu.icon}`]:{opacity:.5}},[`&.${yu.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${yu.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),WB=V("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${ne(n.direction)}`]]}})(({theme:e,ownerState:t})=>m({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},t.direction==="desc"&&{transform:"rotate(0deg)"},t.direction==="asc"&&{transform:"rotate(180deg)"})),HB=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiTableSortLabel"}),{active:o=!1,children:s,className:a,direction:i="asc",hideSortIcon:l=!1,IconComponent:c=BB}=r,u=q(r,zB),d=m({},r,{active:o,direction:i,hideSortIcon:l,IconComponent:c}),f=VB(d);return P.jsxs(UB,m({className:ae(f.root,a),component:"span",disableRipple:!0,ownerState:d,ref:n},u,{children:[s,l&&!o?null:P.jsx(WB,{as:c,className:ae(f.icon),ownerState:d})]}))}),t8=Object.freeze(Object.defineProperty({__proto__:null,default:HB,getTableSortLabelUtilityClass:SS,tableSortLabelClasses:yu},Symbol.toStringTag,{value:"Module"}));function YB(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function KB(e,t,n,r={},o=()=>{}){const{ease:s=YB,duration:a=300}=r;let i=null;const l=t[e];let c=!1;const u=()=>{c=!0},d=f=>{if(c){o(new Error("Animation cancelled"));return}i===null&&(i=f);const b=Math.min(1,(f-i)/a);if(t[e]=s(b)*(n-l)+l,b>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(d)};return l===n?(o(new Error("Element already at target position")),u):(requestAnimationFrame(d),u)}const GB=["onChange"],ZB={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function qB(e){const{onChange:t}=e,n=q(e,GB),r=y.useRef(),o=y.useRef(null),s=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Zt(()=>{const a=ac(()=>{const l=r.current;s(),l!==r.current&&t(r.current)}),i=ro(o.current);return i.addEventListener("resize",a),()=>{a.clear(),i.removeEventListener("resize",a)}},[t]),y.useEffect(()=>{s(),t(r.current)},[t]),P.jsx("div",m({style:ZB,ref:o},n))}function QB(e){return Ce("MuiTabScrollButton",e)}const XB=be("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),JB=["className","slots","slotProps","direction","orientation","disabled"],ez=e=>{const{classes:t,orientation:n,disabled:r}=e;return xe({root:["root",n,r&&"disabled"]},QB,t)},tz=V(Qn,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>m({width:40,flexShrink:0,opacity:.8,[`&.${XB.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),nz=y.forwardRef(function(t,n){var r,o;const s=ve({props:t,name:"MuiTabScrollButton"}),{className:a,slots:i={},slotProps:l={},direction:c}=s,u=q(s,JB),f=Xt().direction==="rtl",b=m({isRtl:f},s),w=ez(b),p=(r=i.StartScrollButtonIcon)!=null?r:Uh,S=(o=i.EndScrollButtonIcon)!=null?o:Wh,h=ct({elementType:p,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:b}),g=ct({elementType:S,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:b});return P.jsx(tz,m({component:"div",className:ae(w.root,a),ref:n,role:null,ownerState:b,tabIndex:null},u,{children:c==="left"?P.jsx(p,m({},h)):P.jsx(S,m({},g))}))});function rz(e){return Ce("MuiTabs",e)}const bu=be("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),oz=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],ub=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,db=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Kc=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const s=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||s)o=n(e,o);else{o.focus();return}}},sz=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:s,centered:a,scrollButtonsHideMobile:i,classes:l}=e;return xe({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",s&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",i&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},rz,l)},az=V("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${bu.scrollButtons}`]:t.scrollButtons},{[`& .${bu.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>m({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${bu.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),iz=V("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>m({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),lz=V("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>m({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),cz=V("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>m({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),uz=V(qB)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),fb={},dz=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiTabs"}),o=Xt(),s=o.direction==="rtl",{"aria-label":a,"aria-labelledby":i,action:l,centered:c=!1,children:u,className:d,component:f="div",allowScrollButtonsMobile:b=!1,indicatorColor:w="primary",onChange:p,orientation:S="horizontal",ScrollButtonComponent:h=nz,scrollButtons:g="auto",selectionFollowsFocus:C,slots:x={},slotProps:T={},TabIndicatorProps:v={},TabScrollButtonProps:k={},textColor:M="primary",value:$,variant:R="standard",visibleScrollbar:E=!1}=r,A=q(r,oz),N=R==="scrollable",_=S==="vertical",D=_?"scrollTop":"scrollLeft",O=_?"top":"left",j=_?"bottom":"right",I=_?"clientHeight":"clientWidth",L=_?"height":"width",F=m({},r,{component:f,allowScrollButtonsMobile:b,indicatorColor:w,orientation:S,vertical:_,scrollButtons:g,textColor:M,variant:R,visibleScrollbar:E,fixed:!N,hideScrollbar:N&&!E,scrollableX:N&&!_,scrollableY:N&&_,centered:c&&!N,scrollButtonsHideMobile:!b}),J=sz(F),ie=ct({elementType:x.StartScrollButtonIcon,externalSlotProps:T.startScrollButtonIcon,ownerState:F}),ue=ct({elementType:x.EndScrollButtonIcon,externalSlotProps:T.endScrollButtonIcon,ownerState:F}),[U,Q]=y.useState(!1),[K,H]=y.useState(fb),[oe,me]=y.useState(!1),[ye,ee]=y.useState(!1),[pe,X]=y.useState(!1),[he,se]=y.useState({overflow:"hidden",scrollbarWidth:0}),Oe=new Map,Re=y.useRef(null),ge=y.useRef(null),$e=()=>{const B=Re.current;let Y;if(B){const Pe=B.getBoundingClientRect();Y={clientWidth:B.clientWidth,scrollLeft:B.scrollLeft,scrollTop:B.scrollTop,scrollLeftNormalized:AM(B,o.direction),scrollWidth:B.scrollWidth,top:Pe.top,bottom:Pe.bottom,left:Pe.left,right:Pe.right}}let fe;if(B&&$!==!1){const Pe=ge.current.children;if(Pe.length>0){const _e=Pe[Oe.get($)];fe=_e?_e.getBoundingClientRect():null}}return{tabsMeta:Y,tabMeta:fe}},G=Ie(()=>{const{tabsMeta:B,tabMeta:Y}=$e();let fe=0,Pe;if(_)Pe="top",Y&&B&&(fe=Y.top-B.top+B.scrollTop);else if(Pe=s?"right":"left",Y&&B){const Be=s?B.scrollLeftNormalized+B.clientWidth-B.scrollWidth:B.scrollLeft;fe=(s?-1:1)*(Y[Pe]-B[Pe]+Be)}const _e={[Pe]:fe,[L]:Y?Y[L]:0};if(isNaN(K[Pe])||isNaN(K[L]))H(_e);else{const Be=Math.abs(K[Pe]-_e[Pe]),je=Math.abs(K[L]-_e[L]);(Be>=1||je>=1)&&H(_e)}}),Z=(B,{animation:Y=!0}={})=>{Y?KB(D,Re.current,B,{duration:o.transitions.duration.standard}):Re.current[D]=B},te=B=>{let Y=Re.current[D];_?Y+=B:(Y+=B*(s?-1:1),Y*=s&&xC()==="reverse"?-1:1),Z(Y)},De=()=>{const B=Re.current[I];let Y=0;const fe=Array.from(ge.current.children);for(let Pe=0;PeB){Pe===0&&(Y=B);break}Y+=_e[I]}return Y},Ae=()=>{te(-1*De())},He=()=>{te(De())},Ue=y.useCallback(B=>{se({overflow:null,scrollbarWidth:B})},[]),Ee=()=>{const B={};B.scrollbarSizeListener=N?P.jsx(uz,{onChange:Ue,className:ae(J.scrollableX,J.hideScrollbar)}):null;const fe=N&&(g==="auto"&&(oe||ye)||g===!0);return B.scrollButtonStart=fe?P.jsx(h,m({slots:{StartScrollButtonIcon:x.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ie},orientation:S,direction:s?"right":"left",onClick:Ae,disabled:!oe},k,{className:ae(J.scrollButtons,k.className)})):null,B.scrollButtonEnd=fe?P.jsx(h,m({slots:{EndScrollButtonIcon:x.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:ue},orientation:S,direction:s?"left":"right",onClick:He,disabled:!ye},k,{className:ae(J.scrollButtons,k.className)})):null,B},we=Ie(B=>{const{tabsMeta:Y,tabMeta:fe}=$e();if(!(!fe||!Y)){if(fe[O]Y[j]){const Pe=Y[D]+(fe[j]-Y[j]);Z(Pe,{animation:B})}}}),ke=Ie(()=>{N&&g!==!1&&X(!pe)});y.useEffect(()=>{const B=ac(()=>{Re.current&&G()}),Y=ro(Re.current);Y.addEventListener("resize",B);let fe;return typeof ResizeObserver<"u"&&(fe=new ResizeObserver(B),Array.from(ge.current.children).forEach(Pe=>{fe.observe(Pe)})),()=>{B.clear(),Y.removeEventListener("resize",B),fe&&fe.disconnect()}},[G]),y.useEffect(()=>{const B=Array.from(ge.current.children),Y=B.length;if(typeof IntersectionObserver<"u"&&Y>0&&N&&g!==!1){const fe=B[0],Pe=B[Y-1],_e={root:Re.current,threshold:.99},Be=Ye=>{me(!Ye[0].isIntersecting)},je=new IntersectionObserver(Be,_e);je.observe(fe);const Ne=Ye=>{ee(!Ye[0].isIntersecting)},lt=new IntersectionObserver(Ne,_e);return lt.observe(Pe),()=>{je.disconnect(),lt.disconnect()}}},[N,g,pe,u==null?void 0:u.length]),y.useEffect(()=>{Q(!0)},[]),y.useEffect(()=>{G()}),y.useEffect(()=>{we(fb!==K)},[we,K]),y.useImperativeHandle(l,()=>({updateIndicator:G,updateScrollButtons:ke}),[G,ke]);const qe=P.jsx(cz,m({},v,{className:ae(J.indicator,v.className),ownerState:F,style:m({},K,v.style)}));let yt=0;const wt=y.Children.map(u,B=>{if(!y.isValidElement(B))return null;const Y=B.props.value===void 0?yt:B.props.value;Oe.set(Y,yt);const fe=Y===$;return yt+=1,y.cloneElement(B,m({fullWidth:R==="fullWidth",indicator:fe&&!U&&qe,selected:fe,selectionFollowsFocus:C,onChange:p,textColor:M,value:Y},yt===1&&$===!1&&!B.props.tabIndex?{tabIndex:0}:{}))}),Se=B=>{const Y=ge.current,fe=Ft(Y).activeElement;if(fe.getAttribute("role")!=="tab")return;let _e=S==="horizontal"?"ArrowLeft":"ArrowUp",Be=S==="horizontal"?"ArrowRight":"ArrowDown";switch(S==="horizontal"&&s&&(_e="ArrowRight",Be="ArrowLeft"),B.key){case _e:B.preventDefault(),Kc(Y,fe,db);break;case Be:B.preventDefault(),Kc(Y,fe,ub);break;case"Home":B.preventDefault(),Kc(Y,null,ub);break;case"End":B.preventDefault(),Kc(Y,null,db);break}},W=Ee();return P.jsxs(az,m({className:ae(J.root,d),ownerState:F,ref:n,as:f},A,{children:[W.scrollButtonStart,W.scrollbarSizeListener,P.jsxs(iz,{className:J.scroller,ownerState:F,style:{overflow:he.overflow,[_?`margin${s?"Left":"Right"}`:"marginBottom"]:E?void 0:-he.scrollbarWidth},ref:Re,children:[P.jsx(lz,{"aria-label":a,"aria-labelledby":i,"aria-orientation":S==="vertical"?"vertical":null,className:J.flexContainer,ownerState:F,onKeyDown:Se,ref:ge,role:"tablist",children:wt}),U&&qe]}),W.scrollButtonEnd]}))});function kS(e){return Ce("MuiTextField",e)}const fz=be("MuiTextField",["root"]),pz=fz,hz=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],mz={standard:Lg,filled:Og,outlined:Bg},gz=e=>{const{classes:t}=e;return xe({root:["root"]},kS,t)},vz=V(Fw,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),TS=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:s=!1,children:a,className:i,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:f,fullWidth:b=!1,helperText:w,id:p,InputLabelProps:S,inputProps:h,InputProps:g,inputRef:C,label:x,maxRows:T,minRows:v,multiline:k=!1,name:M,onBlur:$,onChange:R,onFocus:E,placeholder:A,required:N=!1,rows:_,select:D=!1,SelectProps:O,type:j,value:I,variant:L="outlined"}=r,F=q(r,hz),J=m({},r,{autoFocus:s,color:l,disabled:u,error:d,fullWidth:b,multiline:k,required:N,select:D,variant:L}),ie=gz(J),ue={};L==="outlined"&&(S&&typeof S.shrink<"u"&&(ue.notched=S.shrink),ue.label=x),D&&((!O||!O.native)&&(ue.id=void 0),ue["aria-describedby"]=void 0);const U=gr(p),Q=w&&U?`${U}-helper-text`:void 0,K=x&&U?`${U}-label`:void 0,H=mz[L],oe=P.jsx(H,m({"aria-describedby":Q,autoComplete:o,autoFocus:s,defaultValue:c,fullWidth:b,multiline:k,name:M,rows:_,maxRows:T,minRows:v,type:j,value:I,id:U,inputRef:C,onBlur:$,onChange:R,onFocus:E,placeholder:A,inputProps:h},ue,g));return P.jsxs(vz,m({className:ae(ie.root,i),disabled:u,error:d,fullWidth:b,ref:n,required:N,color:l,variant:L,ownerState:J},F,{children:[x!=null&&x!==""&&P.jsx(Qw,m({htmlFor:U,id:K},S,{children:x})),D?P.jsx(Rf,m({"aria-describedby":Q,id:U,labelId:K,value:I,input:oe},O,{children:a})):oe,w&&P.jsx(Uw,m({id:Q},f,{children:w}))]}))}),n8=Object.freeze(Object.defineProperty({__proto__:null,default:TS,getTextFieldUtilityClass:kS,textFieldClasses:pz},Symbol.toStringTag,{value:"Module"}));function yz(e){return Ce("MuiToggleButton",e)}const pb=be("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge"]),bz=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],xz=e=>{const{classes:t,fullWidth:n,selected:r,disabled:o,size:s,color:a}=e,i={root:["root",r&&"selected",o&&"disabled",n&&"fullWidth",`size${ne(s)}`,a]};return xe(i,yz,t)},Cz=V(Qn,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${ne(n.size)}`]]}})(({theme:e,ownerState:t})=>{let n=t.color==="standard"?e.palette.text.primary:e.palette[t.color].main,r;return e.vars&&(n=t.color==="standard"?e.vars.palette.text.primary:e.vars.palette[t.color].main,r=t.color==="standard"?e.vars.palette.text.primaryChannel:e.vars.palette[t.color].mainChannel),m({},e.typography.button,{borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active},t.fullWidth&&{width:"100%"},{[`&.${pb.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:We(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${pb.selected}`]:{color:n,backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:We(n,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${r} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:We(n,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:We(n,e.palette.action.selectedOpacity)}}}},t.size==="small"&&{padding:7,fontSize:e.typography.pxToRem(13)},t.size==="large"&&{padding:15,fontSize:e.typography.pxToRem(15)})}),r8=y.forwardRef(function(t,n){const r=ve({props:t,name:"MuiToggleButton"}),{children:o,className:s,color:a="standard",disabled:i=!1,disableFocusRipple:l=!1,fullWidth:c=!1,onChange:u,onClick:d,selected:f,size:b="medium",value:w}=r,p=q(r,bz),S=m({},r,{color:a,disabled:i,disableFocusRipple:l,fullWidth:c,size:b}),h=xz(S),g=C=>{d&&(d(C,w),C.defaultPrevented)||u&&u(C,w)};return P.jsx(Cz,m({className:ae(h.root,s),disabled:i,focusRipple:!l,ref:n,onClick:g,onChange:u,value:w,ownerState:S,"aria-pressed":f},p,{children:o}))});/** - * @remix-run/router v1.9.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function _t(){return _t=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function oi(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Sz(){return Math.random().toString(36).substr(2,8)}function mb(e,t){return{usr:e.state,key:e.key,idx:t}}function Fl(e,t,n,r){return n===void 0&&(n=null),_t({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ps(t):t,{state:n,key:t&&t.key||r||Sz()})}function os(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ps(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function kz(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,a=o.history,i=Jt.Pop,l=null,c=u();c==null&&(c=0,a.replaceState(_t({},a.state,{idx:c}),""));function u(){return(a.state||{idx:null}).idx}function d(){i=Jt.Pop;let S=u(),h=S==null?null:S-c;c=S,l&&l({action:i,location:p.location,delta:h})}function f(S,h){i=Jt.Push;let g=Fl(p.location,S,h);c=u()+1;let C=mb(g,c),x=p.createHref(g);try{a.pushState(C,"",x)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;o.location.assign(x)}s&&l&&l({action:i,location:p.location,delta:1})}function b(S,h){i=Jt.Replace;let g=Fl(p.location,S,h);c=u();let C=mb(g,c),x=p.createHref(g);a.replaceState(C,"",x),s&&l&&l({action:i,location:p.location,delta:0})}function w(S){let h=o.location.origin!=="null"?o.location.origin:o.location.href,g=typeof S=="string"?S:os(S);return nt(h,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,h)}let p={get action(){return i},get location(){return e(o,a)},listen(S){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(hb,d),l=S,()=>{o.removeEventListener(hb,d),l=null}},createHref(S){return t(o,S)},createURL:w,encodeLocation(S){let h=w(S);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:f,replace:b,go(S){return a.go(S)}};return p}var Kt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Kt||(Kt={}));const Tz=new Set(["lazy","caseSensitive","path","id","index","children"]);function Pz(e){return e.index===!0}function Yh(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,s)=>{let a=[...n,s],i=typeof o.id=="string"?o.id:a.join("-");if(nt(o.index!==!0||!o.children,"Cannot specify children on an index route"),nt(!r[i],'Found a route id collision on id "'+i+`". Route id's must be globally unique within Data Router usages`),Pz(o)){let l=_t({},o,t(o),{id:i});return r[i]=l,l}else{let l=_t({},o,t(o),{id:i,children:void 0});return r[i]=l,o.children&&(l.children=Yh(o.children,t,a,r)),l}})}function Ta(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?ps(t):t,o=Ro(r.pathname||"/",n);if(o==null)return null;let s=MS(e);Mz(s);let a=null;for(let i=0;a==null&&i{let l={relativePath:i===void 0?s.path||"":i,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};l.relativePath.startsWith("/")&&(nt(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=to([r,l.relativePath]),u=n.concat(l);s.children&&s.children.length>0&&(nt(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),MS(s.children,t,u,c)),!(s.path==null&&!s.index)&&t.push({path:c,score:Oz(c,s.index),routesMeta:u})};return e.forEach((s,a)=>{var i;if(s.path===""||!((i=s.path)!=null&&i.includes("?")))o(s,a);else for(let l of RS(s.path))o(s,a,l)}),t}function RS(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let a=RS(r.join("/")),i=[];return i.push(...a.map(l=>l===""?s:[s,l].join("/"))),o&&i.push(...a),i.map(l=>e.startsWith("/")&&l===""?"/":l)}function Mz(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Lz(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Rz=/^:\w+$/,$z=3,Dz=2,Ez=1,_z=10,Iz=-2,gb=e=>e==="*";function Oz(e,t){let n=e.split("/"),r=n.length;return n.some(gb)&&(r+=Iz),t&&(r+=Dz),n.filter(o=>!gb(o)).reduce((o,s)=>o+(Rz.test(s)?$z:s===""?Ez:_z),r)}function Lz(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function Az(e,t){let{routesMeta:n}=e,r={},o="/",s=[];for(let a=0;a{if(u==="*"){let f=i[d]||"";a=s.slice(0,s.length-f.length).replace(/(.)\/+$/,"$1")}return c[u]=Bz(i[d]||"",u),c},{}),pathname:s,pathnameBase:a,pattern:e}}function jz(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),oi(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=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(a,i)=>(r.push(i),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Fz(e){try{return decodeURI(e)}catch(t){return oi(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Bz(e,t){try{return decodeURIComponent(e)}catch(n){return oi(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function Ro(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 zz(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?ps(e):e;return{pathname:n?n.startsWith("/")?n:Vz(n,t):t,search:Wz(r),hash:Hz(o)}}function Vz(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Sp(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 and the router will parse it for you.'}function $f(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Vg(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=ps(e):(o=_t({},e),nt(!o.pathname||!o.pathname.includes("?"),Sp("?","pathname","search",o)),nt(!o.pathname||!o.pathname.includes("#"),Sp("#","pathname","hash",o)),nt(!o.search||!o.search.includes("#"),Sp("#","search","hash",o)));let s=e===""||o.pathname==="",a=s?"/":o.pathname,i;if(r||a==null)i=n;else{let d=t.length-1;if(a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}i=d>=0?t[d]:"/"}let l=zz(o,i),c=a&&a!=="/"&&a.endsWith("/"),u=(s||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const to=e=>e.join("/").replace(/\/\/+/g,"/"),Uz=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Wz=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Hz=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,o8=function(t,n){n===void 0&&(n={});let r=typeof n=="number"?{status:n}:n,o=new Headers(r.headers);return o.has("Content-Type")||o.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(t),_t({},r,{headers:o}))};class Ug{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function $S(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const DS=["post","put","patch","delete"],Yz=new Set(DS),Kz=["get",...DS],Gz=new Set(Kz),Zz=new Set([301,302,303,307,308]),qz=new Set([307,308]),kp={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Qz={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},_i={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ES=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Xz=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function Jz(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;nt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let W=e.detectErrorBoundary;o=B=>({hasErrorBoundary:W(B)})}else o=Xz;let s={},a=Yh(e.routes,o,void 0,s),i,l=e.basename||"/",c=_t({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),u=null,d=new Set,f=null,b=null,w=null,p=e.hydrationData!=null,S=Ta(a,e.history.location,l),h=null;if(S==null){let W=ar(404,{pathname:e.history.location.pathname}),{matches:B,route:Y}=kb(a);S=B,h={[Y.id]:W}}let g=!S.some(W=>W.route.lazy)&&(!S.some(W=>W.route.loader)||e.hydrationData!=null),C,x={historyAction:e.history.action,location:e.history.location,matches:S,initialized:g,navigation:kp,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||h,fetchers:new Map,blockers:new Map},T=Jt.Pop,v=!1,k,M=!1,$=!1,R=[],E=[],A=new Map,N=0,_=-1,D=new Map,O=new Set,j=new Map,I=new Map,L=new Map,F=!1;function J(){return u=e.history.listen(W=>{let{action:B,location:Y,delta:fe}=W;if(F){F=!1;return}oi(L.size===0||fe!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Pe=Ee({currentLocation:x.location,nextLocation:Y,historyAction:B});if(Pe&&fe!=null){F=!0,e.history.go(fe*-1),Ue(Pe,{state:"blocked",location:Y,proceed(){Ue(Pe,{state:"proceeding",proceed:void 0,reset:void 0,location:Y}),e.history.go(fe)},reset(){let _e=new Map(x.blockers);_e.set(Pe,_i),U({blockers:_e})}});return}return oe(B,Y)}),x.initialized||oe(Jt.Pop,x.location),C}function ie(){u&&u(),d.clear(),k&&k.abort(),x.fetchers.forEach((W,B)=>$e(B)),x.blockers.forEach((W,B)=>He(B))}function ue(W){return d.add(W),()=>d.delete(W)}function U(W){x=_t({},x,W),d.forEach(B=>B(x))}function Q(W,B){var Y,fe;let Pe=x.actionData!=null&&x.navigation.formMethod!=null&&Tr(x.navigation.formMethod)&&x.navigation.state==="loading"&&((Y=W.state)==null?void 0:Y._isRedirect)!==!0,_e;B.actionData?Object.keys(B.actionData).length>0?_e=B.actionData:_e=null:Pe?_e=x.actionData:_e=null;let Be=B.loaderData?Sb(x.loaderData,B.loaderData,B.matches||[],B.errors):x.loaderData,je=x.blockers;je.size>0&&(je=new Map(je),je.forEach((lt,Ye)=>je.set(Ye,_i)));let Ne=v===!0||x.navigation.formMethod!=null&&Tr(x.navigation.formMethod)&&((fe=W.state)==null?void 0:fe._isRedirect)!==!0;i&&(a=i,i=void 0),M||T===Jt.Pop||(T===Jt.Push?e.history.push(W,W.state):T===Jt.Replace&&e.history.replace(W,W.state)),U(_t({},B,{actionData:_e,loaderData:Be,historyAction:T,location:W,initialized:!0,navigation:kp,revalidation:"idle",restoreScrollPosition:wt(W,B.matches||x.matches),preventScrollReset:Ne,blockers:je})),T=Jt.Pop,v=!1,M=!1,$=!1,R=[],E=[]}async function K(W,B){if(typeof W=="number"){e.history.go(W);return}let Y=Kh(x.location,x.matches,l,c.v7_prependBasename,W,B==null?void 0:B.fromRouteId,B==null?void 0:B.relative),{path:fe,submission:Pe,error:_e}=vb(c.v7_normalizeFormMethod,!1,Y,B),Be=x.location,je=Fl(x.location,fe,B&&B.state);je=_t({},je,e.history.encodeLocation(je));let Ne=B&&B.replace!=null?B.replace:void 0,lt=Jt.Push;Ne===!0?lt=Jt.Replace:Ne===!1||Pe!=null&&Tr(Pe.formMethod)&&Pe.formAction===x.location.pathname+x.location.search&&(lt=Jt.Replace);let Ye=B&&"preventScrollReset"in B?B.preventScrollReset===!0:void 0,Ge=Ee({currentLocation:Be,nextLocation:je,historyAction:lt});if(Ge){Ue(Ge,{state:"blocked",location:je,proceed(){Ue(Ge,{state:"proceeding",proceed:void 0,reset:void 0,location:je}),K(W,B)},reset(){let et=new Map(x.blockers);et.set(Ge,_i),U({blockers:et})}});return}return await oe(lt,je,{submission:Pe,pendingError:_e,preventScrollReset:Ye,replace:B&&B.replace})}function H(){if(Re(),U({revalidation:"loading"}),x.navigation.state!=="submitting"){if(x.navigation.state==="idle"){oe(x.historyAction,x.location,{startUninterruptedRevalidation:!0});return}oe(T||x.historyAction,x.navigation.location,{overrideNavigation:x.navigation})}}async function oe(W,B,Y){k&&k.abort(),k=null,T=W,M=(Y&&Y.startUninterruptedRevalidation)===!0,yt(x.location,x.matches),v=(Y&&Y.preventScrollReset)===!0;let fe=i||a,Pe=Y&&Y.overrideNavigation,_e=Ta(fe,B,l);if(!_e){let et=ar(404,{pathname:B.pathname}),{matches:st,route:Fn}=kb(fe);we(),Q(B,{matches:st,loaderData:{},errors:{[Fn.id]:et}});return}if(x.initialized&&!$&&o5(x.location,B)&&!(Y&&Y.submission&&Tr(Y.submission.formMethod))){Q(B,{matches:_e});return}k=new AbortController;let Be=Oi(e.history,B,k.signal,Y&&Y.submission),je,Ne;if(Y&&Y.pendingError)Ne={[Pa(_e).route.id]:Y.pendingError};else if(Y&&Y.submission&&Tr(Y.submission.formMethod)){let et=await me(Be,B,Y.submission,_e,{replace:Y.replace});if(et.shortCircuited)return;je=et.pendingActionData,Ne=et.pendingActionError,Pe=Tp(B,Y.submission),Be=new Request(Be.url,{signal:Be.signal})}let{shortCircuited:lt,loaderData:Ye,errors:Ge}=await ye(Be,B,_e,Pe,Y&&Y.submission,Y&&Y.fetcherSubmission,Y&&Y.replace,je,Ne);lt||(k=null,Q(B,_t({matches:_e},je?{actionData:je}:{},{loaderData:Ye,errors:Ge})))}async function me(W,B,Y,fe,Pe){Pe===void 0&&(Pe={}),Re();let _e=l5(B,Y);U({navigation:_e});let Be,je=Zh(fe,B);if(!je.route.action&&!je.route.lazy)Be={type:Kt.error,error:ar(405,{method:W.method,pathname:B.pathname,routeId:je.route.id})};else if(Be=await Ii("action",W,je,fe,s,o,l),W.signal.aborted)return{shortCircuited:!0};if(ja(Be)){let Ne;return Pe&&Pe.replace!=null?Ne=Pe.replace:Ne=Be.location===x.location.pathname+x.location.search,await se(x,Be,{submission:Y,replace:Ne}),{shortCircuited:!0}}if(dl(Be)){let Ne=Pa(fe,je.route.id);return(Pe&&Pe.replace)!==!0&&(T=Jt.Push),{pendingActionData:{},pendingActionError:{[Ne.route.id]:Be.error}}}if(Ps(Be))throw ar(400,{type:"defer-action"});return{pendingActionData:{[je.route.id]:Be.data}}}async function ye(W,B,Y,fe,Pe,_e,Be,je,Ne){let lt=fe||Tp(B,Pe),Ye=Pe||_e||Mb(lt),Ge=i||a,[et,st]=yb(e.history,x,Y,Ye,B,$,R,E,j,O,Ge,l,je,Ne);if(we(Xe=>!(Y&&Y.some(zt=>zt.route.id===Xe))||et&&et.some(zt=>zt.route.id===Xe)),_=++N,et.length===0&&st.length===0){let Xe=te();return Q(B,_t({matches:Y,loaderData:{},errors:Ne||null},je?{actionData:je}:{},Xe?{fetchers:new Map(x.fetchers)}:{})),{shortCircuited:!0}}if(!M){st.forEach(zt=>{let le=x.fetchers.get(zt.key),re=Li(void 0,le?le.data:void 0);x.fetchers.set(zt.key,re)});let Xe=je||x.actionData;U(_t({navigation:lt},Xe?Object.keys(Xe).length===0?{actionData:null}:{actionData:Xe}:{},st.length>0?{fetchers:new Map(x.fetchers)}:{}))}st.forEach(Xe=>{A.has(Xe.key)&&G(Xe.key),Xe.controller&&A.set(Xe.key,Xe.controller)});let Fn=()=>st.forEach(Xe=>G(Xe.key));k&&k.signal.addEventListener("abort",Fn);let{results:Cn,loaderResults:Dt,fetcherResults:Pt}=await Oe(x.matches,Y,et,st,W);if(W.signal.aborted)return{shortCircuited:!0};k&&k.signal.removeEventListener("abort",Fn),st.forEach(Xe=>A.delete(Xe.key));let Ot=Tb(Cn);if(Ot){if(Ot.idx>=et.length){let Xe=st[Ot.idx-et.length].key;O.add(Xe)}return await se(x,Ot.result,{replace:Be}),{shortCircuited:!0}}let{loaderData:nn,errors:Bn}=wb(x,Y,et,Dt,Ne,st,Pt,I);I.forEach((Xe,zt)=>{Xe.subscribe(le=>{(le||Xe.done)&&I.delete(zt)})});let rn=te(),zn=De(_),zr=rn||zn||st.length>0;return _t({loaderData:nn,errors:Bn},zr?{fetchers:new Map(x.fetchers)}:{})}function ee(W){return x.fetchers.get(W)||Qz}function pe(W,B,Y,fe){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");A.has(W)&&G(W);let Pe=i||a,_e=Kh(x.location,x.matches,l,c.v7_prependBasename,Y,B,fe==null?void 0:fe.relative),Be=Ta(Pe,_e,l);if(!Be){ge(W,B,ar(404,{pathname:_e}));return}let{path:je,submission:Ne,error:lt}=vb(c.v7_normalizeFormMethod,!0,_e,fe);if(lt){ge(W,B,lt);return}let Ye=Zh(Be,je);if(v=(fe&&fe.preventScrollReset)===!0,Ne&&Tr(Ne.formMethod)){X(W,B,je,Ye,Be,Ne);return}j.set(W,{routeId:B,path:je}),he(W,B,je,Ye,Be,Ne)}async function X(W,B,Y,fe,Pe,_e){if(Re(),j.delete(W),!fe.route.action&&!fe.route.lazy){let de=ar(405,{method:_e.formMethod,pathname:Y,routeId:B});ge(W,B,de);return}let Be=x.fetchers.get(W),je=c5(_e,Be);x.fetchers.set(W,je),U({fetchers:new Map(x.fetchers)});let Ne=new AbortController,lt=Oi(e.history,Y,Ne.signal,_e);A.set(W,Ne);let Ye=N,Ge=await Ii("action",lt,fe,Pe,s,o,l);if(lt.signal.aborted){A.get(W)===Ne&&A.delete(W);return}if(ja(Ge))if(A.delete(W),_>Ye){let de=ca(void 0);x.fetchers.set(W,de),U({fetchers:new Map(x.fetchers)});return}else{O.add(W);let de=Li(_e);return x.fetchers.set(W,de),U({fetchers:new Map(x.fetchers)}),se(x,Ge,{fetcherSubmission:_e})}if(dl(Ge)){ge(W,B,Ge.error);return}if(Ps(Ge))throw ar(400,{type:"defer-action"});let et=x.navigation.location||x.location,st=Oi(e.history,et,Ne.signal),Fn=i||a,Cn=x.navigation.state!=="idle"?Ta(Fn,x.navigation.location,l):x.matches;nt(Cn,"Didn't find any matches after fetcher action");let Dt=++N;D.set(W,Dt);let Pt=Li(_e,Ge.data);x.fetchers.set(W,Pt);let[Ot,nn]=yb(e.history,x,Cn,_e,et,$,R,E,j,O,Fn,l,{[fe.route.id]:Ge.data},void 0);nn.filter(de=>de.key!==W).forEach(de=>{let Le=de.key,tt=x.fetchers.get(Le),Lt=Li(void 0,tt?tt.data:void 0);x.fetchers.set(Le,Lt),A.has(Le)&&G(Le),de.controller&&A.set(Le,de.controller)}),U({fetchers:new Map(x.fetchers)});let Bn=()=>nn.forEach(de=>G(de.key));Ne.signal.addEventListener("abort",Bn);let{results:rn,loaderResults:zn,fetcherResults:zr}=await Oe(x.matches,Cn,Ot,nn,st);if(Ne.signal.aborted)return;Ne.signal.removeEventListener("abort",Bn),D.delete(W),A.delete(W),nn.forEach(de=>A.delete(de.key));let Xe=Tb(rn);if(Xe){if(Xe.idx>=Ot.length){let de=nn[Xe.idx-Ot.length].key;O.add(de)}return se(x,Xe.result)}let{loaderData:zt,errors:le}=wb(x,x.matches,Ot,zn,void 0,nn,zr,I);if(x.fetchers.has(W)){let de=ca(Ge.data);x.fetchers.set(W,de)}let re=De(Dt);x.navigation.state==="loading"&&Dt>_?(nt(T,"Expected pending action"),k&&k.abort(),Q(x.navigation.location,{matches:Cn,loaderData:zt,errors:le,fetchers:new Map(x.fetchers)})):(U(_t({errors:le,loaderData:Sb(x.loaderData,zt,Cn,le)},re||nn.length>0?{fetchers:new Map(x.fetchers)}:{})),$=!1)}async function he(W,B,Y,fe,Pe,_e){let Be=x.fetchers.get(W),je=Li(_e,Be?Be.data:void 0);x.fetchers.set(W,je),U({fetchers:new Map(x.fetchers)});let Ne=new AbortController,lt=Oi(e.history,Y,Ne.signal);A.set(W,Ne);let Ye=N,Ge=await Ii("loader",lt,fe,Pe,s,o,l);if(Ps(Ge)&&(Ge=await OS(Ge,lt.signal,!0)||Ge),A.get(W)===Ne&&A.delete(W),lt.signal.aborted)return;if(ja(Ge))if(_>Ye){let st=ca(void 0);x.fetchers.set(W,st),U({fetchers:new Map(x.fetchers)});return}else{O.add(W),await se(x,Ge);return}if(dl(Ge)){let st=Pa(x.matches,B);x.fetchers.delete(W),U({fetchers:new Map(x.fetchers),errors:{[st.route.id]:Ge.error}});return}nt(!Ps(Ge),"Unhandled fetcher deferred data");let et=ca(Ge.data);x.fetchers.set(W,et),U({fetchers:new Map(x.fetchers)})}async function se(W,B,Y){let{submission:fe,fetcherSubmission:Pe,replace:_e}=Y===void 0?{}:Y;B.revalidate&&($=!0);let Be=Fl(W.location,B.location,{_isRedirect:!0});if(nt(Be,"Expected a location on the redirect navigation"),n){let et=!1;if(B.reloadDocument)et=!0;else if(ES.test(B.location)){const st=e.history.createURL(B.location);et=st.origin!==t.location.origin||Ro(st.pathname,l)==null}if(et){_e?t.location.replace(B.location):t.location.assign(B.location);return}}k=null;let je=_e===!0?Jt.Replace:Jt.Push,{formMethod:Ne,formAction:lt,formEncType:Ye}=W.navigation;!fe&&!Pe&&Ne&<&&Ye&&(fe=Mb(W.navigation));let Ge=fe||Pe;if(qz.has(B.status)&&Ge&&Tr(Ge.formMethod))await oe(je,Be,{submission:_t({},Ge,{formAction:B.location}),preventScrollReset:v});else{let et=Tp(Be,fe);await oe(je,Be,{overrideNavigation:et,fetcherSubmission:Pe,preventScrollReset:v})}}async function Oe(W,B,Y,fe,Pe){let _e=await Promise.all([...Y.map(Ne=>Ii("loader",Pe,Ne,B,s,o,l)),...fe.map(Ne=>Ne.matches&&Ne.match&&Ne.controller?Ii("loader",Oi(e.history,Ne.path,Ne.controller.signal),Ne.match,Ne.matches,s,o,l):{type:Kt.error,error:ar(404,{pathname:Ne.path})})]),Be=_e.slice(0,Y.length),je=_e.slice(Y.length);return await Promise.all([Pb(W,Y,Be,Be.map(()=>Pe.signal),!1,x.loaderData),Pb(W,fe.map(Ne=>Ne.match),je,fe.map(Ne=>Ne.controller?Ne.controller.signal:null),!0)]),{results:_e,loaderResults:Be,fetcherResults:je}}function Re(){$=!0,R.push(...we()),j.forEach((W,B)=>{A.has(B)&&(E.push(B),G(B))})}function ge(W,B,Y){let fe=Pa(x.matches,B);$e(W),U({errors:{[fe.route.id]:Y},fetchers:new Map(x.fetchers)})}function $e(W){let B=x.fetchers.get(W);A.has(W)&&!(B&&B.state==="loading"&&D.has(W))&&G(W),j.delete(W),D.delete(W),O.delete(W),x.fetchers.delete(W)}function G(W){let B=A.get(W);nt(B,"Expected fetch controller: "+W),B.abort(),A.delete(W)}function Z(W){for(let B of W){let Y=ee(B),fe=ca(Y.data);x.fetchers.set(B,fe)}}function te(){let W=[],B=!1;for(let Y of O){let fe=x.fetchers.get(Y);nt(fe,"Expected fetcher: "+Y),fe.state==="loading"&&(O.delete(Y),W.push(Y),B=!0)}return Z(W),B}function De(W){let B=[];for(let[Y,fe]of D)if(fe0}function Ae(W,B){let Y=x.blockers.get(W)||_i;return L.get(W)!==B&&L.set(W,B),Y}function He(W){x.blockers.delete(W),L.delete(W)}function Ue(W,B){let Y=x.blockers.get(W)||_i;nt(Y.state==="unblocked"&&B.state==="blocked"||Y.state==="blocked"&&B.state==="blocked"||Y.state==="blocked"&&B.state==="proceeding"||Y.state==="blocked"&&B.state==="unblocked"||Y.state==="proceeding"&&B.state==="unblocked","Invalid blocker state transition: "+Y.state+" -> "+B.state);let fe=new Map(x.blockers);fe.set(W,B),U({blockers:fe})}function Ee(W){let{currentLocation:B,nextLocation:Y,historyAction:fe}=W;if(L.size===0)return;L.size>1&&oi(!1,"A router only supports one blocker at a time");let Pe=Array.from(L.entries()),[_e,Be]=Pe[Pe.length-1],je=x.blockers.get(_e);if(!(je&&je.state==="proceeding")&&Be({currentLocation:B,nextLocation:Y,historyAction:fe}))return _e}function we(W){let B=[];return I.forEach((Y,fe)=>{(!W||W(fe))&&(Y.cancel(),B.push(fe),I.delete(fe))}),B}function ke(W,B,Y){if(f=W,w=B,b=Y||null,!p&&x.navigation===kp){p=!0;let fe=wt(x.location,x.matches);fe!=null&&U({restoreScrollPosition:fe})}return()=>{f=null,w=null,b=null}}function qe(W,B){return b&&b(W,B.map(fe=>PS(fe,x.loaderData)))||W.key}function yt(W,B){if(f&&w){let Y=qe(W,B);f[Y]=w()}}function wt(W,B){if(f){let Y=qe(W,B),fe=f[Y];if(typeof fe=="number")return fe}return null}function Se(W){s={},i=Yh(W,o,void 0,s)}return C={get basename(){return l},get state(){return x},get routes(){return a},initialize:J,subscribe:ue,enableScrollRestoration:ke,navigate:K,fetch:pe,revalidate:H,createHref:W=>e.history.createHref(W),encodeLocation:W=>e.history.encodeLocation(W),getFetcher:ee,deleteFetcher:$e,dispose:ie,getBlocker:Ae,deleteBlocker:He,_internalFetchControllers:A,_internalActiveDeferreds:I,_internalSetRoutes:Se},C}function e5(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Kh(e,t,n,r,o,s,a){let i,l;if(s!=null&&a!=="path"){i=[];for(let u of t)if(i.push(u),u.route.id===s){l=u;break}}else i=t,l=t[t.length-1];let c=Vg(o||".",$f(i).map(u=>u.pathnameBase),Ro(e.pathname,n)||e.pathname,a==="path");return o==null&&(c.search=e.search,c.hash=e.hash),(o==null||o===""||o===".")&&l&&l.route.index&&!Wg(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:to([n,c.pathname])),os(c)}function vb(e,t,n,r){if(!r||!e5(r))return{path:n};if(r.formMethod&&!i5(r.formMethod))return{path:n,error:ar(405,{method:r.formMethod})};let o=()=>({path:n,error:ar(400,{type:"invalid-body"})}),s=r.formMethod||"get",a=e?s.toUpperCase():s.toLowerCase(),i=IS(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Tr(a))return o();let f=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((b,w)=>{let[p,S]=w;return""+b+p+"="+S+` -`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:i,formEncType:r.formEncType,formData:void 0,json:void 0,text:f}}}else if(r.formEncType==="application/json"){if(!Tr(a))return o();try{let f=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:i,formEncType:r.formEncType,formData:void 0,json:f,text:void 0}}}catch{return o()}}}nt(typeof FormData=="function","FormData is not available in this environment");let l,c;if(r.formData)l=Gh(r.formData),c=r.formData;else if(r.body instanceof FormData)l=Gh(r.body),c=r.body;else if(r.body instanceof URLSearchParams)l=r.body,c=Cb(l);else if(r.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(r.body),c=Cb(l)}catch{return o()}let u={formMethod:a,formAction:i,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Tr(u.formMethod))return{path:n,submission:u};let d=ps(n);return t&&d.search&&Wg(d.search)&&l.append("index",""),d.search="?"+l,{path:os(d),submission:u}}function t5(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function yb(e,t,n,r,o,s,a,i,l,c,u,d,f,b){let w=b?Object.values(b)[0]:f?Object.values(f)[0]:void 0,p=e.createURL(t.location),S=e.createURL(o),h=b?Object.keys(b)[0]:void 0,C=t5(n,h).filter((T,v)=>{if(T.route.lazy)return!0;if(T.route.loader==null)return!1;if(n5(t.loaderData,t.matches[v],T)||a.some($=>$===T.route.id))return!0;let k=t.matches[v],M=T;return bb(T,_t({currentUrl:p,currentParams:k.params,nextUrl:S,nextParams:M.params},r,{actionResult:w,defaultShouldRevalidate:s||p.pathname+p.search===S.pathname+S.search||p.search!==S.search||_S(k,M)}))}),x=[];return l.forEach((T,v)=>{if(!n.some(E=>E.route.id===T.routeId))return;let k=Ta(u,T.path,d);if(!k){x.push({key:v,routeId:T.routeId,path:T.path,matches:null,match:null,controller:null});return}let M=t.fetchers.get(v),$=Zh(k,T.path),R=!1;c.has(v)?R=!1:i.includes(v)?R=!0:M&&M.state!=="idle"&&M.data===void 0?R=s:R=bb($,_t({currentUrl:p,currentParams:t.matches[t.matches.length-1].params,nextUrl:S,nextParams:n[n.length-1].params},r,{actionResult:w,defaultShouldRevalidate:s})),R&&x.push({key:v,routeId:T.routeId,path:T.path,matches:k,match:$,controller:new AbortController})}),[C,x]}function n5(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function _S(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function bb(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function xb(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];nt(o,"No route found in manifest");let s={};for(let a in r){let l=o[a]!==void 0&&a!=="hasErrorBoundary";oi(!l,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!Tz.has(a)&&(s[a]=r[a])}Object.assign(o,s),Object.assign(o,_t({},t(o),{lazy:void 0}))}async function Ii(e,t,n,r,o,s,a,i){i===void 0&&(i={});let l,c,u,d=w=>{let p,S=new Promise((h,g)=>p=g);return u=()=>p(),t.signal.addEventListener("abort",u),Promise.race([w({request:t,params:n.params,context:i.requestContext}),S])};try{let w=n.route[e];if(n.route.lazy)if(w){let p,S=await Promise.all([d(w).catch(h=>{p=h}),xb(n.route,s,o)]);if(p)throw p;c=S[0]}else if(await xb(n.route,s,o),w=n.route[e],w)c=await d(w);else if(e==="action"){let p=new URL(t.url),S=p.pathname+p.search;throw ar(405,{method:t.method,pathname:S,routeId:n.route.id})}else return{type:Kt.data,data:void 0};else if(w)c=await d(w);else{let p=new URL(t.url),S=p.pathname+p.search;throw ar(404,{pathname:S})}nt(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(w){l=Kt.error,c=w}finally{u&&t.signal.removeEventListener("abort",u)}if(a5(c)){let w=c.status;if(Zz.has(w)){let h=c.headers.get("Location");if(nt(h,"Redirects returned/thrown from loaders/actions must have a Location header"),!ES.test(h))h=Kh(new URL(t.url),r.slice(0,r.indexOf(n)+1),a,!0,h);else if(!i.isStaticRequest){let g=new URL(t.url),C=h.startsWith("//")?new URL(g.protocol+h):new URL(h),x=Ro(C.pathname,a)!=null;C.origin===g.origin&&x&&(h=C.pathname+C.search+C.hash)}if(i.isStaticRequest)throw c.headers.set("Location",h),c;return{type:Kt.redirect,status:w,location:h,revalidate:c.headers.get("X-Remix-Revalidate")!==null,reloadDocument:c.headers.get("X-Remix-Reload-Document")!==null}}if(i.isRouteRequest)throw{type:l===Kt.error?Kt.error:Kt.data,response:c};let p,S=c.headers.get("Content-Type");return S&&/\bapplication\/json\b/.test(S)?p=await c.json():p=await c.text(),l===Kt.error?{type:l,error:new Ug(w,c.statusText,p),headers:c.headers}:{type:Kt.data,data:p,statusCode:c.status,headers:c.headers}}if(l===Kt.error)return{type:l,error:c};if(s5(c)){var f,b;return{type:Kt.deferred,deferredData:c,statusCode:(f=c.init)==null?void 0:f.status,headers:((b=c.init)==null?void 0:b.headers)&&new Headers(c.init.headers)}}return{type:Kt.data,data:c}}function Oi(e,t,n,r){let o=e.createURL(IS(t)).toString(),s={signal:n};if(r&&Tr(r.formMethod)){let{formMethod:a,formEncType:i}=r;s.method=a.toUpperCase(),i==="application/json"?(s.headers=new Headers({"Content-Type":i}),s.body=JSON.stringify(r.json)):i==="text/plain"?s.body=r.text:i==="application/x-www-form-urlencoded"&&r.formData?s.body=Gh(r.formData):s.body=r.formData}return new Request(o,s)}function Gh(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Cb(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function r5(e,t,n,r,o){let s={},a=null,i,l=!1,c={};return n.forEach((u,d)=>{let f=t[d].route.id;if(nt(!ja(u),"Cannot handle redirect results in processLoaderData"),dl(u)){let b=Pa(e,f),w=u.error;r&&(w=Object.values(r)[0],r=void 0),a=a||{},a[b.route.id]==null&&(a[b.route.id]=w),s[f]=void 0,l||(l=!0,i=$S(u.error)?u.error.status:500),u.headers&&(c[f]=u.headers)}else Ps(u)?(o.set(f,u.deferredData),s[f]=u.deferredData.data):s[f]=u.data,u.statusCode!=null&&u.statusCode!==200&&!l&&(i=u.statusCode),u.headers&&(c[f]=u.headers)}),r&&(a=r,s[Object.keys(r)[0]]=void 0),{loaderData:s,errors:a,statusCode:i||200,loaderHeaders:c}}function wb(e,t,n,r,o,s,a,i){let{loaderData:l,errors:c}=r5(t,n,r,o,i);for(let u=0;ur.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function kb(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ar(e,t){let{pathname:n,routeId:r,method:o,type:s}=t===void 0?{}:t,a="Unknown Server Error",i="Unknown @remix-run/router error";return e===400?(a="Bad Request",o&&n&&r?i="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":s==="defer-action"?i="defer() is not supported in actions":s==="invalid-body"&&(i="Unable to encode submission body")):e===403?(a="Forbidden",i='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",i='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",o&&n&&r?i="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(i='Invalid request method "'+o.toUpperCase()+'"')),new Ug(e||500,a,new Error(i),!0)}function Tb(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(ja(n))return{result:n,idx:t}}}function IS(e){let t=typeof e=="string"?ps(e):e;return os(_t({},t,{hash:""}))}function o5(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Ps(e){return e.type===Kt.deferred}function dl(e){return e.type===Kt.error}function ja(e){return(e&&e.type)===Kt.redirect}function s5(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function a5(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function i5(e){return Gz.has(e.toLowerCase())}function Tr(e){return Yz.has(e.toLowerCase())}async function Pb(e,t,n,r,o,s){for(let a=0;ad.route.id===l.route.id),u=c!=null&&!_S(c,l)&&(s&&s[l.route.id])!==void 0;if(Ps(i)&&(o||u)){let d=r[a];nt(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await OS(i,d,o).then(f=>{f&&(n[a]=f||n[a])})}}}async function OS(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Kt.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Kt.error,error:o}}return{type:Kt.data,data:e.deferredData.data}}}function Wg(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Zh(e,t){let n=typeof t=="string"?ps(t).search:t.search;if(e[e.length-1].route.index&&Wg(n||""))return e[e.length-1];let r=$f(e);return r[r.length-1]}function Mb(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:s,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(s!=null)return{formMethod:t,formAction:n,formEncType:r,formData:s,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function Tp(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function l5(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Li(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function c5(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function ca(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}/** - * React Router v6.16.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function qh(){return qh=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.pathnameBase)),a=y.useRef(!1);return AS(()=>{a.current=!0}),y.useCallback(function(l,c){if(c===void 0&&(c={}),!a.current)return;if(typeof l=="number"){n.go(l);return}let u=Vg(l,JSON.parse(s),o,c.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:to([t,u.pathname])),(c.replace?n.replace:n.push)(u,c.state,c)},[t,n,s,o,e])}const f5=y.createContext(null);function p5(e){let t=y.useContext(Br).outlet;return t&&y.createElement(f5.Provider,{value:e},t)}function s8(){let{matches:e}=y.useContext(Br),t=e[e.length-1];return t?t.params:{}}function Kg(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=y.useContext(Br),{pathname:o}=Gs(),s=JSON.stringify($f(r).map(a=>a.pathnameBase));return y.useMemo(()=>Vg(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function h5(e,t,n){vc()||nt(!1);let{navigator:r}=y.useContext(Io),{matches:o}=y.useContext(Br),s=o[o.length-1],a=s?s.params:{};s&&s.pathname;let i=s?s.pathnameBase:"/";s&&s.route;let l=Gs(),c;c=l;let u=c.pathname||"/",d=i==="/"?u:u.slice(i.length)||"/",f=Ta(e,{pathname:d});return b5(f&&f.map(w=>Object.assign({},w,{params:Object.assign({},a,w.params),pathname:to([i,r.encodeLocation?r.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?i:to([i,r.encodeLocation?r.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),o,n)}function m5(){let e=k5(),t=$S(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:o},n):null,null)}const g5=y.createElement(m5,null);class v5 extends y.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?y.createElement(Br.Provider,{value:this.props.routeContext},y.createElement(LS.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function y5(e){let{routeContext:t,match:n,children:r}=e,o=y.useContext(gc);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(Br.Provider,{value:t},r)}function b5(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let s=e,a=(r=n)==null?void 0:r.errors;if(a!=null){let i=s.findIndex(l=>l.route.id&&(a==null?void 0:a[l.route.id]));i>=0||nt(!1),s=s.slice(0,Math.min(s.length,i+1))}return s.reduceRight((i,l,c)=>{let u=l.route.id?a==null?void 0:a[l.route.id]:null,d=null;n&&(d=l.route.errorElement||g5);let f=t.concat(s.slice(0,c+1)),b=()=>{let w;return u?w=d:l.route.Component?w=y.createElement(l.route.Component,null):l.route.element?w=l.route.element:w=i,y.createElement(y5,{match:l,routeContext:{outlet:i,matches:f,isDataRoute:n!=null},children:w})};return n&&(l.route.ErrorBoundary||l.route.errorElement||c===0)?y.createElement(v5,{location:n.location,revalidation:n.revalidation,component:d,error:u,children:b(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):b()},null)}var Gg=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Gg||{}),Or=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Or||{});function jS(e){let t=y.useContext(gc);return t||nt(!1),t}function gi(e){let t=y.useContext(Hg);return t||nt(!1),t}function x5(e){let t=y.useContext(Br);return t||nt(!1),t}function Df(e){let t=x5(),n=t.matches[t.matches.length-1];return n.route.id||nt(!1),n.route.id}function C5(){return Df(Or.UseRouteId)}function w5(){return gi(Or.UseNavigation).navigation}function a8(){let e=jS(Gg.UseRevalidator),t=gi(Or.UseRevalidator);return y.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])}function S5(){let{matches:e,loaderData:t}=gi(Or.UseMatches);return y.useMemo(()=>e.map(n=>PS(n,t)),[e,t])}function i8(){let e=gi(Or.UseLoaderData),t=Df(Or.UseLoaderData);if(e.errors&&e.errors[t]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function l8(){let e=gi(Or.UseActionData);return y.useContext(Br)||nt(!1),Object.values((e==null?void 0:e.actionData)||{})[0]}function k5(){var e;let t=y.useContext(LS),n=gi(Or.UseRouteError),r=Df(Or.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function T5(){let{router:e}=jS(Gg.UseNavigateStable),t=Df(Or.UseNavigateStable),n=y.useRef(!1);return AS(()=>{n.current=!0}),y.useCallback(function(o,s){s===void 0&&(s={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,qh({fromRouteId:t},s)))},[e,t])}const P5="startTransition",Rb=wu[P5];function c8(e){let{fallbackElement:t,router:n,future:r}=e,[o,s]=y.useState(n.state),{v7_startTransition:a}=r||{},i=y.useCallback(d=>{a&&Rb?Rb(()=>s(d)):s(d)},[s,a]);y.useLayoutEffect(()=>n.subscribe(i),[n,i]);let l=y.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:d=>n.navigate(d),push:(d,f,b)=>n.navigate(d,{state:f,preventScrollReset:b==null?void 0:b.preventScrollReset}),replace:(d,f,b)=>n.navigate(d,{replace:!0,state:f,preventScrollReset:b==null?void 0:b.preventScrollReset})}),[n]),c=n.basename||"/",u=y.useMemo(()=>({router:n,navigator:l,static:!1,basename:c}),[n,l,c]);return y.createElement(y.Fragment,null,y.createElement(gc.Provider,{value:u},y.createElement(Hg.Provider,{value:o},y.createElement(R5,{basename:c,location:o.location,navigationType:o.historyAction,navigator:l},o.initialized?y.createElement(M5,{routes:n.routes,state:o}):t))),null)}function M5(e){let{routes:t,state:n}=e;return h5(t,void 0,n)}function u8(e){return p5(e.context)}function R5(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Jt.Pop,navigator:s,static:a=!1}=e;vc()&&nt(!1);let i=t.replace(/^\/*/,"/"),l=y.useMemo(()=>({basename:i,navigator:s,static:a}),[i,s,a]);typeof r=="string"&&(r=ps(r));let{pathname:c="/",search:u="",hash:d="",state:f=null,key:b="default"}=r,w=y.useMemo(()=>{let p=Ro(c,i);return p==null?null:{location:{pathname:p,search:u,hash:d,state:f,key:b},navigationType:o}},[i,c,u,d,f,b,o]);return w==null?null:y.createElement(Io.Provider,{value:l},y.createElement(Yg.Provider,{children:n,value:w}))}new Promise(()=>{});function $5(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:y.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:y.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** - * React Router DOM v6.16.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function $o(){return $o=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}const xu="get",Pp="application/x-www-form-urlencoded";function Ef(e){return e!=null&&typeof e.tagName=="string"}function D5(e){return Ef(e)&&e.tagName.toLowerCase()==="button"}function E5(e){return Ef(e)&&e.tagName.toLowerCase()==="form"}function _5(e){return Ef(e)&&e.tagName.toLowerCase()==="input"}function I5(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function O5(e,t){return e.button===0&&(!t||t==="_self")&&!I5(e)}function Qh(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function L5(e,t){let n=Qh(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(s=>{n.append(o,s)})}),n}let Gc=null;function A5(){if(Gc===null)try{new FormData(document.createElement("form"),0),Gc=!1}catch{Gc=!0}return Gc}const N5=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Mp(e){return e!=null&&!N5.has(e)?null:e}function j5(e,t){let n,r,o,s,a;if(E5(e)){let i=e.getAttribute("action");r=i?Ro(i,t):null,n=e.getAttribute("method")||xu,o=Mp(e.getAttribute("enctype"))||Pp,s=new FormData(e)}else if(D5(e)||_5(e)&&(e.type==="submit"||e.type==="image")){let i=e.form;if(i==null)throw new Error('Cannot submit a + + diff --git a/ui/packages/evidently-ui-lib/src/components/ThemeToggle.tsx b/ui/packages/evidently-ui-lib/src/components/ThemeToggle.tsx new file mode 100644 index 0000000000..ad2de8eebd --- /dev/null +++ b/ui/packages/evidently-ui-lib/src/components/ThemeToggle.tsx @@ -0,0 +1,63 @@ +import { IconButton, MenuItem, Popover, Select, useColorScheme } from '@mui/material' +import { useState } from 'react' + +import DarkModeIcon from '@mui/icons-material/DarkMode' +import LightModeIcon from '@mui/icons-material/LightMode' +import { useThemeMode } from '~/hooks/theme' + +export const ThemeToggle = () => { + const { mode, setMode } = useColorScheme() + const tMode = useThemeMode() + const [anchorEl, setAnchorEl] = useState(null) + + const handleClick = (event: React.MouseEvent) => + setAnchorEl(event.currentTarget) + + const handleClose = () => setAnchorEl(null) + + const open = Boolean(anchorEl) + const id = open ? 'simple-popover' : undefined + + if (!mode) { + return ( + + {tMode === 'dark' ? : } + + ) + } + + return ( +
+ + {tMode === 'dark' ? : } + + + + +
+ ) +} diff --git a/ui/packages/evidently-ui-lib/src/hooks/theme.ts b/ui/packages/evidently-ui-lib/src/hooks/theme.ts new file mode 100644 index 0000000000..1d03274e3f --- /dev/null +++ b/ui/packages/evidently-ui-lib/src/hooks/theme.ts @@ -0,0 +1,30 @@ +import { useColorScheme, useMediaQuery } from '@mui/material' +import { useMemo } from 'react' + +export const useThemeMode = () => { + const { mode } = useColorScheme() + const prefersDarkMode = useMediaQuery('(prefers-color-scheme: dark)') + + return !mode || mode === 'system' ? (prefersDarkMode ? 'dark' : 'light') : mode +} + +export const useNivoTheme = () => { + const mode = useThemeMode() + + const theme = useMemo( + () => + mode === 'dark' + ? { + tooltip: { + container: { + background: '#000', + color: '#fff' + } + } + } + : undefined, + [mode] + ) + + return theme +} diff --git a/ui/packages/evidently-ui-lib/src/routes-components/home/index.tsx b/ui/packages/evidently-ui-lib/src/routes-components/home/index.tsx index 5c6f751fd4..56e1e66cd3 100644 --- a/ui/packages/evidently-ui-lib/src/routes-components/home/index.tsx +++ b/ui/packages/evidently-ui-lib/src/routes-components/home/index.tsx @@ -4,17 +4,17 @@ import { BreadCrumbs, NavigationProgress, ServiceHeader, type crumbFunction } fr import type { LoaderData } from './data' export const HomeComponentTemplate = ({ - logoSrc, + LogoSvg, authComponent }: { - logoSrc: string + LogoSvg: () => JSX.Element authComponent?: React.ReactNode }) => { const { version } = useLoaderData() as LoaderData return ( <> - + diff --git a/ui/packages/evidently-ui-lib/src/routes-components/snapshots/index.tsx b/ui/packages/evidently-ui-lib/src/routes-components/snapshots/index.tsx index 17fedb14aa..cc4b4dd60e 100644 --- a/ui/packages/evidently-ui-lib/src/routes-components/snapshots/index.tsx +++ b/ui/packages/evidently-ui-lib/src/routes-components/snapshots/index.tsx @@ -33,10 +33,6 @@ import { import { useLocalStorage } from '@uidotdev/usehooks' -import JsonView from 'react18-json-view' -import 'react18-json-view/src/style.css' -import './override-react18-json-view.css' - import { Delete as DeleteIcon } from '@mui/icons-material' import { Autocomplete } from '@mui/material' import dayjs from 'dayjs' @@ -46,6 +42,7 @@ import type { MetadataModel } from '~/api/types' import type { crumbFunction } from '~/components/BreadCrumbs' import { DownloadButton } from '~/components/DownloadButton' import { HidedTags } from '~/components/HidedTags' +import { JsonViewThemed } from '~/components/JsonView' import { TextWithCopyIcon } from '~/components/TextWithCopyIcon' import { useUpdateQueryStringValueWithoutNavigation } from '~/hooks/useUpdateQueryStringValueWithoutNavigation' import type { deleteSnapshotSchema, reloadSnapshotSchema } from './data' @@ -287,10 +284,9 @@ export const SnapshotsListTemplate = ({ - diff --git a/ui/packages/evidently-ui-lib/src/theme/v2.tsx b/ui/packages/evidently-ui-lib/src/theme/index.tsx similarity index 53% rename from ui/packages/evidently-ui-lib/src/theme/v2.tsx rename to ui/packages/evidently-ui-lib/src/theme/index.tsx index 58900ecb53..63b4e734da 100644 --- a/ui/packages/evidently-ui-lib/src/theme/v2.tsx +++ b/ui/packages/evidently-ui-lib/src/theme/index.tsx @@ -4,62 +4,57 @@ import { createTheme } from '@mui/material/styles' const { transitions } = createTheme() const mainRed = '#ed0500' -const borderColorGrey = '#ded5d5' export const theme = createTheme({ - shape: { borderRadius: 5 }, - palette: { - primary: { main: colors.grey[900], light: colors.grey[200] }, - // we use `secondary` color for interactive elements - secondary: { main: mainRed, dark: '#c10400', light: colors.grey[200] }, - background: { default: '#fff', paper: '#fff' } + cssVariables: { colorSchemeSelector: 'class' }, + colorSchemes: { + light: { + palette: { + text: { primary: '#09090b' }, + primary: { main: '#09090b', light: colors.grey[200] }, + secondary: { main: mainRed, dark: '#c10400', light: colors.grey[200] } + } + }, + dark: { + palette: { + text: { primary: '#fafafa' }, + primary: { main: '#fafafa', light: colors.grey[900] }, + secondary: { main: mainRed } + } + } }, + shape: { borderRadius: 5 }, components: { + MuiInputBase: { + styleOverrides: { + input: { + '&:-webkit-autofill': { + transitionDelay: '9999s', + transitionProperty: 'background-color, box-shadow, color' + } + } + } + }, MuiLink: { styleOverrides: { root: { transition: transitions.create('color', { duration: transitions.duration.enteringScreen }), - '&:hover': { - color: mainRed - } + '&:hover': { color: mainRed } } } }, MuiTabs: { - styleOverrides: { flexContainer: { gap: '10px' }, indicator: { backgroundColor: mainRed } } - }, - MuiButton: { styleOverrides: { - contained: { - '&:hover': { background: colors.grey[800] } - }, - outlined: { - '&:hover': { - color: mainRed, - borderColor: mainRed, - background: '#fff' - } - }, - text: { - '&:hover': { - color: mainRed, - borderColor: mainRed - } - } + flexContainer: { gap: '10px' }, + indicator: { backgroundColor: mainRed } } }, MuiTab: { defaultProps: { color: 'secondary' }, styleOverrides: { - root: { - fontSize: '1rem', - borderRadius: '5px', - '&:hover': { - background: colors.grey[200] - } - } + root: { fontSize: '1rem', borderRadius: '5px' } } }, MuiIconButton: { @@ -68,10 +63,8 @@ export const theme = createTheme({ transition: transitions.create('color', { duration: transitions.duration.enteringScreen }), - color: colors.grey[900], - '&:hover': { - color: mainRed - } + color: 'inherit', + '&:hover': { color: mainRed } } } }, @@ -83,21 +76,15 @@ export const theme = createTheme({ transition: transitions.create('color', { duration: transitions.duration.enteringScreen }), - color: colors.grey[900], - '&:hover': { color: mainRed }, - '&.Mui-disabled': { - border: 'unset', - background: colors.grey[100] - } + color: 'inherit', + '&.Mui-disabled': { border: 'unset' } } } }, - MuiToggleButtonGroup: { defaultProps: { color: 'secondary' } }, MuiLinearProgress: { defaultProps: { color: 'secondary' } }, MuiPaper: { - styleOverrides: { - root: { boxShadow: 'unset', border: '1px solid', borderColor: borderColorGrey } - } + defaultProps: { sx: { border: '1px solid', borderColor: (t) => t.palette.divider } }, + styleOverrides: { root: { boxShadow: 'unset' } } } }, typography: { diff --git a/ui/packages/evidently-ui-lib/src/theme/v1.tsx b/ui/packages/evidently-ui-lib/src/theme/v1.tsx deleted file mode 100644 index e78af4c97c..0000000000 --- a/ui/packages/evidently-ui-lib/src/theme/v1.tsx +++ /dev/null @@ -1,38 +0,0 @@ -import { createTheme } from '@mui/material/styles' - -export const theme = createTheme({ - shape: { - borderRadius: 0 - }, - palette: { - primary: { - light: '#ed5455', - main: '#ed0400', - dark: '#d40400', - contrastText: '#fff' - }, - secondary: { - light: '#61a0ff', - main: '#3c7fdd', - dark: '#61a0ff', - contrastText: '#000' - } - }, - typography: { - button: { - fontWeight: 'bold' - }, - fontFamily: [ - '-apple-system', - 'BlinkMacSystemFont', - '"Segoe UI"', - 'Roboto', - '"Helvetica Neue"', - 'Arial', - 'sans-serif', - '"Apple Color Emoji"', - '"Segoe UI Emoji"', - '"Segoe UI Symbol"' - ].join(',') - } -}) diff --git a/ui/packages/evidently-ui-lib/src/widgets/AlertBlock.tsx b/ui/packages/evidently-ui-lib/src/widgets/AlertBlock.tsx index d851465790..07dd16d495 100644 --- a/ui/packages/evidently-ui-lib/src/widgets/AlertBlock.tsx +++ b/ui/packages/evidently-ui-lib/src/widgets/AlertBlock.tsx @@ -33,6 +33,10 @@ const AlertBlock: React.FunctionComponent = (props) => { elevation={0} onClick={(event) => setState((s) => ({ open: !s.open, anchorEl: event.currentTarget }))} sx={[ + { + border: '1px solid', + borderColor: (t) => t.palette.divider + }, // info by default { color: (theme) => getColor(theme)(theme.palette.info.main, 0.6), diff --git a/ui/packages/evidently-ui-lib/src/widgets/BigGraphWidgetContent.tsx b/ui/packages/evidently-ui-lib/src/widgets/BigGraphWidgetContent.tsx index bc34e35d99..3d8a3458e4 100644 --- a/ui/packages/evidently-ui-lib/src/widgets/BigGraphWidgetContent.tsx +++ b/ui/packages/evidently-ui-lib/src/widgets/BigGraphWidgetContent.tsx @@ -1,8 +1,9 @@ import type React from 'react' import type { AdditionalGraphInfo } from '~/api' -import Plot from '~/components/Plot' +import Plot, { darkPlotlyLayoutTemplate } from '~/components/Plot' import { useDashboardViewParams } from '~/contexts/DashboardViewParams' +import { useThemeMode } from '~/hooks/theme' interface BigGraphWidgetProps extends AdditionalGraphInfo { widgetSize: number @@ -10,12 +11,26 @@ interface BigGraphWidgetProps extends AdditionalGraphInfo { const BigGraphWidgetContent: React.FunctionComponent = (props) => { const viewParams = useDashboardViewParams() + const mode = useThemeMode() const isHistogram = props.data.some(({ type }) => type === 'histogram') const isCastXaxisToCategory = viewParams?.isXaxisAsCategorical && !isHistogram + const tOverride = + mode === 'dark' + ? { + template: { + ...darkPlotlyLayoutTemplate, + layout: { + ...darkPlotlyLayoutTemplate.layout, + colorway: + props.layout.template?.layout?.colorway || darkPlotlyLayoutTemplate.layout?.colorway + } + } + } + : undefined const xaxisOptionsOverride = isCastXaxisToCategory ? ({ type: 'category', categoryorder: 'category ascending' } as const) - : ({} as const) + : undefined return (
@@ -23,6 +38,7 @@ const BigGraphWidgetContent: React.FunctionComponent = (pro data={props.data} layout={{ ...props.layout, + ...tOverride, title: undefined, xaxis: { ...props.layout?.xaxis, ...xaxisOptionsOverride } }} diff --git a/ui/packages/evidently-ui-lib/src/widgets/BigTableWidget/HistogramGraphColumn.tsx b/ui/packages/evidently-ui-lib/src/widgets/BigTableWidget/HistogramGraphColumn.tsx index e606f3bdaa..ef2fe1036f 100644 --- a/ui/packages/evidently-ui-lib/src/widgets/BigTableWidget/HistogramGraphColumn.tsx +++ b/ui/packages/evidently-ui-lib/src/widgets/BigTableWidget/HistogramGraphColumn.tsx @@ -6,12 +6,14 @@ import type React from 'react' import { ResponsiveBarCanvas } from '@nivo/bar' import type { BigTableDataRow, LineGraphOptions } from '~/api' +import { useNivoTheme } from '~/hooks/theme' interface HistogramGraphColumnProps extends LineGraphOptions { data: BigTableDataRow } const _HistogramGraphColumn: React.FunctionComponent = (props) => { + const theme = useNivoTheme() return ( x: props.data[props.yField][idx] }) )} + theme={theme} margin={{ top: 3, right: 3, bottom: 3, left: 3 }} indexBy={'id'} keys={['x']} diff --git a/ui/packages/evidently-ui-lib/src/widgets/BigTableWidget/LineGraphColumn.tsx b/ui/packages/evidently-ui-lib/src/widgets/BigTableWidget/LineGraphColumn.tsx index fda48c96e5..956661e11e 100644 --- a/ui/packages/evidently-ui-lib/src/widgets/BigTableWidget/LineGraphColumn.tsx +++ b/ui/packages/evidently-ui-lib/src/widgets/BigTableWidget/LineGraphColumn.tsx @@ -5,6 +5,7 @@ import type React from 'react' import { ResponsiveLineCanvas } from '@nivo/line' import type { BigTableDataRow, LineGraphOptions } from '~/api' +import { useNivoTheme } from '~/hooks/theme' // import withTheme from "@material-ui/core/styles/withTheme"; interface LineGraphColumnProps extends LineGraphOptions { @@ -12,6 +13,7 @@ interface LineGraphColumnProps extends LineGraphOptions { } const _LineGraphColumn: React.FunctionComponent = (props) => { + const theme = useNivoTheme() return ( = (props) })) } ]} + theme={theme} margin={{ top: 0, right: 0, bottom: 0, left: 0 }} xScale={{ type: 'linear', min: 0, max: 25 }} axisTop={null} diff --git a/ui/packages/evidently-ui-lib/src/widgets/BigTableWidget/ScatterGraphColumn.tsx b/ui/packages/evidently-ui-lib/src/widgets/BigTableWidget/ScatterGraphColumn.tsx index 2d28017945..92cced0499 100644 --- a/ui/packages/evidently-ui-lib/src/widgets/BigTableWidget/ScatterGraphColumn.tsx +++ b/ui/packages/evidently-ui-lib/src/widgets/BigTableWidget/ScatterGraphColumn.tsx @@ -5,12 +5,14 @@ import { Box } from '@mui/material' import { ResponsiveScatterPlot } from '@nivo/scatterplot' import type { BigTableDataRow, LineGraphOptions } from '~/api' +import { useNivoTheme } from '~/hooks/theme' interface ScatterGraphColumnProps extends LineGraphOptions { data: BigTableDataRow } const _ScatterGraphColumn: React.FunctionComponent = (props) => { + const theme = useNivoTheme() return ( = (p ) } ]} + theme={theme} margin={{ top: 3, right: 3, bottom: 3, left: 3 }} xScale={{ type: 'linear', min: 0, max: 1000 }} nodeSize={4} diff --git a/ui/packages/evidently-ui-lib/src/widgets/InsightBlock.tsx b/ui/packages/evidently-ui-lib/src/widgets/InsightBlock.tsx index a99f05473e..d6819e3084 100644 --- a/ui/packages/evidently-ui-lib/src/widgets/InsightBlock.tsx +++ b/ui/packages/evidently-ui-lib/src/widgets/InsightBlock.tsx @@ -1,8 +1,9 @@ import type React from 'react' -import { Alert, AlertTitle } from '@mui/material' +import { AlertTitle } from '@mui/material' import type { InsightsParams } from '~/api' +import { AlertThemed } from '~/components/AlertThemed' interface InsightBlockProps { data: InsightsParams @@ -10,10 +11,10 @@ interface InsightBlockProps { const InsightBlock: React.FunctionComponent = (props) => { return ( - + {props.data.title} {props.data.text} - + ) } diff --git a/ui/packages/evidently-ui-lib/src/widgets/RichDataWidget.tsx b/ui/packages/evidently-ui-lib/src/widgets/RichDataWidget.tsx index 3682a150b2..8acc0d1841 100644 --- a/ui/packages/evidently-ui-lib/src/widgets/RichDataWidget.tsx +++ b/ui/packages/evidently-ui-lib/src/widgets/RichDataWidget.tsx @@ -17,8 +17,9 @@ import ExpandMoreSharpIcon from '@mui/icons-material/ExpandMoreSharp' import type { RichDataParams } from '~/api' -import Plot from '~/components/Plot' +import Plot, { darkPlotlyLayoutTemplate } from '~/components/Plot' import { useDashboardViewParams } from '~/contexts/DashboardViewParams' +import { useThemeMode } from '~/hooks/theme' import { BigTableDetails } from './BigTableWidget/BigTableDetails' const RichDataWidget: React.FunctionComponent = ( @@ -26,12 +27,28 @@ const RichDataWidget: React.FunctionComponent { const [details, setDetails] = useState(false) const viewParams = useDashboardViewParams() + const mode = useThemeMode() const isHistogram = props.graph?.data.some(({ type }) => type === 'histogram') const isCastXaxisToCategory = viewParams?.isXaxisAsCategorical && !isHistogram + const tOverride = + mode === 'dark' + ? { + template: { + ...darkPlotlyLayoutTemplate, + layout: { + ...darkPlotlyLayoutTemplate.layout, + colorway: + props.graph?.layout.template?.layout?.colorway || + darkPlotlyLayoutTemplate.layout?.colorway + } + } + } + : undefined + const xaxisOptionsOverride = isCastXaxisToCategory ? ({ type: 'category', categoryorder: 'category ascending' } as const) - : ({} as const) + : undefined return ( @@ -73,6 +90,7 @@ const RichDataWidget: React.FunctionComponent = ({ title, description, state, details } return ( <> - = ({ title, description, state, details } > {title} {description} - + {!isDetailsAvailable ? ( <> ) : ( diff --git a/ui/packages/evidently-ui-lib/src/widgets/TestSuiteWidget/TestSuiteWidgetContent.tsx b/ui/packages/evidently-ui-lib/src/widgets/TestSuiteWidget/TestSuiteWidgetContent.tsx index 11760bd662..320a28fce4 100644 --- a/ui/packages/evidently-ui-lib/src/widgets/TestSuiteWidget/TestSuiteWidgetContent.tsx +++ b/ui/packages/evidently-ui-lib/src/widgets/TestSuiteWidget/TestSuiteWidgetContent.tsx @@ -1,7 +1,8 @@ import { Box, Button, Collapse, Grid, Select } from '@mui/material' -import { Alert, AlertTitle } from '@mui/material' +import { AlertTitle } from '@mui/material' import React, { useState } from 'react' import type { TestDataInfo, TestGroupData, TestGroupTypeData, TestSuiteWidgetParams } from '~/api' +import { AlertThemed } from '~/components/AlertThemed' import TestInfo, { StateToSeverity } from './TestData' type TestSuiteFoldingProps = { @@ -34,7 +35,7 @@ const TestGroup: React.FC<{ groupInfo: TestGroupData; tests: TestDataInfo[] }> = return ( <> - = > {groupInfo.title} {groupInfo.description} - + {tests.map((test) => ( diff --git a/ui/packages/evidently-ui-lib/src/widgets/Widget.tsx b/ui/packages/evidently-ui-lib/src/widgets/Widget.tsx index 7f12bc0791..db09f06c1b 100644 --- a/ui/packages/evidently-ui-lib/src/widgets/Widget.tsx +++ b/ui/packages/evidently-ui-lib/src/widgets/Widget.tsx @@ -69,15 +69,9 @@ const Widget = ( const { id, title, details, content, alerts, alertStats, insights } = props.children const isAlertsExists = alerts === undefined ? false : alerts.length > 0 const isInsightsExists = insights === undefined ? false : insights.length > 0 + const Component = ( - + {alertsPosition === 'row' ? ( diff --git a/ui/pnpm-lock.yaml b/ui/pnpm-lock.yaml index 5433c8b588..1fdb2ace28 100644 --- a/ui/pnpm-lock.yaml +++ b/ui/pnpm-lock.yaml @@ -19,16 +19,16 @@ importers: version: 3.3.1(react-hook-form@7.47.0(react@18.2.0)) '@material-table/core': specifier: ^6.2.11 - version: 6.2.11(@mui/system@5.14.12(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react-dom@18.2.0)(@types/react@18.2.0)(dayjs@1.11.10)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + version: 6.2.11(@mui/system@6.1.5(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react-dom@18.2.0)(@types/react@18.2.0)(dayjs@1.11.10)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@mui/icons-material': - specifier: ^5.14.12 - version: 5.14.12(@mui/material@5.14.12(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@types/react@18.2.0)(react@18.2.0) + specifier: ^6.1.5 + version: 6.1.5(@mui/material@6.1.5(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@types/react@18.2.0)(react@18.2.0) '@mui/material': - specifier: ^5.14.12 - version: 5.14.12(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + specifier: ^6.1.5 + version: 6.1.5(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@mui/x-date-pickers': specifier: ^6.16.2 - version: 6.16.2(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@mui/material@5.14.12(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@mui/system@5.14.12(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(date-fns@2.30.0)(dayjs@1.11.10)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + version: 6.16.2(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@mui/material@6.1.5(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@mui/system@6.1.5(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(date-fns@2.30.0)(dayjs@1.11.10)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@nivo/bar': specifier: ^0.62.0 version: 0.62.0(prop-types@15.8.1)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) @@ -41,6 +41,9 @@ importers: '@uidotdev/usehooks': specifier: ^2.4.1 version: 2.4.1(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@uiw/react-json-view': + specifier: 2.0.0-alpha.30 + version: 2.0.0-alpha.30(@babel/runtime@7.25.7)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) dayjs: specifier: ^1.11.10 version: 1.11.10 @@ -71,9 +74,6 @@ importers: react-router-dom: specifier: ^6.16.0 version: 6.16.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0) - react18-json-view: - specifier: ^0.2.6 - version: 0.2.6(react@18.2.0) tiny-invariant: specifier: ^1.3.1 version: 1.3.1 @@ -194,6 +194,10 @@ packages: resolution: {integrity: sha512-hC2v6p8ZSI/W0HUzh3V8C5g+NwSKzKPtJwSpTjwl0o297GP9+ZLQSkdvHz46CM3LqyoXxq+5G9komY+eSqSO0g==} engines: {node: '>=6.9.0'} + '@babel/runtime@7.25.7': + resolution: {integrity: sha512-FjoyLe754PMiYsFaN5C94ttGiOmBNYTf6pLr4xXHAT5uctHb092PBszndLDR5XA/jghQvn4n7JMHl7dmTgbm9w==} + engines: {node: '>=6.9.0'} + '@babel/types@7.23.0': resolution: {integrity: sha512-0oIyUfKoI3mSqMvsxBdclDwxXKXAUA8v/apZbc+iSyARYou1o8ZGDxbUYyLFoW2arqS2jDGqJuZvv1d/io1axg==} engines: {node: '>=6.9.0'} @@ -296,18 +300,27 @@ packages: '@emotion/cache@11.11.0': resolution: {integrity: sha512-P34z9ssTCBi3e9EI1ZsWpNHcfY1r09ZO0rZbRO2ob3ZQMnFI35jB536qoXbkdesr5EUhYi22anuEJuyxifaqAQ==} + '@emotion/cache@11.13.1': + resolution: {integrity: sha512-iqouYkuEblRcXmylXIwwOodiEK5Ifl7JcX7o6V4jI3iW4mLXX3dmt5xwBtIkJiQEXFAI+pC8X0i67yiPkH9Ucw==} + '@emotion/core@11.0.0': resolution: {integrity: sha512-w4sE3AmHmyG6RDKf6mIbtHpgJUSJ2uGvPQb8VXFL7hFjMPibE8IiehG8cMX3Ztm4svfCQV6KqusQbeIOkurBcA==} '@emotion/hash@0.9.1': resolution: {integrity: sha512-gJB6HLm5rYwSLI6PQa+X1t5CFGrv1J1TWG+sOyMCeKz2ojaj6Fnl/rZEspogG+cvqbt4AE/2eIyD2QfLKTBNlQ==} + '@emotion/hash@0.9.2': + resolution: {integrity: sha512-MyqliTZGuOm3+5ZRSaaBGP3USLw6+EGykkwZns2EPC5g8jJ4z9OrdZY9apkl3+UP9+sdz76YYkwCKP5gh8iY3g==} + '@emotion/is-prop-valid@1.2.1': resolution: {integrity: sha512-61Mf7Ufx4aDxx1xlDeOm8aFFigGHE4z+0sKCa+IHCeZKiyP9RLD0Mmx7m8b9/Cf37f7NAvQOOJAbQQGVr5uERw==} '@emotion/memoize@0.8.1': resolution: {integrity: sha512-W2P2c/VRW1/1tLox0mVUalvnWXxavmv/Oum2aPsRcoDJuob75FC3Y8FbpfLwUegRcxINtGUMPq0tFCvYNTBXNA==} + '@emotion/memoize@0.9.0': + resolution: {integrity: sha512-30FAj7/EoJ5mwVPOWhAyCX+FPfMDrVecJAM+Iw9NRoSl4BBAQeqj4cApHHUXOVvIPgLVDsCFoz/hGD+5QQD1GQ==} + '@emotion/react@11.11.1': resolution: {integrity: sha512-5mlW1DquU5HaxjLkfkGN1GA/fvVGdyHURRiX/0FHl2cfIfRxSOfmxEH5YS43edp0OldZrZ+dkBKbngxcNCdZvA==} peerDependencies: @@ -320,9 +333,15 @@ packages: '@emotion/serialize@1.1.2': resolution: {integrity: sha512-zR6a/fkFP4EAcCMQtLOhIgpprZOwNmCldtpaISpvz348+DP4Mz8ZoKaGGCQpbzepNIUWbq4w6hNZkwDyKoS+HA==} + '@emotion/serialize@1.3.2': + resolution: {integrity: sha512-grVnMvVPK9yUVE6rkKfAJlYZgo0cu3l9iMC77V7DW6E1DUIrU68pSEXRmFZFOFB1QFo57TncmOcvcbMDWsL4yA==} + '@emotion/sheet@1.2.2': resolution: {integrity: sha512-0QBtGvaqtWi+nx6doRwDdBIzhNdZrXUppvTM4dtZZWEGTXL/XE/yJxLMGlDT1Gt+UHH5IX1n+jkXyytE/av7OA==} + '@emotion/sheet@1.4.0': + resolution: {integrity: sha512-fTBW9/8r2w3dXWYM4HCB1Rdp8NLibOw2+XELH5m5+AkWiL/KqYX6dc0kKYlaYyKjrQ6ds33MCdMPEwgs2z1rqg==} + '@emotion/styled@11.11.0': resolution: {integrity: sha512-hM5Nnvu9P3midq5aaXj4I+lnSfNi7Pmd4EWk1fOZ3pxookaQTNew6bp4JaCBYM4HVFZF9g7UjJmsUmC2JlxOng==} peerDependencies: @@ -333,6 +352,9 @@ packages: '@types/react': optional: true + '@emotion/unitless@0.10.0': + resolution: {integrity: sha512-dFoMUuQA20zvtVTuxZww6OHoJYgrzfKM1t52mVySDJnMSEa08ruEvdYQbhvyu6soU+NeLVd3yKfTfT0NeV6qGg==} + '@emotion/unitless@0.8.1': resolution: {integrity: sha512-KOEGMu6dmJZtpadb476IsZBclKvILjopjUii3V+7MnXIQCYh8W3NgNcgwo21n9LXZX6EDIKvqfjYxXebDwxKmQ==} @@ -344,9 +366,15 @@ packages: '@emotion/utils@1.2.1': resolution: {integrity: sha512-Y2tGf3I+XVnajdItskUCn6LX+VUDmP6lTL4fcqsXAv43dnlbZiuW4MWQW38rW/BVWSE7Q/7+XQocmpnRYILUmg==} + '@emotion/utils@1.4.1': + resolution: {integrity: sha512-BymCXzCG3r72VKJxaYVwOXATqXIZ85cuvg0YOUDxMGNrKc1DJRZk8MgV5wyXRyEayIMd4FuXJIUgTBXvDNW5cA==} + '@emotion/weak-memoize@0.3.1': resolution: {integrity: sha512-EsBwpc7hBUJWAsNPBmJy4hxWx12v6bshQsldrVmjxJoc3isbxhOrF2IcCpaXxfvq03NwkI7sbsOLXbYuqF/8Ww==} + '@emotion/weak-memoize@0.4.0': + resolution: {integrity: sha512-snKqtPW01tN0ui7yu9rGv69aJXr/a/Ywvl11sUjNtEcRc+ng/mQriFL0wLXMef74iHa/EkftbDzU9F8iFbH+zg==} + '@esbuild/aix-ppc64@0.20.2': resolution: {integrity: sha512-D+EBOJHXdNZcLJRBkhENNG8Wji2kgc9AZ9KiPr1JuZjsNtyHzrsfLRrY0tk2H2aoFu6RANO1y1iPPUCDYWkb5g==} engines: {node: '>=12'} @@ -567,68 +595,71 @@ packages: '@types/react': optional: true - '@mui/core-downloads-tracker@5.14.12': - resolution: {integrity: sha512-WZhCkKqhrXaSVBzoC6LNcVkIawS000OOt7gmnp4g9HhyvN0PSclRXc/JrkC7EwfzUAZJh+hiK2LaVsbtOpNuOg==} + '@mui/core-downloads-tracker@6.1.5': + resolution: {integrity: sha512-3J96098GrC95XsLw/TpGNMxhUOnoG9NZ/17Pfk1CrJj+4rcuolsF2RdF3XAFTu/3a/A+5ouxlSIykzYz6Ee87g==} - '@mui/icons-material@5.14.12': - resolution: {integrity: sha512-aFm6g/AIB3RQN9h/4MKoBoBybLZXeR3aDHWNx6KzemEpIlElUxv5uXRX5Qk1VC6v/YPkhbaPsiLLjsRSTiZF3w==} - engines: {node: '>=12.0.0'} + '@mui/icons-material@6.1.5': + resolution: {integrity: sha512-SbxFtO5I4cXfvhjAMgGib/t2lQUzcEzcDFYiRHRufZUeMMeXuoKaGsptfwAHTepYkv0VqcCwvxtvtWbpZLAbjQ==} + engines: {node: '>=14.0.0'} peerDependencies: - '@mui/material': ^5.0.0 - '@types/react': ^17.0.0 || ^18.0.0 - react: ^17.0.0 || ^18.0.0 + '@mui/material': ^6.1.5 + '@types/react': ^17.0.0 || ^18.0.0 || ^19.0.0 + react: ^17.0.0 || ^18.0.0 || ^19.0.0 peerDependenciesMeta: '@types/react': optional: true - '@mui/material@5.14.12': - resolution: {integrity: sha512-EelF2L46VcVqhg3KjzIGBBpOtcBgRh0MMy9Efuk6Do81QdcZsFC9RebCVAflo5jIdbHiBmxBs5/l5Q9NjONozg==} - engines: {node: '>=12.0.0'} + '@mui/material@6.1.5': + resolution: {integrity: sha512-rhaxC7LnlOG8zIVYv7BycNbWkC5dlm9A/tcDUp0CuwA7Zf9B9JP6M3rr50cNKxI7Z0GIUesAT86ceVm44quwnQ==} + engines: {node: '>=14.0.0'} peerDependencies: '@emotion/react': ^11.5.0 '@emotion/styled': ^11.3.0 - '@types/react': ^17.0.0 || ^18.0.0 - react: ^17.0.0 || ^18.0.0 - react-dom: ^17.0.0 || ^18.0.0 + '@mui/material-pigment-css': ^6.1.5 + '@types/react': ^17.0.0 || ^18.0.0 || ^19.0.0 + react: ^17.0.0 || ^18.0.0 || ^19.0.0 + react-dom: ^17.0.0 || ^18.0.0 || ^19.0.0 peerDependenciesMeta: '@emotion/react': optional: true '@emotion/styled': optional: true + '@mui/material-pigment-css': + optional: true '@types/react': optional: true - '@mui/private-theming@5.14.12': - resolution: {integrity: sha512-TWwm+9+BgHFpoR3w04FG+IqID4ALa74A27RuKq2CEaWgxliBZB24EVeI6djfjFt5t4FYmIb8BMw2ZJEir7YjLQ==} - engines: {node: '>=12.0.0'} + '@mui/private-theming@6.1.5': + resolution: {integrity: sha512-FJqweqEXk0KdtTho9C2h6JEKXsOT7MAVH2Uj3N5oIqs6YKxnwBn2/zL2QuYYEtj5OJ87rEUnCfFic6ldClvzJw==} + engines: {node: '>=14.0.0'} peerDependencies: - '@types/react': ^17.0.0 || ^18.0.0 - react: ^17.0.0 || ^18.0.0 + '@types/react': ^17.0.0 || ^18.0.0 || ^19.0.0 + react: ^17.0.0 || ^18.0.0 || ^19.0.0 peerDependenciesMeta: '@types/react': optional: true - '@mui/styled-engine@5.14.12': - resolution: {integrity: sha512-bocxt1nDmXfB3gpLfCCmFCyJ7sVmscFs+PuheO210QagZwHVp47UIRT1AiswLDYSQo1ZqmVGn7KLEJEYK0d4Xw==} - engines: {node: '>=12.0.0'} + '@mui/styled-engine@6.1.5': + resolution: {integrity: sha512-tiyWzMkHeWlOoE6AqomWvYvdml8Nv5k5T+LDwOiwHEawx8P9Lyja6ZwWPU6xljwPXYYPT2KBp1XvMly7dsK46A==} + engines: {node: '>=14.0.0'} peerDependencies: '@emotion/react': ^11.4.1 '@emotion/styled': ^11.3.0 - react: ^17.0.0 || ^18.0.0 + react: ^17.0.0 || ^18.0.0 || ^19.0.0 peerDependenciesMeta: '@emotion/react': optional: true '@emotion/styled': optional: true - '@mui/system@5.14.12': - resolution: {integrity: sha512-6DXfjjLhW0/ia5qU3Crke7j+MnfDbMBOHlLIrqbrEqNs0AuSBv8pXniEGb+kqO0H804NJreRTEJRjCngwOX5CA==} - engines: {node: '>=12.0.0'} + '@mui/system@6.1.5': + resolution: {integrity: sha512-vPM9ocQ8qquRDByTG3XF/wfYTL7IWL/20EiiKqByLDps8wOmbrDG9rVznSE3ZbcjFCFfMRMhtxvN92bwe/63SA==} + engines: {node: '>=14.0.0'} peerDependencies: '@emotion/react': ^11.5.0 '@emotion/styled': ^11.3.0 - '@types/react': ^17.0.0 || ^18.0.0 - react: ^17.0.0 || ^18.0.0 + '@types/react': ^17.0.0 || ^18.0.0 || ^19.0.0 + react: ^17.0.0 || ^18.0.0 || ^19.0.0 peerDependenciesMeta: '@emotion/react': optional: true @@ -637,6 +668,14 @@ packages: '@types/react': optional: true + '@mui/types@7.2.18': + resolution: {integrity: sha512-uvK9dWeyCJl/3ocVnTOS6nlji/Knj8/tVqVX03UVTpdmTJYu/s4jtDd9Kvv0nRGE0CUSNW1UYAci7PYypjealg==} + peerDependencies: + '@types/react': ^17.0.0 || ^18.0.0 || ^19.0.0 + peerDependenciesMeta: + '@types/react': + optional: true + '@mui/types@7.2.5': resolution: {integrity: sha512-S2BwfNczr7VwS6ki8GoAXJyARoeSJDLuxOEPs3vEMyTALlf9PrdHv+sluX7kk3iKrCg/ML2mIWwapZvWbkMCQA==} peerDependencies: @@ -655,6 +694,16 @@ packages: '@types/react': optional: true + '@mui/utils@6.1.5': + resolution: {integrity: sha512-vp2WfNDY+IbKUIGg+eqX1Ry4t/BilMjzp6p9xO1rfqpYjH1mj8coQxxDfKxcQLzBQkmBJjymjoGOak5VUYwXug==} + engines: {node: '>=14.0.0'} + peerDependencies: + '@types/react': ^17.0.0 || ^18.0.0 || ^19.0.0 + react: ^17.0.0 || ^18.0.0 || ^19.0.0 + peerDependenciesMeta: + '@types/react': + optional: true + '@mui/x-date-pickers@5.0.20': resolution: {integrity: sha512-ERukSeHIoNLbI1C2XRhF9wRhqfsr+Q4B1SAw2ZlU7CWgcG8UBOxgqRKDEOVAIoSWL+DWT6GRuQjOKvj6UXZceA==} engines: {node: '>=12.0.0'} @@ -1017,6 +1066,9 @@ packages: '@types/plotly.js@2.12.27': resolution: {integrity: sha512-Ah7XuePFNxu2XAHG79GeKN/Ky8dZ0k6hzy49da6AeZFrTqO5wDbtJovp3co3C+iRitp8tA6rIxkltiJ3cjsQWw==} + '@types/prop-types@15.7.13': + resolution: {integrity: sha512-hCZTSvwbzWGvhqxp/RqVqwU999pBf2vp7hzIjiYOsl8wqOmUxkQ6ddw1cV3l8811+kdUFus/q4d1Y3E3SyEifA==} + '@types/prop-types@15.7.8': resolution: {integrity: sha512-kMpQpfZKSCBqltAJwskgePRaYRFukDkm1oItcAbC3gNELR20XIBcN9VRgg4+m8DKsTfkWeA4m4Imp4DDuWy7FQ==} @@ -1026,6 +1078,9 @@ packages: '@types/react-plotly.js@2.6.1': resolution: {integrity: sha512-vFJZRCC2Pav0NdrFm0grPMm9+67ejGZZglDBWqo+J6VFbB4CAatjoNiowfardznuujaaoDNoZ4MSCFwYyVk4aA==} + '@types/react-transition-group@4.4.11': + resolution: {integrity: sha512-RM05tAniPZ5DZPzzNFP+DmrcOdD0efDUxMy3145oljWSl3x9ZV5vhme98gTxFrj2lhXvmGNnUiuDyJgY9IKkNA==} + '@types/react-transition-group@4.4.7': resolution: {integrity: sha512-ICCyBl5mvyqYp8Qeq9B5G/fyBSRC0zx3XM3sCC6KkcMsNeAHqXBKkmat4GqdJET5jtYUpZXrxI5flve5qhi2Eg==} @@ -1048,6 +1103,13 @@ packages: react: '>=18.0.0' react-dom: '>=18.0.0' + '@uiw/react-json-view@2.0.0-alpha.30': + resolution: {integrity: sha512-ufvvirUQcITU9s4R12b7hn/t7ngLCYp1KbBxE+eAD35o3Ey+uxfKvgWmIwGFhV3hFXXxMJ8SHQKwl/ywNCHsDA==} + peerDependencies: + '@babel/runtime': '>=7.10.0' + react: '>=18.0.0' + react-dom: '>=18.0.0' + '@ungap/structured-clone@1.2.0': resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} @@ -1149,6 +1211,10 @@ packages: resolution: {integrity: sha512-rQ1+kcj+ttHG0MKVGBUXwayCCF1oh39BF5COIpRzuCEv8Mwjv0XucrI2ExNTOn9IlLifGClWQcU9BrZORvtw6Q==} engines: {node: '>=6'} + clsx@2.1.1: + resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==} + engines: {node: '>=6'} + color-alpha@1.0.4: resolution: {integrity: sha512-lr8/t5NPozTSqli+duAN+x+no/2WaKTeWvxhHGN+aXT6AJ8vPlzLa7UriyjWak0pSC2jHol9JgjBYnnHsGha9A==} @@ -1237,6 +1303,9 @@ packages: csstype@3.1.2: resolution: {integrity: sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==} + csstype@3.1.3: + resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==} + d3-array@1.2.4: resolution: {integrity: sha512-KHW6M86R+FUPYGb3R5XiYjXPq7VzwxZ22buHhAEVG5ztoEcZZMLov530mmccaqA1GghZArjQV46fuc8kUqhhHw==} @@ -2055,6 +2124,9 @@ packages: react-is@18.2.0: resolution: {integrity: sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==} + react-is@18.3.1: + resolution: {integrity: sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==} + react-lifecycles-compat@3.0.4: resolution: {integrity: sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA==} @@ -2121,11 +2193,6 @@ packages: react: '>=16.6.0' react-dom: '>=16.6.0' - react18-json-view@0.2.6: - resolution: {integrity: sha512-RHAY880UwC7SClyQBoij50q2InpSrj5zmP2DCL73vEaaVTyj/QbMPBk4FRKMQ7LF8FSxhh+VI6mK3AhlBaCBxw==} - peerDependencies: - react: '>=16.8.0' - react@18.2.0: resolution: {integrity: sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==} engines: {node: '>=0.10.0'} @@ -2541,6 +2608,10 @@ snapshots: dependencies: regenerator-runtime: 0.14.0 + '@babel/runtime@7.25.7': + dependencies: + regenerator-runtime: 0.14.0 + '@babel/types@7.23.0': dependencies: '@babel/helper-string-parser': 7.22.5 @@ -2630,16 +2701,28 @@ snapshots: '@emotion/weak-memoize': 0.3.1 stylis: 4.2.0 + '@emotion/cache@11.13.1': + dependencies: + '@emotion/memoize': 0.9.0 + '@emotion/sheet': 1.4.0 + '@emotion/utils': 1.4.1 + '@emotion/weak-memoize': 0.4.0 + stylis: 4.2.0 + '@emotion/core@11.0.0': {} '@emotion/hash@0.9.1': {} + '@emotion/hash@0.9.2': {} + '@emotion/is-prop-valid@1.2.1': dependencies: '@emotion/memoize': 0.8.1 '@emotion/memoize@0.8.1': {} + '@emotion/memoize@0.9.0': {} + '@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0)': dependencies: '@babel/runtime': 7.23.1 @@ -2662,8 +2745,18 @@ snapshots: '@emotion/utils': 1.2.1 csstype: 3.1.2 + '@emotion/serialize@1.3.2': + dependencies: + '@emotion/hash': 0.9.2 + '@emotion/memoize': 0.9.0 + '@emotion/unitless': 0.10.0 + '@emotion/utils': 1.4.1 + csstype: 3.1.3 + '@emotion/sheet@1.2.2': {} + '@emotion/sheet@1.4.0': {} + '@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0)': dependencies: '@babel/runtime': 7.23.1 @@ -2677,6 +2770,8 @@ snapshots: optionalDependencies: '@types/react': 18.2.0 + '@emotion/unitless@0.10.0': {} + '@emotion/unitless@0.8.1': {} '@emotion/use-insertion-effect-with-fallbacks@1.0.1(react@18.2.0)': @@ -2685,8 +2780,12 @@ snapshots: '@emotion/utils@1.2.1': {} + '@emotion/utils@1.4.1': {} + '@emotion/weak-memoize@0.3.1': {} + '@emotion/weak-memoize@0.4.0': {} + '@esbuild/aix-ppc64@0.20.2': optional: true @@ -2824,7 +2923,7 @@ snapshots: '@mapbox/whoots-js@3.1.0': {} - '@material-table/core@6.2.11(@mui/system@5.14.12(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react-dom@18.2.0)(@types/react@18.2.0)(dayjs@1.11.10)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': + '@material-table/core@6.2.11(@mui/system@6.1.5(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react-dom@18.2.0)(@types/react@18.2.0)(dayjs@1.11.10)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.23.1 '@date-io/core': 2.17.0 @@ -2833,10 +2932,10 @@ snapshots: '@emotion/react': 11.11.1(@types/react@18.2.0)(react@18.2.0) '@emotion/styled': 11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0) '@hello-pangea/dnd': 16.3.0(@types/react-dom@18.2.0)(@types/react@18.2.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) - '@mui/icons-material': 5.14.12(@mui/material@5.14.12(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@types/react@18.2.0)(react@18.2.0) - '@mui/material': 5.14.12(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) - '@mui/system': 5.14.12(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0) - '@mui/x-date-pickers': 5.0.20(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@mui/material@5.14.12(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@mui/system@5.14.12(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(date-fns@2.30.0)(dayjs@1.11.10)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@mui/icons-material': 6.1.5(@mui/material@6.1.5(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@types/react@18.2.0)(react@18.2.0) + '@mui/material': 6.1.5(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@mui/system': 6.1.5(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0) + '@mui/x-date-pickers': 5.0.20(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@mui/material@6.1.5(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@mui/system@6.1.5(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(date-fns@2.30.0)(dayjs@1.11.10)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) classnames: 2.3.2 date-fns: 2.30.0 debounce: 1.2.1 @@ -2849,6 +2948,7 @@ snapshots: uuid: 9.0.1 zustand: 4.4.3(@types/react@18.2.0)(react@18.2.0) transitivePeerDependencies: + - '@mui/material-pigment-css' - '@types/react' - '@types/react-dom' - dayjs @@ -2871,66 +2971,68 @@ snapshots: optionalDependencies: '@types/react': 18.2.0 - '@mui/core-downloads-tracker@5.14.12': {} + '@mui/core-downloads-tracker@6.1.5': {} - '@mui/icons-material@5.14.12(@mui/material@5.14.12(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@types/react@18.2.0)(react@18.2.0)': + '@mui/icons-material@6.1.5(@mui/material@6.1.5(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@types/react@18.2.0)(react@18.2.0)': dependencies: - '@babel/runtime': 7.23.1 - '@mui/material': 5.14.12(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@babel/runtime': 7.25.7 + '@mui/material': 6.1.5(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) react: 18.2.0 optionalDependencies: '@types/react': 18.2.0 - '@mui/material@5.14.12(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': + '@mui/material@6.1.5(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: - '@babel/runtime': 7.23.1 - '@mui/base': 5.0.0-beta.18(@types/react@18.2.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) - '@mui/core-downloads-tracker': 5.14.12 - '@mui/system': 5.14.12(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0) - '@mui/types': 7.2.5(@types/react@18.2.0) - '@mui/utils': 5.14.12(@types/react@18.2.0)(react@18.2.0) - '@types/react-transition-group': 4.4.7 - clsx: 2.0.0 - csstype: 3.1.2 + '@babel/runtime': 7.25.7 + '@mui/core-downloads-tracker': 6.1.5 + '@mui/system': 6.1.5(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0) + '@mui/types': 7.2.18(@types/react@18.2.0) + '@mui/utils': 6.1.5(@types/react@18.2.0)(react@18.2.0) + '@popperjs/core': 2.11.8 + '@types/react-transition-group': 4.4.11 + clsx: 2.1.1 + csstype: 3.1.3 prop-types: 15.8.1 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - react-is: 18.2.0 + react-is: 18.3.1 react-transition-group: 4.4.5(react-dom@18.2.0(react@18.2.0))(react@18.2.0) optionalDependencies: '@emotion/react': 11.11.1(@types/react@18.2.0)(react@18.2.0) '@emotion/styled': 11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0) '@types/react': 18.2.0 - '@mui/private-theming@5.14.12(@types/react@18.2.0)(react@18.2.0)': + '@mui/private-theming@6.1.5(@types/react@18.2.0)(react@18.2.0)': dependencies: - '@babel/runtime': 7.23.1 - '@mui/utils': 5.14.12(@types/react@18.2.0)(react@18.2.0) + '@babel/runtime': 7.25.7 + '@mui/utils': 6.1.5(@types/react@18.2.0)(react@18.2.0) prop-types: 15.8.1 react: 18.2.0 optionalDependencies: '@types/react': 18.2.0 - '@mui/styled-engine@5.14.12(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(react@18.2.0)': + '@mui/styled-engine@6.1.5(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(react@18.2.0)': dependencies: - '@babel/runtime': 7.23.1 - '@emotion/cache': 11.11.0 - csstype: 3.1.2 + '@babel/runtime': 7.25.7 + '@emotion/cache': 11.13.1 + '@emotion/serialize': 1.3.2 + '@emotion/sheet': 1.4.0 + csstype: 3.1.3 prop-types: 15.8.1 react: 18.2.0 optionalDependencies: '@emotion/react': 11.11.1(@types/react@18.2.0)(react@18.2.0) '@emotion/styled': 11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0) - '@mui/system@5.14.12(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0)': + '@mui/system@6.1.5(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0)': dependencies: - '@babel/runtime': 7.23.1 - '@mui/private-theming': 5.14.12(@types/react@18.2.0)(react@18.2.0) - '@mui/styled-engine': 5.14.12(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(react@18.2.0) - '@mui/types': 7.2.5(@types/react@18.2.0) - '@mui/utils': 5.14.12(@types/react@18.2.0)(react@18.2.0) - clsx: 2.0.0 - csstype: 3.1.2 + '@babel/runtime': 7.25.7 + '@mui/private-theming': 6.1.5(@types/react@18.2.0)(react@18.2.0) + '@mui/styled-engine': 6.1.5(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(react@18.2.0) + '@mui/types': 7.2.18(@types/react@18.2.0) + '@mui/utils': 6.1.5(@types/react@18.2.0)(react@18.2.0) + clsx: 2.1.1 + csstype: 3.1.3 prop-types: 15.8.1 react: 18.2.0 optionalDependencies: @@ -2938,6 +3040,10 @@ snapshots: '@emotion/styled': 11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0) '@types/react': 18.2.0 + '@mui/types@7.2.18(@types/react@18.2.0)': + optionalDependencies: + '@types/react': 18.2.0 + '@mui/types@7.2.5(@types/react@18.2.0)': optionalDependencies: '@types/react': 18.2.0 @@ -2952,7 +3058,19 @@ snapshots: optionalDependencies: '@types/react': 18.2.0 - '@mui/x-date-pickers@5.0.20(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@mui/material@5.14.12(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@mui/system@5.14.12(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(date-fns@2.30.0)(dayjs@1.11.10)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': + '@mui/utils@6.1.5(@types/react@18.2.0)(react@18.2.0)': + dependencies: + '@babel/runtime': 7.25.7 + '@mui/types': 7.2.18(@types/react@18.2.0) + '@types/prop-types': 15.7.13 + clsx: 2.1.1 + prop-types: 15.8.1 + react: 18.2.0 + react-is: 18.3.1 + optionalDependencies: + '@types/react': 18.2.0 + + '@mui/x-date-pickers@5.0.20(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@mui/material@6.1.5(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@mui/system@6.1.5(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(date-fns@2.30.0)(dayjs@1.11.10)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.23.1 '@date-io/core': 2.17.0 @@ -2960,8 +3078,8 @@ snapshots: '@date-io/dayjs': 2.17.0(dayjs@1.11.10) '@date-io/luxon': 2.17.0 '@date-io/moment': 2.17.0 - '@mui/material': 5.14.12(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) - '@mui/system': 5.14.12(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0) + '@mui/material': 6.1.5(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@mui/system': 6.1.5(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0) '@mui/utils': 5.14.12(@types/react@18.2.0)(react@18.2.0) '@types/react-transition-group': 4.4.7 clsx: 1.2.1 @@ -2978,12 +3096,12 @@ snapshots: transitivePeerDependencies: - '@types/react' - '@mui/x-date-pickers@6.16.2(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@mui/material@5.14.12(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@mui/system@5.14.12(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(date-fns@2.30.0)(dayjs@1.11.10)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': + '@mui/x-date-pickers@6.16.2(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@mui/material@6.1.5(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(@mui/system@6.1.5(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(date-fns@2.30.0)(dayjs@1.11.10)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: '@babel/runtime': 7.23.1 '@mui/base': 5.0.0-beta.18(@types/react@18.2.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) - '@mui/material': 5.14.12(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) - '@mui/system': 5.14.12(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0) + '@mui/material': 6.1.5(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@mui/system': 6.1.5(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@emotion/styled@11.11.0(@emotion/react@11.11.1(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0))(@types/react@18.2.0)(react@18.2.0) '@mui/utils': 5.14.12(@types/react@18.2.0)(react@18.2.0) '@types/react-transition-group': 4.4.7 clsx: 2.0.0 @@ -3344,6 +3462,8 @@ snapshots: '@types/plotly.js@2.12.27': {} + '@types/prop-types@15.7.13': {} + '@types/prop-types@15.7.8': {} '@types/react-dom@18.2.0': @@ -3355,6 +3475,10 @@ snapshots: '@types/plotly.js': 2.12.27 '@types/react': 18.2.0 + '@types/react-transition-group@4.4.11': + dependencies: + '@types/react': 18.2.0 + '@types/react-transition-group@4.4.7': dependencies: '@types/react': 18.2.0 @@ -3376,6 +3500,12 @@ snapshots: react: 18.2.0 react-dom: 18.2.0(react@18.2.0) + '@uiw/react-json-view@2.0.0-alpha.30(@babel/runtime@7.25.7)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': + dependencies: + '@babel/runtime': 7.25.7 + react: 18.2.0 + react-dom: 18.2.0(react@18.2.0) + '@ungap/structured-clone@1.2.0': {} '@vitejs/plugin-react-swc@3.7.0(vite@5.2.12)': @@ -3464,6 +3594,8 @@ snapshots: clsx@2.0.0: {} + clsx@2.1.1: {} + color-alpha@1.0.4: dependencies: color-parse: 1.3.8 @@ -3566,6 +3698,8 @@ snapshots: csstype@3.1.2: {} + csstype@3.1.3: {} + d3-array@1.2.4: {} d3-array@2.12.1: @@ -4592,6 +4726,8 @@ snapshots: react-is@18.2.0: {} + react-is@18.3.1: {} + react-lifecycles-compat@3.0.4: {} react-markdown@9.0.0(@types/react@18.2.0)(react@18.2.0): @@ -4670,10 +4806,6 @@ snapshots: react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - react18-json-view@0.2.6(react@18.2.0): - dependencies: - react: 18.2.0 - react@18.2.0: dependencies: loose-envify: 1.4.0 diff --git a/ui/service/src/Routes/home/index.tsx b/ui/service/src/Routes/home/index.tsx index b8459d8899..84d603f182 100644 --- a/ui/service/src/Routes/home/index.tsx +++ b/ui/service/src/Routes/home/index.tsx @@ -1,8 +1,8 @@ import { FetchersErrorSnackbar, GenericErrorBoundary } from 'evidently-ui-lib/components/Error' +import { EvidentlyLogoSvg } from 'evidently-ui-lib/components/LogoSvg' import { getLoaderAction } from 'evidently-ui-lib/routes-components/home/data' import type { RouteObject } from 'evidently-ui-lib/shared-dependencies/react-router-dom' import { clientAPI } from '~/api' -import logoSrc from '~/assets/logo.png' const { loader } = getLoaderAction({ api: clientAPI }) @@ -17,7 +17,7 @@ export default { return ( <> - + ) } diff --git a/ui/service/src/assets/logo.png b/ui/service/src/assets/logo.png deleted file mode 100644 index f902a1e239..0000000000 Binary files a/ui/service/src/assets/logo.png and /dev/null differ diff --git a/ui/service/src/index.css b/ui/service/src/index.css index b2cd1764aa..22e585ee13 100644 --- a/ui/service/src/index.css +++ b/ui/service/src/index.css @@ -1,8 +1,3 @@ -html, -body { - overflow-x: clip; -} - body { margin: 0; padding: 0; diff --git a/ui/service/src/main.tsx b/ui/service/src/main.tsx index 02ee5e4f26..3cbfde64fd 100644 --- a/ui/service/src/main.tsx +++ b/ui/service/src/main.tsx @@ -1,9 +1,9 @@ import React from 'react' import ReactDOM from 'react-dom/client' -import { ThemeProvider } from 'evidently-ui-lib/shared-dependencies/mui-material' +import { CssBaseline, ThemeProvider } from 'evidently-ui-lib/shared-dependencies/mui-material' import { RouterProvider } from 'evidently-ui-lib/shared-dependencies/react-router-dom' -import { theme } from 'evidently-ui-lib/theme/v2' +import { theme } from 'evidently-ui-lib/theme/index' import { router } from '~/Routes' import './index.css' @@ -13,6 +13,7 @@ if (rootElement) { ReactDOM.createRoot(rootElement).render( + diff --git a/ui/service/tests/visual.spec.ts-snapshots.dvc b/ui/service/tests/visual.spec.ts-snapshots.dvc index b234d355fe..2147ca6665 100644 --- a/ui/service/tests/visual.spec.ts-snapshots.dvc +++ b/ui/service/tests/visual.spec.ts-snapshots.dvc @@ -1,6 +1,6 @@ outs: -- md5: f64a8aa6392220ff9b7169341160e3a8.dir - size: 3987886 +- md5: a511a1f5d375cbb3f6f1044200774c2c.dir + size: 4007822 nfiles: 8 hash: md5 path: visual.spec.ts-snapshots diff --git a/ui/service/vite.config.ts b/ui/service/vite.config.ts index d5a3c2f025..a541a0b867 100644 --- a/ui/service/vite.config.ts +++ b/ui/service/vite.config.ts @@ -5,7 +5,6 @@ import react from '@vitejs/plugin-react-swc' // https://vitejs.dev/config/ export default defineConfig({ plugins: [react(), splitVendorChunkPlugin(), tsconfigPaths()], - server: { port: 3000, proxy: { diff --git a/ui/standalone/src/main.tsx b/ui/standalone/src/main.tsx index 2036181bfe..3ae829105c 100644 --- a/ui/standalone/src/main.tsx +++ b/ui/standalone/src/main.tsx @@ -2,10 +2,11 @@ import React from 'react' import ReactDOM from 'react-dom/client' import type { AdditionalGraphInfo } from 'evidently-ui-lib/api' -import { ThemeProvider } from 'evidently-ui-lib/shared-dependencies/mui-material' -import { theme } from 'evidently-ui-lib/theme/v2' +import { Box, CssBaseline, ThemeProvider } from 'evidently-ui-lib/shared-dependencies/mui-material' +import { theme } from 'evidently-ui-lib/theme/index' import type { DashboardInfoModel } from 'evidently-ui-lib/api/types' +import { ThemeToggle } from 'evidently-ui-lib/components/ThemeToggle' import { StandaloneSnapshotWidgets } from 'evidently-ui-lib/standalone/app' export function drawDashboard( @@ -18,6 +19,10 @@ export function drawDashboard( ReactDOM.createRoot(element).render( + + + +